933ae6cb13
對應 polaris/mira/.agents/specs/mira-app/design.md §5.2 + §3.5.12。 `/mira/wiki/[pageName]`: - 抓 wiki-page 後平行撈所有 wiki-paragraph / triplet / wiki-page,client-side 用 parent_id filter (KBDB 沒 parent_id server filter,且 tag filter 還有 KI-3 bug) - 按 facet 分區渲染:facet 標題 + paragraph markdown + 該段的 triplets - facet 預設展開(看一篇要看內容)/ triplets 預設折疊(leo Logseq outliner 習慣) - **triplet A/B 拆字串 「A >> 關係 >> B」**,若 A 或 B 對得上既有 wiki entity → render 成 <Link> 跨 wiki 跳轉,是 Wikipedia-like 體驗的關鍵 - fallback:非 wiki-page block(schema/index/log 等)直接 render content `/mira/wiki`:列表用 wiki-page 的 content (= entity 名稱) 當標題,不是 page_name slug。 mira.css 加 `.mira-wiki-detail` 不破版 + h2 底線,避免長 cypher 字串撐爆右邊界。 TS check pass。
This is a Next.js project bootstrapped with create-next-app.
Getting Started
First, run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
Open http://localhost:3000 with your browser to see the result.
You can start editing the page by modifying app/page.tsx. The page auto-updates as you edit the file.
This project uses next/font to automatically optimize and load Geist, a new font family for Vercel.
Learn More
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!
Deploy on Vercel
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
Check out our Next.js deployment documentation for more details.