From 10a35876bf62461ce46f250f8cdd5ad35d83281d Mon Sep 17 00:00:00 2001 From: shaohuzhang1 <80892890+shaohuzhang1@users.noreply.github.com> Date: Mon, 10 Feb 2025 19:11:04 +0800 Subject: [PATCH] fix: optimization * fix: Style optimization * perf: SCAN login setting views Style optimization * fix: markdown preview i18n --------- Co-authored-by: wangdan-fit2cloud --- ui/src/components/markdown/MdPreview.vue | 19 +++++- ui/src/locales/lang/en-US/views/template.ts | 2 +- ui/src/locales/lang/zh-CN/views/template.ts | 2 +- ui/src/locales/lang/zh-Hant/views/template.ts | 2 +- .../component/DisplaySettingDialog.vue | 2 +- .../component/XPackDisplaySettingDialog.vue | 10 ++-- .../authentication/component/EditModal.vue | 3 +- .../views/authentication/component/SCAN.vue | 59 ++++--------------- ui/src/views/authentication/index.vue | 2 +- 9 files changed, 38 insertions(+), 63 deletions(-) diff --git a/ui/src/components/markdown/MdPreview.vue b/ui/src/components/markdown/MdPreview.vue index 7632a5aeb..0d8c3ab15 100644 --- a/ui/src/components/markdown/MdPreview.vue +++ b/ui/src/components/markdown/MdPreview.vue @@ -1,8 +1,23 @@ diff --git a/ui/src/locales/lang/en-US/views/template.ts b/ui/src/locales/lang/en-US/views/template.ts index 916caa298..acdf203c9 100644 --- a/ui/src/locales/lang/en-US/views/template.ts +++ b/ui/src/locales/lang/en-US/views/template.ts @@ -53,7 +53,7 @@ export default { permissionType: { label: 'Permission', privateDesc: 'Only the current user can use', - publicDesc: 'All users can use, but can not be edited', + publicDesc: 'All users can use', requiredMessage: 'Permission cannot be empty' }, model_type: { diff --git a/ui/src/locales/lang/zh-CN/views/template.ts b/ui/src/locales/lang/zh-CN/views/template.ts index f533bc3b5..84241990d 100644 --- a/ui/src/locales/lang/zh-CN/views/template.ts +++ b/ui/src/locales/lang/zh-CN/views/template.ts @@ -53,7 +53,7 @@ export default { permissionType: { label: '权限', privateDesc: '仅当前用户使用', - publicDesc: '所有用户都可使用,不能编辑', + publicDesc: '所有用户都可使用', requiredMessage: '权限不能为空' }, model_type: { diff --git a/ui/src/locales/lang/zh-Hant/views/template.ts b/ui/src/locales/lang/zh-Hant/views/template.ts index 2197273f3..241f9d8c5 100644 --- a/ui/src/locales/lang/zh-Hant/views/template.ts +++ b/ui/src/locales/lang/zh-Hant/views/template.ts @@ -53,7 +53,7 @@ export default { permissionType: { label: '權限', privateDesc: '僅當前使用者使用', - publicDesc: '所有使用者都可使用,但不能編輯', + publicDesc: '所有使用者都可使用', requiredMessage: '權限不能為空' }, model_type: { diff --git a/ui/src/views/application-overview/component/DisplaySettingDialog.vue b/ui/src/views/application-overview/component/DisplaySettingDialog.vue index 192329cff..bacfd4a1e 100644 --- a/ui/src/views/application-overview/component/DisplaySettingDialog.vue +++ b/ui/src/views/application-overview/component/DisplaySettingDialog.vue @@ -10,7 +10,7 @@ {{ $t('views.applicationOverview.appInfo.SettingDisplayDialog.languageLabel') }} - + -

+

{{ detail?.name || $t('views.application.applicationForm.form.appName.label') }}

@@ -174,7 +174,7 @@
{{ $t('views.applicationOverview.appInfo.SettingDisplayDialog.languageLabel') }}
- + ({ const xpackForm = ref({ show_source: false, - language: getBrowserLang(), + language: '', show_history: false, draggable: false, show_guide: false, diff --git a/ui/src/views/authentication/component/EditModal.vue b/ui/src/views/authentication/component/EditModal.vue index a96b79862..3a11c3641 100644 --- a/ui/src/views/authentication/component/EditModal.vue +++ b/ui/src/views/authentication/component/EditModal.vue @@ -9,7 +9,7 @@ template > @@ -225,5 +225,4 @@ function saveConfig() { diff --git a/ui/src/views/authentication/component/SCAN.vue b/ui/src/views/authentication/component/SCAN.vue index 18ddb977a..e905a01d8 100644 --- a/ui/src/views/authentication/component/SCAN.vue +++ b/ui/src/views/authentication/component/SCAN.vue @@ -1,13 +1,13 @@ @@ -230,46 +230,7 @@ function showDialog(platform: Platform) { diff --git a/ui/src/views/authentication/index.vue b/ui/src/views/authentication/index.vue index 4c809af30..178b9730f 100644 --- a/ui/src/views/authentication/index.vue +++ b/ui/src/views/authentication/index.vue @@ -1,7 +1,7 @@