Greg Johnston
fce2c727ab
feat: add support for custom encodings to #[server]
macro ( #2216 ) ( closes #2210 )
2024-01-21 16:14:02 -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
40da1fe94e
clippy
2024-01-20 14:16:13 -05:00
Greg Johnston
8df46fcdb9
examples: use old Axum version of hackernews_js_fetch
until supported by axum-js-fetch
2024-01-20 12:39:16 -05:00
Greg Johnston
b4a1d90327
clean up for CI
2024-01-20 12:32:51 -05:00
Greg Johnston
70ec0c2d0a
update sso example
2024-01-19 18:02:22 -05:00
Greg Johnston
26d9d75cf2
cargo fmt
2024-01-19 15:56:57 -05:00
Greg Johnston
1b1e02729e
clean up examples
2024-01-19 15:17:17 -05:00
Greg Johnston
fdd576535a
clean up examples
2024-01-19 15:14:39 -05:00
Greg Johnston
25120c0e9f
fix streaming requests and clarify in docs
2024-01-19 14:17:26 -05:00
Greg Johnston
94cb4c0ec3
remove pavex work (now in pavex
branch)
2024-01-19 14:17:26 -05:00
Greg Johnston
c5bab09423
partial support for streaming requests (doesn't actually work in the browser)
2024-01-19 14:17:26 -05:00
Greg Johnston
5065bed594
example of middleware that can run before and/or after server fn
2024-01-19 14:17:26 -05:00
Greg Johnston
bb923b3f9b
erroneous hyphen
2024-01-19 14:16:59 -05:00
Greg Johnston
6a8c26a820
streaming example with filesystem watcher
2024-01-19 14:16:59 -05:00
Greg Johnston
21f8085851
add streaming/file watcher example
2024-01-19 14:16:59 -05:00
Greg Johnston
9a5a102ce3
add middleware to kitchen-sink example
2024-01-19 14:16:59 -05:00
Greg Johnston
4d602c21f8
example with custom errors
2024-01-19 14:16:59 -05:00
Greg Johnston
7d114c7414
file upload example
2024-01-19 14:16:58 -05:00
Greg Johnston
1f017a2ade
hm custom encodings have orphan rule issues
2024-01-19 14:16:58 -05:00
Greg Johnston
35e8e74dcf
get rkyv working and work on custom encoding example
2024-01-19 14:16:58 -05:00
Markus Kohlhase
4366d786ac
Update login example (CSR only) ( #2155 )
2024-01-19 14:16:58 -05:00
Greg Johnston
0571ebbc36
working on example
2024-01-19 14:16:58 -05:00
Greg Johnston
13a2691806
working on server fn example
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
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
8f07818687
nicer formatting, remove cfg-if
2024-01-19 14:16:58 -05:00
Greg Johnston
a5cbfa0aad
remove viz integration (see #2177 )
2024-01-19 14:16:58 -05:00
Greg Johnston
2af0d3d781
update session_auth_axum
2024-01-19 14:16:58 -05:00
Greg Johnston
7f532cda70
update todo_app_sqlite_csrs
2024-01-19 14:16:58 -05:00
Greg Johnston
61148026d1
allow type paths for input/output, and properly namespace built-in encodings
2024-01-19 14:16:58 -05:00
Greg Johnston
738eeefe73
chore: clear warnings
2024-01-19 14:16:18 -05:00
Greg Johnston
f5c007df7b
use server fns directly in ActionForm and MultiActionForm
2024-01-19 14:16:18 -05:00
Greg Johnston
4e3f1c834c
handle client-side and server-side redirects correctly (in Axum)
2024-01-19 14:16:18 -05:00
Greg Johnston
566df034ff
actually use server functions in ActionForm
2024-01-19 14:16:17 -05:00
Greg Johnston
fd97e2e027
Restore the previous full functionality of Form
2024-01-19 14:16:17 -05:00
Greg Johnston
c8fbee18c8
finished Actix support?
2024-01-19 14:16:17 -05:00
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
Greg Johnston
a317874f93
change: run effects after a tick ( #1680 )
2023-09-11 21:01:35 -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
b9a1fb7743
examples: add note about potential for memory leaks with nested signals ( #1675 )
2023-09-08 15:28:18 -04:00
martin frances
3c3fc969ac
chore: removed resolver link warning in example ( #1677 )
2023-09-08 14:47:14 -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
Joseph Cruz
905d46a09d
refactor(examples): extract client process tasks ( #1665 ) ( #1666 )
...
* doc(test-report): report trunk and node
* refactor(examples): extract client process tasks
* chore(exaples): force ci
2023-09-08 07:31:55 -04:00
SleeplessOne1917
2798dc455f
examples: use cargo-leptos Tailwind support in Tailwind examples ( #1625 )
2023-09-06 07:25:00 -04:00
Joseph Cruz
2ca1c51fdc
test(error_boundary): add e2e testing ( #1651 )
...
* test(error_boundary): open app
* test(error_boundary): click up arrow
* test(error_boundary): click down arrow
* test(error_boundary): type number
* test(error_boundary): clear number
* fix(build): clean trunk directories
* fix(test-report): detect unit tests
* ci(build): echo stop trunk
2023-09-04 13:25:44 -04:00
Greg Johnston
d98a577740
feat: add Rustier interfaces for reactive system types
2023-09-04 11:05:23 -04:00
Joseph Cruz
a631c5ca1c
doc(examples): report fantoccini use ( #1616 )
2023-09-01 07:35:29 -04:00