Commit Graph
3990 Commits
Author SHA1 Message Date
MeiHui FAN c2c4989483 Why clean up the 'dist' directory when building for desktop?
This can affect things like extra side generating css files.
2022-10-24 19:48:26 +08:00
David Craven 7e3a6fb4a4 Some fixes for wayland and ios. (#602) 2022-10-23 19:40:41 -07:00
Jonathan Kelley 7cbb4d52dd wip: more modifications to templates 2022-10-21 18:54:14 -07:00
YuKun Liu 6ae68a93a9 Merge pull request #72 from crisqyxw/master
Update doc to avoid misunderstanding
2022-10-21 16:12:59 -07:00
crisqyxw 90e7463bb3 Update doc to avoid misunderstanding 2022-10-21 12:17:43 +08: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
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
Daniel Olano b51abd1a9c Add datetime attribute to time element (#590) 2022-10-14 10:16:52 -05:00
Demonthos ab10d327ac Fix attribute value in macro (#577)
* create into AttributeValue trait to allow arbitraty attribute values

* allow attributevalue in non-template macro
2022-10-12 20:43:37 -07:00
saicu e8c48d46cf replace fxhash crate with rustc-hash (#588) 2022-10-12 18:27:26 -07:00
YuKun Liu 39e38917d6 feat: add api function 2022-10-12 16:37:26 -07:00
YuKun Liu 0fe8e4bcbd fix: plugin init problem 2022-10-12 11:47:05 -07:00
YuKun Liu 96ebe74d12 feat: custom plugin config support 2022-10-10 22:49:52 -07:00
YuKun Liu e1497acef4 feat: types 2022-10-10 22:38:30 -07:00
Demonthos 23c48cf795 render optimizations (#585) 2022-10-08 23:24:41 -07:00
Jon Kelley fb2f3e68ff fix: random commit (#586) 2022-10-08 23:07:20 -07:00
YuKun Liu cf9a9513df feat: commit code 2022-10-08 21:28:06 -07:00
saicu 6476335750 to_owned!: allow optional comma at the end (#584) 2022-10-08 16:23:26 -07:00
Jonathan Kelley 62e067ef5d fix: center time 2022-10-07 01:11:59 -07:00
Jonathan Kelley 64c19c6e67 fix: no h2 for platforms 2022-10-07 01:10:48 -07:00
Jonathan Kelley 56a6ac2242 fix: headers 2022-10-07 01:04:58 -07:00
Jonathan Kelley 1a18911e21 fix: readme html 2022-10-07 01:04:17 -07:00
Jon Kelley 4f1cf78e68 design: make the homepage snazzier (#580)
* feat: snazzy header

* feat: better svg

* fix: optimize svg for safari

* feat: prettier homepage
2022-10-07 01:00:32 -07:00
YuKun Liu f238e43bff feat: commit code 2022-10-06 17:25:57 -07:00
Jonathan Kelley 03bc63dacc wip: wire up bodynodes in more places 2022-10-05 01:13:14 -07:00
YuKun Liu 5104f767b3 Merge branch 'master' of https://github.com/DioxusLabs/cli 2022-10-03 09:37:26 -07:00
YuKun Liu b3dcebcc50 feat: commit code 2022-10-03 08:47:58 -07:00
YuKun Liu 2d158c9afc Merge pull request #65 from Demonthos/templates
update hot reloading to work with templates
2022-10-03 08:44:13 -07:00
YuKun Liu 3fe3598f51 Merge pull request #70 from xTeKc/readme
update Readme
2022-10-02 22:35:40 -07:00
YuKun Liu 4960b05b7a Merge pull request #71 from xTeKc/cli-mod
update: match comments to readme
2022-10-02 22:34:17 -07:00
Demonthos 928b5358b2 allow arbitrary attribute value in owned attribute value (#574) 2022-10-02 14:13:06 -07:00
Marc Espín e98f46bbcc Remove a Node listeners when it is removed (#576) 2022-10-02 14:12:33 -07:00
Demonthos daeffd4149 pass clippy (#575) 2022-10-02 14:12:24 -07:00
Demonthos 46d46b139a Merge branch 'master' into templates 2022-10-02 07:12:14 -05:00
xTeKc 348180ec40 Merge branch 'DioxusLabs:master' into cli-mod 2022-10-02 02:35:00 -04:00
xTeKc 3bee0308fc update to match readme 2022-10-02 02:34:22 -04:00
xTeKc 64a5329fda Merge branch 'DioxusLabs:master' into readme 2022-10-02 02:29:17 -04:00
xTeKc 555680df99 update: improve readability 2022-10-02 02:28:25 -04:00
YuKun Liu 62a2bb551e Merge pull request #69 from xTeKc/master
update build.yml: add new target
2022-10-01 22:16:07 -07:00
xTeKc 99a7f68a28 update build.yml: add new target 2022-10-02 01:12:34 -04:00
YuKun Liu 77393b273e feat: commit plugin error handle 2022-10-01 15:17:09 -07:00
Jon Kelley 4dbb4e1e4b Merge pull request #68 from DioxusLabs/mrxiaozhuox-patch-2
Fix Docs CI to not deploy on any pull request
2022-09-30 13:46:30 -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
Jonathan Kelley 181a51a63b wip: add whitespace parsing to rsx 2022-09-30 10:51:53 -07:00
Demonthos b32fd2d2cd fix scroll data (#569) 2022-09-30 10:48:52 -07:00
Marc Espín 964a942243 Feat: Make AttributeValue::Any usable (#565)
* Implemented Display for AttributeValue::Any

* Make ArbitraryAttributeValue public

* allow(missing_docs) for ArbitraryAttributeValue

* Formatted lib.rs
2022-09-30 10:48:25 -07:00
Jonathan Kelley 5313fc0cc6 fix: trailing commas with key 2022-09-28 17:06:11 -07:00
Jonathan Kelley a37458b9fa chore: fixes to autoformat to prevent double rendering of expr line 2022-09-28 16:47:10 -07:00
YuKun Liu a81f0c6810 Update docs.yml 2022-09-28 07:59:15 -07:00