Commit graph

1656 commits

Author SHA1 Message Date
Adrian Wannenmacher
911e878d83
call routing_callback during init 2022-12-15 23:35:38 +01:00
Jonathan Kelley
44dde38c63 Merge branch 'master' into jk/fix-liveview 2022-12-15 14:26:36 -08:00
Jonathan Kelley
8530db69e1 fix: dont panic on cleanup 2022-12-15 14:26:05 -08:00
Jonathan Kelley
06e8e096bb feat: more fixes to liveview 2022-12-15 14:25:23 -08:00
Adrian Wannenmacher
96bd8b5565
fix outlet depth override 2022-12-15 21:59:18 +01:00
Adrian Wannenmacher
dc83bbd314
add Name to prelude 2022-12-15 21:59:03 +01:00
Adrian Wannenmacher
10c2abf0d8
implement scroll restoration 2022-12-15 20:09:53 +01:00
Adrian Wannenmacher
9912c32ffd
add web hash history integration 2022-12-15 15:45:19 +01:00
Adrian Wannenmacher
53d97755fd
add web history integration 2022-12-15 14:46:40 +01:00
Jonathan Kelley
e256fe1079 wip: add html event type 2022-12-14 19:07:33 -08:00
Jonathan Kelley
fa3d1ef574 chore: bump wry to 23 2022-12-14 12:49:07 -08:00
Adrian Wannenmacher
e26e44fbc5
fix router example indentation 2022-12-14 18:10:36 +01:00
Adrian Wannenmacher
41bcc1e1f8
remove unneeded code from simple router example 2022-12-14 18:09:37 +01:00
Adrian Wannenmacher
d866f6782e
add a bit more content to the router example 2022-12-14 18:07:04 +01:00
Adrian Wannenmacher
e6b3497c06 Merge branch 'master' of github.com:DioxusLabs/dioxus into router-2 2022-12-14 17:54:16 +01:00
Jonathan Kelley
3845451128 Merge branch 'master' of github.com:DioxusLabs/dioxus 2022-12-14 08:51:59 -08:00
Jonathan Kelley
c90be6bdc5 fix: dont panc 2022-12-14 08:51:28 -08:00
Adrian Wannenmacher
a7e9b32f7e
Merge branch 'master' of github.com:DioxusLabs/dioxus into router-2 2022-12-14 17:19:37 +01:00
Jonathan Kelley
cee63ae370 fix: spawn task 2022-12-13 16:04:41 -08:00
Jonathan Kelley
fc2aaa7df5 fix: cargo check 2022-12-13 15:54:59 -08:00
Jonathan Kelley
02b1a73890 fix: use tokio for test 2022-12-13 15:48:40 -08:00
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
Adrian Wannenmacher
9fcdacbeb8
add a few outlet tests 2022-12-13 18:28:36 +01:00
Adrian Wannenmacher
4677a00adc
apply clippy suggestions 2022-12-13 16:19:40 +01:00
Adrian Wannenmacher
83f6984b0a
change empty outlet to placeholder instead of div 2022-12-13 16:01:53 +01:00
Adrian Wannenmacher
af6362ce3e
deny missing docs in router 2022-12-13 12:42:18 +01:00
Adrian Wannenmacher
8d52a6d208
document components 2022-12-13 12:18:54 +01:00
Adrian Wannenmacher
4e1c746f25
document the prelude 2022-12-13 11:22:44 +01:00
Adrian Wannenmacher
7d2466ff28
make hooks return a result instead of an option 2022-12-13 11:09:24 +01:00
Adrian Wannenmacher
3e86c0e364
make nested use_router calls behave correctly 2022-12-13 10:59:25 +01:00
Adrian Wannenmacher
64399794c0
document hooks 2022-12-13 10:46:30 +01:00
Adrian Wannenmacher
398043eba0
add history buttons 2022-12-13 09:10:51 +01:00
Jonathan Kelley
d4b6bb8a7b feat: fix the scope rollover bug 2022-12-12 18:31:30 -08:00
Adrian Wannenmacher
0cc0cba482
add navigator and use_navigate hook 2022-12-13 00:09:32 +01:00
Adrian Wannenmacher
85ac35c198
update default external navigation failure component 2022-12-12 23:39:52 +01:00
Adrian Wannenmacher
8df588046d
add use_route hook 2022-12-12 23:39:34 +01:00
Adrian Wannenmacher
96c69b2437 Merge branch 'router-2' of github.com:TeFiLeDo/dioxus into router-2 2022-12-12 21:37:16 +01:00
Adrian Wannenmacher
dd54c0acf7 Merge branch 'master' of github.com:DioxusLabs/dioxus into router-2 2022-12-12 21:36:43 +01: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
Jon Kelley
5dc86fe0b7
Merge pull request #646 from Demonthos/tui_widgets
Tui widgets
2022-12-10 19:01:48 -08: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
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
Adrian Wannenmacher
3d752e31ec
add a fixed route to example 2022-12-09 04:11:31 +01:00
Adrian Wannenmacher
780786c520
fix outlet panic 2022-12-09 03:33:12 +01:00
Adrian Wannenmacher
ef76453422
fix release build 2022-12-09 01:42:30 +01:00
Adrian Wannenmacher
a170aa76e0
add simple example 2022-12-09 01:15:04 +01:00
Adrian Wannenmacher
9f48cab9ad
add comp() and default failure components 2022-12-09 01:14:54 +01:00
Adrian Wannenmacher
89ac4d51ab
fix breaks from previous merge 2022-12-08 23:56:41 +01:00
Adrian Wannenmacher
1d69698ec9
Merge branch 'master' of github.com:DioxusLabs/dioxus into router-2 2022-12-08 23:01:12 +01:00
Adrian Wannenmacher
ea43192267
add link component 2022-12-08 22:56:57 +01: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