Commit Graph

388 Commits

Author SHA1 Message Date
Greg Johnston 8f067dcde7 chore: clear release-mode warnings 2023-08-25 17:16:00 -04:00
Greg Johnston c9cc493063
fix: fourth argument to server functions (#1585) 2023-08-25 10:28:54 -04:00
Greg Johnston 7306ecccbc
feat: make struct name and path optional for server functions (#1573) 2023-08-24 10:22:35 -04:00
Nathan Lapel 195b843840
feat: remove `Clone` requirement for slots in vectors (#1564) 2023-08-22 21:23:38 -04:00
Greg Johnston dbc707adcd
feat/change: adopt reactive ownership model and drop `cx`/`Scope` (#918) 2023-08-21 19:31:37 -04:00
luoxiaozero 18deb398ca
feat: `tracing` support for component props (#1531) 2023-08-18 08:29:41 -04:00
martin frances cddd784e8d
chore: fixed lint warning seen while running ```cargo doc``` (#1539)
"component" is both a module and a macro and so we must
disambiguate
2023-08-15 06:18:19 -04:00
Greg Johnston f6978217fb
docs: give a compile error when trying to put a child inside a self-closing HTML tag (closes #1535) (#1537) 2023-08-13 12:44:45 -04:00
Greg Johnston a88d047eff
template refactor + snapshot tests (#1435) 2023-08-04 07:54:03 -04:00
Greg Johnston 8847d5fc42
fix: compile-time regression for deeply-nested component trees (#1476) 2023-07-31 14:23:09 -04:00
Greg Johnston d44b90c16d
feat: allow `mut` in component props and suppress "needless lifetime" warning (closes #1458) (#1459) 2023-07-29 06:32:06 -04:00
Greg Johnston 5e26e84d77
feat: allow feature-name flexibility when using server functions (#1427) 2023-07-25 06:07:52 -04:00
g-re-g a3cb3f7f77
perf: use binary search for event and tag names in `view` macro (#1430) 2023-07-24 15:06:34 -04:00
Vladimir Motylenko b09f9e4814
feat: Update rstml to v0.11.0 (#1416) 2023-07-23 07:46:33 -04:00
Greg Johnston 62bf315059
fix: `<use_/>` as typed top-level element in view (#1410) 2023-07-21 10:07:34 -04:00
Greg Johnston 011c97e3a4
fix: closing element names wrong for `svg::`, `math::`, and `use_` (closes #1403) (#1406) 2023-07-20 17:03:30 -04:00
Greg Johnston 2ca3d2c7a4
fix: `RawText`/unquoted text nodes in SSR (closes #1384) (#1407) 2023-07-20 17:03:19 -04:00
Joseph Cruz 3481a6ee53
build: run tasks from workpace or member directory (#1339) 2023-07-13 16:46:51 -04:00
Greg Johnston e821efca07
chore: new `cargo fmt` (#1266) 2023-07-02 17:01:39 -04:00
Greg Johnston 5adc88bf50
fix: hot-reloading view marker line number (#1255) 2023-06-30 14:03:54 -04:00
Greg Johnston 8cb95b4646
docs: update server fn docs (#1252) 2023-06-30 10:40:06 -04:00
Ari Seyhun 1cc3a43268
chore: remove unused variable warnings with ssr props (#1244) 2023-06-30 08:05:20 -04:00
Greg Johnston 13f7cb9a9a
fix: add missing attribute-escaping logic in `leptos_meta` and `class` attributes in SSR (closes #1238) (#1241) 2023-06-27 11:53:23 -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 acfc86d2a4
fix: SVG `<use>` in SSR (#1203) 2023-06-17 16:47:39 -04:00
martin frances 10c0a2de65
chore: cleared clippy warnings (#1190)
The change in indentation makes the PR hard to review

so I will discuss the change in conversational language

Two "if"'s checks were merged into one "if"

this

-        if let Some(expr) = node.value() {
-            if let syn::Expr::Tuple(tuple) = expr {

becomes

+        if let Some(Tuple(tuple)) = node.value() {
2023-06-15 20:11:50 -04:00
Greg Johnston 2b7923261b
docs: fix failing doctests from server fn docs (#1179) 2023-06-13 17:49:16 -04:00
Greg Johnston b043f829a6
docs: clarify available server fn encodings (#1178) 2023-06-13 16:01:45 -04:00
Greg Johnston bb10b32200
feat: register server functions automatically (#1154) 2023-06-11 09:09:21 -04:00
funlennysub e0be2fa4ba
feat: add additional support for generics in components (closes #949 + #1023) (#1109) 2023-06-10 16:44:27 -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
yuuma03 51a6147609
feat: variable bindings on components (#1140) 2023-06-03 15:22:44 -04:00
Vladimir Motylenko 38a1c1102f
Closing tag highlight/hower and go-to definition support in lsp. (#1126) 2023-06-01 22:09:15 -04:00
Vladimir Motylenko 571e778bce
fix: hygiene on `template` macro (#1101)
Pass dependency needed for template, and also hide them behind feature guide, to avoid compile time bloating.
2023-05-27 08:07:44 -04:00
Vladimir Motylenko 5a71ca797a
feat: RSX parser with recovery after errors, and unquoted text (#1054)
* Feat: Upgrade to new local version of syn-rsx

* chore: Make macro more IDE friendly

1. Add quotation to RawText node.
2. Replace vec! macro with [].to_vec().
Cons:
1. Temporary remove allow(unused_braces) from expressions, to allow completion after dot in rust-analyzer.

* chore: Change dependency from syn-rsx to rstml

* chore: Fix value_to_string usage, pr comments, and fmt.
2023-05-21 06:45:53 -04:00
Greg Johnston 00fcd1c65e
docs: fix small docs issues (closes #1045) (#1049) 2023-05-16 13:01:29 -04:00
Greg Johnston 0db4f5821f
fix: avoid extra `{` escaping (closes #1035) (#1038) 2023-05-12 16:29:33 -04:00
Greg Johnston 1fdb6f1cdf
feat: add `style:` to view (#1009) 2023-05-06 06:23:20 -04:00
Greg Johnston ea153e4f26
docs: error when component ends with `view! { ... };` (closes #985) (#993) 2023-05-03 18:15:02 -04:00
Greg Johnston d8e03773f0
feat: allow structs in server function arguments (#987) 2023-05-03 15:26:48 -04:00
Matt Crane ddf9df2b5e
change: replace `serde_urlencoded` with `serde_html_form` to support `Vec<_>` in server fn args (#973) 2023-05-01 17:17:45 -04:00
Roland Fredenhagen 661adc4027
feat: ```view code block in doc comments for properties (#961) 2023-04-28 16:03:04 -04:00
Greg Johnston 671b1e4a8f
docs: note need for `serde` dependency for server functions (closes #947) (#962) 2023-04-27 17:15:29 -04:00
Roland Fredenhagen 75a7bd610a
fix: escapes in doc comments on component properties (#958) 2023-04-27 16:43:38 -04:00
Greg Johnston 0f277c55ec fix: use absolute reference to `::leptos::Scope` in case not imported 2023-04-25 16:52:14 -04:00
jquesada2016 362150a715
feat: implemented `IntoView` for component props (#948) 2023-04-24 20:05:31 -04:00
yuuma03 234861a156
fix: generics on `impl From slot to Vec<slot>` (#946) 2023-04-24 20:03:03 -04:00
Greg Johnston 78d6d312f8
CI: fix unused variables breaking tests (#950) 2023-04-24 17:19:10 -04:00
Roland Fredenhagen c471986024
feat: add `#[allow(missing_docs)]` to `children` prop in components (#934) 2023-04-23 15:34:42 -04:00
Roland Fredenhagen d2e3a156e8
fix: link to actual type instead of Into trait for component properties (#932) 2023-04-23 15:33:27 -04:00