🐛 仅对 2026 主题应用详情修复

This commit is contained in:
2026-07-09 17:00:00 +08:00
parent 95b8c6ab36
commit b8c9796fd6
+4 -2
View File
@@ -113,14 +113,16 @@ def write_detail_collapse_script(theme_dir: Path) -> bool:
def main() -> None:
changed = []
for assets in ASSETS_ROOT.glob('themes/*/assets'):
theme = ASSETS_ROOT / 'themes/2026'
assets = theme / 'assets'
if assets.exists():
for path in assets.glob('FileManageView-*.js'):
if patch_file_manage(path):
changed.append(str(path.relative_to(ASSETS_ROOT)))
for path in assets.glob('clipboard-*.js'):
if patch_clipboard(path):
changed.append(str(path.relative_to(ASSETS_ROOT)))
if write_detail_collapse_script(assets.parent):
if write_detail_collapse_script(theme):
changed.append(str((assets / 'fcb-detail-collapse.js').relative_to(ASSETS_ROOT)))
if not changed:
raise SystemExit('admin timeline/clipboard patch markers not found or already patched')