From 566a4f35689b24eb61e17793c5c19ed6fa8acc53 Mon Sep 17 00:00:00 2001 From: ssongliu <73214554+ssongliu@users.noreply.github.com> Date: Fri, 28 Apr 2023 14:48:19 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=9D=A2=E6=9D=BF=E8=AE=BE=E7=BD=AE?= =?UTF-8?q?=E8=AF=81=E4=B9=A6=E6=94=B9=E4=B8=BA=E6=8A=BD=E5=B1=89=E5=AE=9E?= =?UTF-8?q?=E7=8E=B0=20(#823)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/init/router/router.go | 2 - frontend/src/lang/modules/en.ts | 3 +- frontend/src/lang/modules/zh.ts | 3 +- frontend/src/views/setting/monitor/index.vue | 2 +- frontend/src/views/setting/panel/index.vue | 2 +- .../views/setting/panel/password/index.vue | 2 +- .../src/views/setting/safe/entrance/index.vue | 30 ++- frontend/src/views/setting/safe/index.vue | 80 +++--- frontend/src/views/setting/safe/mfa/index.vue | 70 ++--- frontend/src/views/setting/safe/ssl/index.vue | 250 ++++++++++-------- .../src/views/setting/safe/timeout/index.vue | 16 +- 11 files changed, 263 insertions(+), 197 deletions(-) diff --git a/backend/init/router/router.go b/backend/init/router/router.go index c2a2ec62b..69d4d27aa 100644 --- a/backend/init/router/router.go +++ b/backend/init/router/router.go @@ -56,7 +56,6 @@ func Routers() *gin.Engine { Router.SetFuncMap(template.FuncMap{ "Localize": ginI18n.GetMessage, }) - Router.Use(middleware.JwtAuth()) systemRouter := rou.RouterGroupApp @@ -73,7 +72,6 @@ func Routers() *gin.Engine { PrivateGroup := Router.Group("/api/v1") PrivateGroup.Use(middleware.GlobalLoading()) - //PrivateGroup.Use(middleware.SafetyAuth()) { systemRouter.InitBaseRouter(PrivateGroup) systemRouter.InitDashboardRouter(PrivateGroup) diff --git a/frontend/src/lang/modules/en.ts b/frontend/src/lang/modules/en.ts index 05ae4efb8..aed1822ed 100644 --- a/frontend/src/lang/modules/en.ts +++ b/frontend/src/lang/modules/en.ts @@ -901,12 +901,13 @@ const message = { 'If the https service is disabled, you need to restart the panel for it to take effect. Do you want to continue?', https: 'Setting up HTTPS protocol access for the panel can enhance the security of panel access.', + certType: 'Certificate type', selfSigned: 'Self signed', selfSignedHelper: 'It is normal for self-signed certificates to be not trusted by browsers and display a security warning as the certificate is not issued by a trusted third party.', import: 'Import', select: 'Select', - domainOrIP: 'Domain/IP:', + domainOrIP: 'Domain or IP:', timeOut: 'Timeout', rootCrtDownload: 'Root certificate download', primaryKey: 'Primary key', diff --git a/frontend/src/lang/modules/zh.ts b/frontend/src/lang/modules/zh.ts index 5a061584a..a8e1671b5 100644 --- a/frontend/src/lang/modules/zh.ts +++ b/frontend/src/lang/modules/zh.ts @@ -937,11 +937,12 @@ const message = { sslDisableHelper: '禁用 https 服务,需要重启面板才能生效,是否继续?', https: '为面板设置 https 协议访问,提升面板访问安全性', + certType: '证书类型', selfSigned: '自签名', selfSignedHelper: '自签证书,不被浏览器信任,显示不安全是正常现象', import: '导入', select: '选择已有', - domainOrIP: '域名/IP:', + domainOrIP: '域名或 IP:', timeOut: '过期时间:', rootCrtDownload: '根证书下载', primaryKey: '密钥', diff --git a/frontend/src/views/setting/monitor/index.vue b/frontend/src/views/setting/monitor/index.vue index 9b7e1b945..9192da01b 100644 --- a/frontend/src/views/setting/monitor/index.vue +++ b/frontend/src/views/setting/monitor/index.vue @@ -5,7 +5,7 @@
- +
- +