feat(poster): 海报搜索支持源中文名/描述(搜衬线可命中字体),字体源索引补 desc

This commit is contained in:
sgp
2026-11-05 00:41:11 +08:00
parent 4d3bdb7f58
commit 2a034e7c67
14 changed files with 65 additions and 38 deletions
+4 -4
View File
@@ -117,8 +117,8 @@
</div>
<script src="js/core/dicebear.js?v=20260822e"></script>
<script src="js/data/builtin-icons.js?v=20261105a"></script>
<script src="js/data/poster-builtin.js?v=20261105a"></script>
<script src="js/data/builtin-icons.js?v=20261105b"></script>
<script src="js/data/poster-builtin.js?v=20261105b"></script>
<script>
(function () {
'use strict';
@@ -176,7 +176,7 @@
.catch(function () { ICON_SRC = window.HGB_IconSources || []; });
}
function loadPosterManifest() {
return fetch('js/data/manifest/posters.json?v=20261105a')
return fetch('js/data/manifest/posters.json?v=20261105b')
.then(function (r) { return r.json(); })
.then(function (m) { POSTER_SRC = m.sources || []; })
.catch(function () { POSTER_SRC = window.HGB_PosterSources || []; });
@@ -191,7 +191,7 @@
}
function loadPosterData(id) {
if (loadedCache['p_' + id]) return loadedCache['p_' + id];
loadedCache['p_' + id] = loadScript('js/data/posters/' + id + '.js?v=20261105a')
loadedCache['p_' + id] = loadScript('js/data/posters/' + id + '.js?v=20261105b')
.then(function () { return window['HGB_PosterSource_' + id] || null; });
return loadedCache['p_' + id];
}