Skip to main content

Module shell

Module shell 

Source
Expand description

Unified strict-CSP document shell (PageShell) shared across single-repo, multi-repo root dashboard, minimal auth pages, and v2.0 Kinetic extensions.

Automatically emits <meta name="arks-mount"> and <meta name="arks-csrf">, renders authenticated session controls natively (eliminating post-render HTML string replacement), and switches cleanly to fragment responses on HTMX partial requests.

Structs§

NavTab
Additional navigation tab (used by v2.0 extensions such as Kinetic).
Page
Typed page descriptor rendered into a full document or HTMX partial.
RepoHeaderView
View-model projection for the repository chrome header (decoupled from legacy web_ui).

Enums§

RepoTab
Standard forge navigation tab identifiers (plus Custom for v2.0 tabs like Graph/Stacks).
ShellKind
Top-level layout chrome variant rendered by respond_page.

Constants§

STRICT_WEB_UI_CSP
Strict CSP header enforced on every Web UI HTML response (zero inline style/script).

Functions§

respond_html
Build an HTML HttpResponse with mandatory strict CSP and security headers.
respond_page
Render Page as either an HTMX main-content partial or a full strict-CSP HTML5 document.
respond_partial
Build an HTML partial fragment HttpResponse for HTMX swap targets.