Commit Graph
150 Commits
Author SHA1 Message Date
Jonathan Kelley 8df7a7685e Merge branch 'master' into many_optional_attributes 2024-01-04 10:18:57 -08:00
Jonathan Kelley 922d9c8c05 Merge branch 'master' into fix-event-bubbling 2024-01-04 10:06:27 -08:00
abhiandEvan Almloff fd7c9e0359 fix empty render causing panic (#1769) (#1774)
* fix empty render causing panic (#1769)

* use an default root column instead of an empty root column

* fix formatting

* restore create.rs in core

---------

Co-authored-by: Evan Almloff <evanalmloff@gmail.com>
2024-01-02 10:02:58 -06:00
ealmloff 56478d1856 Merge branch 'DioxusLabs:master' into fix-event-bubbling 2023-12-16 06:34:00 -06:00
Exotik850 fc31876a57 Wasm target check before build (#1689)
* Add `rustup show` check for wasm32 target

* better place for check

* fmt

* clippy fmt
2023-12-07 12:35:16 -06:00
Evan Almloff 0ee21dff1e fix missing item in hot reloading diffing 2023-11-20 09:33:39 -06:00
Evan Almloff a120af33ad Merge branch 'master' into fix-event-bubbling 2023-11-11 17:53:47 -06:00
Jonathan Kelley e819702fc5 Add into_vnode temporary logic for more things
This commit adjusts how rsx! works, making it more forgiving with signals.

Notably, we add the temporaries to if chains too.
2023-10-17 15:42:21 -07:00
Jonathan Kelley 14b3fa72e4 Change the semantics of exprs/for loops allocations strategy
This commit adjusts how exprs and for loops are handled within
rsx. This is a breaking change in terms of codegen, but has
slight semantic changes as well.

Now, when exprs/for loops are allocated, they are given a temporary.
The temporary is elided to the <'a> lifetime of the bump, to satisfy
the borrow checker. This fixes issues with signals where exprs/for
loops mapping vecs out of RefCells would be caught up without a
temporary lifetime.
2023-10-15 17:40:56 -07:00
Leonard 2d1234c3d1 Include README and Dioxus logo in package docs (#1536)
* Include README in docs.rs and add Dioxus logo

* Update README.md
2023-10-10 10:52:48 -05:00
Evan Almloff 561830d814 fix merging static attributes 2023-09-19 10:20:42 -05:00
Evan Almloff c0f345e775 add if statements to test and rsx usage example 2023-09-19 09:48:56 -05:00
Evan Almloff ab2b9fb34e fix autoformatting 2023-09-19 09:39:53 -05:00
Evan Almloff d297e2baa2 Add optional attributes 2023-09-18 19:50:02 -05:00
Evan Almloff 9f1c735cf1 combine style and class attributes when there are multiple 2023-09-14 16:40:49 -05:00
Evan Almloff be4b0c801a fix raw attributes with dynamic values 2023-09-14 16:10:48 -05:00
Evan Almloff 30b124189c fix raw attribute names 2023-09-14 15:56:17 -05:00
Evan Almloff 8c47dfaf78 clean up attribute parsing 2023-09-14 14:08:39 -05:00
Evan Almloff 35b643e23f switch to bubble ids on vnodes to fix nodes under fragments pointing to an invalid parent 2023-09-11 15:55:58 -05:00
Evan Almloff e337aff0a4 WIP split element from element ref 2023-08-23 10:48:10 -05:00
Evan Almloff 943c76b1da Fix memory leak in core 2023-08-15 12:19:05 -05:00
Evan Almloff 24c626b306 fix clippy 2023-08-08 13:43:57 -07:00
Evan Almloff 3d8d8a1b6f half-build-times 2023-07-19 10:19:23 -07:00
Evan Almloff 05fb8c1e91 Merge branch 'master' into router-typesafe 2023-07-07 18:31:48 -07:00
Torstein Grindvik a3169ac17b Change missing trailing comma span to point to span where comma is missing from
Signed-off-by: Torstein Grindvik <torstein.grindvik@nordicsemi.no>
2023-07-02 15:19:03 +02:00
Jon Kelley 6f38c765e5 Merge pull request #877 from Demonthos/fix-component-attribute-formatting
Don't accept raw attributes in components without trailing commas
2023-06-30 12:10:57 -07:00
Evan Almloff 8f67d0aafd make creating rsx nodes from macros possible 2023-06-29 12:52:27 -07:00
Jon Kelley 7e96475951 Merge pull request #895 from Demonthos/inline-custom-elements
Allow raw elements if they include a dash
2023-05-29 15:05:19 +02:00
Evan Almloff f9b33f12cb fix more complex workspaces with hot reloading 2023-03-28 15:39:52 -05:00
Evan Almloff e0563bd637 allow paths in format expressions 2023-03-23 13:15:47 -05:00
Evan Almloff c04ce2901e fix the span the error reports under 2023-03-21 07:59:25 -05:00
Evan Almloff 3655e7c89e throw an error instead of accepting attributes without commas 2023-03-21 07:55:36 -05:00
Evan Almloff f74854b38c fix formatting with raw elements 2023-03-20 07:21:31 -05:00
Evan Almloff 03413a68ab fix formatting 2023-03-19 20:47:16 -05:00
Evan Almloff 209a55da69 allow raw elements if they include a dash 2023-03-19 20:37:40 -05:00
Evan Almloff 3f1d525734 make trailing commas in components optional 2023-03-11 18:27:50 -06:00
Evan Almloff 55787c2e7d fix hot reloading in a workspace 2023-02-26 18:42:14 -06:00
Evan Almloff c012855659 collect non-fatal errors in hot reloading 2023-02-22 09:18:12 -06:00
Evan Almloff 32dc68c539 hot reloading: filter intial read of files by excluded dirs 2023-02-09 16:37:12 -06:00
Evan Almloff b6c7d44a27 fix clippy 2023-01-27 20:35:46 -06:00
Jonathan Kelley 6cd87796f2 feat: allow ifchains and for loops 2023-01-13 10:51:12 -08:00
Jonathan Kelley 1940855e39 feat: implement comments in zero children nodes 2023-01-10 17:47:58 -08:00
Evan Almloff c5672650f1 use the namespace and volitity defined in the html crate 2023-01-03 09:03:20 -06:00
Jonathan Kelley 4aac2cdae1 fix: raw attr names 2022-12-26 22:57:45 -05:00
Jonathan Kelley c240aebfa1 chore: start instead of flart 2022-12-26 09:58:41 -05:00
Jonathan Kelley 8b854963e9 fix: serialize custom attrs properly 2022-12-25 23:58:31 -05:00
Evan Almloff a6c226ae57 fmt 2022-12-23 18:31:40 -06:00
Evan Almloff 555b192436 Merge branch 'upstream' into fix-hot-reloading 2022-12-23 18:06:47 -06:00
Jonathan Kelley c9e13984e3 chore: use safe span split 2022-12-23 18:27:53 -05:00
Evan Almloff 33af22638e don't panic if the formatting of the span is different than expected 2022-12-23 17:23:46 -06:00