Fix the router and stub out a number of crates to get compiling

This commit is contained in:
Jonathan Kelley committed 2024-01-13 20:51:37 -08:00
1 parent 4c6e515da4
commit fae0b08e61
226 files changed
+1057 -1482

No files matched your search

+9 -9
View File
@@ -56,7 +56,7 @@ fn href_internal() {
}
#[component]
fn Root(cx: Scope) -> Element {
fn Root() -> Element {
render! {
Link {
to: Route::Test {},
@@ -94,7 +94,7 @@ fn href_external() {
}
#[component]
fn Root(cx: Scope) -> Element {
fn Root() -> Element {
render! {
Link {
to: "https://dioxuslabs.com/",
@@ -132,7 +132,7 @@ fn with_class() {
}
#[component]
fn Root(cx: Scope) -> Element {
fn Root() -> Element {
render! {
Link {
to: Route::Test {},
@@ -164,7 +164,7 @@ fn with_active_class_active() {
}
#[component]
fn Root(cx: Scope) -> Element {
fn Root() -> Element {
render! {
Link {
to: Route::Root {},
@@ -204,7 +204,7 @@ fn with_active_class_inactive() {
}
#[component]
fn Root(cx: Scope) -> Element {
fn Root() -> Element {
render! {
Link {
to: Route::Test {},
@@ -244,7 +244,7 @@ fn with_id() {
}
#[component]
fn Root(cx: Scope) -> Element {
fn Root() -> Element {
render! {
Link {
to: Route::Test {},
@@ -283,7 +283,7 @@ fn with_new_tab() {
}
#[component]
fn Root(cx: Scope) -> Element {
fn Root() -> Element {
render! {
Link {
to: Route::Test {},
@@ -315,7 +315,7 @@ fn with_new_tab_external() {
}
#[component]
fn Root(cx: Scope) -> Element {
fn Root() -> Element {
render! {
Link {
to: "https://dioxuslabs.com/",
@@ -354,7 +354,7 @@ fn with_rel() {
}
#[component]
fn Root(cx: Scope) -> Element {
fn Root() -> Element {
render! {
Link {
to: Route::Test {},
+7 -7
View File
@@ -48,14 +48,14 @@ fn prepare(path: impl Into<String>) -> VirtualDom {
}
#[component]
fn RootIndex(cx: Scope) -> Element {
fn RootIndex() -> Element {
render! {
h2 { "Root Index" }
}
}
#[component]
fn Fixed(cx: Scope) -> Element {
fn Fixed() -> Element {
render! {
h2 { "Fixed" }
Outlet::<Route> { }
@@ -63,21 +63,21 @@ fn prepare(path: impl Into<String>) -> VirtualDom {
}
#[component]
fn FixedIndex(cx: Scope) -> Element {
fn FixedIndex() -> Element {
render! {
h3 { "Fixed - Index" }
}
}
#[component]
fn FixedFixed(cx: Scope) -> Element {
fn FixedFixed() -> Element {
render! {
h3 { "Fixed - Fixed"}
}
}
#[component]
fn Parameter(cx: Scope, id: u8) -> Element {
fn Parameter(id: u8) -> Element {
render! {
h2 { "Parameter {id}" }
Outlet::<Route> { }
@@ -85,14 +85,14 @@ fn prepare(path: impl Into<String>) -> VirtualDom {
}
#[component]
fn ParameterIndex(cx: Scope, id: u8) -> Element {
fn ParameterIndex(id: u8) -> Element {
render! {
h3 { "Parameter - Index" }
}
}
#[component]
fn ParameterFixed(cx: Scope, id: u8) -> Element {
fn ParameterFixed(id: u8) -> Element {
render! {
h3 { "Parameter - Fixed" }
}