34 lines
494 B
Rust
34 lines
494 B
Rust
pub mod app;
|
|
pub mod auth;
|
|
pub mod songdata;
|
|
pub mod playstatus;
|
|
pub mod playbar;
|
|
pub mod database;
|
|
pub mod models;
|
|
pub mod pages;
|
|
pub mod users;
|
|
use cfg_if::cfg_if;
|
|
|
|
cfg_if! {
|
|
if #[cfg(feature = "ssr")] {
|
|
pub mod schema;
|
|
}
|
|
}
|
|
|
|
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(App);
|
|
}
|
|
}
|
|
}
|