feat: update leptos

This commit is contained in:
luoxiao 2024-08-13 13:38:08 +08:00 committed by luoxiaozero
parent e123aec560
commit f01b900252
3 changed files with 57 additions and 65 deletions

View file

@ -16,6 +16,6 @@ thaw_components = { version = "0.2.0-alpha", path = "./thaw_components" }
thaw_macro = { version = "0.1.0-alpha", path = "./thaw_macro" } thaw_macro = { version = "0.1.0-alpha", path = "./thaw_macro" }
thaw_utils = { version = "0.1.0-alpha", path = "./thaw_utils" } thaw_utils = { version = "0.1.0-alpha", path = "./thaw_utils" }
leptos = { git = "https://github.com/leptos-rs/leptos", rev = "867036559489e86c1f25cdf7133d803d88b0579b" } leptos = { git = "https://github.com/leptos-rs/leptos", rev = "20af4928b2fffe017408d3f4e7330db22cf68277" }
leptos_meta = { git = "https://github.com/leptos-rs/leptos", rev = "867036559489e86c1f25cdf7133d803d88b0579b" } leptos_meta = { git = "https://github.com/leptos-rs/leptos", rev = "20af4928b2fffe017408d3f4e7330db22cf68277" }
leptos_router = { git = "https://github.com/leptos-rs/leptos", rev = "867036559489e86c1f25cdf7133d803d88b0579b" } leptos_router = { git = "https://github.com/leptos-rs/leptos", rev = "20af4928b2fffe017408d3f4e7330db22cf68277" }

View file

@ -58,8 +58,6 @@ fn TheRouter() -> impl IntoView {
<Route path=path!("/development/components") view=DevelopmentComponentsMdPage/> <Route path=path!("/development/components") view=DevelopmentComponentsMdPage/>
</ParentRoute> </ParentRoute>
<ParentRoute path=path!("/components") view=ComponentsPage> <ParentRoute path=path!("/components") view=ComponentsPage>
{
view! {
<Route path=path!("/accordion") view=AccordionMdPage/> <Route path=path!("/accordion") view=AccordionMdPage/>
<Route path=path!("/anchor") view=AnchorMdPage/> <Route path=path!("/anchor") view=AnchorMdPage/>
<Route path=path!("/auto-complete") view=AutoCompleteMdPage/> <Route path=path!("/auto-complete") view=AutoCompleteMdPage/>
@ -74,10 +72,8 @@ fn TheRouter() -> impl IntoView {
<Route path=path!("/color-picker") view=ColorPickerMdPage/> <Route path=path!("/color-picker") view=ColorPickerMdPage/>
<Route path=path!("/combobox") view=ComboboxMdPage/> <Route path=path!("/combobox") view=ComboboxMdPage/>
<Route path=path!("/config-provider") view=ConfigProviderMdPage/> <Route path=path!("/config-provider") view=ConfigProviderMdPage/>
} </ParentRoute>
} <ParentRoute path=path!("/components") view=ComponentsPage>
{
view! {
<Route path=path!("date-picker") view=DatePickerMdPage/> <Route path=path!("date-picker") view=DatePickerMdPage/>
<Route path=path!("/dialog") view=DialogMdPage/> <Route path=path!("/dialog") view=DialogMdPage/>
<Route path=path!("/divider") view=DividerMdPage/> <Route path=path!("/divider") view=DividerMdPage/>
@ -94,10 +90,8 @@ fn TheRouter() -> impl IntoView {
<Route path=path!("/pagination") view=PaginationMdPage/> <Route path=path!("/pagination") view=PaginationMdPage/>
<Route path=path!("/popover") view=PopoverMdPage/> <Route path=path!("/popover") view=PopoverMdPage/>
<Route path=path!("/progress-bar") view=ProgressBarMdPage/> <Route path=path!("/progress-bar") view=ProgressBarMdPage/>
} </ParentRoute>
} <ParentRoute path=path!("/components") view=ComponentsPage>
{
view! {
<Route path=path!("/radio") view=RadioMdPage/> <Route path=path!("/radio") view=RadioMdPage/>
<Route path=path!("/scrollbar") view=ScrollbarMdPage/> <Route path=path!("/scrollbar") view=ScrollbarMdPage/>
<Route path=path!("/skeleton") view=SkeletonMdPage/> <Route path=path!("/skeleton") view=SkeletonMdPage/>
@ -114,8 +108,6 @@ fn TheRouter() -> impl IntoView {
<Route path=path!("/time-picker") view=TimePickerMdPage/> <Route path=path!("/time-picker") view=TimePickerMdPage/>
<Route path=path!("/toast") view=ToastMdPage /> <Route path=path!("/toast") view=ToastMdPage />
<Route path=path!("/upload") view=UploadMdPage/> <Route path=path!("/upload") view=UploadMdPage/>
}
}
</ParentRoute> </ParentRoute>
</Routes> </Routes>
</Router> </Router>

View file

@ -9,10 +9,10 @@ crate-type = ["cdylib", "rlib"]
[dependencies] [dependencies]
axum = { version = "0.7.4", optional = true } axum = { version = "0.7.4", optional = true }
console_error_panic_hook = "0.1" console_error_panic_hook = "0.1"
leptos = { git = "https://github.com/leptos-rs/leptos", rev = "867036559489e86c1f25cdf7133d803d88b0579b" } leptos = { git = "https://github.com/leptos-rs/leptos", rev = "20af4928b2fffe017408d3f4e7330db22cf68277" }
leptos_axum = { git = "https://github.com/leptos-rs/leptos", rev = "867036559489e86c1f25cdf7133d803d88b0579b", optional = true } leptos_axum = { git = "https://github.com/leptos-rs/leptos", rev = "20af4928b2fffe017408d3f4e7330db22cf68277", optional = true }
leptos_meta = { git = "https://github.com/leptos-rs/leptos", rev = "867036559489e86c1f25cdf7133d803d88b0579b" } leptos_meta = { git = "https://github.com/leptos-rs/leptos", rev = "20af4928b2fffe017408d3f4e7330db22cf68277" }
leptos_router = { git = "https://github.com/leptos-rs/leptos", rev = "867036559489e86c1f25cdf7133d803d88b0579b" } leptos_router = { git = "https://github.com/leptos-rs/leptos", rev = "20af4928b2fffe017408d3f4e7330db22cf68277" }
tokio = { version = "1", features = ["rt-multi-thread"], optional = true } tokio = { version = "1", features = ["rt-multi-thread"], optional = true }
tower = { version = "0.4", optional = true } tower = { version = "0.4", optional = true }
tower-http = { version = "0.5", features = ["fs"], optional = true } tower-http = { version = "0.5", features = ["fs"], optional = true }