Greg Johnston
60efaefff4
start Actix work
2024-01-19 14:16:17 -05:00
Greg Johnston
af62d2e900
automatically include server function handler in .leptos_router()
2024-01-19 14:16:17 -05:00
Greg Johnston
c3e3ce7878
changes to get todo_app_sqlite_axum
example working
2024-01-19 14:16:17 -05:00
benwis
197edebd51
Made some progress, started work on pavex integration as well
2024-01-19 14:16:03 -05:00
benwis
c7422cd96e
First commit, checkpoint for cyclical dependency error
2024-01-19 14:15:51 -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
dd0c349554
examples: update axum-session
because old version was yanked ( #2205 )
2024-01-19 12:54:08 -05:00
Greg Johnston
b356d3cd28
ci: add regression test for #2190
2024-01-19 10:29:30 -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
Greg Johnston
67dd188358
ci: add regression test for matching main page correctly in router example
2024-01-19 10:26:58 -05:00
Sam Judelson
041b86e6e5
sso_auth_session example ( #2117 )
...
* example draft
* fmt
* db delete
* db
* oops clippy
* clippy 2
* - nightly ?
* fmt
* - cargo all features?
2024-01-15 10:48:22 -08: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
Paul Hansen
bbcef811f4
chore: remove dead code in actix tailwind example ( #2160 )
2024-01-07 15:29:15 -05:00
Greg Johnston
da533ad4e0
chore: clarify cargo-make
and examples (see #2141 ) ( #2150 )
2023-12-30 08:14:23 -05:00
Simon Richard
b578ec82d7
examples: change output names to clarify Tailwind examples ( #2102 )
2023-12-11 20:25:10 -05:00
jo!
50432e2651
examples: ergonomic improvements to session_auth_axum
( #2057 )
...
I've always hated the get_todos function and I
wanted to change it badly. Added a .env file
containing the db url for sqlx-cli, and cleaned
up with leptosfmt
Co-authored-by: j0lol <me@j0.lol>
2023-12-10 14:28:42 -05:00
Trey Lowerison
ed61ea9dd2
feat: add support for placing attributes on server functions ( #2093 )
...
* fix: add support for placing attributes on server functions
Adding instrumentation to server functions is not straightforward (requires calling out to another ssr-only function which is instrumented). This commit adds all attributes on the server function to both the generated front end and back end functions. If those attributes are only desirable on the backend say, a user can always wrap their attribute in `#[cfg_attr(feature = "ssr", ..)]`.
* nit: formatting in example cargo
2023-12-01 15:36:52 -05:00
martin frances
731b028b11
chore: Bump http from 0.2.8 to 0.2.11. ( #2068 )
2023-11-29 07:36:03 -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
a8e25af523
ci(leptos): run ci on change instead of check ( #2061 )
...
* ci: run ci examples on leptos change
* chore(ci): simulate leptos source change
* ci(todo_app_sqlite_csr): increase retries
* ci: delete check examples workflow
* ci: rename ci examples workflow
* ci: run ci examples with stable toolchain
* chore(ci): remove simulated change
* ci: delete check stable workflow
2023-11-24 14:59:13 -05:00
hpepper
670f415565
docs: add instruction to install trunk to examples/README.md ( #2064 )
...
Co-authored-by: Henry Pepper <henry>
2023-11-24 14:06:02 -05:00
Greg Johnston
1cd6603da0
ci(examples): fix portal test ( #2051 )
2023-11-20 20:39:19 -05:00
Andrew Wheeler(Genusis)
453911e6fc
examples: updated axum session to latest 0.9 in examples ( #2049 )
...
* updated axum_database_sessions to axum_session along with axum_sessions_auth to axum_session_auth
* updated to axum session 0.9
2023-11-20 20:33:31 -05:00
Ken
4518d3c89f
Have fetch example conform to docs guidance around using <ErrorBoundary> and <Transition> in conjunction ( #2035 )
...
* put `<ErrorBoundary>` inside `<Transition>`
* fix indentation
2023-11-18 08:24:30 -05:00
Greg Johnston
e47a619556
examples: add CSR with server functions example ( closes #1975 ) ( #2031 )
2023-11-18 08:24:15 -05:00
Greg Johnston
530dcff86a
examples: remove incorrect CSR information for hackernews_js_fetch
example ( #1997 )
2023-11-06 14:45:26 -05:00
Greg Johnston
bfb67d45e8
examples: fix style.css
path ( closes #1992 ) ( #1994 )
2023-11-05 21:29:17 -05:00
Greg Johnston
9e9386b223
does this make clippy happy in CI? ( #1965 )
2023-10-29 21:48:33 -04:00
Greg Johnston
eb86899e08
chore: remove wee_alloc
to make Dependabot happy ( #1938 )
2023-10-24 15:41:03 -04:00
Marc-Stefan Cassola
e2f6780de4
docs: added Callback
to documentation and examples. ( #1926 )
...
* added Callback to documentation and examples.
Also reduced code duplication in Callback implementation.
* added back the closure event callback example
2023-10-24 14:14:51 -04:00
Marc-Stefan Cassola
c87328f5cf
feat: add directives with use:
( #1821 )
2023-10-19 16:15:36 -04:00
Azzam S.A
07f2cbfbba
examples: rename Tailwind examples ( #1875 )
2023-10-13 16:20:26 -04:00
Greg Johnston
53e16751a7
chore: clean up style and bring into line with other hackernews examples
2023-10-11 16:45:48 -04:00
Greg Johnston
18f7b56c03
fix: do not force target wasm32
for CI purposes
2023-10-11 16:45:36 -04:00
Marc-Stefan Cassola
4251f6c0f4
feat: add Portal component ( #1820 )
2023-10-09 16:18:52 -04:00
Greg Johnston
be2d014f08
v0.5.1
2023-10-06 09:40:23 -04:00
Kevin Old
a7a1559e01
fix: update log debug to use get_untracked for logged in user to resolve client side error ( #1834 )
2023-10-05 21:34:58 -04:00
Greg Johnston
d869bc6675
chore: clippy
2023-09-29 20:36:15 -04:00
Greg Johnston
d8aeb82949
cargo fmt
2023-09-29 20:35:39 -04:00
Greg Johnston
f7adf6f73d
examples: fix hackernews examples oops
2023-09-29 13:36:13 -04:00
Greg Johnston
3f2a9facf8
change: enable inline children for For
by switching to children
and bind:
( #1773 )
2023-09-26 14:24:02 -04:00
Sean Aye
50678dafe1
feat: add JS Fetch integration support ( #1554 )
2023-09-25 07:51:25 -04:00
Nico Burniske
38d1727e9c
change: generate_route_list
no longer async in any integration ( #1485 )
2023-09-22 15:42:58 -04:00
Greg Johnston
1bd47f34e5
feat: make Transition
set_pending
use #[prop(into)]
( #1746 )
2023-09-18 22:46:03 -04:00
Joseph Cruz
7ef57345ca
fix(examples/error_boundary): ci error ( #1739 )
...
* fix(examples/build): maybe spawn client process
* docs(examples/error_boundary): add testing note
2023-09-17 20:38:03 -04:00
Joseph Cruz
1a589fcf32
fix(examples/build): do not require stop to end trunk ( #1713 )
...
* fix(examples/build): let ctrl-c stop trunk
* doc(examples/build): add stop server hints
2023-09-14 17:07:16 -04:00
Joseph Cruz
af215d6ce8
fix: exclude markdown files from examples lists ( #1716 )
...
* fix(examples/gen-members): exclude markdown files
* fix(ci): exclude markdown files from examples list
* test(ci): simulate leptos change
* chore(ci) :remove simulated change
2023-09-14 16:58:46 -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