Files
AFFiNE-Mirror/packages/frontend/templates/onboarding/e5cYLNpIRUb-nwpSZGdix.snapshot.json
Peng Xiao 3978b2dfd2 refactor(core): onboarding using new transformer api (#5412)
Use new `transformer` to import onboarding json templates.

The json files are generated via this gist
https://gist.github.com/pengx17/ef92c305ac23123803a1a6a20e31f822

Not using the all-in-one `ZipTransformer` to import onboarding via a zip file.
1. The main concerns is that we still need to serve the blob resources via CDN to reduce user's blob usage. Otherwise the user will get the onboarding images being uploaded to cloud server every time he creates a new workspace. In this PR we extracted parts of the code from `ZipTransformer` in blocksuite and mute some code for uploading blobs.
2. it maybe not necessary to use zip for loading snapshots.

This PR is a short term solution. whether or not to tune the transformer api design may need further discussions.

fix TOV-264
2023-12-28 13:59:21 +00:00

1108 lines
33 KiB
JSON
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{
"type": "page",
"meta": {
"id": "e5cYLNpIRUb-nwpSZGdix",
"title": "Personal-Knowledge Management ",
"createDate": 1691574859042,
"tags": []
},
"blocks": {
"type": "block",
"id": "F19ZttSiUA",
"flavour": "affine:page",
"props": {
"title": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "Personal-Knowledge Management "
}
]
}
},
"children": [
{
"type": "block",
"id": "OzSHckdEQ6",
"flavour": "affine:surface",
"props": {
"elements": {
"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]"
}
}
},
"children": []
},
{
"type": "block",
"id": "f6Owaa00aK",
"flavour": "affine:note",
"props": {
"xywh": "[420.1386841846113,-539.5481469931723,322.9614914325105,102]",
"background": "--affine-background-secondary-color",
"index": "a0",
"hidden": false,
"edgeless": {
"style": {
"borderRadius": 8,
"borderSize": 4,
"borderStyle": "solid",
"shadowType": "--affine-note-shadow-box"
}
}
},
"children": [
{
"type": "block",
"id": "qyCHSngWfV",
"flavour": "affine:paragraph",
"props": {
"type": "quote",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "Write your motto here, for example:"
},
{
"insert": " It always seems impossible until its done. You can do it.",
"attributes": {
"italic": true
}
}
]
}
},
"children": []
}
]
},
{
"type": "block",
"id": "-tH5D5Hf4J",
"flavour": "affine:note",
"props": {
"xywh": "[832.6496028098738,20.093439633665938,800,1296]",
"background": "--affine-background-secondary-color",
"index": "a01",
"hidden": false,
"edgeless": {
"style": {
"borderRadius": 8,
"borderSize": 4,
"borderStyle": "solid",
"shadowType": "--affine-note-shadow-box"
}
}
},
"children": [
{
"type": "block",
"id": "ir2DPxrZN9",
"flavour": "affine:paragraph",
"props": {
"type": "text",
"text": {
"$blocksuite:internal:text$": true,
"delta": []
}
},
"children": []
},
{
"type": "block",
"id": "Bm3PQLWdKK",
"flavour": "affine:paragraph",
"props": {
"type": "h3",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "📖 Reading list"
}
]
}
},
"children": []
},
{
"type": "block",
"id": "rLuDwMETvq",
"flavour": "affine:image",
"props": {
"caption": "Books are a uniquely portable magic",
"sourceId": "/static/pIqdA3pM1la1gKzxOmAcpLmTh3yXBrL9mGTz_hGj5xE=.png",
"width": 752,
"height": 501.328125,
"index": "a0",
"xywh": "[0,0,0,0]",
"rotate": 0,
"size": -1
},
"children": []
},
{
"type": "block",
"id": "s7EitB9S6F",
"flavour": "affine:paragraph",
"props": {
"type": "quote",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "Using a form view, you can clearly list the reading status of all books. This can give you a direct understanding of the overall progress. Make good use of your time and read more books!"
}
]
}
},
"children": []
},
{
"type": "block",
"id": "L0wkiKeVji",
"flavour": "affine:database",
"props": {
"views": [
{
"id": "yYzkaFTs41",
"name": "table",
"mode": "table",
"columns": [
{
"id": "Hzbcv9VHMw",
"width": 361
},
{
"id": "L0wkiKeVji",
"hide": false,
"width": 302
},
{
"id": "scBkEETna6",
"hide": false,
"width": 180
},
{
"id": "QmfyAdToer",
"hide": false,
"width": 169
},
{
"id": "ppQS-BaKNB",
"hide": false,
"width": 200
}
],
"filter": {
"type": "group",
"op": "and",
"conditions": []
}
}
],
"title": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": " 8 books I should finished "
}
]
},
"cells": {
"lMu_xf4xVF": {
"QmfyAdToer": {
"columnId": "QmfyAdToer",
"value": 87
},
"ppQS-BaKNB": {
"columnId": "ppQS-BaKNB",
"value": ""
},
"scBkEETna6": {
"columnId": "scBkEETna6",
"value": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "Jennifer Egan"
}
]
}
}
},
"vFgr3oyqOJ": {
"QmfyAdToer": {
"columnId": "QmfyAdToer",
"value": 100
},
"ppQS-BaKNB": {
"columnId": "ppQS-BaKNB",
"value": null
},
"scBkEETna6": {
"columnId": "scBkEETna6",
"value": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "Claire-Louise Bennett"
}
]
}
}
},
"1TYjc-QdZj": {
"QmfyAdToer": {
"columnId": "QmfyAdToer",
"value": 83
},
"ppQS-BaKNB": {
"columnId": "ppQS-BaKNB",
"value": null
},
"scBkEETna6": {
"columnId": "scBkEETna6",
"value": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "Barbara Kingsolver"
}
]
}
}
},
"ROpYva-V1J": {
"QmfyAdToer": {
"columnId": "QmfyAdToer",
"value": 60
},
"ppQS-BaKNB": {
"columnId": "ppQS-BaKNB",
"value": null
},
"scBkEETna6": {
"columnId": "scBkEETna6",
"value": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "Namwali Serpell"
}
]
}
}
},
"CXTh8uALzr": {
"QmfyAdToer": {
"columnId": "QmfyAdToer",
"value": 21
},
"ppQS-BaKNB": {
"columnId": "ppQS-BaKNB",
"value": null
},
"scBkEETna6": {
"columnId": "scBkEETna6",
"value": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "Hernan Diaz"
}
]
}
}
},
"WrMjzOnJH3": {
"QmfyAdToer": {
"columnId": "QmfyAdToer",
"value": 100
},
"ppQS-BaKNB": {
"columnId": "ppQS-BaKNB",
"value": null
},
"scBkEETna6": {
"columnId": "scBkEETna6",
"value": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "Ed Yong"
}
]
}
}
},
"R__nq8e75I": {
"ppQS-BaKNB": {
"columnId": "ppQS-BaKNB",
"value": null
},
"scBkEETna6": {
"columnId": "scBkEETna6",
"value": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "Hua Hsu"
}
]
}
}
},
"XeJ1gW0QDw": {
"ppQS-BaKNB": {
"columnId": "ppQS-BaKNB",
"value": null
},
"scBkEETna6": {
"columnId": "scBkEETna6",
"value": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "Rachel Aviv"
}
]
}
}
}
},
"columns": [
{
"id": "Hzbcv9VHMw",
"type": "title",
"name": "Readlist ",
"data": {}
},
{
"type": "title",
"id": "L0wkiKeVji",
"name": "Title",
"data": {}
},
{
"type": "progress",
"name": "progress ",
"data": {},
"id": "QmfyAdToer"
},
{
"type": "link",
"name": "Additional information ",
"data": {},
"id": "ppQS-BaKNB"
},
{
"type": "rich-text",
"name": "Author",
"data": {},
"id": "scBkEETna6"
}
]
},
"children": [
{
"type": "block",
"id": "lMu_xf4xVF",
"flavour": "affine:paragraph",
"props": {
"type": "text",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "THE CANDY HOUSE",
"attributes": {
"bold": true
}
}
]
}
},
"children": []
},
{
"type": "block",
"id": "vFgr3oyqOJ",
"flavour": "affine:paragraph",
"props": {
"type": "text",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "CHECKOUT 19",
"attributes": {
"bold": true
}
},
{
"insert": " "
}
]
}
},
"children": []
},
{
"type": "block",
"id": "1TYjc-QdZj",
"flavour": "affine:paragraph",
"props": {
"type": "text",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": " "
},
{
"insert": "DEMON COPPERHEAD",
"attributes": {
"bold": true
}
}
]
}
},
"children": []
},
{
"type": "block",
"id": "ROpYva-V1J",
"flavour": "affine:paragraph",
"props": {
"type": "text",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "THE FURROWS",
"attributes": {
"bold": true
}
}
]
}
},
"children": []
},
{
"type": "block",
"id": "CXTh8uALzr",
"flavour": "affine:paragraph",
"props": {
"type": "text",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "TRUST",
"attributes": {
"bold": true
}
},
{
"insert": " "
}
]
}
},
"children": []
},
{
"type": "block",
"id": "WrMjzOnJH3",
"flavour": "affine:paragraph",
"props": {
"type": "text",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "AN IMMENSE WORLD",
"attributes": {
"bold": true
}
},
{
"insert": " "
}
]
}
},
"children": []
},
{
"type": "block",
"id": "R__nq8e75I",
"flavour": "affine:paragraph",
"props": {
"type": "text",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "STAY TRUE",
"attributes": {
"bold": true
}
},
{
"insert": " "
}
]
}
},
"children": []
},
{
"type": "block",
"id": "XeJ1gW0QDw",
"flavour": "affine:paragraph",
"props": {
"type": "text",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "STRANGERS TO OURSELVES",
"attributes": {
"bold": true
}
},
{
"insert": " "
}
]
}
},
"children": []
}
]
},
{
"type": "block",
"id": "lfXQ_rY3fA",
"flavour": "affine:divider",
"props": {},
"children": []
}
]
},
{
"type": "block",
"id": "W6M-MPQ5-F",
"flavour": "affine:note",
"props": {
"xywh": "[-218.38057009913342,20.089515493697448,800,1444]",
"background": "--affine-background-secondary-color",
"index": "a01",
"hidden": false,
"edgeless": {
"style": {
"borderRadius": 8,
"borderSize": 4,
"borderStyle": "solid",
"shadowType": "--affine-note-shadow-box"
}
}
},
"children": [
{
"type": "block",
"id": "A-XAaszL_S",
"flavour": "affine:paragraph",
"props": {
"type": "text",
"text": {
"$blocksuite:internal:text$": true,
"delta": []
}
},
"children": []
},
{
"type": "block",
"id": "n5t18a4pCF",
"flavour": "affine:paragraph",
"props": {
"type": "h3",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "📑 Study Plan"
}
]
}
},
"children": []
},
{
"type": "block",
"id": "NzeIqA5Q6j",
"flavour": "affine:image",
"props": {
"caption": "A goal without a plan is just a wish",
"sourceId": "/static/9vXwWGEX5W9v5pzwpu0eK4pf22DZ_sCloO0zCH1aVQ4=.png",
"width": 752,
"height": 501.328125,
"index": "a0",
"xywh": "[0,0,0,0]",
"rotate": 0,
"size": -1
},
"children": []
},
{
"type": "block",
"id": "uZTvHIo1eH",
"flavour": "affine:paragraph",
"props": {
"type": "text",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "Using a "
},
{
"insert": "kanban",
"attributes": {
"link": "https://en.wikipedia.org/wiki/Kanban_(development)"
}
},
{
"insert": " system to manage your tasks is a very effective method."
}
]
}
},
"children": []
},
{
"type": "block",
"id": "YsMF9PplY6",
"flavour": "affine:list",
"props": {
"type": "bulleted",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "Ungroups",
"attributes": {
"background": "var(--affine-text-highlight-grey)"
}
},
{
"insert": ": Your study task inbox."
}
]
},
"checked": false,
"collapsed": false
},
"children": []
},
{
"type": "block",
"id": "aMVed60Zxh",
"flavour": "affine:list",
"props": {
"type": "bulleted",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "not started:",
"attributes": {
"background": "var(--affine-text-highlight-orange)"
}
},
{
"insert": " Tasks in your plan that haven't been started yet."
}
]
},
"checked": false,
"collapsed": false
},
"children": []
},
{
"type": "block",
"id": "G_hTd1c1Xr",
"flavour": "affine:list",
"props": {
"type": "bulleted",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "in-progress:",
"attributes": {
"background": "var(--affine-text-highlight-green)"
}
},
{
"insert": " The tasks you are currently working on can have their progress indicated by updating a progress bar to show the approximate completion."
}
]
},
"checked": false,
"collapsed": false
},
"children": []
},
{
"type": "block",
"id": "mcg7ZXEIUL",
"flavour": "affine:list",
"props": {
"type": "bulleted",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "finished:",
"attributes": {
"background": "var(--affine-text-highlight-blue)"
}
},
{
"insert": " List the tasks that have been completed. Here, you can easily review what you've learned."
}
]
},
"checked": false,
"collapsed": false
},
"children": []
},
{
"type": "block",
"id": "0H9dtAEA7G",
"flavour": "affine:paragraph",
"props": {
"type": "text",
"text": {
"$blocksuite:internal:text$": true,
"delta": []
}
},
"children": []
},
{
"type": "block",
"id": "z3JCtDKEnH",
"flavour": "affine:database",
"props": {
"views": [
{
"id": "_KB-Dww-OJ",
"name": "Kanban View",
"mode": "kanban",
"columns": [
{
"id": "z3JCtDKEnH",
"hide": false
},
{
"id": "XdrUZWMCAy",
"hide": false
},
{
"id": "MZ4j6XeWN2",
"hide": false
}
],
"filter": {
"type": "group",
"op": "and",
"conditions": []
},
"groupBy": {
"type": "groupBy",
"columnId": "XdrUZWMCAy",
"name": "multi-select"
},
"header": {
"titleColumn": "z3JCtDKEnH",
"iconColumn": "type"
},
"groupProperties": [
{
"key": "Ungroups",
"hide": false,
"manuallyCardSort": [
"m7Wa1L5dzo"
]
},
{
"key": "7MeJP6tYbY",
"hide": false,
"manuallyCardSort": [
"z38CbkWI85"
]
},
{
"key": "UzOiUYq0f5",
"hide": false,
"manuallyCardSort": []
},
{
"key": "s28YFoSwsn",
"hide": false,
"manuallyCardSort": []
}
]
},
{
"id": "vyeVaTiV6v",
"name": "Table View",
"mode": "table",
"columns": [
{
"id": "DrdPpsoRQl",
"width": 200
}
],
"filter": {
"type": "group",
"op": "and",
"conditions": []
},
"header": {
"titleColumn": "z3JCtDKEnH",
"iconColumn": "type"
}
}
],
"title": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "Study Plan"
}
]
},
"cells": {
"VCBzCpQ4Pj": {
"XdrUZWMCAy": {
"columnId": "XdrUZWMCAy",
"value": [
"UzOiUYq0f5"
]
},
"MZ4j6XeWN2": {
"columnId": "MZ4j6XeWN2",
"value": 76
}
},
"8SmLofa6Sa": {
"XdrUZWMCAy": {
"columnId": "XdrUZWMCAy",
"value": [
"s28YFoSwsn"
]
},
"MZ4j6XeWN2": {
"columnId": "MZ4j6XeWN2",
"value": 100
}
},
"z38CbkWI85": {
"XdrUZWMCAy": {
"columnId": "XdrUZWMCAy",
"value": [
"7MeJP6tYbY"
]
}
},
"m7Wa1L5dzo": {
"XdrUZWMCAy": {
"columnId": "XdrUZWMCAy",
"value": [
null
]
}
},
"gSQczpW-cC": {
"XdrUZWMCAy": {
"columnId": "XdrUZWMCAy",
"value": []
}
},
"1GiXKFEQTr": {
"XdrUZWMCAy": {
"columnId": "XdrUZWMCAy",
"value": []
}
}
},
"columns": [
{
"id": "DrdPpsoRQl",
"type": "title",
"name": "Task",
"data": {}
},
{
"type": "title",
"id": "z3JCtDKEnH",
"name": "Title",
"data": {}
},
{
"type": "multi-select",
"name": "Tag",
"data": {
"options": [
{
"id": "7MeJP6tYbY",
"value": "not started",
"color": "var(--affine-tag-orange)"
},
{
"id": "s28YFoSwsn",
"value": "finished",
"color": "var(--affine-tag-blue)"
},
{
"id": "UzOiUYq0f5",
"value": "in-progress",
"color": "var(--affine-tag-green)"
}
]
},
"id": "XdrUZWMCAy"
},
{
"type": "progress",
"name": "Progress",
"data": {},
"id": "MZ4j6XeWN2"
}
]
},
"children": [
{
"type": "block",
"id": "VCBzCpQ4Pj",
"flavour": "affine:paragraph",
"props": {
"type": "text",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "Task 1"
}
]
}
},
"children": []
},
{
"type": "block",
"id": "8SmLofa6Sa",
"flavour": "affine:paragraph",
"props": {
"type": "text",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "Task 2"
}
]
}
},
"children": []
},
{
"type": "block",
"id": "z38CbkWI85",
"flavour": "affine:paragraph",
"props": {
"type": "text",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "Task 3"
}
]
}
},
"children": []
},
{
"type": "block",
"id": "gSQczpW-cC",
"flavour": "affine:paragraph",
"props": {
"type": "text",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "New Task"
}
]
}
},
"children": []
},
{
"type": "block",
"id": "1GiXKFEQTr",
"flavour": "affine:paragraph",
"props": {
"type": "text",
"text": {
"$blocksuite:internal:text$": true,
"delta": [
{
"insert": "New Task 2"
}
]
}
},
"children": []
}
]
}
]
}
]
}
}