Commit Graph
1228 Commits
Author SHA1 Message Date
Evan Almloff ee25c03e74 fix some clippy lints 2023-09-27 10:13:45 -05:00
Evan Almloff b60671e0fe fix non extending attributes 2023-09-27 10:02:49 -05:00
Evan Almloff 7b51bb8060 WIP: add extends to the props macro 2023-09-26 19:23:00 -05:00
Evan Almloff 9e167dfdb7 Merge branch 'many_optional_attributes' into pr/atty303/1349 2023-09-22 09:32:05 -05:00
Evan Almloff e113562c7c Merge branch 'master' into fix-event-bubbling 2023-09-22 08:26:05 -05:00
Evan Almloff 7033276c34 Merge branch 'master' into pr/atty303/1349 2023-09-20 16:19:23 -05:00
Evan Almloff fa494349fe add a lifetime to the properties trait and make the manual spread example work 2023-09-20 16:15:11 -05:00
Evan Almloff fc8c25280a allow many attributes to be attached to one element 2023-09-20 16:02:04 -05:00
Evan Almloff dc446b5e5b fix extending an element 2023-09-19 16:38:27 -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 b9a92a1bd8 fix core exports 2023-09-17 20:03:58 -05:00
Evan Almloff 219c068283 Merge branch 'master' into events-2 2023-09-17 20:01:21 -05:00
Evan Almloff 98335bd9a6 Merge branch 'master' into fix-event-bubbling 2023-09-17 20:00:22 -05:00
Evan Almloff 23c215da02 make RuntimeGuard public 2023-09-17 14:11:13 -05:00
Jonathan Kelley 13f10fea1b Merge pull request #1441 from ealmloff/fix-uplink
Expose public methods for manipulating the global runtime
2023-09-16 11:59:59 -07:00
Jonathan Kelley e59a05141e Merge pull request #1446 from ealmloff/deduplicate-hot-reload-cli
Deduplicate serve code with hot reloading in the CLI crate
2023-09-16 11:55:16 -07:00
Leonard c866ae602b Add system for creating component attributes + new #[component] attribute (#1448)
* Add `#[component]` attribute + system for creating component attributes + other stuff

* Delete inlineprops.rs

* Update inline_props.rs

* Cargo fmt

* Fix clippy warnings and paths in props/mods.rs

* Include where clause in `#[inline_props]` output

* Allow Clippy type complexity in `LinkProps`

* Allow the type complexity lint for the entire link.rs file

* Remove snake_case -> PascalCase converter, but rather enforce PascalCase

Also:
- Put the second function inside the main one instead of besides it.
- Simplify

* Simplify type check lints so they don't return false positives

They will not always work, but they won't return any false positives, like for aliases. This is likely going to be replaced by a more polished Clippy-backed linting system.

* Fix #583

* Cargo fmt

* Add docs for `deserialize()` and remove useless comment

* Add `#[component]` to prelude

* Merge branch 'master' of https://github.com/tigerros/dioxus

* #[inline_props] is no more. Except in the docs folder, but that's going to be removed

* Remove docs folder

* Remove docs from workspace

* Resolve `DeserializerOutput` conversation
2023-09-15 09:13:36 -05:00
ealmloff f449823d10 Merge branch 'master' into events-2 2023-09-12 09:33:54 -05:00
Evan Almloff c8fca7b321 fix clippy 2023-09-12 09:28:08 -05:00
Evan Almloff 3eee13c7eb Merge branch 'master' into fix-event-bubbling 2023-09-11 16:40:23 -05:00
Evan Almloff 9d044ee589 make clippy happy 2023-09-11 16:30:16 -05:00
Evan Almloff 73e0be9e65 recycle vnode ids 2023-09-11 16:25:32 -05:00
Evan Almloff 589483d892 remove logs 2023-09-11 16:18:55 -05:00
Evan Almloff d81d3ebaef assign parents through fragments 2023-09-11 16:16:16 -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 ed9573094c fix ComponentProps partialeq 2023-09-11 15:13:29 -05:00
Evan Almloff bc3b781136 fix runtime import 2023-09-10 13:25:19 -05:00
Evan Almloff 083ccd765c fix formatting 2023-09-10 13:23:29 -05:00
Evan Almloff 49a127b31e deduplicate serve code with hot reloading in the CLI crate 2023-09-09 16:18:52 -05:00
ealmloff 28d71624ef Restore context changes 2023-09-09 16:00:29 -05:00
Evan Almloff 9496853fbc expose public methods for manipulating the global runtime 2023-09-08 10:05:58 -05:00
Evan Almloff 66333e9767 improve context tracing 2023-09-08 10:00:05 -05:00
Evan Almloff c55c17cb81 switch to tracing for logging 2023-09-06 17:47:33 -05:00
Evan Almloff 992ac4a3fb clear borrowed props after ensure_drop_safety 2023-09-06 16:12:01 -05:00
Evan Almloff d06e64e5ad fix dioxus-tui events 2023-09-06 12:51:02 -05:00
Evan Almloff 0ab7a02777 fix clippy 2023-09-05 21:30:20 -05:00
Evan Almloff 02456c1068 fix double drop of bubble id 2023-09-05 21:21:54 -05:00
ealmloff 6662892c10 find attributes and components to drop in lazy nodes (#1376) 2023-09-05 13:43:42 -05:00
Evan Almloff bd38cddc9f fix dioxus core event tests 2023-09-04 19:17:43 -05:00
Evan Almloff 9552ab6c1c pass event propagation test 2023-09-04 19:10:11 -05:00
Evan Almloff d26aa95bcd update vnode ptr when parent of component reruns 2023-09-04 09:57:26 -05:00
Evan Almloff cfc6887e34 use raw pointers instead of transmute to make miri happy 2023-09-04 09:28:16 -05:00
Evan Almloff baf36ab9ec Merge branch 'master' into events-2 2023-09-02 18:14:36 -05:00
Evan Almloff df222c121a port examples to new events 2023-09-01 15:38:55 -05:00
Evan Almloff cf04256395 try to keep template indexes valid 2023-08-31 16:14:14 -05:00
Evan Almloff 036e1ff0f5 remove node refs before dropping nodes 2023-08-31 15:38:31 -05:00
Evan Almloff c5ebdc9635 fix parents in placeholder diffing 2023-08-31 14:17:26 -05:00
Evan Almloff b0733958f2 Merge branch 'master' into fix-event-bubbling 2023-08-29 13:00:01 -05:00