iya-sts
    Preparing search index...

    The portal's rendering kit. A static utility class; it holds no state.

    Index
    BASE: "/portal" = BASE

    The portal's base path.

    BRAND_CSS: string = ...

    A REALM'S SIGN-IN APPEARANCE IN THE PORTAL (#717, rcbj's D4): the brand header the runtime draws above the page (WebSurface.brandHeader() from the shell's <html> facts, web_portal_runtime.ts's put()), and what the realm's colours do to the tints themed() cannot name. Every rule but the header's is under html[data-sts-layout], which a shell carries only for a realm whose appearance differs from the service's, so nowhere else does any of it apply; the :where() keeps each at the specificity of the rule it overrides, so a more specific rule of the portal's (.attr code) still wins.

    • THE LAYOUTS: centered is the header above the page, in the middle. banner AND split are a band in the accent colour across the top: the portal already has a column of its own beside its cards, and a panel beside that would leave a phone's width for three columns, so the split panel is drawn as the band here (portal/CLAUDE.md).
    • THE TINTS — a hover, a tag, a just-generated row, a code's ground — were pale blues and greys written for a white card. For a realm they are mixed from its accent or text and its card (color-mix()), so a dark card keeps them dark; a browser without color-mix() keeps the literal, which is the old look.
    ICONS: { devices: string; passkey: string; securityKey: string } = PORTAL_ICONS

    The icons a page draws, by name.

    NAV: {
        items: { heading: string; label: string; path: string }[];
        key: string;
        title: string;
        what: string;
    }[] = NAV

    The navigation column: the sections, each with its pages.

    STYLE: string = ...

    The stylesheet, one string, served as /portal/portal.css: the rules as written, themed, and the realm's brand rules last (#717).

    • Escapes text for HTML.

      Parameters

      • value: unknown

        anything

      Returns string

      the escaped text

    • The catalog slug of a portal page: its path after /portal, with / as ., and overview for /portal itself.

      Parameters

      • path: string

        the page's path

      Returns string

      the slug

    • The Previous / Page n of m / Next control under a paged list.

      Parameters

      • path: string

        the page's path

      • query: any

        the page's own query parameters

      • paging: any

        the list's paging from its answer

      • param: string

        the query parameter the list moves on

      • t: any

        the translator

      • Optionalalways: boolean

        true draws it for one page too

      Returns string

      the HTML, '' for one page unless always

    • A query string from an object, empty values left out.

      Parameters

      • params: any

        the parameters

      Returns string

      ?a=1&b=2, or ''

    • The portal's stylesheet with every colour a realm may set read through the custom property /web/theme.css sets (#717, common/branding.ts), each falling back to the literal it replaces — so with no theme linked (every realm that set nothing) the portal is drawn exactly as before. web_card_css.ts's themed() is the card's; this is the portal's, because its palette is its own (the portal's blue, #2c5cc5, is its accent's fallback). The semantic colours — an error's red, a success's green — and the mid greys stay literal: they mean the same on any card. The order matters: the accent first, then the text on it.

      Parameters

      • css: string

        the stylesheet as written

      Returns string

      the same rules, each themable colour a custom property