chore(plugins): promptlib 1.8.1 市场同步
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 1m0s
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 1m0s
This commit is contained in:
1 parent
702fbf5132
commit
d45065101b
4 files changed
+34
-10
No files matched your search
+3
-3
@@ -44,10 +44,10 @@
|
||||
"dir": "promptlib",
|
||||
"main": "main.js",
|
||||
"style": "styles.css",
|
||||
"version": "1.8.0",
|
||||
"version": "1.8.1",
|
||||
"files": {
|
||||
"main.js": "b1c76f2758c3405fa19d6e2930ea9b33a36302fb2fed73418e06f1eebd9768d3",
|
||||
"styles.css": "9b6f528cb0d673bb0f8c4166bb49615938418888051dcd5f431b23daff30b39e"
|
||||
"main.js": "3e46ac1688691d4268c1e54795f0f208d1841030aa42c4100fe35a9886ca098d",
|
||||
"styles.css": "8bb46fcaf7d399bdf5602fb19ad72b364260b971002a47eb92c8fee3d88e2a29"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
||||
@@ -1356,9 +1356,19 @@
|
||||
leftCol.appendChild(cov)
|
||||
leftCol.appendChild(el('div', { class: 'iwb-plp-dtitle', text: p.name || '未命名' }))
|
||||
var meta = el('div', { class: 'iwb-plp-dmeta' })
|
||||
meta.appendChild(el('span', { class: 'iwb-plp-dgroup', text: p.group || '未分组' }))
|
||||
;(p.tags || []).forEach(function (t) { meta.appendChild(el('span', { class: 'iwb-plp-dtag', text: '#' + t })) })
|
||||
meta.appendChild(el('span', { class: 'iwb-plp-dlen', text: String(p.text || '').length + ' 字' }))
|
||||
function metaRow (label, nodes) {
|
||||
var row = el('div', { class: 'iwb-plp-dmrow' })
|
||||
row.appendChild(el('span', { class: 'iwb-plp-dmk', text: label }))
|
||||
var val = el('div', { class: 'iwb-plp-dmv' })
|
||||
;(Array.isArray(nodes) ? nodes : [nodes]).forEach(function (n) { val.appendChild(n) })
|
||||
row.appendChild(val)
|
||||
return row
|
||||
}
|
||||
meta.appendChild(metaRow('分组', el('span', { class: 'iwb-plp-dgroup', text: p.group || '未分组' })))
|
||||
var tagNodes = (p.tags || []).map(function (t) { return el('span', { class: 'iwb-plp-dtag', text: '#' + t }) })
|
||||
if (!tagNodes.length) tagNodes = [el('span', { class: 'iwb-plp-dempty', text: '无' })]
|
||||
meta.appendChild(metaRow('标签', tagNodes))
|
||||
meta.appendChild(metaRow('字数', el('span', { class: 'iwb-plp-dlen', text: String(p.text || '').length + ' 字' })))
|
||||
leftCol.appendChild(meta)
|
||||
var right = el('div', { class: 'iwb-plp-dright' })
|
||||
var vlist = varsOf(p)
|
||||
@@ -1738,7 +1748,7 @@
|
||||
global.IWBPluginHost.register({
|
||||
id: 'promptlib',
|
||||
name: '提示词库',
|
||||
version: '1.8.0',
|
||||
version: '1.8.1',
|
||||
apiVersion: 1,
|
||||
capabilities: ['panels', 'promptlib', 'nodeTypes', 'canvas', 'canvasWrite'],
|
||||
data: { schemaVersion: 3, maxBytes: 4 * 1024 * 1024 },
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"id": "promptlib",
|
||||
"name": "提示词库",
|
||||
"version": "1.8.0",
|
||||
"version": "1.8.1",
|
||||
"apiVersion": 1,
|
||||
"main": "main.js",
|
||||
"style": "styles.css",
|
||||
@@ -13,7 +13,7 @@
|
||||
"提示词"
|
||||
],
|
||||
"files": {
|
||||
"main.js": "b1c76f2758c3405fa19d6e2930ea9b33a36302fb2fed73418e06f1eebd9768d3",
|
||||
"styles.css": "9b6f528cb0d673bb0f8c4166bb49615938418888051dcd5f431b23daff30b39e"
|
||||
"main.js": "3e46ac1688691d4268c1e54795f0f208d1841030aa42c4100fe35a9886ca098d",
|
||||
"styles.css": "8bb46fcaf7d399bdf5602fb19ad72b364260b971002a47eb92c8fee3d88e2a29"
|
||||
}
|
||||
}
|
||||
@@ -503,3 +503,17 @@ body.iwb-plp-dragging, body.iwb-plp-dragging *{user-select:none!important;-webki
|
||||
.iwb-plp-tagin{flex:1;min-width:0;height:30px}
|
||||
.iwb-plp-lrow-tags{align-items:flex-start}
|
||||
.iwb-plp-tagadd{flex:0 0 auto;width:30px;height:30px;padding:0;font-size:15px;line-height:28px}
|
||||
/* v1.8.1:详情标题/分组/标签左对齐并带标题;标签加号对齐修复 */
|
||||
.iwb-plp-dtitle{font-size:20px;font-weight:650;line-height:1.35;margin-top:16px;color:var(--iwb-text,#1d2129)}
|
||||
.iwb-plp-dmeta{display:flex;flex-direction:column;gap:7px;margin-top:12px;align-items:flex-start}
|
||||
.iwb-plp-dmrow{display:flex;align-items:center;gap:10px;width:100%}
|
||||
.iwb-plp-dmk{flex:0 0 30px;width:30px;font-size:11.5px;color:#9aa1ac}
|
||||
.iwb-plp-dmv{display:flex;flex-wrap:wrap;align-items:center;gap:5px;min-width:0}
|
||||
.iwb-plp-dgroup{font-size:12px;color:#3f4450;background:#f2f4f7;border-radius:6px;padding:2px 9px}
|
||||
.iwb-plp-dtag{font-size:11.5px;color:#5a3fd0;background:#f4f0ff;border-radius:6px;padding:2px 9px}
|
||||
.iwb-plp-dempty{font-size:12px;color:#b3b9c2}
|
||||
.iwb-plp-dlen{font-size:12px;color:#8a919c}
|
||||
.iwb-plp-tagrow{display:flex;align-items:center;gap:6px}
|
||||
.iwb-plp-tagin{height:30px;border-radius:8px}
|
||||
.iwb-plp-tagadd{flex:0 0 auto;width:30px;height:30px;padding:0;border-radius:8px;background:#f2f4f7;border:1px solid #e2e6ec;color:#5b6472;font-size:16px;line-height:1;display:inline-flex;align-items:center;justify-content:center}
|
||||
.iwb-plp-tagadd:hover{background:#e9ecf1}
|
||||
Reference in new issue
Block a user