From a38d7bd27c5e8280435589034e1f8b5df9d36031 Mon Sep 17 00:00:00 2001 From: Spythere Date: Sun, 15 Nov 2020 14:54:15 +0100 Subject: [PATCH] Restrukturyzacja kodu w widoku scenerii. --- src/components/SceneryView/SceneryInfo.vue | 337 ++++++++ .../SceneryView/SceneryTimetable.vue | 454 ++++++++++ src/views/SceneryView.vue | 787 +----------------- 3 files changed, 824 insertions(+), 754 deletions(-) create mode 100644 src/components/SceneryView/SceneryInfo.vue create mode 100644 src/components/SceneryView/SceneryTimetable.vue diff --git a/src/components/SceneryView/SceneryInfo.vue b/src/components/SceneryView/SceneryInfo.vue new file mode 100644 index 0000000..3769579 --- /dev/null +++ b/src/components/SceneryView/SceneryInfo.vue @@ -0,0 +1,337 @@ + + + + + \ No newline at end of file diff --git a/src/components/SceneryView/SceneryTimetable.vue b/src/components/SceneryView/SceneryTimetable.vue new file mode 100644 index 0000000..6110036 --- /dev/null +++ b/src/components/SceneryView/SceneryTimetable.vue @@ -0,0 +1,454 @@ + + + + + \ No newline at end of file diff --git a/src/views/SceneryView.vue b/src/views/SceneryView.vue index ed5ca0a..afb2dc2 100644 --- a/src/views/SceneryView.vue +++ b/src/views/SceneryView.vue @@ -9,338 +9,52 @@ Wróć na stronę główną +
-
-
- {{ stationInfo.stationName }} + - {{ stationInfo.stationName }} -
-
#{{ stationInfo.stationHash }}
-
- -
-
- - - icon-user - {{ stationInfo.currentUsers }} - / - {{ stationInfo.maxUsers }} - - - icon-spawn - {{ stationInfo.spawnString.length }} - - - icon-timetable - - {{stationInfo.scheduledTrains.length}} - / - {{ stationInfo.scheduledTrains.filter(train => train.stopInfo.confirmed).length }} - - -
- -
- - - - - SBL - - default-pack - - non-public - - icon-unavailable -
- -
-
- {{ stationInfo.dispatcherExp > 1 ? stationInfo.dispatcherExp : "L"}} - - {{ stationInfo.dispatcherName }} -
- - {{ stationInfo.occupiedTo }} -
- -
-
-

- GRACZE ONLINE - icon-user -

-
    -
  • - - {{ train.trainNo }} - | - {{ train.driverName }} - -
  • -
- - BRAK -
-
-

- OTWARTE SPAWNY - icon-spawn -

- -
- {{ spawn }} -
- BRAK -
-
-
- -
-

- AKTYWNE ROZKŁADY JAZDY - - icon-view - -

- -
-
-
- {{ selectedOption }} - icon-select -
- -
    -
  • - - -
  • -
-
-
- - Ładowanie... - - Brak aktywnych rozkładów! - - -
- - - - - {{ scheduledTrain.category }} - {{ scheduledTrain.trainNo }} - - | - - {{ scheduledTrain.driverName }} - - -
- {{ scheduledTrain.beginsAt }} - {{ scheduledTrain.terminatesAt }} -
-
- - - {{scheduledTrain.stopLabel}} - -
- - - - - ROZPOCZYNA -
BIEG
-
- - {{ scheduledTrain.stopInfo.arrivalTimeString }} ({{ - scheduledTrain.stopInfo.arrivalDelay - }}) - -
- - - - {{ scheduledTrain.stopInfo.stopTime }} - {{ scheduledTrain.stopInfo.stopType }} - - - - - KOŃCZY BIEG - - {{ scheduledTrain.stopInfo.departureTimeString }} ({{ - scheduledTrain.stopInfo.departureDelay - }}) - - -
-
-
-
+
\ No newline at end of file