Rebrand sexp → sx across web platform (173 files)
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:
@@ -6,7 +6,7 @@ from quart import (
|
||||
|
||||
|
||||
from shared.browser.app.authz import require_admin
|
||||
from shared.sexp.helpers import sexp_response
|
||||
from shared.sx.helpers import sx_response
|
||||
|
||||
|
||||
def register():
|
||||
@@ -18,14 +18,14 @@ def register():
|
||||
async def admin(year: int, month: int, day: int, **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_day_admin_page, render_day_admin_oob
|
||||
from shared.sx.page import get_template_context
|
||||
from sx.sx_components import render_day_admin_page, render_day_admin_oob
|
||||
|
||||
tctx = await get_template_context()
|
||||
if not is_htmx_request():
|
||||
html = await render_day_admin_page(tctx)
|
||||
return await make_response(html)
|
||||
else:
|
||||
sexp_src = await render_day_admin_oob(tctx)
|
||||
return sexp_response(sexp_src)
|
||||
sx_src = await render_day_admin_oob(tctx)
|
||||
return sx_response(sx_src)
|
||||
return bp
|
||||
|
||||
Reference in New Issue
Block a user