chore(plugins): promptlib 1.3.1 详情插入后自动关闭
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 1m39s

This commit is contained in:
qiqi committed 2026-11-21 21:34:00 +08:00
1 parent f8635d4e19
commit 9f69f73443
3 files changed
+6 -6

No files matched your search

+2 -2
View File
@@ -44,9 +44,9 @@
"dir": "promptlib",
"main": "main.js",
"style": "styles.css",
"version": "1.3.0",
"version": "1.3.1",
"files": {
"main.js": "43f228e4e3e8791d389a077ca46a543316c27f2ab349aa47cfed6fe3a1f244e0",
"main.js": "9b5cb3e8f5b4da7db2b2e01e01beec0963579cb9140b67e6eed994139f99bd84",
"styles.css": "eddcbf6a0c503d22ab3bbaeb0e4d3f89e55aa7a5d949108cfe893789638d00af"
}
},
+2 -2
View File
@@ -601,7 +601,7 @@
})
})
cp.addEventListener('click', function () { Promise.resolve(api.copy(p.text || '')).then(function (r) { if (r && r.ok === false) notify('复制失败', 'err'); else notify('已复制全文') }) })
ins.addEventListener('click', function () { Promise.resolve(api.insert(p.text || '', p.name || '')).then(function () { notify('已插入画布:' + (p.name || '提示词')) }).catch(function () { notify('插入画布失败', 'err') }) })
ins.addEventListener('click', function () { Promise.resolve(api.insert(p.text || '', p.name || '')).then(function () { notify('已插入画布:' + (p.name || '提示词')); dlg.close() }).catch(function () { notify('插入画布失败', 'err') }) })
footEl.appendChild(del); footEl.appendChild(el('span', { class: 'iwb-drawer-spacer' })); footEl.appendChild(cp); footEl.appendChild(ins)
},
})
@@ -837,7 +837,7 @@
global.IWBPluginHost.register({
id: 'promptlib',
name: '提示词库',
version: '1.3.0',
version: '1.3.1',
apiVersion: 1,
capabilities: ['panels', 'promptlib'],
data: { schemaVersion: 1, maxBytes: 65536 },
+2 -2
View File
@@ -1,7 +1,7 @@
{
"id": "promptlib",
"name": "提示词库",
"version": "1.3.0",
"version": "1.3.1",
"apiVersion": 1,
"main": "main.js",
"style": "styles.css",
@@ -13,7 +13,7 @@
"提示词"
],
"files": {
"main.js": "43f228e4e3e8791d389a077ca46a543316c27f2ab349aa47cfed6fe3a1f244e0",
"main.js": "9b5cb3e8f5b4da7db2b2e01e01beec0963579cb9140b67e6eed994139f99bd84",
"styles.css": "eddcbf6a0c503d22ab3bbaeb0e4d3f89e55aa7a5d949108cfe893789638d00af"
}
}