Rebrand sexp → sx across web platform (173 files)
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 11m37s
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 11m37s
Rename all sexp directories, files, identifiers, and references to sx. artdag/ excluded (separate media processing DSL). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -7,7 +7,7 @@ from quart import (
|
||||
|
||||
from shared.browser.app.authz import require_admin
|
||||
from shared.browser.app.redis_cacher import clear_cache
|
||||
from shared.sexp.helpers import sexp_response
|
||||
from shared.sx.helpers import sx_response
|
||||
|
||||
|
||||
|
||||
@@ -20,24 +20,24 @@ def register():
|
||||
async def admin(calendar_slug: str, **kwargs):
|
||||
from shared.browser.app.utils.htmx import is_htmx_request
|
||||
|
||||
from shared.sexp.page import get_template_context
|
||||
from sexp.sexp_components import render_calendar_admin_page, render_calendar_admin_oob
|
||||
from shared.sx.page import get_template_context
|
||||
from sx.sx_components import render_calendar_admin_page, render_calendar_admin_oob
|
||||
|
||||
tctx = await get_template_context()
|
||||
if not is_htmx_request():
|
||||
html = await render_calendar_admin_page(tctx)
|
||||
return await make_response(html)
|
||||
else:
|
||||
sexp_src = await render_calendar_admin_oob(tctx)
|
||||
return sexp_response(sexp_src)
|
||||
sx_src = await render_calendar_admin_oob(tctx)
|
||||
return sx_response(sx_src)
|
||||
|
||||
|
||||
@bp.get("/description/")
|
||||
@require_admin
|
||||
async def calendar_description_edit(calendar_slug: str, **kwargs):
|
||||
from sexp.sexp_components import render_calendar_description_edit
|
||||
from sx.sx_components import render_calendar_description_edit
|
||||
html = render_calendar_description_edit(g.calendar)
|
||||
return sexp_response(html)
|
||||
return sx_response(html)
|
||||
|
||||
|
||||
@bp.post("/description/")
|
||||
@@ -51,16 +51,16 @@ def register():
|
||||
g.calendar.description = description
|
||||
await g.s.flush()
|
||||
|
||||
from sexp.sexp_components import render_calendar_description
|
||||
from sx.sx_components import render_calendar_description
|
||||
html = render_calendar_description(g.calendar, oob=True)
|
||||
return sexp_response(html)
|
||||
return sx_response(html)
|
||||
|
||||
|
||||
@bp.get("/description/view/")
|
||||
@require_admin
|
||||
async def calendar_description_view(calendar_slug: str, **kwargs):
|
||||
from sexp.sexp_components import render_calendar_description
|
||||
from sx.sx_components import render_calendar_description
|
||||
html = render_calendar_description(g.calendar)
|
||||
return sexp_response(html)
|
||||
return sx_response(html)
|
||||
|
||||
return bp
|
||||
|
||||
Reference in New Issue
Block a user