Skip to main content

Module assets

Module assets 

Source
Expand description

The dashboard, its locales and map, the tracker, and the element picker: the TypeScript SDK’s built files, copied into assets/ by scripts/rust-assets.mts, so this crate serves the very same bytes.

Structs§

Build
The hashes and icon the build recorded.

Constants§

DASHBOARD_CSS
The dashboard’s style sheet.
DASHBOARD_JS
The dashboard’s script.
PICKER
The element picker, with its target, hosts, return address, and nonce still placeholders.
PICK_RELAY
The picker’s relay page script, which hands a pick to the dashboard tab that asked for it.
TRACKER
The tracker, with its click rules still a placeholder.
WORLD_JSON
The world map the dashboard draws countries on.

Statics§

BUILD_INFO
What assets/build.json says.
LOCALE_TEXTS
Every language’s messages as the JSON text the dashboard reads, English first, in the build’s order.

Functions§

locales
The languages other than English the dashboard loads on demand (the SDK’s LOCALES), and their text.