euv_example/state/
const.rs1pub const ROUTE_OVERVIEW: &str = "/";
3pub const ROUTE_MARKDOWN: &str = "/markdown";
5pub const ROUTE_REACTIVE: &str = "/reactive";
7pub const ROUTE_RENDER: &str = "/render";
9pub const ROUTE_WINDOW: &str = "/window";
11pub const ROUTE_FORMS: &str = "/forms";
13pub const ROUTE_THEMES: &str = "/themes";
15pub const ROUTE_DATA: &str = "/data";
17pub const ROUTE_GAME: &str = "/game";
19pub const ROUTE_GAME_3D: &str = "/game3d";
21pub const ROUTE_WATER: &str = "/water";
23pub const ROUTE_MEDIA: &str = "/media";
25pub const ROUTE_LAB: &str = "/lab";
27pub const ROUTE_CONTROLS: &str = "/controls";
29pub const ROUTE_DISPLAY: &str = "/display";
31pub const ROUTE_MERMAID: &str = "/mermaid";
33pub const ROUTE_SYSTEM: &str = "/system";
35pub const ROUTE_AUTOMATION: &str = "/automation";
37pub const ROUTE_OVERLAYS: &str = "/overlays";
39pub const ROUTE_DYNAMIC: &str = "/dynamic";
41pub const ROUTE_DYNAMIC_PANEL: &str = "/dynamic/panel";
43pub const ROUTE_PROMO_LIVE: &str = "/promo-live";
45pub const PROJECT_GITHUB_URL: &str = "https://github.com/euv-dev/euv";
47pub const ROUTE_SETTINGS: &str = "/settings";
49pub const SLOT_PROMO_BANNER: &str = "promo_banner";
51pub const SLOT_METRICS_WIDGET: &str = "metrics_widget";
53pub const SLOT_WASM_WIDGET: &str = "wasm_live_widget";
55pub const TITLE_WASM_PARTIAL_V1: &str = "Downloaded Partial WASM Widget v1";
57pub const WASM_SHOWCASE_SIGNING_KEY: &str = "euv-prod-signing-key-2026";
59pub const URL_WASM_PARTIAL_V1: &str = "euv-cdn://bundles/partial-widget-v1.wasm";
61pub const URL_WASM_PARTIAL_V2: &str = "euv-cdn://bundles/partial-widget-v2.wasm";
63pub const URL_WASM_GLOBAL_V1: &str = "euv-cdn://bundles/global-app-v1.wasm";
65pub const URL_WASM_GLOBAL_V2: &str = "euv-cdn://bundles/global-app-v2.wasm";
67pub const URL_WASM_TIMEOUT_RETRY: &str = "euv-cdn://faults/timeout-retry.wasm";
69pub const URL_WASM_HTTP_500: &str = "euv-cdn://faults/http-500.wasm";
71pub const URL_WASM_CORRUPTED: &str = "euv-cdn://faults/corrupted.wasm";
73pub const URL_WASM_TAMPERED: &str = "euv-cdn://faults/tampered.wasm";
75pub const URL_WASM_BAD_ABI: &str = "euv-cdn://faults/bad-abi.wasm";
77pub const URL_WASM_MISSING_EXPORT: &str = "euv-cdn://faults/missing-export.wasm";
79pub const URL_WASM_FUEL_BOMB: &str = "euv-cdn://faults/fuel-bomb.wasm";
81pub const URL_WASM_TRAP: &str = "euv-cdn://faults/trap.wasm";
83pub const URL_WASM_OVERSIZED: &str = "euv-cdn://faults/oversized.wasm";
85pub const SHOWCASE_BRAND: &str = "Euv Studio";
87
88pub(crate) const SHOWCASE_BUNDLE_ID: &str = "vip.ltpp.euv.showcase";
89pub(crate) const STATUS_RESTORED_NATIVE_SHELL: &str = "Restored built-in native dashboard shell";
90pub(crate) const NAV_SEC_START: &str = "START";
91pub(crate) const NAV_SEC_COMPONENTS: &str = "UI COMPONENTS";
92pub(crate) const NAV_SEC_CONTENT: &str = "RICH CONTENT";
93pub(crate) const NAV_SEC_PLATFORM: &str = "CORE & PLATFORM";
94pub(crate) const NAV_SEC_ENGINES: &str = "ENGINES & STRESS";
95pub(crate) const NAV_SEC_RUNTIME: &str = "LIVE ROUTES";
96pub(crate) const NAV_LABEL_OVERVIEW: &str = "Overview";
97pub(crate) const NAV_LABEL_THEMES: &str = "Themes (17)";
98pub(crate) const NAV_LABEL_SETTINGS: &str = "Settings";
99pub(crate) const NAV_LABEL_FORMS: &str = "Forms & Inputs";
100pub(crate) const NAV_LABEL_CONTROLS: &str = "Buttons & Navigation";
101pub(crate) const NAV_LABEL_DATA: &str = "Tables & Data";
102pub(crate) const NAV_LABEL_DISPLAY: &str = "Cards & Display";
103pub(crate) const NAV_LABEL_OVERLAYS: &str = "Overlays & Modals";
104pub(crate) const NAV_LABEL_LAB: &str = "Architecture & Cases";
105pub(crate) const NAV_LABEL_MARKDOWN: &str = "Markdown & Code";
106pub(crate) const NAV_LABEL_MERMAID: &str = "Mermaid Diagrams";
107pub(crate) const NAV_LABEL_CHARTS: &str = "ECharts Studio";
108pub(crate) const NAV_LABEL_MEDIA: &str = "Media Studio";
109pub(crate) const NAV_LABEL_REACTIVE: &str = "Reactivity & Macros";
110pub(crate) const NAV_LABEL_RENDER: &str = "Rendering & GPU";
111pub(crate) const NAV_LABEL_WINDOW: &str = "Window & Hardware";
112pub(crate) const NAV_LABEL_SYSTEM: &str = "System Events";
113pub(crate) const NAV_LABEL_DYNAMIC: &str = "Dynamic OTA";
114pub(crate) const NAV_LABEL_AUTOMATION: &str = "AI & Automation";
115pub(crate) const NAV_LABEL_GAME: &str = "2D Game Engine";
116pub(crate) const NAV_LABEL_GAME_3D: &str = "3D Engine (RT)";
117pub(crate) const NAV_LABEL_WATER: &str = "Gyro Liquid Water";
118pub(crate) const NAV_TITLE_HOME: &str = "Home";
119pub(crate) const NAV_TITLE_THEMES: &str = "Themes";
120pub(crate) const NAV_TITLE_SETTINGS: &str = "Settings";
121pub(crate) const NAV_TITLE_FORMS: &str = "Forms";
122pub(crate) const NAV_TITLE_CONTROLS: &str = "Controls";
123pub(crate) const NAV_TITLE_DATA: &str = "Data";
124pub(crate) const NAV_TITLE_DISPLAY: &str = "Display";
125pub(crate) const NAV_TITLE_OVERLAYS: &str = "Overlays";
126pub(crate) const NAV_TITLE_LAB: &str = "Cases";
127pub(crate) const NAV_TITLE_MARKDOWN: &str = "Markdown";
128pub(crate) const NAV_TITLE_MERMAID: &str = "Mermaid";
129pub(crate) const NAV_TITLE_CHARTS: &str = "Charts";
130pub(crate) const NAV_TITLE_MEDIA: &str = "Media";
131pub(crate) const NAV_TITLE_REACTIVE: &str = "Reactive";
132pub(crate) const NAV_TITLE_RENDER: &str = "Render";
133pub(crate) const NAV_TITLE_WINDOW: &str = "Window";
134pub(crate) const NAV_TITLE_SYSTEM: &str = "System";
135pub(crate) const NAV_TITLE_DYNAMIC: &str = "Dynamic";
136pub(crate) const NAV_TITLE_AUTOMATION: &str = "Automation";
137pub(crate) const NAV_TITLE_GAME: &str = "Game";
138pub(crate) const NAV_TITLE_GAME_3D: &str = "3D RT";
139pub(crate) const NAV_TITLE_WATER: &str = "Water";
140pub(crate) const NAV_TITLE_STRESS: &str = "Stress";
141pub(crate) const WATER_PERM_DESKTOP_STATUS: &str =
142 "Desktop / Native: Hardware IMU auto-bridged ยท Virtual Tilt ready";
143#[cfg(target_arch = "wasm32")]
144pub(crate) const WATER_PERM_WEB_GRANTED: &str =
145 "Browser motion sensors enabled โ tilt or rotate device";
146#[cfg(target_arch = "wasm32")]
147pub(crate) const WATER_PERM_WEB_UNAVAILABLE: &str =
148 "Motion sensors unavailable in this browser โ using Virtual Tilt";
149pub(crate) const DEFAULT_USERNAME: &str = "euv-developer";
150pub(crate) const DEFAULT_TAG_RUST: &str = "Rust";
151pub(crate) const DEFAULT_TAG_NATIVE: &str = "Native";
152pub(crate) const DEFAULT_TAG_WASM: &str = "WASM";
153pub(crate) const GAME_HUD_CONTROLS_HINT: &str =
154 "WASD/Arrows Move | Space/Click Fire | E Dash | R Wave";
155pub(crate) const MEDIA_GIF_TITLE: &str = "Neon Pulse Loop";
156pub(crate) const MEDIA_VIDEO_TITLE: &str = "euv Engine HDR Showcase Reel";
157pub(crate) const MEDIA_VIDEO_CAPTIONS: [&str; 4] = [
158 "Cross-platform native raster + GPU hybrid pipeline.",
159 "Zero JavaScript WebAssembly bundle running at 60Hz.",
160 "Real-time BVH ray-traced shadows and reflections.",
161 "Immersive iOS, Android, HarmonyOS, macOS, Windows, and Linux.",
162];
163pub(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";
164pub(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]}}]}]}"#;
165pub(crate) const DEFAULT_BIO_TEXT: &str = "Zero-WebView native Rust UI";
166pub(crate) const DEFAULT_CAMERA_PERM: &str = "NotDetermined";
167pub(crate) const DEFAULT_PROTOCOL_STATUS: &str = "Unregistered";
168pub(crate) const DEFAULT_ENGINE3D_STATUS: &str =
169 "Ready: Cinematic + RT Full GI active โ import .OBJ or .glTF live";
170pub(crate) const STATUS_ENGINE3D_LOADING: &str =
171 "Initializing Vice Boulevard 3D City & BVH (background worker)...";
172pub(crate) const DEFAULT_DYNAMIC_ACTION_LOG: &str = "None yet";
173pub(crate) const DEFAULT_OTP_CODE: &str = "202642";
174pub(crate) const DEFAULT_MEDIA_LINK_LOG: &str = "Click any native HTML link below";
175pub(crate) const DEFAULT_SYS_NOTIF_TITLE: &str = "Euv System Ready";
176pub(crate) const DEFAULT_SYS_NOTIF_BODY: &str =
177 "Native notification bus active across all 7 targets";
178pub(crate) const DEFAULT_INPUT_GROUP_VAL: &str = "showcase";
179pub(crate) const DEFAULT_WASM_STATUS: &str =
180 "Ready: test partial/global .wasm download, cache, retry, traps & rollback";
181pub(crate) const STATUS_WASM_LOADING: &str = "Preparing dynamic .wasm OTA bundles on worker...";
182pub(crate) const DEFAULT_LIFECYCLE_BOOT: &str = "Booting lazy Freeze router...";
183pub(crate) const DEFAULT_MD_COPY_LOG: &str = "Tap Copy on any Eva code block";
184pub(crate) const DEFAULT_MD_LINK_LOG: &str = "Tap any Markdown hyperlink below";
185pub(crate) const DEFAULT_SYS_EVENT_LOG: &str =
186 "Listening for normalized SystemEvent hooks (Appear / Disappear / Foreground / Background)";
187pub(crate) const HUD_3D_LOADING_TITLE: &str =
188 "Loading Vice Boulevard 3D City & BVH on background worker...";
189pub(crate) const WASM_TITLE_PARTIAL_V2: &str = "Hot-Swapped Partial WASM Widget v2";
190pub(crate) const WASM_TITLE_GLOBAL_V1: &str = "Global Dynamic WASM App Shell v1";
191pub(crate) const WASM_TITLE_GLOBAL_V2: &str = "Global Dynamic WASM App Shell v2";
192pub(crate) const WASM_ETAG_P1: &str = "etag-p-v1";
193pub(crate) const WASM_ETAG_P2: &str = "etag-p-v2";
194pub(crate) const WASM_ETAG_G1: &str = "etag-g-v1";
195pub(crate) const WASM_ETAG_G2: &str = "etag-g-v2";
196pub(crate) const WASM_ETAG_RETRY: &str = "etag-retry";
197pub(crate) const WASM_ETAG_500: &str = "etag-500";
198pub(crate) const WASM_ETAG_CORRUPT: &str = "etag-corrupt";
199pub(crate) const WASM_ETAG_TAMPER: &str = "etag-tamper";
200pub(crate) const WASM_ETAG_ABI: &str = "etag-abi";
201pub(crate) const WASM_ETAG_NOEXP: &str = "etag-noexp";
202pub(crate) const WASM_ETAG_FUEL: &str = "etag-fuel";
203pub(crate) const WASM_ETAG_TRAP: &str = "etag-trap";
204pub(crate) const WASM_ETAG_BIG: &str = "etag-big";
205pub(crate) const ADAPTIVE_BACKEND_METAL_DIRECT: &str = "Metal (GPU Direct)";
206pub(crate) const ADAPTIVE_BACKEND_METAL_UPLOAD: &str = "Metal (Upload)";
207pub(crate) const ADAPTIVE_BACKEND_WEBGL2_DIRECT: &str = "WebGL2 (GPU Direct)";
208pub(crate) const ADAPTIVE_BACKEND_WEBGL2_UPLOAD: &str = "WebGL2 (Upload)";
209pub(crate) const ADAPTIVE_BACKEND_CANVAS2D: &str = "Canvas 2D (Software)";
210pub(crate) const ADAPTIVE_BACKEND_GLES3_DIRECT: &str = "GLES 3.0 (GPU Direct)";
211pub(crate) const ADAPTIVE_BACKEND_VULKAN_DIRECT: &str = "Vulkan (GPU Direct)";
212pub(crate) const ADAPTIVE_BACKEND_D3D11_DIRECT: &str = "Direct3D 11 (GPU Direct)";
213pub(crate) const ADAPTIVE_BACKEND_HYBRID_SPARSE: &str = "Hybrid (Sparse CPU+GPU)";
214pub(crate) const ADAPTIVE_BACKEND_SOFTWARE_CPU: &str = "Software (CPU Raster)";
215pub(crate) const ADAPTIVE_BACKEND_TERMINAL: &str = "Terminal (Cell Diff)";
216pub(crate) const ADAPTIVE_TIMING_COMPOSITOR: &str = "Compositor Measured";
217pub(crate) const ADAPTIVE_TIMING_PROXY: &str = "Submission Proxy";
218pub(crate) const ADAPTIVE_TIMING_UNOBSERVABLE: &str = "Unobservable";
219pub(crate) const ADAPTIVE_UPLOAD_DIRECT_GPU: &str = "Direct GPU";
220pub(crate) const ADAPTIVE_UPLOAD_MULTI_RECT: &str = "Multi-Rect Dirty";
221pub(crate) const ADAPTIVE_UPLOAD_MERGED_BBOX: &str = "Merged BBox";
222pub(crate) const ADAPTIVE_UPLOAD_FULL_FRAME: &str = "Full Frame";
223pub(crate) const ADAPTIVE_UPLOAD_NONE: &str = "None (Cell Diff)";