Commit graph

3948 commits

Author SHA1 Message Date
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
Marc Espín
8427a3f657
Support Bytes in AttributeValue (#543) 2022-09-07 09:20:35 -05:00
Demonthos
2d08532bad
Improve documentation for the native core and native core macro crates (#528)
* improve documentation for the native core and native core macro crates

* fix spelling of depenency
2022-09-06 17:25:10 -07:00
Marc Espín
286cfa43b7
Fix repo link and example name (#545) 2022-09-06 13:42:45 -05:00
Altug Sahin
0c421f6e8c
Document formatting and typo fixes (#495)
* minor formatting

* Internationalization: move guide to en folder and preserve its history. (#494)

* chore: move guide to en folder

* docs: add english as language

* merged conf resolved

* chore: remove outdated docs

* chore: use taffy dimension directly

* Add PT-BR translations (#456)

* Translate final.md, hello_world.md, README.md, ROADMAP.md and SUMMARY.md

* Translatation complete

* Internationalization: move guide to en folder and preserve its history. (#494)

* Clean files and build mdBook with localization feature

* Rebase, remove leftovers and check book builds for every language: 

Co-authored-by: Jon Kelley <jkelleyrtp@gmail.com>

* Remove argument from `use_hook` closure (#496)

Also; update docs for said function

* chore: prevent reference from being uploaded

Co-authored-by: Altug Sahin <altugsahin@gmail.com>
Co-authored-by: Jon Kelley <jkelleyrtp@gmail.com>
Co-authored-by: Breno Rocha <66398400+amindWalker@users.noreply.github.com>
Co-authored-by: Reinis Mazeiks <rMazeiks@users.noreply.github.com>
Co-authored-by: = <evanalmloff@gmail.com>
2022-09-05 13:58:19 -05:00
YuKun Liu
59b8a84530 feat: commit code 2022-08-30 21:12:57 -07:00
YuKun Liu
9f20337e5e feat: rebuild supported 2022-08-27 21:56:31 -07:00
YuKun Liu
1aaedab752 Merge branch 'master' of https://github.com/mrxiaozhuox/dioxus-cli 2022-08-27 10:43:17 -07:00
YuKun Liu
603aaa1c09 feat: plugin serve support 2022-08-27 10:41:15 -07:00
YuKun Liu
e6650dee2c
Merge pull request #63 from trevyn/exit-code
Return non-zero exit code on error
2022-08-27 08:50:07 -07:00
trevyn
9152e00fab Return non-zero exit code on error 2022-08-27 11:18:44 +04:00
Evan Almloff
7b9a321356 update to work with templates 2022-08-26 16:28:46 -05:00
mrxiaozhuox
6cce4b9f4d feat: commit code 2022-08-26 10:27:06 -07:00
Norman Paniagua
8347de5956
Added dialog tag (#533)
* added dialog tag

* updated attribute type
2022-08-24 08:01:40 -05:00
mrxiaozhuox
062d0eab47 feat: commit serve info 2022-08-23 15:41:39 -07:00
mrxiaozhuox
6c1374edb3 feat: commit code 2022-08-22 11:00:31 -07:00