diff --git a/web/Cargo.toml b/web/Cargo.toml index 9e5fc04..7dabfb5 100644 --- a/web/Cargo.toml +++ b/web/Cargo.toml @@ -20,16 +20,31 @@ leptos_meta = { version = "0.8" } leptos_router = { version = "0.8", features = ["nightly"] } strum.workspace = true tokio = { version = "1", features = ["rt-multi-thread"], optional = true } -wasm-bindgen = { version = "=0.2.104", optional = true } +wasm-bindgen = "0.2" +js-sys = "0.3" web-sys = { version = "0.3", features = [ - "Navigator", - "Window", + "Blob", "Clipboard", + "Crypto", + "Document", + "Element", + "Event", + "EventTarget", + "File", + "FileList", + "FileReader", + "HtmlElement", + "HtmlInputElement", + "HtmlTextAreaElement", + "Navigator", + "ProgressEvent", "Storage", + "Url", + "Window", ] } [features] -hydrate = ["leptos/hydrate", "dep:console_error_panic_hook", "dep:wasm-bindgen"] +hydrate = ["leptos/hydrate", "dep:console_error_panic_hook"] ssr = [ "dep:axum", "dep:tokio", diff --git a/web/src/app.rs b/web/src/app.rs index bc99423..1a8a186 100644 --- a/web/src/app.rs +++ b/web/src/app.rs @@ -1,5 +1,6 @@ use crate::pages::{ - aes::AesPage, des::DesPage, footer::Footer, header::Header, home::Home, not_found::NotFound, + aes::AesPage, aes_cbc::AesCbcPage, des::DesPage, footer::Footer, header::Header, home::Home, + not_found::NotFound, }; use leptos::prelude::*; use leptos_meta::{MetaTags, Stylesheet, Title, provide_meta_context}; @@ -49,6 +50,7 @@ pub fn App() -> impl IntoView { +