-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconf.json
More file actions
117 lines (114 loc) · 5.1 KB
/
Copy pathconf.json
File metadata and controls
117 lines (114 loc) · 5.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
[
{
"id": "20230209182851-6jwzue9",
"name": "noob核心引导,除了noob-core的位置之外,请不要改动这个代码片段",
"memo": "",
"type": "js",
"enabled": true,
"content": "if(window.require){import('file://D:/开发/noob-core/index.js')}else{import(`http://192.168.31.223:${parseInt(window.location.port)+3}/core/frontEnd/index.js`)};"
},
{
"id": "20221122201806-td60igd",
"name": "快速移动",
"memo": "",
"type": "js",
"enabled": true,
"content": "import ('/snippets/quickMove/index.js')"
},
{
"id": "20221122201806-td92ghk",
"name": "发布适配器",
"memo": "",
"type": "js",
"enabled": false,
"content": "import ('/snippets/Publisher/index.js')"
},
{
"id": "20221122201604-114514c",
"name": "发布服务器",
"memo": "",
"type": "js",
"enabled": true,
"content": "import ('/snippets/noob-service-syPublishServer/index.js')"
},
{
"id": "20221201201802-zymmyxs",
"name": "vite服务器",
"memo": "",
"type": "js",
"enabled": false,
"content": "import ('/snippets/noob-service-vite/index.js')"
},
{
"id": "20221215143812-paafbnm",
"name": "挂件槽",
"memo": "",
"type": "js",
"enabled": false,
"content": "function showPreviousWidgetsSlot() {\n setInterval(DocumentShowPreviousWidget, 300);\n}\nDocumentShowPreviousWidget()\nshowPreviousWidgetsSlot()\nfunction DocumentShowPreviousWidget() {\n var openDoc = document.querySelectorAll(\".layout-tab-container\u003e.fn__flex-1.protyle:not(.fn__none)\");\n var allDocumentTitleElement = [];\n for (let index = 0; index \u003c openDoc.length; index++) {\n const element = openDoc[index];\n element.setAttribute(\"withPreviousWidgets\", true);\n allDocumentTitleElement.push(element.children[1].children[1].children[1]);\n }\n\n for (let index = 0; index \u003c allDocumentTitleElement.length; index++) {\n const element = allDocumentTitleElement[index];\n\n if ( !element.parentElement.querySelector('.previous-widgets-slot')\u0026\u0026element.parentElement.parentElement.querySelector('[data-node-id]')) {\n var documentPreviousWidgetsSlotElement = CreatePreviousWidgetsSlot(element.parentElement);\n element.parentElement.appendChild(documentPreviousWidgetsSlotElement)\n }\n \n }\n}\nfunction CreatePreviousWidgetsSlot(element) {\n let cloneNode = element.parentElement.querySelector(\".protyle-wysiwyg.protyle-wysiwyg--attr\").cloneNode(false)\n cloneNode.innerHTML = `\n \u003cdiv class=\"iframe-content\"\u003e\n \u003ciframe src=\"/widgets/${cloneNode.getAttribute('custom-previousWidget') || '更美观的文档自定义属性'}/\" \u003e\u003c/iframe\u003e\n \u003c/div\u003e\n `\n let id = element.parentElement.parentElement.querySelector('[data-node-id]').getAttribute('data-node-id')\n cloneNode.setAttribute('data-node-id',id)\n cloneNode.setAttribute('contenteditable',false)\n cloneNode.setAttribute('style', \"padding: 0;\")\n let div = document.createElement('div')\n div.setAttribute('class', 'previous-widgets-slot')\n div.setAttribute('contenteditable', false)\n div.setAttribute('style', \"padding: 0;\")\n let root = div.attachShadow({ mode: 'open' })\n root.innerHTML = `\n \u003cstyle\u003e\n iframe{\n width:100%;\n min-height:400px;\n border:none;\n margin:0;\n padding:0\n }\n \u003c/style\u003e\n `\n root.appendChild(cloneNode)\n return div\n};"
},
{
"id": "20221215143812-paafbnk",
"name": "主题修改器",
"memo": "",
"type": "js",
"enabled": false,
"content": "import ('/snippets/noob-service-themeEditor/index.js')"
},
{
"id": "20230124211653-u0bsjd6",
"name": "监听文件夹并导入",
"memo": "",
"type": "js",
"enabled": false,
"content": "import ('/snippets/watchImport/index.js')"
},
{
"id": "20230124211653-u0bsbc6",
"name": "快速重构",
"memo": "",
"type": "js",
"enabled": true,
"content": "import ('/snippets/quickReconstitution/index.js')"
},
{
"id": "20230209182851-6jwzue0",
"name": "块宽度调节",
"memo": "",
"type": "js",
"enabled": true,
"content": "import('/snippets/blockHandle/index.js')"
},
{
"id": "20230209182851-6jwzue1",
"name": "嵌入块表格",
"memo": "",
"type": "js",
"enabled": true,
"content": "import('/snippets/embedTable/index.js')"
},
{
"id": "20230209182851-6jwzue2",
"name": "真实块序号",
"memo": "",
"type": "js",
"enabled": true,
"content": "import('/snippets/blockIndex/index.js')"
},
{
"id": "20230209182851-6jwzue3",
"name": "真实块序号",
"memo": "",
"type": "js",
"enabled": true,
"content": "import('/snippets/snippetsInNote/index.js')"
},
{
"id": "20230209182851-6jwzue6",
"name": "浏览器式页签",
"memo": "",
"type": "js",
"enabled": true,
"content": "import('/snippets/browserTab/index.js')"
}
]