feat(定时任务): 新增第七个 HTML 模板 no.7(只展示)
- no.7.html(605KB)复制进 templates/no7/;数据存于 <script id="PAGE_DATA" type="application/json"> 元素(同 no.4 类元素注入),当前引擎只支持 const VAR= 行注入, 故先注册为 convertible=False 只展示 - 前端下拉/参考列表自动出现 no.7 - 测试覆盖 no.7 存在/只展示/文件可读 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
4f62703477
commit
60029ae3dc
2 files changed
+231
No files matched your search
+9
@@ -175,6 +175,15 @@ TEMPLATES: tuple[TemplateSpec, ...] = (
|
||||
# 故暂注册为只展示;接转换需放宽行注入正则。
|
||||
convertible=False,
|
||||
),
|
||||
TemplateSpec(
|
||||
id="no7",
|
||||
name="no.7",
|
||||
description="",
|
||||
file="no7/no7.html",
|
||||
# 数据存于 <script id="PAGE_DATA" type="application/json"> 元素(同 no.4 类元素注入),
|
||||
# 当前引擎只支持 const VAR= 行注入,故暂注册为只展示;接转换需扩展元素注入。
|
||||
convertible=False,
|
||||
),
|
||||
)
|
||||
|
||||
_TEMPLATES_BY_ID: dict[str, TemplateSpec] = {t.id: t for t in TEMPLATES}
|
||||
|
||||
Reference in new issue
Block a user