Saber Haj Rabiee
e01dfbf497
fix: update to wasm-bindgen 0.2.93 ( #2827 )
2024-08-13 15:21:57 -07:00
Tommy Yu
10860ebb1e
doc: more details on how redirect works ( closes #2789 ) ( #2796 )
2024-08-11 07:11:05 -04:00
Saber Haj Rabiee
b3e2040ec9
chore: upgrade dependencies ( #2765 )
2024-08-10 20:01:41 -04:00
Greg Johnston
4107203da2
examples: update to Suspend::new()
2024-08-01 19:42:51 -04:00
Greg Johnston
a68653b385
feat: automatically replace Suspense blocks if they are still waiting to be flushed, without JS (replaces PartiallyBlocked)
2024-08-01 19:42:50 -04:00
Greg Johnston
38d51b01d7
feat: support reactive and asynchronous ProtectedRoute conditions
2024-08-01 19:42:49 -04:00
Ben Wishovich
c676cf921d
Make get_configuration sync ( #2647 )
...
* Made get_configuraiton sync
* Update examples
2024-08-01 19:42:49 -04:00
Greg Johnston
ae14644806
update static file serving in Axum examples
2024-08-01 19:42:21 -04:00
Greg Johnston
ce832cef21
rename from new_serde to new
2024-08-01 19:42:21 -04:00
Greg Johnston
0a559935e7
change name to shell
2024-08-01 19:42:20 -04:00
Greg Johnston
d133cff092
examples: use application 404 page
2024-08-01 19:41:56 -04:00
Greg Johnston
65e3c57ed1
fmt and chores in examples
2024-08-01 19:41:27 -04:00
Greg Johnston
caf797dba0
refactor integrations and add Actix integration
2024-08-01 19:41:13 -04:00
Greg Johnston
846ff2fefb
feat: return an async guard from .await rather than cloning the value every time
2024-08-01 19:41:12 -04:00
Greg Johnston
ce5738d7c4
feat: return Option from AsyncDerived.get() instead of AsyncState
2024-08-01 19:41:11 -04:00
Greg Johnston
02f76dec35
fix regular suspense if nothing was read synchronously
2024-08-01 19:41:11 -04:00
Greg Johnston
b24eaedfe9
reorganizing exports and updating examples
2024-08-01 19:40:56 -04:00
Greg Johnston
4336051f78
prep for preview release
2024-08-01 19:40:56 -04:00
Greg Johnston
21dd7e9c76
let ErrorBoundary own the fallback
2024-08-01 19:40:56 -04:00
Greg Johnston
9bab4da172
make Suspend a transparent wrapper
2024-08-01 19:40:56 -04:00
Greg Johnston
420dccda60
provide params properly in FlatRouter
2024-08-01 19:40:56 -04:00
Greg Johnston
0beef3b2e0
prep for preview release
2024-08-01 19:40:56 -04:00
Greg Johnston
81fc7e6ada
remove twiggy file
2024-08-01 19:40:56 -04:00
Greg Johnston
da4d2cf538
comparison demo
2024-08-01 19:40:25 -04:00
Greg Johnston
2470637b0b
SSR optimizations for binary size, and flat router
2024-08-01 19:40:25 -04:00
Greg Johnston
2934c295b5
work on Axum integration and on error boundaries
2024-08-01 19:40:25 -04:00
Greg Johnston
789eef914d
stash
2024-08-01 19:40:25 -04:00
Greg Johnston
ab1c4ca7a6
chore(ci): run all examples under stable and fix remaining linting issue ( #2503 )
2024-04-05 16:09:23 -04:00
mahmoud-eltahawy
a1a989011a
chore(ci): move all examples to run on stable ( #2501 )
2024-04-05 14:57:48 -04:00
Sam Judelson
ca07d29db5
stable examples change ( #2497 )
2024-04-04 20:11:28 -07:00
Greg Johnston
41f3c46830
chore: bump nightly version in examples ( #2479 )
2024-04-01 15:16:53 -04:00
Tadas Dailyda
aa977001c1
feat: add support for trailing slashes ( closes #2154 ) ( #2217 )
2024-02-26 20:56:44 -05:00
Joseph Cruz
65b7603192
fix(ci): address clippy issue ( #2278 )
...
* fix(ci): address clippy issue
* fix(ci): add missing nightly specifications
* fix(ci): set all nightly references
* chore(ci): do not lint example crates
2024-02-09 16:30:11 -05:00
Greg Johnston
7d1ce45a57
chore: minimize features activated with leptos_axum
's default feature ( #1846 ) ( #2213 )
...
- `leptos_axum` default feature:
- remove `tokio/full`, `axum/macros`
- add `tokio/fs`, `tokio/sync`
- example `leptos-tailwind-axum`:
- enable `tokio`'s `rt-multi-thread` and `macros` features
- example `ssr_modes_axum`:
- enable `tokio`'s `rt-multi-thread` and `macros` features
Co-authored-by: Paul Nettleton <paulnett7@hotmail.com>
2024-01-21 15:22:46 -05:00
Greg Johnston
1d1de4ac38
remove cfg-if
from all examples
2024-01-19 14:16:58 -05:00
Greg Johnston
31b2b9e94c
remove explicit handle_server_fns
in most cases because it's now included in .leptos_routes()
2024-01-19 14:16:58 -05:00
Daniel Santana
cadd217078
Update integration with support for axum 0.7 ( #2082 )
...
* chore: update to axum 0.7
Removed http, since it's included in axum, and replaced hyper by http-body-util, which is a smaller.
* chore: update samples to work with nre axum
Missing sessions_axum_auth, pending PR merge.
* chore: all dependencies update to axum 0.7
* chore: cargo fmt
* chore: fix doctests
* chore: Fix example that in reality doesn't use axum.
Fixed anyway.
* chore: more examples support for axum 0.7
* Small tweak
2024-01-19 14:13:55 -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
webmstk
2d70229608
chore: add rust-toolchain.toml to examples ( closes #2151 ) ( #2161 )
2024-01-07 15:29:54 -05:00
Greg Johnston
b578660624
docs: make it easy to see how to run each example in its README ( #2085 )
2023-11-28 11:47:56 -05:00
Nico Burniske
38d1727e9c
change: generate_route_list
no longer async in any integration ( #1485 )
2023-09-22 15:42:58 -04:00
Joseph Cruz
e384d53996
doc(examples): reference run instructions ( #1705 )
2023-09-13 19:57:50 -04:00
Joseph Cruz
c11c4b0e3e
build(examples): make it easier to run examples ( #1697 )
...
* build(examples): support process management
* build(examples): manage trunk
* build(examples): manage cargo leptos
* doc(examples): add run instructions
2023-09-12 10:46:16 -04:00
Greg Johnston
23d48d4c0e
docs: remove stray references to Scope
( closes #1671 )
2023-09-08 16:02:45 -04:00
Greg Johnston
689022661d
change: move logging macros into a logging
module to avoid name conflicts with log
and tracing
( #1658 )
2023-09-08 07:42:58 -04:00
Greg Johnston
7306ecccbc
feat: make struct name and path optional for server functions ( #1573 )
2023-08-24 10:22:35 -04:00
Greg Johnston
dbc707adcd
feat/change: adopt reactive ownership model and drop cx
/Scope
( #918 )
2023-08-21 19:31:37 -04:00
Joseph Cruz
8c5ab99fa7
build(examples): pull up compile tasks ( #1417 )
...
* build(examples): pull up compile tasks
* build(examples): set toolchain for compiles tasks
* build(examples): set toolchain for build and check
* build(examples): set toolchain of other examples
2023-07-24 11:35:34 -04:00
Greg Johnston
ee7dbafc85
change: migrate to nightly
and csr
features rather than stable
and default-features = false
( #1227 )
2023-06-26 21:12:14 -04:00