🎨 Support directly access data/public/* contents via URL link https://github.com/siyuan-note/siyuan/issues/8593

This commit is contained in:
Daniel 2023-06-22 16:41:55 +08:00
parent c540046b8e
commit ed5700ebd6
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
5 changed files with 187 additions and 78 deletions

View file

@ -204,6 +204,7 @@ The data is saved in the workspace folder, in the workspace data folder:
* `templates` is used to save template snippets
* `widgets` is used to save widgets
* `plugins` is used to save plugins
* `public` is used to save public data
* The rest of the folders are the notebook folders created by the user, files with the suffix of `.sy` in the notebook folder are used to save the document data, and the data format is JSON
### Does it support data synchronization through a third-party sync disk?

View file

@ -207,6 +207,7 @@
* `templates` 用于保存模板片段
* `widgets` 用于保存挂件
* `plugins` 用于保存插件
* `public` 用于保存公开的数据
* 其余文件夹就是用户自己创建的笔记本文件夹,笔记本文件夹下 `.sy` 后缀的文件用于保存文档数据,数据格式为 JSON
### 支持通过第三方同步盘进行数据同步吗?

View file

@ -7,7 +7,7 @@
"id": "20200923234731-h3zkwm2",
"title": "FAQ",
"type": "doc",
"updated": "20230617085510"
"updated": "20230622164128"
},
"Children": [
{
@ -60,7 +60,7 @@
"ListData": {},
"Properties": {
"id": "20210428222603-moih9fe",
"updated": "20230512170538"
"updated": "20230622164128"
},
"Children": [
{
@ -72,7 +72,7 @@
},
"Properties": {
"id": "20210428222603-gxgx3vi",
"updated": "20221202215029"
"updated": "20230622164117"
},
"Children": [
{
@ -80,7 +80,7 @@
"Type": "NodeParagraph",
"Properties": {
"id": "20210428222603-0goch51",
"updated": "20221202215029"
"updated": "20230622164117"
},
"Children": [
{
@ -94,7 +94,7 @@
},
{
"Type": "NodeText",
"Data": " is used to save all inserted "
"Data": " is used to save all inserted "
},
{
"Type": "NodeTextMark",
@ -116,7 +116,7 @@
},
"Properties": {
"id": "20221202214756-6a5qi9y",
"updated": "20221202215034"
"updated": "20230622164118"
},
"Children": [
{
@ -124,7 +124,7 @@
"Type": "NodeParagraph",
"Properties": {
"id": "20221202214756-polklnd",
"updated": "20221202215034"
"updated": "20230622164118"
},
"Children": [
{
@ -138,7 +138,7 @@
},
{
"Type": "NodeText",
"Data": " is used to save emoji images"
"Data": " is used to save emoji images"
}
]
}
@ -153,7 +153,7 @@
},
"Properties": {
"id": "20221202214758-dtqv6vc",
"updated": "20221202215043"
"updated": "20230622164121"
},
"Children": [
{
@ -161,7 +161,7 @@
"Type": "NodeParagraph",
"Properties": {
"id": "20221202214758-5u6jitp",
"updated": "20221202215043"
"updated": "20230622164121"
},
"Children": [
{
@ -175,7 +175,7 @@
},
{
"Type": "NodeText",
"Data": " is used to save code snippets"
"Data": " is used to save code snippets"
}
]
}
@ -190,7 +190,7 @@
},
"Properties": {
"id": "20221202214811-2s26txl",
"updated": "20230429085233"
"updated": "20230622164122"
},
"Children": [
{
@ -198,7 +198,7 @@
"Type": "NodeParagraph",
"Properties": {
"id": "20221202214811-p1eevpi",
"updated": "20230429085233"
"updated": "20230622164122"
},
"Children": [
{
@ -212,7 +212,7 @@
},
{
"Type": "NodeText",
"Data": " is used to save query conditions, layouts and "
"Data": " is used to save query conditions, layouts and "
},
{
"Type": "NodeTextMark",
@ -238,7 +238,7 @@
},
"Properties": {
"id": "20210428222603-vtr89xq",
"updated": "20221202215047"
"updated": "20230622164124"
},
"Children": [
{
@ -246,7 +246,7 @@
"Type": "NodeParagraph",
"Properties": {
"id": "20210428222603-criebuv",
"updated": "20221202215047"
"updated": "20230622164124"
},
"Children": [
{
@ -260,7 +260,7 @@
},
{
"Type": "NodeText",
"Data": " is used to save "
"Data": " is used to save "
},
{
"Type": "NodeTextMark",
@ -282,7 +282,7 @@
},
"Properties": {
"id": "20210428222603-456vgdh",
"updated": "20221202215048"
"updated": "20230622164126"
},
"Children": [
{
@ -290,7 +290,7 @@
"Type": "NodeParagraph",
"Properties": {
"id": "20210428222603-m3djncm",
"updated": "20221202215048"
"updated": "20230622164126"
},
"Children": [
{
@ -304,7 +304,7 @@
},
{
"Type": "NodeText",
"Data": " is used to save "
"Data": " is used to save "
},
{
"Type": "NodeTextMark",
@ -326,7 +326,7 @@
},
"Properties": {
"id": "20230512170526-zvfzhdo",
"updated": "20230512170538"
"updated": "20230622164127"
},
"Children": [
{
@ -334,7 +334,7 @@
"Type": "NodeParagraph",
"Properties": {
"id": "20230512170526-3ivxdkg",
"updated": "20230512170538"
"updated": "20230622164127"
},
"Children": [
{
@ -361,6 +361,43 @@
}
]
},
{
"ID": "20230622163438-rv3hdrd",
"Type": "NodeListItem",
"ListData": {
"BulletChar": 42,
"Marker": "Kg=="
},
"Properties": {
"id": "20230622163438-rv3hdrd",
"updated": "20230622164128"
},
"Children": [
{
"ID": "20230622163438-7doq6me",
"Type": "NodeParagraph",
"Properties": {
"id": "20230622163438-7doq6me",
"updated": "20230622164128"
},
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "public"
},
{
"Type": "NodeText",
"Data": " is used to save public data"
}
]
}
]
},
{
"ID": "20210428222603-27so3jy",
"Type": "NodeListItem",
@ -391,7 +428,7 @@
},
{
"Type": "NodeText",
"Data": " in the notebook folder are used to save the document data, and the data format is JSON"
"Data": " in the notebook folder are used to save the document data, and the data format is JSON"
}
]
}
@ -1888,4 +1925,4 @@
]
}
]
}
}

View file

@ -7,7 +7,7 @@
"id": "20200813093015-u6bopdt",
"title": "常见问题",
"type": "doc",
"updated": "20230617085407"
"updated": "20230622164014"
},
"Children": [
{
@ -60,7 +60,7 @@
"ListData": {},
"Properties": {
"id": "20210428213927-rbcfx2y",
"updated": "20230512170439"
"updated": "20230622164014"
},
"Children": [
{
@ -72,7 +72,7 @@
},
"Properties": {
"id": "20210428213928-dft58ey",
"updated": "20220329160333"
"updated": "20230622163958"
},
"Children": [
{
@ -80,7 +80,7 @@
"Type": "NodeParagraph",
"Properties": {
"id": "20210428213928-3lwnco5",
"updated": "20220329160333"
"updated": "20230622163958"
},
"Children": [
{
@ -94,7 +94,7 @@
},
{
"Type": "NodeText",
"Data": " 用于保存所有插入的"
"Data": " 用于保存所有插入的"
},
{
"Type": "NodeTextMark",
@ -116,7 +116,7 @@
},
"Properties": {
"id": "20221202214520-u96zbhq",
"updated": "20221202215129"
"updated": "20230622164002"
},
"Children": [
{
@ -124,7 +124,7 @@
"Type": "NodeParagraph",
"Properties": {
"id": "20221202214520-k8zqbno",
"updated": "20221202215129"
"updated": "20230622164002"
},
"Children": [
{
@ -138,15 +138,7 @@
},
{
"Type": "NodeText",
"Data": " 用于保存自定义"
},
{
"Type": "NodeText",
"Data": "图标"
},
{
"Type": "NodeText",
"Data": "表情图片"
"Data": " 用于保存自定义图标表情图片"
}
]
}
@ -160,7 +152,8 @@
"Marker": "Kg=="
},
"Properties": {
"id": "20221202214533-6s8dyno"
"id": "20221202214533-6s8dyno",
"updated": "20230622164005"
},
"Children": [
{
@ -168,7 +161,7 @@
"Type": "NodeParagraph",
"Properties": {
"id": "20221202214533-jfy92ef",
"updated": "20221202214549"
"updated": "20230622164005"
},
"Children": [
{
@ -182,7 +175,7 @@
},
{
"Type": "NodeText",
"Data": " 用于保存代码片段"
"Data": " 用于保存代码片段"
}
]
}
@ -197,7 +190,7 @@
},
"Properties": {
"id": "20221202214653-s19pmcp",
"updated": "20230429085021"
"updated": "20230622164007"
},
"Children": [
{
@ -205,7 +198,7 @@
"Type": "NodeParagraph",
"Properties": {
"id": "20221202214653-trmmieq",
"updated": "20230429085021"
"updated": "20230622164007"
},
"Children": [
{
@ -219,7 +212,7 @@
},
{
"Type": "NodeText",
"Data": " 用于保存查询条件、布局和"
"Data": " 用于保存查询条件、布局和"
},
{
"Type": "NodeTextMark",
@ -244,7 +237,8 @@
"Marker": "Kg=="
},
"Properties": {
"id": "20210428213944-j13vr82"
"id": "20210428213944-j13vr82",
"updated": "20230622164010"
},
"Children": [
{
@ -252,7 +246,7 @@
"Type": "NodeParagraph",
"Properties": {
"id": "20210428213944-7a9j1uc",
"updated": "20210428222707"
"updated": "20230622164010"
},
"Children": [
{
@ -266,7 +260,7 @@
},
{
"Type": "NodeText",
"Data": " 用于保存"
"Data": " 用于保存"
},
{
"Type": "NodeTextMark",
@ -288,7 +282,7 @@
},
"Properties": {
"id": "20210428214009-k0zgwll",
"updated": "20220329160344"
"updated": "20230622164012"
},
"Children": [
{
@ -296,7 +290,7 @@
"Type": "NodeParagraph",
"Properties": {
"id": "20210428214009-lrjn6tn",
"updated": "20220329160344"
"updated": "20230622164012"
},
"Children": [
{
@ -310,7 +304,7 @@
},
{
"Type": "NodeText",
"Data": " 用于保存"
"Data": " 用于保存"
},
{
"Type": "NodeTextMark",
@ -332,7 +326,7 @@
},
"Properties": {
"id": "20230512170429-itokqka",
"updated": "20230512170439"
"updated": "20230622164013"
},
"Children": [
{
@ -340,7 +334,7 @@
"Type": "NodeParagraph",
"Properties": {
"id": "20230512170429-dzajfaa",
"updated": "20230512170439"
"updated": "20230622164013"
},
"Children": [
{
@ -367,6 +361,43 @@
}
]
},
{
"ID": "20230622163342-3bee88y",
"Type": "NodeListItem",
"ListData": {
"BulletChar": 42,
"Marker": "Kg=="
},
"Properties": {
"id": "20230622163342-3bee88y",
"updated": "20230622164014"
},
"Children": [
{
"ID": "20230622163342-77ojnru",
"Type": "NodeParagraph",
"Properties": {
"id": "20230622163342-77ojnru",
"updated": "20230622164014"
},
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "public"
},
{
"Type": "NodeText",
"Data": " 用于保存公开的数据"
}
]
}
]
},
{
"ID": "20210428214049-1kebc1m",
"Type": "NodeListItem",
@ -398,7 +429,7 @@
},
{
"Type": "NodeText",
"Data": " 后缀的文件用于保存文档数据,数据格式为 JSON"
"Data": " 后缀的文件用于保存文档数据,数据格式为 JSON"
}
]
}

View file

@ -6,7 +6,7 @@
"icon": "2753",
"id": "20211226115227-r1rty9v",
"title": "常見問題",
"updated": "20230617085423"
"updated": "20230622164112"
},
"Children": [
{
@ -55,7 +55,7 @@
"ListData": {},
"Properties": {
"id": "20211226115356-i1v42hf",
"updated": "20230512170521"
"updated": "20230622164112"
},
"Children": [
{
@ -67,7 +67,7 @@
},
"Properties": {
"id": "20211226115356-2dufb3s",
"updated": "20220329160516"
"updated": "20230622164100"
},
"Children": [
{
@ -75,7 +75,7 @@
"Type": "NodeParagraph",
"Properties": {
"id": "20211226115356-ymtmyye",
"updated": "20220329160516"
"updated": "20230622164100"
},
"Children": [
{
@ -89,7 +89,7 @@
},
{
"Type": "NodeText",
"Data": " 用於保存所有插入的"
"Data": " 用於保存所有插入的"
},
{
"Type": "NodeTextMark",
@ -110,7 +110,8 @@
"Marker": "Kg=="
},
"Properties": {
"id": "20221202215155-za7sgpu"
"id": "20221202215155-za7sgpu",
"updated": "20230622164101"
},
"Children": [
{
@ -118,7 +119,7 @@
"Type": "NodeParagraph",
"Properties": {
"id": "20221202215155-gzavzm9",
"updated": "20221202215210"
"updated": "20230622164101"
},
"Children": [
{
@ -132,7 +133,7 @@
},
{
"Type": "NodeText",
"Data": " 用於保存自定義圖標表情圖片"
"Data": " 用於保存自定義圖標表情圖片"
}
]
}
@ -146,7 +147,8 @@
"Marker": "Kg=="
},
"Properties": {
"id": "20221202215213-i82djox"
"id": "20221202215213-i82djox",
"updated": "20230622164104"
},
"Children": [
{
@ -154,7 +156,7 @@
"Type": "NodeParagraph",
"Properties": {
"id": "20221202215213-r3f80k4",
"updated": "20221202215224"
"updated": "20230622164104"
},
"Children": [
{
@ -168,7 +170,7 @@
},
{
"Type": "NodeText",
"Data": " 用於保存代碼片段"
"Data": " 用於保存代碼片段"
}
]
}
@ -183,7 +185,7 @@
},
"Properties": {
"id": "20221202215226-ibnf53j",
"updated": "20230429085324"
"updated": "20230622164105"
},
"Children": [
{
@ -191,7 +193,7 @@
"Type": "NodeParagraph",
"Properties": {
"id": "20221202215226-n689p7u",
"updated": "20230429085324"
"updated": "20230622164105"
},
"Children": [
{
@ -205,7 +207,7 @@
},
{
"Type": "NodeText",
"Data": " 用於保存查詢條件、佈局和"
"Data": " 用於保存查詢條件、佈局和"
},
{
"Type": "NodeTextMark",
@ -231,7 +233,7 @@
},
"Properties": {
"id": "20211226115356-dmkm408",
"updated": "20211228104617"
"updated": "20230622164108"
},
"Children": [
{
@ -239,7 +241,7 @@
"Type": "NodeParagraph",
"Properties": {
"id": "20211226115356-k4ju5n9",
"updated": "20211228104617"
"updated": "20230622164108"
},
"Children": [
{
@ -253,7 +255,7 @@
},
{
"Type": "NodeText",
"Data": " 用於保存"
"Data": " 用於保存"
},
{
"Type": "NodeTextMark",
@ -275,7 +277,7 @@
},
"Properties": {
"id": "20211226115356-nmsm4tw",
"updated": "20220329160520"
"updated": "20230622164109"
},
"Children": [
{
@ -283,7 +285,7 @@
"Type": "NodeParagraph",
"Properties": {
"id": "20211226115356-za90b90",
"updated": "20220329160520"
"updated": "20230622164109"
},
"Children": [
{
@ -297,7 +299,7 @@
},
{
"Type": "NodeText",
"Data": " 用於保存"
"Data": " 用於保存"
},
{
"Type": "NodeTextMark",
@ -319,7 +321,7 @@
},
"Properties": {
"id": "20230512170447-3eatvgq",
"updated": "20230512170521"
"updated": "20230622164111"
},
"Children": [
{
@ -327,7 +329,7 @@
"Type": "NodeParagraph",
"Properties": {
"id": "20230512170447-iqoofli",
"updated": "20230512170521"
"updated": "20230622164111"
},
"Children": [
{
@ -354,6 +356,43 @@
}
]
},
{
"ID": "20230622163358-qstuia6",
"Type": "NodeListItem",
"ListData": {
"BulletChar": 42,
"Marker": "Kg=="
},
"Properties": {
"id": "20230622163358-qstuia6",
"updated": "20230622164112"
},
"Children": [
{
"ID": "20230622163358-umo8p61",
"Type": "NodeParagraph",
"Properties": {
"id": "20230622163358-umo8p61",
"updated": "20230622164112"
},
"Children": [
{
"Type": "NodeText",
"Data": ""
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "public"
},
{
"Type": "NodeText",
"Data": " 用於保存公開的數據"
}
]
}
]
},
{
"ID": "20211226115356-vfc2ba3",
"Type": "NodeListItem",
@ -385,7 +424,7 @@
},
{
"Type": "NodeText",
"Data": " 後綴的文件用於保存文檔資料,資料格式為 JSON"
"Data": " 後綴的文件用於保存文檔資料,資料格式為 JSON"
}
]
}