Delete events sx_components.py — move all rendering to sxc/pages
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 49s
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 49s
Phase 7 of the zero-Python-rendering plan. All 100 rendering functions move from events/sx/sx_components.py into events/sxc/pages/__init__.py. Route handlers (15 files) import from sxc.pages instead. load_service_components call moves into _load_events_page_files. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -42,7 +42,7 @@ def register():
|
||||
return await make_response(render_comp("error-inline", message=str(e)), 422)
|
||||
|
||||
from shared.sx.page import get_template_context
|
||||
from sx.sx_components import render_markets_list_panel
|
||||
from sxc.pages import render_markets_list_panel
|
||||
ctx = await get_template_context()
|
||||
return sx_response(await render_markets_list_panel(ctx))
|
||||
|
||||
@@ -55,7 +55,7 @@ def register():
|
||||
return await make_response("Market not found", 404)
|
||||
|
||||
from shared.sx.page import get_template_context
|
||||
from sx.sx_components import render_markets_list_panel
|
||||
from sxc.pages import render_markets_list_panel
|
||||
ctx = await get_template_context()
|
||||
return sx_response(await render_markets_list_panel(ctx))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user