iya-sts
    Preparing search index...

    Draws Geolocation from the answer of GET /admin-api/geolocation: where people signed in from, as a map drawn from its data and tables by continent, country and city.

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

    Index
    DEFAULT_WINDOW: "live" = DEFAULT_WINDOW

    The window a page with none named shows.

    WINDOW_LABELS: Record<string, string> = WINDOW_LABELS

    The windows' labels, by the name the query carries.

    • Parameters

      • n: number
      • suppressed: boolean
      • minimum: number
      • Optionalt: any

      Returns string

    • Answers the page's own root-relative address for a window and a place, the default window left out.

      Parameters

      • window: string

        the window's name

      • Optionalcontinent: string

        a continent's slug

      • Optionalcountry: string

        a country's ISO code

      Returns string

      the address

    • Draws the page's HTML from the view.

      Parameters

      • v: any

        geoView()'s answer

      • Optionalt: any

        optional; the page's translator (#539)

      Returns string

      the page body

    • Draws the map from the view's drawing.map over the fetched outlines.

      Parameters

      • v: any

        the page's view, with countryOutlines

      Returns string

      the map's SVG, or a sentence saying why there is none

    • Draws the page's body from its view.

      Parameters

      • view: any

        the answer of the page's management API operation

      • Optionalctx: any

        optional; the render context, whose t is the page's translator (#539). geolocation_admin.ts passes none and gets the default, English in node.

      Returns string

      the body as HTML

    • Says a time in UTC to the minute.

      Parameters

      • ms: number

        the time in milliseconds

      Returns string

      the time as text, or '' for none

    • Parameters

      • id: string
      • head: string
      • rows: any[]
      • hrefOf: (row: any) => string
      • minimum: number
      • extra: string
      • t: any

      Returns string

    • Says a window's label, or the same in lower case for a sentence.

      Parameters

      • w: string

        the window's name

      • t: any

        the page's translator

      • lower: boolean

        true for the form used inside a sentence

      Returns string

      the label as text