feat!: unified migration logic in server electron, and browser (#4079)

Co-authored-by: Mirone <Saul-Mirone@outlook.com>
This commit is contained in:
Alex Yang
2023-09-06 00:44:53 -07:00
committed by GitHub
parent 925c18300f
commit 1b6a78cd00
61 changed files with 10776 additions and 10267 deletions

View File

@@ -14,7 +14,10 @@
"sys:id": "XSMCxudQf4",
"sys:flavour": "affine:surface",
"sys:children": [],
"prop:elements": {}
"prop:elements": {
"type": "$blocksuite:internal:native$",
"value": {}
}
},
"2xxenQgE1-": {
"sys:id": "2xxenQgE1-",

View File

@@ -14,7 +14,10 @@
"sys:id": "_07_dOaECY",
"sys:flavour": "affine:surface",
"sys:children": [],
"prop:elements": {}
"prop:elements": {
"type": "$blocksuite:internal:native$",
"value": {}
}
},
"0n7YghSHPc": {
"sys:id": "0n7YghSHPc",

View File

@@ -14,7 +14,10 @@
"sys:id": "f7o2Osxfa_",
"sys:flavour": "affine:surface",
"sys:children": [],
"prop:elements": {}
"prop:elements": {
"type": "$blocksuite:internal:native$",
"value": {}
}
},
"NDAzEfCZnv": {
"sys:id": "NDAzEfCZnv",

View File

@@ -14,7 +14,10 @@
"sys:id": "86K_nlhKXG",
"sys:flavour": "affine:surface",
"sys:children": [],
"prop:elements": {}
"prop:elements": {
"type": "$blocksuite:internal:native$",
"value": {}
}
},
"q7fYMX90uJ": {
"sys:id": "q7fYMX90uJ",

View File

@@ -14,7 +14,10 @@
"sys:id": "-SeDPuI6pE",
"sys:flavour": "affine:surface",
"sys:children": [],
"prop:elements": {}
"prop:elements": {
"type": "$blocksuite:internal:native$",
"value": {}
}
},
"gjPKqwOdlZ": {
"sys:id": "gjPKqwOdlZ",

View File

@@ -14,7 +14,10 @@
"sys:id": "f4WAKZ67ki",
"sys:flavour": "affine:surface",
"sys:children": [],
"prop:elements": {}
"prop:elements": {
"type": "$blocksuite:internal:native$",
"value": {}
}
},
"xj7QSmgQgT": {
"sys:id": "xj7QSmgQgT",

View File

@@ -15,45 +15,48 @@
"sys:flavour": "affine:surface",
"sys:children": [],
"prop:elements": {
"aAOeeA4jhz": {
"type": "connector",
"mode": 1,
"strokeWidth": 2,
"stroke": "--affine-palette-line-blue",
"strokeStyle": "solid",
"roughness": 1.4,
"source": {
"id": "f6Owaa00aK",
"position": [0.5, 1]
"type": "$blocksuite:internal:native$",
"value": {
"aAOeeA4jhz": {
"type": "connector",
"mode": 1,
"strokeWidth": 2,
"stroke": "--affine-palette-line-blue",
"strokeStyle": "solid",
"roughness": 1.4,
"source": {
"id": "f6Owaa00aK",
"position": [0.5, 1]
},
"target": {
"id": "W6M-MPQ5-F"
},
"controllers": [],
"id": "aAOeeA4jhz",
"index": "a1",
"seed": 1493853178,
"xywh": "[181.61467354910715,-359.54656036633406,400,379.64]"
},
"target": {
"id": "W6M-MPQ5-F"
},
"controllers": [],
"id": "aAOeeA4jhz",
"index": "a1",
"seed": 1493853178,
"xywh": "[181.61467354910715,-359.54656036633406,400,379.64]"
},
"pMyfZPwXXU": {
"type": "connector",
"mode": 1,
"strokeWidth": 2,
"stroke": "--affine-palette-line-black",
"strokeStyle": "solid",
"roughness": 1.4,
"source": {
"id": "f6Owaa00aK",
"position": [0.5010332476508476, 1]
},
"target": {
"id": "-tH5D5Hf4J"
},
"controllers": [],
"id": "pMyfZPwXXU",
"index": "a2",
"seed": 1151132732,
"xywh": "[581.9546735491072,-359.54656036633406,650.69,379.64]"
"pMyfZPwXXU": {
"type": "connector",
"mode": 1,
"strokeWidth": 2,
"stroke": "--affine-palette-line-black",
"strokeStyle": "solid",
"roughness": 1.4,
"source": {
"id": "f6Owaa00aK",
"position": [0.5010332476508476, 1]
},
"target": {
"id": "-tH5D5Hf4J"
},
"controllers": [],
"id": "pMyfZPwXXU",
"index": "a2",
"seed": 1151132732,
"xywh": "[581.9546735491072,-359.54656036633406,650.69,379.64]"
}
}
}
},

View File

@@ -14,7 +14,10 @@
"sys:id": "9eBKQxt8ax",
"sys:flavour": "affine:surface",
"sys:children": [],
"prop:elements": {}
"prop:elements": {
"type": "$blocksuite:internal:native$",
"value": {}
}
},
"2nHeyqzDMf": {
"sys:id": "2nHeyqzDMf",

File diff suppressed because it is too large Load Diff

View File

@@ -14,7 +14,10 @@
"sys:id": "PCxQvHuwt1",
"sys:flavour": "affine:surface",
"sys:children": [],
"prop:elements": {}
"prop:elements": {
"type": "$blocksuite:internal:native$",
"value": {}
}
},
"PMY4JPuq4o": {
"sys:id": "PMY4JPuq4o",

File diff suppressed because it is too large Load Diff

View File

@@ -28,111 +28,114 @@
"sys:flavour": "affine:surface",
"sys:children": [],
"prop:elements": {
"sw8Uxi4bBo": {
"type": "text",
"xywh": "[-536.8747010075784,-1579.765008069904,1543.7942406924883,394.2045498052795]",
"rotate": 0,
"text": [
{
"insert": "You can switch from edgeless mode to paper mode if you want to add more notes! "
}
],
"color": "--affine-palette-line-navy",
"fontSize": 82.63458496823259,
"fontFamily": "'Kalam', cursive",
"textAlign": "left",
"isBold": false,
"isItalic": false,
"id": "sw8Uxi4bBo",
"index": "b0u",
"seed": 615352575
},
"Tubq5p548e": {
"type": "text",
"xywh": "[-513.3186960556048,-1403.9329998657581,1624.0512882883274,77.08483854034749]",
"rotate": 0,
"text": [
{
"insert": "If you want creat your own template, click + New Page to start your journey! "
}
],
"color": "--affine-palette-line-navy",
"fontSize": 48.17803589166863,
"fontFamily": "'Kalam', cursive",
"textAlign": "left",
"isBold": false,
"isItalic": false,
"id": "Tubq5p548e",
"index": "b0v",
"seed": 1725612619
},
"ieZVmhh5WF": {
"type": "shape",
"xywh": "[-536.8747010075784,-1425.8756349679952,1777.647429124084,120.9701087448215]",
"rotate": 0,
"shapeType": "rect",
"radius": 0.1,
"filled": false,
"fillColor": "--affine-palette-transparent",
"strokeWidth": 4,
"strokeColor": "--affine-palette-line-navy",
"strokeStyle": "solid",
"roughness": 2,
"id": "ieZVmhh5WF",
"index": "b0w",
"seed": 1287209158
},
"yGt4uK3Jrz": {
"type": "frame",
"xywh": "[-559.1114681167911,-596.5645426128128,1121.628897543559,640]",
"title": [
{
"insert": "Start from here"
}
],
"batch": "a0",
"id": "yGt4uK3Jrz",
"index": "a1",
"seed": 1327354607
},
"dPCGvkzOF1": {
"type": "frame",
"xywh": "[-559.1114681167911,289.07749381963725,1075.8482127510565,640]",
"title": [
{
"insert": "Part 1"
}
],
"batch": "a0",
"id": "dPCGvkzOF1",
"index": "a2",
"seed": 122824650
},
"nIZLp-sa3n": {
"type": "frame",
"xywh": "[-559.1114681167911,1174.7195302520875,1130.582694488373,640]",
"title": [
{
"insert": "Part 2"
}
],
"batch": "a0",
"id": "nIZLp-sa3n",
"index": "a3",
"seed": 1488143224
},
"8FjxUtSCG6": {
"type": "frame",
"xywh": "[1019.2666610517662,-621.9153214705414,2150.370188968697,1619.1792632492125]",
"title": [
{
"insert": "Part 3"
}
],
"batch": "a0",
"id": "8FjxUtSCG6",
"index": "a4",
"seed": 219967056
"type": "$blocksuite:internal:native$",
"value": {
"sw8Uxi4bBo": {
"type": "text",
"xywh": "[-536.8747010075784,-1579.765008069904,1543.7942406924883,394.2045498052795]",
"rotate": 0,
"text": [
{
"insert": "You can switch from edgeless mode to paper mode if you want to add more notes! "
}
],
"color": "--affine-palette-line-navy",
"fontSize": 82.63458496823259,
"fontFamily": "'Kalam', cursive",
"textAlign": "left",
"isBold": false,
"isItalic": false,
"id": "sw8Uxi4bBo",
"index": "b0u",
"seed": 615352575
},
"Tubq5p548e": {
"type": "text",
"xywh": "[-513.3186960556048,-1403.9329998657581,1624.0512882883274,77.08483854034749]",
"rotate": 0,
"text": [
{
"insert": "If you want creat your own template, click + New Page to start your journey! "
}
],
"color": "--affine-palette-line-navy",
"fontSize": 48.17803589166863,
"fontFamily": "'Kalam', cursive",
"textAlign": "left",
"isBold": false,
"isItalic": false,
"id": "Tubq5p548e",
"index": "b0v",
"seed": 1725612619
},
"ieZVmhh5WF": {
"type": "shape",
"xywh": "[-536.8747010075784,-1425.8756349679952,1777.647429124084,120.9701087448215]",
"rotate": 0,
"shapeType": "rect",
"radius": 0.1,
"filled": false,
"fillColor": "--affine-palette-transparent",
"strokeWidth": 4,
"strokeColor": "--affine-palette-line-navy",
"strokeStyle": "solid",
"roughness": 2,
"id": "ieZVmhh5WF",
"index": "b0w",
"seed": 1287209158
},
"yGt4uK3Jrz": {
"type": "frame",
"xywh": "[-559.1114681167911,-596.5645426128128,1121.628897543559,640]",
"title": [
{
"insert": "Start from here"
}
],
"batch": "a0",
"id": "yGt4uK3Jrz",
"index": "a1",
"seed": 1327354607
},
"dPCGvkzOF1": {
"type": "frame",
"xywh": "[-559.1114681167911,289.07749381963725,1075.8482127510565,640]",
"title": [
{
"insert": "Part 1"
}
],
"batch": "a0",
"id": "dPCGvkzOF1",
"index": "a2",
"seed": 122824650
},
"nIZLp-sa3n": {
"type": "frame",
"xywh": "[-559.1114681167911,1174.7195302520875,1130.582694488373,640]",
"title": [
{
"insert": "Part 2"
}
],
"batch": "a0",
"id": "nIZLp-sa3n",
"index": "a3",
"seed": 1488143224
},
"8FjxUtSCG6": {
"type": "frame",
"xywh": "[1019.2666610517662,-621.9153214705414,2150.370188968697,1619.1792632492125]",
"title": [
{
"insert": "Part 3"
}
],
"batch": "a0",
"id": "8FjxUtSCG6",
"index": "a4",
"seed": 219967056
}
}
}
},

View File

@@ -14,7 +14,10 @@
"sys:id": "yC-F6Rj9bA",
"sys:flavour": "affine:surface",
"sys:children": [],
"prop:elements": {}
"prop:elements": {
"type": "$blocksuite:internal:native$",
"value": {}
}
},
"pk_Cjkpyd4": {
"sys:id": "pk_Cjkpyd4",