Pobieranie danych...
-
+
![Error]()
Brak odpowiedzi ze strony serwera!
@@ -67,20 +67,25 @@ import Clock from "@/components/App/Clock.vue";
export default class App extends Vue {
ErrorIcon = require("@/assets/icon-error.svg");
- @Getter("getOnlineInfo") onlineInfo;
- @Getter("getConnectionState") connState;
+ @Action("synchronizeData") synchronizeData;
- @Action("initStations") initStations;
+ @Getter("getAllData") data;
- @Action("fetchOnlineStations") fetchStations;
- @Action("fetchTrainsData") fetchTrainsData;
+ // @Getter("getOnlineInfo") onlineInfo;
+ // @Getter("getConnectionState") connState;
- async mounted() {
- this.initStations();
- this.fetchTrainsData();
+ // @Action("initStations") initStations;
- setInterval(this.fetchStations, 15000);
- setInterval(this.fetchTrainsData, 10000);
+ // @Action("fetchOnlineStations") fetchStations;
+ // @Action("fetchTrainsData") fetchTrainsData;
+
+ mounted() {
+ this.synchronizeData();
+ // this.initStations();
+ // this.fetchTrainsData();
+
+ // setInterval(this.fetchStations, 15000);
+ // setInterval(this.fetchTrainsData, 45000);
}
}
@@ -161,10 +166,10 @@ export default class App extends Vue {
background: $bgCol;
color: white;
- font-size: calc(1rem + 2.1vw);
+ font-size: calc(1.1rem + 2.1vw);
@include smallScreen() {
- font-size: 2rem;
+ font-size: 2.5rem;
}
}
diff --git a/src/components/App/Clock.vue b/src/components/App/Clock.vue
index 474d4f5..3bf4f57 100644
--- a/src/components/App/Clock.vue
+++ b/src/components/App/Clock.vue
@@ -34,7 +34,7 @@ export default Vue.extend({
align-items: center;
@include smallScreen() {
- font-size: 0.65rem;
+ font-size: 0.95rem;
}
}
\ No newline at end of file
diff --git a/src/components/StationsView/FilterCard.vue b/src/components/StationsView/FilterCard.vue
index 8420c10..5dfdad1 100644
--- a/src/components/StationsView/FilterCard.vue
+++ b/src/components/StationsView/FilterCard.vue
@@ -165,8 +165,8 @@ export default class FilterCard extends Vue {
box-shadow: 0 0 15px 5px #474747;
@include smallScreen() {
- width: 85vw;
- font-size: calc(0.3em + 1vw);
+ width: 100%;
+ font-size: calc(0.7em + 1.1vw);
}
@include bigScreen {
diff --git a/src/components/StationsView/StationCard.vue b/src/components/StationsView/StationCard.vue
index 44638c8..60885a0 100644
--- a/src/components/StationsView/StationCard.vue
+++ b/src/components/StationsView/StationCard.vue
@@ -124,11 +124,12 @@
@@ -174,16 +175,19 @@
+ Odprawiony
Na stacji
+
+ Postój
W drodze
+
Skończył bieg
- Odprawiony
@@ -220,6 +224,8 @@