mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 12:55:00 +00:00
refactor(editor): use stable stringify for snapshots (#10948)
This commit is contained in:
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user