🐛 仅对 2026 主题应用详情修复
This commit is contained in:
@@ -113,14 +113,16 @@ def write_detail_collapse_script(theme_dir: Path) -> bool:
|
|||||||
|
|
||||||
def main() -> None:
|
def main() -> None:
|
||||||
changed = []
|
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'):
|
for path in assets.glob('FileManageView-*.js'):
|
||||||
if patch_file_manage(path):
|
if patch_file_manage(path):
|
||||||
changed.append(str(path.relative_to(ASSETS_ROOT)))
|
changed.append(str(path.relative_to(ASSETS_ROOT)))
|
||||||
for path in assets.glob('clipboard-*.js'):
|
for path in assets.glob('clipboard-*.js'):
|
||||||
if patch_clipboard(path):
|
if patch_clipboard(path):
|
||||||
changed.append(str(path.relative_to(ASSETS_ROOT)))
|
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)))
|
changed.append(str((assets / 'fcb-detail-collapse.js').relative_to(ASSETS_ROOT)))
|
||||||
if not changed:
|
if not changed:
|
||||||
raise SystemExit('admin timeline/clipboard patch markers not found or already patched')
|
raise SystemExit('admin timeline/clipboard patch markers not found or already patched')
|
||||||
|
|||||||
Reference in New Issue
Block a user