From db95c7ab308bfbf7c6f3d24f181c145be47b6841 Mon Sep 17 00:00:00 2001 From: Maccesch Date: Mon, 2 Sep 2024 13:21:56 +0100 Subject: [PATCH] all example dependencies updated to leptos 0.7beta --- examples/Cargo.toml | 4 ++-- examples/ssr/Cargo.toml | 2 +- examples/use_abs/Cargo.toml | 2 +- examples/use_active_element/Cargo.toml | 2 +- examples/use_and/Cargo.toml | 2 +- examples/use_broadcast_channel/Cargo.toml | 2 +- examples/use_ceil/Cargo.toml | 2 +- examples/use_cookie/Cargo.toml | 2 +- examples/use_event_listener/Cargo.toml | 2 +- examples/use_floor/Cargo.toml | 2 +- examples/use_geolocation/src/main.rs | 4 ++-- examples/use_interval_fn/Cargo.toml | 2 +- examples/use_locale/Cargo.toml | 2 +- examples/use_not/Cargo.toml | 2 +- examples/use_or/Cargo.toml | 2 +- examples/use_round/Cargo.toml | 2 +- examples/use_storage/Cargo.toml | 2 +- examples/use_websocket/Cargo.toml | 2 +- examples/use_webtransport_with_server/client/Cargo.toml | 2 +- 19 files changed, 21 insertions(+), 21 deletions(-) diff --git a/examples/Cargo.toml b/examples/Cargo.toml index 303fd71..59ccdad 100644 --- a/examples/Cargo.toml +++ b/examples/Cargo.toml @@ -72,8 +72,8 @@ members = [ exclude = ["ssr", "use_webtransport_with_server"] [workspace.dependencies] -leptos = { git = "https://github.com/leptos-rs/leptos" } -codee = { version = "0.2" } +leptos = "0.7.0-beta" +codee = "0.2" console_error_panic_hook = "0.1" console_log = "1" log = "0.4" diff --git a/examples/ssr/Cargo.toml b/examples/ssr/Cargo.toml index df36523..a70eb4f 100644 --- a/examples/ssr/Cargo.toml +++ b/examples/ssr/Cargo.toml @@ -12,7 +12,7 @@ codee.workspace = true console_error_panic_hook = "0.1" console_log = "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_meta = { git = "https://github.com/leptos-rs/leptos", features = [ "nightly", diff --git a/examples/use_abs/Cargo.toml b/examples/use_abs/Cargo.toml index 2f398ca..866f7ac 100644 --- a/examples/use_abs/Cargo.toml +++ b/examples/use_abs/Cargo.toml @@ -4,7 +4,7 @@ version = "0.1.0" edition = "2021" [dependencies] -leptos = { git = "https://github.com/leptos-rs/leptos", features = [ +leptos = { workspace = true, features = [ "nightly", "csr", ] } diff --git a/examples/use_active_element/Cargo.toml b/examples/use_active_element/Cargo.toml index a3775ed..10a3018 100644 --- a/examples/use_active_element/Cargo.toml +++ b/examples/use_active_element/Cargo.toml @@ -4,7 +4,7 @@ version = "0.1.0" edition = "2021" [dependencies] -leptos = { git = "https://github.com/leptos-rs/leptos", features = [ +leptos = { workspace = true, features = [ "nightly", "csr", ] } diff --git a/examples/use_and/Cargo.toml b/examples/use_and/Cargo.toml index eb92b8c..6c9a84c 100644 --- a/examples/use_and/Cargo.toml +++ b/examples/use_and/Cargo.toml @@ -4,7 +4,7 @@ version = "0.1.0" edition = "2021" [dependencies] -leptos = { git = "https://github.com/leptos-rs/leptos", features = [ +leptos = { workspace = true, features = [ "nightly", "csr", ] } diff --git a/examples/use_broadcast_channel/Cargo.toml b/examples/use_broadcast_channel/Cargo.toml index a8e262b..e8baf0a 100644 --- a/examples/use_broadcast_channel/Cargo.toml +++ b/examples/use_broadcast_channel/Cargo.toml @@ -4,7 +4,7 @@ version = "0.1.0" edition = "2021" [dependencies] -leptos = { git = "https://github.com/leptos-rs/leptos", features = [ +leptos = { workspace = true, features = [ "nightly", "csr", ] } diff --git a/examples/use_ceil/Cargo.toml b/examples/use_ceil/Cargo.toml index 46a5d90..7771b3e 100644 --- a/examples/use_ceil/Cargo.toml +++ b/examples/use_ceil/Cargo.toml @@ -4,7 +4,7 @@ version = "0.1.0" edition = "2021" [dependencies] -leptos = { git = "https://github.com/leptos-rs/leptos", features = [ +leptos = { workspace = true, features = [ "nightly", "csr", ] } diff --git a/examples/use_cookie/Cargo.toml b/examples/use_cookie/Cargo.toml index 903ebc6..a730a24 100644 --- a/examples/use_cookie/Cargo.toml +++ b/examples/use_cookie/Cargo.toml @@ -4,7 +4,7 @@ version = "0.1.0" edition = "2021" [dependencies] -leptos = { git = "https://github.com/leptos-rs/leptos", features = [ +leptos = { workspace = true, features = [ "nightly", "csr", ] } diff --git a/examples/use_event_listener/Cargo.toml b/examples/use_event_listener/Cargo.toml index ebc9999..5224b94 100644 --- a/examples/use_event_listener/Cargo.toml +++ b/examples/use_event_listener/Cargo.toml @@ -4,7 +4,7 @@ version = "0.1.0" edition = "2021" [dependencies] -leptos = { git = "https://github.com/leptos-rs/leptos", features = [ +leptos = { workspace = true, features = [ "nightly", "csr", ] } diff --git a/examples/use_floor/Cargo.toml b/examples/use_floor/Cargo.toml index 7a844f7..7317239 100644 --- a/examples/use_floor/Cargo.toml +++ b/examples/use_floor/Cargo.toml @@ -4,7 +4,7 @@ version = "0.1.0" edition = "2021" [dependencies] -leptos = { git = "https://github.com/leptos-rs/leptos", features = [ +leptos = { workspace = true, features = [ "nightly", "csr", ] } diff --git a/examples/use_geolocation/src/main.rs b/examples/use_geolocation/src/main.rs index 93b7023..140309c 100644 --- a/examples/use_geolocation/src/main.rs +++ b/examples/use_geolocation/src/main.rs @@ -16,7 +16,7 @@ fn Demo() -> impl IntoView {
             coords:
             {move || {
-                if let Some(coords) = coords() {
+                if let Some(coords) = coords.get() {
                     format!(
                         r#"{{
         accuracy: {},
@@ -42,7 +42,7 @@ fn Demo() -> impl IntoView {
             ,
             located_at: {located_at} ,
             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() }} ,
         
diff --git a/examples/use_interval_fn/Cargo.toml b/examples/use_interval_fn/Cargo.toml index 5b037fd..2edadac 100644 --- a/examples/use_interval_fn/Cargo.toml +++ b/examples/use_interval_fn/Cargo.toml @@ -4,7 +4,7 @@ version = "0.1.0" edition = "2021" [dependencies] -leptos = { git = "https://github.com/leptos-rs/leptos", features = [ +leptos = { workspace = true, features = [ "nightly", "csr", ] } diff --git a/examples/use_locale/Cargo.toml b/examples/use_locale/Cargo.toml index 27778c3..671a130 100644 --- a/examples/use_locale/Cargo.toml +++ b/examples/use_locale/Cargo.toml @@ -4,7 +4,7 @@ version = "0.1.0" edition = "2021" [dependencies] -leptos = { git = "https://github.com/leptos-rs/leptos", features = [ +leptos = { workspace = true, features = [ "nightly", "csr", ] } diff --git a/examples/use_not/Cargo.toml b/examples/use_not/Cargo.toml index 2d4d20a..f79c5a6 100644 --- a/examples/use_not/Cargo.toml +++ b/examples/use_not/Cargo.toml @@ -4,7 +4,7 @@ version = "0.1.0" edition = "2021" [dependencies] -leptos = { git = "https://github.com/leptos-rs/leptos", features = [ +leptos = { workspace = true, features = [ "nightly", "csr", ] } diff --git a/examples/use_or/Cargo.toml b/examples/use_or/Cargo.toml index 0e47729..fa2db45 100644 --- a/examples/use_or/Cargo.toml +++ b/examples/use_or/Cargo.toml @@ -4,7 +4,7 @@ version = "0.1.0" edition = "2021" [dependencies] -leptos = { git = "https://github.com/leptos-rs/leptos", features = [ +leptos = { workspace = true, features = [ "nightly", "csr", ] } diff --git a/examples/use_round/Cargo.toml b/examples/use_round/Cargo.toml index 7a0ac92..936e162 100644 --- a/examples/use_round/Cargo.toml +++ b/examples/use_round/Cargo.toml @@ -4,7 +4,7 @@ version = "0.1.0" edition = "2021" [dependencies] -leptos = { git = "https://github.com/leptos-rs/leptos", features = [ +leptos = { workspace = true, features = [ "nightly", "csr", ] } diff --git a/examples/use_storage/Cargo.toml b/examples/use_storage/Cargo.toml index 4d42e2b..148aa4b 100644 --- a/examples/use_storage/Cargo.toml +++ b/examples/use_storage/Cargo.toml @@ -7,7 +7,7 @@ edition = "2021" codee = { workspace = true, features = ["json_serde"] } console_error_panic_hook = "0.1" console_log = "1" -leptos = { git = "https://github.com/leptos-rs/leptos", features = [ +leptos = { workspace = true, features = [ "nightly", "csr", ] } diff --git a/examples/use_websocket/Cargo.toml b/examples/use_websocket/Cargo.toml index 01ff4a1..6b46c95 100644 --- a/examples/use_websocket/Cargo.toml +++ b/examples/use_websocket/Cargo.toml @@ -4,7 +4,7 @@ version = "0.1.0" edition = "2021" [dependencies] -leptos = { git = "https://github.com/leptos-rs/leptos", features = [ +leptos = { workspace = true, features = [ "nightly", "csr", ] } diff --git a/examples/use_webtransport_with_server/client/Cargo.toml b/examples/use_webtransport_with_server/client/Cargo.toml index 9c78a37..585c2d1 100644 --- a/examples/use_webtransport_with_server/client/Cargo.toml +++ b/examples/use_webtransport_with_server/client/Cargo.toml @@ -4,7 +4,7 @@ version = "0.1.0" edition = "2021" [dependencies] -leptos = { git = "https://github.com/leptos-rs/leptos", features = [ +leptos = { workspace = true, features = [ "nightly", "csr", ] }