iya-sts
    Preparing search index...

    Draws /admin/cluster's status block from the page view's status.

    A static utility class; it holds no state and takes no dependencies.

    Index
    • agoText(), escaped for a cell.

      Parameters

      • now: number

        the reference, milliseconds

      • at: number

        the instant, milliseconds

      • t: any

        the page's translator

      Returns string

      the text as HTML

    • Words an instant as "... ago" or "in ..." against a reference instant.

      Parameters

      • now: number

        the reference, milliseconds (the database's clock)

      • at: number

        the instant, milliseconds; nothing for a dash

      • t: any

        the page's translator

      Returns string

      the text, unescaped

    • Draws what active-active depends on: the capability table.

      Parameters

      • caps: any

        status.self.capabilities

      • t: any

        the page's translator

      Returns string

      the section as HTML

    • Draws the Members and Leases sections.

      Parameters

      • info: any

        the view's status

      • t: any

        the page's translator

      Returns string

      the sections as HTML

    • Draws the other cells' section.

      Parameters

      • held: any

        the view's status.otherCells, or null

      • t: any

        the page's translator

      Returns string

      the section as HTML, or '' in single-cell mode

    • Draws the whole status block.

      Parameters

      • info: any

        the view's status

      • t: any

        the page's translator

      Returns string

      the block as HTML

    • Draws where each shared secret's value came from, never the value.

      Parameters

      • secrets: any

        status.secrets, or nothing

      • t: any

        the page's translator

      Returns string

      the section as HTML