Commit graph

3813 commits

Author SHA1 Message Date
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
YuKun Liu
762093094f feat: commit code 2022-09-27 20:34:32 -07:00
Jon Kelley
28fba42e7e
feat: add an unhygenic render macro (#556)
* feat: add an unhygenic render macro

* chore: use render instead of rsx!(cx,
2022-09-25 01:05:16 -07:00
Jon Kelley
0c48cb3601
feat: use infer instead of outdated mime-guess, bump wry (#548)
* feat: use infer instead of outdated mime

* chore: remove unused file

* fix: remove unused file
2022-09-24 23:48:05 -07:00
YuKun Liu
52e8d9f357
Merge branch 'master' into master 2022-09-25 13:55:46 +08:00
YuKun Liu
6ad1333a94 feat: commit code 2022-09-24 22:50:13 -07:00
YuKun Liu
6004cfdd40 feat: add some command 2022-09-23 16:10:17 -07:00
YuKun Liu
0c7d921853
Merge pull request #66 from Oyami-Srk/windows-fix
Fix problems on windows and jetbrains
2022-09-24 03:33:20 +08:00
Shiroko
a0ffb3bb65 Fix jetbrains saving tmp file to tilde suffix 2022-09-24 03:25:01 +08:00
Shiroko
dddaec20fc Fix program not found by fallback to ANSI-escape 2022-09-24 01:45:40 +08:00
YuKun Liu
9ee572ad26 docs: add path docs 2022-09-23 09:34:12 -07:00
YuKun Liu
e2852a60d1 feat: commit code 2022-09-22 17:03:15 -07:00
YuKun Liu
b59e41eaee fix: move is_dir & is_file to path 2022-09-22 17:01:38 -07:00
YuKun Liu
1c59c902a6 docs: commit docs 2022-09-22 11:05:37 -07:00
YuKun Liu
d47319526c docs: commit new document 2022-09-22 08:32:57 -07:00
YuKun Liu
f099042726 docs: commit new document 2022-09-22 00:24:07 -07:00
YuKun Liu
20c29ed042 feat: add serve-shutdown support 2022-09-21 22:57:26 -07:00
YuKun Liu
f47d2d3d30 feat: empty manager check 2022-09-21 22:36:12 -07:00
YuKun Liu
37ef7c3ff9 feat: support some event 2022-09-21 16:56:36 -07:00
Jon Kelley
bf9901a6cd
fix: use typeid of atoms for their unique ID (#558) 2022-09-17 10:50:05 -07:00
Jon Kelley
540e785d8b
Less clumsy configuration for desktop and mobile (#553)
* chore: dont use prebuilt builder pattern for configuring desktop

* chore: use regular config pattern for web

* Chore: update docs too

* chore: clean up some warnings
2022-09-13 16:22:27 -07:00
Jon Kelley
41b450eedf
chore: remove unnecessary brackets from examples (#552) 2022-09-13 14:57:23 -07:00
Chrislearn Young
e4466fee0a
Add liveview Salvo integration (#538) 2022-09-13 14:24:30 -07:00
Norman Paniagua
6e66d6fe36
Added initial_url to the router component (#510)
* added active_url

* renamed active_url to initial_url

* updated docs
2022-09-13 13:09:00 -07:00
Jon Kelley
67dc6e6017
feat: implement type magic to allow strings, format args, and other types directly in rsx (#550)
* feat: implement type magic

* chore: undo example

* fix: let tests pass

* chore: add generic to allow any nesting of iterators

* Chore: remove comments

* chore: update rsx usage

* chore: use cleaner version of generic IntoVnode

* chore: don't derive default for lfietimed thing

* chore: remove latent comment

* fix: accept a third parameter
2022-09-12 22:49:04 -07:00
Jon Kelley
38e8745db9
Remove lower case components that use the paran syntax (#551)
* chore: remove lowercase components

* chore: add docs are lowercase components

* docs: also add docs around lowercase components in current scope
2022-09-12 20:01:03 -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