From 50472dbba730b29dd0b45f4ffaf186c89ba5c91b Mon Sep 17 00:00:00 2001 From: imbytecat Date: Mon, 30 Mar 2026 21:26:41 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E6=A8=A1=E5=9D=97?= =?UTF-8?q?=E6=B3=A8=E5=86=8C=E7=B3=BB=E7=BB=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/server/src/modules/bookmarks/index.ts | 10 ++++++++++ apps/server/src/modules/registry.ts | 12 ++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 apps/server/src/modules/bookmarks/index.ts create mode 100644 apps/server/src/modules/registry.ts diff --git a/apps/server/src/modules/bookmarks/index.ts b/apps/server/src/modules/bookmarks/index.ts new file mode 100644 index 0000000..07aeaa5 --- /dev/null +++ b/apps/server/src/modules/bookmarks/index.ts @@ -0,0 +1,10 @@ +import type { ModuleMetadata } from '../registry' + +export const bookmarksModule: ModuleMetadata = { + id: 'bookmarks', + name: '书签导航', + description: '常用链接和网站的快速导航', + icon: 'Compass', + route: '/bookmarks', + enabled: true, +} diff --git a/apps/server/src/modules/registry.ts b/apps/server/src/modules/registry.ts new file mode 100644 index 0000000..1409b74 --- /dev/null +++ b/apps/server/src/modules/registry.ts @@ -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]