mirror of
https://github.com/Spythere/srjp-td2.git
synced 2026-05-03 13:38:12 +00:00
chore: build fixes, missing translations, PWA caching
This commit is contained in:
@@ -145,23 +145,19 @@ import { useGlobalStore } from '../../stores/global.store';
|
|||||||
import type { StopRowCZ, TimetablePathData } from '../../types/common.types';
|
import type { StopRowCZ, TimetablePathData } from '../../types/common.types';
|
||||||
import { useApiStore } from '../../stores/api.store';
|
import { useApiStore } from '../../stores/api.store';
|
||||||
import {
|
import {
|
||||||
ArrowRightIcon,
|
|
||||||
CalendarArrowDownIcon,
|
CalendarArrowDownIcon,
|
||||||
CalendarArrowUpIcon,
|
CalendarArrowUpIcon,
|
||||||
CircleAlertIcon,
|
CircleAlertIcon,
|
||||||
CircleGaugeIcon,
|
CircleGaugeIcon,
|
||||||
CircleHelpIcon,
|
|
||||||
HandIcon,
|
HandIcon,
|
||||||
MapPinIcon,
|
MapPinIcon,
|
||||||
TimerIcon,
|
TimerIcon
|
||||||
UniversityIcon
|
|
||||||
} from 'lucide-vue-next';
|
} from 'lucide-vue-next';
|
||||||
|
|
||||||
const globalStore = useGlobalStore();
|
const globalStore = useGlobalStore();
|
||||||
const apiStore = useApiStore();
|
const apiStore = useApiStore();
|
||||||
|
|
||||||
const timetableDate = ref(new Date());
|
const timetableDate = ref(new Date());
|
||||||
const headUnit = ref('');
|
|
||||||
|
|
||||||
const romanMonthDigits = ['I', 'II', 'III', 'IV', 'V', 'VI', 'VII', 'VIII', 'IX', 'X', 'XI', 'XII'];
|
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);
|
timetableDate.value = new Date(stopList[0].departureTimestamp);
|
||||||
|
|
||||||
stopList.forEach((stop, i) => {
|
stopList.forEach((stop) => {
|
||||||
if (stop.arrivalLine && stop.arrivalLine == currentPath.arrivalLine) {
|
if (stop.arrivalLine && stop.arrivalLine == currentPath.arrivalLine) {
|
||||||
if (currentPath.arrivalLineData) {
|
if (currentPath.arrivalLineData) {
|
||||||
arrivalSpeed = Math.min(currentPath.arrivalLineData.routeSpeed, stockVmax);
|
arrivalSpeed = Math.min(currentPath.arrivalLineData.routeSpeed, stockVmax);
|
||||||
|
|||||||
+3
-1
@@ -36,7 +36,9 @@
|
|||||||
|
|
||||||
"journal-preview-title": "TIMETABLES JOURNAL",
|
"journal-preview-title": "TIMETABLES JOURNAL",
|
||||||
"journal-empty-info": "Enter timetable details in the text fields above (use at least one field).<br>Up to 15 newest timetables will be shown.",
|
"journal-empty-info": "Enter timetable details in the text fields above (use at least one field).<br>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-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.",
|
"journal-no-data": "No data for the current search! Check if the data you entered is correct.",
|
||||||
|
|||||||
@@ -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"}
|
{"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"}
|
||||||
+11
-1
@@ -11,7 +11,17 @@ export default defineConfig({
|
|||||||
workbox: {
|
workbox: {
|
||||||
disableDevLogs: true,
|
disableDevLogs: true,
|
||||||
globPatterns: ['**/*.{js,css,html,png,svg,jpg,ico}'],
|
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 }
|
devOptions: { enabled: false, suppressWarnings: true }
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user