euv-example 0.49.4

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";
/// Title for the proxy-aware on-device live hot-update card.
pub(crate) const DYNAMIC_PROXY_CARD_TITLE: &str = "Proxy-Aware On-Device Hot Update (HTTP + SSE)";
/// Subtitle for the proxy-aware live hot-update card.
pub(crate) const DYNAMIC_PROXY_CARD_SUB: &str = "Connect directly, through a reverse proxy, or via an explicit HTTP forward proxy to receive live CLI SSE push updates and atomically hot-swap verified bundles.";
/// Placeholder for the update server URL input.
pub(crate) const DYNAMIC_PROXY_SERVER_PLACEHOLDER: &str =
    "Update Server URL (e.g. http://127.0.0.1:8787)";
/// Placeholder for the optional HTTP proxy URL input.
pub(crate) const DYNAMIC_PROXY_URL_PLACEHOLDER: &str =
    "Optional Proxy URL (e.g. http://127.0.0.1:7890)";
/// Button label connecting live SSE hot updates.
pub(crate) const DYNAMIC_PROXY_BTN_CONNECT: &str = "Connect Live SSE";
/// Button label disconnecting live SSE hot updates.
pub(crate) const DYNAMIC_PROXY_BTN_DISCONNECT: &str = "Disconnect SSE";
/// Button label triggering an immediate manifest check and pull.
pub(crate) const DYNAMIC_PROXY_BTN_PULL: &str = "Check & Pull Now";
/// Button label rolling back the latest hot-swapped page or component.
pub(crate) const DYNAMIC_PROXY_BTN_ROLLBACK: &str = "Rollback";
/// Default project identifier for showcase live hot updates.
pub(crate) const DYNAMIC_PROXY_PROJECT: &str = "euv-showcase";
/// Mode label when disconnected from live SSE hot updates.
pub(crate) const DYNAMIC_PROXY_MODE_OFF: &str = "Disconnected";
/// Mode label when worker is running offline using cached releases.
pub(crate) const DYNAMIC_PROXY_MODE_OFFLINE_CACHE: &str = "Offline (Cached)";
/// Mode label while establishing or retrying the live SSE connection.
pub(crate) const DYNAMIC_PROXY_MODE_CONNECTING: &str = "Connecting...";
/// Mode label when connected directly to the hot-update server.
pub(crate) const DYNAMIC_PROXY_MODE_DIRECT: &str = "Connected (Direct)";
/// Mode label when connected via an explicit forward or reverse proxy.
pub(crate) const DYNAMIC_PROXY_MODE_PROXY: &str = "Connected (Proxy)";
/// Detail message when live SSE is connected and waiting for the first published release.
pub(crate) const DYNAMIC_PROXY_WAITING_RELEASE_MSG: &str =
    "SSE connected — waiting for the first release from `euv update push`.";
/// Preview label above the inline live hot-update banner slot inside the proxy card.
pub(crate) const DYNAMIC_PROXY_LIVE_SLOT_LABEL: &str = "Live Hot-Update Slot (promo_banner)";
/// Placeholder SHA-256 label before any verified hot-update manifest is applied.
pub(crate) const DYNAMIC_PROXY_SHA_NONE: &str = "none";
/// Default status detail string before any hot-update session starts.
pub(crate) const DYNAMIC_PROXY_IDLE_DETAIL: &str =
    "Idle — ready to connect via direct URL, reverse proxy, or HTTP forward proxy.";
/// Detail message when live SSE hot-update session is manually disconnected.
pub(crate) const DYNAMIC_PROXY_DISCONNECTED_MSG: &str = "Disconnected from live SSE feed.";
/// Detail message when rollback succeeds on a dynamic page or component slot.
pub(crate) const DYNAMIC_PROXY_ROLLBACK_OK_MSG: &str = "Rolled back active hot-update revision.";
/// Detail message when no prior hot-update revision exists to roll back.
pub(crate) const DYNAMIC_PROXY_ROLLBACK_EMPTY_MSG: &str =
    "No prior hot-update revision to roll back.";
/// Detail message when a manual reconcile trigger was dispatched to the live worker.
#[cfg(not(target_arch = "wasm32"))]
pub(crate) const DYNAMIC_PROXY_RECONCILE_SENT_MSG: &str =
    "Reconcile requested — incoming verified releases auto-apply at the next safe frame.";
/// Detail prefix when a release was restored offline from disk cache.
pub(crate) const DYNAMIC_PROXY_CACHE_TAG: &str = " [offline-cache]";
/// Detail suffix when a verified release is deferred awaiting a safe interaction boundary.
pub(crate) const DYNAMIC_PROXY_DEFERRED_TAG: &str = " [awaiting safe boundary]";
/// Query token indicating `WasmComponent` dual-track capability (accepts both WASM and Declarative).
#[cfg(target_arch = "wasm32")]
pub(crate) const WEB_OTA_MODE_QUERY: &str = "wasm_component";
/// Browser `localStorage` key persisting the hot-update server URL.
#[cfg(target_arch = "wasm32")]
pub(crate) const DYNAMIC_LS_SERVER_KEY: &str = "euv_hot_update_server_v1";
/// Browser `localStorage` key persisting the optional hot-update proxy URL.
#[cfg(target_arch = "wasm32")]
pub(crate) const DYNAMIC_LS_PROXY_KEY: &str = "euv_hot_update_proxy_v1";
/// Diagnostic string when browser `window` is unavailable on `wasm32`.
#[cfg(target_arch = "wasm32")]
pub(crate) const WEB_OTA_ERR_NO_WINDOW: &str = "browser window unavailable";
/// Diagnostic prefix when browser `fetch` fails on `wasm32`.
#[cfg(target_arch = "wasm32")]
pub(crate) const WEB_OTA_ERR_FETCH: &str = "browser fetch failed";
/// Diagnostic prefix when manifest fetch fails on `wasm32`.
#[cfg(target_arch = "wasm32")]
pub(crate) const WEB_OTA_ERR_MANIFEST: &str = "Manifest fetch failed";
/// Diagnostic prefix when blob fetch fails on `wasm32`.
#[cfg(target_arch = "wasm32")]
pub(crate) const WEB_OTA_ERR_BLOB: &str = "Blob fetch failed";
/// Diagnostic prefix when browser hot-update client is already up to date.
#[cfg(target_arch = "wasm32")]
pub(crate) const WEB_OTA_UP_TO_DATE_PREFIX: &str = "Up to date at";
/// Diagnostic prefix when browser hot-update client applied a verified release.
#[cfg(target_arch = "wasm32")]
pub(crate) const WEB_OTA_APPLIED_PREFIX: &str = "Applied verified release";
/// Diagnostic prefix when browser `EventSource` connects.
#[cfg(target_arch = "wasm32")]
pub(crate) const WEB_OTA_SSE_CONNECTED_PREFIX: &str = "Browser SSE connected ->";
/// Diagnostic prefix when browser `EventSource` fails to initialize.
#[cfg(target_arch = "wasm32")]
pub(crate) const WEB_OTA_SSE_ERR_PREFIX: &str = "Browser EventSource error:";