all example dependencies updated to leptos 0.7beta

This commit is contained in:
Maccesch 2024-09-02 13:21:56 +01:00
parent 554649aedc
commit db95c7ab30
19 changed files with 21 additions and 21 deletions

View file

@ -72,8 +72,8 @@ members = [
exclude = ["ssr", "use_webtransport_with_server"] exclude = ["ssr", "use_webtransport_with_server"]
[workspace.dependencies] [workspace.dependencies]
leptos = { git = "https://github.com/leptos-rs/leptos" } leptos = "0.7.0-beta"
codee = { version = "0.2" } codee = "0.2"
console_error_panic_hook = "0.1" console_error_panic_hook = "0.1"
console_log = "1" console_log = "1"
log = "0.4" log = "0.4"

View file

@ -12,7 +12,7 @@ codee.workspace = true
console_error_panic_hook = "0.1" console_error_panic_hook = "0.1"
console_log = "1" console_log = "1"
cfg-if = "1" cfg-if = "1"
leptos = { git = "https://github.com/leptos-rs/leptos", features = ["nightly"] } leptos = { workspace = true, features = ["nightly"] }
leptos_axum = { git = "https://github.com/leptos-rs/leptos", optional = true } leptos_axum = { git = "https://github.com/leptos-rs/leptos", optional = true }
leptos_meta = { git = "https://github.com/leptos-rs/leptos", features = [ leptos_meta = { git = "https://github.com/leptos-rs/leptos", features = [
"nightly", "nightly",

View file

@ -4,7 +4,7 @@ version = "0.1.0"
edition = "2021" edition = "2021"
[dependencies] [dependencies]
leptos = { git = "https://github.com/leptos-rs/leptos", features = [ leptos = { workspace = true, features = [
"nightly", "nightly",
"csr", "csr",
] } ] }

View file

@ -4,7 +4,7 @@ version = "0.1.0"
edition = "2021" edition = "2021"
[dependencies] [dependencies]
leptos = { git = "https://github.com/leptos-rs/leptos", features = [ leptos = { workspace = true, features = [
"nightly", "nightly",
"csr", "csr",
] } ] }

View file

@ -4,7 +4,7 @@ version = "0.1.0"
edition = "2021" edition = "2021"
[dependencies] [dependencies]
leptos = { git = "https://github.com/leptos-rs/leptos", features = [ leptos = { workspace = true, features = [
"nightly", "nightly",
"csr", "csr",
] } ] }

View file

@ -4,7 +4,7 @@ version = "0.1.0"
edition = "2021" edition = "2021"
[dependencies] [dependencies]
leptos = { git = "https://github.com/leptos-rs/leptos", features = [ leptos = { workspace = true, features = [
"nightly", "nightly",
"csr", "csr",
] } ] }

View file

@ -4,7 +4,7 @@ version = "0.1.0"
edition = "2021" edition = "2021"
[dependencies] [dependencies]
leptos = { git = "https://github.com/leptos-rs/leptos", features = [ leptos = { workspace = true, features = [
"nightly", "nightly",
"csr", "csr",
] } ] }

View file

@ -4,7 +4,7 @@ version = "0.1.0"
edition = "2021" edition = "2021"
[dependencies] [dependencies]
leptos = { git = "https://github.com/leptos-rs/leptos", features = [ leptos = { workspace = true, features = [
"nightly", "nightly",
"csr", "csr",
] } ] }

View file

@ -4,7 +4,7 @@ version = "0.1.0"
edition = "2021" edition = "2021"
[dependencies] [dependencies]
leptos = { git = "https://github.com/leptos-rs/leptos", features = [ leptos = { workspace = true, features = [
"nightly", "nightly",
"csr", "csr",
] } ] }

View file

@ -4,7 +4,7 @@ version = "0.1.0"
edition = "2021" edition = "2021"
[dependencies] [dependencies]
leptos = { git = "https://github.com/leptos-rs/leptos", features = [ leptos = { workspace = true, features = [
"nightly", "nightly",
"csr", "csr",
] } ] }

View file

@ -16,7 +16,7 @@ fn Demo() -> impl IntoView {
<pre lang="json"> <pre lang="json">
coords: coords:
{move || { {move || {
if let Some(coords) = coords() { if let Some(coords) = coords.get() {
format!( format!(
r#"{{ r#"{{
accuracy: {}, accuracy: {},
@ -42,7 +42,7 @@ fn Demo() -> impl IntoView {
, ,
located_at: {located_at} , located_at: {located_at} ,
error: error:
{move || if let Some(error) = error() { error.message() } else { "None".to_string() }} , {move || if let Some(error) = error.get() { error.message() } else { "None".to_string() }} ,
</pre> </pre>
<button on:click=move |_| pause()>"Pause watch"</button> <button on:click=move |_| pause()>"Pause watch"</button>
<button on:click=move |_| resume()>"Resume watch"</button> <button on:click=move |_| resume()>"Resume watch"</button>

View file

@ -4,7 +4,7 @@ version = "0.1.0"
edition = "2021" edition = "2021"
[dependencies] [dependencies]
leptos = { git = "https://github.com/leptos-rs/leptos", features = [ leptos = { workspace = true, features = [
"nightly", "nightly",
"csr", "csr",
] } ] }

View file

@ -4,7 +4,7 @@ version = "0.1.0"
edition = "2021" edition = "2021"
[dependencies] [dependencies]
leptos = { git = "https://github.com/leptos-rs/leptos", features = [ leptos = { workspace = true, features = [
"nightly", "nightly",
"csr", "csr",
] } ] }

View file

@ -4,7 +4,7 @@ version = "0.1.0"
edition = "2021" edition = "2021"
[dependencies] [dependencies]
leptos = { git = "https://github.com/leptos-rs/leptos", features = [ leptos = { workspace = true, features = [
"nightly", "nightly",
"csr", "csr",
] } ] }

View file

@ -4,7 +4,7 @@ version = "0.1.0"
edition = "2021" edition = "2021"
[dependencies] [dependencies]
leptos = { git = "https://github.com/leptos-rs/leptos", features = [ leptos = { workspace = true, features = [
"nightly", "nightly",
"csr", "csr",
] } ] }

View file

@ -4,7 +4,7 @@ version = "0.1.0"
edition = "2021" edition = "2021"
[dependencies] [dependencies]
leptos = { git = "https://github.com/leptos-rs/leptos", features = [ leptos = { workspace = true, features = [
"nightly", "nightly",
"csr", "csr",
] } ] }

View file

@ -7,7 +7,7 @@ edition = "2021"
codee = { workspace = true, features = ["json_serde"] } codee = { workspace = true, features = ["json_serde"] }
console_error_panic_hook = "0.1" console_error_panic_hook = "0.1"
console_log = "1" console_log = "1"
leptos = { git = "https://github.com/leptos-rs/leptos", features = [ leptos = { workspace = true, features = [
"nightly", "nightly",
"csr", "csr",
] } ] }

View file

@ -4,7 +4,7 @@ version = "0.1.0"
edition = "2021" edition = "2021"
[dependencies] [dependencies]
leptos = { git = "https://github.com/leptos-rs/leptos", features = [ leptos = { workspace = true, features = [
"nightly", "nightly",
"csr", "csr",
] } ] }

View file

@ -4,7 +4,7 @@ version = "0.1.0"
edition = "2021" edition = "2021"
[dependencies] [dependencies]
leptos = { git = "https://github.com/leptos-rs/leptos", features = [ leptos = { workspace = true, features = [
"nightly", "nightly",
"csr", "csr",
] } ] }