Expand description
写笔记与编辑笔记(/admin/notes/new、/admin/notes/edit/:id)。
与写文章同一套无干扰版式:页头(返回、保存状态、查看公开页面、预览、设置、保存) 替代后台顶栏;类型分段、衬线标题与 Tiptap 正文居中;右侧设置抽屉是版本面板 (工作稿、公开版、AI 知识库)、笔记本、标签与历史版本。工作稿停止输入后自动保存, 公开与知识库快照只由明确操作更新。样式沿用 styles/pages/admin-write.css, 笔记专属部分在 admin-notes.css。数据只在浏览器鉴权后读取。
Modules§
- composer 🔒
- history 🔒
- metadata 🔒
- save 🔒
- One serialized save pipeline for autosave, explicit actions and revision restoration. Explicit actions report through toasts; plain saves only update the header status.
- state 🔒
Structs§
- Edit
Note Route /admin/notes/edit/:id。- Load
Note 🔒Editor Props - Props for the
LoadNoteEditorcomponent. - NewNote
Route /admin/notes/new。- Note
Editor 🔒Props - Props for the
NoteEditorcomponent.
Enums§
- Load
Failure 🔒 - 加载失败的两种形态:笔记不存在,或其他错误(可重试)。
Functions§
- Load
Note 🔒Editor - Required Props
- Note
Editor 🔒 - Required Props
- __
Edit 🔒Note Route_ View - __
NewNote 🔒Route_ View