From c89eca737f489835281eb80ee4d93c27c4d7b59d Mon Sep 17 00:00:00 2001 From: Bai Date: Thu, 4 Jun 2020 20:28:23 +0800 Subject: [PATCH 1/2] =?UTF-8?q?[Update]=20=E6=B7=BB=E5=8A=A0=E5=AF=86?= =?UTF-8?q?=E7=A0=81=E5=8C=A3=E5=AD=90=E5=88=97=E8=A1=A8=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/i18n/langs/cn.json | 3 + .../components/GenericTreeListPage/index.vue | 2 +- src/views/xpack/Vault/VaultList.vue | 201 ++++++++++++++++++ src/views/xpack/router.js | 14 +- 4 files changed, 218 insertions(+), 2 deletions(-) create mode 100644 src/views/xpack/Vault/VaultList.vue diff --git a/src/i18n/langs/cn.json b/src/i18n/langs/cn.json index 71fbb6659..44cd623fa 100644 --- a/src/i18n/langs/cn.json +++ b/src/i18n/langs/cn.json @@ -731,6 +731,9 @@ "dateLastLogin": "" }, "xpack": { + "Vault": { + "Vault": "密码匣子" + }, "Basic": "基本", "Other": "其他", "Admin": "管理员", diff --git a/src/layout/components/GenericTreeListPage/index.vue b/src/layout/components/GenericTreeListPage/index.vue index 4674f5403..a917eb055 100644 --- a/src/layout/components/GenericTreeListPage/index.vue +++ b/src/layout/components/GenericTreeListPage/index.vue @@ -1,7 +1,7 @@ diff --git a/src/views/xpack/Vault/VaultList.vue b/src/views/xpack/Vault/VaultList.vue new file mode 100644 index 000000000..339d9a7fa --- /dev/null +++ b/src/views/xpack/Vault/VaultList.vue @@ -0,0 +1,201 @@ + + + + + diff --git a/src/views/xpack/router.js b/src/views/xpack/router.js index d2c6dea54..dd758557b 100644 --- a/src/views/xpack/router.js +++ b/src/views/xpack/router.js @@ -182,7 +182,19 @@ export default { meta: { title: i18n.t('xpack.Cloud.SyncInstanceTaskUpdate') } } ] + }, + { + path: 'vault', + component: empty, + meta: { title: i18n.t('xpack.Vault.Vault'), activeMenu: '/xpack/vault/vault' }, + children: [ + { + path: 'vault', + component: () => import('@/views/xpack/Vault/VaultList.vue'), + name: 'VaultList', + meta: { title: i18n.t('xpack.Vault.Vault'), activeMenu: '/xpack/vault/vault' } + } + ] } - ] } From 01e00cca73b5bee0998b471e57db880f5f571646 Mon Sep 17 00:00:00 2001 From: Bai Date: Thu, 4 Jun 2020 20:53:06 +0800 Subject: [PATCH 2/2] =?UTF-8?q?[Update]=20=E6=B7=BB=E5=8A=A0=E5=AF=86?= =?UTF-8?q?=E7=A0=81=E5=8C=A3=E5=AD=90=E5=88=9B=E5=BB=BA=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/i18n/langs/cn.json | 3 +- src/i18n/langs/en.json | 4 ++ src/views/xpack/Vault/VaultCreate.vue | 60 +++++++++++++++++++++++++++ src/views/xpack/Vault/index.vue | 13 ------ src/views/xpack/router.js | 7 ++++ 5 files changed, 73 insertions(+), 14 deletions(-) create mode 100644 src/views/xpack/Vault/VaultCreate.vue delete mode 100644 src/views/xpack/Vault/index.vue diff --git a/src/i18n/langs/cn.json b/src/i18n/langs/cn.json index 44cd623fa..838981dae 100644 --- a/src/i18n/langs/cn.json +++ b/src/i18n/langs/cn.json @@ -732,7 +732,8 @@ }, "xpack": { "Vault": { - "Vault": "密码匣子" + "Vault": "密码匣子", + "Create": "创建" }, "Basic": "基本", "Other": "其他", diff --git a/src/i18n/langs/en.json b/src/i18n/langs/en.json index 1bbd92ef4..1125967d0 100644 --- a/src/i18n/langs/en.json +++ b/src/i18n/langs/en.json @@ -724,6 +724,10 @@ "ResetAndDownloadSSHKey": "Reset and download SSH Key" }, "xpack": { + "Vault": { + "Vault": "Vault", + "Create": "Create" + }, "Admin": "Admin", "AssetCount": "Asset count", "Auditor": "Auditor", diff --git a/src/views/xpack/Vault/VaultCreate.vue b/src/views/xpack/Vault/VaultCreate.vue new file mode 100644 index 000000000..793fedfbd --- /dev/null +++ b/src/views/xpack/Vault/VaultCreate.vue @@ -0,0 +1,60 @@ + + + + + diff --git a/src/views/xpack/Vault/index.vue b/src/views/xpack/Vault/index.vue deleted file mode 100644 index 4b15380b0..000000000 --- a/src/views/xpack/Vault/index.vue +++ /dev/null @@ -1,13 +0,0 @@ - - - - - diff --git a/src/views/xpack/router.js b/src/views/xpack/router.js index dd758557b..bdbe3f911 100644 --- a/src/views/xpack/router.js +++ b/src/views/xpack/router.js @@ -193,6 +193,13 @@ export default { component: () => import('@/views/xpack/Vault/VaultList.vue'), name: 'VaultList', meta: { title: i18n.t('xpack.Vault.Vault'), activeMenu: '/xpack/vault/vault' } + }, + { + path: 'vault/create', + component: () => import('@/views/xpack/Vault/VaultCreate'), + name: 'VaultCreate', + meta: { title: i18n.t('xpack.Vault.Create'), activeMenu: '/xpack/vault/vault' }, + hidden: true } ] }