feat(extension): 缩减配置注入并输出 menav-config.json

- 构建:生成 dist/menav-config.json 供扩展按需加载
- 页面:menav-config-data 仅注入扩展元信息(configUrl/pageTemplates/icons/homePageId/allowedSchemes)
- 运行时:模板判定优先 pageTemplates,兼容旧 cfg.data[pageId].template
- 文档:更新 README 的扩展接口说明
This commit is contained in:
rbetree
2026-01-07 19:35:20 +08:00
parent a3465fe4a1
commit 8f81b430b9
5 changed files with 173 additions and 19 deletions

View File

@@ -190,7 +190,7 @@
<i class="fas fa-moon"></i>
</button>
</div>
<!-- 配置数据 - 用于浏览器扩展 -->
<!-- 配置元信息(版本/配置URL/少量运行时参数)- 用于浏览器扩展按需加载 -->
<script id="menav-config-data" type="application/json" style="display: none;">
{{{configJSON}}}
</script>