Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

3.8 KB
Raw Blame
{
	"ID": "20210824201257-cy7icrc",
	"Spec": "2",
	"Type": "NodeDocument",
	"Properties": {
		"id": "20210824201257-cy7icrc",
		"title": "挂件",
		"type": "doc",
		"updated": "20261024161440"
	},
	"Children": [
		{
			"ID": "20210824201352-apdkqps",
			"Type": "NodeHeading",
			"HeadingLevel": 2,
			"Properties": {
				"id": "20210824201352-apdkqps",
				"updated": "20261024161440"
			},
			"Children": [
				{
					"Type": "NodeText",
					"Data": "概述"
				}
			]
		},
		{
			"ID": "20210824201352-z3731rx",
			"Type": "NodeParagraph",
			"Properties": {
				"id": "20210824201352-z3731rx",
				"updated": "20261024161440"
			},
			"Children": [
				{
					"Type": "NodeText",
					"Data": "挂件是在文档中运行的小工具,以网页形式嵌入编辑器。挂件文件由思源内核提供,通过 "
				},
				{
					"Type": "NodeTextMark",
					"TextMarkType": "code",
					"TextMarkTextContent": "iframe"
				},
				{
					"Type": "NodeText",
					"Data": " 显示,也可以通过 API 读写数据。"
				}
			]
		},
		{
			"ID": "20230512170809-69w37zm",
			"Type": "NodeParagraph",
			"Properties": {
				"id": "20230512170809-69w37zm",
				"updated": "20230512194517"
			},
			"Children": [
				{
					"Type": "NodeText",
					"Data": "相较于"
				},
				{
					"Type": "NodeTextMark",
					"TextMarkType": "block-ref",
					"TextMarkBlockRefID": "20230506210010-houyyvy",
					"TextMarkBlockRefSubtype": "s",
					"TextMarkTextContent": "插件"
				},
				{
					"Type": "NodeText",
					"Data": "而言,挂件是一种内容块,遵循块的索引和渲染规则,挂件主要面向内容块扩展,不面向程序功能扩展。"
				}
			]
		},
		{
			"ID": "20210824201352-9vey615",
			"Type": "NodeHeading",
			"HeadingLevel": 2,
			"Properties": {
				"id": "20210824201352-9vey615",
				"updated": "20261016191345"
			},
			"Children": [
				{
					"Type": "NodeText",
					"Data": "使用方式"
				}
			]
		},
		{
			"ID": "20210824201352-xhr1kmi",
			"Type": "NodeParagraph",
			"Properties": {
				"id": "20210824201352-xhr1kmi",
				"updated": "20261016191345"
			},
			"Children": [
				{
					"Type": "NodeText",
					"Data": "挂件通过挂件集市安装,安装后挂件将被放置到 "
				},
				{
					"Type": "NodeTextMark",
					"TextMarkType": "code",
					"TextMarkTextContent": "工作空间/data/widgets/"
				},
				{
					"Type": "NodeText",
					"Data": "​ 文件夹下。在编辑器中使用斜杆菜单触发调用搜索,选择需要的挂件后该挂件就会以挂件块的形式插入到文档中。"
				}
			]
		},
		{
			"ID": "20261002002136-lrwocp1",
			"Type": "NodeParagraph",
			"Properties": {
				"id": "20261002002136-lrwocp1",
				"updated": "20261002002136"
			},
			"Children": [
				{
					"Type": "NodeText",
					"Data": "将鼠标移到块上即可显示边框外的小尺寸手柄:拖动右侧中间的手柄调整宽度,拖动底部中间的手柄调整高度,拖动右下角的圆角手柄同时调整宽高。触屏可直接拖动手柄,单独调整宽度或高度时会保留另一项尺寸。"
				}
			]
		},
		{
			"ID": "20211222095016-3jjm95h",
			"Type": "NodeHeading",
			"HeadingLevel": 2,
			"Properties": {
				"id": "20211222095016-3jjm95h",
				"updated": "20260809232000"
			},
			"Children": [
				{
					"Type": "NodeText",
					"Data": "上架挂件集市"
				}
			]
		},
		{
			"ID": "20221114172636-pirwdpa",
			"Type": "NodeParagraph",
			"Properties": {
				"id": "20221114172636-pirwdpa",
				"updated": "20260809232000"
			},
			"Children": [
				{
					"Type": "NodeText",
					"Data": "请参考"
				},
				{
					"Type": "NodeTextMark",
					"TextMarkType": "a",
					"TextMarkAHref": "https://github.com/siyuan-note/bazaar",
					"TextMarkTextContent": "社区集市仓库"
				},
				{
					"Type": "NodeText",
					"Data": "。"
				}
			]
		}
	]
}