From b3b8c6b2060b7773d1e6ca23b140a7244b195a59 Mon Sep 17 00:00:00 2001 From: Baitinq Date: Mon, 24 Oct 2022 01:53:49 +0200 Subject: Client->Frontend: Create yew frontend skeleton We have replaced the client with a yew frontend. --- frontend/Cargo.toml | 9 +++++++++ frontend/index.html | 5 +++++ frontend/src/main.rs | 12 ++++++++++++ 3 files changed, 26 insertions(+) create mode 100644 frontend/Cargo.toml create mode 100644 frontend/index.html create mode 100644 frontend/src/main.rs (limited to 'frontend') diff --git a/frontend/Cargo.toml b/frontend/Cargo.toml new file mode 100644 index 0000000..2f2715c --- /dev/null +++ b/frontend/Cargo.toml @@ -0,0 +1,9 @@ +[package] +name = "frontend" +version = "0.1.0" +edition = "2021" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] +yew = "0.19" diff --git a/frontend/index.html b/frontend/index.html new file mode 100644 index 0000000..79497a0 --- /dev/null +++ b/frontend/index.html @@ -0,0 +1,5 @@ + + + + + diff --git a/frontend/src/main.rs b/frontend/src/main.rs new file mode 100644 index 0000000..22b1599 --- /dev/null +++ b/frontend/src/main.rs @@ -0,0 +1,12 @@ +use yew::prelude::*; + +#[function_component(App)] +fn app() -> Html { + html! { +

{ "Hello World" }

+ } +} + +fn main() { + yew::start_app::(); +} -- cgit 1.4.1