Greg Johnston
3629302f88
examples: timer in 0.7
2024-08-01 19:40:57 -04:00
Greg Johnston
274e31018b
feat: Portals in 0.7
2024-08-01 19:40:57 -04:00
Greg Johnston
cebe744a84
support arbitrary attributes on components in view
2024-08-01 19:40:57 -04:00
Greg Johnston
e93a34a2c9
full attribute spreading
2024-08-01 19:40:57 -04:00
Greg Johnston
9ec30d71d2
update counter_without_macros imports
2024-08-01 19:40:57 -04:00
Greg Johnston
89b972e3c5
disable AddAnyAttr again now that I remember why it was broken
2024-08-01 19:40:56 -04:00
Greg Johnston
8dac92b251
reenable AnyAttr
2024-08-01 19:40:56 -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
e68730d15f
rename TupleBuilder to NextTuple and prep for release
2024-08-01 19:40:56 -04:00
Greg Johnston
ab67bea7ec
rename any_error
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
782cb93743
feat: add <A>
2024-08-01 19:40:25 -04:00
Greg Johnston
8642c563d8
add use_navigate and Redirect
2024-08-01 19:40:25 -04:00
Greg Johnston
755fbd3866
preliminary use_navigate work
2024-08-01 19:40:25 -04:00
Greg Johnston
2dd2bb5958
add more hooks and primitives to router
2024-08-01 19:40:25 -04:00
Greg Johnston
ebdd31cd9f
continuing on nested routes
2024-08-01 19:40:25 -04:00
Greg Johnston
13da1e743d
remove TryCatch/fallible rendering in favor of better ErrorBoundary model
2024-08-01 19:40:25 -04:00
Greg Johnston
0c9167fd30
finish todo_app_sqlite_axum
2024-08-01 19:40:25 -04:00
Greg Johnston
883fd57fe1
stash
2024-08-01 19:40:25 -04:00
Greg Johnston
42b99dd912
ErrorBoundary SSR and serialization of errors to support hydration
2024-08-01 19:40:25 -04:00
Greg Johnston
851e1f73fd
get types working with nested ErrorBoundary/Suspense
2024-08-01 19:40:25 -04:00
Greg Johnston
e11eea1af1
probably as far as I can go with the current SuspenseBoundary approach
2024-08-01 19:40:25 -04:00
Greg Johnston
add3be0ff5
Suspense SSR
2024-08-01 19:40:25 -04:00
Greg Johnston
a01640cafd
updates toward todo_app_sqlite
2024-08-01 19:40:25 -04:00
Greg Johnston
e837e9fded
fix stable examples
2024-08-01 19:40:25 -04:00
Greg Johnston
e0e67360aa
implement rendering traits for signals directly on stable
2024-08-01 19:40:25 -04:00
Greg Johnston
439deea066
suspend!() macro
2024-08-01 19:40:25 -04:00
Greg Johnston
e5f5710f46
add Transition
2024-08-01 19:40:25 -04:00
Greg Johnston
ec3f0933fe
working on examples
2024-08-01 19:40:25 -04:00
Greg Johnston
b50de3a005
finish TodoMVC example
2024-08-01 19:40:25 -04:00
Greg Johnston
603f9f96c4
working model for Suspense with new version
2024-08-01 19:40:25 -04:00
Greg Johnston
f78e675506
probably as far as I can go with the current SuspenseBoundary approach
2024-08-01 19:40:24 -04:00
Greg Johnston
cc2714c03d
fix ErrorBoundary/Suspense
2024-08-01 19:40:24 -04:00
Greg Johnston
c06110128b
feat: ErrorBoundary and Suspense
2024-08-01 19:40:24 -04:00
Greg Johnston
d7c62622ae
feat: ErrorBoundary
2024-08-01 19:40:24 -04:00
Greg Johnston
c5049ca1bb
working on examples
2024-08-01 19:40:24 -04:00
Greg Johnston
f69dbb48ca
styling with CSS
2024-08-01 19:40:24 -04:00
Greg Johnston
5feaf1aea6
example with isomorphic GTK/web design system
2024-08-01 19:40:24 -04:00
Greg Johnston
ec3ab6a355
gtk example
2024-08-01 19:40:24 -04:00
Greg Johnston
100ed7d926
ErrorBoundary component
2024-08-01 19:40:24 -04:00
Greg Johnston
88b93f40f9
Suspense/Transition components
2024-08-01 19:40:24 -04:00
Greg Johnston
b8b77138ea
GTK example for 0.7
2024-08-01 19:40:24 -04:00
Greg Johnston
2bc04444e1
work related to 0.7 blog port
2024-08-01 19:40:24 -04:00
Greg Johnston
30c1cd921b
stash
2024-08-01 19:40:24 -04:00
Greg Johnston
16bd2942db
navigation between nested routes
2024-08-01 19:40:24 -04:00
Greg Johnston
13cccced06
initial stage for working nested route rendering
2024-08-01 19:40:24 -04:00
Greg Johnston
9cdd8cac15
stash
2024-08-01 19:40:24 -04:00
Greg Johnston
84ebdc1b92
get basic routing working
2024-08-01 19:40:24 -04:00
Greg Johnston
9f02cc8cc1
stash
2024-08-01 19:40:24 -04:00
Greg Johnston
b21f1853c6
work on routing
2024-08-01 19:40:24 -04:00
Greg Johnston
1454c5d272
work on routing
2024-08-01 19:40:24 -04:00
Greg Johnston
9e276a8879
pass on: to components (and lay basis for passing all other attributes)
2024-08-01 19:40:24 -04:00
Greg Johnston
53703f208a
working on AddAttr
2024-08-01 19:40:24 -04:00
Greg Johnston
524ed395fa
parent_child example
2024-08-01 19:40:24 -04:00
Greg Johnston
992e2bce78
finish error boundary (fix last state transition issue)
2024-08-01 19:40:24 -04:00
Greg Johnston
6c2469ec3a
progress on error boundary that works with nested reactivity
2024-08-01 19:40:24 -04:00
Greg Johnston
a7162d7907
progress on error boundary that works with nested reactivity
2024-08-01 19:40:24 -04:00
Greg Johnston
f584154156
error example
2024-08-01 19:40:24 -04:00
Greg Johnston
4bb2bc4797
store effects in reactive system
2024-08-01 19:40:24 -04:00
Greg Johnston
a8adf8eea2
todomvc example
2024-08-01 19:40:24 -04:00
Greg Johnston
1a7da39fb7
work on async demo
2024-08-01 19:40:23 -04:00
Greg Johnston
4df42cbc60
make guard types more nestable/flexible so that we can implement render traits on any of them
2024-08-01 19:40:23 -04:00
Greg Johnston
44a0a0a93a
work on async demo
2024-08-01 19:40:23 -04:00
Greg Johnston
66e1e6d7a1
work on async demo
2024-08-01 19:40:23 -04:00
Greg Johnston
b49a13f8c1
work on async demo
2024-08-01 19:40:23 -04:00
Greg Johnston
ca1e62c0b9
fix: correct owner for rows of For, correct cleanup of arenas
2024-08-01 19:40:23 -04:00
Greg Johnston
68486cfb72
feat: typed event targets
2024-08-01 19:40:23 -04:00
Greg Johnston
eea971b9fe
working on examples
2024-08-01 19:40:23 -04:00
Greg Johnston
0fddfb4823
stash
2024-08-01 19:40:23 -04:00
Saber Haj Rabiee
d50012f8d4
chore: update gloo-net and reqwest to http 1.0 ( closes #2688 ) (leptos 0.6) ( #2751 )
2024-08-01 19:39:54 -04:00
David Karrick
c53fc67d38
feat: Add Compression to Hacker News w/ Islands Example ( #2613 )
...
* Add task for cargo leptos w/ precompression
* Update makefile
* Update deps
* Serve precompressed assets
Code was taken from https://github.com/leptos-rs/cargo-leptos/pull/165#issuecomment-1647843037
Co-authored-by: Sebastian Dobe <sebastiandobe@mailbox.org>
* Dynamically compress html
* Update README
* Refactor: Format for ci
* Refactor: Replace use of format!
* Chore: Remove old build file
* Feat: Hash files
This will prevent users from using an old cached file after updates are made
* Fix: Prevent chicken & egg problem with target/site
* Refactor: Use normal cargo-leptos
---------
Co-authored-by: Sebastian Dobe <sebastiandobe@mailbox.org>
2024-06-28 15:01:05 -04:00
Greg Johnston
ec19c59850
chore: update hackernews_js_fetch
example to latest versions of leptos
and axum
2024-06-02 15:39:01 -04:00
Greg Johnston
b06097d085
chore(ci): fix wasm-pack
installation
2024-06-02 15:38:22 -04:00
SleeplessOne1917
ac3b95d35a
examples: use trunk's built-in way of handling tailwind ( #2557 )
...
* Use trunk built-in way of handling tailwind
* Remove package manager from package.json
2024-05-06 08:49:07 -04:00
Joey McKenzie
4e4a770600
projects: add sitemap demo project ( #2553 )
2024-05-06 08:46:49 -04:00
martin frances
289c02fdac
Minor: examples/server_fns_axum FileWatcher logs errors to the console. ( #2547 )
...
* Minor: examples/server_fns_axum FileWatcher logs errors to the console.
The cause is an assumption that the directory
./watched_files/
exits.
* chore: Now using .gitkeep to preserve directory structure.
2024-05-06 08:45:27 -04:00
Greg Johnston
85a91af7c6
examples: simplify stable syntax for using signals in view
2024-04-09 14:45:19 -04:00
Greg Johnston
f0c1061161
chore(ci): remove nightly feature on counter_isomorphic
( #2510 )
2024-04-09 13:18:37 -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
Greg Johnston
43178b56dc
chore(ci): move example CI over to stable ( #2502 )
2024-04-05 14:55:31 -04:00
Lukas Potthast
119c9ea23f
feat: allow spreading of both attributes and event handlers ( #2432 )
2024-04-05 14:30:34 -04:00
mahmoud-eltahawy
15f8bdd4dc
stable todo_app_sqlite_axum example ( #2493 )
2024-04-04 20:12:45 -07:00
Sam Judelson
ca07d29db5
stable examples change ( #2497 )
2024-04-04 20:11:28 -07:00
Adrian
a82af6110f
ex: counter_url_query; to stable ( #2499 )
2024-04-04 20:09:55 -07:00
Joseph Cruz
03ac6903f2
ci(examples/error-boundary): use stable syntax ( #2496 )
2024-04-04 20:08:50 -07:00
mahmoud-eltahawy
8686d5aabb
stable todomvc example ( #2489 )
2024-04-02 13:38:07 -07:00
Greg Johnston
41f3c46830
chore: bump nightly version in examples ( #2479 )
2024-04-01 15:16:53 -04:00
Ratul
d1560f9e1f
Added missing link for #[server] macro ( #2437 )
...
* Added missing link for #[server] macro
Added missing link for #[server] macro
* Removed spurious entry
2024-03-20 14:24:54 -07:00
martin frances
841d7a690a
chore: examples/tailwind_axum bumped tailwindcss to 3.4.2. ( #2443 )
2024-03-19 09:40:24 -07:00
Richard Laughlin
7ef186f642
For the session_auth_axum example, move the passhash into a separate ( #2446 )
...
non-serializable struct.
This prevents it from being returned in the
get_user() API, and prevents it from being unintentionally returned on any
new API the end-user may create on top of this example code.
2024-03-19 09:35:53 -07:00
Joseph Cruz
fda4dba237
build(examples): clean more output ( #2420 )
...
* chore(examples): update workspace members
* build(examples): clean e2e crates
* build(examples): clean pkg directories
* chore: remove simulated change comment
* chore: add simulated change
* chore: remove simulated change
2024-03-18 11:58:37 -04:00
Joseph Cruz
97fd8ff6c4
fix(ci): leptos examples fail with bindgen schema error ( #2428 )
2024-03-13 22:33:54 -04:00
martin frances
4bb43f6207
examples/todomvc - Rename Todos::new() Todos::default(). ( #2390 )
2024-03-03 13:48:40 -08:00
Paul Hansen
e2e35a9659
fix(ci) Wait a bit longer for server to start
...
It took longer than I thought in Github and barely worked, giving it a
bit more of a buffer.
2024-03-01 15:47:59 -06:00
Paul Hansen
bf1ba589c5
fix(ci): Another attempt to fix hanging example
2024-03-01 15:41:22 -06:00
Paul Hansen
3cab09e015
fix(ci): error_boundary example never exiting
2024-03-01 09:21:58 -06:00
Paul Hansen
6a83161368
chore: add MSRV ( #2360 )
2024-02-28 07:19:09 -05:00
Tadas Dailyda
aa977001c1
feat: add support for trailing slashes ( closes #2154 ) ( #2217 )
2024-02-26 20:56:44 -05:00
Joseph Cruz
2ca30a0b2d
ci(examples): build hackernews_js_fetch with deno ( #2344 )
...
* ci(examples): refactor process management
* ci(examples): build hackernews_js_fetch with deno
* ci(workflows): detect hackernews_js_fetch change
* chore(web-report): report deno usage
* chore(web-report): ignore gtk example
* ci(todo_app_sqlite): simulate change
* ci(workflows): install deno
* ci(todo_app_sqlite): remove simulated change
2024-02-23 13:40:44 -05:00
Sahaj
ffcf3c2952
example: fix href path in tailwind_csr
example ( #2328 )
2024-02-17 13:10:07 -05:00
Greg Johnston
1e000afa78
examples: fix CSS file name in tailwind_axum
( #2324 )
2024-02-17 12:56:03 -05:00
Joseph Cruz
0a321a1bd7
docs(examples): update docs ( #2313 )
...
* docs(examples): fix metadata typo
* docs(examples): update first step about using cargo make
2024-02-16 13:32:01 -05:00
David Rebbe
b0f5c39711
example: replace yanked version of session_auth_axum
crate ( #2310 )
2024-02-15 20:16:26 -05:00
Joseph Cruz
c75842ed0c
ci(hackernews_islands_axum): build with cargo leptos
2024-02-11 15:40:32 -05:00
Joseph Cruz
4ad228bf47
docs(test-report): add leptos ci warning
2024-02-11 15:40:32 -05:00
Joseph Cruz
bbe7115360
docs(test-report): mention options
2024-02-11 15:40:32 -05:00
Greg Johnston
0658a550b0
fix(examples): align crate name and output name ( closes #2206 ) ( #2291 )
2024-02-10 15:47:25 -05:00
Greg Johnston
8a77691cb5
Merge pull request #2285 from leptos-rs/fix-issues
...
Fix remaining CI issues
2024-02-09 19:29:01 -05:00
Greg Johnston
fe64f0d332
examples: fix counter_isomorphic
(broken in #2244 ) and fix additional warnings
2024-02-09 17:12:31 -05:00
Joseph Cruz
c00207aa46
fix(test-report) should show all cargo-make leptos configuration ( #2282 )
...
* refactor(test-report): extract script
* refactor(test-report): extract functions
* refactor(test-report): split option to tasks
* chore(test-report): highlight examples without tags
* fix(test-report): show all cargo-make leptos configuration
* docs(test-report): update keys
* chore(test-report): include all crates in report
2024-02-09 16:31:46 -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
blorbb
38bf73947f
fix: make directive .into()
calls consistent ( #2249 )
2024-02-05 08:52:12 -05:00
Steffen
06721c5fcd
examples: fix typos in examples ( #2260 )
2024-02-05 05:20:53 -05:00
martin frances
69d25d9c63
examples/hackernews: Add a "Suspense" wrapper. ( #2253 )
...
This warning appears in the browser's console log.
```
hackernews.js:933 At src/routes/stories.rs:39:17, you are reading a resource in `hydrate` mode outside a <Suspense/> or <Transition/>. This can cause hydration mismatch errors and loses out on a significant performance optimization. To fix this issue, you can either:
1. Wrap the place where you read the resource in a <Suspense/> or <Transition/> component, or
2. Switch to using create_local_resource(), which will wait to load the resource until the app is hydrated on the client side. (This will have worse performance in most cases.)
```
2024-02-03 14:24:46 -08:00
martin frances
0cba7bc22b
example/counter_isomorphic Removed console warning. ( #2244 )
...
This warning is seen in the browsers console window.
```
counter_isomorphic.js:1068 At src/counters.rs:138:17, you are reading a resource in `hydrate` mode outside a <Suspense/> or <Transition/>. This can cause hydration mismatch errors and loses out on a significant performance optimization. To fix this issue, you can either:
1. Wrap the place where you read the resource in a <Suspense/> or <Transition/> component, or
2. Switch to using create_local_resource(), which will wait to load the resource until the app is hydrated on the client side. (This will have worse performance in most cases.)
```
Two derived signals "value" and "error_msg" need to be wrapped in a <Suspense> block.
"value" falls back to just the initial text.
"error" uses the default fallback.
2024-02-01 16:50:15 -08:00
Michael Kadziela
fb97c50886
Update rkyv example button text to accurately reflect what it does ( #2250 )
2024-02-01 16:49:29 -08:00
Greg Johnston
f71b4aae69
feat: easily create custom server fn clients ( #2247 )
2024-01-31 09:15:30 -05:00
Greg Johnston
6ef1531059
example: file upload with streaming progress bar ( #2242 )
2024-01-29 15:20:19 -05:00
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