Greg Johnston
29cf1f4814
add server redirects
2024-08-01 19:42:20 -04:00
Greg Johnston
56977411f2
chore: clippy and unused dependencies in integrations
2024-08-01 19:41:13 -04:00
Greg Johnston
caf797dba0
refactor integrations and add Actix integration
2024-08-01 19:41:13 -04:00
Greg Johnston
39607adc94
initial work on meta
2024-08-01 19:40:24 -04:00
Oleg Shatov
b3db094618
chore: remove cfg
-related warnings ( #2654 )
2024-07-03 06:49:32 -04:00
Chris
fb5d8513ff
docs: generate link to definition ( #2656 )
2024-07-03 06:46:02 -04:00
Greg Johnston
d74af819a0
fix: invalid Location
header when using leptos_actix::redirect()
without JS/WASM ( #2507 )
2024-04-08 20:10:09 -04:00
sify21
104c09f3bf
register server_fn first to allow for wildcard Route path ( #2435 )
...
It's normal to have a `NotFound` page with a wildcard path like this
```
<Routes>
...
<Route path="*any" view=NotFound>
</Routes>
```
In `ssr` mode, most servers do a `first match win` approach, so we
should register server functions before view routes, or else a wildcard
route would block all api requests.
https://discord.com/channels/1031524867910148188/1218508054442545185
Signed-off-by: 司芳源 <sify21@163.com>
2024-03-19 09:37:42 -07:00
Paul Hansen
6a83161368
chore: add MSRV ( #2360 )
2024-02-28 07:19:09 -05:00
zoomiti
4809cf473e
feat: provide leptos_router::Method
via context ( #1808 ) ( #2315 )
2024-02-26 21:25:53 -05:00
Tadas Dailyda
aa977001c1
feat: add support for trailing slashes ( closes #2154 ) ( #2217 )
2024-02-26 20:56:44 -05:00
zoomiti
753bf1ed54
Fix Broken Doc links and Deprecate FromUtf8Error
in oco.rs
( #2318 )
...
* fix: deprecate `FromUtf8Error` in `oco.rs`
* chore: fix broken doc links (#859 )
* chore: fix broken doc link to server attribute macro
* cargo fmt
2024-02-21 19:24:40 -08:00
SleeplessOne1917
1ddb39e9bd
docs: typo in actix integrations docs ( #2258 )
...
Co-authored-by: SleeplessOne1917 <insomnia-void@protonmail.com>
2024-02-04 20:57:51 -05:00
Greg Johnston
a834c03974
fix: bug with Actix redirects ( #2246 )
2024-01-31 09:14:40 -05:00
Greg Johnston
1b5961edaa
fix: fix type inference on extract()
functions ( #2233 )
2024-01-26 17:54:42 -05:00
Greg Johnston
567644df8f
clarify docs here
2024-01-20 14:29:22 -05:00
Greg Johnston
1ad7ee8a03
generalize error redirect behavior across integrations
2024-01-19 14:16:58 -05:00
Greg Johnston
5e08253521
get both client and server side working
2024-01-19 14:16:58 -05:00
Greg Johnston
cc6f65cd83
initial version of server action error handling without JS
2024-01-19 14:16:58 -05:00
Greg Johnston
853c080707
add missing server fn registration
2024-01-19 14:16:18 -05:00
Greg Johnston
5e6f4403ca
set up redirects in Actix
2024-01-19 14:16:18 -05:00
Greg Johnston
c8fbee18c8
finished Actix support?
2024-01-19 14:16:17 -05:00
Greg Johnston
e1a9856ca9
more Actix work
2024-01-19 14:16:17 -05:00
Greg Johnston
60efaefff4
start Actix work
2024-01-19 14:16:17 -05:00
Greg Johnston
ae1de88916
Revert "Better handling for trailing slashes. ( #2154 ) ( #2172 )"
...
This reverts commit 1eaf886481
.
2024-01-19 10:27:38 -05:00
Cody Casterline
1eaf886481
Better handling for trailing slashes. ( #2154 ) ( #2172 )
...
* retain trailing slashes in paths but leave matching trail-slash-insensitive
* fix: Allow trailing slashes to remain in leptos_path.
* Better handling for trailing slashes. (#2154 )
This adds a trailing_slash option to <Router> and <Route>.
By default, this option is backward compatible with current Leptos
behavior, but users can opt into two new modes for handling trailing
slashes.
* cargo fmt
* Fix redirect routes for wildcard patterns.
* Clippy fixies
* (Re)Reduce the scope of PossibleBranchContext's internals.
* Test real code, not copied code.
* Test TrailingSlash redirects.
* Fixes and more tests for matching "" && "/".
This path is the exception to the rule and *should* be treated
as equivalent regardless of its trailing slash.
* cargo fmt
---------
Co-authored-by: Tadas Dailyda <tadas@dailyda.com>
2024-01-11 13:51:31 -08:00
Niklas Eicker
fb0a62f3f6
fix: support additional context for route generation ( #2113 )
2023-12-17 20:37:27 -05:00
Greg Johnston
7aced17976
docs: clarify need to provide context to both rendering and server function handler ( #1983 )
2023-11-03 18:34:50 -04:00
martin frances
d999ff857d
chore: remove cargo doc
lint warnings ( #1936 )
2023-10-24 14:28:01 -04:00
Greg Johnston
0d4862b238
feat: add extractor
functions with better API than extract
( closes #1755 ) ( #1859 )
2023-10-07 13:10:30 -04:00
Village
3b864ac1a0
feat: Static Site Generation ( #1649 )
2023-09-22 13:32:09 -04:00
Cosmo Brain
5db2590bc6
feat: implement LeptosRoutes
for &mut ServiceConfig
in leptos_actix
( #1706 )
2023-09-13 20:56:03 -04:00
Greg Johnston
66dfef8729
Merge pull request #1681 from leptos-rs/docs
2023-09-08 17:11:47 -04:00
Greg Johnston
238d61ce1e
feat: experimental islands ( #1660 )
2023-09-08 16:33:00 -04:00
Greg Johnston
23d48d4c0e
docs: remove stray references to Scope
( closes #1671 )
2023-09-08 16:02:45 -04:00
Greg Johnston
8f067dcde7
chore: clear release-mode warnings
2023-08-25 17:16:00 -04:00
Greg Johnston
dbc707adcd
feat/change: adopt reactive ownership model and drop cx
/Scope
( #918 )
2023-08-21 19:31:37 -04:00
Greg Johnston
8e68699435
feat: add support for adding CSP nonces ( #1348 )
2023-07-14 16:37:18 -04:00
Joseph Cruz
7902e7edb7
ci: speed up verification ( #1347 )
...
* build: introduce ci task
* refactor(ci): rename cargo make task runner
* ci: add ci workflow
* ci: remove redundant workflows
2023-07-14 14:37:17 -04:00
Greg Johnston
3eed86fbf3
docs/warnings: improve ServerFnError
when a server function is not found ( #1350 )
2023-07-14 12:43:08 -04:00
Joseph Cruz
3481a6ee53
build: run tasks from workpace or member directory ( #1339 )
2023-07-13 16:46:51 -04:00
Greg Johnston
576bb078f7
fix: Actix server fn redirect()
duplicate Location
headers ( #1326 )
2023-07-11 13:57:44 -04:00
Greg Johnston
23594a43ea
fix: allow FnOnce
extractors ( #1192 )
2023-06-15 20:09:13 -04:00
martin frances
6fac92cb62
perf: removed duplicate calls to .collect() and .into_iter() in leptos_actix
( #1133 )
2023-06-11 21:54:24 -04:00
Greg Johnston
bb10b32200
feat: register server functions automatically ( #1154 )
2023-06-11 09:09:21 -04:00
martin frances
f6d856ee11
chore: cargo clippy --fix. ( #1136 )
2023-06-03 11:35:33 -04:00
Greg Johnston
4e41fad107
fix: wait for blocking fragments to resolve before pulling metadata ( closes #1118 ) ( #1137 )
2023-06-02 17:32:32 -04:00
yuuma03
cc68d20758
fix: duplicate headers (like Set-Cookie) on the actix integration ( #1086 )
2023-05-25 11:16:29 -04:00
yuuma03
b2faa6b86c
feat: allow multipart forms on server fns (Actix) ( #1048 )
2023-05-17 19:53:55 -04:00
Mark Catley
b472aaf6a0
fix: typo in actix extract documentation ( #1043 )
2023-05-15 08:57:49 -04:00