diff --git a/web/Cargo.toml b/web/Cargo.toml index 98dcefe..dd2e007 100644 --- a/web/Cargo.toml +++ b/web/Cargo.toml @@ -26,7 +26,8 @@ serde-inline-default = "0.2" dashmap = "6.1" leptos = { version = "0.6", features = ["csr", "tracing"] } leptos_router = { version = "0.6", features = ["csr"] } -leptos-use = { version = "0.10", features = ["serde"] } +leptos-use = "0.13" +codee = { version = "0.2", features = ["serde_json"] } reqwest = { version = "0.12", features = ["json"] } apb = { path = "../apb", features = ["unstructured", "activitypub-fe", "activitypub-counters", "litepub", "did-core"] } uriproxy = { path = "../utils/uriproxy/" } diff --git a/web/src/app.rs b/web/src/app.rs index d97dfc1..3807953 100644 --- a/web/src/app.rs +++ b/web/src/app.rs @@ -4,7 +4,11 @@ use leptos_router::*; use crate::prelude::*; use crate::CONTACT; -use leptos_use::{signal_debounced, storage::use_local_storage, use_cookie_with_options, use_element_size, use_window_scroll, UseCookieOptions, utils::{FromToStringCodec, JsonCodec}, UseElementSizeReturn}; +use codee::string::{FromToStringCodec, JsonSerdeCodec}; +use leptos_use::{ + signal_debounced, storage::use_local_storage, use_cookie_with_options, use_element_size, use_window_scroll, + UseCookieOptions, UseElementSizeReturn +}; #[derive(Clone, Copy)] pub struct Feeds { @@ -59,7 +63,7 @@ pub fn App() -> impl IntoView { // .secure(true) .path("/") ); - let (config, set_config, _) = use_local_storage::("config"); + let (config, set_config, _) = use_local_storage::("config"); let auth = Auth { token, userid };