From 373525065daeebc940e1580be6013da9df8cc0e7 Mon Sep 17 00:00:00 2001 From: Spythere Date: Thu, 26 Nov 2020 22:41:55 +0100 Subject: [PATCH] =?UTF-8?q?Nowe=20wska=C5=BAniki=20statusu=20=C5=82adowani?= =?UTF-8?q?a?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 77 ++----- src/store/store.ts | 1 + src/views/StationsView.vue | 427 +++++++++++++++++++++++-------------- 3 files changed, 276 insertions(+), 229 deletions(-) diff --git a/src/App.vue b/src/App.vue index 21176e8..ec19925 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,5 +1,5 @@ @@ -63,6 +59,8 @@ export default class App extends Vue { @Action("synchronizeData") synchronizeData; @Getter("getAllData") data; + private VERSION = "1.3.2"; + get dataStatusClass() { if (this.data.dataConnectionStatus == 0) return "loading"; if (this.data.dataConnectionStatus == 1) return "error"; @@ -99,43 +97,6 @@ export default class App extends Vue { } } -// WARNING MESSAGE -.warning { - display: flex; - justify-content: center; - align-items: center; - - position: fixed; - bottom: 0; - - width: 100%; - - font-size: calc(0.7rem + 0.5vw); - - padding: 0.5em; - - &.loading { - background: #cc8b21; - } - - &.error { - background: firebrick; - } - - // WARNING SHOW & HIDE ANIMATION - &-anim { - &-enter-active, - &-leave-active { - transition: all $animDuration * 3 $animType; - } - - &-enter, - &-leave-to { - opacity: 0; - } - } -} - .route { margin: 0 0.2em; @@ -210,10 +171,6 @@ export default class App extends Vue { font-size: 0.35em; } -// MAIN -.app_main { -} - // COUNTER .info_counter { display: flex; @@ -233,21 +190,15 @@ export default class App extends Vue { // FOOTER .app_footer { - background: #111; - padding: 0.3rem; - color: white; - max-width: 100%; font-size: calc(0.5rem + 0.5vw); + max-width: 100%; + padding: 0.3rem; - flex-direction: column; + z-index: 10; - span { - margin: 0.2rem; + background: #111; + color: white; - &:nth-child(2) { - color: #888; - font-size: 0.95em; - } - } + text-align: center; } diff --git a/src/store/store.ts b/src/store/store.ts index efc6faa..7d674c2 100644 --- a/src/store/store.ts +++ b/src/store/store.ts @@ -122,6 +122,7 @@ export default class Store extends VuexModule { trainCount: this.trainCount, stationCount: this.stationCount, dataConnectionStatus: this.dataConnectionStatus, + timetableDataStatus: this.timetableLoaded }; } diff --git a/src/views/StationsView.vue b/src/views/StationsView.vue index 734d361..38939b9 100644 --- a/src/views/StationsView.vue +++ b/src/views/StationsView.vue @@ -1,38 +1,48 @@