euv-example 0.47.1

Cross-platform native showcase application demonstrating euv fine-grained reactivity, multi-mode rendering, window controls, and euv-ui components.
Documentation
pub(crate) const DYNAMIC_TITLE: &str = "Dynamic Component & Page OTA Updates";
pub(crate) const DYNAMIC_SUBTITLE: &str = "Surgical component-level hot updates, page-level live swaps, atomic JSON bundles, and runtime route injection.";
pub(crate) const DYNAMIC_PARTIAL_CARD_TITLE: &str = "Scoped / Partial Dynamic WASM Execution";
pub(crate) const DYNAMIC_PARTIAL_CARD_SUB: &str = "Download genuine .wasm binaries into a single native slot with checksum/signature verification, offline cache, interactive euv_on_event & rollback.";
pub(crate) const DYNAMIC_GLOBAL_CARD_TITLE: &str = "Global / Full-App Dynamic WASM Takeover";
pub(crate) const DYNAMIC_GLOBAL_CARD_SUB: &str = "Atomically replace the entire native app shell from a downloaded .wasm release with automatic Last-Known-Good (LKG) rollback on any fault.";
pub(crate) const DYNAMIC_FAULT_CARD_TITLE: &str =
    "All-Case Security, Fault & Sandbox Verification Matrix";
pub(crate) const DYNAMIC_FAULT_CARD_SUB: &str = "Verify every edge case live: auto-retry, offline cache, integrity rejection, ABI mismatch, infinite-loop fuel cutoff, trap isolation & stale cancel guard.";
pub(crate) const DYNAMIC_COMP_CARD_TITLE: &str = "Component-Level Dynamic Slots";
pub(crate) const DYNAMIC_COMP_CARD_SUB: &str = "Update individual named slots via signed JSON or native Rust closures without resetting sibling state.";
pub(crate) const DYNAMIC_PAGE_CARD_TITLE: &str = "Page-Level Dynamic Updates & Route Injection";
pub(crate) const DYNAMIC_PAGE_CARD_SUB: &str = "Hot-swap entire page layouts, apply atomic multi-target bundles, or inject brand-new routes at runtime.";
pub(crate) const DYNAMIC_BTN_HTTP_WASM: &str = "Download Real HTTP .wasm";
pub(crate) const DYNAMIC_BTN_PARTIAL_V1: &str = "Download Partial WASM v1";
pub(crate) const DYNAMIC_BTN_PARTIAL_V2: &str = "Hot-Swap Partial WASM v2";
pub(crate) const DYNAMIC_BTN_TOGGLE_OFFLINE: &str = "Toggle Offline (Cache Hit)";
pub(crate) const DYNAMIC_BTN_ROLLBACK_PARTIAL: &str = "Rollback Partial";
pub(crate) const DYNAMIC_BTN_UNMOUNT_SLOT: &str = "Unmount Slot";
pub(crate) const DYNAMIC_BTN_GLOBAL_V1: &str = "Download Global WASM v1";
pub(crate) const DYNAMIC_BTN_GLOBAL_V2: &str = "Upgrade Global WASM v2";
pub(crate) const DYNAMIC_BTN_GLOBAL_FAULT: &str = "Faulty Global (Auto LKG Rollback)";
pub(crate) const DYNAMIC_BTN_RESTORE_NATIVE: &str = "Restore Native Shell";
pub(crate) const DYNAMIC_BTN_FAULT_RETRY: &str = "Timeout -> Auto Retry";
pub(crate) const DYNAMIC_BTN_FAULT_500: &str = "HTTP 500";
pub(crate) const DYNAMIC_BTN_FAULT_CORRUPT: &str = "Corrupted Magic";
pub(crate) const DYNAMIC_BTN_FAULT_TAMPER: &str = "Tampered Checksum";
pub(crate) const DYNAMIC_BTN_FAULT_SIG: &str = "Invalid Signature";
pub(crate) const DYNAMIC_BTN_FAULT_ABI: &str = "ABI Mismatch";
pub(crate) const DYNAMIC_BTN_FAULT_EXPORT: &str = "Missing Export";
pub(crate) const DYNAMIC_BTN_FAULT_FUEL: &str = "Infinite-Loop Fuel";
pub(crate) const DYNAMIC_BTN_FAULT_TRAP: &str = "Runtime Trap";
pub(crate) const DYNAMIC_BTN_FAULT_BIG: &str = "Oversized Binary";
pub(crate) const DYNAMIC_BTN_FAULT_CANCEL: &str = "Cancel / Stale Guard";
pub(crate) const BTN_INC_SIBLING: &str = "Increment Sibling (+1)";
pub(crate) const BTN_PUSH_BANNER_V1: &str = "Push Banner v1 (JSON)";
pub(crate) const BTN_PUSH_BANNER_V2: &str = "Push Banner v2 (Native)";
pub(crate) const BTN_ROLLBACK_BANNER: &str = "Rollback Banner";
pub(crate) const BTN_PATCH_METRICS: &str = "Patch Metrics Widget";
pub(crate) const BTN_ROLLBACK_METRICS: &str = "Rollback Metrics";
pub(crate) const BTN_UPDATE_PAGE_V1: &str = "Hot-Update Page (v1)";
pub(crate) const BTN_APPLY_BUNDLE: &str = "Apply Atomic Bundle";
pub(crate) const BTN_ROLLBACK_PAGE: &str = "Rollback Page";
pub(crate) const BTN_INJECT_ROUTE: &str = "Inject & Visit /promo-live";
pub(crate) const BTN_CLAIM_OFFER: &str = "Claim Dynamic Offer";
pub(crate) const BTN_RETURN_DYNAMIC: &str = "Return to Dynamic OTA";
#[cfg(not(target_arch = "wasm32"))]
pub(crate) const DYNAMIC_HTTP_MODULE_TITLE: &str = "Live HTTP-Downloaded .wasm Module v3";
#[cfg(not(target_arch = "wasm32"))]
pub(crate) const DYNAMIC_HTTP_BIND_ADDR: &str = "127.0.0.1:0";
pub(crate) const DYNAMIC_PARTIAL_V2_TITLE: &str = "Hot-Swapped Partial WASM Widget v2";
pub(crate) const DYNAMIC_GLOBAL_V1_TITLE: &str = "Global Dynamic WASM App Shell v1";
pub(crate) const DYNAMIC_GLOBAL_V2_TITLE: &str = "Global Dynamic WASM App Shell v2";
pub(crate) const DYNAMIC_OFFLINE_ON_MSG: &str =
    "Simulated OFFLINE enabled — re-downloading v1 will serve verified offline cache!";
pub(crate) const DYNAMIC_OFFLINE_OFF_MSG: &str =
    "Simulated ONLINE restored — fetching live .wasm from CDN";
pub(crate) const DYNAMIC_ROLLBACK_REASON: &str = "manual rollback";
pub(crate) const DYNAMIC_UNMOUNT_MSG: &str =
    "Unmounted partial WASM instance and restored compiled fallback";
pub(crate) const DYNAMIC_SLOT_WASM_FALLBACK: &str = "Compiled Native Slot (v0) — click 'Download Partial WASM v1' to fetch, verify, execute .wasm in sandbox & render natively.";
pub(crate) const DYNAMIC_FORGED_SIG: &str = "euv-sig-v1:forged";
pub(crate) const DYNAMIC_ACTION_CLAIM_OFFER: &str = "claim_offer";
pub(crate) const DYNAMIC_ACTION_RETURN: &str = "return_dynamic";
pub(crate) const DYNAMIC_SLOT_BANNER_FALLBACK: &str =
    "Compiled Fallback Banner (v0) — click a button above to hot-update only this component.";
pub(crate) const DYNAMIC_SLOT_METRICS_FALLBACK: &str =
    "Compiled Fallback Metrics Widget (v0) — independent surgical slot.";
pub(crate) const DYNAMIC_PAGE_REPLACED_BODY: &str =
    "Page-level layout replaced live without restarting the application.";
pub(crate) const DYNAMIC_ATOMIC_METRICS_BODY: &str =
    "Committed together with page panel inside one atomic transaction.";
pub(crate) const DYNAMIC_ATOMIC_PAGE_BODY: &str =
    "Both component slot and page slot updated atomically via signed JSON.";
pub(crate) const DYNAMIC_ATOMIC_BUNDLE_ID: &str = "ota-atomic-bundle";
pub(crate) const DYNAMIC_PROMO_BADGE: &str = "Zero Recompile Route";
pub(crate) const DYNAMIC_PROMO_BODY: &str =
    "This entire route was injected dynamically at runtime via signed JSON manifest.";
pub(crate) const DYNAMIC_PROMO_TITLE: &str = "Flash Promo (OTA)";
pub(crate) const DYNAMIC_PAGE_FALLBACK: &str =
    "Compiled Fallback Page Panel (v0) — click Hot-Update Page or Apply Atomic Bundle.";
pub(crate) const DYNAMIC_FAULT_MSG_500: &str = "Handled HTTP 500";
pub(crate) const DYNAMIC_FAULT_MSG_CORRUPT: &str = "Blocked Corrupted Magic";
pub(crate) const DYNAMIC_FAULT_MSG_ABI: &str = "Blocked ABI Mismatch";
pub(crate) const DYNAMIC_FAULT_MSG_EXPORT: &str = "Blocked Missing Export";
pub(crate) const DYNAMIC_FAULT_MSG_FUEL: &str = "Terminated Runaway Loop";
pub(crate) const DYNAMIC_FAULT_MSG_TRAP: &str = "Isolated Runtime Trap";
pub(crate) const DYNAMIC_FAULT_MSG_BIG: &str = "Blocked Oversized Binary";