feat: 添加模块注册系统
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
import type { ModuleMetadata } from '../registry'
|
||||
|
||||
export const bookmarksModule: ModuleMetadata = {
|
||||
id: 'bookmarks',
|
||||
name: '书签导航',
|
||||
description: '常用链接和网站的快速导航',
|
||||
icon: 'Compass',
|
||||
route: '/bookmarks',
|
||||
enabled: true,
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
import { bookmarksModule } from './bookmarks'
|
||||
|
||||
export interface ModuleMetadata {
|
||||
id: string
|
||||
name: string
|
||||
description: string
|
||||
icon: string
|
||||
route: string
|
||||
enabled: boolean
|
||||
}
|
||||
|
||||
export const modules: ModuleMetadata[] = [bookmarksModule]
|
||||
Reference in New Issue
Block a user