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 Eva-themed CodeBlock and complete GitHub-Flavored Markdown showcase page.
4pub const ROUTE_MARKDOWN: &str = "/markdown";
5/// Route path for the fine-grained reactivity demo page.
6pub const ROUTE_REACTIVE: &str = "/reactive";
7/// Route path for the multi-mode rendering and vector canvas page.
8pub const ROUTE_RENDER: &str = "/render";
9/// Route path for the native window and platform inspector page.
10pub const ROUTE_WINDOW: &str = "/window";
11/// Route path for the interactive forms showcase page.
12pub const ROUTE_FORMS: &str = "/forms";
13/// Route path for the 17-scheme live theme gallery page.
14pub const ROUTE_THEMES: &str = "/themes";
15/// Route path for the virtualized list and table showcase page.
16pub const ROUTE_DATA: &str = "/data";
17/// Route path for the embedded game engine & HUD showcase page.
18pub const ROUTE_GAME: &str = "/game";
19/// Route path for the AAA 3D open-world PBR & ray-tracing engine showcase page.
20pub const ROUTE_GAME_3D: &str = "/game3d";
21/// Route path for the real-time gyroscope liquid water physics studio page.
22pub const ROUTE_WATER: &str = "/water";
23/// Route path for the full cross-platform media studio (Image, SVG, GIF, LIVE, Video, Audio, PDF, HTML).
24pub const ROUTE_MEDIA: &str = "/media";
25/// Route path for the Architecture & Cases composition recipes page.
26pub const ROUTE_LAB: &str = "/lab";
27/// Route path for the dedicated Buttons & Navigation controls page.
28pub const ROUTE_CONTROLS: &str = "/controls";
29/// Route path for the dedicated Cards, Badges & Content Display page.
30pub const ROUTE_DISPLAY: &str = "/display";
31/// Route path for the dedicated 11-family Mermaid diagram studio page.
32pub const ROUTE_MERMAID: &str = "/mermaid";
33/// Route path for the dedicated System Events, Lifecycle & Input diagnostics page.
34pub const ROUTE_SYSTEM: &str = "/system";
35/// Route path for the dedicated AI Bridge & E2E automation inspection page.
36pub const ROUTE_AUTOMATION: &str = "/automation";
37/// Route path for the modal, toast, and alert overlay showcase page.
38pub const ROUTE_OVERLAYS: &str = "/overlays";
39/// Route path for the component-level and page-level dynamic OTA updates showcase page.
40pub const ROUTE_DYNAMIC: &str = "/dynamic";
41/// Route path for the embedded page-level dynamic update preview slot.
42pub const ROUTE_DYNAMIC_PANEL: &str = "/dynamic/panel";
43/// Runtime-injected dynamic route path created on demand without recompiling.
44pub const ROUTE_PROMO_LIVE: &str = "/promo-live";
45/// Component slot identifier for the live-updatable promotional banner.
46pub const SLOT_PROMO_BANNER: &str = "promo_banner";
47/// Component slot identifier for the independent live-updatable metrics widget.
48pub const SLOT_METRICS_WIDGET: &str = "metrics_widget";
49/// Scoped partial slot identifier for the live downloaded `.wasm` native widget.
50pub const SLOT_WASM_WIDGET: &str = "wasm_live_widget";
51/// Display title for the downloaded partial WASM v1 widget fixture.
52pub const TITLE_WASM_PARTIAL_V1: &str = "Downloaded Partial WASM Widget v1";
53/// Shared verification key used to sign showcase dynamic `.wasm` bundles.
54pub const WASM_SHOWCASE_SIGNING_KEY: &str = "euv-prod-signing-key-2026";
55/// CDN URL for healthy partial `.wasm` module v1.
56pub const URL_WASM_PARTIAL_V1: &str = "euv-cdn://bundles/partial-widget-v1.wasm";
57/// CDN URL for healthy partial `.wasm` module v2.
58pub const URL_WASM_PARTIAL_V2: &str = "euv-cdn://bundles/partial-widget-v2.wasm";
59/// CDN URL for healthy global full-app `.wasm` bundle v1.
60pub const URL_WASM_GLOBAL_V1: &str = "euv-cdn://bundles/global-app-v1.wasm";
61/// CDN URL for healthy global full-app `.wasm` bundle v2.
62pub const URL_WASM_GLOBAL_V2: &str = "euv-cdn://bundles/global-app-v2.wasm";
63/// CDN URL simulating first-attempt timeout followed by automatic retry success.
64pub const URL_WASM_TIMEOUT_RETRY: &str = "euv-cdn://faults/timeout-retry.wasm";
65/// CDN URL simulating persistent HTTP 500 server error.
66pub const URL_WASM_HTTP_500: &str = "euv-cdn://faults/http-500.wasm";
67/// CDN URL serving corrupted non-WASM magic header bytes.
68pub const URL_WASM_CORRUPTED: &str = "euv-cdn://faults/corrupted.wasm";
69/// CDN URL serving checksum-tampered `.wasm` bytes.
70pub const URL_WASM_TAMPERED: &str = "euv-cdn://faults/tampered.wasm";
71/// CDN URL serving a `.wasm` with mismatched ABI version.
72pub const URL_WASM_BAD_ABI: &str = "euv-cdn://faults/bad-abi.wasm";
73/// CDN URL serving a `.wasm` missing `euv_render` export.
74pub const URL_WASM_MISSING_EXPORT: &str = "euv-cdn://faults/missing-export.wasm";
75/// CDN URL serving an infinite-loop `.wasm` terminated by fuel metering.
76pub const URL_WASM_FUEL_BOMB: &str = "euv-cdn://faults/fuel-bomb.wasm";
77/// CDN URL serving a trapping `unreachable` `.wasm`.
78pub const URL_WASM_TRAP: &str = "euv-cdn://faults/trap.wasm";
79/// CDN URL serving an oversized binary exceeding sandbox limit.
80pub const URL_WASM_OVERSIZED: &str = "euv-cdn://faults/oversized.wasm";
81/// Application brand title displayed in the shell chrome.
82pub const SHOWCASE_BRAND: &str = "Euv Studio";
83
84pub(crate) const SHOWCASE_BUNDLE_ID: &str = "vip.ltpp.euv.showcase";
85pub(crate) const STATUS_RESTORED_NATIVE_SHELL: &str = "Restored built-in native dashboard shell";
86pub(crate) const NAV_SEC_START: &str = "START";
87pub(crate) const NAV_SEC_COMPONENTS: &str = "UI COMPONENTS";
88pub(crate) const NAV_SEC_CONTENT: &str = "RICH CONTENT";
89pub(crate) const NAV_SEC_PLATFORM: &str = "CORE & PLATFORM";
90pub(crate) const NAV_SEC_ENGINES: &str = "ENGINES & STRESS";
91pub(crate) const NAV_SEC_RUNTIME: &str = "LIVE ROUTES";
92pub(crate) const NAV_LABEL_OVERVIEW: &str = "Overview";
93pub(crate) const NAV_LABEL_THEMES: &str = "Themes (17)";
94pub(crate) const NAV_LABEL_FORMS: &str = "Forms & Inputs";
95pub(crate) const NAV_LABEL_CONTROLS: &str = "Buttons & Navigation";
96pub(crate) const NAV_LABEL_DATA: &str = "Tables & Data";
97pub(crate) const NAV_LABEL_DISPLAY: &str = "Cards & Display";
98pub(crate) const NAV_LABEL_OVERLAYS: &str = "Overlays & Modals";
99pub(crate) const NAV_LABEL_LAB: &str = "Architecture & Cases";
100pub(crate) const NAV_LABEL_MARKDOWN: &str = "Markdown & Code";
101pub(crate) const NAV_LABEL_MERMAID: &str = "Mermaid Diagrams";
102pub(crate) const NAV_LABEL_CHARTS: &str = "ECharts Studio";
103pub(crate) const NAV_LABEL_MEDIA: &str = "Media Studio";
104pub(crate) const NAV_LABEL_REACTIVE: &str = "Reactivity & Macros";
105pub(crate) const NAV_LABEL_RENDER: &str = "Rendering & GPU";
106pub(crate) const NAV_LABEL_WINDOW: &str = "Window & Hardware";
107pub(crate) const NAV_LABEL_SYSTEM: &str = "System Events";
108pub(crate) const NAV_LABEL_DYNAMIC: &str = "Dynamic OTA";
109pub(crate) const NAV_LABEL_AUTOMATION: &str = "AI & Automation";
110pub(crate) const NAV_LABEL_GAME: &str = "2D Game Engine";
111pub(crate) const NAV_LABEL_GAME_3D: &str = "3D Engine (RT)";
112pub(crate) const NAV_LABEL_WATER: &str = "Gyro Liquid Water";
113pub(crate) const NAV_TITLE_HOME: &str = "Home";
114pub(crate) const NAV_TITLE_THEMES: &str = "Themes";
115pub(crate) const NAV_TITLE_FORMS: &str = "Forms";
116pub(crate) const NAV_TITLE_CONTROLS: &str = "Controls";
117pub(crate) const NAV_TITLE_DATA: &str = "Data";
118pub(crate) const NAV_TITLE_DISPLAY: &str = "Display";
119pub(crate) const NAV_TITLE_OVERLAYS: &str = "Overlays";
120pub(crate) const NAV_TITLE_LAB: &str = "Cases";
121pub(crate) const NAV_TITLE_MARKDOWN: &str = "Markdown";
122pub(crate) const NAV_TITLE_MERMAID: &str = "Mermaid";
123pub(crate) const NAV_TITLE_CHARTS: &str = "Charts";
124pub(crate) const NAV_TITLE_MEDIA: &str = "Media";
125pub(crate) const NAV_TITLE_REACTIVE: &str = "Reactive";
126pub(crate) const NAV_TITLE_RENDER: &str = "Render";
127pub(crate) const NAV_TITLE_WINDOW: &str = "Window";
128pub(crate) const NAV_TITLE_SYSTEM: &str = "System";
129pub(crate) const NAV_TITLE_DYNAMIC: &str = "Dynamic";
130pub(crate) const NAV_TITLE_AUTOMATION: &str = "Automation";
131pub(crate) const NAV_TITLE_GAME: &str = "Game";
132pub(crate) const NAV_TITLE_GAME_3D: &str = "3D RT";
133pub(crate) const NAV_TITLE_WATER: &str = "Water";
134pub(crate) const NAV_TITLE_STRESS: &str = "Stress";
135pub(crate) const WATER_PERM_DESKTOP_STATUS: &str =
136    "Desktop / Native: Hardware IMU auto-bridged ยท Virtual Tilt ready";
137#[cfg(target_arch = "wasm32")]
138pub(crate) const WATER_PERM_WEB_GRANTED: &str =
139    "Browser motion sensors enabled โ€” tilt or rotate device";
140#[cfg(target_arch = "wasm32")]
141pub(crate) const WATER_PERM_WEB_UNAVAILABLE: &str =
142    "Motion sensors unavailable in this browser โ€” using Virtual Tilt";
143pub(crate) const DEFAULT_USERNAME: &str = "euv-developer";
144pub(crate) const DEFAULT_TAG_RUST: &str = "Rust";
145pub(crate) const DEFAULT_TAG_NATIVE: &str = "Native";
146pub(crate) const DEFAULT_TAG_WASM: &str = "WASM";
147pub(crate) const GAME_HUD_CONTROLS_HINT: &str =
148    "WASD/Arrows Move | Space/Click Fire | E Dash | R Wave";
149pub(crate) const MEDIA_GIF_TITLE: &str = "Neon Pulse Loop";
150pub(crate) const MEDIA_VIDEO_TITLE: &str = "euv Engine HDR Showcase Reel";
151pub(crate) const MEDIA_VIDEO_CAPTIONS: [&str; 4] = [
152    "Cross-platform native raster + GPU hybrid pipeline.",
153    "Zero JavaScript WebAssembly bundle running at 60Hz.",
154    "Real-time BVH ray-traced shadows and reflections.",
155    "Immersive iOS, Android, HarmonyOS, macOS, Windows, and Linux.",
156];
157pub(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";
158pub(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]}}]}]}"#;
159pub(crate) const DEFAULT_BIO_TEXT: &str = "Zero-WebView native Rust UI";
160pub(crate) const DEFAULT_CAMERA_PERM: &str = "NotDetermined";
161pub(crate) const DEFAULT_PROTOCOL_STATUS: &str = "Unregistered";
162pub(crate) const DEFAULT_ENGINE3D_STATUS: &str =
163    "Ready: Cinematic + RT Full GI active โ€” import .OBJ or .glTF live";
164pub(crate) const STATUS_ENGINE3D_LOADING: &str =
165    "Initializing Vice Boulevard 3D City & BVH (background worker)...";
166pub(crate) const DEFAULT_DYNAMIC_ACTION_LOG: &str = "None yet";
167pub(crate) const DEFAULT_OTP_CODE: &str = "202642";
168pub(crate) const DEFAULT_MEDIA_LINK_LOG: &str = "Click any native HTML link below";
169pub(crate) const DEFAULT_SYS_NOTIF_TITLE: &str = "Euv System Ready";
170pub(crate) const DEFAULT_SYS_NOTIF_BODY: &str =
171    "Native notification bus active across all 7 targets";
172pub(crate) const DEFAULT_INPUT_GROUP_VAL: &str = "showcase";
173pub(crate) const DEFAULT_WASM_STATUS: &str =
174    "Ready: test partial/global .wasm download, cache, retry, traps & rollback";
175pub(crate) const STATUS_WASM_LOADING: &str = "Preparing dynamic .wasm OTA bundles on worker...";
176pub(crate) const DEFAULT_LIFECYCLE_BOOT: &str = "Booting lazy Freeze router...";
177pub(crate) const DEFAULT_MD_COPY_LOG: &str = "Tap Copy on any Eva code block";
178pub(crate) const DEFAULT_MD_LINK_LOG: &str = "Tap any Markdown hyperlink below";
179pub(crate) const DEFAULT_SYS_EVENT_LOG: &str =
180    "Listening for normalized SystemEvent hooks (Appear / Disappear / Foreground / Background)";
181pub(crate) const HUD_3D_LOADING_TITLE: &str =
182    "Loading Vice Boulevard 3D City & BVH on background worker...";
183pub(crate) const WASM_TITLE_PARTIAL_V2: &str = "Hot-Swapped Partial WASM Widget v2";
184pub(crate) const WASM_TITLE_GLOBAL_V1: &str = "Global Dynamic WASM App Shell v1";
185pub(crate) const WASM_TITLE_GLOBAL_V2: &str = "Global Dynamic WASM App Shell v2";
186pub(crate) const WASM_ETAG_P1: &str = "etag-p-v1";
187pub(crate) const WASM_ETAG_P2: &str = "etag-p-v2";
188pub(crate) const WASM_ETAG_G1: &str = "etag-g-v1";
189pub(crate) const WASM_ETAG_G2: &str = "etag-g-v2";
190pub(crate) const WASM_ETAG_RETRY: &str = "etag-retry";
191pub(crate) const WASM_ETAG_500: &str = "etag-500";
192pub(crate) const WASM_ETAG_CORRUPT: &str = "etag-corrupt";
193pub(crate) const WASM_ETAG_TAMPER: &str = "etag-tamper";
194pub(crate) const WASM_ETAG_ABI: &str = "etag-abi";
195pub(crate) const WASM_ETAG_NOEXP: &str = "etag-noexp";
196pub(crate) const WASM_ETAG_FUEL: &str = "etag-fuel";
197pub(crate) const WASM_ETAG_TRAP: &str = "etag-trap";
198pub(crate) const WASM_ETAG_BIG: &str = "etag-big";