From fb556d6149f409b1e6ba85553b0c23979a5314ea Mon Sep 17 00:00:00 2001 From: ssongliu <73214554+ssongliu@users.noreply.github.com> Date: Mon, 13 Nov 2023 15:02:08 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=A6=82=E8=A7=88=E9=A1=B5=E9=87=8D?= =?UTF-8?q?=E5=90=AF=E6=8C=89=E9=92=AE=E4=BC=98=E5=8C=96=20(#2926)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Refs #2921 --- backend/app/service/dashboard.go | 2 +- .../src/components/confirm-dialog/index.vue | 4 +-- frontend/src/lang/modules/en.ts | 3 -- frontend/src/lang/modules/tw.ts | 3 -- frontend/src/lang/modules/zh.ts | 3 -- frontend/src/views/home/index.vue | 36 ++++++++++--------- 6 files changed, 23 insertions(+), 28 deletions(-) diff --git a/backend/app/service/dashboard.go b/backend/app/service/dashboard.go index 532281be7..0a37ecfda 100644 --- a/backend/app/service/dashboard.go +++ b/backend/app/service/dashboard.go @@ -31,7 +31,7 @@ func NewIDashboardService() IDashboardService { } func (u *DashboardService) Restart(operation string) error { - if operation != "panel" && operation != "system" { + if operation != "1panel" && operation != "system" { return fmt.Errorf("handle restart operation %s failed, err: nonsupport such operation", operation) } itemCmd := fmt.Sprintf("%s 1pctl restart", cmd.SudoHandleCmd()) diff --git a/frontend/src/components/confirm-dialog/index.vue b/frontend/src/components/confirm-dialog/index.vue index 5fcd56908..5f450945f 100644 --- a/frontend/src/components/confirm-dialog/index.vue +++ b/frontend/src/components/confirm-dialog/index.vue @@ -6,8 +6,8 @@
- {{ operationInfo }} -
+ {{ operationInfo }} +
{{ $t('commons.msg.operateConfirm') }} '{{ submitInputInfo }}'
diff --git a/frontend/src/lang/modules/en.ts b/frontend/src/lang/modules/en.ts index 4d4825e04..0678cbe4b 100644 --- a/frontend/src/lang/modules/en.ts +++ b/frontend/src/lang/modules/en.ts @@ -286,9 +286,6 @@ const message = { home: { restart_1panel: 'Restart Panel', restart_system: 'Restart Server', - panel: '1Panel', - system: '1Panel Server', - restartHelper: 'About to restart {0}, do you want to continue?', operationSuccess: 'Operation successful! Restarting, please wait...', overview: 'Overview', entranceHelper: diff --git a/frontend/src/lang/modules/tw.ts b/frontend/src/lang/modules/tw.ts index 1b1e2a41d..87d25a2ec 100644 --- a/frontend/src/lang/modules/tw.ts +++ b/frontend/src/lang/modules/tw.ts @@ -284,9 +284,6 @@ const message = { home: { restart_1panel: '重啟面板', restart_system: '重啟服務器', - panel: '1Panel 面板', - system: '1Panel 服務器', - restartHelper: '即將重新啟動 {0},是否繼續?', operationSuccess: '操作成功!正在重啟,請稍候...', overview: '概覽', entranceHelper: '設置安全入口有利於提高系統的安全性,如有需要,前往 面板設置-安全 中,啟用安全入口', diff --git a/frontend/src/lang/modules/zh.ts b/frontend/src/lang/modules/zh.ts index 10d50d1f6..4e7a39daf 100644 --- a/frontend/src/lang/modules/zh.ts +++ b/frontend/src/lang/modules/zh.ts @@ -284,9 +284,6 @@ const message = { home: { restart_1panel: '重启面板', restart_system: '重启服务器', - panel: '1Panel 面板', - system: '1Panel 服务器', - restartHelper: '即将重新启动 {0},是否继续?', operationSuccess: '操作成功!正在重启,请稍候...', overview: '概览', entranceHelper: '设置安全入口有利于提高系统的安全性,如有需要,前往 面板设置-安全 中,启用安全入口', diff --git a/frontend/src/views/home/index.vue b/frontend/src/views/home/index.vue index 976e8b3bb..f0a108b8e 100644 --- a/frontend/src/views/home/index.vue +++ b/frontend/src/views/home/index.vue @@ -10,11 +10,11 @@ >