From 57e36c148c00c339d7b1b3426b7ca651edfc8a1b Mon Sep 17 00:00:00 2001 From: Baitinq Date: Sun, 30 Oct 2022 15:47:47 +0100 Subject: Frontend: Setup skeleton route support We now have the / and /search/ route boilerplate. This will allow us to switch to the /search/ route when searching. --- frontend/Cargo.toml | 1 + frontend/index.html | 4 ++-- frontend/src/main.rs | 35 ++++++++++++++++++++++++++++++++++- 3 files changed, 37 insertions(+), 3 deletions(-) (limited to 'frontend') diff --git a/frontend/Cargo.toml b/frontend/Cargo.toml index e348451..7cc9e0b 100644 --- a/frontend/Cargo.toml +++ b/frontend/Cargo.toml @@ -7,6 +7,7 @@ edition = "2021" [dependencies] yew = "0.19" +yew-router = "0.16" gloo = "0.8.0" web-sys = "0.3.60" wasm-bindgen = "0.2.83" diff --git a/frontend/index.html b/frontend/index.html index 35e10c8..abf3b18 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -7,7 +7,7 @@ OSSE - +