feat(posters): 接入 Base16 主题配色库(276 套 16 色方案)

- 新增 format transform: 'base16'(YAML → 结构化 JSON),零依赖逐行解析 palette.base00–base0F

- 新增源 base16-schemes(MIT,tinted-theming/schemes@spec-0.11,276/277 通过率 99.6%)

- 海报 palette 由 31 → 307 条,库总计 71 源 / 11,598 素材

- 结构校验:276 唯一 id、0 结构异常、198 套 dark 变体;版本联动 20261108f
This commit is contained in:
sgp
2026-11-08 12:22:09 +08:00
parent e55d89d04b
commit 424a63d349
17 changed files with 123 additions and 47 deletions
+5 -5
View File
@@ -117,8 +117,8 @@
</div>
<script src="js/core/dicebear.js?v=20260822e"></script>
<script src="js/data/builtin-icons.js?v=20261108d"></script>
<script src="js/data/poster-builtin.js?v=20261108d"></script>
<script src="js/data/builtin-icons.js?v=20261108f"></script>
<script src="js/data/poster-builtin.js?v=20261108f"></script>
<script>
(function () {
'use strict';
@@ -170,13 +170,13 @@
/* ============ Manifest 加载 ============ */
function loadIconManifest() {
return fetch('js/data/manifest/icons.json?v=20261108d')
return fetch('js/data/manifest/icons.json?v=20261108f')
.then(function (r) { return r.json(); })
.then(function (m) { ICON_SRC = m.sources || []; })
.catch(function () { ICON_SRC = window.HGB_IconSources || []; });
}
function loadPosterManifest() {
return fetch('js/data/manifest/posters.json?v=20261108d')
return fetch('js/data/manifest/posters.json?v=20261108f')
.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=20261108d')
loadedCache['p_' + id] = loadScript('js/data/posters/' + id + '.js?v=20261108f')
.then(function () { return window['HGB_PosterSource_' + id] || null; });
return loadedCache['p_' + id];
}