refactor(editor): use stable stringify for snapshots (#10948)

This commit is contained in:
pengx17
2025-03-18 05:41:19 +00:00
parent 83af78d9ee
commit 99370573c8
183 changed files with 10875 additions and 10142 deletions

View File

@@ -1,29 +1,57 @@
{
"type": "block",
"id": "0",
"flavour": "affine:page",
"version": 2,
"props": {
"title": {
"$blocksuite:internal:text$": true,
"delta": []
}
},
"children": [
{
"type": "block",
"id": "1",
"children": [
{
"children": [
],
"flavour": "affine:code",
"id": "2",
"props": {
"caption": "",
"language": "javascript",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "use"
}
]
},
"wrap": false
},
"type": "block",
"version": 1
},
{
"children": [
],
"flavour": "affine:code",
"id": "4",
"props": {
"caption": "",
"language": "javascript",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "use"
}
]
},
"wrap": false
},
"type": "block",
"version": 1
}
],
"flavour": "affine:note",
"version": 1,
"id": "1",
"props": {
"xywh": "[0,0,498,92]",
"background": {
"dark": "#000000",
"light": "#ffffff"
},
"index": "a0",
"lockedBySelf": false,
"hidden": false,
"displayMode": "both",
"edgeless": {
"style": {
@@ -32,50 +60,25 @@
"borderStyle": "none",
"shadowType": "--affine-note-shadow-box"
}
}
},
"children": [
{
"type": "block",
"id": "2",
"flavour": "affine:code",
"version": 1,
"props": {
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "use"
}
]
},
"language": "javascript",
"wrap": false,
"caption": ""
},
"children": []
},
{
"type": "block",
"id": "4",
"flavour": "affine:code",
"version": 1,
"props": {
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "use"
}
]
},
"language": "javascript",
"wrap": false,
"caption": ""
},
"children": []
}
"hidden": false,
"index": "a0",
"lockedBySelf": false,
"xywh": "[0,0,498,92]"
},
"type": "block",
"version": 1
}
],
"flavour": "affine:page",
"id": "0",
"props": {
"title": {
"$blocksuite:internal:text$": true,
"delta": [
]
}
]
},
"type": "block",
"version": 2
}

View File

@@ -1,29 +1,51 @@
{
"type": "block",
"id": "0",
"flavour": "affine:page",
"version": 2,
"props": {
"title": {
"$blocksuite:internal:text$": true,
"delta": []
}
},
"children": [
{
"type": "block",
"id": "1",
"children": [
{
"children": [
],
"flavour": "affine:code",
"id": "2",
"props": {
"caption": "",
"language": "javascript",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
]
},
"wrap": false
},
"type": "block",
"version": 1
},
{
"children": [
],
"flavour": "affine:code",
"id": "4",
"props": {
"caption": "",
"language": "javascript",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
]
},
"wrap": false
},
"type": "block",
"version": 1
}
],
"flavour": "affine:note",
"version": 1,
"id": "1",
"props": {
"xywh": "[0,0,498,92]",
"background": {
"dark": "#000000",
"light": "#ffffff"
},
"index": "a0",
"lockedBySelf": false,
"hidden": false,
"displayMode": "both",
"edgeless": {
"style": {
@@ -32,42 +54,25 @@
"borderStyle": "none",
"shadowType": "--affine-note-shadow-box"
}
}
},
"children": [
{
"type": "block",
"id": "2",
"flavour": "affine:code",
"version": 1,
"props": {
"text": {
"$blocksuite:internal:text$": true,
"delta": []
},
"language": "javascript",
"wrap": false,
"caption": ""
},
"children": []
},
{
"type": "block",
"id": "4",
"flavour": "affine:code",
"version": 1,
"props": {
"text": {
"$blocksuite:internal:text$": true,
"delta": []
},
"language": "javascript",
"wrap": false,
"caption": ""
},
"children": []
}
"hidden": false,
"index": "a0",
"lockedBySelf": false,
"xywh": "[0,0,498,92]"
},
"type": "block",
"version": 1
}
],
"flavour": "affine:page",
"id": "0",
"props": {
"title": {
"$blocksuite:internal:text$": true,
"delta": [
]
}
]
},
"type": "block",
"version": 2
}

View File

@@ -1,29 +1,50 @@
{
"type": "block",
"id": "0",
"flavour": "affine:page",
"version": 2,
"props": {
"title": {
"$blocksuite:internal:text$": true,
"delta": []
}
},
"children": [
{
"type": "block",
"id": "1",
"children": [
{
"children": [
],
"flavour": "affine:code",
"id": "2",
"props": {
"caption": "BlockSuite",
"language": null,
"text": {
"$blocksuite:internal:text$": true,
"delta": [
]
},
"wrap": false
},
"type": "block",
"version": 1
},
{
"children": [
],
"flavour": "affine:paragraph",
"id": "3",
"props": {
"collapsed": false,
"text": {
"$blocksuite:internal:text$": true,
"delta": [
]
},
"type": "text"
},
"type": "block",
"version": 1
}
],
"flavour": "affine:note",
"version": 1,
"id": "1",
"props": {
"xywh": "[0,0,498,92]",
"background": {
"dark": "#000000",
"light": "#ffffff"
},
"index": "a0",
"lockedBySelf": false,
"hidden": false,
"displayMode": "both",
"edgeless": {
"style": {
@@ -32,41 +53,25 @@
"borderStyle": "none",
"shadowType": "--affine-note-shadow-box"
}
}
},
"children": [
{
"type": "block",
"id": "2",
"flavour": "affine:code",
"version": 1,
"props": {
"text": {
"$blocksuite:internal:text$": true,
"delta": []
},
"language": null,
"wrap": false,
"caption": "BlockSuite"
},
"children": []
},
{
"type": "block",
"id": "3",
"flavour": "affine:paragraph",
"version": 1,
"props": {
"type": "text",
"text": {
"$blocksuite:internal:text$": true,
"delta": []
},
"collapsed": false
},
"children": []
}
"hidden": false,
"index": "a0",
"lockedBySelf": false,
"xywh": "[0,0,498,92]"
},
"type": "block",
"version": 1
}
],
"flavour": "affine:page",
"id": "0",
"props": {
"title": {
"$blocksuite:internal:text$": true,
"delta": [
]
}
]
},
"type": "block",
"version": 2
}

View File

@@ -1,29 +1,33 @@
{
"type": "block",
"id": "0",
"flavour": "affine:page",
"version": 2,
"props": {
"title": {
"$blocksuite:internal:text$": true,
"delta": []
}
},
"children": [
{
"type": "block",
"id": "1",
"children": [
{
"children": [
],
"flavour": "affine:code",
"id": "2",
"props": {
"caption": "",
"language": "rust",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
]
},
"wrap": false
},
"type": "block",
"version": 1
}
],
"flavour": "affine:note",
"version": 1,
"id": "1",
"props": {
"xywh": "[0,0,498,92]",
"background": {
"dark": "#000000",
"light": "#ffffff"
},
"index": "a0",
"lockedBySelf": false,
"hidden": false,
"displayMode": "both",
"edgeless": {
"style": {
@@ -32,26 +36,25 @@
"borderStyle": "none",
"shadowType": "--affine-note-shadow-box"
}
}
},
"hidden": false,
"index": "a0",
"lockedBySelf": false,
"xywh": "[0,0,498,92]"
},
"children": [
{
"type": "block",
"id": "2",
"flavour": "affine:code",
"version": 1,
"props": {
"text": {
"$blocksuite:internal:text$": true,
"delta": []
},
"language": "rust",
"wrap": false,
"caption": ""
},
"children": []
}
"type": "block",
"version": 1
}
],
"flavour": "affine:page",
"id": "0",
"props": {
"title": {
"$blocksuite:internal:text$": true,
"delta": [
]
}
]
},
"type": "block",
"version": 2
}

View File

@@ -1,29 +1,33 @@
{
"type": "block",
"id": "0",
"flavour": "affine:page",
"version": 2,
"props": {
"title": {
"$blocksuite:internal:text$": true,
"delta": []
}
},
"children": [
{
"type": "block",
"id": "1",
"children": [
{
"children": [
],
"flavour": "affine:code",
"id": "2",
"props": {
"caption": "",
"language": null,
"text": {
"$blocksuite:internal:text$": true,
"delta": [
]
},
"wrap": false
},
"type": "block",
"version": 1
}
],
"flavour": "affine:note",
"version": 1,
"id": "1",
"props": {
"xywh": "[0,0,498,92]",
"background": {
"dark": "#000000",
"light": "#ffffff"
},
"index": "a0",
"lockedBySelf": false,
"hidden": false,
"displayMode": "both",
"edgeless": {
"style": {
@@ -32,26 +36,25 @@
"borderStyle": "none",
"shadowType": "--affine-note-shadow-box"
}
}
},
"hidden": false,
"index": "a0",
"lockedBySelf": false,
"xywh": "[0,0,498,92]"
},
"children": [
{
"type": "block",
"id": "2",
"flavour": "affine:code",
"version": 1,
"props": {
"text": {
"$blocksuite:internal:text$": true,
"delta": []
},
"language": null,
"wrap": false,
"caption": ""
},
"children": []
}
"type": "block",
"version": 1
}
],
"flavour": "affine:page",
"id": "0",
"props": {
"title": {
"$blocksuite:internal:text$": true,
"delta": [
]
}
]
},
"type": "block",
"version": 2
}

View File

@@ -1,29 +1,15 @@
{
"type": "block",
"id": "0",
"flavour": "affine:page",
"version": 2,
"props": {
"title": {
"$blocksuite:internal:text$": true,
"delta": []
}
},
"children": [
{
"type": "block",
"id": "1",
"children": [
],
"flavour": "affine:note",
"version": 1,
"id": "1",
"props": {
"xywh": "[0,0,498,92]",
"background": {
"dark": "#000000",
"light": "#ffffff"
},
"index": "a0",
"lockedBySelf": false,
"hidden": false,
"displayMode": "both",
"edgeless": {
"style": {
@@ -32,9 +18,25 @@
"borderStyle": "none",
"shadowType": "--affine-note-shadow-box"
}
}
},
"hidden": false,
"index": "a0",
"lockedBySelf": false,
"xywh": "[0,0,498,92]"
},
"children": []
"type": "block",
"version": 1
}
]
],
"flavour": "affine:page",
"id": "0",
"props": {
"title": {
"$blocksuite:internal:text$": true,
"delta": [
]
}
},
"type": "block",
"version": 2
}

View File

@@ -1,29 +1,57 @@
{
"type": "block",
"id": "0",
"flavour": "affine:page",
"version": 2,
"props": {
"title": {
"$blocksuite:internal:text$": true,
"delta": []
}
},
"children": [
{
"type": "block",
"id": "1",
"children": [
{
"children": [
],
"flavour": "affine:code",
"id": "2",
"props": {
"caption": "BlockSuite",
"language": "rust",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "let a: u8 = 7"
}
]
},
"wrap": true
},
"type": "block",
"version": 1
},
{
"children": [
],
"flavour": "affine:code",
"id": "4",
"props": {
"caption": "BlockSuite",
"language": "rust",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "let a: u8 = 7"
}
]
},
"wrap": true
},
"type": "block",
"version": 1
}
],
"flavour": "affine:note",
"version": 1,
"id": "1",
"props": {
"xywh": "[0,0,498,92]",
"background": {
"dark": "#000000",
"light": "#ffffff"
},
"index": "a0",
"lockedBySelf": false,
"hidden": false,
"displayMode": "both",
"edgeless": {
"style": {
@@ -32,50 +60,25 @@
"borderStyle": "none",
"shadowType": "--affine-note-shadow-box"
}
}
},
"children": [
{
"type": "block",
"id": "2",
"flavour": "affine:code",
"version": 1,
"props": {
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "let a: u8 = 7"
}
]
},
"language": "rust",
"wrap": true,
"caption": "BlockSuite"
},
"children": []
},
{
"type": "block",
"id": "4",
"flavour": "affine:code",
"version": 1,
"props": {
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "let a: u8 = 7"
}
]
},
"language": "rust",
"wrap": true,
"caption": "BlockSuite"
},
"children": []
}
"hidden": false,
"index": "a0",
"lockedBySelf": false,
"xywh": "[0,0,498,92]"
},
"type": "block",
"version": 1
}
],
"flavour": "affine:page",
"id": "0",
"props": {
"title": {
"$blocksuite:internal:text$": true,
"delta": [
]
}
]
},
"type": "block",
"version": 2
}

View File

@@ -1,29 +1,63 @@
{
"type": "block",
"id": "0",
"flavour": "affine:page",
"version": 2,
"props": {
"title": {
"$blocksuite:internal:text$": true,
"delta": []
}
},
"children": [
{
"type": "block",
"id": "1",
"children": [
{
"children": [
],
"flavour": "affine:code",
"id": "3",
"props": {
"caption": "",
"language": "typescript",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "c"
},
{
"attributes": {
"bold": true
},
"insert": "o"
},
{
"insert": "ns"
},
{
"attributes": {
"bold": true
},
"insert": "t a"
},
{
"insert": "a"
},
{
"attributes": {
"bold": true
},
"insert": "a = 1000"
},
{
"insert": ";"
}
]
},
"wrap": false
},
"type": "block",
"version": 1
}
],
"flavour": "affine:note",
"version": 1,
"id": "1",
"props": {
"xywh": "[0,0,498,92]",
"background": {
"dark": "#000000",
"light": "#ffffff"
},
"index": "a0",
"lockedBySelf": false,
"hidden": false,
"displayMode": "both",
"edgeless": {
"style": {
@@ -32,57 +66,25 @@
"borderStyle": "none",
"shadowType": "--affine-note-shadow-box"
}
}
},
"hidden": false,
"index": "a0",
"lockedBySelf": false,
"xywh": "[0,0,498,92]"
},
"children": [
{
"type": "block",
"id": "3",
"flavour": "affine:code",
"version": 1,
"props": {
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "c"
},
{
"insert": "o",
"attributes": {
"bold": true
}
},
{
"insert": "ns"
},
{
"insert": "t a",
"attributes": {
"bold": true
}
},
{
"insert": "a"
},
{
"insert": "a = 1000",
"attributes": {
"bold": true
}
},
{
"insert": ";"
}
]
},
"language": "typescript",
"wrap": false,
"caption": ""
},
"children": []
}
"type": "block",
"version": 1
}
],
"flavour": "affine:page",
"id": "0",
"props": {
"title": {
"$blocksuite:internal:text$": true,
"delta": [
]
}
]
},
"type": "block",
"version": 2
}

View File

@@ -1,46 +1,15 @@
{
"type": "block",
"id": "0",
"flavour": "affine:page",
"version": 2,
"props": {
"title": {
"$blocksuite:internal:text$": true,
"delta": []
}
},
"children": [
{
"type": "block",
"id": "1",
"flavour": "affine:note",
"version": 1,
"props": {
"xywh": "[0,0,498,92]",
"background": {
"dark": "#000000",
"light": "#ffffff"
},
"index": "a0",
"lockedBySelf": false,
"hidden": false,
"displayMode": "both",
"edgeless": {
"style": {
"borderRadius": 8,
"borderSize": 4,
"borderStyle": "none",
"shadowType": "--affine-note-shadow-box"
}
}
},
"children": [
{
"type": "block",
"id": "3",
"children": [
],
"flavour": "affine:code",
"version": 1,
"id": "3",
"props": {
"caption": "",
"language": "typescript",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
@@ -49,13 +18,46 @@
}
]
},
"language": "typescript",
"wrap": false,
"caption": ""
"wrap": false
},
"children": []
"type": "block",
"version": 1
}
],
"flavour": "affine:note",
"id": "1",
"props": {
"background": {
"dark": "#000000",
"light": "#ffffff"
},
"displayMode": "both",
"edgeless": {
"style": {
"borderRadius": 8,
"borderSize": 4,
"borderStyle": "none",
"shadowType": "--affine-note-shadow-box"
}
},
"hidden": false,
"index": "a0",
"lockedBySelf": false,
"xywh": "[0,0,498,92]"
},
"type": "block",
"version": 1
}
],
"flavour": "affine:page",
"id": "0",
"props": {
"title": {
"$blocksuite:internal:text$": true,
"delta": [
]
}
]
},
"type": "block",
"version": 2
}

View File

@@ -1,29 +1,74 @@
{
"type": "block",
"id": "0",
"flavour": "affine:page",
"version": 2,
"props": {
"title": {
"$blocksuite:internal:text$": true,
"delta": []
}
},
"children": [
{
"type": "block",
"id": "1",
"children": [
{
"children": [
],
"flavour": "affine:code",
"id": "3",
"props": {
"caption": "",
"language": "typescript",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "c"
},
{
"attributes": {
"bold": true
},
"insert": "o"
},
{
"insert": "ns"
},
{
"attributes": {
"bold": true,
"link": "https://www.baidu.com"
},
"insert": "t a"
},
{
"attributes": {
"link": "https://www.baidu.com"
},
"insert": "a"
},
{
"attributes": {
"bold": true,
"link": "https://www.baidu.com"
},
"insert": "a "
},
{
"attributes": {
"bold": true
},
"insert": "= 1000"
},
{
"insert": ";"
}
]
},
"wrap": false
},
"type": "block",
"version": 1
}
],
"flavour": "affine:note",
"version": 1,
"id": "1",
"props": {
"xywh": "[0,0,498,92]",
"background": {
"dark": "#000000",
"light": "#ffffff"
},
"index": "a0",
"lockedBySelf": false,
"hidden": false,
"displayMode": "both",
"edgeless": {
"style": {
@@ -32,68 +77,25 @@
"borderStyle": "none",
"shadowType": "--affine-note-shadow-box"
}
}
},
"hidden": false,
"index": "a0",
"lockedBySelf": false,
"xywh": "[0,0,498,92]"
},
"children": [
{
"type": "block",
"id": "3",
"flavour": "affine:code",
"version": 1,
"props": {
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "c"
},
{
"insert": "o",
"attributes": {
"bold": true
}
},
{
"insert": "ns"
},
{
"insert": "t a",
"attributes": {
"link": "https://www.baidu.com",
"bold": true
}
},
{
"insert": "a",
"attributes": {
"link": "https://www.baidu.com"
}
},
{
"insert": "a ",
"attributes": {
"link": "https://www.baidu.com",
"bold": true
}
},
{
"insert": "= 1000",
"attributes": {
"bold": true
}
},
{
"insert": ";"
}
]
},
"language": "typescript",
"wrap": false,
"caption": ""
},
"children": []
}
"type": "block",
"version": 1
}
],
"flavour": "affine:page",
"id": "0",
"props": {
"title": {
"$blocksuite:internal:text$": true,
"delta": [
]
}
]
},
"type": "block",
"version": 2
}

View File

@@ -1,29 +1,33 @@
{
"type": "block",
"id": "0",
"flavour": "affine:page",
"version": 2,
"props": {
"title": {
"$blocksuite:internal:text$": true,
"delta": []
}
},
"children": [
{
"type": "block",
"id": "1",
"children": [
{
"children": [
],
"flavour": "affine:code",
"id": "2",
"props": {
"caption": "",
"language": null,
"text": {
"$blocksuite:internal:text$": true,
"delta": [
]
},
"wrap": false
},
"type": "block",
"version": 1
}
],
"flavour": "affine:note",
"version": 1,
"id": "1",
"props": {
"xywh": "[0,0,498,92]",
"background": {
"dark": "#000000",
"light": "#ffffff"
},
"index": "a0",
"lockedBySelf": false,
"hidden": false,
"displayMode": "both",
"edgeless": {
"style": {
@@ -32,26 +36,25 @@
"borderStyle": "none",
"shadowType": "--affine-note-shadow-box"
}
}
},
"hidden": false,
"index": "a0",
"lockedBySelf": false,
"xywh": "[0,0,498,92]"
},
"children": [
{
"type": "block",
"id": "2",
"flavour": "affine:code",
"version": 1,
"props": {
"text": {
"$blocksuite:internal:text$": true,
"delta": []
},
"language": null,
"wrap": false,
"caption": ""
},
"children": []
}
"type": "block",
"version": 1
}
],
"flavour": "affine:page",
"id": "0",
"props": {
"title": {
"$blocksuite:internal:text$": true,
"delta": [
]
}
]
},
"type": "block",
"version": 2
}

View File

@@ -1,29 +1,33 @@
{
"type": "block",
"id": "0",
"flavour": "affine:page",
"version": 2,
"props": {
"title": {
"$blocksuite:internal:text$": true,
"delta": []
}
},
"children": [
{
"type": "block",
"id": "1",
"children": [
{
"children": [
],
"flavour": "affine:code",
"id": "2",
"props": {
"caption": "",
"language": null,
"text": {
"$blocksuite:internal:text$": true,
"delta": [
]
},
"wrap": true
},
"type": "block",
"version": 1
}
],
"flavour": "affine:note",
"version": 1,
"id": "1",
"props": {
"xywh": "[0,0,498,92]",
"background": {
"dark": "#000000",
"light": "#ffffff"
},
"index": "a0",
"lockedBySelf": false,
"hidden": false,
"displayMode": "both",
"edgeless": {
"style": {
@@ -32,26 +36,25 @@
"borderStyle": "none",
"shadowType": "--affine-note-shadow-box"
}
}
},
"hidden": false,
"index": "a0",
"lockedBySelf": false,
"xywh": "[0,0,498,92]"
},
"children": [
{
"type": "block",
"id": "2",
"flavour": "affine:code",
"version": 1,
"props": {
"text": {
"$blocksuite:internal:text$": true,
"delta": []
},
"language": null,
"wrap": true,
"caption": ""
},
"children": []
}
"type": "block",
"version": 1
}
],
"flavour": "affine:page",
"id": "0",
"props": {
"title": {
"$blocksuite:internal:text$": true,
"delta": [
]
}
]
},
"type": "block",
"version": 2
}

View File

@@ -1,29 +1,33 @@
{
"type": "block",
"id": "0",
"flavour": "affine:page",
"version": 2,
"props": {
"title": {
"$blocksuite:internal:text$": true,
"delta": []
}
},
"children": [
{
"type": "block",
"id": "1",
"children": [
{
"children": [
],
"flavour": "affine:code",
"id": "2",
"props": {
"caption": "",
"language": null,
"text": {
"$blocksuite:internal:text$": true,
"delta": [
]
},
"wrap": false
},
"type": "block",
"version": 1
}
],
"flavour": "affine:note",
"version": 1,
"id": "1",
"props": {
"xywh": "[0,0,498,92]",
"background": {
"dark": "#000000",
"light": "#ffffff"
},
"index": "a0",
"lockedBySelf": false,
"hidden": false,
"displayMode": "both",
"edgeless": {
"style": {
@@ -32,26 +36,25 @@
"borderStyle": "none",
"shadowType": "--affine-note-shadow-box"
}
}
},
"hidden": false,
"index": "a0",
"lockedBySelf": false,
"xywh": "[0,0,498,92]"
},
"children": [
{
"type": "block",
"id": "2",
"flavour": "affine:code",
"version": 1,
"props": {
"text": {
"$blocksuite:internal:text$": true,
"delta": []
},
"language": null,
"wrap": false,
"caption": ""
},
"children": []
}
"type": "block",
"version": 1
}
],
"flavour": "affine:page",
"id": "0",
"props": {
"title": {
"$blocksuite:internal:text$": true,
"delta": [
]
}
]
},
"type": "block",
"version": 2
}

View File

@@ -1,29 +1,33 @@
{
"type": "block",
"id": "0",
"flavour": "affine:page",
"version": 2,
"props": {
"title": {
"$blocksuite:internal:text$": true,
"delta": []
}
},
"children": [
{
"type": "block",
"id": "1",
"children": [
{
"children": [
],
"flavour": "affine:code",
"id": "2",
"props": {
"caption": "",
"language": null,
"text": {
"$blocksuite:internal:text$": true,
"delta": [
]
},
"wrap": false
},
"type": "block",
"version": 1
}
],
"flavour": "affine:note",
"version": 1,
"id": "1",
"props": {
"xywh": "[0,0,498,92]",
"background": {
"dark": "#000000",
"light": "#ffffff"
},
"index": "a0",
"lockedBySelf": false,
"hidden": false,
"displayMode": "both",
"edgeless": {
"style": {
@@ -32,26 +36,25 @@
"borderStyle": "none",
"shadowType": "--affine-note-shadow-box"
}
}
},
"hidden": false,
"index": "a0",
"lockedBySelf": false,
"xywh": "[0,0,498,92]"
},
"children": [
{
"type": "block",
"id": "2",
"flavour": "affine:code",
"version": 1,
"props": {
"text": {
"$blocksuite:internal:text$": true,
"delta": []
},
"language": null,
"wrap": false,
"caption": ""
},
"children": []
}
"type": "block",
"version": 1
}
],
"flavour": "affine:page",
"id": "0",
"props": {
"title": {
"$blocksuite:internal:text$": true,
"delta": [
]
}
]
},
"type": "block",
"version": 2
}

View File

@@ -1,29 +1,33 @@
{
"type": "block",
"id": "0",
"flavour": "affine:page",
"version": 2,
"props": {
"title": {
"$blocksuite:internal:text$": true,
"delta": []
}
},
"children": [
{
"type": "block",
"id": "1",
"children": [
{
"children": [
],
"flavour": "affine:code",
"id": "2",
"props": {
"caption": "",
"language": null,
"text": {
"$blocksuite:internal:text$": true,
"delta": [
]
},
"wrap": true
},
"type": "block",
"version": 1
}
],
"flavour": "affine:note",
"version": 1,
"id": "1",
"props": {
"xywh": "[0,0,498,92]",
"background": {
"dark": "#000000",
"light": "#ffffff"
},
"index": "a0",
"lockedBySelf": false,
"hidden": false,
"displayMode": "both",
"edgeless": {
"style": {
@@ -32,26 +36,25 @@
"borderStyle": "none",
"shadowType": "--affine-note-shadow-box"
}
}
},
"hidden": false,
"index": "a0",
"lockedBySelf": false,
"xywh": "[0,0,498,92]"
},
"children": [
{
"type": "block",
"id": "2",
"flavour": "affine:code",
"version": 1,
"props": {
"text": {
"$blocksuite:internal:text$": true,
"delta": []
},
"language": null,
"wrap": true,
"caption": ""
},
"children": []
}
"type": "block",
"version": 1
}
],
"flavour": "affine:page",
"id": "0",
"props": {
"title": {
"$blocksuite:internal:text$": true,
"delta": [
]
}
]
},
"type": "block",
"version": 2
}

View File

@@ -1,29 +1,33 @@
{
"type": "block",
"id": "0",
"flavour": "affine:page",
"version": 2,
"props": {
"title": {
"$blocksuite:internal:text$": true,
"delta": []
}
},
"children": [
{
"type": "block",
"id": "1",
"children": [
{
"children": [
],
"flavour": "affine:code",
"id": "2",
"props": {
"caption": "",
"language": null,
"text": {
"$blocksuite:internal:text$": true,
"delta": [
]
},
"wrap": false
},
"type": "block",
"version": 1
}
],
"flavour": "affine:note",
"version": 1,
"id": "1",
"props": {
"xywh": "[0,0,498,92]",
"background": {
"dark": "#000000",
"light": "#ffffff"
},
"index": "a0",
"lockedBySelf": false,
"hidden": false,
"displayMode": "both",
"edgeless": {
"style": {
@@ -32,26 +36,25 @@
"borderStyle": "none",
"shadowType": "--affine-note-shadow-box"
}
}
},
"hidden": false,
"index": "a0",
"lockedBySelf": false,
"xywh": "[0,0,498,92]"
},
"children": [
{
"type": "block",
"id": "2",
"flavour": "affine:code",
"version": 1,
"props": {
"text": {
"$blocksuite:internal:text$": true,
"delta": []
},
"language": null,
"wrap": false,
"caption": ""
},
"children": []
}
"type": "block",
"version": 1
}
],
"flavour": "affine:page",
"id": "0",
"props": {
"title": {
"$blocksuite:internal:text$": true,
"delta": [
]
}
]
},
"type": "block",
"version": 2
}

View File

@@ -1,83 +1,18 @@
{
"type": "block",
"id": "0",
"flavour": "affine:page",
"version": 2,
"props": {
"title": {
"$blocksuite:internal:text$": true,
"delta": []
}
},
"children": [
{
"type": "block",
"id": "1",
"flavour": "affine:note",
"version": 1,
"props": {
"xywh": "[0,0,498,92]",
"background": {
"dark": "#000000",
"light": "#ffffff"
},
"index": "a0",
"lockedBySelf": false,
"hidden": false,
"displayMode": "both",
"edgeless": {
"style": {
"borderRadius": 8,
"borderSize": 4,
"borderStyle": "none",
"shadowType": "--affine-note-shadow-box"
}
}
},
"children": [
{
"type": "block",
"id": "2",
"flavour": "affine:paragraph",
"version": 1,
"props": {
"type": "text",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "aaa"
}
]
},
"collapsed": false
},
"children": [
{
"type": "block",
"id": "3",
"flavour": "affine:paragraph",
"version": 1,
"props": {
"type": "text",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "bbb"
}
]
},
"collapsed": false
},
"children": [
{
"type": "block",
"id": "4",
"children": [
],
"flavour": "affine:paragraph",
"version": 1,
"id": "4",
"props": {
"type": "text",
"collapsed": false,
"text": {
"$blocksuite:internal:text$": true,
"delta": [
@@ -86,15 +21,82 @@
}
]
},
"collapsed": false
"type": "text"
},
"children": []
"type": "block",
"version": 1
}
],
"flavour": "affine:paragraph",
"id": "3",
"props": {
"collapsed": false,
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "bbb"
}
]
},
"type": "text"
},
"type": "block",
"version": 1
}
],
"flavour": "affine:paragraph",
"id": "2",
"props": {
"collapsed": false,
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "aaa"
}
]
}
]
},
"type": "text"
},
"type": "block",
"version": 1
}
],
"flavour": "affine:note",
"id": "1",
"props": {
"background": {
"dark": "#000000",
"light": "#ffffff"
},
"displayMode": "both",
"edgeless": {
"style": {
"borderRadius": 8,
"borderSize": 4,
"borderStyle": "none",
"shadowType": "--affine-note-shadow-box"
}
},
"hidden": false,
"index": "a0",
"lockedBySelf": false,
"xywh": "[0,0,498,92]"
},
"type": "block",
"version": 1
}
],
"flavour": "affine:page",
"id": "0",
"props": {
"title": {
"$blocksuite:internal:text$": true,
"delta": [
]
}
]
},
"type": "block",
"version": 2
}

View File

@@ -1,63 +1,32 @@
{
"type": "block",
"id": "0",
"flavour": "affine:page",
"version": 2,
"props": {
"title": {
"$blocksuite:internal:text$": true,
"delta": []
}
},
"children": [
{
"type": "block",
"id": "1",
"flavour": "affine:note",
"version": 1,
"props": {
"xywh": "[0,0,498,92]",
"background": {
"dark": "#000000",
"light": "#ffffff"
},
"index": "a0",
"lockedBySelf": false,
"hidden": false,
"displayMode": "both",
"edgeless": {
"style": {
"borderRadius": 8,
"borderSize": 4,
"borderStyle": "none",
"shadowType": "--affine-note-shadow-box"
}
}
},
"children": [
{
"type": "block",
"id": "5",
"children": [
],
"flavour": "affine:code",
"version": 1,
"id": "5",
"props": {
"caption": "",
"language": null,
"text": {
"$blocksuite:internal:text$": true,
"delta": []
"delta": [
]
},
"language": null,
"wrap": false,
"caption": ""
"wrap": false
},
"children": []
"type": "block",
"version": 1
},
{
"type": "block",
"id": "6",
"children": [
],
"flavour": "affine:paragraph",
"version": 1,
"id": "6",
"props": {
"type": "text",
"collapsed": false,
"text": {
"$blocksuite:internal:text$": true,
"delta": [
@@ -66,35 +35,20 @@
}
]
},
"collapsed": false
"type": "text"
},
"children": []
"type": "block",
"version": 1
},
{
"type": "block",
"id": "3",
"flavour": "affine:paragraph",
"version": 1,
"props": {
"type": "text",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "bbb"
}
]
},
"collapsed": false
},
"children": [
{
"type": "block",
"id": "4",
"children": [
],
"flavour": "affine:paragraph",
"version": 1,
"id": "4",
"props": {
"type": "text",
"collapsed": false,
"text": {
"$blocksuite:internal:text$": true,
"delta": [
@@ -103,13 +57,64 @@
}
]
},
"collapsed": false
"type": "text"
},
"children": []
"type": "block",
"version": 1
}
]
],
"flavour": "affine:paragraph",
"id": "3",
"props": {
"collapsed": false,
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "bbb"
}
]
},
"type": "text"
},
"type": "block",
"version": 1
}
],
"flavour": "affine:note",
"id": "1",
"props": {
"background": {
"dark": "#000000",
"light": "#ffffff"
},
"displayMode": "both",
"edgeless": {
"style": {
"borderRadius": 8,
"borderSize": 4,
"borderStyle": "none",
"shadowType": "--affine-note-shadow-box"
}
},
"hidden": false,
"index": "a0",
"lockedBySelf": false,
"xywh": "[0,0,498,92]"
},
"type": "block",
"version": 1
}
],
"flavour": "affine:page",
"id": "0",
"props": {
"title": {
"$blocksuite:internal:text$": true,
"delta": [
]
}
]
},
"type": "block",
"version": 2
}