Commit graph

140 commits

Author SHA1 Message Date
Evan Almloff
52d5c8d4e7 update READMEs and tags for the 0.3 release 2023-01-10 10:16:11 -06:00
Evan Almloff
d2b5af6615 remove logs from interpreter 2023-01-09 12:04:38 -06:00
Jonathan Kelley
7f01f61138 feat: publish 0.3 versions of many crates 2023-01-04 14:31:07 -05:00
Evan Almloff
ea43b864db remove attributes with the None value 2023-01-03 08:51:48 -06:00
Jonathan Kelley
4fdbce9a70 chore: clean up readmes 2022-12-29 16:17:03 -05:00
Jonathan Kelley
58b0519c2f feat: get interpreter working on desktop 2022-12-19 15:02:36 -08:00
Jonathan Kelley
50faa7dd08 feat: add proper event type 2022-12-19 14:14:01 -08:00
Evan Almloff
f84166fb11 allow configering the root name in the desktop renderer 2022-12-18 22:28:40 -06:00
Jon Kelley
5ac9b595ea
Revert "fix: liveview interpreter using new templates" 2022-12-16 14:20:05 -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
Jonathan Kelley
e256fe1079 wip: add html event type 2022-12-14 19:07:33 -08:00
Jonathan Kelley
e4d089fabc fix: sledgehammer hydate text 2022-12-12 11:52:56 -08:00
Evan Almloff
f7717d8eb2 bump sledgehammer version 2022-12-10 08:29:54 -06:00
Jonathan Kelley
1b7fe3fcde fix: dont use id for append 2022-12-09 16:44:08 -08:00
Evan Almloff
7ef180409d use sledgehammer-bindgen 0.1.2 2022-12-08 07:41:04 -06:00
Evan Almloff
99a4a9d45b Merge branch 'upstream' into optimize-templates-v3 2022-12-07 18:29:02 -06:00
Evan Almloff
b79ad4f50e Merge remote-tracking branch 'upstream/master' into optimize-templates-v3 2022-12-07 17:20:31 -06:00
Evan Almloff
5c6c235df0 cleanup code 2022-12-07 15:48:25 -06:00
Jonathan Kelley
4eefc3f854 chore: rename all &cx to cx, make clipppy happy 2022-12-07 13:11:40 -08:00
Jonathan Kelley
1b14b309e9 chore: clean up desktop 2022-12-06 16:37:28 -08:00
Evan Almloff
6102902387 work on optimizing web implementation 2022-12-06 14:24:35 -06:00
Jonathan Kelley
b182a6ee75 chore: clean up interpreter and bindings 2022-12-05 16:47:04 -08:00
Jonathan Kelley
7b1cdb7d85 feat: get desktop working with new template strategy 2022-12-05 16:08:41 -08:00
Jonathan Kelley
11a45c8ef0 chore: continue to clean things up 2022-12-01 01:08:49 -05:00
Jonathan Kelley
85657d3906 feat: rip out mutations for templates 2022-12-01 00:46:15 -05:00
Jonathan Kelley
18d6b1ad6f feat: get web working properly 2022-11-30 17:21:10 -05:00
Jonathan Kelley
3c19def550 chore: get create working and simplify dynamic nodes 2022-11-30 11:24:13 -05:00
Jonathan Kelley
7e6cea3a13 wip: continue to tweak suspense 2022-11-22 10:05:13 -08:00
Jonathan Kelley
20f9957fbe feat: diffing works on desktop! 2022-11-17 22:31:14 -08:00
Jonathan Kelley
30ef225812 feat: event handling on desktop 2022-11-17 20:00:39 -08:00
Jonathan Kelley
6b473cbdc5 feat: conditionals and iterators in rsx 2022-11-16 22:10:13 -08:00
Jonathan Kelley
642b21f125 suspense works in desktop 2022-11-16 11:48:47 -08:00
Jonathan Kelley
66319cf6e2 wip: queue mods 2022-11-16 01:13:39 -08:00
Jonathan Kelley
9a3f84037e fix: render namespces 2022-11-15 23:40:16 -08:00
Jonathan Kelley
7f85806fa6 wip: trying to get namespaced elements working 2022-11-15 23:31:23 -08:00
Jonathan Kelley
04bc635ac5 wip: prep to fix bug in create 2022-11-15 23:22:41 -08:00
Jonathan Kelley
e8ae830cf2 feat: get desktop working with just creation 2022-11-15 18:32:48 -08:00
Demonthos
3b7b503333
Refactor Mutations and simplify Templates (#578)
* update mutations to be path based rather than renderer integrated
2022-10-18 14:42:45 -07:00
Demonthos
020c4bf0f8
fix bug with dynamic nodes after fragments (#591) 2022-10-15 11:00:56 -07: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
Eric Hulburd
02a21bc193
fix: set false for media event bubbling (#542) 2022-09-08 07:55:07 -05:00
Jon Kelley
6e7015b997
Merge pull request #466 from Demonthos/fix_js_interperter
check that an node is an element before removing listeners
2022-06-30 15:18:40 -04:00
Evan Almloff
58a495351a check that an node is an element before removing listeners 2022-06-29 09:09:47 -05:00
Reinis Mazeiks
f3fcec2bdf Merge branch 'master' of https://github.com/DioxusLabs/dioxus into rusty-events
 Conflicts:
	packages/html/src/events.rs
	packages/tui/src/hooks.rs
2022-06-28 21:09:20 +03:00
Evan Almloff
61b4bb2f19 handle bubbling events 2022-06-22 13:57:05 -05:00
Evan Almloff
38de26d0e4 remove attributes correctly 2022-06-09 10:31:11 -05:00
Reinis Mazeiks
45980f9a1e Update examples to avoid deprecated API 2022-05-12 15:00:43 +03:00
Reinis Mazeiks
aaf9d4665f Update interpreter and example 2022-05-12 14:36:52 +03:00
Reinis Mazeiks
d84d414170 Add offset coordinates to mouse events on TUI and desktop. 2022-05-04 16:42:14 +03:00
Jonathan Kelley
3febd42588 Release dioxus-core v0.2.1, dioxus-core-macro v0.2.1, dioxus-html v0.2.1, dioxus-interpreter-js v0.2.1, dioxus-desktop v0.2.3, dioxus-hooks v0.2.1, dioxus-liveview v0.1.0, dioxus-native-core v0.2.0, dioxus-native-core-macro v0.2.0, dioxus-router v0.2.3, dioxus-ssr v0.2.1, dioxus-tui v0.2.2, dioxus-web v0.2.1, fermi v0.2.1, dioxus v0.2.4 2022-05-02 23:57:20 -04:00
Jonathan Kelley
dfc69c0905 fix: compile fail for web 2022-04-04 12:29:00 -04:00
Jon Kelley
5c6ff70dd4
Merge pull request #316 from DioxusLabs/jk/fix-hydration
fix: setnode method for rehydration code
2022-03-20 20:11:55 -04:00
Jonathan Kelley
ad027d7aa4 fix: radio buttons in forms 2022-03-20 20:11:12 -04:00
Jonathan Kelley
f26f704b6b fix: setnode method for rehydration code 2022-03-17 10:51:23 -04:00
Jonathan Kelley
2d2de36eed fix: filtering for buttons 2022-03-13 18:53:20 -04:00
Jonathan Kelley
841ad91fe1 fix: dblclick instead of doubleclick 2022-03-11 10:49:38 -05:00
Jonathan Kelley
e7505188d6 release: make a new 0.2.0 release of Dioxus 2022-03-09 14:24:05 -05:00
Jonathan Kelley
f98c3f161f fix: interpreter code for disabled and dangerous innter html 2022-03-05 14:38:28 -05:00
Shuanghui Yan
2a6e6371e7 Merge remote-tracking branch 'upstream/master' 2022-02-24 18:08:21 +08:00
Jonathan Kelley
92573d67a1 fix: keyed diffing accidentally pushing every node 2022-02-23 08:09:16 -05:00
Shuanghui Yan
4eeb3da8c9 fix: add ns param for removeAttribute 2022-02-22 23:14:11 +08:00
Jonathan Kelley
ba17b57cdd fix: also include values in onchange 2022-02-15 13:44:05 -05:00
Jonathan Kelley
345dfd4214
Merge pull request #243 from asaaki/update/wry-0-13
Update to wry 0.13; support IPC, devtool, and feature flags
2022-02-15 11:23:16 -05:00
Jonathan Kelley
5a908d1e8b fix: remove console log 2022-02-14 12:23:30 -05:00
mrxiaozhuox
dd9f0f362e fix: statement problem 2022-02-14 16:52:16 +08:00
Christoph Grabo
594a794f05
Switch from RPC to IPC 2022-02-13 20:34:26 +01:00
Christoph Grabo
afa5a301c7
Fix typo 2022-02-13 20:34:26 +01:00
Aster
2d1371167f Use === when rhs is string 2022-02-12 21:22:05 +08:00
Jonathan Kelley
4a3680ee1b chore: remove all warnings 2022-02-10 21:00:15 -05:00
Jonathan Kelley
82b0e6c8d6
Merge pull request #220 from DioxusLabs/jk/outerlinking
fix: always prevent default on `A` tags in desktop
2022-02-08 15:10:36 -05:00
Jonathan Kelley
4818c44c7c fix: also prevent default on buttons 2022-02-08 00:43:05 -05:00
Jonathan Kelley
fc5dd8f562 fix: always prevent default on a tags 2022-02-08 00:40:48 -05:00
Jonathan Kelley
95a6abbfc5 fix: class attributes don't adhere to es6 spec 2022-02-08 00:35:06 -05:00
Jonathan Kelley
4f46089fce feat: use serde-wasm-bindgen crate for speedup 2022-02-07 10:17:16 -05:00
Jonathan Kelley
15b074f60b fix: type 2022-02-05 20:41:15 -05:00
Jonathan Kelley
4cc3369241 fix: add a check for dangerousinnerhtml in interpreter 2022-02-05 20:16:52 -05:00
Jonathan Kelley
28e9e4373e fix: tweak js code 2022-02-04 18:11:58 -05:00
Jonathan Kelley
169f1dac11 Merge branch 'master' into jk/form-ma 2022-02-04 18:10:26 -05:00
Jonathan Kelley
b4391a3eaa fix: tweak the js bindings while we're at it 2022-02-04 02:44:27 -05:00
Jonathan Kelley
ca0d7dc268 fix: remove code generation 2022-02-04 01:56:54 -05:00
Jonathan Kelley
add21d5f9d feat: update bindings and interpreter with new tsc code 2022-02-03 12:52:05 -05:00
Jonathan Kelley
2c4e7beae8 wip: update interpreter 2022-02-02 11:32:00 -05:00
Jonathan Kelley
8f9d15db4a feat: enable form elements in web 2022-02-02 02:00:53 -05:00
Jonathan Kelley
c4556d050e Merge branch 'master' into jk/form-ma 2022-02-02 01:50:43 -05:00
Jonathan Kelley
84959a7826 feat: it works everywhere 2022-02-02 01:08:59 -05:00
Jonathan Kelley
b4923b2b81 ci: move gen folder out of src 2022-02-01 16:07:50 -05:00
Jonathan Kelley
71656adc89 publish: generate our bindings.rs file from an inlinejs snippet 2022-02-01 15:54:32 -05:00
Jonathan Kelley
5b69f9b686 release: make interpreter crate publishable 2022-02-01 15:45:03 -05:00
Jonathan Kelley
ee67a041d2 feat: turn interpreter into crate 2022-02-01 15:38:48 -05:00