From 83d8c8ec6dd7d02500c192cf05f863f7e7477405 Mon Sep 17 00:00:00 2001 From: Saeid Doroudi Date: Thu, 11 Apr 2024 15:56:48 +0330 Subject: [PATCH] fix: :ambulance: fix google analytics failed call fix analytics direct call that prevent load app, update github icon, and resolve warnings --- locales/en.yml | 3 +++ locales/fa.yml | 1 + package.json | 1 - src/components/Navbar.vue | 26 +++++++++++++++----------- src/main.ts | 3 ++- src/mocks/handlers/product.handler.ts | 2 +- src/pages/Account/login.vue | 4 +--- src/pages/[...all].vue | 1 - 8 files changed, 23 insertions(+), 18 deletions(-) diff --git a/locales/en.yml b/locales/en.yml index 070c6a5..56bf704 100644 --- a/locales/en.yml +++ b/locales/en.yml @@ -3,6 +3,8 @@ description: Vue 3 Dashboard direction: ltr en: English fa: Persian +English: English +Persian: Persian menu: dashboard: Dashboard productManagement: Products Management @@ -55,6 +57,7 @@ login: haveNotAccount: Don't have an account? createAccount: Create One! failedMessage: Login Failed + successMessage: Logged In Successfully 🎉 validations: userNameRequired: Enter username passwordRequired: Password is required diff --git a/locales/fa.yml b/locales/fa.yml index c2b5560..19b87c9 100644 --- a/locales/fa.yml +++ b/locales/fa.yml @@ -56,6 +56,7 @@ forgot: login: createAccount: یکی بسازید failedMessage: خطا در ورود + successMessage: ورود موفق 🎉 forgetPassword: فراموشی رمز عبور haveNotAccount: حساب کاربری ندارید؟ loginButton: ورود diff --git a/package.json b/package.json index a30cdab..2967c4b 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,6 @@ "pinia": "^2.1.7", "vue": "^3.4.21", "vue-demi": "^0.14.7", - "vue-github-button": "^3.1.0", "vue-i18n": "^9.10.2", "vue-router": "^4.3.0", "vue3-apexcharts": "^1.5.2" diff --git a/src/components/Navbar.vue b/src/components/Navbar.vue index a945f00..a25355e 100644 --- a/src/components/Navbar.vue +++ b/src/components/Navbar.vue @@ -4,7 +4,8 @@ import { PanelLeftContract16Regular as CollapseIcon, PanelLeftExpand20Regular as OpenIcon, } from '@vicons/fluent' -import GithubButton from 'vue-github-button' + +// import GithubButton from 'vue-github-button' const layoutStore = useLayoutStore() const { collapsed } = storeToRefs(layoutStore) @@ -24,17 +25,20 @@ const { collapsed } = storeToRefs(layoutStore)