From c2a2e35cf7bdadb883e8f4235b78220df61d89f2 Mon Sep 17 00:00:00 2001 From: Spythere Date: Wed, 1 Jun 2022 01:42:34 +0200 Subject: [PATCH] Powiadomienie o migracji --- src/App.scss | 10 ++++++++++ src/App.vue | 15 +++++++++++++++ src/locales/en.json | 4 +++- src/locales/pl.json | 4 +++- 4 files changed, 31 insertions(+), 2 deletions(-) diff --git a/src/App.scss b/src/App.scss index a868f58..2381159 100644 --- a/src/App.scss +++ b/src/App.scss @@ -63,6 +63,16 @@ } } +.warning { + background-color: firebrick; + text-align: center; + padding: 0.5em 0.4em; + max-width: 1100px; + margin: 0 auto; + + border-radius: 0 0 1em 1em; +} + // Error icon .wip-alert { padding: 0 0.5em; diff --git a/src/App.vue b/src/App.vue index 6efb52a..4335eec 100644 --- a/src/App.vue +++ b/src/App.vue @@ -59,6 +59,13 @@
+
+ {{ $t('app.migration-warning') }} + +
+ @@ -132,6 +139,8 @@ export default defineComponent({ VERSION: packageInfo.version, updateModalVisible: false, hasReleaseNotes: false, + warningConfirmed: false, + currentLang: 'pl', brand_logo: require('@/assets/stacjownik-header-logo.svg'), @@ -147,6 +156,7 @@ export default defineComponent({ created() { this.loadLang(); + this.warningConfirmed = StorageManager.getBooleanValue('warning-confirmed') || false; }, async mounted() { @@ -162,6 +172,11 @@ export default defineComponent({ }, methods: { + confirmWarning() { + this.warningConfirmed = true; + StorageManager.setBooleanValue('warning-confirmed', true); + }, + toggleUpdateModal() { this.updateModalVisible = !this.updateModalVisible; StorageManager.setBooleanValue('version_notes_read', true); diff --git a/src/locales/en.json b/src/locales/en.json index bfb5ab7..a82f431 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -6,7 +6,9 @@ "loading": "Loading data...", "support": "Support the project", "error": "An error occured while loading data!", - "no-result": "No results for current search!" + "no-result": "No results for current search!", + "migration-warning": "Stacjownik services will be unavailable 2/06/2022 between 1-3am due to the migration of API hostings!", + "migration-confirm": "Roger that!" }, "data-status": { "S1a-connection": "S1a signal
Cannot connect with SWDR API service!", diff --git a/src/locales/pl.json b/src/locales/pl.json index cd24cc2..df4a103 100644 --- a/src/locales/pl.json +++ b/src/locales/pl.json @@ -6,7 +6,9 @@ "loading": "Pobieranie danych...", "support": "Wspomóż projekt", "error": "Wystąpił problem z załadowaniem danych!", - "no-result": "Brak wyników o podanych kryteriach!" + "no-result": "Brak wyników o podanych kryteriach!", + "migration-warning": "Usługi Stacjownika będą niedostępne w godzinach 1:00-3:00 2 czerwca 2022r. z powodu migracji hostingów API!", + "migration-confirm": "Przyjąłem!" }, "data-status": {