diff --git a/src/components/Timetable/TimetableContentCZ.vue b/src/components/Timetable/TimetableContentCZ.vue index 94c8bf7..ecfdace 100644 --- a/src/components/Timetable/TimetableContentCZ.vue +++ b/src/components/Timetable/TimetableContentCZ.vue @@ -145,23 +145,19 @@ import { useGlobalStore } from '../../stores/global.store'; import type { StopRowCZ, TimetablePathData } from '../../types/common.types'; import { useApiStore } from '../../stores/api.store'; import { - ArrowRightIcon, CalendarArrowDownIcon, CalendarArrowUpIcon, CircleAlertIcon, CircleGaugeIcon, - CircleHelpIcon, HandIcon, MapPinIcon, - TimerIcon, - UniversityIcon + TimerIcon } from 'lucide-vue-next'; const globalStore = useGlobalStore(); const apiStore = useApiStore(); const timetableDate = ref(new Date()); -const headUnit = ref(''); const romanMonthDigits = ['I', 'II', 'III', 'IV', 'V', 'VI', 'VII', 'VIII', 'IX', 'X', 'XI', 'XII']; @@ -202,7 +198,7 @@ const computedTimetableRows = computed(() => { timetableDate.value = new Date(stopList[0].departureTimestamp); - stopList.forEach((stop, i) => { + stopList.forEach((stop) => { if (stop.arrivalLine && stop.arrivalLine == currentPath.arrivalLine) { if (currentPath.arrivalLineData) { arrivalSpeed = Math.min(currentPath.arrivalLineData.routeSpeed, stockVmax); diff --git a/src/locales/en.json b/src/locales/en.json index 75804e9..fcb1bc6 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -36,7 +36,9 @@ "journal-preview-title": "TIMETABLES JOURNAL", "journal-empty-info": "Enter timetable details in the text fields above (use at least one field).
Up to 15 newest timetables will be shown.", - "journal-search-placeholder": "nick:Spythere date:02.04.2025 from:Krnów to:Biała_Sudecka", + "journal-driver-search-placeholder": "Driver name / #ID", + "journal-date-search-placeholder": "Date", + "journal-route-search-placeholder": "Route", "journal-preview-info": "Historical timetable {id} for user {driverName} from: {date}", "journal-no-data": "No data for the current search! Check if the data you entered is correct.", diff --git a/tsconfig.app.tsbuildinfo b/tsconfig.app.tsbuildinfo index 5f0c54d..2e0a7db 100644 --- a/tsconfig.app.tsbuildinfo +++ b/tsconfig.app.tsbuildinfo @@ -1 +1 @@ -{"root":["./src/i18n.ts","./src/main.ts","./src/vite-env.d.ts","./src/stores/api.store.ts","./src/stores/global.store.ts","./src/types/api.types.ts","./src/types/common.types.ts","./src/utils/trainUtils.ts","./src/App.vue","./src/components/App/MainBottom.vue","./src/components/App/MainContainer.vue","./src/components/App/Navbar.vue","./src/components/App/SettingsCard.vue","./src/components/App/UpdatePrompt.vue","./src/components/Timetable/TimetableBody.vue","./src/components/Timetable/TimetableHeader.vue","./src/components/Timetable/TimetableWarnings.vue","./src/components/Timetable/TrainTimetable.vue","./src/components/TimetableSearch/ActiveSearchInput.vue","./src/components/TimetableSearch/JournalSearchInput.vue","./src/components/TimetableSearch/LocalSearchInput.vue","./src/components/TimetableSearch/SearchContainer.vue","./src/components/TimetableSearch/SearchModeActions.vue","./src/components/TimetableViews/JournalStorageView.vue","./src/components/TimetableViews/LocalStorageView.vue"],"version":"5.6.3"} \ No newline at end of file +{"root":["./src/i18n.ts","./src/main.ts","./src/vite-env.d.ts","./src/stores/api.store.ts","./src/stores/global.store.ts","./src/types/api.types.ts","./src/types/common.types.ts","./src/utils/trainUtils.ts","./src/App.vue","./src/components/App/MainBottom.vue","./src/components/App/MainContainer.vue","./src/components/App/Navbar.vue","./src/components/App/SettingsCard.vue","./src/components/App/UpdatePrompt.vue","./src/components/Timetable/TimetableContainer.vue","./src/components/Timetable/TimetableContent.vue","./src/components/Timetable/TimetableContentCZ.vue","./src/components/Timetable/TimetableWarnings.vue","./src/components/TimetableSearch/ActiveSearchInput.vue","./src/components/TimetableSearch/JournalSearchInput.vue","./src/components/TimetableSearch/LocalSearchInput.vue","./src/components/TimetableSearch/SearchContainer.vue","./src/components/TimetableSearch/SearchModeActions.vue","./src/components/TimetableViews/ActiveDataView.vue","./src/components/TimetableViews/CurrentTimetableView.vue","./src/components/TimetableViews/JournalStorageView.vue","./src/components/TimetableViews/LocalStorageView.vue"],"version":"5.6.3"} \ No newline at end of file diff --git a/vite.config.ts b/vite.config.ts index 1e96756..e10c9db 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -11,7 +11,17 @@ export default defineConfig({ workbox: { disableDevLogs: true, globPatterns: ['**/*.{js,css,html,png,svg,jpg,ico}'], - cleanupOutdatedCaches: true + cleanupOutdatedCaches: true, + runtimeCaching: [ + { + urlPattern: /^https:\/\/stacjownik.spythere.eu\/api\/getSceneries/i, + handler: 'NetworkFirst', + options: { + cacheName: 'stacjownik-api-cache', + cacheableResponse: { statuses: [0, 200] } + } + } + ] }, devOptions: { enabled: false, suppressWarnings: true } })