From c788668049b4efec2ab75d68508fa8cb2d509dfb Mon Sep 17 00:00:00 2001
From: Bubka <858858+Bubka@users.noreply.github.com>
Date: Thu, 26 Jun 2025 11:22:35 +0200
Subject: [PATCH] Replace local Kicker component with the 2fauth/ui one
---
resources/js/App.vue | 59 ++++++++++++-------------
resources/js/app.js | 9 ++--
resources/js/components/Kicker.vue | 70 ------------------------------
resources/js/stores/user.js | 4 +-
4 files changed, 35 insertions(+), 107 deletions(-)
delete mode 100644 resources/js/components/Kicker.vue
diff --git a/resources/js/App.vue b/resources/js/App.vue
index fcc4ab69..7fb2533d 100644
--- a/resources/js/App.vue
+++ b/resources/js/App.vue
@@ -1,12 +1,36 @@
-
-
-
-
\ No newline at end of file
diff --git a/resources/js/stores/user.js b/resources/js/stores/user.js
index 67fd4a4f..a2e3a68b 100644
--- a/resources/js/stores/user.js
+++ b/resources/js/stores/user.js
@@ -78,7 +78,7 @@ export const useUserStore = defineStore({
authService.logout({ returnError: true }).then(() => {
if (kicked) {
notify.clear()
- notify.warn({ text: t('message.auth.autolock_triggered_punchline'), duration:-1 })
+ notify.warn({ text: this.$i18n.global.t('message.auth.autolock_triggered_punchline'), duration:-1 })
}
this.tossOut()
})
@@ -163,7 +163,7 @@ export const useUserStore = defineStore({
})
.catch(error => {
const notify = useNotify()
- notify.alert({ text: t('error.data_cannot_be_refreshed_from_server') })
+ notify.alert({ text: this.$i18n.global.t('error.data_cannot_be_refreshed_from_server') })
})
}