Split style.css and app.js into modular CSS/JS files under css/ and js/ directories
Agent-Logs-Url: https://github.com/naturallaw777/staging_alpha/sessions/50712b31-5843-45c4-a8f1-3952656b636c Co-authored-by: naturallaw777 <99053422+naturallaw777@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
2493777a42
commit
815b195600
@@ -378,8 +378,6 @@ def _file_hash(filename: str) -> str:
|
||||
except FileNotFoundError:
|
||||
return "0"
|
||||
|
||||
_APP_JS_HASH = _file_hash("app.js")
|
||||
_STYLE_CSS_HASH = _file_hash("style.css")
|
||||
_ONBOARDING_JS_HASH = _file_hash("onboarding.js")
|
||||
|
||||
# ── Update check helpers ──────────────────────────────────────────
|
||||
@@ -1137,8 +1135,6 @@ def _verify_support_removed() -> bool:
|
||||
async def index(request: Request):
|
||||
return templates.TemplateResponse("index.html", {
|
||||
"request": request,
|
||||
"app_js_hash": _APP_JS_HASH,
|
||||
"style_css_hash": _STYLE_CSS_HASH,
|
||||
})
|
||||
|
||||
|
||||
@@ -1147,7 +1143,6 @@ async def onboarding(request: Request):
|
||||
return templates.TemplateResponse("onboarding.html", {
|
||||
"request": request,
|
||||
"onboarding_js_hash": _ONBOARDING_JS_HASH,
|
||||
"style_css_hash": _STYLE_CSS_HASH,
|
||||
})
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user