From b712ec41830bc3f3902badc1027b8c4c48c38ed3 Mon Sep 17 00:00:00 2001 From: feng <1304903146@qq.com> Date: Tue, 5 Sep 2023 17:07:03 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=B8=AA=E4=BA=BA=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/i18n/langs/en.json | 2 + src/i18n/langs/ja.json | 2 + src/i18n/langs/zh.json | 3 +- src/router/profile/index.js | 10 +++ .../profile/ProfileUpdate/SecretKeyUpdate.vue | 79 ------------------ src/views/profile/ProfileUpdate/index.vue | 6 -- .../UserSettingUpdate/AllPreferenceUpdate.vue | 82 +++++++++++++++++++ .../profile/UserSettingUpdate/KokoUpdate.vue | 23 ++++++ .../profile/UserSettingUpdate/LinaUpdate.vue | 23 ++++++ .../profile/UserSettingUpdate/LunaUpdate.vue | 23 ++++++ src/views/profile/UserSettingUpdate/index.vue | 61 ++++++++++++++ src/views/settings/Terminal/Base.vue | 6 -- 12 files changed, 228 insertions(+), 92 deletions(-) delete mode 100644 src/views/profile/ProfileUpdate/SecretKeyUpdate.vue create mode 100644 src/views/profile/UserSettingUpdate/AllPreferenceUpdate.vue create mode 100644 src/views/profile/UserSettingUpdate/KokoUpdate.vue create mode 100644 src/views/profile/UserSettingUpdate/LinaUpdate.vue create mode 100644 src/views/profile/UserSettingUpdate/LunaUpdate.vue create mode 100644 src/views/profile/UserSettingUpdate/index.vue diff --git a/src/i18n/langs/en.json b/src/i18n/langs/en.json index a56a2f3fe..7cbb8a63e 100644 --- a/src/i18n/langs/en.json +++ b/src/i18n/langs/en.json @@ -1887,6 +1887,8 @@ "UpdateNodeAssetHardwareInfo": "Update node asset hardware information" }, "users": { + "LunaSettingUpdate": "Luna setting", + "UserSetting": "User setting", "AllMembers": "All members", "UnbindHelpText": "Local users cannot be unbound because they are authenticated as source users", "SetStatus": "Set status", diff --git a/src/i18n/langs/ja.json b/src/i18n/langs/ja.json index ac5461760..c87d81117 100644 --- a/src/i18n/langs/ja.json +++ b/src/i18n/langs/ja.json @@ -1879,6 +1879,8 @@ "UpdateNodeAssetHardwareInfo": "ノード資産ハードウェア情報の更新" }, "users": { + "LunaSettingUpdate": "Luna 設定更新", + "UserSetting": "個人設定", "AllMembers": "すべてのメンバー", "UnbindHelpText": "ローカルユーザはソースユーザを認証します", "SetStatus": "ステータスの設定", diff --git a/src/i18n/langs/zh.json b/src/i18n/langs/zh.json index b120fa581..373d77607 100644 --- a/src/i18n/langs/zh.json +++ b/src/i18n/langs/zh.json @@ -271,7 +271,6 @@ "UpdateAccount": "更新账号", "Account": "账号", "Defaults": "默认值", - "Privileged": "特权账号", "SelectPlatforms": "选择平台", "AppList": "应用列表", @@ -1856,6 +1855,8 @@ "UpdateNodeAssetHardwareInfo": "更新节点资产硬件信息" }, "users": { + "LunaSettingUpdate": "Luna 配置设置", + "UserSetting": "个人设置", "AllMembers": "全部成员", "UnbindHelpText": "本地用户为此认证来源用户,无法解绑", "SetStatus": "设置状态", diff --git a/src/router/profile/index.js b/src/router/profile/index.js index 47286ed62..b6e8687ea 100644 --- a/src/router/profile/index.js +++ b/src/router/profile/index.js @@ -75,6 +75,16 @@ export default { icon: 'token', permissions: ['authentication.view_connectiontoken'] } + }, + { + path: '/profile/user/setting', + name: 'UserSetting', + component: () => import('@/views/profile/UserSettingUpdate/index'), + meta: { + title: i18n.t('users.UserSetting'), + icon: 'setting', + permissions: [] + } } ] } diff --git a/src/views/profile/ProfileUpdate/SecretKeyUpdate.vue b/src/views/profile/ProfileUpdate/SecretKeyUpdate.vue deleted file mode 100644 index 8790fe379..000000000 --- a/src/views/profile/ProfileUpdate/SecretKeyUpdate.vue +++ /dev/null @@ -1,79 +0,0 @@ - - - - - diff --git a/src/views/profile/ProfileUpdate/index.vue b/src/views/profile/ProfileUpdate/index.vue index 01381df16..369ebff74 100644 --- a/src/views/profile/ProfileUpdate/index.vue +++ b/src/views/profile/ProfileUpdate/index.vue @@ -11,7 +11,6 @@ import { GenericDetailPage } from '@/layout/components' import ProfileInfo from '../ProfileInfo' import ProfileUpdate from './ProfileUpdate' import PasswordUpdate from './PasswordUpdate' -import SecretKeyUpdate from './SecretKeyUpdate' import SSHUpdate from './SSHUpdate' export default { @@ -20,7 +19,6 @@ export default { ProfileInfo, ProfileUpdate, PasswordUpdate, - SecretKeyUpdate, SSHUpdate }, data() { @@ -53,10 +51,6 @@ export default { title: this.$t('users.SSHKeySetting'), name: 'SSHUpdate', disabled: !this.$store.state.users.profile.can_public_key_auth - }, - { - title: this.$t('users.FileEncryptionPassword'), - name: 'SecretKeyUpdate' } ] }, diff --git a/src/views/profile/UserSettingUpdate/AllPreferenceUpdate.vue b/src/views/profile/UserSettingUpdate/AllPreferenceUpdate.vue new file mode 100644 index 000000000..cfa5a198f --- /dev/null +++ b/src/views/profile/UserSettingUpdate/AllPreferenceUpdate.vue @@ -0,0 +1,82 @@ + + + + + diff --git a/src/views/profile/UserSettingUpdate/KokoUpdate.vue b/src/views/profile/UserSettingUpdate/KokoUpdate.vue new file mode 100644 index 000000000..e893f0a48 --- /dev/null +++ b/src/views/profile/UserSettingUpdate/KokoUpdate.vue @@ -0,0 +1,23 @@ + + + + + diff --git a/src/views/profile/UserSettingUpdate/LinaUpdate.vue b/src/views/profile/UserSettingUpdate/LinaUpdate.vue new file mode 100644 index 000000000..8e35a14f0 --- /dev/null +++ b/src/views/profile/UserSettingUpdate/LinaUpdate.vue @@ -0,0 +1,23 @@ + + + + + diff --git a/src/views/profile/UserSettingUpdate/LunaUpdate.vue b/src/views/profile/UserSettingUpdate/LunaUpdate.vue new file mode 100644 index 000000000..6a5d2be79 --- /dev/null +++ b/src/views/profile/UserSettingUpdate/LunaUpdate.vue @@ -0,0 +1,23 @@ + + + + + diff --git a/src/views/profile/UserSettingUpdate/index.vue b/src/views/profile/UserSettingUpdate/index.vue new file mode 100644 index 000000000..4bd722d83 --- /dev/null +++ b/src/views/profile/UserSettingUpdate/index.vue @@ -0,0 +1,61 @@ + + + + + diff --git a/src/views/settings/Terminal/Base.vue b/src/views/settings/Terminal/Base.vue index a90fe361c..bd2f5f76b 100644 --- a/src/views/settings/Terminal/Base.vue +++ b/src/views/settings/Terminal/Base.vue @@ -43,12 +43,6 @@ export default { [ 'TERMINAL_MAGNUS_ENABLED' ] - ], - [ - `Web ${comp}(Luna)`, - [ - 'TERMINAL_GRAPHICAL_RESOLUTION' - ] ] ], fieldsMeta: {