Slim events + sx sxc/pages/__init__.py → registration-only

Events: 3861 → 21 lines, split into 8 sub-modules (renders, helpers,
layouts, calendar, entries, slots, tickets, utils). Updated 16 bp routes.

SX Docs: 3224 → 27 lines, split into 5 sub-modules (renders, utils,
essays, helpers, layouts). Updated 37 import sites in bp/pages/routes.py.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-04 17:07:08 +00:00
parent 9cbfb09b41
commit 5344b382a5
31 changed files with 7255 additions and 7132 deletions

View File

@@ -258,7 +258,7 @@ def register():
"styles": styles,
}
from sxc.pages import render_day_main_panel
from sxc.pages.renders import render_day_main_panel
html = await render_day_main_panel(ctx)
mini_html = await fetch_fragment("cart", "cart-mini", params=frag_params, required=False)
return sx_response(html + (mini_html or ""))
@@ -279,12 +279,12 @@ def register():
result = await g.s.execute(stmt)
day_slots = list(result.scalars())
from sxc.pages import render_entry_add_form
from sxc.pages.renders import render_entry_add_form
return sx_response(await render_entry_add_form(g.calendar, day, month, year, day_slots))
@bp.get("/add-button/")
async def add_button(day: int, month: int, year: int, **kwargs):
from sxc.pages import render_entry_add_button
from sxc.pages.renders import render_entry_add_button
return sx_response(await render_entry_add_button(g.calendar, day, month, year))