diff --git a/public/icon/C.png b/public/icon/C.png deleted file mode 100644 index aa07fec..0000000 Binary files a/public/icon/C.png and /dev/null differ diff --git a/public/icon/E1.png b/public/icon/E1.png deleted file mode 100644 index d434aa5..0000000 Binary files a/public/icon/E1.png and /dev/null differ diff --git a/public/icon/E2.png b/public/icon/E2.png deleted file mode 100644 index edf9ee6..0000000 Binary files a/public/icon/E2.png and /dev/null differ diff --git a/public/icon/E3.png b/public/icon/E3.png deleted file mode 100644 index 70dcf6d..0000000 Binary files a/public/icon/E3.png and /dev/null differ diff --git a/public/icon/E4-1.png b/public/icon/E4-1.png deleted file mode 100644 index d5d452f..0000000 Binary files a/public/icon/E4-1.png and /dev/null differ diff --git a/public/icon/EL.png b/public/icon/EL.png deleted file mode 100644 index accba6c..0000000 Binary files a/public/icon/EL.png and /dev/null differ diff --git a/public/icon/F1.png b/public/icon/F1.png deleted file mode 100644 index fa1da1a..0000000 Binary files a/public/icon/F1.png and /dev/null differ diff --git a/public/icon/L1.png b/public/icon/L1.png deleted file mode 100644 index c94f5ab..0000000 Binary files a/public/icon/L1.png and /dev/null differ diff --git a/public/icon/L2.png b/public/icon/L2.png deleted file mode 100644 index 82884af..0000000 Binary files a/public/icon/L2.png and /dev/null differ diff --git a/public/icon/M1.png b/public/icon/M1.png deleted file mode 100644 index 4f6cf25..0000000 Binary files a/public/icon/M1.png and /dev/null differ diff --git a/public/icon/M10.png b/public/icon/M10.png deleted file mode 100644 index 4c5c799..0000000 Binary files a/public/icon/M10.png and /dev/null differ diff --git a/public/icon/M12.png b/public/icon/M12.png deleted file mode 100644 index fb9cd38..0000000 Binary files a/public/icon/M12.png and /dev/null differ diff --git a/public/icon/M5-2.png b/public/icon/M5-2.png deleted file mode 100644 index 736489d..0000000 Binary files a/public/icon/M5-2.png and /dev/null differ diff --git a/public/icon/M8.png b/public/icon/M8.png deleted file mode 100644 index f509702..0000000 Binary files a/public/icon/M8.png and /dev/null differ diff --git a/public/icon/P.png b/public/icon/P.png deleted file mode 100644 index 7905866..0000000 Binary files a/public/icon/P.png and /dev/null differ diff --git a/public/icon/P1.png b/public/icon/P1.png deleted file mode 100644 index b56f53d..0000000 Binary files a/public/icon/P1.png and /dev/null differ diff --git a/public/icon/PSC.png b/public/icon/PSC.png deleted file mode 100644 index 85d0c31..0000000 Binary files a/public/icon/PSC.png and /dev/null differ diff --git a/public/icon/R.png b/public/icon/R.png deleted file mode 100644 index 91c66e5..0000000 Binary files a/public/icon/R.png and /dev/null differ diff --git a/public/icon/W1.png b/public/icon/W1.png deleted file mode 100644 index 390fc40..0000000 Binary files a/public/icon/W1.png and /dev/null differ diff --git a/public/icon/W2.png b/public/icon/W2.png deleted file mode 100644 index 66930ba..0000000 Binary files a/public/icon/W2.png and /dev/null differ diff --git a/public/icon/W3.png b/public/icon/W3.png deleted file mode 100644 index c10f720..0000000 Binary files a/public/icon/W3.png and /dev/null differ diff --git a/src/components/alarm/AlarmDrawer.vue b/src/components/alarm/AlarmDrawer.vue index a1993d1..9f6266a 100644 --- a/src/components/alarm/AlarmDrawer.vue +++ b/src/components/alarm/AlarmDrawer.vue @@ -38,7 +38,7 @@ const toggleErrIcon = () => {
diff --git a/src/components/navbar/Navbar.vue b/src/components/navbar/Navbar.vue index 5eb539b..8753ae6 100644 --- a/src/components/navbar/Navbar.vue +++ b/src/components/navbar/Navbar.vue @@ -92,12 +92,11 @@ const src = import.meta.env.MODE === "production" ? "./logo.svg" : Logo; class="dropdown-content translate-y-2 z-[100] menu py-3 shadow rounded w-32 bg-[#4c625e] border text-center" >
  • - {{ $t("sign_out") }} + >{{ $t("sign_out") }} +
  • diff --git a/src/components/navbar/NavbarLang.vue b/src/components/navbar/NavbarLang.vue index 7de7648..7595e8b 100644 --- a/src/components/navbar/NavbarLang.vue +++ b/src/components/navbar/NavbarLang.vue @@ -17,23 +17,25 @@ const toggleLanguage = (lang) => { type="button" class="flex flex-col justify-center items-center btn-group" > - + {{ $t("language") }} diff --git a/src/fontawsomeIconRegister.js b/src/fontawsomeIconRegister.js index 2e75f12..4d6b408 100644 --- a/src/fontawsomeIconRegister.js +++ b/src/fontawsomeIconRegister.js @@ -56,6 +56,7 @@ import { faWind, faEye, faEyeSlash, + faGlobe } from "@fortawesome/free-solid-svg-icons"; /* add icons to the library */ @@ -112,7 +113,8 @@ library.add( faCar, faWind, faEye, - faEyeSlash + faEyeSlash, + faGlobe ); export default library; diff --git a/src/router/index.js b/src/router/index.js index cdd85f8..9ba9b6d 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -94,16 +94,6 @@ const router = createRouter({ name: "mytestfile", component: Test, }, - { - path: "/logout", - name: "logout", - beforeEnter: (to, from, next) => { - const auth = useUserInfoStore(); - document.cookie = "JWT-Authorization="; - auth.user.token = ""; - next({ path: "/login", replace: true }); - }, - }, ], }); @@ -115,6 +105,12 @@ router.beforeEach(async (to, from, next) => { const auth = useUserInfoStore(); const token = useGetCookie("JWT-Authorization"); + if (to.path === "/logout") { + document.cookie = "JWT-Authorization="; + auth.user.token = ""; + next({ path: "/login" }); + } + if ((authRequired && !token) || to.path === "/") { auth.user.token = ""; next({ path: "/login" }); diff --git a/src/views/alert/AlertManagement.vue b/src/views/alert/AlertManagement.vue index 55d9e63..5db1aaa 100644 --- a/src/views/alert/AlertManagement.vue +++ b/src/views/alert/AlertManagement.vue @@ -40,9 +40,14 @@ watch(locale, () => { const activeTab = computed(() => { return items.value.find(({ active }) => active); }); + +const activeTitle = computed(() => { + return activeTab.value ? activeTab.value.title : ''; +});