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
|
||||
|
||||
@@ -24,7 +24,7 @@ from .services.calendar_view import (
|
||||
update_calendar_description,
|
||||
)
|
||||
from shared.browser.app.utils.htmx import is_htmx_request
|
||||
from shared.sexp.helpers import sexp_response
|
||||
from shared.sx.helpers import sx_response
|
||||
|
||||
from ..slots.routes import register as register_slots
|
||||
|
||||
@@ -157,8 +157,8 @@ def register():
|
||||
user_entries = visible.user_entries
|
||||
confirmed_entries = visible.confirmed_entries
|
||||
|
||||
from shared.sexp.page import get_template_context
|
||||
from sexp.sexp_components import render_calendar_page, render_calendar_oob
|
||||
from shared.sx.page import get_template_context
|
||||
from sx.sx_components import render_calendar_page, render_calendar_oob
|
||||
|
||||
tctx = await get_template_context()
|
||||
tctx.update(dict(
|
||||
@@ -175,8 +175,8 @@ def register():
|
||||
html = await render_calendar_page(tctx)
|
||||
return await make_response(html)
|
||||
else:
|
||||
sexp_src = await render_calendar_oob(tctx)
|
||||
return sexp_response(sexp_src)
|
||||
sx_src = await render_calendar_oob(tctx)
|
||||
return sx_response(sx_src)
|
||||
|
||||
|
||||
@bp.put("/")
|
||||
@@ -198,11 +198,11 @@ def register():
|
||||
description = (form.get("description") or "").strip()
|
||||
|
||||
await update_calendar_description(g.calendar, description)
|
||||
from shared.sexp.page import get_template_context
|
||||
from sexp.sexp_components import _calendar_admin_main_panel_html
|
||||
from shared.sx.page import get_template_context
|
||||
from sx.sx_components import _calendar_admin_main_panel_html
|
||||
ctx = await get_template_context()
|
||||
html = _calendar_admin_main_panel_html(ctx)
|
||||
return sexp_response(html)
|
||||
return sx_response(html)
|
||||
|
||||
|
||||
@bp.delete("/")
|
||||
@@ -217,14 +217,14 @@ def register():
|
||||
|
||||
# If we have post context (blog-embedded mode), update nav
|
||||
post_data = getattr(g, "post_data", None)
|
||||
from shared.sexp.page import get_template_context
|
||||
from sexp.sexp_components import render_calendars_list_panel
|
||||
from shared.sx.page import get_template_context
|
||||
from sx.sx_components import render_calendars_list_panel
|
||||
ctx = await get_template_context()
|
||||
html = render_calendars_list_panel(ctx)
|
||||
|
||||
if post_data:
|
||||
from shared.services.entry_associations import get_associated_entries
|
||||
from sexp.sexp_components import render_post_nav_entries_oob
|
||||
from sx.sx_components import render_post_nav_entries_oob
|
||||
|
||||
post_id = (post_data.get("post") or {}).get("id")
|
||||
cals = (
|
||||
@@ -239,7 +239,7 @@ def register():
|
||||
nav_oob = render_post_nav_entries_oob(associated_entries, cals, post_data["post"])
|
||||
html = html + nav_oob
|
||||
|
||||
return sexp_response(html)
|
||||
return sx_response(html)
|
||||
|
||||
|
||||
return bp
|
||||
|
||||
Reference in New Issue
Block a user