You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
443 B
Rust
30 lines
443 B
Rust
pub mod app;
|
|
pub mod locales;
|
|
pub mod backend;
|
|
mod pages;
|
|
mod components;
|
|
mod validator;
|
|
pub mod error;
|
|
pub mod config;
|
|
|
|
use cfg_if::cfg_if;
|
|
|
|
cfg_if! {
|
|
if #[cfg(feature = "hydrate")] {
|
|
|
|
use wasm_bindgen::prelude::wasm_bindgen;
|
|
|
|
#[wasm_bindgen]
|
|
pub fn hydrate() {
|
|
use app::*;
|
|
use leptos::*;
|
|
|
|
console_error_panic_hook::set_once();
|
|
|
|
leptos::mount_to_body(move || {
|
|
view! { <App/> }
|
|
});
|
|
}
|
|
}
|
|
}
|