Skip to main content

euv_example/state/
const.rs

1/// Route path for the overview dashboard page.
2pub const ROUTE_OVERVIEW: &str = "/";
3/// Route path for the fine-grained reactivity demo page.
4pub const ROUTE_REACTIVE: &str = "/reactive";
5/// Route path for the multi-mode rendering and vector canvas page.
6pub const ROUTE_RENDER: &str = "/render";
7/// Route path for the native window and platform inspector page.
8pub const ROUTE_WINDOW: &str = "/window";
9/// Route path for the interactive forms showcase page.
10pub const ROUTE_FORMS: &str = "/forms";
11/// Route path for the 17-scheme live theme gallery page.
12pub const ROUTE_THEMES: &str = "/themes";
13/// Route path for the virtualized list and table showcase page.
14pub const ROUTE_DATA: &str = "/data";
15/// Route path for the embedded game engine & HUD showcase page.
16pub const ROUTE_GAME: &str = "/game";
17/// Route path for the AAA 3D open-world PBR & ray-tracing engine showcase page.
18pub const ROUTE_GAME_3D: &str = "/game3d";
19/// Route path for the full cross-platform media studio (Image, SVG, GIF, LIVE, Video, Audio, PDF, HTML).
20pub const ROUTE_MEDIA: &str = "/media";
21/// Route path for the complete shadcn/ui component gallery and edge-case regression lab.
22pub const ROUTE_LAB: &str = "/lab";
23/// Route path for the modal, toast, and alert overlay showcase page.
24pub const ROUTE_OVERLAYS: &str = "/overlays";
25/// Route path for the component-level and page-level dynamic OTA updates showcase page.
26pub const ROUTE_DYNAMIC: &str = "/dynamic";
27/// Route path for the embedded page-level dynamic update preview slot.
28pub const ROUTE_DYNAMIC_PANEL: &str = "/dynamic/panel";
29/// Runtime-injected dynamic route path created on demand without recompiling.
30pub const ROUTE_PROMO_LIVE: &str = "/promo-live";
31/// Component slot identifier for the live-updatable promotional banner.
32pub const SLOT_PROMO_BANNER: &str = "promo_banner";
33/// Component slot identifier for the independent live-updatable metrics widget.
34pub const SLOT_METRICS_WIDGET: &str = "metrics_widget";
35/// Scoped partial slot identifier for the live downloaded `.wasm` native widget.
36pub const SLOT_WASM_WIDGET: &str = "wasm_live_widget";
37/// Display title for the downloaded partial WASM v1 widget fixture.
38pub const TITLE_WASM_PARTIAL_V1: &str = "Downloaded Partial WASM Widget v1";
39/// Shared verification key used to sign showcase dynamic `.wasm` bundles.
40pub const WASM_SHOWCASE_SIGNING_KEY: &str = "euv-prod-signing-key-2026";
41/// CDN URL for healthy partial `.wasm` module v1.
42pub const URL_WASM_PARTIAL_V1: &str = "euv-cdn://bundles/partial-widget-v1.wasm";
43/// CDN URL for healthy partial `.wasm` module v2.
44pub const URL_WASM_PARTIAL_V2: &str = "euv-cdn://bundles/partial-widget-v2.wasm";
45/// CDN URL for healthy global full-app `.wasm` bundle v1.
46pub const URL_WASM_GLOBAL_V1: &str = "euv-cdn://bundles/global-app-v1.wasm";
47/// CDN URL for healthy global full-app `.wasm` bundle v2.
48pub const URL_WASM_GLOBAL_V2: &str = "euv-cdn://bundles/global-app-v2.wasm";
49/// CDN URL simulating first-attempt timeout followed by automatic retry success.
50pub const URL_WASM_TIMEOUT_RETRY: &str = "euv-cdn://faults/timeout-retry.wasm";
51/// CDN URL simulating persistent HTTP 500 server error.
52pub const URL_WASM_HTTP_500: &str = "euv-cdn://faults/http-500.wasm";
53/// CDN URL serving corrupted non-WASM magic header bytes.
54pub const URL_WASM_CORRUPTED: &str = "euv-cdn://faults/corrupted.wasm";
55/// CDN URL serving checksum-tampered `.wasm` bytes.
56pub const URL_WASM_TAMPERED: &str = "euv-cdn://faults/tampered.wasm";
57/// CDN URL serving a `.wasm` with mismatched ABI version.
58pub const URL_WASM_BAD_ABI: &str = "euv-cdn://faults/bad-abi.wasm";
59/// CDN URL serving a `.wasm` missing `euv_render` export.
60pub const URL_WASM_MISSING_EXPORT: &str = "euv-cdn://faults/missing-export.wasm";
61/// CDN URL serving an infinite-loop `.wasm` terminated by fuel metering.
62pub const URL_WASM_FUEL_BOMB: &str = "euv-cdn://faults/fuel-bomb.wasm";
63/// CDN URL serving a trapping `unreachable` `.wasm`.
64pub const URL_WASM_TRAP: &str = "euv-cdn://faults/trap.wasm";
65/// CDN URL serving an oversized binary exceeding sandbox limit.
66pub const URL_WASM_OVERSIZED: &str = "euv-cdn://faults/oversized.wasm";
67/// Application brand title displayed in the shell chrome.
68pub const SHOWCASE_BRAND: &str = "Euv Studio";
69
70pub(crate) const SHOWCASE_BUNDLE_ID: &str = "vip.ltpp.euv.showcase";
71pub(crate) const STATUS_RESTORED_NATIVE_SHELL: &str = "Restored built-in native dashboard shell";
72pub(crate) const NAV_SEC_WORKSPACE: &str = "WORKSPACE";
73pub(crate) const NAV_SEC_DESIGN: &str = "DESIGN SYSTEM";
74pub(crate) const NAV_SEC_ENGINE: &str = "ENGINE & MEDIA";
75pub(crate) const NAV_SEC_RUNTIME: &str = "RUNTIME & OTA";
76pub(crate) const NAV_LABEL_OVERVIEW: &str = "Overview";
77pub(crate) const NAV_LABEL_REACTIVE: &str = "Reactivity";
78pub(crate) const NAV_LABEL_RENDER: &str = "Rendering";
79pub(crate) const NAV_LABEL_WINDOW: &str = "Window & OS";
80pub(crate) const NAV_LABEL_FORMS: &str = "Forms";
81pub(crate) const NAV_LABEL_THEMES: &str = "Themes (17)";
82pub(crate) const NAV_LABEL_DATA: &str = "Scroll List";
83pub(crate) const NAV_LABEL_GAME: &str = "Game Engine";
84pub(crate) const NAV_LABEL_GAME_3D: &str = "3D Engine (RT)";
85pub(crate) const NAV_LABEL_MEDIA: &str = "Media Studio";
86pub(crate) const NAV_LABEL_LAB: &str = "UI & Edge Lab";
87pub(crate) const NAV_LABEL_OVERLAYS: &str = "Overlays";
88pub(crate) const NAV_LABEL_DYNAMIC: &str = "Dynamic WASM";
89pub(crate) const DEFAULT_USERNAME: &str = "euv-developer";
90pub(crate) const DEFAULT_TAG_RUST: &str = "Rust";
91pub(crate) const DEFAULT_TAG_NATIVE: &str = "Native";
92pub(crate) const DEFAULT_TAG_WASM: &str = "WASM";
93pub(crate) const GAME_HUD_CONTROLS_HINT: &str =
94    "WASD/Arrows Move | Space/Click Fire | E Dash | R Wave";
95pub(crate) const SAMPLE_OBJ_MONUMENT: &str = "o CyberObelisk\nv -1.4 0.0 -1.4\nv 1.4 0.0 -1.4\nv 1.4 0.0 1.4\nv -1.4 0.0 1.4\nv 0.0 7.5 0.0\nf 1 2 5\nf 2 3 5\nf 3 4 5\nf 4 1 5\nf 1 4 3 2\n";
96pub(crate) const SAMPLE_GLTF_TOWER: &str = r#"{"asset":{"version":"2.0","generator":"euv-gltf-tower"},"materials":[{"pbrMetallicRoughness":{"baseColorFactor":[0.12,0.86,0.98,1.0],"metallicFactor":0.85,"roughnessFactor":0.12}}],"meshes":[{"name":"PrismBeacon","primitives":[{"extras":{"positions":[-1.2,0.0,-1.2,1.2,0.0,-1.2,1.2,0.0,1.2,-1.2,0.0,1.2,-0.8,5.8,-0.8,0.8,5.8,-0.8,0.8,5.8,0.8,-0.8,5.8,0.8],"indices":[0,1,5,0,5,4,1,2,6,1,6,5,2,3,7,2,7,6,3,0,4,3,4,7,4,5,6,4,6,7]}}]}]}"#;