From eaa3086d4936075fa5c0c94d13e67339874d47ac Mon Sep 17 00:00:00 2001 From: overtrue Date: Fri, 27 Dec 2024 20:25:17 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E5=AF=BC=E8=88=AA=E7=AE=80=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/sidebar.vue | 17 +++++++- config/navs.ts | 95 +++++++++++++++++++----------------------- 2 files changed, 58 insertions(+), 54 deletions(-) diff --git a/components/sidebar.vue b/components/sidebar.vue index 5c660a4..048b431 100644 --- a/components/sidebar.vue +++ b/components/sidebar.vue @@ -10,7 +10,7 @@ const toggleSidebar = () => { }; const options = computed(() => { - return appConfig.navs.map((nav) => { + return appConfig.navs.map((nav: { label: string; to?: string; icon?: string; children?: { label: string; to: string; icon?: string }[] }) => { let item: { key: string; label: () => string | VNode; icon?: () => VNode; children?: any[] } = { key: nav.label, label: () => nav.to ? h(RouterLink, { to: nav.to }, { default: () => nav.label }) : nav.label, @@ -57,6 +57,21 @@ const options = computed(() => { +
+
+ + 当前版本: v0.0.1 +
+
+ + 构建日期:2024-12-01 +
+
+ + 授权协议:商业初级版 +
+
+
diff --git a/config/navs.ts b/config/navs.ts index 1f24479..4c69ecd 100644 --- a/config/navs.ts +++ b/config/navs.ts @@ -5,61 +5,50 @@ export default [ to: '/', icon: 'ri:home-2-line', }, + { - label: '数据', - icon: 'ri:file-user-line', - children: [ - { - label: '存储桶', - to: '/browser', - icon: 'ri:box-3-line', - }, - { - label: '访问密钥', - to: '/access-keys', - icon: 'ri:door-lock-line', - }, - { - label: '策略', - to: '/policies', - icon: 'ri:shield-check-fill', - }, - { - label: '用户', - to: '/users', - icon: 'ri:file-user-line', - }, - // { - // label: '事件', - // to: '/events', - // icon: 'ri:broadcast-line', - // }, - // { - // label: '配置', - // to: '/configuration', - // icon: 'ri:settings-2-line', - // }, - ] + label: '存储桶', + to: '/browser', + icon: 'ri:box-3-line', }, { - label: '信息', - icon: 'ri:settings-2-line', - children: [ - { - label: '性能', - to: '/performance', - icon: 'ri:bar-chart-box-line' - }, - { - label: '许可证', - to: 'https://github.com/rustfs/rustfs?tab=Apache-2.0-1-ov-file#readme', - icon: 'ri:copyright-line' - }, - { - label: '文档', - to: 'https://rustfs.com/docs/', - icon: 'ri:file-list-3-line' - } - ] + label: '访问密钥', + to: '/access-keys', + icon: 'ri:door-lock-line', + }, + { + label: '策略', + to: '/policies', + icon: 'ri:shield-check-fill', + }, + { + label: '用户', + to: '/users', + icon: 'ri:file-user-line', + }, + // { + // label: '事件', + // to: '/events', + // icon: 'ri:broadcast-line', + // }, + // { + // label: '配置', + // to: '/configuration', + // icon: 'ri:settings-2-line', + // }, + { + label: '性能', + to: '/performance', + icon: 'ri:bar-chart-box-line' + }, + { + label: '许可证', + to: 'https://github.com/rustfs/rustfs?tab=Apache-2.0-1-ov-file#readme', + icon: 'ri:copyright-line' + }, + { + label: '文档', + to: 'https://rustfs.com/docs/', + icon: 'ri:file-list-3-line' } ]