From a04f4a8b96518aecf5db82487a6cd9f22b72c7ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=98=AD?= <81747598+lan-yonghui@users.noreply.github.com> Date: Fri, 10 Jan 2025 18:57:45 +0800 Subject: [PATCH] feat: Improve international language and style (#7697) Refs #7696 --- .../src/components/router-button/index.vue | 2 +- frontend/src/lang/modules/ja.ts | 10 +- frontend/src/lang/modules/ru.ts | 2 +- .../src/views/database/mysql/conn/index.vue | 2 +- .../views/database/postgresql/conn/index.vue | 2 +- .../src/views/database/redis/conn/index.vue | 2 +- frontend/src/views/home/index.vue | 1 + .../src/views/host/file-management/index.vue | 6 +- frontend/src/views/setting/panel/index.vue | 2 +- frontend/src/views/setting/safe/index.vue | 297 +++++++++--------- .../website/config/basic/other/index.vue | 2 +- 11 files changed, 160 insertions(+), 168 deletions(-) diff --git a/frontend/src/components/router-button/index.vue b/frontend/src/components/router-button/index.vue index 0eda101a5..6e6b86dca 100644 --- a/frontend/src/components/router-button/index.vue +++ b/frontend/src/components/router-button/index.vue @@ -1,7 +1,7 @@ - + { font-size: 13px !important; border: none !important; width: 100% !important; + line-height: normal !important; } .monitor-tags { diff --git a/frontend/src/views/host/file-management/index.vue b/frontend/src/views/host/file-management/index.vue index 2b3afee91..9594e7800 100644 --- a/frontend/src/views/host/file-management/index.vue +++ b/frontend/src/views/host/file-management/index.vue @@ -386,12 +386,12 @@ - + {{ row.mode }} - + {{ row.user ? row.user : '-' }} ({{ row.uid }}) @@ -405,7 +405,7 @@ - + diff --git a/frontend/src/views/setting/safe/index.vue b/frontend/src/views/setting/safe/index.vue index b37f66116..a86e76952 100644 --- a/frontend/src/views/setting/safe/index.vue +++ b/frontend/src/views/setting/safe/index.vue @@ -6,166 +6,157 @@ :model="form" v-loading="loading" :label-position="mobile ? 'top' : 'left'" - label-width="150px" + label-width="auto" + class="sm:w-full md:w-4/5 lg:w-3/5 2xl:w-1/2 max-w-max ml-8" > - - - - - - - - {{ $t('commons.button.set') }} - - - - - - - - - {{ $t('commons.button.set') }} - - - - - - - - - {{ $t('commons.button.set') }} - - - - - - - {{ $t('commons.button.set') }} - - - - {{ $t('setting.entranceHelper') }} - + + + + + {{ $t('commons.button.set') }} + + + + + + + + + {{ $t('commons.button.set') }} + + + + + + + + + {{ $t('commons.button.set') }} + + + + + + + {{ $t('commons.button.set') }} + + + + {{ $t('setting.entranceHelper') }} + - - - - - {{ $t('commons.button.set') }} - - - - + + + + + {{ $t('commons.button.set') }} + + + + - - - - - {{ $t('commons.button.set') }} - - - - - - {{ $t('commons.button.set') }} - - - - {{ $t('setting.allowIPsHelper') }} - + + + + + {{ $t('commons.button.set') }} + + + + + + {{ $t('commons.button.set') }} + + + + {{ $t('setting.allowIPsHelper') }} + - - - - - {{ $t('commons.button.set') }} - - - - - - - {{ $t('commons.button.set') }} - - - - {{ $t('setting.bindDomainHelper') }} - + + + + + {{ $t('commons.button.set') }} + + + + + + + {{ $t('commons.button.set') }} + + + + {{ $t('setting.bindDomainHelper') }} + - - - {{ $t('setting.https') }} - - {{ $t('setting.domainOrIP') }} {{ sslInfo.domain }} - - {{ $t('setting.timeOut') }} {{ dateFormat('', '', sslInfo.timeout) }} - - - - {{ $t('commons.button.view') }} - - - - + + + {{ $t('setting.https') }} + + {{ $t('setting.domainOrIP') }} {{ sslInfo.domain }} + + {{ $t('setting.timeOut') }} {{ dateFormat('', '', sslInfo.timeout) }} + + + + {{ $t('commons.button.view') }} + + + + - - - - - {{ $t('commons.button.set') }} - - - - - - {{ $t('setting.timeoutHelper', [loadTimeOut()]) }} - - - {{ $t('setting.noneSetting') }} - - - - - - - {{ $t('setting.complexityHelper') }} - - + + + + + {{ $t('commons.button.set') }} + + + + + + {{ $t('setting.timeoutHelper', [loadTimeOut()]) }} + + + {{ $t('setting.noneSetting') }} + + + + + + + {{ $t('setting.complexityHelper') }} + + - - - - {{ $t('setting.mfaHelper') }} - - - - + + + + {{ $t('setting.mfaHelper') }} + + diff --git a/frontend/src/views/website/website/config/basic/other/index.vue b/frontend/src/views/website/website/config/basic/other/index.vue index 935650c38..6ac6b4681 100644 --- a/frontend/src/views/website/website/config/basic/other/index.vue +++ b/frontend/src/views/website/website/config/basic/other/index.vue @@ -1,6 +1,6 @@ - +