1mod app;
8mod pages;
9mod state;
10
11#[cfg(test)]
12#[path = "../tests/mod.rs"]
13mod tests;
14
15pub use {app::*, pages::*, state::*};
16
17#[cfg(debug_assertions)]
18use euv_automation::AI_SCHEMA_PROTOCOL_VERSION;
19#[cfg(test)]
20use euv_automation::{
21 AiAction, AiAnomalyKind, AiLayoutAnomaly, AiRuntimeSnapshot, AiSchemaRequest, AiSchemaResponse,
22 UiAnomalyAuditConfig, UiAnomalyAuditor, UiAnomalyReport, UiAnomalySeverity,
23};
24#[cfg(any(debug_assertions, test))]
25use euv_automation::{AiAppHooks, AiSchemaProtocol, Value};
26use std::{
27 cell::{Cell, RefCell},
28 f32::consts::PI,
29 path::{Path, PathBuf},
30 rc::Rc,
31};
32#[cfg(target_arch = "wasm32")]
33use std::{
34 cell::{Ref, RefMut},
35 collections::BTreeMap,
36 mem::take,
37};
38#[cfg(not(target_arch = "wasm32"))]
39use std::{
40 env, fs,
41 io::{Error, Read, Write},
42 net::{SocketAddr, TcpListener},
43 thread::spawn,
44 time::Instant,
45};
46use {
47 euv::{PointerEvent, *},
48 euv_automation::DevAutomationBridge,
49 euv_ui::*,
50 lombok_macros::{Data, Getter},
51};
52#[cfg(target_arch = "wasm32")]
53use {
54 js_sys::{Function, Object, Promise, Reflect, Uint8Array, global},
55 wasm_bindgen::{JsCast, JsValue, closure::Closure, prelude::wasm_bindgen},
56 wasm_bindgen_futures::{JsFuture, spawn_local},
57 web_sys::{
58 Document, DomRect, Element, Event, EventSource, EventTarget, HtmlCanvasElement,
59 HtmlElement, KeyboardEvent, MediaQueryList, MessageEvent, Performance, RequestInit,
60 RequestMode, Response, Storage, WheelEvent, Window, window,
61 },
62};