From e2fa738894cdc7740e4d0c8a7432520b2adfe9ef Mon Sep 17 00:00:00 2001 From: cxymds Date: Fri, 28 Mar 2025 18:04:19 +0800 Subject: [PATCH] feat : add License page --- components.d.ts | 18 +++++ config/navs.ts | 4 +- pages/license/index.vue | 159 ++++++++++++++++++++++++++++++++++++++ pages/lifecycle/index.vue | 10 ++- 4 files changed, 186 insertions(+), 5 deletions(-) create mode 100644 pages/license/index.vue diff --git a/components.d.ts b/components.d.ts index 3959057..fc2f788 100644 --- a/components.d.ts +++ b/components.d.ts @@ -7,7 +7,10 @@ export {} /* prettier-ignore */ declare module 'vue' { export interface GlobalComponents { + NA: typeof import('naive-ui')['NA'] NAlert: typeof import('naive-ui')['NAlert'] + NAnchor: typeof import('naive-ui')['NAnchor'] + NAnchorLink: typeof import('naive-ui')['NAnchorLink'] NAvatar: typeof import('naive-ui')['NAvatar'] NBadge: typeof import('naive-ui')['NBadge'] NButton: typeof import('naive-ui')['NButton'] @@ -23,9 +26,11 @@ declare module 'vue' { NDescriptions: typeof import('naive-ui')['NDescriptions'] NDescriptionsItem: typeof import('naive-ui')['NDescriptionsItem'] NDialogProvider: typeof import('naive-ui')['NDialogProvider'] + NDivider: typeof import('naive-ui')['NDivider'] NDrawer: typeof import('naive-ui')['NDrawer'] NDrawerContent: typeof import('naive-ui')['NDrawerContent'] NDropdown: typeof import('naive-ui')['NDropdown'] + NDynamicTags: typeof import('naive-ui')['NDynamicTags'] NEmpty: typeof import('naive-ui')['NEmpty'] NFlex: typeof import('naive-ui')['NFlex'] NForm: typeof import('naive-ui')['NForm'] @@ -33,20 +38,31 @@ declare module 'vue' { NFormItemGi: typeof import('naive-ui')['NFormItemGi'] NFormItemGridItem: typeof import('naive-ui')['NFormItemGridItem'] NGrid: typeof import('naive-ui')['NGrid'] + NH1: typeof import('naive-ui')['NH1'] + NH2: typeof import('naive-ui')['NH2'] + NH3: typeof import('naive-ui')['NH3'] + NH4: typeof import('naive-ui')['NH4'] + NHr: typeof import('naive-ui')['NHr'] + NIcon: typeof import('naive-ui')['NIcon'] NInput: typeof import('naive-ui')['NInput'] NInputGroup: typeof import('naive-ui')['NInputGroup'] NInputGroupLabel: typeof import('naive-ui')['NInputGroupLabel'] NLayout: typeof import('naive-ui')['NLayout'] + NLayoutContent: typeof import('naive-ui')['NLayoutContent'] NLayoutSider: typeof import('naive-ui')['NLayoutSider'] + NLi: typeof import('naive-ui')['NLi'] NList: typeof import('naive-ui')['NList'] NListItem: typeof import('naive-ui')['NListItem'] NMenu: typeof import('naive-ui')['NMenu'] NMessageProvider: typeof import('naive-ui')['NMessageProvider'] NModal: typeof import('naive-ui')['NModal'] NNotificationProvider: typeof import('naive-ui')['NNotificationProvider'] + NOl: typeof import('naive-ui')['NOl'] + NP: typeof import('naive-ui')['NP'] NPageHeader: typeof import('naive-ui')['NPageHeader'] NPopconfirm: typeof import('naive-ui')['NPopconfirm'] NProgress: typeof import('naive-ui')['NProgress'] + NScrollbar: typeof import('naive-ui')['NScrollbar'] NSelect: typeof import('naive-ui')['NSelect'] NSpace: typeof import('naive-ui')['NSpace'] NSpin: typeof import('naive-ui')['NSpin'] @@ -55,7 +71,9 @@ declare module 'vue' { NTabPane: typeof import('naive-ui')['NTabPane'] NTabs: typeof import('naive-ui')['NTabs'] NTag: typeof import('naive-ui')['NTag'] + NText: typeof import('naive-ui')['NText'] NThing: typeof import('naive-ui')['NThing'] + NUl: typeof import('naive-ui')['NUl'] RouterLink: typeof import('vue-router')['RouterLink'] RouterView: typeof import('vue-router')['RouterView'] } diff --git a/config/navs.ts b/config/navs.ts index 1df930b..981dcb1 100644 --- a/config/navs.ts +++ b/config/navs.ts @@ -47,8 +47,8 @@ export default [ }, { label: '许可证', - to: 'https://github.com/rustfs/rustfs?tab=Apache-2.0-1-ov-file#readme', - target: '_blank', + // to: 'https://github.com/rustfs/rustfs?tab=Apache-2.0-1-ov-file#readme', + to: '/license', icon: 'ri:copyright-line' }, { diff --git a/pages/license/index.vue b/pages/license/index.vue new file mode 100644 index 0000000..27b6bf0 --- /dev/null +++ b/pages/license/index.vue @@ -0,0 +1,159 @@ + + + + + \ No newline at end of file diff --git a/pages/lifecycle/index.vue b/pages/lifecycle/index.vue index b85bdbf..70c6647 100644 --- a/pages/lifecycle/index.vue +++ b/pages/lifecycle/index.vue @@ -14,7 +14,7 @@
- + 添加生命周期规则 @@ -27,7 +27,7 @@ - +
@@ -36,7 +36,6 @@ import { Icon } from '#components' import { NButton, NSpace, type DataTableColumns } from 'naive-ui' const { listBuckets } = useBucket({}); -const formVisible = ref(false); const searchTerm = ref(''); interface RowData { @@ -129,6 +128,11 @@ const bucketName = ref( const pageData = ref([]) +const formRef = ref() +const openForm = ()=>{ + formRef.value.open() +} + const handleRowDelete = (row: RowData, e: Event) => { e.stopPropagation(); console.log(row);