aboutsummaryrefslogtreecommitdiffstats
path: root/tiddlers/tiddlywiki.tid
diff options
context:
space:
mode:
Diffstat (limited to 'tiddlers/tiddlywiki.tid')
-rw-r--r--tiddlers/tiddlywiki.tid44
1 files changed, 4 insertions, 40 deletions
diff --git a/tiddlers/tiddlywiki.tid b/tiddlers/tiddlywiki.tid
index 9c209ee..8a108a6 100644
--- a/tiddlers/tiddlywiki.tid
+++ b/tiddlers/tiddlywiki.tid
@@ -6,7 +6,7 @@ type: text/vnd.tiddlywiki
! 新增一个语法高亮
-增加一个 [[tiddlers/highlight-tiddlywiki.tid|$:/plugins/local/highlight-languages/tiddlywiki.js]] 文件,重启服务就可以了
+源码位于 [[plugins/utilities/highlight-tiddlywiki.tid|$:/plugins/local/highlight-languages/tiddlywiki.js]],由 `$:/plugins/local/utilities` 插件统一打包。
<details>
<summary>点击展开文件内容</summary>
@@ -60,7 +60,7 @@ list-after: $:/core/ui/SideBar/More
! 插件 - 代码复制
-在代码块右上角展示一个复制按钮,插件内容保存在 [[tiddlers/copy-codeblock.tid|$:/plugins/local/copy-codeblock/copy-codeblock.js]]
+在代码块右上角展示一个复制按钮,源码位于 [[plugins/utilities/copy-codeblock-widget.tid|$:/plugins/local/copy-codeblock/copy-codeblock.js]]。
<details>
<summary>点击展开文件内容</summary>
@@ -71,42 +71,6 @@ list-after: $:/core/ui/SideBar/More
! 资源文件管理
-图片文件可以和条目文件分开保存,可以和 html 分开加载
-
-资源文件可以放置在 files 文件夹中,通过 ./files/... 的方式引用
-
-资源文件的上传下载,用 webdav 好了
-
-增加索取所有文件的接口,写入到 tiddlers/files-list-api.tid 文件中
-
-<details>
-<summary>点击展开文件内容</summary>
-
-{{files-list-api.tid}}
-
-</details>
-
-在 wiki 中获取文件列表
-
-```tid
-\procedure store-file-list()
-<$action-setfield
- $tiddler="$:/temp/files-list"
- text=<<data>>
- type="application/json"
-/>
-\end
-
-<$button>
- <$action-sendmessage
- $message="tm-http-request"
- url="./api/files"
- method="GET"
- oncompletion=<<store-file-list>>
- />
- 刷新文件列表
-</$button>
-
-<pre><$text text={{$:/temp/files-list}}/></pre>
-```
+图片文件可以和条目文件分开保存,也可以和 HTML 分开加载。
+资源文件可以放在 `files/` 文件夹中,通过 `./files/...` 引用。