From cc8715da67d016e782e8eee2a397cfd8466b91b3 Mon Sep 17 00:00:00 2001 From: Spythere Date: Sun, 14 Nov 2021 19:53:51 +0100 Subject: [PATCH] =?UTF-8?q?WIP:=20funkcjonalno=C5=9B=C4=87=20nowych=20filt?= =?UTF-8?q?r=C3=B3w;=20aktualizacja=20scenerii?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 10 +- .../StationsView/StationFilterCard.vue | 229 ++++++++++++++---- src/data/options.json | 38 +-- src/data/stationData.json | 2 +- src/scripts/interfaces/Filter.ts | 2 + src/scripts/managers/stationFilterManager.ts | 8 +- 6 files changed, 201 insertions(+), 88 deletions(-) diff --git a/src/App.vue b/src/App.vue index 3969a8e..933c623 100644 --- a/src/App.vue +++ b/src/App.vue @@ -153,6 +153,8 @@ export default defineComponent({ this.updateModalVisible = this.hasReleaseNotes && !StorageManager.getBooleanValue("version_notes_read"); + + this.updateToNewestVersion(); }, methods: { @@ -168,8 +170,14 @@ export default defineComponent({ StorageManager.setStringValue("lang", lang); }, - updateToNewest() { + updateToNewestVersion() { // to do + if (!StorageManager.isRegistered("unavailable-status")) { + StorageManager.setBooleanValue("unavailable-status", true); + StorageManager.setBooleanValue("ending-status", true); + StorageManager.setBooleanValue("no-space-status", true); + StorageManager.setBooleanValue("afk-status", true); + } }, loadLang() { diff --git a/src/components/StationsView/StationFilterCard.vue b/src/components/StationsView/StationFilterCard.vue index a786520..f779112 100644 --- a/src/components/StationsView/StationFilterCard.vue +++ b/src/components/StationsView/StationFilterCard.vue @@ -3,7 +3,7 @@
icon-filter -

{{ $t("options.filters") }}

+

{{ $t('options.filters') }}

@@ -11,15 +11,11 @@
-
{{ $t("filters.title") }}
+
{{ $t('filters.title') }}
- +