fix(ui): 화면 매니페스트를 index.html에 인라인 (프리뷰가 외부 스크립트 미로드) + JS 오류 상태바 표시
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
b484d79845
commit
79555cb407
2 changed files with 4317 additions and 6 deletions
4312
app/ui/index.html
4312
app/ui/index.html
File diff suppressed because it is too large
Load diff
|
|
@ -27,4 +27,11 @@ for path in sorted(glob.glob('app/src/*/svc/*.pgc')):
|
|||
with open('app/ui/screens.js','w',encoding='utf-8') as f:
|
||||
f.write("/* 자동생성: app/src/*/svc/*.pgc 에서 추출한 화면 매니페스트 (재생성: tools/gen_screens.py) */\n")
|
||||
f.write("const SVC_SCREENS = "); json.dump(screens,f,ensure_ascii=False,indent=1); f.write(";\n")
|
||||
print(f"screens: {len(screens)}")
|
||||
# index.html 에 인라인 반영 (외부 스크립트는 프록시 프리뷰에서 로드 실패 이력)
|
||||
idx='app/ui/index.html'
|
||||
h=open(idx,encoding='utf-8').read()
|
||||
import re as _re
|
||||
new='<script>\n/* === 화면 매니페스트 (인라인; 재생성: tools/gen_screens.py) === */\n'+open('app/ui/screens.js',encoding='utf-8').read()+'</script>'
|
||||
h=_re.sub(r'<script>\n/\* === 화면 매니페스트.*?</script>', lambda m: new, h, count=1, flags=_re.S)
|
||||
open(idx,'w',encoding='utf-8').write(h)
|
||||
print(f"screens: {len(screens)} (index.html 인라인 갱신)")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue