♻️ 前端统一使用内核端口号变量 https://github.com/siyuan-note/siyuan/issues/6343

This commit is contained in:
Liang Ding 2022-10-25 09:36:47 +08:00
parent 98e59dc700
commit 7287729b8e
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
3 changed files with 135 additions and 349 deletions

View file

@ -5,7 +5,8 @@
"Properties": {
"id": "20201004194026-s8h2cog",
"title": "Use on browser",
"type": "doc"
"type": "doc",
"updated": "20221025093157"
},
"Children": [
{
@ -16,10 +17,6 @@
"id": "20210104091447-8iiuxlt"
},
"Children": [
{
"Type": "NodeHeadingC8hMarker",
"Data": "## "
},
{
"Type": "NodeText",
"Data": "Browser usage"
@ -27,137 +24,52 @@
]
},
{
"ID": "20210104091447-3oeqhre",
"ID": "20221025092947-gd0wmbi",
"Type": "NodeParagraph",
"Properties": {
"id": "20210104091447-3oeqhre",
"updated": "20210302223804"
"id": "20221025092947-gd0wmbi",
"updated": "20221025093054"
},
"Children": [
{
"Type": "NodeText",
"Data": "SiYuan Desktop is an standalone application packaged based on "
"Data": "In "
},
{
"Type": "NodeTextMark",
"TextMarkType": "a",
"TextMarkAHref": "https://www.electronjs.org",
"TextMarkTextContent": "Electron"
"TextMarkType": "kbd",
"TextMarkTextContent": "Settings"
},
{
"Type": "NodeText",
"Data": ", but this is not the only way to use it. As long as the kernel of SiYuan is started, it can be used directly on the browser, supporting mobile browsers."
}
]
},
{
"ID": "20210104091447-35vbebb",
"Type": "NodeList",
"ListData": {
"Tight": true,
"BulletChar": 42,
"Padding": 2,
"Marker": "Kg==",
"Num": -1
},
"Properties": {
"id": "20210104091447-35vbebb"
},
"Children": [
{
"ID": "20210104091447-2cfema8",
"Type": "NodeListItem",
"Data": "*",
"ListData": {
"Tight": true,
"BulletChar": 42,
"Padding": 2,
"Marker": "Kg==",
"Num": -1
},
"Properties": {
"id": "20210104091447-2cfema8"
},
"Children": [
{
"ID": "20210302223802-g5brri7",
"Type": "NodeParagraph",
"Properties": {
"id": "20210302223802-g5brri7"
},
"Children": [
{
"Type": "NodeText",
"Data": "Desktop Web version: the experience is almost the same as the Electron standalone application"
}
]
}
]
},
{
"ID": "20210104091447-i60nkht",
"Type": "NodeListItem",
"Data": "*",
"ListData": {
"Tight": true,
"BulletChar": 42,
"Padding": 2,
"Marker": "Kg==",
"Num": -1
},
"Properties": {
"id": "20210104091447-i60nkht"
},
"Children": [
{
"ID": "20210302223802-ju54kjt",
"Type": "NodeParagraph",
"Properties": {
"id": "20210302223802-ju54kjt"
},
"Children": [
{
"Type": "NodeText",
"Data": "Mobile Web version: specially designed for mobile-end user experience"
}
]
}
]
}
]
},
{
"ID": "20210104091447-3gpw4m6",
"Type": "NodeParagraph",
"Properties": {
"id": "20210104091447-3gpw4m6"
},
"Children": [
{
"Type": "NodeText",
"Data": "After visiting "
"Data": " - "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "http://127.0.0.1:6806/"
"TextMarkType": "kbd",
"TextMarkTextContent": "About"
},
{
"Type": "NodeText",
"Data": ", the desktop or mobile version will be automatically switched according to the browser version."
}
]
},
{
"ID": "20210104091447-ztky9z6",
"Type": "NodeParagraph",
"Properties": {
"id": "20210104091447-ztky9z6"
},
"Children": [
"Data": " - "
},
{
"Type": "NodeTextMark",
"TextMarkType": "kbd",
"TextMarkTextContent": "Use on browser"
},
{
"Type": "NodeText",
"Data": "If you need to use it in a local area network, just replace "
"Data": " - "
},
{
"Type": "NodeTextMark",
"TextMarkType": "kbd",
"TextMarkTextContent": "Open browser"
},
{
"Type": "NodeText",
"Data": ", you can directly use SiYuan on the browser, if you need to use it in the local area network, replace "
},
{
"Type": "NodeTextMark",
@ -166,7 +78,21 @@
},
{
"Type": "NodeText",
"Data": " with the local area network IP address. In addition to local LAN use, here are two self-service solutions for public network use:"
"Data": " with the local area network IP address."
}
]
},
{
"ID": "20221025092947-5m97t0e",
"Type": "NodeParagraph",
"Properties": {
"id": "20221025092947-5m97t0e",
"updated": "20221025093148"
},
"Children": [
{
"Type": "NodeText",
"Data": "In addition to the use of the local LAN, the use of the public network can be achieved by the following two methods::"
}
]
},
@ -181,7 +107,8 @@
"Num": -1
},
"Properties": {
"id": "20210104091447-6y4386v"
"id": "20210104091447-6y4386v",
"updated": "20221025093157"
},
"Children": [
{
@ -226,19 +153,21 @@
"Num": -1
},
"Properties": {
"id": "20210104091447-oo5sodh"
"id": "20210104091447-oo5sodh",
"updated": "20221025093157"
},
"Children": [
{
"ID": "20210302223802-ghpurq7",
"Type": "NodeParagraph",
"Properties": {
"id": "20210302223802-ghpurq7"
"id": "20210302223802-ghpurq7",
"updated": "20221025093157"
},
"Children": [
{
"Type": "NodeText",
"Data": "Build your own SiYuanServer (recommended)"
"Data": "Build your own SiYuan Server (recommended)"
}
]
}

View file

@ -5,7 +5,8 @@
"Properties": {
"id": "20201004184819-nj8ibyg",
"title": "在浏览器上使用",
"type": "doc"
"type": "doc",
"updated": "20221025093126"
},
"Children": [
{
@ -17,10 +18,6 @@
"updated": "20210501194730"
},
"Children": [
{
"Type": "NodeHeadingC8hMarker",
"Data": "## "
},
{
"Type": "NodeText",
"Data": "浏览器用法"
@ -28,137 +25,52 @@
]
},
{
"ID": "20210104090909-3fkdb8b",
"ID": "20221025092410-jsrv6gc",
"Type": "NodeParagraph",
"Properties": {
"id": "20210104090909-3fkdb8b",
"updated": "20210302223612"
"id": "20221025092410-jsrv6gc",
"updated": "20221025092711"
},
"Children": [
{
"Type": "NodeText",
"Data": "思源桌面端是基于 "
"Data": " "
},
{
"Type": "NodeTextMark",
"TextMarkType": "a",
"TextMarkAHref": "https://www.electronjs.org",
"TextMarkTextContent": "Electron"
"TextMarkType": "kbd",
"TextMarkTextContent": "设置"
},
{
"Type": "NodeText",
"Data": " 打包的独立应用,但这并不唯一的使用方式。只要启动思源内核后,就能在浏览器上直接使用了,支持移动端浏览器。"
}
]
},
{
"ID": "20210104090909-z9210o7",
"Type": "NodeList",
"ListData": {
"Tight": true,
"BulletChar": 42,
"Padding": 2,
"Marker": "Kg==",
"Num": -1
},
"Properties": {
"id": "20210104090909-z9210o7"
},
"Children": [
{
"ID": "20210104090909-5occty9",
"Type": "NodeListItem",
"Data": "*",
"ListData": {
"Tight": true,
"BulletChar": 42,
"Padding": 2,
"Marker": "Kg==",
"Num": -1
},
"Properties": {
"id": "20210104090909-5occty9"
},
"Children": [
{
"ID": "20210302223610-ngnee0k",
"Type": "NodeParagraph",
"Properties": {
"id": "20210302223610-ngnee0k"
},
"Children": [
{
"Type": "NodeText",
"Data": "桌面端网页版:使用体验几乎和 Electron 独立应用一致"
}
]
}
]
},
{
"ID": "20210104090909-ipt2k4r",
"Type": "NodeListItem",
"Data": "*",
"ListData": {
"Tight": true,
"BulletChar": 42,
"Padding": 2,
"Marker": "Kg==",
"Num": -1
},
"Properties": {
"id": "20210104090909-ipt2k4r"
},
"Children": [
{
"ID": "20210302223610-hnshr1s",
"Type": "NodeParagraph",
"Properties": {
"id": "20210302223610-hnshr1s"
},
"Children": [
{
"Type": "NodeText",
"Data": "移动端网页版:为移动端使用体验设计"
}
]
}
]
}
]
},
{
"ID": "20210104090909-5ucwkfd",
"Type": "NodeParagraph",
"Properties": {
"id": "20210104090909-5ucwkfd"
},
"Children": [
{
"Type": "NodeText",
"Data": "访问 "
"Data": " - "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "http://127.0.0.1:6806/"
"TextMarkType": "kbd",
"TextMarkTextContent": "关于"
},
{
"Type": "NodeText",
"Data": " 后会自动根据浏览器版本切换桌面端或移动端。"
}
]
},
{
"ID": "20210104090909-z2r76p3",
"Type": "NodeParagraph",
"Properties": {
"id": "20210104090909-z2r76p3"
},
"Children": [
"Data": " - "
},
{
"Type": "NodeTextMark",
"TextMarkType": "kbd",
"TextMarkTextContent": "在浏览器上使用"
},
{
"Type": "NodeText",
"Data": "如果需要在局域网内使用,将 "
"Data": " - "
},
{
"Type": "NodeTextMark",
"TextMarkType": "kbd",
"TextMarkTextContent": "打开浏览器"
},
{
"Type": "NodeText",
"Data": " 后就可以直接在浏览器上使用了,如果需要在局域网内使用,将 "
},
{
"Type": "NodeTextMark",
@ -167,7 +79,21 @@
},
{
"Type": "NodeText",
"Data": " 换成局域网 IP 地址即可。除了本地局域网使用,这里提供两个自助方案实现公网使用:"
"Data": " 换成局域网 IP 地址即可。"
}
]
},
{
"ID": "20221025092746-xsahzmh",
"Type": "NodeParagraph",
"Properties": {
"id": "20221025092746-xsahzmh",
"updated": "20221025093126"
},
"Children": [
{
"Type": "NodeText",
"Data": "除了本地局域网使用,通过以下两个方法可以实现公网使用:"
}
]
},
@ -320,13 +246,6 @@
"Data": " 中可配置浏览器访问鉴权密码,留空表示不启用鉴权。这在开放网络(比如办公场所和公网)会比较有用,只有鉴权通过后才能进入工作空间。"
}
]
},
{
"ID": "20210117210851-87cdi7m",
"Type": "NodeParagraph",
"Properties": {
"id": "20210117210851-87cdi7m"
}
}
]
}

View file

@ -5,7 +5,7 @@
"Properties": {
"id": "20211226122523-rl8356a",
"title": "在瀏覽器上使用",
"updated": "20211228145303"
"updated": "20221025093344"
},
"Children": [
{
@ -24,128 +24,52 @@
]
},
{
"ID": "20211226122545-rinwfjn",
"ID": "20221025093315-nlguzfi",
"Type": "NodeParagraph",
"Properties": {
"id": "20211226122545-rinwfjn",
"updated": "20211228145303"
"id": "20221025093315-nlguzfi",
"updated": "20221025093344"
},
"Children": [
{
"Type": "NodeText",
"Data": "思源桌面端是基於 "
"Data": " "
},
{
"Type": "NodeTextMark",
"TextMarkType": "a",
"TextMarkAHref": "https://www.electronjs.org",
"TextMarkTextContent": "Electron"
"TextMarkType": "kbd",
"TextMarkTextContent": "設置"
},
{
"Type": "NodeText",
"Data": " 打包的獨立應用,但這並不唯一的使用方式。只要啟動思源內核後,就能在瀏覽器上直接使用了,支援行動端瀏覽器。"
}
]
},
{
"ID": "20211226122545-1uf71lc",
"Type": "NodeList",
"ListData": {},
"Properties": {
"id": "20211226122545-1uf71lc",
"updated": "20211228145232"
},
"Children": [
{
"ID": "20211226122545-7tq2rvn",
"Type": "NodeListItem",
"ListData": {
"BulletChar": 42,
"Marker": "Kg=="
},
"Properties": {
"id": "20211226122545-7tq2rvn"
},
"Children": [
{
"ID": "20211226122545-7ocbf35",
"Type": "NodeParagraph",
"Properties": {
"id": "20211226122545-7ocbf35"
},
"Children": [
{
"Type": "NodeText",
"Data": "桌面端網頁版:使用體驗幾乎和 Electron 獨立應用一致"
}
]
}
]
},
{
"ID": "20211226122545-opylma4",
"Type": "NodeListItem",
"ListData": {
"BulletChar": 42,
"Marker": "Kg=="
},
"Properties": {
"id": "20211226122545-opylma4",
"updated": "20211228145232"
},
"Children": [
{
"ID": "20211226122545-fw3lwa7",
"Type": "NodeParagraph",
"Properties": {
"id": "20211226122545-fw3lwa7",
"updated": "20211228145232"
},
"Children": [
{
"Type": "NodeText",
"Data": "行動端網頁版:為行動端使用體驗設計"
}
]
}
]
}
]
},
{
"ID": "20211226122545-6qtqipo",
"Type": "NodeParagraph",
"Properties": {
"id": "20211226122545-6qtqipo",
"updated": "20211228145236"
},
"Children": [
{
"Type": "NodeText",
"Data": "存取 "
"Data": " - "
},
{
"Type": "NodeTextMark",
"TextMarkType": "code",
"TextMarkTextContent": "http://127.0.0.1:6806/"
"TextMarkType": "kbd",
"TextMarkTextContent": "關於"
},
{
"Type": "NodeText",
"Data": " 後會自動根據瀏覽器版本切換桌面端或行動端。"
}
]
},
{
"ID": "20211226122545-vawibm9",
"Type": "NodeParagraph",
"Properties": {
"id": "20211226122545-vawibm9",
"updated": "20211228140806"
},
"Children": [
"Data": " - "
},
{
"Type": "NodeTextMark",
"TextMarkType": "kbd",
"TextMarkTextContent": "在瀏覽器上使用"
},
{
"Type": "NodeText",
"Data": "如果需要在區域網內使用,將 "
"Data": " - "
},
{
"Type": "NodeTextMark",
"TextMarkType": "kbd",
"TextMarkTextContent": "打開瀏覽器"
},
{
"Type": "NodeText",
"Data": " 後就可以直接在瀏覽器上使用了,如果需要在局域網內使用,將 "
},
{
"Type": "NodeTextMark",
@ -154,7 +78,21 @@
},
{
"Type": "NodeText",
"Data": " 換成區域網 IP 位址即可。除了本地區域網使用,這裡提供兩個自助方案實作公網使用:"
"Data": " 換成局域網 IP 地址即可。"
}
]
},
{
"ID": "20221025093315-v89zg6i",
"Type": "NodeParagraph",
"Properties": {
"id": "20221025093315-v89zg6i",
"updated": "20221025093315"
},
"Children": [
{
"Type": "NodeText",
"Data": "除了本地局域網使用,通過以下兩個方法可以實現公網使用:"
}
]
},