chore: v3.26.226(测试版:先落地再显示 / 单次下载)

This commit is contained in:
qiqi committed 2026-12-02 23:38:27 +08:00
1 parent ae6549354d
commit f0ccaf79d3
14 files changed
+211 -91

No files matched your search

+5 -2
View File
@@ -63,10 +63,13 @@
const res = (Q && typeof Q.queryOutputs === 'function')
? Q.queryOutputs(list, { query: o.query || '', range: o.range || '', limit, width: 320, tile: 130 })
: { filtered: list, visible: list.slice(0, limit), total: list.length }
// 2026-12-02(方案 A:先落地再显示):只展示已落地(orig=ok)的图;
// pending(下载中)/ missing(失败)一律静默隐藏 —— 用户要的是「图库出现时就是完整可用的」,
// 不再先冒一张取不到缩略图的空卡。'off' 是旧版「不备份原图」的历史条目(有缩略图),保留可见。
const items = (res.visible || []).map(function (f) {
return { name: f.name, label: f.label || '', w: f.w || 0, h: f.h || 0, mtime: f.mtime || 0, orig: f.orig || (f.origIdb ? 'ok' : 'missing') }
})
return { items: items, total: res.total || items.length }
}).filter(function (it) { return it.orig === 'ok' || it.orig === 'off' })
return { items: items, total: items.length }
}
global.IWBPluginGallery = { setImpl: setImpl, api: function () { return API }, query: query, emit: emit }