Jonathan Kelley
ba26b1001a
chore: clean up web impl
2022-11-30 17:44:00 -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
16a521a601
chore: update docs
2022-11-30 10:31:44 -05:00
Jonathan Kelley
03aea885cf
chore: make clippy happy
2022-11-29 16:46:25 -05:00
Jonathan Kelley
7c3d308ab5
chore: make warnings go away
2022-11-29 16:31:04 -05:00
Jonathan Kelley
0027cdd938
chore: get event test working
2022-11-27 09:38:40 -05:00
Jonathan Kelley
565df11f7b
chore: more tests passing
2022-11-27 02:06:04 -05:00
Jonathan Kelley
f614cbb401
wip: migrate all tests to core
2022-11-27 00:56:49 -05:00
Jonathan Kelley
d0554b9ed6
chore: add tests for context api
2022-11-27 00:38:40 -05:00
Jonathan Kelley
04296bb88d
chore: fix tests
2022-11-27 00:25:35 -05:00
Jonathan Kelley
399169800d
chore: dynamic attributes cleanup
2022-11-27 00:22:39 -05:00
Evan Almloff
d78af904e6
work on intigrating state with passes
2022-11-26 15:25:02 -06:00
Evan Almloff
4812b5124a
clean up examples
2022-11-26 12:18:23 -06:00
Evan Almloff
42888f0cbc
add up dependant test
2022-11-26 12:13:37 -06:00
Evan Almloff
bb3be32b19
fix some warnings
2022-11-26 11:51:52 -06:00
Evan Almloff
51f643c5dc
make passes exicute in parallel instead of executing invidual passes in parellel
2022-11-26 11:50:54 -06:00
Evan Almloff
8af59d6969
move height into the tree instead of the realdom
2022-11-25 22:22:56 -06:00
Evan Almloff
7d3ac26fce
fix deadlock and add more tests
2022-11-25 15:04:00 -06:00
Evan Almloff
9e47468c3a
more work on parallel passes
2022-11-25 13:38:01 -06:00
Evan Almloff
26d4e48480
make resolve passes public
2022-11-25 11:45:47 -06:00
Evan Almloff
c7eeeef68e
add more code for parrellel passes
2022-11-25 11:44:46 -06:00
Jonathan Kelley
bffb2644a3
fix: node reclaimation
2022-11-25 02:12:29 -05:00
=
4096861c59
work on upward pass
2022-11-24 22:56:19 -06:00
Evan Almloff
e08a2186a6
make get node parent mut optionally return a parent
2022-11-24 22:16:27 -06:00
Evan Almloff
21edea62be
add as_varient functions to OwnedAttributeValue
2022-11-24 17:43:55 -06:00
Evan Almloff
5f4b08496c
update to taffy 0.2
2022-11-24 17:41:12 -06:00
Evan Almloff
f9059c3f30
handle height
2022-11-24 17:41:07 -06:00
Evan Almloff
dcad2fe8a2
intial update to new mutations
2022-11-24 15:05:15 -06:00
Evan Almloff
078b8ba833
work on seperating tree struture from realdom
2022-11-24 10:56:44 -06:00
Jonathan Kelley
5713e13ff2
feat: implement ID cycling
2022-11-24 09:11:27 -05:00
Jonathan Kelley
0cfbfc88e2
feat: more tests working
2022-11-24 06:47:14 -05:00
Jonathan Kelley
4dd9a616a5
wip: fragment diffing working
2022-11-23 23:15:01 -08:00
Jonathan Kelley
0266dfdc05
wip: error bubbling
2022-11-23 13:50:48 -08:00
Jonathan Kelley
62d672fc90
wip: play with error code
2022-11-22 23:30:44 -08:00
Jonathan Kelley
09b2ff2736
feat: tests list
2022-11-22 21:44:20 -08:00
Jonathan Kelley
9c4abcbea0
wip: more tests!
2022-11-22 21:32:26 -08:00
Jonathan Kelley
662f58c8bc
wip: add diffing tests
2022-11-22 20:16:14 -08:00
Jonathan Kelley
4bfd936e12
chore: tweak fragments and tests
2022-11-22 19:59:56 -08:00
Jonathan Kelley
0e5a59f9ed
wip: error boundary
2022-11-22 18:38:27 -08:00
Jonathan Kelley
112c954e00
Merge branch 'master' into jk/templates-v3
2022-11-22 16:11:12 -08:00
David Craven
1e99e35572
Implement push view for ios. ( #612 )
2022-11-22 12:35:40 -08:00
Jonathan Kelley
7e6cea3a13
wip: continue to tweak suspense
2022-11-22 10:05:13 -08:00
David Craven
99dafdb8ee
Build failure on master. ( #627 )
...
* Build failure on master.
* Fix ci failure.
* Fix test.
* Ignore broken tests.
* Fix doctests.
2022-11-22 09:56:15 -08:00
Jonathan Kelley
08ca068d1c
chore: iron out all events
2022-11-21 17:15:17 -08:00
Jonathan Kelley
491bf4332d
wip: stop transmuting reference
2022-11-21 17:00:34 -08:00
Jonathan Kelley
d407035931
chore: wipe away old src
2022-11-20 15:58:05 -08:00
Jonathan Kelley
493591400f
wip: pre any props
2022-11-19 17:07:29 -08:00
Jonathan Kelley
12808ec0aa
wip: think about dyn any for ScopeState
2022-11-19 15:24:28 -08:00
Jonathan Kelley
5253ce6b65
wip: usecallback
2022-11-19 13:43:19 -08:00
Jonathan Kelley
57c10174ec
wip: add use_callback hook
2022-11-19 13:21:02 -08:00
Jonathan Kelley
6c677e64da
chore: make for loops not the same
2022-11-17 22:55:46 -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
073fea9ed3
Merge branch 'master' into jk/templates-v3
2022-11-16 22:24:21 -08:00
Demonthos
f21c8423eb
optimizations for wasm size ( #582 )
...
* optimize for size
* fix tests
* revert log feature
* make backtrace not optional
* remove dev feature from web dev-deps
2022-11-16 22:22:13 -08:00
Jonathan Kelley
c1c5821dcf
Merge branch 'master' into jk/templates-v3
2022-11-16 22:12:16 -08:00
Jon Kelley
8ea61e1b3e
feat: simple iterators and conditionals in rsx ( #564 )
...
* feat: simple iterators
* fix: into_iter
* feat: add support for unterminated conditionasl
* fix: add tempalte mapping for helpers
2022-11-16 22:10:50 -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
ea7ab5f765
wip: it works more
2022-11-15 23:59:19 -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
e09b6bf813
chore: tweak generic arguments and iterators in rsx
2022-11-15 20:58:56 -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
c44bd11fe5
chore: more refactoring, docs
2022-11-11 18:29:27 -08:00
Adrian Wannenmacher
79ea1994db
fix desktop dependency wry ( #618 )
2022-11-10 12:03:26 -06:00
Jonathan Kelley
f7df6a9893
chore: use std::future::Future instead
2022-11-09 11:02:52 -08:00
Jonathan Kelley
f5bc137f01
chore: clean up scheduler code
2022-11-09 10:58:11 -08:00
Jonathan Kelley
c096057dd3
chore: tweak attributes to only set ID once
2022-11-08 20:06:39 -08:00
Jonathan Kelley
fc9fe6e560
feat: split apart template mutations
2022-11-08 19:39:37 -08:00
Jonathan Kelley
203935834d
feat: suspense!
2022-11-07 22:55:22 -08:00
Jonathan Kelley
e6c53803a6
feat: abstract to rc wake
2022-11-06 14:28:41 -08:00
David Craven
5c996f21fb
Update wry to 0.22.0 ( #604 )
2022-11-06 01:49:25 -07:00
Jonathan Kelley
a38fc9e4ab
feat: suspense!
2022-11-06 01:48:34 -07:00
Jonathan Kelley
aec1b326ba
wip: so much suspense code
2022-11-03 22:30:26 -07:00
Jonathan Kelley
d2ce57ba6e
feat: poll async once
2022-11-03 20:56:31 -07:00
Jonathan Kelley
94601ccd1f
feat: async components!
2022-11-03 17:34:42 -07:00
Jonathan Kelley
51aeb29d1a
wip: figure out async syntax
2022-11-03 02:37:41 -07:00
Jonathan Kelley
591674f701
wip: allow async into component
2022-11-03 02:11:04 -07:00
Jonathan Kelley
5d91f51e17
chore: clean things up
2022-11-03 01:38:18 -07:00
Jonathan Kelley
584504feb7
feat: keys
2022-11-03 01:24:20 -07:00
Jonathan Kelley
dddbcfd5e2
feat: works with components
2022-11-02 17:36:36 -07:00
Jonathan Kelley
c6a6c3d0f8
feat: components pass thru children
2022-11-02 17:29:18 -07:00
Jonathan Kelley
b6c0bce89c
feat: support cached ssr
2022-11-02 01:00:37 -07:00
Jonathan Kelley
4a31b29703
feat: simple tests passing
2022-11-01 18:42:29 -07:00
Demonthos
f89cd20455
fix tui example links ( #607 )
2022-10-28 18:06:39 -07:00
Jonathan Kelley
23603aaaf5
wip: rewrite core to be template focused
2022-10-27 21:58:47 -07:00
Jonathan Kelley
67012c38df
feat: more diffing iteration
2022-10-26 18:40:38 -07:00
Jonathan Kelley
22d4bf7346
feat: use walking pattern
2022-10-26 18:04:47 -07: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
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
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
saicu
6476335750
to_owned!: allow optional comma at the end ( #584 )
2022-10-08 16:23:26 -07:00
Jonathan Kelley
03bc63dacc
wip: wire up bodynodes in more places
2022-10-05 01:13:14 -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
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
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
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
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
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
Norman Paniagua
8347de5956
Added dialog tag ( #533 )
...
* added dialog tag
* updated attribute type
2022-08-24 08:01:40 -05:00
Demonthos
a9e71cb001
expose desktopconfig in public interface ( #529 )
2022-08-17 11:16:05 -07:00
Demonthos
baf1807338
allow duplicate idents in format_args_f ( #515 )
2022-08-10 22:45:56 -07:00
Demonthos
4a8a7dd5f4
allow the last attribute in a component to contain formatting ( #504 )
2022-07-27 13:52:09 -07:00
zohnannor
15e9aa1958
Fix weird docs typo/copy-paste error ( #507 )
...
- introduced in a8952a9ee8
and 4518b6bc8c
2022-07-24 17:21:11 -05:00
Demonthos
39cbc82107
update tui to use taffy dimention directly ( #501 )
2022-07-19 09:27:19 -07:00
Jonathan Kelley
dbb842e285
Merge branch 'master' of github.com:DioxusLabs/dioxus
2022-07-18 13:50:11 -07:00
Jonathan Kelley
62b9a0593f
chore: use taffy dimension directly
2022-07-15 22:17:00 -04:00
Reinis Mazeiks
d734dc5b46
Remove argument from use_hook
closure ( #496 )
...
Also; update docs for said function
2022-07-11 15:50:56 -04: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
Jonathan Kelley
92a8b7c75f
fmt: fix formatting
2022-07-07 02:52:37 -04:00
Jonathan Kelley
3d47cb48fa
fix: autofmt on single line rsx calls
2022-07-07 02:06:50 -04:00
Jonathan Kelley
2b9888627b
Merge branch 'master' of github.com:DioxusLabs/dioxus
2022-07-07 01:46:48 -04:00
Jonathan Kelley
7ff4d616d3
chore: remove outdated docs
2022-07-07 01:42:03 -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
Adia Robbie
c271fc132e
dioxus-desktop(Update-dep): tauri 0.19.x ( #489 )
...
* Update(dep): tauri 0.19.x
2022-07-06 12:05:31 -04:00
Demonthos
baaa1752d3
add query context ( #400 )
2022-07-05 19:44:54 -05:00
Jonathan Kelley
251aafa5fd
fix: fmting
2022-07-05 18:42:00 -04:00
Jonathan Kelley
575f92d2d4
chore: update readme and tests for autofmt
2022-07-05 18:23:30 -04:00
Jonathan Kelley
76581e7400
fix: disappearing manual props
2022-07-05 18:03:04 -04:00
Jonathan Kelley
19e6e43358
fix: only apply comments if relevant
2022-07-05 17:59:33 -04:00
Jonathan Kelley
fa9ebe17cc
feat: fix autoformatting around one liners
2022-07-05 17:49:16 -04:00
Jonathan Kelley
64d669e934
chore: add todo list to autofmt crate
2022-07-05 13:31:26 -04:00
Jonathan Kelley
2634755620
fix: handle comments around attributes better
2022-07-05 02:06:54 -04:00