mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-09-21 03:03:15 +08:00
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
750 lines
21 KiB
JSON
750 lines
21 KiB
JSON
{
|
|
"type": "page",
|
|
"meta": {
|
|
"id": "b1F2xKjgZ4ISHhXNe1kck",
|
|
"title": "Annual Performance Review",
|
|
"createDate": 1691575011078,
|
|
"tags": [
|
|
"8qcYPCTK0h"
|
|
]
|
|
},
|
|
"blocks": {
|
|
"type": "block",
|
|
"id": "mMBWzZtpvM",
|
|
"flavour": "affine:page",
|
|
"props": {
|
|
"title": {
|
|
"$blocksuite:internal:text$": true,
|
|
"delta": [
|
|
{
|
|
"insert": "Annual Performance Review"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"children": [
|
|
{
|
|
"type": "block",
|
|
"id": "XSMCxudQf4",
|
|
"flavour": "affine:surface",
|
|
"props": {
|
|
"elements": {}
|
|
},
|
|
"children": []
|
|
},
|
|
{
|
|
"type": "block",
|
|
"id": "2xxenQgE1-",
|
|
"flavour": "affine:note",
|
|
"props": {
|
|
"xywh": "[0,0,800,91]",
|
|
"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": "G7wJk4W9lz",
|
|
"flavour": "affine:paragraph",
|
|
"props": {
|
|
"type": "text",
|
|
"text": {
|
|
"$blocksuite:internal:text$": true,
|
|
"delta": []
|
|
}
|
|
},
|
|
"children": []
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "block",
|
|
"id": "ca2-VFQV45",
|
|
"flavour": "affine:note",
|
|
"props": {
|
|
"xywh": "[0,0,800,1719]",
|
|
"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": "viFZDjrBqJ",
|
|
"flavour": "affine:image",
|
|
"props": {
|
|
"caption": "",
|
|
"sourceId": "/static/gZLmSgmwumNdgf0eIfOSW44emctrLyFUaZapbk8eZ6s=.png",
|
|
"width": 752,
|
|
"height": 422.9140625,
|
|
"index": "a0",
|
|
"xywh": "[0,0,0,0]",
|
|
"rotate": 0,
|
|
"size": -1
|
|
},
|
|
"children": []
|
|
},
|
|
{
|
|
"type": "block",
|
|
"id": "XPiPjHYnvE",
|
|
"flavour": "affine:paragraph",
|
|
"props": {
|
|
"type": "text",
|
|
"text": {
|
|
"$blocksuite:internal:text$": true,
|
|
"delta": [
|
|
{
|
|
"insert": "Employee Information:",
|
|
"attributes": {
|
|
"underline": true,
|
|
"bold": true
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"children": []
|
|
},
|
|
{
|
|
"type": "block",
|
|
"id": "qpyYi7g_c6",
|
|
"flavour": "affine:paragraph",
|
|
"props": {
|
|
"type": "text",
|
|
"text": {
|
|
"$blocksuite:internal:text$": true,
|
|
"delta": [
|
|
{
|
|
"insert": "Name:",
|
|
"attributes": {
|
|
"bold": true
|
|
}
|
|
},
|
|
{
|
|
"insert": " "
|
|
},
|
|
{
|
|
"insert": "[Employee Name]",
|
|
"attributes": {
|
|
"background": "var(--affine-text-highlight-grey)"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"children": []
|
|
},
|
|
{
|
|
"type": "block",
|
|
"id": "NpbigpLTNh",
|
|
"flavour": "affine:paragraph",
|
|
"props": {
|
|
"type": "text",
|
|
"text": {
|
|
"$blocksuite:internal:text$": true,
|
|
"delta": [
|
|
{
|
|
"insert": "Department:",
|
|
"attributes": {
|
|
"bold": true
|
|
}
|
|
},
|
|
{
|
|
"insert": " "
|
|
},
|
|
{
|
|
"insert": "[Department Name]",
|
|
"attributes": {
|
|
"background": "var(--affine-text-highlight-grey)"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"children": []
|
|
},
|
|
{
|
|
"type": "block",
|
|
"id": "e1ax4lVFjW",
|
|
"flavour": "affine:paragraph",
|
|
"props": {
|
|
"type": "text",
|
|
"text": {
|
|
"$blocksuite:internal:text$": true,
|
|
"delta": [
|
|
{
|
|
"insert": "Job Title:",
|
|
"attributes": {
|
|
"bold": true
|
|
}
|
|
},
|
|
{
|
|
"insert": " "
|
|
},
|
|
{
|
|
"insert": "[Job Title]",
|
|
"attributes": {
|
|
"background": "var(--affine-text-highlight-grey)"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"children": []
|
|
},
|
|
{
|
|
"type": "block",
|
|
"id": "rEKXjYtGDR",
|
|
"flavour": "affine:paragraph",
|
|
"props": {
|
|
"type": "text",
|
|
"text": {
|
|
"$blocksuite:internal:text$": true,
|
|
"delta": [
|
|
{
|
|
"insert": "Date of Joining:",
|
|
"attributes": {
|
|
"bold": true
|
|
}
|
|
},
|
|
{
|
|
"insert": " "
|
|
},
|
|
{
|
|
"insert": "[Date of Joining]",
|
|
"attributes": {
|
|
"background": "var(--affine-text-highlight-grey)"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"children": []
|
|
},
|
|
{
|
|
"type": "block",
|
|
"id": "gYcGYxQ88e",
|
|
"flavour": "affine:paragraph",
|
|
"props": {
|
|
"type": "text",
|
|
"text": {
|
|
"$blocksuite:internal:text$": true,
|
|
"delta": [
|
|
{
|
|
"insert": "Review Date: ",
|
|
"attributes": {
|
|
"bold": true
|
|
}
|
|
},
|
|
{
|
|
"insert": " "
|
|
},
|
|
{
|
|
"insert": "[Review Date]",
|
|
"attributes": {
|
|
"background": "var(--affine-text-highlight-grey)"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"children": []
|
|
},
|
|
{
|
|
"type": "block",
|
|
"id": "OyFSyuWbzw",
|
|
"flavour": "affine:paragraph",
|
|
"props": {
|
|
"type": "text",
|
|
"text": {
|
|
"$blocksuite:internal:text$": true,
|
|
"delta": []
|
|
}
|
|
},
|
|
"children": []
|
|
},
|
|
{
|
|
"type": "block",
|
|
"id": "VcUt-bpjIK",
|
|
"flavour": "affine:database",
|
|
"props": {
|
|
"views": [
|
|
{
|
|
"id": "bIFdicaEON",
|
|
"name": "table",
|
|
"mode": "table",
|
|
"columns": [
|
|
{
|
|
"id": "jPry_IOhQt",
|
|
"width": 343
|
|
},
|
|
{
|
|
"id": "VcUt-bpjIK",
|
|
"hide": false,
|
|
"width": 260
|
|
},
|
|
{
|
|
"id": "teyC7JgUni",
|
|
"hide": false,
|
|
"width": 200
|
|
}
|
|
],
|
|
"filter": {
|
|
"type": "group",
|
|
"op": "and",
|
|
"conditions": []
|
|
}
|
|
}
|
|
],
|
|
"title": {
|
|
"$blocksuite:internal:text$": true,
|
|
"delta": [
|
|
{
|
|
"insert": "Employee's performance "
|
|
}
|
|
]
|
|
},
|
|
"cells": {
|
|
"VwZ3681tdd": {
|
|
"teyC7JgUni": {
|
|
"columnId": "teyC7JgUni",
|
|
"value": [
|
|
"rwjdYVF3jd"
|
|
]
|
|
}
|
|
},
|
|
"jT3Oo2XSeJ": {
|
|
"teyC7JgUni": {
|
|
"columnId": "teyC7JgUni",
|
|
"value": [
|
|
"4dHxaZ8cKk"
|
|
]
|
|
}
|
|
},
|
|
"RviIfLJUPX": {
|
|
"teyC7JgUni": {
|
|
"columnId": "teyC7JgUni",
|
|
"value": [
|
|
"wgvB2fzMu6"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"columns": [
|
|
{
|
|
"id": "jPry_IOhQt",
|
|
"type": "title",
|
|
"name": "Title",
|
|
"data": {}
|
|
},
|
|
{
|
|
"type": "title",
|
|
"id": "VcUt-bpjIK",
|
|
"name": "Title",
|
|
"data": {}
|
|
},
|
|
{
|
|
"type": "multi-select",
|
|
"name": "score ",
|
|
"data": {
|
|
"options": [
|
|
{
|
|
"id": "rwjdYVF3jd",
|
|
"value": "awsome",
|
|
"color": "var(--affine-tag-yellow)"
|
|
},
|
|
{
|
|
"id": "4dHxaZ8cKk",
|
|
"value": "well",
|
|
"color": "var(--affine-tag-purple)"
|
|
},
|
|
{
|
|
"id": "wgvB2fzMu6",
|
|
"value": "good",
|
|
"color": "var(--affine-tag-green)"
|
|
},
|
|
{
|
|
"id": "YGPLhMJkni",
|
|
"value": "done",
|
|
"color": "var(--affine-tag-pink)"
|
|
},
|
|
{
|
|
"id": "Q1-TuffR-9",
|
|
"value": "in progress",
|
|
"color": "var(--affine-tag-white)"
|
|
}
|
|
]
|
|
},
|
|
"id": "teyC7JgUni"
|
|
}
|
|
]
|
|
},
|
|
"children": [
|
|
{
|
|
"type": "block",
|
|
"id": "VwZ3681tdd",
|
|
"flavour": "affine:paragraph",
|
|
"props": {
|
|
"type": "text",
|
|
"text": {
|
|
"$blocksuite:internal:text$": true,
|
|
"delta": [
|
|
{
|
|
"insert": "[List Employee's Performance Goal 1]"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"children": []
|
|
},
|
|
{
|
|
"type": "block",
|
|
"id": "jT3Oo2XSeJ",
|
|
"flavour": "affine:paragraph",
|
|
"props": {
|
|
"type": "text",
|
|
"text": {
|
|
"$blocksuite:internal:text$": true,
|
|
"delta": [
|
|
{
|
|
"insert": "[List Employee's Performance Goal 2]"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"children": []
|
|
},
|
|
{
|
|
"type": "block",
|
|
"id": "RviIfLJUPX",
|
|
"flavour": "affine:paragraph",
|
|
"props": {
|
|
"type": "text",
|
|
"text": {
|
|
"$blocksuite:internal:text$": true,
|
|
"delta": [
|
|
{
|
|
"insert": "[List Employee's Performance Goal 3]"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"children": []
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "block",
|
|
"id": "a0xWifxvFi",
|
|
"flavour": "affine:database",
|
|
"props": {
|
|
"views": [
|
|
{
|
|
"id": "MvodpC_iAj",
|
|
"name": "table",
|
|
"mode": "table",
|
|
"columns": [
|
|
{
|
|
"id": "lvyHgZEelb",
|
|
"width": 354
|
|
},
|
|
{
|
|
"id": "a0xWifxvFi",
|
|
"hide": false,
|
|
"width": 260
|
|
},
|
|
{
|
|
"id": "ZdTyvkjQwz",
|
|
"hide": false,
|
|
"width": 200
|
|
}
|
|
],
|
|
"filter": {
|
|
"type": "group",
|
|
"op": "and",
|
|
"conditions": []
|
|
}
|
|
}
|
|
],
|
|
"title": {
|
|
"$blocksuite:internal:text$": true,
|
|
"delta": [
|
|
{
|
|
"insert": "Job responsibility "
|
|
}
|
|
]
|
|
},
|
|
"cells": {},
|
|
"columns": [
|
|
{
|
|
"id": "lvyHgZEelb",
|
|
"type": "title",
|
|
"name": "Title",
|
|
"data": {}
|
|
},
|
|
{
|
|
"type": "title",
|
|
"id": "a0xWifxvFi",
|
|
"name": "Title",
|
|
"data": {}
|
|
},
|
|
{
|
|
"type": "multi-select",
|
|
"name": "Tag",
|
|
"data": {
|
|
"options": []
|
|
},
|
|
"id": "ZdTyvkjQwz"
|
|
}
|
|
]
|
|
},
|
|
"children": [
|
|
{
|
|
"type": "block",
|
|
"id": "ZEi_-9SS-Y",
|
|
"flavour": "affine:paragraph",
|
|
"props": {
|
|
"type": "text",
|
|
"text": {
|
|
"$blocksuite:internal:text$": true,
|
|
"delta": [
|
|
{
|
|
"insert": "[List Job Responsibility 1]"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"children": []
|
|
},
|
|
{
|
|
"type": "block",
|
|
"id": "8LPVaagwtP",
|
|
"flavour": "affine:paragraph",
|
|
"props": {
|
|
"type": "text",
|
|
"text": {
|
|
"$blocksuite:internal:text$": true,
|
|
"delta": [
|
|
{
|
|
"insert": "[List Job Responsibility 2]"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"children": []
|
|
},
|
|
{
|
|
"type": "block",
|
|
"id": "lYnANRxW0A",
|
|
"flavour": "affine:paragraph",
|
|
"props": {
|
|
"type": "text",
|
|
"text": {
|
|
"$blocksuite:internal:text$": true,
|
|
"delta": [
|
|
{
|
|
"insert": "[List Job Responsibility 3]"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"children": []
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "block",
|
|
"id": "YiQINiDM6W",
|
|
"flavour": "affine:paragraph",
|
|
"props": {
|
|
"type": "text",
|
|
"text": {
|
|
"$blocksuite:internal:text$": true,
|
|
"delta": [
|
|
{
|
|
"insert": "Employee's Signature: "
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"children": []
|
|
},
|
|
{
|
|
"type": "block",
|
|
"id": "Zp-YtzbUUK",
|
|
"flavour": "affine:paragraph",
|
|
"props": {
|
|
"type": "text",
|
|
"text": {
|
|
"$blocksuite:internal:text$": true,
|
|
"delta": [
|
|
{
|
|
"insert": "Date: "
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"children": []
|
|
},
|
|
{
|
|
"type": "block",
|
|
"id": "ZMfsmg_5oZ",
|
|
"flavour": "affine:paragraph",
|
|
"props": {
|
|
"type": "text",
|
|
"text": {
|
|
"$blocksuite:internal:text$": true,
|
|
"delta": []
|
|
}
|
|
},
|
|
"children": []
|
|
},
|
|
{
|
|
"type": "block",
|
|
"id": "XH7xQMlX_0",
|
|
"flavour": "affine:paragraph",
|
|
"props": {
|
|
"type": "text",
|
|
"text": {
|
|
"$blocksuite:internal:text$": true,
|
|
"delta": [
|
|
{
|
|
"insert": "Manager's Signature: "
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"children": []
|
|
},
|
|
{
|
|
"type": "block",
|
|
"id": "mBO-_pWGoi",
|
|
"flavour": "affine:paragraph",
|
|
"props": {
|
|
"type": "text",
|
|
"text": {
|
|
"$blocksuite:internal:text$": true,
|
|
"delta": [
|
|
{
|
|
"insert": "Date: "
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"children": []
|
|
},
|
|
{
|
|
"type": "block",
|
|
"id": "X_SNf6rQf4",
|
|
"flavour": "affine:paragraph",
|
|
"props": {
|
|
"type": "text",
|
|
"text": {
|
|
"$blocksuite:internal:text$": true,
|
|
"delta": []
|
|
}
|
|
},
|
|
"children": []
|
|
},
|
|
{
|
|
"type": "block",
|
|
"id": "0LF9mjFcX9",
|
|
"flavour": "affine:paragraph",
|
|
"props": {
|
|
"type": "text",
|
|
"text": {
|
|
"$blocksuite:internal:text$": true,
|
|
"delta": [
|
|
{
|
|
"insert": "[Company Name]",
|
|
"attributes": {
|
|
"background": "var(--affine-text-highlight-grey)"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"children": []
|
|
},
|
|
{
|
|
"type": "block",
|
|
"id": "d2IrxHbD5D",
|
|
"flavour": "affine:paragraph",
|
|
"props": {
|
|
"type": "text",
|
|
"text": {
|
|
"$blocksuite:internal:text$": true,
|
|
"delta": [
|
|
{
|
|
"insert": "[Address]",
|
|
"attributes": {
|
|
"background": "var(--affine-text-highlight-grey)"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"children": []
|
|
},
|
|
{
|
|
"type": "block",
|
|
"id": "IdLESwrZ-U",
|
|
"flavour": "affine:paragraph",
|
|
"props": {
|
|
"type": "text",
|
|
"text": {
|
|
"$blocksuite:internal:text$": true,
|
|
"delta": [
|
|
{
|
|
"insert": "[Phone Number]",
|
|
"attributes": {
|
|
"background": "var(--affine-text-highlight-grey)"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"children": []
|
|
},
|
|
{
|
|
"type": "block",
|
|
"id": "6YwnA2HHQM",
|
|
"flavour": "affine:paragraph",
|
|
"props": {
|
|
"type": "text",
|
|
"text": {
|
|
"$blocksuite:internal:text$": true,
|
|
"delta": [
|
|
{
|
|
"insert": "[Email]",
|
|
"attributes": {
|
|
"background": "var(--affine-text-highlight-grey)"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"children": []
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
} |