From 712dc646933e6dbddd69d6344cd94d425dbb4699 Mon Sep 17 00:00:00 2001 From: Spythere Date: Wed, 22 Sep 2021 11:26:30 +0200 Subject: [PATCH] =?UTF-8?q?Dodanie=20mo=C5=BCliwo=C5=9Bci=20zmiany=20serwe?= =?UTF-8?q?r=C3=B3w=20gry?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.scss | 5 ++ src/App.vue | 11 ++- src/components/Global/SelectBox.vue | 2 +- .../StationsView/StationFilterCard.vue | 67 ++++++++++++++++--- src/components/StationsView/StationTable.vue | 4 +- src/data/options.json | 20 ++++++ src/store/index.ts | 23 ++++--- src/views/StationsView.vue | 14 +--- 8 files changed, 104 insertions(+), 42 deletions(-) diff --git a/src/App.scss b/src/App.scss index 6c84526..511bb00 100644 --- a/src/App.scss +++ b/src/App.scss @@ -124,6 +124,7 @@ .info_counter { display: flex; align-items: center; + color: $accentCol; span { @@ -133,6 +134,10 @@ img { width: 1.35em; } + + & > .region { + color: paleturquoise; + } } // FOOTER diff --git a/src/App.vue b/src/App.vue index 838a5bc..8bfc186 100644 --- a/src/App.vue +++ b/src/App.vue @@ -39,7 +39,10 @@ +
+ {{ currentRegion.value }} + icon dispatcher {{ data.activeStationCount }} {{ data.activeTrainCount }} @@ -104,7 +107,7 @@ export default defineComponent({ () => store.getters[GETTERS.allData] ); - const currentRegion: ComputedRef = computed( + const currentRegion: ComputedRef<{ id: string; value: string }> = computed( () => store.getters[GETTERS.currentRegion] ); @@ -154,12 +157,6 @@ export default defineComponent({ StorageManager.setStringValue("lang", lang); }, - // changeRegion(region: string = "eu") { - // this.$store.commit(MUTATIONS.SET_REGION, region); - // this.$store.dispatch(ACTIONS.fetchOnlineData); - - // }, - loadLang() { const storageLang = StorageManager.getStringValue("lang"); diff --git a/src/components/Global/SelectBox.vue b/src/components/Global/SelectBox.vue index c3702ce..5c10c59 100644 --- a/src/components/Global/SelectBox.vue +++ b/src/components/Global/SelectBox.vue @@ -186,7 +186,7 @@ button.selected { height: 100%; - min-width: 10em; + min-width: 9em; text-align: center; } diff --git a/src/components/StationsView/StationFilterCard.vue b/src/components/StationsView/StationFilterCard.vue index 37ec8a4..510065f 100644 --- a/src/components/StationsView/StationFilterCard.vue +++ b/src/components/StationsView/StationFilterCard.vue @@ -13,6 +13,29 @@
{{ $t("filters.title") }}
+
+ + + +
+
-
@@ -78,10 +93,12 @@