From 769d0b2ade7f0005df62390573d3a6cbc48f221a Mon Sep 17 00:00:00 2001 From: Babak Alizadeh Date: Sat, 22 Mar 2025 21:30:34 +0000 Subject: [PATCH] bug fix in slogan and application name --- .../Controller/Front/UiGeneralController.php | 2 +- webUI/src/hesabixConfig.js | 2 +- webUI/src/i18n/fa_lang.ts | 5 -- webUI/src/views/acc/App.vue | 6 +- webUI/src/views/user/InstallPWA.vue | 64 +++++++++++-------- webUI/src/views/user/active-account.vue | 9 ++- webUI/src/views/user/login.vue | 7 +- .../profile/forget-password-submit-code.vue | 7 +- .../views/user/profile/forget-password.vue | 7 +- webUI/src/views/user/profile/profile-main.vue | 10 +-- webUI/src/views/user/register.vue | 7 +- webUI/src/views/user/single.vue | 18 ++++-- 12 files changed, 89 insertions(+), 55 deletions(-) diff --git a/hesabixCore/src/Controller/Front/UiGeneralController.php b/hesabixCore/src/Controller/Front/UiGeneralController.php index a76dce7..b5cebe7 100644 --- a/hesabixCore/src/Controller/Front/UiGeneralController.php +++ b/hesabixCore/src/Controller/Front/UiGeneralController.php @@ -25,7 +25,7 @@ class UiGeneralController extends AbstractController #[Route('/system/getslogon', name: 'general_get_slogon')] public function general_get_slogon(registryMGR $registryManager): JsonResponse { - $name = $registryManager->get('system', 'appSlogon'); + $name = $registryManager->get('system', 'appSlogan'); return $this->json($name); } #[Route('/system/geturl', name: 'general_get_url')] diff --git a/webUI/src/hesabixConfig.js b/webUI/src/hesabixConfig.js index 20227bf..a9dd3c8 100644 --- a/webUI/src/hesabixConfig.js +++ b/webUI/src/hesabixConfig.js @@ -74,7 +74,7 @@ export async function getSiteName() { ); } -export async function getSiteSlogon() { +export async function getSiteSlogan() { return fetchAndCache( `${getApiUrl()}/system/getslogon`, KEYS.SITE_SLOGON, diff --git a/webUI/src/i18n/fa_lang.ts b/webUI/src/i18n/fa_lang.ts index 243854e..a34c7e1 100644 --- a/webUI/src/i18n/fa_lang.ts +++ b/webUI/src/i18n/fa_lang.ts @@ -432,7 +432,6 @@ const fa_lang = { close_dialog: "بستن", }, app: { - name: "حسابیکس", loading: "در حال بارگذاری...", please_wait: "لطفا صبر کنید ...", logout: "خروج", @@ -511,10 +510,6 @@ const fa_lang = { file_size_limit: 'حجم فایل انتخابی بیش از حد مجاز است.', "form_invalid": "لطفاً فرم را به درستی پر کنید" }, - hesabix: { - banner: "حسابیکس سامانه جامع مدیریت کسب‌و‌کار", - name: "حسابیکس" - }, title: { user: { "dashboard": "پیشخوان کاربر", diff --git a/webUI/src/views/acc/App.vue b/webUI/src/views/acc/App.vue index 29ad0ec..c4c2dfc 100644 --- a/webUI/src/views/acc/App.vue +++ b/webUI/src/views/acc/App.vue @@ -19,7 +19,7 @@ export default { timeNow: '', apiUrl: '', siteName: '', - siteSlogon: '', + siteSlogan: '', permissions: {}, showShortcutsDialog: false, isEditingShortcuts: false, @@ -67,7 +67,7 @@ export default { }, async created() { this.siteName = await getSiteName(); - this.siteSlogon = await getSiteSlogon(); + this.siteSlogan = await getSiteSlogan(); }, beforeUnmount() { window.removeEventListener('keydown', this.handleKeyDown); @@ -288,7 +288,7 @@ export default { - + \ No newline at end of file diff --git a/webUI/src/views/user/active-account.vue b/webUI/src/views/user/active-account.vue index d7ff91b..1c58f6a 100644 --- a/webUI/src/views/user/active-account.vue +++ b/webUI/src/views/user/active-account.vue @@ -2,6 +2,7 @@ import { defineComponent, ref } from 'vue' import Swal from 'sweetalert2'; import axios from "axios"; +import { getSiteName } from '@/hesabixConfig'; export default defineComponent({ name: "active_account", data() { @@ -16,6 +17,7 @@ export default defineComponent({ mobile: '', email: '', }, + siteName: '', response: { code: '', message: '', @@ -36,6 +38,9 @@ export default defineComponent({ } } }, + async created() { + this.siteName = await getSiteName(); + }, methods: { onResendCodeClick() { axios.post('/api/user/register/resend-active-code', { 'mobile': this.$route.params.id }).then((response: any) => { @@ -46,7 +51,7 @@ export default defineComponent({ icon: 'success' }); } - else{ + else { Swal.fire({ text: response.data.message, confirmButtonText: this.$t('dialog.ok'), @@ -83,7 +88,7 @@ export default defineComponent({ - کد ارسالی از طریق پیامک و یا پست الکترونیکی دریافتی خود را در کادر زیر وارد نمایید. diff --git a/webUI/src/views/user/login.vue b/webUI/src/views/user/login.vue index 120f7c7..4967152 100644 --- a/webUI/src/views/user/login.vue +++ b/webUI/src/views/user/login.vue @@ -2,7 +2,7 @@ - {{ $t("login.des") }} @@ -62,6 +62,7 @@ diff --git a/webUI/src/views/user/profile/forget-password-submit-code.vue b/webUI/src/views/user/profile/forget-password-submit-code.vue index 6e48794..2c29c07 100644 --- a/webUI/src/views/user/profile/forget-password-submit-code.vue +++ b/webUI/src/views/user/profile/forget-password-submit-code.vue @@ -2,6 +2,7 @@ import { defineComponent, ref } from 'vue' import axios from "axios"; import VueCountdown from '@chenfengyuan/vue-countdown'; +import { getSiteName } from '@/hesabixConfig'; export default defineComponent({ name: "reset-password", @@ -16,6 +17,7 @@ export default defineComponent({ loading: false, counting: true, disableSend: ref(true), + siteName:'', code: '', response: { code: '', @@ -35,6 +37,9 @@ export default defineComponent({ } } }, + async created(){ + this.siteName = await getSiteName(); + }, watch: { code(cval, bval) { if (Object.keys(cval).length == 6) { @@ -81,7 +86,7 @@ export default defineComponent({ - + diff --git a/webUI/src/views/user/profile/forget-password.vue b/webUI/src/views/user/profile/forget-password.vue index 75a4969..6583e3b 100644 --- a/webUI/src/views/user/profile/forget-password.vue +++ b/webUI/src/views/user/profile/forget-password.vue @@ -2,7 +2,7 @@ - + - {{ siteSlogon }} + {{ siteSlogan }} @@ -37,7 +37,7 @@ - {{ $t('app.name') }} : {{ hesabix.version }} + {{ siteName }} : {{ hesabix.version }} @@ -63,7 +63,7 @@