9 lines
969 B
Python
9 lines
969 B
Python
from pathlib import Path
|
|
p=Path('C:/Users/macbook/.config/investmoz/navegacao-consolidacao-QA-20261016/source')
|
|
def edit(f,a,b):
|
|
q=p/f;s=q.read_text('utf-8');assert a in s,(f,a[:80]);q.write_text(s.replace(a,b,1),'utf-8')
|
|
edit('resources/js/layouts/portal-navigation.tsx',"const names: Record<string, string> = {", "const names: Record<string, string> = {\n '/porque-investir':'Porquê investir em Moçambique',\n '/investimentos/iniciar':'Iniciar ou continuar investimento',")
|
|
edit('resources/js/components/dossier-navigation-context.tsx'," if (/^\\/(management", " if (!actor) return null;\n if (/^\\/(management")
|
|
edit('resources/js/components/dossier-navigation-context.tsx'," ref?.territory?.title ||\n ref?.park?.title ||\n saved?.fields.location ||", " saved?.fields.location ||\n ref?.territory?.title ||\n ref?.park?.title ||")
|
|
print('Anonymous pages simplified; location summary shows its hierarchy')
|