fix: 封面 PNG→JPEG 兜底 + 停靠栏/小地图补测 + 主题契约扩围 v3.26.21
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 2m11s

This commit is contained in:
qiqi committed 2026-11-22 00:16:30 +08:00
1 parent 9847373964
commit e827f47d04
23 files changed
+234 -77

No files matched your search

+2 -2
View File
@@ -44,9 +44,9 @@
"dir": "promptlib",
"main": "main.js",
"style": "styles.css",
"version": "1.4.8",
"version": "1.4.9",
"files": {
"main.js": "c42277852f9f315705e0cece510c124d703e35ef248641fcb9bddf47b8f199c8",
"main.js": "f8003074e51b6e1e7302d89eebe3e88574089db3aff518c50f419072e6350a42",
"styles.css": "cc71e071379c84131e525afeaa5757674f499da195ccb42536c019a3ef5d8473"
}
},
+7 -2
View File
@@ -112,7 +112,12 @@
function slimCovers () {
if (slimDone) return
slimDone = true
var big = prompts.filter(function (p) { return typeof p.cover === 'string' && p.cover.indexOf('data:') === 0 && p.cover.length > 60000 })
// v1.4.9:除了 >60KB 的,也把老版本存成 PNG 的封面重压一次(448px PNG 仍有 300KB+)
var big = prompts.filter(function (p) {
var c = p && p.cover
if (typeof c !== 'string' || c.indexOf('data:') !== 0) return false
return c.length > 60000 || c.indexOf('data:image/png') === 0
})
if (!big.length) return
var next = prompts.slice()
var i = 0
@@ -715,7 +720,7 @@
global.IWBPluginHost.register({
id: 'promptlib',
name: '提示词库',
version: '1.4.8',
version: '1.4.9',
apiVersion: 1,
capabilities: ['panels', 'promptlib'],
data: { schemaVersion: 1, maxBytes: 65536 },
+2 -2
View File
@@ -1,7 +1,7 @@
{
"id": "promptlib",
"name": "提示词库",
"version": "1.4.8",
"version": "1.4.9",
"apiVersion": 1,
"main": "main.js",
"style": "styles.css",
@@ -13,7 +13,7 @@
"提示词"
],
"files": {
"main.js": "c42277852f9f315705e0cece510c124d703e35ef248641fcb9bddf47b8f199c8",
"main.js": "f8003074e51b6e1e7302d89eebe3e88574089db3aff518c50f419072e6350a42",
"styles.css": "cc71e071379c84131e525afeaa5757674f499da195ccb42536c019a3ef5d8473"
}
}