1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Export as library
pub mod logic;

// For use in the web app only
pub(crate) mod components;
pub(crate) mod constants;

use components::app;
use wasm_bindgen::prelude::*;
use yew::web_sys::console;

/**
The app's main entry point
*/
#[wasm_bindgen]
pub fn run_app() -> Result<(), JsValue> {
    // Log the license notice
    console::group_1(&constants::license::license_notice_title().into());
    console::log_1(&constants::license::license_notice_body().into());
    console::group_end();

    // Start the yew app
    yew::start_app::<app::App>();

    // Clean exit
    Ok(())
}