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
460783ad54
docs: lnks to projects
2021-10-14 12:46:50 -04:00
Jonathan Kelley
478255f40d
fix: all the bugs!
2021-10-11 18:40:00 -04:00
Jonathan Kelley
4a4c7afca7
feat: shared state mechanisms
2021-10-11 15:35:20 -04:00
Jonathan Kelley
da4423c141
bugs: fix web list issue
2021-10-10 22:27:08 -04:00
Jonathan Kelley
4a0bb8cf84
wip: portals
2021-10-08 16:01:13 -04:00
Jonathan Kelley
1f22a06a36
wip: event system
2021-10-07 16:18:54 -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
5502429626
feat: desktop functioning well
2021-10-04 02:54:20 -04:00
Jonathan Kelley
7a03c1d2b4
wip: overhaul event system
2021-10-04 01:28:04 -04:00
Jonathan Kelley
82953f2ac3
wip: threadsafe
2021-10-01 02:07:12 -04:00
Jonathan Kelley
71f0df6374
publish: ssr
2021-09-24 22:15:50 -04:00
Jonathan Kelley
4a5041c590
publish: fix typo
2021-09-24 21:49:03 -04:00
Jonathan Kelley
7bdad1e2e6
publish: move macro crate out of core
2021-09-24 21:46:23 -04:00
Jonathan Kelley
a5f82be433
polish
2021-09-24 20:55:41 -04:00
Jonathan Kelley
04d16b41dc
polish: exampels
2021-09-24 02:37:51 -04:00
Jonathan Kelley
1a2f91ed91
polish: examples
2021-09-24 00:05:56 -04:00
Jonathan Kelley
4b6ca05f2c
wip: performance looks good, needs more testing
2021-09-22 04:11:27 -04:00
Jonathan Kelley
d7940aa2ac
feat: proper handling of events
2021-09-22 02:44:01 -04:00
Jonathan Kelley
c7d2d9d050
wip: fix invalid is_empty bug
2021-09-22 01:37:45 -04:00
Jonathan Kelley
098d3821ed
wip: changes to scheduler
2021-09-22 01:25:28 -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
bfdcb20437
feat: transition to cx, props
2021-09-21 13:13:15 -04:00
Jonathan Kelley
f1cff845ce
wip: examples
2021-09-21 12:11:04 -04:00
Jonathan Kelley
adf202eab9
wip: more doc
2021-09-20 17:36:39 -04:00
Jonathan Kelley
34c3107418
wip: more docs
2021-09-20 16:49:36 -04:00
Jonathan Kelley
7978a17419
wip: bubbling
2021-09-20 12:32:21 -04:00
Jonathan Kelley
c16b92ee7e
wip: before scheduler simplify
2021-09-19 22:10:00 -04:00
Jonathan Kelley
9971ff215d
polish: change in cx to cx
2021-09-16 13:20:04 -04:00
Jonathan Kelley
0ded32e184
wip: reduce warnings
2021-09-14 00:58:33 -04:00
Jonathan Kelley
12afd2b0f2
wip: more polish on display
2021-09-13 19:07:15 -04:00
Jonathan Kelley
238677208e
wip: more polish on scopes
2021-09-13 18:59:07 -04:00
Jonathan Kelley
ff1398b943
wip: polish up some safety stuff and add suspense support in
2021-09-13 18:55:43 -04:00
Jonathan Kelley
79e8df26f5
wip: fix props update
2021-09-13 12:42:38 -04:00
Jonathan Kelley
5a09ec1610
wip: more clean up
2021-09-13 01:14:09 -04:00
Jonathan Kelley
8b3ac0b57c
perf: remove global allocation for props
2021-09-13 00:59:08 -04:00
Jonathan Kelley
369b36b2c6
wip: change around how deadline works
2021-09-09 21:01:38 -04:00
Jonathan Kelley
da8159190b
polish: tests and documentation
2021-09-09 20:58:48 -04:00
Jonathan Kelley
3f68be79ae
wip: documentation and badges
2021-09-07 18:25:57 -04:00
Jonathan Kelley
1a6b238829
wip: naming
2021-09-03 11:28:09 -04:00
Jonathan Kelley
725b4a1d7f
wip: fix some event stuff for web and core
2021-09-02 00:37:57 -04:00
Jonathan Kelley
dfe9f86bff
wip: garbage collection
2021-09-02 00:16:49 -04:00
Jonathan Kelley
958c02a26e
wip: working down warnings
2021-09-02 00:10:09 -04:00
Jonathan Kelley
a652090dc5
wip: add test_dom
2021-09-01 23:57:34 -04:00
Jonathan Kelley
44b4384961
wip: more scheduler work
2021-09-01 23:33:25 -04:00
Jonathan Kelley
1cd5e69712
wip: more work on scheduler
2021-09-01 23:22:34 -04:00
Jonathan Kelley
5c3dc0a874
wip: more work on rebuild
2021-09-01 15:52:38 -04:00
Jonathan Kelley
fac2e56ed6
feat: update root props
2021-09-01 15:45:53 -04:00
Jonathan Kelley
c321532a6c
feat: some docs, cleaning
2021-09-01 00:57:04 -04:00
Jonathan Kelley
5cbdc571e3
more cleanup
2021-08-31 12:28:44 -04:00
Jonathan Kelley
9f99f46cfd
wip: more cleanup in scheduler
2021-08-27 09:56:49 -04:00
Jonathan Kelley
31702dbf87
feat: wire up resource pool
2021-08-27 09:53:26 -04:00
Jonathan Kelley
927b05f358
wip: cleanup public apis
2021-08-27 09:40:04 -04:00
Jonathan Kelley
8b0eb87c72
wip: refactor
2021-08-26 22:05:09 -04:00
Jonathan Kelley
9ad5e49654
wip: algo for scheduler finished
2021-08-26 17:05:28 -04:00
Jonathan Kelley
5f63eda294
wip: feeling goodish about scheduler
2021-08-26 03:33:38 -04:00
Jonathan Kelley
bcaa76a37f
wip: some structure
2021-08-26 02:41:30 -04:00
Jonathan Kelley
ac3a7b1fbc
wip: considering making vdom passed verywehre
2021-08-26 01:52:50 -04:00
Jonathan Kelley
d4d7114beb
wip: more work on scheduler
2021-08-25 17:17:44 -04:00
Jonathan Kelley
07efb6a1b6
wip: it compiles again
2021-08-25 17:09:16 -04:00
Jonathan Kelley
41cc42919d
wip: more overhaul on virtualevents
2021-08-25 16:40:18 -04:00
Jonathan Kelley
cef116aa3a
wip: more work on priority
2021-08-25 15:54:33 -04:00
Jonathan Kelley
05e960b6b0
wip: refactor to fix some ownership quirks
2021-08-25 12:42:50 -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
59219b9ef2
wip: ricraf polyfill
2021-08-24 16:36:00 -04:00
Jonathan Kelley
8b0d04ce58
wip: ric_raf wired up
2021-08-24 16:29:10 -04:00
Jonathan Kelley
f457b71131
feat: rebuild doesn't return errors
2021-08-24 15:12:20 -04:00
Jonathan Kelley
cdcd8611e8
wip: it works but the page is backwards
2021-08-24 12:43:46 -04:00
Jonathan Kelley
a0a977a12d
wip: more test
2021-08-24 11:03:19 -04:00
Jonathan Kelley
0479252a5f
feat: keyed diffing
2021-08-24 10:01:01 -04:00
Jonathan Kelley
778baffb10
wip: it works?
2021-08-23 15:35:26 -04:00
Jonathan Kelley
082765f687
wip: refactor non_keyed diff
2021-08-23 13:41:47 -04:00
Jonathan Kelley
e6f56563bc
feat: tests and benchmarks
2021-08-23 13:15:57 -04:00
Jonathan Kelley
2d541eca64
wip: structure coming together and tests
2021-08-23 12:11:45 -04:00
Jonathan Kelley
16bfc6d248
wip: compiles again
2021-08-23 10:43:49 -04:00
Jonathan Kelley
db6d0184aa
feat: dedicated mutations module
2021-08-22 17:08:25 -04:00
Jonathan Kelley
1622f484b3
wip: basic creates working properly
2021-08-21 23:04:34 -04:00
Jonathan Kelley
24572b63de
wip: tests added for new iterative
2021-08-21 13:24:47 -04:00
Jonathan Kelley
2ce0752a9c
feat: fix compiling
2021-08-21 11:29:29 -04:00
Jonathan Kelley
0987760958
wip: moving over instructions
2021-08-20 11:39:13 -04:00
Jonathan Kelley
7b068202ce
wip: remove old create
2021-08-20 10:44:58 -04:00
Jonathan Kelley
64f289a61c
wip: back to vnode enum
2021-08-20 10:34:41 -04:00
Jonathan Kelley
9652ccdcf1
wip: move from recursive to iterative
2021-08-19 02:50:35 -04:00
Jonathan Kelley
f41cff571f
wip: working on async diff
2021-08-17 22:25:09 -04:00
Jonathan Kelley
882d69571d
wip: more work on scheduler
2021-08-15 10:13:03 -04:00
Jonathan Kelley
9d14faf62c
wip: scheduler skeleton
2021-08-10 12:16:49 -04:00
Jonathan Kelley
5965bee1d1
wip: more work on deadline, support immediates
2021-08-10 01:38:58 -04:00
Jonathan Kelley
97745c6a7f
wip: got the structure figured out!
2021-08-10 01:21:13 -04:00
Jonathan Kelley
85e2dc259a
wip: close on putting it all together
...
just gotta tie a bow
2021-08-10 00:29:53 -04:00
Jonathan Kelley
c1afeba1ef
wip: groundwork for noderefs
2021-08-09 17:09:33 -04:00
Jonathan Kelley
a44e9fcffa
wip: more work on jank free
2021-08-09 13:17:19 -04:00
Jonathan Kelley
1a323835c8
wip: on collaborative scheduling
2021-08-09 02:37:11 -04:00
Jonathan Kelley
fac42339c2
feat: mutations
2021-08-08 15:15:16 -04:00
Jonathan Kelley
f2334c17be
wip: bottom up dropping
2021-08-05 22:23:41 -04:00
Jonathan Kelley
687cda1b6d
feat: re-enable suspense
2021-07-30 22:14:06 -04:00
Jonathan Kelley
cfa0247cbb
wip: websys dom working properly
2021-07-30 17:04:04 -04:00
Jonathan Kelley
d717c22d9c
feat: keyed diffing!!
2021-07-30 16:07:42 -04:00
Jonathan Kelley
0a0be95c3e
wip: get keyed diffing compiling
2021-07-30 10:35:47 -04:00
Jonathan Kelley
1749eba8eb
feat: more and more sophisticated diff
2021-07-29 18:56:09 -04:00
Jonathan Kelley
d618092e9d
feat: a new vnode type for anchors
2021-07-29 18:04:09 -04:00
Jonathan Kelley
63a85e4865
wip: more work on bumpframe
2021-07-29 00:04:59 -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
0a907b35c6
feat: fix some lifetime issues
2021-07-24 00:40:34 -04:00
Jonathan Kelley
dfaf5adee1
Feat: solve some issues regarding listeners
2021-07-24 00:29:23 -04:00
Jonathan Kelley
6084fbcd11
wip: move to slab
2021-07-23 17:03:51 -04:00
Jonathan Kelley
f644d7c441
wip: move things into a "shared" object
2021-07-23 10:27:43 -04:00
Jonathan Kelley
1745a44d94
wip: cleanup
2021-07-21 17:05:48 -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
6aaad1c9ef
wip: heuristics engine
2021-07-15 04:17:45 -04:00
Jonathan Kelley
00231adfa2
feat: code quality improvements for core
2021-07-15 04:09:28 -04:00
Jonathan Kelley
37ed4bed8c
wip: more work on suspense and documentation
2021-07-15 03:38:09 -04:00
Jonathan Kelley
4837d8e741
feat: suspense!
2021-07-15 00:40:37 -04:00
Jonathan Kelley
de9f61bcf4
feat: more suspended nodes!
2021-07-14 23:18:02 -04:00
Jonathan Kelley
c52af221f7
wip: basic support for scheduled rendering
2021-07-14 18:19:51 -04:00
Jonathan Kelley
80e6c25698
feat: move over to push based mechanism
2021-07-14 17:39:26 -04:00
Jonathan Kelley
e7238762ae
feat: architecture document and edit list
2021-07-14 17:04:58 -04:00
Jonathan Kelley
3a57b94262
feat: task system works
...
but I broke the other things :(
2021-07-14 02:04:19 -04:00
Jonathan Kelley
84c3e9fcb1
wip: cargo fix
2021-07-13 16:54:07 -04:00
Jonathan Kelley
beceda511c
wip: cargo fix
2021-07-13 16:52:25 -04:00
Jonathan Kelley
fd03b9d252
wip: cargo fix
2021-07-13 16:49:22 -04:00
Jonathan Kelley
c7ca7c2273
wip: cargo fix
2021-07-13 16:48:47 -04:00
Jonathan Kelley
775e9e29b8
wip: cut down on errors
2021-07-13 16:48:11 -04:00
Jonathan Kelley
996247a164
wip
2021-07-13 15:34:12 -04:00
Jonathan Kelley
4091846934
feat: add aria
2021-07-13 00:56:39 -04:00
Jonathan Kelley
c79d9ae674
feat: buff up html allowed attributes
2021-07-12 23:44:20 -04:00
Jonathan Kelley
a05047d01e
wip: use the new structure
2021-07-12 18:19:27 -04:00
Jonathan Kelley
fb0c6d2ea4
chore: remove unnecessary import
2021-07-12 11:03:35 -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
269e81b0fd
example: ssr + tide
2021-07-11 17:24:47 -04:00
Jonathan Kelley
bbcb5a0234
feat: enable components in ssr
2021-07-11 15:17:55 -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
8cfc437bfe
wip: some project refactor
2021-07-09 11:54:07 -04:00
Jonathan Kelley
feab50f24a
wip: some work
2021-07-09 03:39:45 -04:00
Jonathan Kelley
58ab51a4e4
wip: more refactor
2021-07-09 01:42:26 -04:00
Jonathan Kelley
c811a8982c
wip: more refactor
2021-07-09 01:37:34 -04:00
Jonathan Kelley
9276fd7db7
wip: refactor
2021-07-09 01:36:18 -04:00
Jonathan Kelley
1cc1679a6b
feat: refactor out the hooks implementation
2021-07-09 01:26:15 -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
fd7933561f
chore: move CLI into its own "studio" app
2021-07-07 16:58:23 -04:00
Jonathan Kelley
98a09339fd
wip: move some examples around
2021-07-07 16:19:10 -04:00
Jonathan Kelley
cca7c5fc3a
wip: remove the scoped trait
2021-07-07 15:07:46 -04:00
Jonathan Kelley
36542b482f
wip: move the functions around a bit
2021-07-07 14:37:31 -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
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
952a91d540
wip
2021-07-01 14:14:59 -04:00
Jonathan Kelley
93900aac44
concept: integrate signals
2021-06-30 14:08:12 -04:00
Jonathan Kelley
7665f2c6cf
feat: move to slotmap
2021-06-29 22:44:21 -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
9813f23cdf
wip: more work on diffing machine
2021-06-26 22:13:57 -04:00
Jonathan Kelley
ca3b80f069
wip: more work on diffing.
...
This commit is working on the diffing algorithm. We're *mostly* there but need to get fragments wired in and then keyed elements need to be re-implemented. For Dioxus core, this is the last major technical hurdle barring "fibers" (suspense) and attribute groups (inline styles).
2021-06-26 03:15:20 -04:00
Jonathan Kelley
895cc0142b
wip: stack-based "real child iterator"
2021-06-26 03:06:29 -04:00
Jonathan Kelley
0826fdfee1
docs: more docs
2021-06-26 02:05:20 -04:00
Jonathan Kelley
ea91fc984d
perf: refcell to cell for hookidx
2021-06-26 01:29:51 -04:00
Jonathan Kelley
81382e7044
chore: rename ctx to cx
2021-06-25 21:15:33 -04:00
Jonathan Kelley
7fbaf69cab
Docs: more examples and docs
2021-06-24 11:09:38 -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
9d7ee79826
feat: events work again!
2021-06-23 01:44:48 -04:00
Jonathan Kelley
73047fe956
feat: props memoization is more powerful
...
This commit solves the memoization , properly memoizing properties that don't have any generic parameters. This is a rough heuristic to prevent non-static lifetimes from creeping into props and breaking our minual lifetime management.
Props that have a generic parameter are opted-out of the `partialeq` requirement and props *without* lifetimes must implement partialeq. We're going to leave manual disabling of memoization for future work.
2021-06-22 17:20:54 -04:00
Jonathan Kelley
7102fe5f98
docs: add some more sources in the core implementation
2021-06-21 01:35:12 -04:00
Jonathan Kelley
cff0547f1a
wip: get diff compiling
...
Currently working through the normalization process. Occasionally, we want to iterate through all the nodes that we know have a real image in the dom. However, fragments and components don't directly have a mirror in the dom. This commit is exploring the concept of a custom iterator that explores every node in an array of nodes, returning only valid nodes which may be mounted to the dom. A big issue we're working through is heavily nested rootless nodes - something not terribly common but important nonetheless.
Inferno, React, and Preact all perform a mutative-form of normalization which alter the children list before comparing to the previous. Mostly, we're concerned about fragments in lists and heavily nested components that do not render real elements.
2021-06-21 00:52:37 -04:00
Jonathan Kelley
79127ea6cd
wip: moving to IDs
2021-06-20 02:16:42 -04:00
Jonathan Kelley
45ee803609
wip: moving to imperative method of dom
2021-06-20 01:52:32 -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
36ea39ae30
Feat: rename recoil to atoms
2021-06-16 11:19:37 -04:00
Jonathan Kelley
47e896038e
wip: more work on updating syntad
2021-06-15 10:02:46 -04:00
Jonathan Kelley
517d7f1495
Chore: some cleanup and documentation
2021-06-10 01:01:53 -04:00
Jonathan Kelley
fe6938ceb3
wip: pre vnodes instead of vnode
2021-06-08 14:00:29 -04:00
Jonathan Kelley
e3d9db0847
wip: successfully building
2021-06-07 14:14:49 -04:00
Jonathan Kelley
7790750349
wip: merge in some code from the other branch
2021-06-05 23:47:54 -04:00
Jonathan Kelley
795a54a2e4
wip: new approach at direct access to vdom
...
This commit starts the process of merging scope arena
with the diff machine to give the diffing algorithm mutable
access to components. React and Preact mutate the dom
as they diff it which makes their implementations simpler
and cleaner. The goal here is to give access of scopes to
the diffing machine which can mutate the underyling
representation during diffing.
2021-06-05 23:38:51 -04:00
Jonathan Kelley
424a18137f
Wip: pre-diffmachine merge fork
2021-06-03 13:57:41 -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
1919f88f03
Feat: some docs
2021-06-02 11:07:30 -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
c5089ba3c5
wip: more progress on parity docs.
...
Placeholders in the rsx macro for future features.
2021-05-28 12:56:21 -04:00
Jonathan Kelley
4d5c528b07
Feat: dirty hack to enable send + sync on virtual dom
2021-05-28 00:28:09 -04:00
Jonathan Kelley
fe67ff9fa4
wip: doesnt share on thread
2021-05-27 17:57:59 -04:00
Jonathan Kelley
ee67654f58
wip: recoil
2021-05-26 01:40:30 -04:00
Jonathan Kelley
b843dbd367
WIP: Todomvc in progress
2021-05-19 10:14:02 -04:00
Jonathan Kelley
0d44f009b0
Feat: introduce children for walking down the tree
2021-05-18 10:36:17 -04:00
Jonathan Kelley
24805a02f6
Feat: context api wired up
2021-05-18 01:16:43 -04:00
Jonathan Kelley
4c8130c4e4
Feat: about to consolidate context and scope
2021-05-17 17:59:10 -04:00
Jonathan Kelley
3de54d0b52
Feat: remove old code
2021-05-16 03:01:36 -04:00
Jonathan Kelley
2284b35782
Feat: abstraction lifetimes work out nicely
2021-05-16 02:58:57 -04:00
Jonathan Kelley
a99147c85b
Feat: Clean up repo a bit
2021-05-16 02:55:16 -04:00
Jonathan Kelley
c28697e1fe
Feat: some code health
2021-05-16 02:06:02 -04:00
Jonathan Kelley
9810feebf5
Feat: major overhaul to diffing
2021-05-15 12:03:08 -04:00
Jonathan Kelley
c809095124
Wip
2021-04-09 12:04:04 -04:00
Jonathan Kelley
2eeb8f2386
wip: refactor a bit
2021-04-04 21:47:53 -04:00
Jonathan Kelley
8c541f66d5
wip: todos
2021-04-01 21:44:18 -04:00
Jonathan Kelley
cfa0927cdd
feat: todomvc
2021-04-01 00:01:42 -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
44aad2746c
Feat: use rsx! inline!
2021-03-26 00:47:15 -04:00
Jonathan Kelley
9f7f43b661
Feat: building large apps, revamp macro
2021-03-22 23:52:54 -04:00
Jonathan Kelley
742f150eb3
wip: begint to accept iterator types
2021-03-18 18:54:26 -04:00
Jonathan Kelley
7856f2b153
wip: livehost bones
2021-03-16 11:03:59 -04:00
Jonathan Kelley
5b7887d76c
Fix: some stuff related to event listeners. POC for lifecyel
2021-03-15 02:16:03 -04:00
Jonathan Kelley
4e48e0514e
wip: diffing approach slightly broken
2021-03-14 20:33:37 -04:00
Jonathan Kelley
9d0727edab
Feat: remove old macro
2021-03-13 19:11:06 -05:00
Jonathan Kelley
39bd1856f4
Feat: update examples
2021-03-12 17:21:06 -05:00
Jonathan Kelley
305ff919ef
Feat: ensure mutabality is okay when not double-using the components
2021-03-12 16:58:30 -05:00
Jonathan Kelley
b3c96a5996
Feat: props now autoderives its own trait
2021-03-12 15:41:36 -05:00
Jonathan Kelley
d4f1ceaffb
feat: somewhat working with rc and weak
2021-03-12 14:27:32 -05:00
Jonathan Kelley
ec801eab16
wip: foregin eq from comparapable comp type.
...
This commit adds the framework for "comparable components". This allows
complete sealing of bump-allocated properties types, and a comparison method
that performs a "safe" cast without transmute. This lets us completely erase types
but still be able to perform partialeq over render frames
2021-03-12 13:03:37 -05: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
29751a4bab
Feat: implement vcomp fully
2021-03-10 19:42:10 -05:00
Jonathan Kelley
5abda91892
Feat: add some docs
2021-03-10 19:24:45 -05:00
Jonathan Kelley
8fcd001677
Feat: update component so build passes
2021-03-09 14:46:00 -05:00
Jonathan Kelley
37f5a7ad33
Feat: wire up props macro
2021-03-09 14:45:52 -05:00
Jonathan Kelley
7158bc3575
Feat: revert FC changes (like the old style).
...
This commit reverts to the old style of props + FC. The old style is desirable
because people comfortable with react can automatically be comfortable with
dioxus. It's also nice in that the same props can be used to drive two different
components - something the trait version couldn't do. Now, our trait bound forces
implementations to have the #[derive(Props)] flag. This will need to implement the
Properties trait as well as PartialEq (using ptr::equal for closure fields).
2021-03-09 00:58:20 -05:00
Jonathan Kelley
92d9521a73
WIP: remove FC
2021-03-07 21:28:20 -05:00
Jonathan Kelley
3740f81383
WIP: still a bit stumped on DFS vs BFS
2021-03-05 15:02:36 -05:00
Jonathan Kelley
89f2290692
feat: dyn scope
2021-03-04 23:57:25 -05:00
Jonathan Kelley
8dc26195e2
Feat: it's awersome
2021-03-04 19:20:55 -05:00
Jonathan Kelley
d9598066c2
Feat: yeet, synthetic somewhat wired up
2021-03-04 18:40:05 -05:00
Jonathan Kelley
3087813570
Feat: synthetic events wired up (ish)
2021-03-04 18:12:24 -05:00
Jonathan Kelley
bdd6be309e
Feat: notes on safety, and inline listeners
2021-03-04 13:49:18 -05:00
Jonathan Kelley
c70652a3c9
Feat: cleanup edit module
2021-03-04 12:38:53 -05:00
Jonathan Kelley
5a9155b059
Feat: more cleanup
2021-03-04 12:03:22 -05:00
Jonathan Kelley
cf16090838
Feat: add context to builder
2021-03-03 23:06:11 -05:00
Jonathan Kelley
fcd68e61d2
Feat: listeners now have scope information
2021-03-03 11:13:46 -05:00
Jonathan Kelley
cb74d70f83
wip: broken, but solved
2021-03-03 02:27:26 -05:00
Jonathan Kelley
879e107634
wip: use_reducer
2021-03-02 02:27:07 -05:00
Jonathan Kelley
4b8e9f4a12
Feat: wowza got it all working
2021-03-02 00:14:28 -05:00
Jonathan Kelley
da00df6688
Feat: parse custom rsx syntax
2021-03-01 22:55:20 -05:00
Jonathan Kelley
ffaf687896
Feat: update readme and examples
2021-03-01 00:16:48 -05:00
Jonathan Kelley
c8bb392cad
Feat: view -> render
2021-02-28 21:21:17 -05:00
Jonathan Kelley
4997976261
bump core version
2021-02-28 17:38:05 -05:00
Jonathan Kelley
9dcee01b33
Chore: remove html crate
2021-02-28 17:30:10 -05:00
Jonathan Kelley
c32a6ef7fe
add core macro crate
2021-02-28 17:25:40 -05:00
Jonathan Kelley
422d5ac5af
Feat: bump version for web release
2021-02-28 17:24:06 -05:00
Jonathan Kelley
3b30fa61b8
Feat: a few bugs, but the event system works!
2021-02-28 03:08:08 -05:00
Jonathan Kelley
2041c88d07
Feat: patch to diff to allow scopes
2021-02-27 22:52:32 -05:00
Jonathan Kelley
e840f472fa
WIP: moving to CbIdx as serializable event system
2021-02-27 11:43:28 -05:00
Jonathan Kelley
e4b1f6ea0d
Feat: custom format_args for inlining variables into html templates
2021-02-26 20:42:55 -05:00
Jonathan Kelley
a8b1225c48
Feat: begin WIP on html macro
2021-02-26 12:58:03 -05:00
Jonathan Kelley
32b45e5ba1
Feat: move webview logic into library
2021-02-25 18:44:00 -05:00
Jonathan Kelley
18a7a1f9c4
Chore: comments
2021-02-24 10:12:26 -05:00
Jonathan Kelley
06ae4fc178
Feat: wire up rebuild
2021-02-24 03:51:26 -05:00
Jonathan Kelley
83451372aa
Feat: clean up code
2021-02-24 01:32:50 -05:00
Jonathan Kelley
5204862bc2
Feat: fix internal lifecycle
2021-02-24 01:31:19 -05:00
Jonathan Kelley
edf09c1892
Feat: add css example
2021-02-23 15:08:23 -05:00
Jonathan Kelley
7a4594e237
wip: borrowing
2021-02-22 13:10:36 -05:00
Jonathan Kelley
bdc25b581b
Feat: finally solve the component lifetime problem <3
2021-02-20 22:57:13 -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
bcbb93b697
Feat: remove our use of ouroborous.
...
Instead, we're just going stick with unsafely transmuting the static
lifetime when accessing the active frame. This is a bit scarier, but
greatly simplifies containing the VNode.
2021-02-17 20:56:53 -05:00
Jonathan Kelley
e3ede7fcbf
Feat: re-enable stack machine approach
2021-02-17 10:53:55 -05:00
Jonathan Kelley
f22ff83190
Feat: WIP on deserialize
2021-02-15 14:14:28 -05:00
Jonathan Kelley
c4e8d8bb31
Feat: wire up a very basic dom updater
2021-02-14 23:39:46 -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
4c291a0efd
Feat: remove generic paramter on VDOM
...
This makes storage of VDoms easier, and removes static dispatch on any function that relies on VDOMs.
2021-02-13 03:19:35 -05:00
Jonathan Kelley
d063a19939
Feat: wire up some of the changelist for diff
2021-02-13 02:49:10 -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
Jonathan Kelley
125f5426a4
Feat: push new component API and context API
2021-02-11 23:03:01 -05:00
Jonathan Kelley
8329268d39
feat: update builder
2021-02-10 12:50:34 -05:00
Jonathan Kelley
c97a9647e3
Feat: update solved problems with context API
2021-02-10 12:48:02 -05:00
Jonathan Kelley
204f0d9f16
Feat:
...
- integrate subscription service into context.
- Update documentation
2021-02-08 16:57:34 -05:00
Jonathan Kelley
ee23ea6c3a
Feat: fix docs names
2021-02-08 11:12:02 -05:00
Jonathan Kelley
edbb33b2ee
Feat: implememt nodes better
2021-02-07 19:14:04 -05:00
Jonathan Kelley
c9d95dd1dc
Feat: move out scope into its own file
2021-02-07 17:38:17 -05:00
Jonathan Kelley
e939373616
Feat: capture pointer type
2021-02-07 16:21:38 -05:00
Jonathan Kelley
2c2882c9a2
Feat: more updates to hooks
2021-02-07 14:59:34 -05:00
Jonathan Kelley
4d01436c3f
Feat: found a fast solution to hook state
2021-02-06 22:19:56 -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
7730fd4a8c
Feat: webview example
2021-01-21 11:10:31 -05:00