Test/custom admin ui #4

Merged
orion merged 4 commits from test/custom-admin-ui into master 2026-07-09 17:11:50 +08:00
Showing only changes of commit b8c9796fd6 - Show all commits
+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')