Merge branch 'master' into intigrate-collect-assets
This commit is contained in:
1 parent
ffb5de91d1
commit
f976e08f71
379 files changed
+1962
-13517
No files matched your search
@@ -1,4 +1,3 @@
|
||||
#![allow(non_snake_case)]
|
||||
use dioxus::prelude::*;
|
||||
use dioxus_router::prelude::*;
|
||||
use std::str::FromStr;
|
||||
@@ -27,6 +26,7 @@ where
|
||||
}
|
||||
}
|
||||
|
||||
#[component]
|
||||
fn App<R: Routable>(cx: Scope<AppProps<R>>) -> Element
|
||||
where
|
||||
<R as FromStr>::Err: std::fmt::Display,
|
||||
@@ -50,12 +50,12 @@ fn href_internal() {
|
||||
Test {},
|
||||
}
|
||||
|
||||
#[inline_props]
|
||||
fn Test(cx: Scope) -> Element {
|
||||
#[component]
|
||||
fn Test(_cx: Scope) -> Element {
|
||||
todo!()
|
||||
}
|
||||
|
||||
#[inline_props]
|
||||
#[component]
|
||||
fn Root(cx: Scope) -> Element {
|
||||
render! {
|
||||
Link {
|
||||
@@ -88,12 +88,12 @@ fn href_external() {
|
||||
Test {},
|
||||
}
|
||||
|
||||
#[inline_props]
|
||||
fn Test(cx: Scope) -> Element {
|
||||
#[component]
|
||||
fn Test(_cx: Scope) -> Element {
|
||||
todo!()
|
||||
}
|
||||
|
||||
#[inline_props]
|
||||
#[component]
|
||||
fn Root(cx: Scope) -> Element {
|
||||
render! {
|
||||
Link {
|
||||
@@ -126,12 +126,12 @@ fn with_class() {
|
||||
Test {},
|
||||
}
|
||||
|
||||
#[inline_props]
|
||||
fn Test(cx: Scope) -> Element {
|
||||
#[component]
|
||||
fn Test(_cx: Scope) -> Element {
|
||||
todo!()
|
||||
}
|
||||
|
||||
#[inline_props]
|
||||
#[component]
|
||||
fn Root(cx: Scope) -> Element {
|
||||
render! {
|
||||
Link {
|
||||
@@ -163,7 +163,7 @@ fn with_active_class_active() {
|
||||
Root {},
|
||||
}
|
||||
|
||||
#[inline_props]
|
||||
#[component]
|
||||
fn Root(cx: Scope) -> Element {
|
||||
render! {
|
||||
Link {
|
||||
@@ -198,12 +198,12 @@ fn with_active_class_inactive() {
|
||||
Test {},
|
||||
}
|
||||
|
||||
#[inline_props]
|
||||
fn Test(cx: Scope) -> Element {
|
||||
#[component]
|
||||
fn Test(_cx: Scope) -> Element {
|
||||
todo!()
|
||||
}
|
||||
|
||||
#[inline_props]
|
||||
#[component]
|
||||
fn Root(cx: Scope) -> Element {
|
||||
render! {
|
||||
Link {
|
||||
@@ -238,12 +238,12 @@ fn with_id() {
|
||||
Test {},
|
||||
}
|
||||
|
||||
#[inline_props]
|
||||
fn Test(cx: Scope) -> Element {
|
||||
#[component]
|
||||
fn Test(_cx: Scope) -> Element {
|
||||
todo!()
|
||||
}
|
||||
|
||||
#[inline_props]
|
||||
#[component]
|
||||
fn Root(cx: Scope) -> Element {
|
||||
render! {
|
||||
Link {
|
||||
@@ -277,12 +277,12 @@ fn with_new_tab() {
|
||||
Test {},
|
||||
}
|
||||
|
||||
#[inline_props]
|
||||
fn Test(cx: Scope) -> Element {
|
||||
#[component]
|
||||
fn Test(_cx: Scope) -> Element {
|
||||
todo!()
|
||||
}
|
||||
|
||||
#[inline_props]
|
||||
#[component]
|
||||
fn Root(cx: Scope) -> Element {
|
||||
render! {
|
||||
Link {
|
||||
@@ -314,7 +314,7 @@ fn with_new_tab_external() {
|
||||
Root {},
|
||||
}
|
||||
|
||||
#[inline_props]
|
||||
#[component]
|
||||
fn Root(cx: Scope) -> Element {
|
||||
render! {
|
||||
Link {
|
||||
@@ -348,12 +348,12 @@ fn with_rel() {
|
||||
Test {},
|
||||
}
|
||||
|
||||
#[inline_props]
|
||||
fn Test(cx: Scope) -> Element {
|
||||
#[component]
|
||||
fn Test(_cx: Scope) -> Element {
|
||||
todo!()
|
||||
}
|
||||
|
||||
#[inline_props]
|
||||
#[component]
|
||||
fn Root(cx: Scope) -> Element {
|
||||
render! {
|
||||
Link {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#![allow(non_snake_case, unused)]
|
||||
#![allow(unused)]
|
||||
|
||||
use dioxus::prelude::*;
|
||||
use dioxus_router::prelude::*;
|
||||
@@ -34,6 +34,7 @@ fn prepare(path: impl Into<String>) -> VirtualDom {
|
||||
path: String,
|
||||
}
|
||||
|
||||
#[component]
|
||||
fn App(cx: Scope<AppProps>) -> Element {
|
||||
render! {
|
||||
h1 { "App" }
|
||||
@@ -46,14 +47,14 @@ fn prepare(path: impl Into<String>) -> VirtualDom {
|
||||
}
|
||||
}
|
||||
|
||||
#[inline_props]
|
||||
#[component]
|
||||
fn RootIndex(cx: Scope) -> Element {
|
||||
render! {
|
||||
h2 { "Root Index" }
|
||||
}
|
||||
}
|
||||
|
||||
#[inline_props]
|
||||
#[component]
|
||||
fn Fixed(cx: Scope) -> Element {
|
||||
render! {
|
||||
h2 { "Fixed" }
|
||||
@@ -61,21 +62,21 @@ fn prepare(path: impl Into<String>) -> VirtualDom {
|
||||
}
|
||||
}
|
||||
|
||||
#[inline_props]
|
||||
#[component]
|
||||
fn FixedIndex(cx: Scope) -> Element {
|
||||
render! {
|
||||
h3 { "Fixed - Index" }
|
||||
}
|
||||
}
|
||||
|
||||
#[inline_props]
|
||||
#[component]
|
||||
fn FixedFixed(cx: Scope) -> Element {
|
||||
render! {
|
||||
h3 { "Fixed - Fixed"}
|
||||
}
|
||||
}
|
||||
|
||||
#[inline_props]
|
||||
#[component]
|
||||
fn Parameter(cx: Scope, id: u8) -> Element {
|
||||
render! {
|
||||
h2 { "Parameter {id}" }
|
||||
@@ -83,14 +84,14 @@ fn prepare(path: impl Into<String>) -> VirtualDom {
|
||||
}
|
||||
}
|
||||
|
||||
#[inline_props]
|
||||
#[component]
|
||||
fn ParameterIndex(cx: Scope, id: u8) -> Element {
|
||||
render! {
|
||||
h3 { "Parameter - Index" }
|
||||
}
|
||||
}
|
||||
|
||||
#[inline_props]
|
||||
#[component]
|
||||
fn ParameterFixed(cx: Scope, id: u8) -> Element {
|
||||
render! {
|
||||
h3 { "Parameter - Fixed" }
|
||||
|
||||
Reference in new issue
Block a user