about summary refs log tree commit diff
path: root/frontend
diff options
context:
space:
mode:
authorBaitinq <[email protected]>2022-10-24 01:53:49 +0200
committerBaitinq <[email protected]>2022-10-24 01:53:51 +0200
commitb3b8c6b2060b7773d1e6ca23b140a7244b195a59 (patch)
tree676444a7f8f342a9ed5ea3a9bb7e4b73b72c408a /frontend
parentCrawler+Indexer: Rust cleanup (diff)
downloadOSSE-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 '')
-rw-r--r--frontend/Cargo.toml (renamed from client/Cargo.toml)7
-rw-r--r--frontend/index.html5
-rw-r--r--frontend/src/main.rs12
3 files changed, 19 insertions, 5 deletions
diff --git a/client/Cargo.toml b/frontend/Cargo.toml
index 1cd3c2a..2f2715c 100644
--- a/client/Cargo.toml
+++ b/frontend/Cargo.toml
@@ -1,12 +1,9 @@
 [package]
-name = "client"
+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]
-
-[[bin]]
-name = "client"
-path = "src/main.rs"
+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>();
+}