From b8c9796fd6e26137cee564b2861e2ebc6d503d65 Mon Sep 17 00:00:00 2001 From: Orion Date: Thu, 9 Jul 2026 17:00:00 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20=E4=BB=85=E5=AF=B9=202026=20?= =?UTF-8?q?=E4=B8=BB=E9=A2=98=E5=BA=94=E7=94=A8=E8=AF=A6=E6=83=85=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/patch_admin_timeline_ui.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/patch_admin_timeline_ui.py b/scripts/patch_admin_timeline_ui.py index c7f985e..7e65a91 100644 --- a/scripts/patch_admin_timeline_ui.py +++ b/scripts/patch_admin_timeline_ui.py @@ -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')