diff --git a/src/App.vue b/src/App.vue index 9104bbc..59c03d1 100644 --- a/src/App.vue +++ b/src/App.vue @@ -13,9 +13,9 @@
icon dispatcher - {{stationCount}} + {{onlineInfo.stationCount}} - {{trainCount}} + {{onlineInfo.trainCount}} icon train
@@ -57,16 +57,18 @@ import Clock from "@/components/App/Clock.vue"; components: { Error, Loading, Clock }, }) export default class App extends Vue { - @Getter("getStations") stations; - @Getter("getTrainCount") trainCount; - @Getter("getStationCount") stationCount; + @Getter("getStationList") stations; + @Getter("getOnlineInfo") onlineInfo; @Action("initStations") initStations; + @Action("fetchOnlineStations") fetchStations; errorMessage: string = ""; async mounted() { this.initStations(); + + setInterval(this.fetchStations, 5000); } } diff --git a/src/components/TrainsView/TrainSorter.vue b/src/components/TrainsView/TrainSorter.vue index b7ab535..aca3639 100644 --- a/src/components/TrainsView/TrainSorter.vue +++ b/src/components/TrainsView/TrainSorter.vue @@ -137,6 +137,8 @@ export default class TrainSorter extends Vue { top: 0; left: 0; + z-index: 5; + width: 100%; background-color: rgba(#333, 0.85); overflow: hidden; diff --git a/src/components/TrainsView/TrainStats.vue b/src/components/TrainsView/TrainStats.vue index a293628..aa91d03 100644 --- a/src/components/TrainsView/TrainStats.vue +++ b/src/components/TrainsView/TrainStats.vue @@ -5,36 +5,32 @@ class="stats-btn button" @click="toggleStats" v-if="trains.length > 0" - >{{statsOpen ? 'Zamknij' : 'Otwórz'}} statystki ruchu + >STATYSTYKI RUCHU -
-

STATYSTYKI RUCHU

-
-
PRĘDKOŚCI POCIĄGÓW (MIN | ŚR | MAX)
-
{{speedStats.min}} | {{speedStats.avg}} | {{speedStats.max}} km/h
-
- -
-
DŁUGOŚCI ROZKŁADÓW (MIN | ŚR | MAX)
-
{{timetableStats.min}} | {{timetableStats.avg}} | {{timetableStats.max}} km
-
- -
-
KATEGORIE RJ
-
- - {{key}} - {{value}} - + +
+

STATYSTYKI RUCHU

+
+
PRĘDKOŚCI POCIĄGÓW (MIN | ŚR | MAX) [km/h]
+
{{speedStats.min}} | {{speedStats.avg}} | {{speedStats.max}}
-
-
-
TWR/SKR
-
+
+
DŁUGOŚCI ROZKŁADÓW (MIN | ŚR | MAX) [km]
+
{{timetableStats.min}} | {{timetableStats.avg}} | {{timetableStats.max}}
+
+ +
+
KATEGORIE RJ
+
+ + {{key}} + {{value}} + +
Wysokiego ryzyka [{{specialTrainCount[0]}}] @@ -45,15 +41,15 @@ [{{specialTrainCount[1]}}]
-
-
-
NAJCZĘSTSZE JEDNOSTKI
-
-
{{loco[0]}} | {{loco[1]}}
+
+
NAJCZĘSTSZE JEDNOSTKI
+
+
{{loco[0]}} | {{loco[1]}}
+
-
+
@@ -166,13 +162,28 @@ export default class TrainStats extends Vue {