fix: resolve type inference errors in app.rs and silence unused variable warnings in context menu
Some checks failed
Build MIPS Binary / build (push) Failing after 31s
Some checks failed
Build MIPS Binary / build (push) Failing after 31s
This commit is contained in:
@@ -100,7 +100,7 @@ fn InnerApp() -> impl IntoView {
|
|||||||
|
|
||||||
view! {
|
view! {
|
||||||
<div class="relative w-full h-screen" style="height: 100dvh;">
|
<div class="relative w-full h-screen" style="height: 100dvh;">
|
||||||
<Routes fallback=|| view! { <div class="p-4">"404 Not Found"</div> }>
|
<Routes fallback=|| view! { <div class="p-4">"404 Not Found"</div> }.into_any()>
|
||||||
<Route path=leptos_router::path!("/login") view=move || {
|
<Route path=leptos_router::path!("/login") view=move || {
|
||||||
let authenticated = authenticated_val();
|
let authenticated = authenticated_val();
|
||||||
let setup_needed = needs_setup.0.get();
|
let setup_needed = needs_setup.0.get();
|
||||||
@@ -115,7 +115,7 @@ fn InnerApp() -> impl IntoView {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
view! { <Login /> }
|
view! { <Login /> }.into_any()
|
||||||
} />
|
} />
|
||||||
<Route path=leptos_router::path!("/setup") view=move || {
|
<Route path=leptos_router::path!("/setup") view=move || {
|
||||||
Effect::new(move |_| {
|
Effect::new(move |_| {
|
||||||
@@ -125,7 +125,7 @@ fn InnerApp() -> impl IntoView {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
view! { <Setup /> }
|
view! { <Setup /> }.into_any()
|
||||||
} />
|
} />
|
||||||
|
|
||||||
<Route path=leptos_router::path!("/") view=move || {
|
<Route path=leptos_router::path!("/") view=move || {
|
||||||
@@ -162,7 +162,7 @@ fn InnerApp() -> impl IntoView {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
}
|
}.into_any()
|
||||||
}>
|
}>
|
||||||
<Show when=move || authenticated_val() fallback=|| ()>
|
<Show when=move || authenticated_val() fallback=|| ()>
|
||||||
<ProtectedLayout>
|
<ProtectedLayout>
|
||||||
@@ -174,7 +174,7 @@ fn InnerApp() -> impl IntoView {
|
|||||||
</ProtectedLayout>
|
</ProtectedLayout>
|
||||||
</Show>
|
</Show>
|
||||||
</Show>
|
</Show>
|
||||||
}
|
}.into_any()
|
||||||
}/>
|
}/>
|
||||||
|
|
||||||
<Route path=leptos_router::path!("/settings") view=move || {
|
<Route path=leptos_router::path!("/settings") view=move || {
|
||||||
@@ -188,13 +188,13 @@ fn InnerApp() -> impl IntoView {
|
|||||||
|
|
||||||
view! {
|
view! {
|
||||||
<Show when=move || !is_loading_val() fallback=|| ()>
|
<Show when=move || !is_loading_val() fallback=|| ()>
|
||||||
<Show when=move || authenticated_val() fallback=|| ()>
|
<Show when=move || authenticated fallback=|| ()>
|
||||||
<ProtectedLayout>
|
<ProtectedLayout>
|
||||||
<div class="p-4">"Settings Page (Coming Soon)"</div>
|
<div class="p-4">"Settings Page (Coming Soon)"</div>
|
||||||
</ProtectedLayout>
|
</ProtectedLayout>
|
||||||
</Show>
|
</Show>
|
||||||
</Show>
|
</Show>
|
||||||
}
|
}.into_any()
|
||||||
}/>
|
}/>
|
||||||
</Routes>
|
</Routes>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -139,7 +139,7 @@ pub fn ContextMenuTrigger(
|
|||||||
class=trigger_class
|
class=trigger_class
|
||||||
data-name="ContextMenuTrigger"
|
data-name="ContextMenuTrigger"
|
||||||
data-context-trigger=ctx.target_id
|
data-context-trigger=ctx.target_id
|
||||||
on:contextmenu=move |e: web_sys::MouseEvent| {
|
on:contextmenu=move |_e: web_sys::MouseEvent| {
|
||||||
if let Some(cb) = on_open {
|
if let Some(cb) = on_open {
|
||||||
cb.run(());
|
cb.run(());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user