This commit is contained in:
Liang Ding 2022-02-24 23:34:56 +08:00
parent 6110289bd5
commit 78a691c39d
No known key found for this signature in database
GPG Key ID: 136F30F901A2231D
2 changed files with 36 additions and 36 deletions

36
API.md
View File

@ -480,12 +480,12 @@ View API token in <kbd>Settings - About</kbd>, request header: `Authorization: T
"doOperations": [ "doOperations": [
{ {
"action": "insert", "action": "insert",
"data": "<div data-node-id=\"20211230115020-g02dfx0\" data-node-index=\"1\" data-type=\"NodeParagraph\" class=\"p\"><div contenteditable=\"true\" spellcheck=\"false\">foo<strong style=\"color: var(--b3-font-color8);\">bar</strong>baz</div><div class=\"protyle-attr\" contenteditable=\"false\"></div></div>", "data": "<div data-node-id=\"20211230115020-g02dfx0\" data-node-index=\"1\" data-type=\"NodeParagraph\" class=\"p\"><div contenteditable=\"true\" spellcheck=\"false\">foo<strong style=\"color: var(--b3-font-color8);\">bar</strong>baz</div><div class=\"protyle-attr\" contenteditable=\"false\"></div></div>",
"id": "20211230115020-g02dfx0", "id": "20211230115020-g02dfx0",
"parentID": "", "parentID": "",
"previousID": "20211229114650-vrek5x6", "previousID": "20211229114650-vrek5x6",
"retData": null "retData": null
} }
], ],
"undoOperations": null "undoOperations": null
} }
@ -609,13 +609,13 @@ View API token in <kbd>Settings - About</kbd>, request header: `Authorization: T
"doOperations": [ "doOperations": [
{ {
"action": "update", "action": "update",
"data": "<div data-node-id=\"20211230161520-querkps\" data-node-index=\"1\" data-type=\"NodeParagraph\" class=\"p\"><div contenteditable=\"true\" spellcheck=\"false\">foo<strong>bar</strong>baz</div><div class=\"protyle-attr\" contenteditable=\"false\"></div></div>", "data": "<div data-node-id=\"20211230161520-querkps\" data-node-index=\"1\" data-type=\"NodeParagraph\" class=\"p\"><div contenteditable=\"true\" spellcheck=\"false\">foo<strong>bar</strong>baz</div><div class=\"protyle-attr\" contenteditable=\"false\"></div></div>",
"id": "20211230161520-querkps", "id": "20211230161520-querkps",
"parentID": "", "parentID": "",
"previousID": "", "previousID": "",
"retData": null "retData": null
} }
], ],
"undoOperations": null "undoOperations": null
} }
] ]
@ -671,7 +671,7 @@ View API token in <kbd>Settings - About</kbd>, request header: `Authorization: T
{ {
"id": "20210912214605-uhi5gco", "id": "20210912214605-uhi5gco",
"attrs": { "attrs": {
"custom-attr1": "line1\nline2" "custom-attr1": "line1\nline2"
} }
} }
``` ```
@ -769,8 +769,8 @@ View API token in <kbd>Settings - About</kbd>, request header: `Authorization: T
"code": 0, "code": 0,
"msg": "", "msg": "",
"data": { "data": {
"hPath": "/Please Start Here", "hPath": "/Please Start Here",
"content": "## 🍫 Content Block\n\nIn SiYuan, the only important core concept is..." "content": "## 🍫 Content Block\n\nIn SiYuan, the only important core concept is..."
} }
} }
``` ```
@ -791,8 +791,8 @@ View API token in <kbd>Settings - About</kbd>, request header: `Authorization: T
"code": 0, "code": 0,
"msg": "", "msg": "",
"data": { "data": {
"details": "Finishing boot...", "details": "Finishing boot...",
"progress": 100 "progress": 100
} }
} }
``` ```

View File

@ -480,12 +480,12 @@
"doOperations": [ "doOperations": [
{ {
"action": "insert", "action": "insert",
"data": "<div data-node-id=\"20211230115020-g02dfx0\" data-node-index=\"1\" data-type=\"NodeParagraph\" class=\"p\"><div contenteditable=\"true\" spellcheck=\"false\">foo<strong style=\"color: var(--b3-font-color8);\">bar</strong>baz</div><div class=\"protyle-attr\" contenteditable=\"false\"></div></div>", "data": "<div data-node-id=\"20211230115020-g02dfx0\" data-node-index=\"1\" data-type=\"NodeParagraph\" class=\"p\"><div contenteditable=\"true\" spellcheck=\"false\">foo<strong style=\"color: var(--b3-font-color8);\">bar</strong>baz</div><div class=\"protyle-attr\" contenteditable=\"false\"></div></div>",
"id": "20211230115020-g02dfx0", "id": "20211230115020-g02dfx0",
"parentID": "", "parentID": "",
"previousID": "20211229114650-vrek5x6", "previousID": "20211229114650-vrek5x6",
"retData": null "retData": null
} }
], ],
"undoOperations": null "undoOperations": null
} }
@ -609,13 +609,13 @@
"doOperations": [ "doOperations": [
{ {
"action": "update", "action": "update",
"data": "<div data-node-id=\"20211230161520-querkps\" data-node-index=\"1\" data-type=\"NodeParagraph\" class=\"p\"><div contenteditable=\"true\" spellcheck=\"false\">foo<strong>bar</strong>baz</div><div class=\"protyle-attr\" contenteditable=\"false\"></div></div>", "data": "<div data-node-id=\"20211230161520-querkps\" data-node-index=\"1\" data-type=\"NodeParagraph\" class=\"p\"><div contenteditable=\"true\" spellcheck=\"false\">foo<strong>bar</strong>baz</div><div class=\"protyle-attr\" contenteditable=\"false\"></div></div>",
"id": "20211230161520-querkps", "id": "20211230161520-querkps",
"parentID": "", "parentID": "",
"previousID": "", "previousID": "",
"retData": null "retData": null
} }
], ],
"undoOperations": null "undoOperations": null
} }
] ]
@ -671,7 +671,7 @@
{ {
"id": "20210912214605-uhi5gco", "id": "20210912214605-uhi5gco",
"attrs": { "attrs": {
"custom-attr1": "line1\nline2" "custom-attr1": "line1\nline2"
} }
} }
``` ```
@ -769,8 +769,8 @@
"code": 0, "code": 0,
"msg": "", "msg": "",
"data": { "data": {
"hPath": "/0 请从这里开始", "hPath": "/0 请从这里开始",
"content": "## 🍫 内容块\n\n在思源中唯一重要的核心概念是..." "content": "## 🍫 内容块\n\n在思源中唯一重要的核心概念是..."
} }
} }
``` ```
@ -791,8 +791,8 @@
"code": 0, "code": 0,
"msg": "", "msg": "",
"data": { "data": {
"details": "Finishing boot...", "details": "Finishing boot...",
"progress": 100 "progress": 100
} }
} }
``` ```