Commit Graph

2808 Commits

Author SHA1 Message Date
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
Niclas Åhdén fcc9242a63
docs: minor documentation corrections (#2098)
* Docs: Fix Body docs incorrectly referring to html

* Docs: Correct X/Z/Z to X/Y/Z in CONTRIBUTING
2023-12-10 14:24:16 -05:00
Greg Johnston 6014a70d0d
fix: support complete URLs in `<A/>` and `<Form/>` (closes #2076) (#2096) 2023-12-01 19:20:43 -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
itowlson 9bbd881757
feat: support `spawn_local` on Spin WASI (#2066)
Signed-off-by: itowlson <ivan.towlson@fermyon.com>
2023-12-01 15:34:29 -05:00
Greg Johnston 8d68c34796
docs: point the book toward its new location with redirects (#2095) 2023-12-01 15:20:44 -05:00
Daniel Mantei e8025705a4
docs: book restructuring and updates (#2052)
* move DX page under "Getting Started" section; add leptosfmt to DX page

* add a "community and leptos-* crates" page

* create folder for "getting_started"

* updates to 'getting started' chapter (feedback-based)

* clarify book structure + add necessary explanations

* address PR comments by @reedwoodruff

* update "getting started"

* address gbj's comments

* remove the term "universal" from book

* minor update

* formatting

* address reedwoodruff comment
2023-11-30 19:24:18 -05:00
blorbb 19711e16b6
feat: improved macro hygiene (#2084) 2023-11-29 07:47:18 -05:00
Alex Lazar 1272bd12f0
docs: use `with!()` macro in book and update formatting on Effect page (#2054) 2023-11-29 07:41:13 -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
sdutwsl 1a295bb3d6
docs: correct titile level for 04b_iteration.md (#2080) 2023-11-28 19:53:41 -05:00
Rockie Guo 9c44da2594
docs: minor fixes for some code examples in the book (#2077) 2023-11-28 19:53:26 -05:00
Alex Lazar 75c27e0b85
docs: fix book chapter 3.9 #3 (#2053)
* Fix book chapter 3.9 #3

* Add note about Layout and Content
2023-11-28 19:52:01 -05:00
Greg Johnston b95a79240e `v0.5.4` 2023-11-28 18:46:51 -05:00
Alexis Fontaine 8e374efe8d
fix: invalid attribute value for `aria-current` (#2089) 2023-11-28 15:23:16 -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
Greg Johnston d6ee2a37f4 `v0.5.3` 2023-11-27 19:38:33 -05:00
Greg Johnston 18a92bbfd8
fix: improved rust-analyzer support in `#[component]` macro (#2075) 2023-11-27 19:37:43 -05:00
Greg Johnston 4e8c3accf2
fix: make prop serialization opt-in for devtools (closes #1952) (#2081) 2023-11-27 16:35:31 -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
Greg Johnston d531848db5
fix: dispose previous route or outlet before rendering new one (closes #2070) (#2071) 2023-11-24 14:51:51 -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 061213ca78
fix: correctly mark `Trigger` as clean when it is re-tracked (closes #1948, #2048) (#2059) 2023-11-22 09:29:25 -05:00
Greg Johnston 0ce4ee8a7a
docs: add warning for nested `Fn` in attribute (see #2023) (#2045) 2023-11-22 07:35:20 -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
Greg Johnston cb6267ad08
feat: `<Provider/>` component to fix context shadowing (closes #2038) (#2040) 2023-11-19 20:24:36 -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
Daniel Mantei 414f5fc393
docs: reorganize deployment section (#2036)
* Update mdbook-admonish book dependency

* Move "Optimizing Binary Size" to Deploy.. chapter

* Minor text updates to the Deployment section
2023-11-17 15:40:20 -05:00
martin frances 362e3bc603
chore: stop using std::fmt, instead used core::fmt. (#2033) 2023-11-17 15:36:13 -05:00
taohua 4d549f70c9
docs: fix misnamed form field in `<Form/>` example (#2024)
Co-authored-by: datewu <>
2023-11-17 15:27:06 -05:00
Chris 85dd726d43
docs: `ActionForm` examples for indexing into struct fields (#2017)
Co-authored-by: chrisp60 <gh@cperry.me>
2023-11-17 15:22:11 -05:00
blorbb 24febe11f3
feat: impl `Default` for `TextProp` (#2016) 2023-11-17 15:20:03 -05:00
Greg Johnston 64b1e9bed3
fix: use `create_effect` for `<Portal/>` to avoid hydration issues (closes #2010) (#2029) 2023-11-17 15:19:07 -05:00
Greg Johnston 68c91a732d
fix: allow nested functions in `Attribute` (closes #2023) (#2027) 2023-11-15 11:00:15 -05:00
blorbb 8573f22d96
fix: re-export `slice!` macro (#2008) 2023-11-11 06:47:15 -05:00
Greg Johnston 61c7ff4256
docs: add note about context shadowing (closes #1986) (#2015) 2023-11-10 18:04:22 -05:00
Greg Johnston 860d887931
chore: remove duplicate benchmarks in `leptos_reactive` (#2014) 2023-11-10 15:53:32 -05:00
Chris 5e929a75fa
feat: `Action::new` and `Action::server` (#1998) 2023-11-10 15:53:20 -05:00
Greg Johnston d82cf0b76a
docs: remove outdated `APP_ENVIRONMENT` variable (#2013) 2023-11-10 14:27:45 -05:00
Greg Johnston cb7e07496a
docs: fix CodeSandbox for resources (#2002) 2023-11-07 20:11:30 -05:00
Greg Johnston 17881c5c6e
docs: fix chapter 10 CodeSandbox 2023-11-07 20:07:38 -05:00
Greg Johnston 2e816b26aa benchmarks: get `benchmarks` directory working with updated `tachys` 2023-11-07 20:03:35 -05:00
Gabriel Hansson 68d67c9e92
book: Fix <Body/> link in metadata.md (#1999) 2023-11-07 16:16:47 -05:00
Greg Johnston 0dea6fdcea
fix: correctly reset island/not-island state of SSRed Suspense streaming into island (closes #1996) (#2000) 2023-11-07 16:16:27 -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 9d9a4932b3
fix: run `<ErrorBoundary/>` in a child so siblings don't collide (closes #1987) (#1991) 2023-11-05 21:29:35 -05:00
Greg Johnston bfb67d45e8
examples: fix `style.css` path (closes #1992) (#1994) 2023-11-05 21:29:17 -05:00