Greg Johnston
151c58733b
docs: clean up methods
documentation
2023-04-11 14:37:12 -04:00
Greg Johnston
764192af36
feat: allow multiple HTTP request methods/verbs ( #695 )
2023-04-10 16:42:15 -04:00
novacrazy
be7b9eea25
Merge branch 'main' of https://github.com/leptos-rs/leptos
2023-04-07 14:09:10 -05:00
Greg Johnston
016ad6b7a6
feat: make __Props
imports unnecessary ( closes #746 ) ( #828 )
2023-04-07 15:06:10 -04:00
Mark Catley
2170be8e01
chore: deny warnings on github actions ( #814 )
...
Enabling on all except for checking examples to start. I'll fix those
and add it as a follow up.
Closes #795
2023-04-07 09:28:48 -04:00
novacrazy
7ccb2d9f44
Simplify SsrMode enum
2023-04-07 05:10:55 -05:00
novacrazy
de9b2998ac
More inlining
2023-04-07 05:09:24 -05:00
Greg Johnston
fe4d2382b8
fix: prevent router panic on root-level <Redirect/>
during route list generation ( #801 )
2023-04-04 21:36:03 -04:00
Greg Johnston
9502de561b
fix: warnings about untracked signal access in <Router/>
( #790 )
2023-04-02 12:28:58 -04:00
Greg Johnston
c9f75d82d6
docs: warn if you add something that's not a <Route/>
inside <Routes/>
2023-03-31 16:39:06 -04:00
Kaszanas
7aa4d9e6db
feat: Added `<ProtectedRoute/> component to route file ( #741 )
2023-03-31 14:50:46 -04:00
Greg Johnston
16917997cd
fix: prevent forms from entering infinite loops (closes issue #760 ) ( #762 )
2023-03-30 16:28:49 -04:00
Greg Johnston
f42568d262
fix: <Redirect/>
between nested routes at same level ( #767 )
2023-03-30 16:28:32 -04:00
Houski
97bbdf561a
feat: added the id
attribute to the Leptos router <A/>
tag ( #770 )
2023-03-30 16:28:08 -04:00
Andrew Chang-DeWitt
c2fdd2cd70
fix: include missing query params in navigation when <ActionForm/>
receives a redirect ( #728 )
...
Previous solution in #727 included manually inserted `?` when a leading
`?` is present automatically in `Url.search`.
2023-03-22 20:05:21 -04:00
Greg Johnston
286f3eebe4
fix: relative routing should update when navigating between <Outlet/>
s (closes issue #725 ) ( #729 )
...
* clear some cruft out of the navigation code
* fix issue #725 (correctly reactively resolving paths)
2023-03-22 19:59:08 -04:00
Greg Johnston
666d53e2ba
feat: <ActionForm/>
improvements ( #676 )
2023-03-13 10:16:02 -04:00
martin frances
c66b673067
chore: <Form/>
component Removed unused variables. ( #640 )
2023-03-07 14:04:55 -05:00
IchHabeKeineNamen
0052b10df3
docs: fix instruction typos ( #631 )
2023-03-06 09:05:21 -05:00
Greg Johnston
02e2948e00
fix: suppress warnings caused by resource loading in generate_route_list
( closes #582 ) ( #621 )
2023-03-03 13:20:38 -05:00
Greg Johnston
bd86125629
feat: allow easier client-side form validation ( closes #413 ) ( #620 )
2023-03-03 13:19:54 -05:00
martin frances
2dd9116a20
chore: clippy - simplified conditional logic in transition.rs. ( #615 )
2023-03-03 09:06:56 -05:00
Azz
b153ab51ee
feat: support rkyv
encoding ( #577 )
2023-02-26 16:12:53 -05:00
g-re-g
3648af0d9d
fix: correct scheme handling in router, and improve matching code by removing regexes ( #569 )
2023-02-26 07:15:14 -05:00
Fangdun Tsai
e9c4b490e5
feat: viz integration ( #506 )
2023-02-21 12:29:15 -05:00
Ben Wishovich
322041917d
fix issue with redirects in server fns creating multiple Location headers ( #550 )
2023-02-20 08:55:47 -05:00
Greg Johnston
4ff08f042b
change: pass Scope
as argument into Resource::read()
and Resource::with()
( #542 )
2023-02-19 19:52:31 -05:00
jquesada2016
f2f52b2533
change: move signal method implementations into traits in signal prelude ( #490 )
2023-02-18 07:30:03 -05:00
Greg Johnston
586f524015
feature: in-order streaming and async
rendering ( #496 )
2023-02-17 17:31:32 -05:00
Greg Johnston
1dbcfe2861
change: reorganize module exports and reexports ( #503 )
2023-02-12 17:04:36 -05:00
Greg Johnston
6bab4ad966
apply new formatting everywhere ( #502 )
2023-02-11 14:30:06 -05:00
Greg Johnston
cf7deaaea3
fix: proper disposal of nested route scopes ( #499 )
2023-02-11 14:12:59 -05:00
martin frances
e59ee6329e
Minor: Clippy router now uses types OnFormData and OnResponse. ( #484 )
2023-02-07 09:52:29 -05:00
Jan
b0a98d8b4f
Better styling for router related components ( #477 )
2023-02-06 18:34:39 -05:00
Greg Johnston
4034aa9c11
feature: add isomorphic <Redirect/>
component ( closes #412 ) ( #466 )
2023-02-04 10:02:17 -05:00
Greg Johnston
6d0d70cd17
perf: further reduce WASM binary size by ~5-7% ( #459 )
...
* Update `leptos_router` docs
* Further reducing WASM bundle sizes
2023-02-03 17:38:44 -05:00
Greg Johnston
25c313aeb5
fix: stack overflow in with nested outlet ( closes #452 ) ( #453 )
2023-02-03 11:03:02 -05:00
Greg Johnston
6b683f9ab6
fix: leptos_router
hydration issues ( #450 )
2023-02-03 06:50:36 -05:00
Greg Johnston
05277f03b6
fix: successfully pass context to nested routes via <Outlet/>
( #447 )
2023-02-02 21:00:32 -05:00
Greg Johnston
b0762bbfb5
Make RouteDefinition
public ( #430 )
2023-02-01 19:20:50 -05:00
Greg Johnston
7101a2f55e
Add Children
type alias
2023-01-28 22:32:00 -05:00
Greg Johnston
395336a8c0
Correctly set pending
state with ActionForm
2023-01-27 12:19:20 -05:00
Greg Johnston
b84906e6dc
ActionForm
should clear input
as Action::dispatch()
does
2023-01-27 12:15:50 -05:00
Greg Johnston
b861f84e40
Fix a large number of small issues in docs ( #386 )
...
* Fix example links in docs
* Restore missing CSR READMEs
* Document need to enable features on `leptos_router` and `leptos_meta`
* Add "Is it production ready?" to FAQs
* Document which types are provided as contexts in server integrations
* Fix broken links and other issues in docs
2023-01-26 21:44:01 -05:00
Greg Johnston
fc7199f188
Fix context in outlets ( #374 )
...
* Add `Scope::parent()` to make access to parent `Scope` possible.
* Handle context properly in nested routes
2023-01-25 22:02:43 -05:00
Markus Kohlhase
0b36b68846
Replace urlencoding with percent-encoding ( #365 )
...
Motivation: `percent-encoding` is from the Servo team and part of the `url` crate.
2023-01-25 20:15:00 -05:00
Martin
7aa0181192
Removed unused variables.
2023-01-23 09:46:28 +00:00
Martin
7f9919e2d5
Clippy fixes: redundant clone, .to_string() issues.
2023-01-22 14:03:15 +00:00
Greg Johnston
fc2d6ef19d
Merge pull request #343 from killertux/fix/fix-query-params-parser
2023-01-21 17:23:39 -05:00
Clemente
cbb1e4c9d2
Update docs
2023-01-21 11:19:28 -03:00
Clemente
dbccf525ac
Added some tests
2023-01-21 11:17:25 -03:00
Clemente
18eecd9606
Use URLSearchParams to handle client side query param logic
2023-01-20 18:11:49 -03:00
Greg Johnston
5fc8907b85
Remove extraneous log
2023-01-20 10:37:14 -05:00
Greg Johnston
678990194f
Update RouteContext.path()
value when params change but route has not change ( closes #340 )
2023-01-20 10:36:48 -05:00
Clemente
e4c9109278
Fix query params behaviour difference between SSR and Hydrate
2023-01-20 09:13:18 -03:00
Greg Johnston
7df67444f9
cargo fmt
fix
2023-01-17 12:45:59 -05:00
Greg Johnston
3517820afd
Restore missing docs on <A/>
component
2023-01-17 12:40:23 -05:00
Greg Johnston
f7d5567a35
Fix fallback
(signature and functionality)
2023-01-16 19:55:32 -05:00
Greg Johnston
46254a18f3
Improve router
feature warning
2023-01-10 21:10:27 -05:00
Greg Johnston
ad34a5d9c6
Update name to leptos-rs/leptos
2023-01-09 21:59:13 -05:00
Greg Johnston
c8f0988e53
Merge pull request #292 from gbj/router-warnings
...
Implement `state` and `replace` correctly in `leptos_router` and clear warnings
2023-01-09 21:11:28 -05:00
Greg Johnston
64f0f8879b
Implement state
and replace
correctly in leptos_router
and clear warnings
2023-01-09 21:10:42 -05:00
Greg Johnston
4df3687463
Forbid unsafe code in all packages
2023-01-09 19:48:51 -05:00
Greg Johnston
78825401c5
Merge pull request #288 from gbj/new-logo
...
New logo
2023-01-09 19:34:10 -05:00
Greg Johnston
a000c84e1a
Fix scope disposal code in Router (closes issue #240 )
2023-01-09 19:17:37 -05:00
benwis
dad84b5867
Merge branch 'main' into generated_routes
2023-01-07 21:17:18 -08:00
benwis
c41cf879d1
Formatting
2023-01-07 15:44:35 -08:00
Ben Wishovich
1d25134213
Merge branch 'main' into generated_routes
2023-01-07 14:58:26 -08:00
Greg Johnston
f2842cf14e
children
should take FnOnce(Scope) -> Fragment
, to ease need of cloning etc.
2023-01-07 17:04:58 -05:00
Martin
7acc309f66
Minor: Clippy format!() all variables now inlined.
2023-01-07 15:46:47 +00:00
benwis
677e4f2540
Leptos can now generate routes and provide them to the Axum router. More
...
testing and Actix version to come
2023-01-06 19:52:38 -08:00
benwis
63b1837315
First pass of method to generate routelist
2023-01-06 14:08:45 -08:00
Greg Johnston
05ffd8c989
Add all the missing router
tests
2023-01-06 12:48:45 -05:00
Greg Johnston
13bdef22bd
Fixes off-by-one error in the router that was causing inappropriate scope disposal
2023-01-05 09:47:03 -05:00
Greg Johnston
d5bda04306
<Outlet/>
should dispose of child scopes if it needs to
2023-01-04 22:39:32 -05:00
Greg Johnston
cab7360bef
Fix hydration mismatch in <Outlet/>
2023-01-04 15:32:39 -05:00
Greg Johnston
5dffb0a803
Document how to modularize/externalize route definitions
2023-01-03 19:38:11 -05:00
Greg Johnston
e2a5c2d78f
Fix issues with route matching on different sub-routes with same path (closes issue #229 )
2023-01-03 19:32:58 -05:00
Greg Johnston
ca679ec496
chore: clear warning
2023-01-03 19:06:59 -05:00
Greg Johnston
10282857fe
chore: clear warnings
2023-01-03 18:47:21 -05:00
Greg Johnston
263d5b1d89
Allow path
prop on <Route/>
to be any type that impl std::fmt::Display
2023-01-03 18:37:43 -05:00
Greg Johnston
6a4cbbf266
Specify html::a
to suppress warning
2023-01-03 16:07:51 -05:00
Greg Johnston
cc1d15989e
Update router to new action APIs
2022-12-30 15:36:01 -05:00
Greg Johnston
e06946e5a4
stable
support for router
2022-12-29 18:40:50 -05:00
Greg Johnston
333f60cfb7
Changes for stable
in router and meta
2022-12-29 18:10:14 -05:00
Greg Johnston
70f6297277
Merge branch 'leptos_dom_v2' of https://github.com/jquesada2016/leptos into jquesada2016-leptos_dom_v2
2022-12-29 09:32:12 -05:00
Greg Johnston
4b1fce4c9c
Revert "Merge branch 'main' into pr/119"
...
This reverts commit 63f680f37d
, reversing
changes made to 50ba796f49
.
2022-12-28 15:06:46 -05:00
Greg Johnston
63f680f37d
Merge branch 'main' into pr/119
2022-12-28 14:21:54 -05:00
Greg Johnston
e3c4e9f6a4
chores: fix failing tests, update docs, suppress warnings
2022-12-28 11:33:26 -05:00
Matt Crane
587a85baaf
Fix erros in counter-isomorphic with stable
2022-12-24 12:13:35 -08:00
Jose Quesada
aa9f8f24b0
renamed element
to view
on <Route />
and RouteDefinition
2022-12-22 17:41:01 -06:00
Jose Quesada
d2ba8f5d46
exporting everything from matching
2022-12-22 17:30:30 -06:00
Greg Johnston
66ac7d2a9d
Fix hydration of <Routes/>
2022-12-21 07:58:26 -05:00
Greg Johnston
557bd25e2c
Clear warnings
2022-12-19 07:39:30 -05:00
Greg Johnston
3195ab4ffc
Get Suspense
/Transition
hydration working
2022-12-18 07:38:51 -05:00
Greg Johnston
9c6aaed0a8
Fix issue of <Routes/>
mismatch
2022-12-17 08:28:22 -05:00
Greg Johnston
d65fde1ed4
Fix Link
in SSR
2022-12-16 12:17:41 -05:00
Jose Quesada
a591d54a22
changed router to directly return children, rather than a closure to not break tracing continuity
2022-12-15 13:53:39 -06:00
Jose Quesada
5603fac109
ported Route
2022-12-15 13:07:09 -06:00
Jose Quesada
8adf9108c5
ported Routes
2022-12-15 13:00:53 -06:00