Skip to main content

euv_example/
lib.rs

1//! euv-example
2//!
3//! A demonstration application showcasing the euv component system,
4//! reactive signals, routing, and HTML macros.
5
6mod app;
7mod component;
8mod page;
9mod style;
10
11pub(crate) use {app::*, component::*, page::*, style::*};
12
13pub use std::{
14    cell::RefMut,
15    cmp::Ordering,
16    collections::HashSet,
17    fmt::{self, Debug, Display, Formatter},
18    ops::Range,
19};
20
21use std::{
22    cell::{Cell, RefCell},
23    collections::HashMap,
24    rc::Rc,
25};
26
27use {
28    compare_version::*,
29    euv::{js_sys::*, wasm_bindgen::prelude::*, wasm_bindgen_futures::*, web_sys::*, *},
30    euv_engine::*,
31    euv_ui::*,
32};
33
34use {
35    qrcode::{QrCode, render::svg, types::QrError},
36    serde::{Deserialize, Serialize},
37};
38
39/// Entry point for the euv example application.
40#[wasm_bindgen]
41pub fn main() {
42    console_error_panic_hook::set_once();
43    inject_app_global_css();
44    App::mount(APP_MOUNT_SELECTOR, app);
45}