0.4.0 convex及界面修改
This commit is contained in:
@@ -35,12 +35,20 @@ export default async function DocumentPage({ params, searchParams }: DocumentPag
|
||||
showStructure: doc.show_structure ?? false,
|
||||
protectEditing: doc.protect_editing ?? false,
|
||||
showWordCount: doc.show_word_count ?? true,
|
||||
collapseBacklinks: (doc as any).collapse_backlinks ?? false,
|
||||
pageFont: (doc as any).page_font ?? "default",
|
||||
layoutDensity: (doc as any).layout_density ?? "normal",
|
||||
hideChildPages: (doc as any).hide_child_pages ?? false,
|
||||
showBlockRefCount: (doc as any).show_block_ref_count ?? false,
|
||||
embedDefaultBlockId: (doc as any).embed_default_block_id ?? null,
|
||||
};
|
||||
|
||||
const initialStats: DocumentStats = {
|
||||
wordCount: doc.word_count ?? 0,
|
||||
characterCount: doc.character_count ?? 0,
|
||||
blockCount: doc.block_count ?? 0,
|
||||
todoTotal: (doc as any).todo_total ?? (doc as any).todo_total_count ?? 0,
|
||||
todoDone: (doc as any).todo_done ?? (doc as any).todo_done_count ?? 0,
|
||||
};
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user