Files
live-call-asr-monitor/frontend-redesign/patch_header_english.py
2026-07-16 11:24:02 +08:00

12 lines
608 B
Python

import re
with open('src/components/Header.tsx', 'r') as f:
content = f.read()
content = re.sub(r'\s*<span className="font-mono text-\[9px\] uppercase tracking-widest text-slate-400">\s*Event Monitoring Center\s*</span>', '', content)
content = re.sub(r'\s*<span className="hidden font-mono text-\[9px\] font-normal opacity-50 ml-1 sm:inline">Rule Management</span>', '', content)
content = re.sub(r'\s*<span className="hidden font-mono text-\[9px\] font-normal opacity-50 ml-1 sm:inline">Sandbox Simulation</span>', '', content)
with open('src/components/Header.tsx', 'w') as f:
f.write(content)