Greg Johnston
b420579c91
chore: fix example nightly version
2024-04-01 10:45:34 -04:00
Greg Johnston
58b22ec2d6
chore: bump nightly version in examples
2024-03-31 14:13: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
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
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
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
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
6b90e1babd
examples: add 404 support in Actix examples ( closes #1031 ) ( #1291 )
2023-07-06 10:35:37 -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
Greg Johnston
bb10b32200
feat: register server functions automatically ( #1154 )
2023-06-11 09:09:21 -04:00
Greg Johnston
17adf7cc14
feat: pass components with no props directly into the view as a function that takes only `Scope` ( #1144 )
2023-06-05 20:48:22 -04:00
agilarity
53e09279a2
ci(examples): verify examples ( #1125 )
2023-06-01 22:12:18 -04:00
agilarity
9997487a9c
test: lint examples with --all-features ( #1008 )
...
* test: lint all features
* fix(counter_isomorphic): check-style issues
* fix(errors_axum): check-style issues
* fix(hackernews): check-style issues
* fix(hackernews_axum): check-style issues
* fix(session_auth_axum): check-style issues
* build(session_auth_axum): add common tasks
* fix(ssr_modes): check-style issues
* build(ssr_modes_axum): add common tasks
* fix(ssr_modes_axum): check-style issues
* build(tailwind): add common tasks
* fix(tailwind): check-style issues
* fix(todo_app_sqlite_axum): check-style issues
* fix(todo_app_sqlite_viz): check-style issues
2023-05-05 22:25:29 -04:00
Roland Fredenhagen
1011c464dc
feat: add collect_view(cx) ( #956 )
2023-04-28 16:02:24 -04:00
Greg Johnston
328d42656d
docs: compile error on mutually-exclusive features ( #911 )
2023-04-21 12:25:21 -04:00
Álvaro Mondéjar
509223ab2e
chore: Upgrade console_log to stable ( #724 )
2023-03-22 18:21:53 -04:00
Greg Johnston
38daaf3b72
chore: apply `cargo machete` systematically ( #671 )
2023-03-13 10:16:20 -04:00
Greg Johnston
04eae63e39
examples: include missing examples in CI ( #598 )
2023-02-28 15:33:02 -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
Greg Johnston
586f524015
feature: in-order streaming and `async` rendering ( #496 )
2023-02-17 17:31:32 -05:00