Skip to content

Commit

Permalink
chore(ci): move example CI over to stable (#2502)
Browse files Browse the repository at this point in the history
  • Loading branch information
gbj authored Apr 5, 2024
1 parent 119c9ea commit 43178b5
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 34 deletions.
26 changes: 0 additions & 26 deletions .github/workflows/ci-stable-examples.yml

This file was deleted.

6 changes: 3 additions & 3 deletions examples/hackernews/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ actix-files = { version = "0.6", optional = true }
actix-web = { version = "4", optional = true, features = ["macros"] }
console_log = "1"
console_error_panic_hook = "0.1"
leptos = { path = "../../leptos", features = ["nightly"] }
leptos_meta = { path = "../../meta", features = ["nightly"] }
leptos = { path = "../../leptos" }
leptos_meta = { path = "../../meta" }
leptos_actix = { path = "../../integrations/actix", optional = true }
leptos_router = { path = "../../router", features = ["nightly"] }
leptos_router = { path = "../../router" }
log = "0.4"
serde = { version = "1", features = ["derive"] }
gloo-net = { version = "0.2", features = ["http"] }
Expand Down
2 changes: 1 addition & 1 deletion examples/hackernews/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,5 @@ fn main() {

_ = console_log::init_with_level(log::Level::Debug);
console_error_panic_hook::set_once();
mount_to_body(App)
leptos::mount_to_body(App)
}
2 changes: 1 addition & 1 deletion examples/hackernews/src/routes/stories.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ pub fn Stories() -> impl IntoView {

let hide_more_link = move || {
stories.get().unwrap_or(None).unwrap_or_default().len() < 28
|| pending()
|| pending.get()
};

view! {
Expand Down
4 changes: 2 additions & 2 deletions examples/hackernews/src/routes/story.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,15 +87,15 @@ pub fn Comment(comment: api::Comment) -> impl IntoView {
<a on:click=move |_| set_open.update(|n| *n = !*n)>
{
let comments_len = comment.comments.len();
move || if open() {
move || if open.get() {
"[-]".into()
} else {
format!("[+] {}{} collapsed", comments_len, pluralize(comments_len))
}
}
</a>
</div>
{move || open().then({
{move || open.get().then({
let comments = comment.comments.clone();
move || view! {
<ul class="comment-children">
Expand Down
2 changes: 1 addition & 1 deletion examples/spread/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ codegen-units = 1
lto = true

[dependencies]
leptos = { path = "../../leptos", features = ["csr", "nightly"] }
leptos = { path = "../../leptos", features = ["csr"] }
console_log = "1"
log = "0.4"
console_error_panic_hook = "0.1.7"

0 comments on commit 43178b5

Please sign in to comment.