From 41b9ee4044071b56693d08723bb9daa428e6fcf8 Mon Sep 17 00:00:00 2001 From: alemi Date: Sun, 21 Apr 2024 23:41:30 +0200 Subject: [PATCH] feat(web): use forms for login and dbg --- web/src/auth.rs | 11 +++++++---- web/src/page.rs | 25 +++++++++++++------------ 2 files changed, 20 insertions(+), 16 deletions(-) diff --git a/web/src/auth.rs b/web/src/auth.rs index 2803d688..843bc9a7 100644 --- a/web/src/auth.rs +++ b/web/src/auth.rs @@ -36,9 +36,8 @@ pub fn LoginBox( } />
- - - + } > + + + +
} diff --git a/web/src/page.rs b/web/src/page.rs index 324675b6..ed9b7c4e 100644 --- a/web/src/page.rs +++ b/web/src/page.rs @@ -208,23 +208,24 @@ pub fn DebugPage() -> impl IntoView {
debug
+
(&url, auth).await { + Ok(x) => set_object.set(x), + Err(e) => set_object.set(serde_json::Value::String(e.to_string())), + } + }); + } > - +
- (&url, auth).await { - Ok(x) => set_object.set(x), - Err(e) => set_object.set(serde_json::Value::String(e.to_string())), - } - }); - } /> -
+
 				{move || serde_json::to_string_pretty(&object.get()).unwrap_or("unserializable".to_string())}