Test/custom admin ui #4
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user