From 5fb1a87b418835fd434f3ebecd0241b2bd665cf5 Mon Sep 17 00:00:00 2001 From: Spythere Date: Mon, 3 Feb 2025 23:51:47 +0100 Subject: [PATCH] chore: added max timetable speed; route pairing fix --- src/components/TrainsView/TrainInfo.vue | 5 +++++ src/components/TrainsView/TrainSchedule.vue | 2 +- src/store/mainStore.ts | 1 + src/typings/api.ts | 3 +-- 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/components/TrainsView/TrainInfo.vue b/src/components/TrainsView/TrainInfo.vue index f61badb..8081e50 100644 --- a/src/components/TrainsView/TrainInfo.vue +++ b/src/components/TrainsView/TrainInfo.vue @@ -140,9 +140,14 @@ tabindex="0" :data-tooltip="$t('trains.vmax-tooltip')" > + vMax: {{ stockSpeedLimit }} km/h + + • vRJ: {{ train.timetableData.trainMaxSpeed }} km/h diff --git a/src/components/TrainsView/TrainSchedule.vue b/src/components/TrainsView/TrainSchedule.vue index 4fec147..78777d8 100644 --- a/src/components/TrainsView/TrainSchedule.vue +++ b/src/components/TrainsView/TrainSchedule.vue @@ -270,7 +270,7 @@ export default defineComponent({ arrivalLine: stop.arrivalLine, departureLine: stop.departureLine, - arrivalLineInfo, + arrivalLineInfo: arrivalLineInfo, departureLineInfo, isExternal, diff --git a/src/store/mainStore.ts b/src/store/mainStore.ts index 2597558..c9d0e10 100644 --- a/src/store/mainStore.ts +++ b/src/store/mainStore.ts @@ -97,6 +97,7 @@ export const useMainStore = defineStore('mainStore', { warningNotes: timetable.warningNotes, hasDangerousCargo: timetable.hasDangerousCargo, hasExtraDeliveries: timetable.hasExtraDeliveries, + trainMaxSpeed: timetable.trainMaxSpeed, timetablePath: timetable.path.split(';').map((pathElementString) => { const [arrival, station, departure] = pathElementString.split(','); diff --git a/src/typings/api.ts b/src/typings/api.ts index 3dde248..baa6cac 100644 --- a/src/typings/api.ts +++ b/src/typings/api.ts @@ -196,9 +196,7 @@ export namespace API { timetableId: number; category: string; route: string; - stopList: TimetableStop[]; - TWR: boolean; SKR: boolean; hasDangerousCargo: boolean; @@ -206,6 +204,7 @@ export namespace API { warningNotes: string | null; sceneries: string[]; path: string; + trainMaxSpeed: number; } }