Add support for multiple remote timetables

- Add timetable "title" column to db
- Make API return array of timetables
- Add settings page for selecting a timetable
- Add InfoCard if no timetable is selected
This commit is contained in:
2023-06-18 14:30:36 +02:00
parent dac0d09167
commit 48364d4c59
10 changed files with 176 additions and 30 deletions

View File

@ -9,6 +9,7 @@ export const strings = {
settings: {
main: "Settings",
filtering: "Filtering",
timetable: "Manage Timetables",
groups: "Timetable Groups",
appearance: "Appearance",
about: "About",
@ -18,6 +19,7 @@ export const strings = {
heading: {
filtering: "Filtering",
timetableGroups: "Timetable Groups",
remoteTimetables: "Remote Timetables",
language: "Language",
about: "About",
theme: "Theme",
@ -37,6 +39,7 @@ export const strings = {
back: "Back",
none: "None",
version: "Version",
source: "Source",
theme: {
auto: "Auto",
dark: "Dark",
@ -88,6 +91,7 @@ export const strings = {
titles: {
loading: "Loading data",
loadingFailed: "Loading failed",
noTimetable: "No timetable",
noEntries: "No Substitutions",
noHistory: "No History",
},
@ -96,6 +100,8 @@ export const strings = {
loadingTimetable: "The timetable is still being loaded",
loadingFailed:
"The data could not be loaded. Plase check your internet connection!",
noTimetable:
"No timetable active. You can manage your timetables in the settings!",
noEntries: "There are no substitutions for this day yet",
noHistory: "No substitutions for this day have changed yet",
},
@ -113,6 +119,7 @@ export const strings = {
settings: {
main: "Einstellungen",
filtering: "Filter",
timetable: "Stundenpläne Verwalten",
groups: "Stundenplan-Gruppen",
appearance: "Aussehen",
about: "Über",
@ -121,6 +128,7 @@ export const strings = {
settings: {
heading: {
filtering: "Filter",
remoteTimetables: "Online Stundenpläne",
timetableGroups: "Stundenplan-Gruppen",
language: "Sprache",
about: "Über diese Anwendung",
@ -141,6 +149,7 @@ export const strings = {
back: "Zurück",
none: "Keine",
version: "Version",
source: "Quelle",
theme: {
auto: "Automatisch",
dark: "Dunkel",
@ -193,6 +202,7 @@ export const strings = {
titles: {
loading: "Läd noch",
loadingFailed: "Fehler",
noTimetable: "Kein Stundenplan",
noEntries: "Keine Vertretungen",
noHistory: "Noch keine Änderungen",
},
@ -201,6 +211,8 @@ export const strings = {
loadingTimetable: "Der Stundenplan wird noch geladen",
loadingFailed:
"Die Daten konnten nicht geladen werden. Bitte überprüfe deine Internetverbindung!",
noTimetable:
"Kein Stundenplan ausgewählt. Du kannst deine Stundenpläne in den Einstellungen verwalten!",
noEntries: "Es gibt noch keine Vertretungen für diesen Tag",
noHistory:
"An den Vertretungen für diesen Tag wurde noch nichts geändert",