From 2c8b19bff2b723a0a12ce6ccbbdc12136b336bde Mon Sep 17 00:00:00 2001 From: ssongliu <73214554+ssongliu@users.noreply.github.com> Date: Fri, 28 Apr 2023 11:42:16 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=B8=A4=E6=AD=A5=E9=AA=8C=E8=AF=81?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=89=8B=E5=8A=A8=E8=BE=93=E5=85=A5=E9=80=89?= =?UTF-8?q?=E9=A1=B9=20(#822)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/lang/modules/en.ts | 8 ++ frontend/src/lang/modules/zh.ts | 27 ++-- frontend/src/views/setting/safe/index.vue | 88 ++----------- frontend/src/views/setting/safe/mfa/index.vue | 117 ++++++++++++++++++ 4 files changed, 149 insertions(+), 91 deletions(-) create mode 100644 frontend/src/views/setting/safe/mfa/index.vue diff --git a/frontend/src/lang/modules/en.ts b/frontend/src/lang/modules/en.ts index 4fa265eb6..05ae4efb8 100644 --- a/frontend/src/lang/modules/en.ts +++ b/frontend/src/lang/modules/en.ts @@ -891,6 +891,14 @@ const message = { mfaHelper1: 'Download a MFA verification mobile app e.g.:', mfaHelper2: 'Scan the following QR code using the mobile app to obtain the 6-digit verification code', mfaHelper3: 'Enter six digits from the app', + mfaSecret: 'Secret', + mfaTypeOption: 'Select the method of obtaining the secret', + qrCode: 'QR code', + manualInput: 'Manual input', + mfaCode: 'Code', + sslDisable: 'Disable', + sslDisableHelper: + '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.', selfSigned: 'Self signed', diff --git a/frontend/src/lang/modules/zh.ts b/frontend/src/lang/modules/zh.ts index 42b798c19..5a061584a 100644 --- a/frontend/src/lang/modules/zh.ts +++ b/frontend/src/lang/modules/zh.ts @@ -873,17 +873,6 @@ const message = { password: '密码', path: '路径', - https: '为面板设置 https 协议访问,提升面板访问安全性', - selfSigned: '自签名', - selfSignedHelper: '自签证书,不被浏览器信任,显示不安全是正常现象', - import: '导入', - select: '选择已有', - domainOrIP: '域名/IP:', - timeOut: '过期时间:', - rootCrtDownload: '根证书下载', - primaryKey: '密钥', - certificate: '证书', - snapshot: '快照', thirdPartySupport: '仅支持第三方账号', recoverDetail: '恢复详情', @@ -939,9 +928,25 @@ const message = { mfaHelper1: '下载两步验证手机应用 如:', mfaHelper2: '使用手机应用扫描以下二维码,获取 6 位验证码', mfaHelper3: '输入手机应用上的 6 位数字', + mfaSecret: '验证密钥', + mfaTypeOption: '选择获取密钥方式', + qrCode: '二维码', + manualInput: '手动输入', + mfaCode: '验证码', sslDisable: '禁用', sslDisableHelper: '禁用 https 服务,需要重启面板才能生效,是否继续?', + https: '为面板设置 https 协议访问,提升面板访问安全性', + selfSigned: '自签名', + selfSignedHelper: '自签证书,不被浏览器信任,显示不安全是正常现象', + import: '导入', + select: '选择已有', + domainOrIP: '域名/IP:', + timeOut: '过期时间:', + rootCrtDownload: '根证书下载', + primaryKey: '密钥', + certificate: '证书', + monitor: '监控', enableMonitor: '监控状态', storeDays: '保存天数', diff --git a/frontend/src/views/setting/safe/index.vue b/frontend/src/views/setting/safe/index.vue index 426f5a696..eedc85ac9 100644 --- a/frontend/src/views/setting/safe/index.vue +++ b/frontend/src/views/setting/safe/index.vue @@ -73,7 +73,8 @@ {{ $t('setting.complexityHelper') }} - + + - - -
    -
  • - {{ $t('setting.mfaHelper1') }} -
      -
    • Google Authenticator
    • -
    • Microsoft Authenticator
    • -
    • 1Password
    • -
    • LastPass
    • -
    • Authenticator
    • -
    -
  • -
  • {{ $t('setting.mfaHelper2') }}
  • - -
  • {{ $t('setting.mfaHelper3') }}
  • - -
    - - {{ $t('commons.button.cancel') }} - - - {{ $t('commons.button.saveAndEnable') }} - -
    -
-
-
+ @@ -145,27 +116,20 @@