Commit Graph
22 Commits
Author SHA1 Message Date
Jonathan Kelley 36542b482f wip: move the functions around a bit 2021-07-07 14:37:31 -04:00
Jonathan Kelley 11f89e5d33 wip: more examples 2021-07-06 12:13:00 -04:00
Jonathan Kelley 904b26f711 feat: add edits back! and more webview support!
This commit adds a new type - the DomEdit - for serializing the changes made by the diffing machine. The architecture of how DomEdits fit into the cooperative scheduling is still TBD but it will allow us to build change lists without applying them immediately. This is more performant  and allows us to only render parts of the page at a time.

This commit also adds more infrastructure around webview. Dioxus can now run on the web, generate static pages, run in the desktop, and run on mobile, with a large part of thanks to webview.
2021-07-05 18:37:15 -04:00
Jonathan Kelley 81382e7044 chore: rename ctx to cx 2021-06-25 21:15:33 -04:00
Jonathan Kelley 69f5cc3802 docs: move into a fromjs tutorial 2021-06-03 12:02:46 -04:00
Jonathan Kelley 50c8b93aad Feat: move the rsx macro around 2021-06-03 10:42:28 -04:00
Jonathan Kelley 508c560320 Feat: massive changes to definition of components
This change switches back to the original `ctx<props>` syntax for
commponents. This lets lifetime elision to remove the need to match
exactly which lifetime (props or ctx) gets  carried to the output. As
such, `Props` is currently required to be static. It *is* possible to
loosen this restriction, and will be done in the future, though only
through adding metadata about the props through the Props derive
macro. Implementing the IS_STATIC trait is unsafe, so the derive macro
will do it through some heuristics.

For now, this unlocks sharing vnodes from parents to children, enabling
pass-thru components, fragments, portals, etc.
2021-06-01 18:33:15 -04:00
Jonathan Kelley ee67654f58 wip: recoil 2021-05-26 01:40:30 -04:00
Jonathan Kelley 9810feebf5 Feat: major overhaul to diffing 2021-05-15 12:03:08 -04:00
Jonathan Kelley ce33031519 wip: todomvc 2021-03-29 12:31:47 -04:00
Jonathan Kelley 0bcff1f88e Feat: more ergonomics, more examples 2021-03-26 15:50:28 -04:00
Jonathan Kelley 5ad81885e4 wip: staticify? 2021-03-11 12:27:01 -05:00
Jonathan Kelley 78d093a945 FIx: cargo fix to clean up things 2021-03-10 19:42:31 -05:00
Jonathan Kelley 92d9521a73 WIP: remove FC 2021-03-07 21:28:20 -05:00
Jonathan Kelley d9598066c2 Feat: yeet, synthetic somewhat wired up 2021-03-04 18:40:05 -05:00
Jonathan Kelley 5a9155b059 Feat: more cleanup 2021-03-04 12:03:22 -05:00
Jonathan Kelley 879e107634 wip: use_reducer 2021-03-02 02:27:07 -05:00
Jonathan Kelley 3b30fa61b8 Feat: a few bugs, but the event system works! 2021-02-28 03:08:08 -05:00
Jonathan Kelley 7a6aabe4f3 Feat: WIP ctx 2021-02-20 21:59:16 -05:00
Jonathan Kelley ea2aa4b0c9 Feat: event loop 2021-02-12 16:11:33 -05:00
Jonathan Kelley 8295ac4b3d Feat: major overhaul, wire up event system 2021-02-12 03:07:35 -05:00
Jonathan Kelley f47651b32a Feat: overall API updates 2021-02-12 00:29:46 -05:00