Commit graph

168 commits

Author SHA1 Message Date
Evan Almloff
33c08b3d74 Merge branch 'upstream' into fix-hot-reloading 2022-12-23 18:59:57 -06:00
Jonathan Kelley
2409d499e0 chore: adjust attribute macro 2022-12-23 19:46:09 -05:00
Evan Almloff
8fcccfa294 intigrate upstream changes 2022-12-23 17:59:51 -06:00
Jonathan Kelley
fd8015e943 fix: hovers 2022-12-23 17:39:07 -05:00
Jonathan Kelley
4e49d71efe chore: tweak global attributes 2022-12-23 17:11:00 -05:00
Evan Almloff
a42ed7d445 create hot-reload-context flag 2022-12-23 15:08:44 -06:00
Evan Almloff
776c5e8839 fix hot reloading with global and svg attibutes 2022-12-22 13:52:41 -06:00
Evan Almloff
e5a5850354 merge master 2022-12-20 20:48:28 -06:00
Evan Almloff
67921cacc3 post merge fixes 2022-12-19 21:20:46 -06:00
Evan Almloff
493ee1cb3f Merge branch 'upstream' into fix-hot-reloading 2022-12-19 21:17:22 -06:00
Evan Almloff
4364a4b511 handle updating templates better 2022-12-19 19:28:44 -06:00
Jonathan Kelley
ca4d4ae8e1 chore: dont get rid of form data 2022-12-19 15:10:50 -08:00
Jonathan Kelley
50faa7dd08 feat: add proper event type 2022-12-19 14:14:01 -08:00
Jon Kelley
5ac9b595ea
Revert "fix: liveview interpreter using new templates" 2022-12-16 14:20:05 -08:00
=
b6ade84ea6 fix some lints 2022-12-16 10:19:26 -06:00
=
14dd568987 Merge branch 'upstream-master' into fix-hot-reloading 2022-12-16 10:07:11 -06:00
Jonathan Kelley
01fa68645f fix: liveview test 2022-12-15 20:42:01 -08:00
Jonathan Kelley
7790d2c065 chore: simplify liveview abstraction 2022-12-15 18:46:59 -08:00
Jonathan Kelley
06e8e096bb feat: more fixes to liveview 2022-12-15 14:25:23 -08:00
=
ab743e01b7 make html hot reloding context work 2022-12-14 21:38:50 -06:00
Jonathan Kelley
e256fe1079 wip: add html event type 2022-12-14 19:07:33 -08:00
=
6d2e510200 WIP implement hot reloading context for html 2022-12-12 21:46:49 -06:00
=
c961bf0779 improve and unify element macro 2022-12-11 10:26:21 -06:00
Jonathan Kelley
a252774226 chore: clean up docs with changes to templates 2022-12-07 13:39:22 -08:00
Jonathan Kelley
7b1cdb7d85 feat: get desktop working with new template strategy 2022-12-05 16:08:41 -08:00
Jonathan Kelley
a61daf220d feat: context api overhaul 2022-12-02 16:24:49 -08:00
Jonathan Kelley
85657d3906 feat: rip out mutations for templates 2022-12-01 00:46:15 -05:00
Jonathan Kelley
3b166c9edd wip: clean up some things 2022-11-30 23:54:30 -05:00
Jonathan Kelley
18d6b1ad6f feat: get web working properly 2022-11-30 17:21:10 -05:00
Jonathan Kelley
0027cdd938 chore: get event test working 2022-11-27 09:38:40 -05:00
Jonathan Kelley
08ca068d1c chore: iron out all events 2022-11-21 17:15:17 -08:00
Jonathan Kelley
30ef225812 feat: event handling on desktop 2022-11-17 20:00:39 -08:00
Jonathan Kelley
e8ae830cf2 feat: get desktop working with just creation 2022-11-15 18:32:48 -08:00
Jonathan Kelley
8caabb97d8 wip: more work on html 2022-11-15 16:51:22 -08:00
Jonathan Kelley
0dad91bc08 wip: pass more events 2022-11-15 16:37:23 -08:00
Jonathan Kelley
47d0f51e00 wip: overhaul event system 2022-11-15 16:05:22 -08:00
Jonathan Kelley
c096057dd3 chore: tweak attributes to only set ID once 2022-11-08 20:06:39 -08:00
Jonathan Kelley
c6a6c3d0f8 feat: components pass thru children 2022-11-02 17:29:18 -07:00
Jonathan Kelley
4a31b29703 feat: simple tests passing 2022-11-01 18:42:29 -07:00
Jonathan Kelley
22d4bf7346 feat: use walking pattern 2022-10-26 18:04:47 -07:00
Jonathan Kelley
90982e0ccb wip: start to refactor out hot reloading from packages
Also implement alternative simpler template system
2022-10-20 09:56:09 -07:00
Daniel Olano
b51abd1a9c
Add datetime attribute to time element (#590) 2022-10-14 10:16:52 -05:00
Demonthos
047ed1e553
Subtree memorization / reactive templates (#488)
This commit adds subtree memoization to Dioxus.

Subtree memoization is basically a compile-time step that drastically 
reduces the amount of work the diffing engine needs to do at runtime by
extracting non-changing nodes out into a static "template." Templates 
are then understood by the various renderers in the ecosystem as a 
faster way of rendering the same items. 

For example, in the web, templates are simply a set of DOM Nodes created 
once and then cloned later. This is the same pattern frameworks like Lithtml
and SolidJS use to achieve near-perfect performance. 

Subtree memoization adds an additional level of complexity to Dioxus. The RSX
macro needs to be much smarter to identify changing/nonchanging nodes and
generate a mapping between the Template and its runtime counterparts.

This commit represents a working starter point for this work, adding support 
for templates for the web, desktop, liveview, ssr, and native-core renderers.
In the future we will try to shrink code generation, generally improve 
performance, and simplify our implementation.
2022-09-30 12:03:06 -07:00
Demonthos
b32fd2d2cd
fix scroll data (#569) 2022-09-30 10:48:52 -07:00
Demonthos
d4d5d2733e
add missing global attributes (#546) 2022-09-08 12:06:25 -07:00
Eric Hulburd
02a21bc193
fix: set false for media event bubbling (#542) 2022-09-08 07:55:07 -05:00
Norman Paniagua
8347de5956
Added dialog tag (#533)
* added dialog tag

* updated attribute type
2022-08-24 08:01:40 -05:00
Jon Kelley
d9546d9504
Renderers are now packages, not features. (#387)
* feat: use synchronous router design

* feat: function to get router out of dom

* chore: restructure workspace to use renderers as packages, not features
2022-07-09 15:15:20 -04:00
Demonthos
4a5ae758ee
Allow Multiple dependencies for states in the RealDom (native core) (#412)
* WIP multable deps

* WIP: refactor and genralize state macro

* add traversable trait

* update tui to use elementid to index dom
2022-07-07 00:50:22 -04:00
Reinis Mazeiks
f30387597a Add wheel events to event example; make interface prettier 2022-06-29 01:18:09 +03:00