Commit Graph
42 Commits
Author SHA1 Message Date
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 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 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 c28697e1fe Feat: some code health 2021-05-16 02:06:02 -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 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 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 d9598066c2 Feat: yeet, synthetic somewhat wired up 2021-03-04 18:40:05 -05:00
Jonathan Kelley bdd6be309e Feat: notes on safety, and inline listeners 2021-03-04 13:49:18 -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 3b30fa61b8 Feat: a few bugs, but the event system works! 2021-02-28 03:08:08 -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 83451372aa Feat: clean up code 2021-02-24 01:32:50 -05:00
Jonathan Kelley 7a6aabe4f3 Feat: WIP ctx 2021-02-20 21:59:16 -05:00
Jonathan Kelley c4e8d8bb31 Feat: wire up a very basic dom updater 2021-02-14 23:39:46 -05:00
Jonathan Kelley ea2aa4b0c9 Feat: event loop 2021-02-12 16:11:33 -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 edbb33b2ee Feat: implememt nodes better 2021-02-07 19:14:04 -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