From d4ad197a5aeb52b8e21972535a0f64e30b0861dd Mon Sep 17 00:00:00 2001 From: 10G Meow <10gmeow@gmail.com> Date: Mon, 19 Aug 2024 17:07:06 +0300 Subject: [PATCH] unsupported browser alert --- src/App.vue | 5 ++ src/assets/translations/en.json | 4 +- src/components/UnsupportedBrowserAlert.vue | 53 ++++++++++++++++++++++ 3 files changed, 61 insertions(+), 1 deletion(-) create mode 100644 src/components/UnsupportedBrowserAlert.vue diff --git a/src/App.vue b/src/App.vue index 32b5f2b..0a685ba 100644 --- a/src/App.vue +++ b/src/App.vue @@ -25,6 +25,7 @@ type="list-item-avatar-two-line, divider, list-item-three-line, card-heading" v-if="showLoadingScreen" > + @@ -34,10 +35,14 @@ import stickers from "./plugins/stickers"; import { registerServiceWorker, notificationCount, windowNotificationPermission } from "./plugins/notificationAndServiceWorker.js" import logoMixin from "./components/logoMixin"; import { mapState } from 'vuex' +import UnsupportedBrowserAlert from "./components/UnsupportedBrowserAlert.vue"; export default { name: "App", mixins: [logoMixin], + components: { + UnsupportedBrowserAlert + }, data() { return { loading: true, diff --git a/src/assets/translations/en.json b/src/assets/translations/en.json index 50c591e..1f6e8ab 100644 --- a/src/assets/translations/en.json +++ b/src/assets/translations/en.json @@ -19,7 +19,9 @@ "days": "1 day ago | {n} days ago" }, "close": "close", - "notify": "Notify" + "notify": "Notify", + "different_browser_title": "Try different browser", + "different_browser_content": "Some features may break. Copy and open link in a different browser." }, "menu": { "start_private_chat": "Direct Message with this user", diff --git a/src/components/UnsupportedBrowserAlert.vue b/src/components/UnsupportedBrowserAlert.vue new file mode 100644 index 0000000..e8b3b71 --- /dev/null +++ b/src/components/UnsupportedBrowserAlert.vue @@ -0,0 +1,53 @@ + + + \ No newline at end of file