diff --git a/src/i18n/langs/cn.json b/src/i18n/langs/cn.json index 71fbb6659..838981dae 100644 --- a/src/i18n/langs/cn.json +++ b/src/i18n/langs/cn.json @@ -731,6 +731,10 @@ "dateLastLogin": "" }, "xpack": { + "Vault": { + "Vault": "密码匣子", + "Create": "创建" + }, "Basic": "基本", "Other": "其他", "Admin": "管理员", 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/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/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/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/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 d2c6dea54..bdbe3f911 100644 --- a/src/views/xpack/router.js +++ b/src/views/xpack/router.js @@ -182,7 +182,26 @@ 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' } + }, + { + path: 'vault/create', + component: () => import('@/views/xpack/Vault/VaultCreate'), + name: 'VaultCreate', + meta: { title: i18n.t('xpack.Vault.Create'), activeMenu: '/xpack/vault/vault' }, + hidden: true + } + ] } - ] }