diff options
| author | Baitinq <[email protected]> | 2022-10-24 01:53:49 +0200 |
|---|---|---|
| committer | Baitinq <[email protected]> | 2022-10-24 01:53:51 +0200 |
| commit | b3b8c6b2060b7773d1e6ca23b140a7244b195a59 (patch) | |
| tree | 676444a7f8f342a9ed5ea3a9bb7e4b73b72c408a /frontend | |
| parent | Crawler+Indexer: Rust cleanup (diff) | |
| download | OSSE-b3b8c6b2060b7773d1e6ca23b140a7244b195a59.tar.gz OSSE-b3b8c6b2060b7773d1e6ca23b140a7244b195a59.tar.bz2 OSSE-b3b8c6b2060b7773d1e6ca23b140a7244b195a59.zip | |
Client->Frontend: Create yew frontend skeleton
We have replaced the client with a yew frontend.
Diffstat (limited to 'frontend')
| -rw-r--r-- | frontend/Cargo.toml | 9 | ||||
| -rw-r--r-- | frontend/index.html | 5 | ||||
| -rw-r--r-- | frontend/src/main.rs | 12 |
3 files changed, 26 insertions, 0 deletions
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 @@ +<!DOCTYPE html> +<html lang="en"> + <head> </head> + <body></body> +</html> 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! { + <h1>{ "Hello World" }</h1> + } +} + +fn main() { + yew::start_app::<App>(); +} |