Pobieranie danych...
+
![Error]()
@@ -68,24 +74,10 @@ export default class App extends Vue {
ErrorIcon = require("@/assets/icon-error.svg");
@Action("synchronizeData") synchronizeData;
-
@Getter("getAllData") data;
- // @Getter("getOnlineInfo") onlineInfo;
- // @Getter("getConnectionState") connState;
-
- // @Action("initStations") initStations;
-
- // @Action("fetchOnlineStations") fetchStations;
- // @Action("fetchTrainsData") fetchTrainsData;
-
mounted() {
this.synchronizeData();
- // this.initStations();
- // this.fetchTrainsData();
-
- // setInterval(this.fetchStations, 15000);
- // setInterval(this.fetchTrainsData, 45000);
}
}
@@ -94,6 +86,7 @@ export default class App extends Vue {
@import "./styles/responsive.scss";
@import "./styles/variables.scss";
@import "./styles/global.scss";
+@import "./styles/scenery_status.scss";
.view-anim {
&-enter {
@@ -183,7 +176,7 @@ export default class App extends Vue {
}
.header {
- background: #333;
+ background: $primaryCol;
padding: 0.15em;
border-radius: 0 0 0.7em 0.7em;
diff --git a/src/components/StationsView/StationCard.vue b/src/components/StationsView/StationCard.vue
index 63b6046..b7f9499 100644
--- a/src/components/StationsView/StationCard.vue
+++ b/src/components/StationsView/StationCard.vue
@@ -5,18 +5,21 @@
class="schedule-icon"
:src="require('@/assets/icon-clock.svg')"
alt="schedule-icon"
- @click="() => cardMode = cardMode == 0 ? 1 : 0"
+ @click="() => (cardMode = cardMode == 0 ? 1 : 0)"
+ />
+
![exit-icon]()
-
-
+
-
{{ 2 > parseInt(stationInfo.reqLevel) ? "L" : stationInfo.reqLevel}}
+
{{
+ 2 > parseInt(stationInfo.reqLevel) ? "L" : stationInfo.reqLevel
+ }}
{{stationInfo.stationName}}
+ >{{ stationInfo.stationName }}
-
{{stationInfo.stationName}}
+
{{ stationInfo.stationName }}
- {{stationInfo.stationHash}}
+ {{ stationInfo.stationHash }}
@@ -80,30 +84,39 @@
{{stationInfo.online ? computedDispatcherExp : ""}}
+ :style="
+ calculateExpStyle(
+ stationInfo.dispatcherExp,
+ stationInfo.dispatcherIsSupporter
+ )
+ "
+ >
+ {{ stationInfo.online ? computedDispatcherExp : "" }}
+
![like-icon]()
-
{{stationInfo.dispatcherRate}}
+
{{ stationInfo.dispatcherRate }}
STATUS
-
{{stationInfo.occupiedTo}}
+
{{
+ stationInfo.occupiedTo
+ }}
@@ -113,7 +126,8 @@
class="spawn"
v-for="(spawn, i) in stationInfo.spawnString"
:key="spawn + stationInfo.dispatcherName + i"
- >{{spawn}}
+ >{{ spawn }}
BRAK
@@ -129,24 +143,31 @@
:key="train.trainNo + train.driverName"
>
- {{train.trainNo}}
+ {{ train.trainNo }}
|
- {{train.driverName}}
+ {{ train.driverName }}