feat: update dependencies

This commit is contained in:
luoxiao 2024-08-15 00:59:16 +08:00 committed by luoxiaozero
parent d0713434d7
commit d4093f6ca6
11 changed files with 37 additions and 32 deletions

View file

@ -12,9 +12,9 @@ leptos_meta = { workspace = true }
leptos_router = { workspace = true }
thaw = { path = "../thaw" }
demo_markdown = { path = "../demo_markdown" }
icondata = "0.3.0"
palette = "0.7.4"
chrono = "0.4.33"
icondata = "0.3.1"
palette = "0.7.6"
chrono = "0.4.38"
cfg-if = "1.0.0"
# leptos-use = "0.10.10"
send_wrapper = "0.6"

View file

@ -10,8 +10,8 @@ edition = "2021"
proc-macro = true
[dependencies]
quote = "1.0.35"
comrak = "0.21.0"
proc-macro2 = "1.0.78"
syn = "2.0.48"
syntect = "5.1.0"
quote = "1.0.36"
comrak = "0.26.0"
proc-macro2 = "1.0.86"
syn = "2.0.74"
syntect = "5.2.0"

View file

@ -168,6 +168,12 @@ fn iter_nodes<'a>(
NodeValue::Image(_) => quote!("Image todo!!!"),
NodeValue::FootnoteReference(_) => quote!("FootnoteReference todo!!!"),
NodeValue::MultilineBlockQuote(_) => quote!("FootnoteReference todo!!!"),
NodeValue::Math(_) => quote!("Math todo!!!"),
NodeValue::Escaped => quote!("Escaped todo!!!"),
NodeValue::WikiLink(_) => quote!("WikiLink todo!!!"),
NodeValue::Underline => quote!("Underline todo!!!"),
NodeValue::SpoileredText => quote!("SpoileredText todo!!!"),
NodeValue::EscapedTag(_) => quote!("EscapedTag todo!!!"),
}
}

View file

@ -7,16 +7,16 @@ edition = "2021"
crate-type = ["cdylib", "rlib"]
[dependencies]
axum = { version = "0.7.4", optional = true }
axum = { version = "0.7.5", optional = true }
console_error_panic_hook = "0.1"
leptos = { git = "https://github.com/leptos-rs/leptos", rev = "20af4928b2fffe017408d3f4e7330db22cf68277" }
leptos_axum = { git = "https://github.com/leptos-rs/leptos", rev = "20af4928b2fffe017408d3f4e7330db22cf68277", optional = true }
leptos_meta = { git = "https://github.com/leptos-rs/leptos", rev = "20af4928b2fffe017408d3f4e7330db22cf68277" }
leptos_router = { git = "https://github.com/leptos-rs/leptos", rev = "20af4928b2fffe017408d3f4e7330db22cf68277" }
tokio = { version = "1", features = ["rt-multi-thread"], optional = true }
tower = { version = "0.4", optional = true }
tower = { version = "0.5.0", optional = true }
tower-http = { version = "0.5", features = ["fs"], optional = true }
wasm-bindgen = "=0.2.92"
wasm-bindgen = "=0.2.93"
thiserror = "1"
tracing = { version = "0.1", optional = true }
http = "1"

View file

@ -18,7 +18,7 @@ leptos = { workspace = true }
thaw_components = { workspace = true }
thaw_macro = { workspace = true }
thaw_utils = { workspace = true }
web-sys = { version = "0.3.69", features = [
web-sys = { version = "0.3.70", features = [
"DomRect",
"File",
"FileList",
@ -28,14 +28,14 @@ web-sys = { version = "0.3.69", features = [
"TreeWalker",
"NodeFilter",
] }
wasm-bindgen = "0.2.92"
wasm-bindgen = "0.2.93"
icondata_core = "0.1.0"
icondata_ai = "0.0.10"
uuid = { version = "1.10.0", features = ["v4", "js"] }
cfg-if = "1.0.0"
chrono = "0.4.35"
palette = "0.7.5"
num-traits = "0.2.18"
chrono = "0.4.38"
palette = "0.7.6"
num-traits = "0.2.19"
send_wrapper = "0.6"
[features]

View file

@ -27,8 +27,8 @@ where
3u32
});
let mut node_filter = NodeFilter::new();
node_filter.accept_node(cb.as_ref().unchecked_ref());
let node_filter = NodeFilter::new();
node_filter.set_accept_node(cb.as_ref().unchecked_ref());
let tw = document()
.create_tree_walker_with_what_to_show_and_filter(el, 0x1, Some(&node_filter))

View file

@ -49,11 +49,10 @@ pub fn BackTop(
{
let scroll_el = send_wrapper::SendWrapper::new(scroll_el.clone());
scroll_to_top.set_value(Some(BoxCallback::new(move || {
scroll_el.scroll_to_with_scroll_to_options(
web_sys::ScrollToOptions::new()
.top(0.0)
.behavior(web_sys::ScrollBehavior::Smooth),
);
let options = web_sys::ScrollToOptions::new();
options.set_top(0.0);
options.set_behavior(web_sys::ScrollBehavior::Smooth);
scroll_el.scroll_to_with_scroll_to_options(&options);
})));
}

View file

@ -299,9 +299,9 @@ impl PanelRef {
};
use wasm_bindgen::JsCast;
if let Ok(slected_el) = slected_el.dyn_into::<web_sys::HtmlElement>() {
scrollbar_ref.scroll_to_with_scroll_to_options(
web_sys::ScrollToOptions::new().top(f64::from(slected_el.offset_top())),
);
let options = web_sys::ScrollToOptions::new();
options.set_top(f64::from(slected_el.offset_top()));
scrollbar_ref.scroll_to_with_scroll_to_options(&options);
}
}

View file

@ -14,7 +14,7 @@ license = "MIT"
[dependencies]
leptos = { workspace = true }
thaw_utils = { workspace = true }
web-sys = { version = "0.3.69", features = ["DomRect"] }
web-sys = { version = "0.3.70", features = ["DomRect"] }
cfg-if = "1.0.0"
uuid = { version = "1.10.0", features = ["v4", "js"] }
send_wrapper = "0.6"

View file

@ -16,5 +16,5 @@ proc-macro = true
[dependencies]
quote = "1.0.36"
syn = "2.0.60"
proc-macro2 = "1.0.81"
syn = "2.0.74"
proc-macro2 = "1.0.86"

View file

@ -14,10 +14,10 @@ license = "MIT"
[dependencies]
leptos = { workspace = true }
leptos_meta = { workspace = true, optional = true }
web-sys = "0.3.69"
wasm-bindgen = "0.2.92"
web-sys = "0.3.70"
wasm-bindgen = "0.2.93"
cfg-if = "1.0.0"
chrono = "0.4.35"
chrono = "0.4.38"
send_wrapper = "0.6"
[features]