Commit graph

1716 commits

Author SHA1 Message Date
Jonathan Kelley
74fba3b579 fix: remove scope from listener 2022-12-13 15:36:15 -08:00
Jonathan Kelley
7beb7f0ee4 fix: use and_then 2022-12-13 15:30:40 -08:00
Jonathan Kelley
b659f4d5d6 chore: add back template diffing 2022-12-13 15:18:20 -08:00
Jonathan Kelley
7e45f2aa04 feat: add scroll to 0 for web router 2022-12-13 15:00:54 -08:00
Jonathan Kelley
5c20e651da fix: get rollover working 2022-12-13 14:44:47 -08:00
Jonathan Kelley
79e786aca5 chore: convert to logs 2022-12-13 12:38:27 -08:00
=
6d2e510200 WIP implement hot reloading context for html 2022-12-12 21:46:49 -06:00
Jonathan Kelley
d4b6bb8a7b feat: fix the scope rollover bug 2022-12-12 18:31:30 -08:00
Jonathan Kelley
e4d089fabc fix: sledgehammer hydate text 2022-12-12 11:52:56 -08:00
Jonathan Kelley
d93eed4c29 feat: allow dynamic nodes to be into dynamic nodes 2022-12-12 11:20:25 -08:00
Jonathan Kelley
d160f38bc2 fix: parsing of attributes without trailing commas 2022-12-12 11:18:36 -08:00
Jonathan Kelley
6fd5ac38bb Merge branch 'master' of github.com:DioxusLabs/dioxus 2022-12-11 13:59:11 -08:00
Jonathan Kelley
0b3e8a4493 chore: add new import to prelude 2022-12-11 13:58:58 -08:00
=
c961bf0779 improve and unify element macro 2022-12-11 10:26:21 -06:00
=
b1d053d6cc fix template diffing 2022-12-11 09:38:38 -06:00
Evan Almloff
2419a2ae9d WIP diffing templates 2022-12-10 21:18:44 -06:00
Jon Kelley
5dc86fe0b7
Merge pull request #646 from Demonthos/tui_widgets
Tui widgets
2022-12-10 19:01:48 -08:00
Evan Almloff
6b19229b53 use interning to leak less memory 2022-12-10 16:21:31 -06:00
Evan Almloff
3e7dbe868a unwrap instead of using unreachable 2022-12-10 15:05:41 -06:00
Evan Almloff
134a45b89d fix fmt escape sequences in static attribute/text nodes 2022-12-10 14:58:13 -06:00
Evan Almloff
2131e5658b add hot reloading context trait 2022-12-10 14:09:59 -06:00
Evan Almloff
f16e3be2c2 Merge branch 'fix-hot-reloading' of https://github.com/demonthos/dioxus into fix-hot-reloading 2022-12-10 12:29:17 -06:00
Evan Almloff
da64b0c2a8 WIP parising 2022-12-10 12:29:15 -06:00
Evan Almloff
f7717d8eb2 bump sledgehammer version 2022-12-10 08:29:54 -06:00
Sam Schmeink
6166d4eb73 fix: replace fxhash with rustc-hash 2022-12-10 03:56:48 +01:00
Jonathan Kelley
1b7fe3fcde fix: dont use id for append 2022-12-09 16:44:08 -08:00
Jonathan Kelley
f153cdf61a fix: dont panic lazynodes 2022-12-09 16:40:09 -08:00
Jonathan Kelley
afeb308a1f chore: remove dbgs 2022-12-09 16:38:05 -08:00
Jonathan Kelley
dbf59f7c57 Merge branch 'master' of github.com:DioxusLabs/dioxus 2022-12-09 15:04:04 -08:00
Jonathan Kelley
b254d9e761 chore: remove cross-crate doc comments 2022-12-09 15:03:56 -08:00
Jon Kelley
051f85f78f
Merge branch 'master' into return-from-js 2022-12-09 13:19:05 -08:00
Evan Almloff
a9b7da1890 remove some unused files 2022-12-09 12:00:37 -06:00
Evan Almloff
bf47f64852 Merge branch 'upstream' into return-from-js 2022-12-08 11:25:15 -06:00
Evan Almloff
35bebbf0cb wrap the web eval result in a compatability layer 2022-12-08 10:57:09 -06:00
Evan Almloff
e863ef29b8 allow returning values from use_eval 2022-12-08 10:44:56 -06:00
Evan Almloff
7ef180409d use sledgehammer-bindgen 0.1.2 2022-12-08 07:41:04 -06:00
Evan Almloff
129a67cdc6 fix mouse interaction with widgets 2022-12-08 06:40:00 -06:00
Evan Almloff
15701d1c87 make clippy happy 2022-12-07 23:05:00 -06:00
Evan Almloff
bbd49bb37c cleanup code and examples 2022-12-07 23:01:13 -06:00
Evan Almloff
029255c7ac widgets 2022-12-07 20:28:01 -06:00
Evan Almloff
99a4a9d45b Merge branch 'upstream' into optimize-templates-v3 2022-12-07 18:29:02 -06:00
Jonathan Kelley
e6920e9b34 chore: fix web 2022-12-07 16:02:35 -08:00
Jonathan Kelley
1c3f4b2bc4 fix: use weak instead of sync 2022-12-07 15:42:39 -08:00
Jonathan Kelley
7ce07e3164 chore: fix tests passing 2022-12-07 15:29:32 -08:00
Evan Almloff
56b027ef33 fix more lints 2022-12-07 17:24:50 -06:00
Evan Almloff
cbaf36251f cargo fix 2022-12-07 17:24:11 -06:00
Evan Almloff
b79ad4f50e Merge remote-tracking branch 'upstream/master' into optimize-templates-v3 2022-12-07 17:20:31 -06:00
Jonathan Kelley
0bf4725639 fix: namespacing of dynamic attributes 2022-12-07 15:11:51 -08:00
Jonathan Kelley
db5b65b6cb chore: make cargo check happy with new apis 2022-12-07 14:51:14 -08:00
Evan Almloff
5c6c235df0 cleanup code 2022-12-07 15:48:25 -06:00
Jonathan Kelley
a252774226 chore: clean up docs with changes to templates 2022-12-07 13:39:22 -08:00
Jonathan Kelley
6184ea500b chore: also fix native core 2022-12-07 13:20:31 -08:00
Jonathan Kelley
4eefc3f854 chore: rename all &cx to cx, make clipppy happy 2022-12-07 13:11:40 -08:00
Jonathan Kelley
e8133e9449 fix: ios buillds 2022-12-07 12:50:43 -08:00
Evan Almloff
84416cbe6a check if templates are ptr eq before doing full equality check 2022-12-07 10:11:27 -06:00
Evan Almloff
08da53303d optimizations aroud preallocating 2022-12-07 08:44:54 -06:00
Evan Almloff
d64d92e4b4 disable rif raf 2022-12-07 07:24:51 -06:00
Jonathan Kelley
5673017def chore: clean up the repo some 2022-12-06 17:50:25 -08:00
Jonathan Kelley
5a0ae67ccb chore: make clippy happy 2022-12-06 17:44:29 -08:00
Jonathan Kelley
34d9aafe0e feat: overhaul ssr 2022-12-06 17:41:47 -08:00
Jonathan Kelley
e8ae1fb83e chore: comment out hot reloading stuff 2022-12-06 16:38:19 -08:00
Jonathan Kelley
1b14b309e9 chore: clean up desktop 2022-12-06 16:37:28 -08:00
Demonthos
67a6fa9eb8
Implement new mutations with native core (#630)
* work on seperating tree struture from realdom

* intial update to new mutations

* handle height

* update to taffy 0.2

* add as_varient functions to OwnedAttributeValue

* make get node parent mut optionally return a parent

* work on upward pass

* add more code for parrellel passes

* make resolve passes public

* more work on parallel passes

* fix deadlock and add more tests

* move height into the tree instead of the realdom

* make passes exicute in parallel instead of executing invidual passes in parellel

* fix some warnings

* add up dependant test

* clean up examples

* work on intigrating state with passes

* update to new mutations

* work on implementing macro

* make the macro compile

* more progress on macro

* mark cloned nodes as dirty

* update persistant_iterator utility

* fix mask generation

* update tui with new mutations

* more progress updating tui

* some basic tui examples working

* don't push template nodes onto the stack

* update hover example

* update benchmark

* update more examples

* fix root node layout

* ignore out of bounds renders

* update color picker example

* update all events example

* update remaining examples

* update tests

* tests passing

* move persistant iterator test

* update examples

* fix gaps in layout

* fix formatting

* fix memory leak
2022-12-06 15:38:04 -08:00
Jonathan Kelley
b9aad5e8f4 chore: help resolve conflicts 2022-12-06 15:37:06 -08:00
Evan Almloff
1081e4b772 Merge branch 'implement-new-mutations-with-native-core' into mutation-store 2022-12-06 14:24:40 -06:00
Evan Almloff
6102902387 work on optimizing web implementation 2022-12-06 14:24:35 -06:00
Evan Almloff
77381ceadd fix memory leak 2022-12-06 09:54:44 -06:00
Evan Almloff
4b1c6125d4 fix formatting 2022-12-06 09:16:40 -06:00
Evan Almloff
4be64cb9f0 fix gaps in layout 2022-12-06 09:08:25 -06:00
Evan Almloff
6ee4f7df4f update examples 2022-12-06 08:33:51 -06:00
Evan Almloff
40b15f834b move persistant iterator test 2022-12-06 08:31:06 -06:00
Evan Almloff
32e93dee65 tests passing 2022-12-06 08:27:32 -06:00
Evan Almloff
ad33f2ce96 update tests 2022-12-05 21:36:24 -06:00
Evan Almloff
317aed7343 update remaining examples 2022-12-05 20:45:08 -06:00
Evan Almloff
b1db7a6400 update all events example 2022-12-05 20:43:11 -06:00
Evan Almloff
f10d47b53d update color picker example 2022-12-05 20:37:55 -06:00
Evan Almloff
57ef56511c ignore out of bounds renders 2022-12-05 20:30:05 -06:00
Evan Almloff
a823b45af9 fix root node layout 2022-12-05 20:18:10 -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
df4a1b6c7a chore: finish tweaking context api 2022-12-05 15:30:49 -08:00
Jonathan Kelley
99a818996e chore: make warnings go away 2022-12-05 14:18:28 -08:00
Jonathan Kelley
e22923eb2d feat: core tests passing 2022-12-05 14:16:54 -08:00
Jonathan Kelley
b0cccce60a feat: miri passing 2022-12-05 13:03:52 -08:00
Evan Almloff
e6a11f50dd update more examples 2022-12-05 14:20:45 -06:00
Evan Almloff
094012b07d update benchmark 2022-12-05 14:04:13 -06:00
Evan Almloff
9a37da6393 update hover example 2022-12-05 13:53:43 -06:00
Evan Almloff
24cb503c09 don't push template nodes onto the stack 2022-12-05 13:49:55 -06:00
Evan Almloff
1587056a4b some basic tui examples working 2022-12-05 13:30:13 -06:00
Evan Almloff
11b37ee141 more progress updating tui 2022-12-05 09:44:43 -06:00
Evan Almloff
8c07b4059f update tui with new mutations 2022-12-04 20:39:54 -06:00
Evan Almloff
f21d099ae4 fix mask generation 2022-12-04 19:48:16 -06:00
Evan Almloff
72184e65ef update persistant_iterator utility 2022-12-04 19:43:05 -06:00
Evan Almloff
d2047ed744 mark cloned nodes as dirty 2022-12-03 22:40:09 -06:00
Evan Almloff
0e17199e7a more progress on macro 2022-12-03 22:26:37 -06:00
Evan Almloff
29a61b1855 make the macro compile 2022-12-03 19:35:37 -06:00
Evan Almloff
53094a7bbd work on implementing macro 2022-12-03 18:28:32 -06:00
Evan Almloff
0d780fee61 update to new mutations 2022-12-03 18:28:25 -06:00
Evan Almloff
80674e4566 Merge branch 'jk/templates-v3' into implement-new-mutations-with-native-core 2022-12-03 13:21:44 -06:00
Jonathan Kelley
a61daf220d feat: context api overhaul 2022-12-02 16:24:49 -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
3b166c9edd wip: clean up some things 2022-11-30 23:54:30 -05:00
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