From ba70fa1316384375fef0df6eb988058155173391 Mon Sep 17 00:00:00 2001 From: Spythere Date: Sun, 1 Oct 2023 15:08:01 +0200 Subject: [PATCH] =?UTF-8?q?miniaturki=20pojazd=C3=B3w=20c.d.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Global/TrainThumbnail.vue | 48 +- .../JournalTimetables/TimetableExtra.vue | 37 +- .../TimetableHistoryList.vue | 56 +- src/components/TrainsView/TrainInfo.vue | 14 +- src/components/TrainsView/TrainStats.vue | 337 - src/data/mockWebsocketData.json | 29876 ++++++++-------- src/views/TrainsView.vue | 2 - 7 files changed, 14430 insertions(+), 15940 deletions(-) delete mode 100644 src/components/TrainsView/TrainStats.vue diff --git a/src/components/Global/TrainThumbnail.vue b/src/components/Global/TrainThumbnail.vue index 86a9540..d0a80a3 100644 --- a/src/components/Global/TrainThumbnail.vue +++ b/src/components/Global/TrainThumbnail.vue @@ -1,5 +1,23 @@ diff --git a/src/components/JournalView/JournalTimetables/TimetableExtra.vue b/src/components/JournalView/JournalTimetables/TimetableExtra.vue index 0e74000..ebe9b78 100644 --- a/src/components/JournalView/JournalTimetables/TimetableExtra.vue +++ b/src/components/JournalView/JournalTimetables/TimetableExtra.vue @@ -17,49 +17,24 @@ {{ $t('journal.stock-length') }} - - {{ - currentHistoryIndex == 0 - ? timetable.stockLength - : stockHistory[currentHistoryIndex].stockLength || timetable.stockLength - }}m - + {{ currentHistoryIndex == 0 ? timetable.stockLength : stockHistory[currentHistoryIndex].stockLength || timetable.stockLength }}m {{ $t('journal.stock-mass') }} - - {{ - Math.floor( - (currentHistoryIndex == 0 - ? timetable.stockMass! - : stockHistory[currentHistoryIndex].stockMass || timetable.stockMass) / 1000 - ) - }}t - + {{ Math.floor((currentHistoryIndex == 0 ? timetable.stockMass! : stockHistory[currentHistoryIndex].stockMass || timetable.stockMass) / 1000) }}t
-