Commit graph

274 commits

Author SHA1 Message Date
Jonathan Kelley
06276edd0d feat: eanble bubbling 2022-01-03 02:11:26 -05:00
Jonathan Kelley
a95dead76d formatting: run cargo fmt 2022-01-03 01:20:05 -05:00
Jonathan Kelley
5da0a0c97e docs: rename dog app example 2022-01-03 01:16:15 -05:00
Jonathan Kelley
75fa7b4aa6 fix: make tests pass 2022-01-03 01:12:39 -05:00
Jonathan Kelley
15b72cd7eb examples: clean up suspense example 2022-01-03 00:46:06 -05:00
Jonathan Kelley
420a30e5d4 feat: overhaul examples and clean things up 2022-01-03 00:42:17 -05:00
Jonathan Kelley
cafb7df736 docs: remove all usages of static closure syntax and update readme 2022-01-02 18:35:38 -05:00
Jonathan Kelley
d1560450ba wip: remove runner on hook and then update docs 2022-01-02 02:15:04 -05:00
Jonathan Kelley
4c85bcfdc8 awesome: arbitrary expressions excepted without braces 2021-12-30 03:14:47 -05:00
Jonathan Kelley
14961023f9 wip: polish some more things 2021-12-29 21:28:28 -05:00
Jonathan Kelley
3dc0e59876 fix: readme and examples syntax 2021-12-28 23:48:25 -05:00
Jonathan Kelley
c7d001cbb4 wip: rip out unsafe task engine 2021-12-26 14:22:30 -05:00
Jonathan Kelley
cda759c659 examples: upgrade to new version of dioxus core.
also add the inline_props macro
2021-12-25 17:18:05 -05:00
Jonathan Kelley
4de16c4779 docs: update local examples and docs to support new syntaxes 2021-12-15 15:56:53 -05:00
Jonathan Kelley
8daf7a6ed8 wip: go back to noisy lifetime solution 2021-12-14 02:27:59 -05:00
Jonathan Kelley
1e4a599d14 wip: rename fc to component 2021-12-09 21:19:31 -05:00
Jonathan Kelley
8814977eee wip: docs 2021-11-30 22:48:05 -05:00
Jonathan Kelley
36d89beb34 wip: rename 2021-11-28 16:25:42 -05:00
Jonathan Kelley
bab21a0aa1 wip: updates to router 2021-11-22 15:22:42 -05:00
Jonathan Kelley
a5f05d73ac wip: docs and router 2021-11-19 00:49:04 -05:00
Jonathan Kelley
19df1bda10 feat: bubbling 2021-11-15 09:49:01 -05:00
Jonathan Kelley
fd93ee89c1 feat: upgrade syntax 2021-11-10 17:09:52 -05:00
Jonathan Kelley
2933e4bc11 wip: major cleanups to scheduler 2021-11-06 23:11:17 -04:00
Jonathan Kelley
b56ea6c9a9 wip: work on scheduler, async, coroutines, and merge scope into context 2021-11-03 19:55:02 -04:00
Jonathan Kelley
1e6e5e611b wip: move examples around 2021-11-03 15:13:50 -04:00
Jonathan Kelley
ba9e1dbb8f fix: messed up how lifetimes worked, need to render once per component 2021-10-29 21:43:21 -04:00
Jonathan Kelley
0e9d5fc530 wip: move everything over to a stack dst 2021-10-29 17:12:30 -04:00
Jonathan Kelley
db0004758c Merge branch 'master' into jk/remove_node_safety 2021-10-28 17:09:51 -04:00
Jonathan Kelley
a42711a324 wip: docs 2021-10-27 14:54:49 -04:00
Alexandre Kirszenberg
5747e00b27 Various typos/grammar/rewording 2021-10-24 19:30:36 +02:00
Jonathan Kelley
9726a065b0 feat: massage lifetimes 2021-10-16 17:37:28 -04:00
Jonathan Kelley
16dbf4a6f8 wip: book documentation 2021-10-16 17:04:28 -04:00
Jonathan Kelley
2b7dd45aa2 docs: remove old examples 2021-10-14 14:53:06 -04:00
Jonathan Kelley
da4423c141 bugs: fix web list issue 2021-10-10 22:27:08 -04:00
Jonathan Kelley
efd0e9b564 feat: support desktop more completely 2021-10-05 03:37:15 -04:00
Jonathan Kelley
a2b0c50a34 feat: add update functionality to useref 2021-10-04 10:22:20 -04:00
Jonathan Kelley
82953f2ac3 wip: threadsafe 2021-10-01 02:07:12 -04:00
Jonathan Kelley
823adc0834 polish: clean up the web module 2021-09-24 20:11:30 -04:00
Jonathan Kelley
1464d2e0a7 docs: move reference up a level 2021-09-24 12:11:05 -04:00
Jonathan Kelley
04d16b41dc polish: exampels 2021-09-24 02:37:51 -04:00
Jonathan Kelley
047c810507 wip: almost there 2021-09-24 02:10:54 -04:00
Jonathan Kelley
718fa14b45 feat: a cute crm 2021-09-24 01:24:03 -04:00
Jonathan Kelley
1a2f91ed91 polish: examples 2021-09-24 00:05:56 -04:00
Jonathan Kelley
b32e2611e3 polish: clean up warnings 2021-09-21 18:13:09 -04:00
Jonathan Kelley
a2c7d17b05 feat: mvoe away from compound context 2021-09-21 13:42:52 -04:00
Jonathan Kelley
f1cff845ce wip: examples 2021-09-21 12:11:04 -04:00
Jonathan Kelley
9971ff215d polish: change in cx to cx 2021-09-16 13:20:04 -04:00
Jonathan Kelley
1cd5e69712 wip: more work on scheduler 2021-09-01 23:22:34 -04:00
Jonathan Kelley
8b0eb87c72 wip: refactor 2021-08-26 22:05:09 -04:00
Jonathan Kelley
3bf19d8106 wip: more work on web
this commit adds complete event support for web-sys but with a few hole
2021-08-25 10:49:18 -04:00
Jonathan Kelley
f41cff571f wip: working on async diff 2021-08-17 22:25:09 -04:00
Jonathan Kelley
c1afeba1ef wip: groundwork for noderefs 2021-08-09 17:09:33 -04:00
Jonathan Kelley
f2334c17be wip: bottom up dropping 2021-08-05 22:23:41 -04:00
Jonathan Kelley
49856ccd68 wip: making progress on diffing and hydration 2021-07-28 21:46:53 -04:00
Jonathan Kelley
e5c88fe3a4 feat: make hooks free-functions 2021-07-27 11:28:05 -04:00
Jonathan Kelley
f782e14211 feat: omg what a dumb mistake 2021-07-27 00:27:07 -04:00
Jonathan Kelley
4a0068f099 feat: bless up, no more segfaults 2021-07-26 12:14:48 -04:00
Jonathan Kelley
7dfe89c958 feat: wire up event delegator for webview 2021-07-24 02:52:05 -04:00
Jonathan Kelley
dfaf5adee1 Feat: solve some issues regarding listeners 2021-07-24 00:29:23 -04:00
Jonathan Kelley
6051b0ec86 wip: fill out the snippets 2021-07-20 19:03:49 -04:00
Jonathan Kelley
4a72b3140b feat: amazingly awesome error handling 2021-07-18 12:39:32 -04:00
Jonathan Kelley
05c909f320 wip: some ideas 2021-07-18 03:54:42 -04:00
Jonathan Kelley
583fdfa561 docs: big updates to the reference 2021-07-16 16:11:25 -04:00
Jonathan Kelley
caf772cf24 wip: docs, html! macro, more 2021-07-16 00:27:06 -04:00
Jonathan Kelley
de9f61bcf4 feat: more suspended nodes! 2021-07-14 23:18:02 -04:00
Jonathan Kelley
4091846934 feat: add aria 2021-07-13 00:56:39 -04:00
Jonathan Kelley
a85b8c4b6b wip: apply formatting 2021-07-12 13:03:24 -04:00
Jonathan Kelley
63bbc38f3f wip: edit some css 2021-07-12 09:40:13 -04:00
Jonathan Kelley
68ed1c04e7 wip: ....sigh..... so the diffing algorithm is robust
but it's still not finished.

We need to re-enable the fancier keyed diffing versions some point (soon!).
2021-07-12 03:58:46 -04:00
Jonathan Kelley
ff0a3d1c83 wip: lots of changes to diffing 2021-07-12 02:23:46 -04:00
Jonathan Kelley
56e7eb83a9 wip: more examples 2021-07-11 19:31:07 -04:00
Jonathan Kelley
304259d818 wip: move examples around 2021-07-11 18:39:45 -04:00
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
207784800d docs: reference guide 2021-07-07 16:25:51 -04:00
Jonathan Kelley
98a09339fd wip: move some examples around 2021-07-07 16:19:10 -04:00
Jonathan Kelley
a38a81e129 wip: fix issues with lifetimes
this commit fixes some lifetime issues regarding having to "move" data into the IntoVNode closure.
2021-07-07 13:51:55 -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
a4bf3d9862 docs: more example 2021-07-06 15:18:36 -04:00
Jonathan Kelley
891e366cd8 wip: more examples 2021-07-06 12:13:20 -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
e8f29a8f8a wip: enable more diffing 2021-07-05 01:11:49 -04:00
Jonathan Kelley
b5e5ef171a feat: two calculator examples 2021-07-02 15:48:19 -04:00
Jonathan Kelley
d9e6d0925b docs: examples 2021-07-02 01:30:52 -04:00
Jonathan Kelley
eb39b000d7 wip: example 2021-07-01 16:03:27 -04:00
Jonathan Kelley
952a91d540 wip 2021-07-01 14:14:59 -04:00
Jonathan Kelley
0f0fc3e4b8 wip: suspense ergonomics 2021-06-26 01:30:20 -04:00
Jonathan Kelley
81382e7044 chore: rename ctx to cx 2021-06-25 21:15:33 -04:00
Jonathan Kelley
daa9bd82c3 docs: more work on docs 2021-06-25 09:31:13 -04:00
Jonathan Kelley
7fbaf69cab Docs: more examples and docs 2021-06-24 11:09:38 -04:00
Jonathan Kelley
17f6576e98 Docs: fleshed out custom renderer doc 2021-06-24 00:18:29 -04:00
Jonathan Kelley
de1535ddac wip: more anitpatterns 2021-06-23 23:25:34 -04:00
Jonathan Kelley
f5683a2346 wip: docs
Worked a bit on adding more examples. Trying out a new "antipattern" example to show how *not* to use Dioxus.
2021-06-23 22:32:54 -04:00
Jonathan Kelley
62ae5d3bb9 wip: rethinking stack machine 2021-06-19 20:31:25 -04:00
Jonathan Kelley
70cd46dbb2 docs: move around examples 2021-06-17 18:00:32 -04:00
Jonathan Kelley
b9ff95fa12 wip: start moving events to rc<event> 2021-06-16 23:37:55 -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
4c8130c4e4 Feat: about to consolidate context and scope 2021-05-17 17:59:10 -04:00
Jonathan Kelley
3087813570 Feat: synthetic events wired up (ish) 2021-03-04 18:12:24 -05:00
Jonathan Kelley
808e6570d2 Feat: see if readme works in examples 2021-03-04 13:56:32 -05:00
Jonathan Kelley
c8bb392cad Feat: view -> render 2021-02-28 21:21:17 -05:00
Jonathan Kelley
4dfdf91236 Feat: major overhaul to diffing, using a "diffing machine" now 2021-02-14 18:03:16 -05:00
Jonathan Kelley
8295ac4b3d Feat: major overhaul, wire up event system 2021-02-12 03:07:35 -05:00
Jonathan Kelley
c97a9647e3 Feat: update solved problems with context API 2021-02-10 12:48:02 -05:00
Jonathan Kelley
a61503f6cc Feat: homepage update from rocket 2021-02-09 12:33:54 -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
07341d2c65 Feat: include the helper 2021-02-03 02:26:04 -05:00
Jonathan Kelley
a2406b33d6 Feat: updates to docs, extension 2021-01-29 11:57:52 -05:00
Jonathan Kelley
2e626aea51 Feat: first work for rsx vscode ext 2021-01-26 14:02:35 -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
Jonathan Kelley
28ac37a8b2 Feat: update fc_macro 2021-01-21 02:25:44 -05:00
Jonathan Kelley
4dcfe66253 Feat: update spelling and changes to cli 2021-01-20 12:12:48 -05:00
Jonathan Kelley
4d7ac5bb5d Feat: dioxus frontend crate 2021-01-20 12:04:27 -05:00
Jonathan Kelley
9c616ea5c0 Feat: more docs, dissolve vnode crate into dioxus-core 2021-01-16 01:30:48 -05:00
Jonathan Kelley
d13e04c9ff Feat: more docs, example, mroe nodes 2021-01-15 23:25:29 -05:00