diff --git a/project/frontend/Cargo.lock b/project/frontend/Cargo.lock index 57b045b..d9b344d 100644 --- a/project/frontend/Cargo.lock +++ b/project/frontend/Cargo.lock @@ -301,6 +301,7 @@ dependencies = [ name = "thesis-frontend" version = "0.1.0" dependencies = [ + "log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)", "stdweb 0.4.20 (registry+https://github.com/rust-lang/crates.io-index)", "yew 0.14.3 (registry+https://github.com/rust-lang/crates.io-index)", "yew-router 0.11.0 (registry+https://github.com/rust-lang/crates.io-index)", diff --git a/project/frontend/Cargo.toml b/project/frontend/Cargo.toml index 8ef7824..f71654d 100644 --- a/project/frontend/Cargo.toml +++ b/project/frontend/Cargo.toml @@ -10,6 +10,7 @@ edition = "2018" stdweb = "0.4.20" yew = { version = "0.14.3", features = ["std_web"] } yew-router = { version = "0.11.0", features = ["std_web"] } +log = "0.4.8" [[bin]] name = "app" diff --git a/project/frontend/src/main.rs b/project/frontend/src/main.rs index 1773760..71aa90e 100644 --- a/project/frontend/src/main.rs +++ b/project/frontend/src/main.rs @@ -1,3 +1,6 @@ +mod component; + +use component::login::LoginComponent; use yew::prelude::*; struct App { @@ -34,10 +37,8 @@ impl Component for App { } fn view(&self) -> Html { - let button_text = if self.clicked { "Clicked!" } else { "Click me" }; - html! { - + } } } diff --git a/project/frontend/static/index.html b/project/frontend/static/index.html index 8d96731..a498b95 100644 --- a/project/frontend/static/index.html +++ b/project/frontend/static/index.html @@ -4,6 +4,15 @@ Thesis + + + + + +