From b068cf1def3fa10cd069229da3c08397e9ad2291 Mon Sep 17 00:00:00 2001 From: monoid Date: Fri, 18 Oct 2024 02:12:33 +0900 Subject: [PATCH] feat: show documents with similar tags --- packages/client/src/components/layout/nav.tsx | 2 +- packages/client/src/hook/useGalleryDoc.ts | 4 ++ packages/client/src/page/contentInfoPage.tsx | 37 ++++++++++++++++++- packages/client/src/page/galleryPage.tsx | 2 +- packages/server/src/database.ts | 20 ++++++++++ packages/server/src/db/doc.ts | 35 ++++++++++++++++++ packages/server/src/model/doc.ts | 5 +++ packages/server/src/route/all.ts | 5 +++ packages/server/src/route/contents.ts | 19 ++++++++-- packages/server/src/server.ts | 3 +- 10 files changed, 124 insertions(+), 8 deletions(-) diff --git a/packages/client/src/components/layout/nav.tsx b/packages/client/src/components/layout/nav.tsx index 5ea962f..bc7b750 100644 --- a/packages/client/src/components/layout/nav.tsx +++ b/packages/client/src/components/layout/nav.tsx @@ -63,7 +63,7 @@ export function NavList() { const loginInfo = useLogin(); const navItems = useNavItems(); - return