Commit graph

31 commits

Author SHA1 Message Date
Jonathan Kelley
9abb0470b7 feat: static node infrastructure and ssr changes 2021-07-11 14:49:52 -04:00
Jonathan Kelley
975fa566f9 wip: more refactor for async 2021-07-09 12:47:41 -04:00
Jonathan Kelley
eb82051000 examples: webview and async 2021-07-08 23:25:27 -04:00
Jonathan Kelley
99d94b69ab feat: move webview to wry 2021-07-08 12:01:31 -04:00
Jonathan Kelley
2547da36a0 wip: more examples 2021-07-08 10:17:51 -04:00
Jonathan Kelley
e4cdb645aa feat: beaf up the use_state hook 2021-07-08 09:29:12 -04:00
Jonathan Kelley
7aec40d57e feat: enable arbitrary body in rsx! macro 2021-07-07 18:17:00 -04:00
Jonathan Kelley
98a09339fd wip: move some examples around 2021-07-07 16:19:10 -04:00
Jonathan Kelley
22e659c2bd feat: namespaced attributes
this commit adds namespaced attributes. This lets us support attribute groups, and thus, inline styles.

This namespaced attribute stuff is only available for styles at the moment, though it theoretically could be enabled for any other attributes.
2021-07-06 23:04:33 -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
21685fbb16 wip: more work on diffing 2021-06-28 22:22:11 -04:00
Jonathan Kelley
f4fb5bb454 feat: integrate serialization and string borrowing
This commit adds lifetimes to the diff and realdom methods so consumers may borrow the contents of the DOM for serialization or asynchronous modifications.
2021-06-28 12:05:17 -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
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
c1fd848f89 WIP: move to static props 2021-05-31 18:55:56 -04:00
Jonathan Kelley
9810feebf5 Feat: major overhaul to diffing 2021-05-15 12:03:08 -04:00
Jonathan Kelley
9b560dfedb wip: more liveview and webview custom client 2021-03-16 14:28:54 -04:00
Jonathan Kelley
7856f2b153 wip: livehost bones 2021-03-16 11:03:59 -04:00
Jonathan Kelley
c8bb392cad Feat: view -> render 2021-02-28 21:21:17 -05:00
Jonathan Kelley
10a236fc65 Feat: add webview as package 2021-02-28 17:40:40 -05:00
Jonathan Kelley
505fcba7df bump core version 2021-02-28 17:40:02 -05:00
Jonathan Kelley
b0a87e5d73 Feat: update example 2021-02-25 21:42:44 -05:00
Jonathan Kelley
32b45e5ba1 Feat: move webview logic into library 2021-02-25 18:44:00 -05:00
Jonathan Kelley
7a6aabe4f3 Feat: WIP ctx 2021-02-20 21:59:16 -05:00
Jonathan Kelley
b3e6886351 Feat: desktop app wired up 2021-02-18 20:04:25 -05:00
Jonathan Kelley
f22ff83190 Feat: WIP on deserialize 2021-02-15 14:14:28 -05:00
Jonathan Kelley
62d4ad5878 wip: comment out examples and move lifetime in FC type 2021-02-03 14:07:07 -05:00
Jonathan Kelley
65d0d611ea Feat: add webview example 2021-01-22 15:50:16 -05:00
Jonathan Kelley
7730fd4a8c Feat: webview example 2021-01-21 11:10:31 -05:00
Jonathan Kelley
9c01736895 WIP: Dioxus-webview 2021-01-21 03:22:08 -05:00