feat: sqlite subdocument (#2816)

Co-authored-by: Alex Yang <himself65@outlook.com>
This commit is contained in:
Peng Xiao
2023-06-27 15:40:37 +08:00
committed by GitHub
parent 4307e1eb6b
commit 05452bb297
30 changed files with 842 additions and 426 deletions

View File

@@ -140,7 +140,7 @@ describe('ydoc sync', () => {
const pageId = uuidv4();
const page1 = workspace1.createPage({ id: pageId });
await page1.waitForLoaded()
await page1.waitForLoaded();
const pageBlockId = page1.addBlock('affine:page', {
title: new page1.Text(''),
});
@@ -153,7 +153,7 @@ describe('ydoc sync', () => {
workspace1.doc.getMap(`space:${pageId}`).toJSON()
);
const page2 = workspace2.getPage(pageId) as Page;
await page2.waitForLoaded()
await page2.waitForLoaded();
page1.updateBlock(
page1.getBlockById(paragraphId) as ParagraphBlockModel,
{