Commit graph

730 commits

Author SHA1 Message Date
Jonathan Kelley
1847c737e9
Queue effects to run after flush_sync 2024-01-28 02:21:05 -08:00
Jonathan Kelley
974680796f
add test cases, refactor deref 2024-01-26 23:05:40 -08:00
Jonathan Kelley
d34538f4da
Add memochain example 2024-01-26 22:33:41 -08:00
Jonathan Kelley
b0b7de3692
Update signals example 2024-01-24 15:53:39 -08:00
Evan Almloff
c3555a7ec0 fix Option<String> in props 2024-01-24 16:40:14 -06:00
Jonathan Kelley
d092f7f19f
Fix effect by using a set_inner 2024-01-24 12:21:14 -08:00
Jonathan Kelley
3a5cbae5ee
Rename two files 2024-01-23 17:00:49 -08:00
Jonathan Kelley
c0522bc152
cargo check all 2024-01-23 16:58:29 -08:00
Evan Almloff
a5e61b0765 Merge branch 'breaking' of https://github.com/Demonthos/dioxus into breaking 2024-01-23 18:46:25 -06:00
Evan Almloff
f2e48f10e9 simplify the crm example a bit more 2024-01-23 18:46:24 -06:00
Jonathan Kelley
c8e4c96762
Fix panic in demo 2024-01-23 16:45:58 -08:00
Jonathan Kelley
e9978c119f
Don't strip the prefix from custom assets 2024-01-21 13:38:25 -08:00
Jonathan Kelley
028f499bf6
Fix generational box in release mode 2024-01-21 12:46:19 -08:00
Jonathan Kelley
06d9b575b7
rename use_selector to use_memo 2024-01-20 23:32:12 -08:00
Jonathan Kelley
3ded0f5329
Make more examples cross-platform 2024-01-20 00:11:55 -08:00
Jonathan Kelley
552ce92c64
Don't make query_segments special 2024-01-19 22:27:54 -08:00
Jonathan Kelley
83462badd1
tweak crm 2024-01-19 17:06:46 -08:00
Jonathan Kelley
85c7c22619
Make router work on web 2024-01-19 16:36:40 -08:00
Jonathan Kelley
b0038bb24b
Tweak crm example 2024-01-19 15:59:51 -08:00
Jonathan Kelley
60f5697e8e
Fix global signal owner 2024-01-19 15:48:21 -08:00
Jonathan Kelley
83bce6ce97
Make cargo check --all --examples work! 2024-01-19 14:19:49 -08:00
Evan Almloff
c859ed3b12 create global selectors 2024-01-19 15:26:28 -06:00
Evan Almloff
bc914deeaa create Signal::global 2024-01-19 13:46:17 -06:00
Jonathan Kelley
6ed3aafb2f
Get cargo check --all working 2024-01-18 19:27:55 -08:00
Jonathan Kelley
d8af9b7ed1
Fix compile checks on numerous packages using --all --all-features 2024-01-18 16:27:43 -08:00
Jonathan Kelley
3506b3ea72
Make http a required feature for a number of examples 2024-01-18 12:50:25 -08:00
Jonathan Kelley
84e82fc3e2
Make router configed-by-platform 2024-01-18 12:41:19 -08:00
Jonathan Kelley
b8adfb9293
Make magnansis a feature for examples 2024-01-18 12:36:42 -08:00
Jonathan Kelley
451a2b6cfc
Trim off 150 deps for examples 2024-01-18 12:32:01 -08:00
Evan Almloff
b165d707c4 Merge branch 'breaking' of https://github.com/Demonthos/dioxus into breaking 2024-01-18 10:20:35 -06:00
Evan Almloff
aa30079633 fix router examples 2024-01-18 09:38:53 -06:00
Jonathan Kelley
1b65ee8501
Tweak launch cfg 2024-01-18 03:03:17 -08:00
Jonathan Kelley
d4d7cb11f5
Remove all_css example 2024-01-17 19:03:28 -08:00
Jonathan Kelley
8918bf9463
Make the calculator more beautiful 2024-01-17 19:01:28 -08:00
Jonathan Kelley
1df329bda4
Fix router examples 2024-01-17 18:41:31 -08:00
Evan Almloff
701093ede5 Try to rerun all dirty scopes before polling any tasks to fix effect ordering 2024-01-17 08:17:30 -06:00
Evan Almloff
ecf17b351c finish fixing router 2024-01-16 16:24:44 -06:00
Evan Almloff
341bc7f6a1 remove duplicate blog in the router example 2024-01-16 15:54:09 -06:00
Evan Almloff
b58eb04278 Fix basic routers 2024-01-16 14:39:48 -06:00
Evan Almloff
e65c5f0eb3 depreciate the render macro 2024-01-16 13:18:46 -06:00
Evan Almloff
90d0164b9e fix formatted strings in components 2024-01-16 12:47:23 -06:00
Evan Almloff
407a82588a fix more examples 2024-01-16 12:28:21 -06:00
Evan Almloff
db35a9b48c add platform specific functions for launching apps for workspaces 2024-01-16 11:45:02 -06:00
Evan Almloff
8d14671520 fix spreading attributes 2024-01-16 11:04:37 -06:00
Evan Almloff
d2cdcc602b impl ComponentFunction for Routes 2024-01-16 09:40:17 -06:00
Evan Almloff
7e4d2debe0 implement launch builder for the desktop and web platforms 2024-01-16 08:42:16 -06:00
Jonathan Kelley
98bd78de43
Fix issue with mutability in component macro 2024-01-15 23:57:10 -08:00
Jonathan Kelley
8559984e9d
and mut bound to mut methods on signals 2024-01-15 23:24:59 -08:00
Jonathan Kelley
f1596bf5e8
Adjust example 2024-01-15 22:14:58 -08:00
Jonathan Kelley
d88561f973
Adjust impl for signal syntax to allow cloned values 2024-01-15 21:43:30 -08:00
Jonathan Kelley
33bba24867
Experiment with call syntax only working for copy types 2024-01-15 21:12:44 -08:00
Jonathan Kelley
bb750f5336
Fix effect stack issue 2024-01-15 20:45:59 -08:00
Jonathan Kelley
a32ae8b112
Remove push_future, get use_future kinda working again 2024-01-15 19:34:04 -08:00
Jonathan Kelley
14651a3573
Change context api to panic with nice error message 2024-01-15 18:02:58 -08:00
Jonathan Kelley
74aa55f85f
Bring back mroe hooks, remove old hooks, cleanup a number of examples 2024-01-15 17:04:39 -08:00
Jonathan Kelley
b291a5c0b0
Remove a number of hooks 2024-01-15 14:51:34 -08:00
Jonathan Kelley
fe12b1062f
Clean up more examples 2024-01-15 14:40:56 -08:00
Jonathan Kelley
bb6aa9e792
Add back ondestroy hook 2024-01-15 14:27:20 -08:00
Jonathan Kelley
6134a2ce24
Clean up a number of examples 2024-01-15 13:06:05 -08:00
Jonathan Kelley
f2caa3a3ad
clean up some more examples 2024-01-15 11:54:17 -08:00
Evan Almloff
36e9eb1160 partially restore spreading attributes 2024-01-14 15:21:19 -06:00
Jonathan Kelley
1dde044697
remove cx.render 2024-01-13 21:12:21 -08:00
Jonathan Kelley
fae0b08e61
Fix the router and stub out a number of crates to get compiling 2024-01-13 20:51:37 -08:00
Jonathan Kelley
a7a6645963
dont use magnanis for todomv 2024-01-11 14:55:56 -08:00
Jonathan Kelley
1527b81e02
Components participate in event handlers 2024-01-11 12:11:27 -08:00
Jonathan Kelley
aff5259654
Allow children shorthand in components 2024-01-10 23:52:38 -08:00
Jonathan Kelley
8a77d2560e
fix tests around children elements 2024-01-10 23:42:36 -08:00
Jonathan Kelley
b8061d6d14
Make clippy happy 2024-01-10 23:26:26 -08:00
Jonathan Kelley
c5dfbd7913
fix test 2024-01-10 22:52:41 -08:00
Jonathan Kelley
fa9d92f956
Fix tests for autofmt 2024-01-10 22:41:40 -08:00
Jonathan Kelley
d9b84f9f8f
Disambiguate expressions in rsx by requiring curlies 2024-01-10 19:33:34 -08:00
Evan Almloff
663296ae45 make collect-assets not optional in dioxus fullstack 2024-01-09 13:58:28 -06:00
Jonathan Kelley
28a9dc6805
Pin assets sha to keep CI in check 2024-01-08 14:54:02 -08:00
Jonathan Kelley
9c4d90350f
fix merge conflicts for files 2024-01-08 14:08:21 -08:00
Evan Almloff
56798b3d1c Merge branch 'master' into add-file-data-drag-event 2024-01-08 14:16:09 -06:00
Jonathan Kelley
6ed038e9e5
Add example of working with streams 2024-01-08 11:25:20 -08:00
Jonathan Kelley
211dd64d92
Merge branch 'master' into issue-1179 2024-01-08 09:39:41 -08:00
Evan Almloff
5b6f9d6b80 fix merge 2024-01-06 08:58:49 -06:00
Evan Almloff
e5df83ceec Merge branch 'master' into pr/atty303/1349 2024-01-06 08:52:37 -06:00
Jonathan Kelley
2e0cded871
Make clippy happy 2024-01-05 23:16:30 -08:00
Jonathan Kelley
a95f4dfe0d
fmt 2024-01-05 23:15:30 -08:00
Jonathan Kelley
347351d1ee
Finish asset handler 2024-01-05 18:08:04 -08:00
Jonathan Kelley
8323e45970
Call handlers from context of a runtime and scope 2024-01-05 17:35:37 -08:00
Jonathan Kelley
bc857bf339
Make clippy happy 2024-01-05 12:54:39 -08:00
Jonathan Kelley
47306bf89b
Merge branch 'master' into jk/rework-desktop-crate 2024-01-05 12:22:59 -08:00
Jonathan Kelley
8f70509bc3
Merge pull request #1680 from ealmloff/derive-query-parsing
Automatically derive standard query parsing in the router macro
2024-01-05 12:16:37 -08:00
Jonathan Kelley
785b61a05e
Merge branch 'master' into intigrate-collect-assets 2024-01-05 12:13:31 -08:00
Jonathan Kelley
4debd9cfac
Merge pull request #1402 from ealmloff/events-2
Rework Event System
2024-01-05 12:12:53 -08:00
Jonathan Kelley
fa425dc62c
Merge branch 'master' into jk/rework-desktop-crate 2024-01-04 23:52:59 -08:00
Jonathan Kelley
2e9737ef57
Clean up and document the protocol handler 2024-01-04 19:52:49 -08:00
Jonathan Kelley
38216fa272
Make the tokio runtime optional 2024-01-04 19:09:59 -08:00
Evan Almloff
7ffb204eac fix event tests in core 2024-01-04 19:36:10 -06:00
Evan Almloff
0388a5c1f4 fix formatting 2024-01-04 19:21:06 -06:00
Evan Almloff
0b40878fce fix cargo check 2024-01-04 19:11:32 -06:00
Evan Almloff
c41e3d96e7 fix compose example 2024-01-04 19:08:06 -06:00
Evan Almloff
dccfba12d8 Merge branch 'master' into events-2 2024-01-04 19:02:00 -06:00
Evan Almloff
b1de7d850c Merge branch 'master' into intigrate-collect-assets 2024-01-04 18:44:29 -06:00
Teague Lasser
334e7e6f22
Updated packages and comments referencing old CLI location (#1786) 2024-01-04 18:41:05 -06:00
Jonathan Kelley
9a6d745339
Refactor desktop into App type 2024-01-04 16:12:37 -08:00
Jonathan Kelley
ea1325f6e8
Merge branch 'master' into polish-throw 2024-01-04 10:27:51 -08:00
Jonathan Kelley
799be5e4e3
Merge branch 'master' into jk/global-window-fun 2024-01-04 10:22:10 -08:00
Jonathan Kelley
8df7a7685e
Merge branch 'master' into many_optional_attributes 2024-01-04 10:18:57 -08:00
Jonathan Kelley
a2f44be2a2
Merge branch 'master' into binary-protocal 2024-01-04 10:17:10 -08:00
Jonathan Kelley
1d289ff282
Merge pull request #1710 from Exotik850/cx-spawn-poll
Make cx.spawn poll the task before returning `TaskId`
2024-01-04 10:07:22 -08:00
Jonathan Kelley
318cae7bf8
Merge pull request #1727 from ealmloff/video-streaming
Add a video streaming example
2024-01-04 09:56:23 -08:00
Jonathan Kelley
73637987f3
Merge pull request #1719 from willcrichton/dev
Add custom asset handler to desktop config
2024-01-04 09:56:12 -08:00
ealmloff
937be8b752
fix the on double click event and depreciate ondblclick (#1743) 2024-01-03 14:02:08 -06:00
Evan Almloff
dfb118e06c make the video streaming async 2023-12-18 09:34:30 -06:00
Evan Almloff
ec4c1e0a44 add video stream example 2023-12-18 08:32:50 -06:00
Evan Almloff
9eee4ab8f8 add a dynamic asset example 2023-12-17 17:14:55 -06:00
Evan Almloff
d627153ccc show off the new asset system in the examples 2023-12-17 11:45:27 -06:00
Exotik850
fdce7bbe5a Return to just TaskId, still polling 2023-12-12 13:02:35 -06:00
kidkool850@gmail.com
69ca1fd8a7 Make cx.spawn() return an Option<TaskId>, returns None if finished immediately 2023-12-11 16:01:40 -06:00
Evan Almloff
0e3fd225a8 Merge branch 'master' into binary-protocal 2023-12-08 08:44:04 -06:00
Jonathan Kelley
f2504cec84
Merge pull request #1674 from ealmloff/better-optional-props
Make optional props accept Nothing, T or Option<T>
2023-12-06 21:37:39 -08:00
Jonathan Kelley
d3f6ff703c
Release 0.4.3
dioxus@0.4.3
dioxus-autofmt@0.4.3
dioxus-check@0.4.3
dioxus-cli@0.4.3
dioxus-core@0.4.3
dioxus-core-macro@0.4.3
dioxus-desktop@0.4.3
dioxus-fullstack@0.4.3
dioxus-hooks@0.4.3
dioxus-hot-reload@0.4.3
dioxus-html@0.4.3
dioxus-interpreter-js@0.4.3
dioxus-liveview@0.4.3
dioxus-mobile@0.4.3
dioxus-native-core@0.4.3
dioxus-native-core-macro@0.4.3
dioxus-router@0.4.3
dioxus-router-macro@0.4.3
dioxus-rsx@0.4.3
dioxus-signals@0.4.3
dioxus-ssr@0.4.3
dioxus-tui@0.4.3
dioxus-web@0.4.3
dioxus_server_macro@0.4.3
fermi@0.4.3
generational-box@0.4.3
plasmo@0.4.3
rsx-rosetta@0.4.3

Generated by cargo-workspaces
2023-12-06 16:56:35 -08:00
Jonathan Kelley
ab1fab5f50
No publish demos 2023-12-06 16:49:05 -08:00
Evan Almloff
35582e21eb fix formatting 2023-12-01 15:32:11 -06:00
Evan Almloff
8a44fe8d03 derive query parsing in the router macro 2023-12-01 15:31:45 -06:00
Evan Almloff
533c7bab49 show more cases in the optional props example 2023-11-29 11:39:38 -06:00
Evan Almloff
be94c69f11 make optional props accept T or Option<T> 2023-11-29 11:38:28 -06:00
Evan Almloff
355cd9b19e Merge branch 'master' into pr/atty303/1349 2023-11-20 18:37:33 -06:00
Alexander
62719c309a
fix keyboard input on calc example (#1639) 2023-11-14 10:39:37 -06:00
Evan Almloff
6141aeb037 polish the throw trait 2023-11-07 18:24:07 -06:00
Evan Almloff
ff7aca7617 fix todomvc 2023-10-31 13:56:27 -05:00
Evan Almloff
5fdff4b7ed bump wry to 0.34 2023-10-31 13:49:29 -05:00
ealmloff
c84a13f164
Merge branch 'master' into bump-wry 2023-10-31 13:40:03 -05:00
Evan Almloff
77d53df532 Merge branch 'master' into pr/atty303/1349 2023-10-31 13:39:20 -05:00
ealmloff
5bb06b9719
Merge branch 'master' into events-2 2023-10-30 15:37:29 -05:00
Jonathan Kelley
dd4547d753
Feat: add global context functions
Add functions like window() and router() to
allow dynamically grabbing global contexts
without have to use the hook variants.

Deprecates the existing hook variants to
discourage folks from adding more noise
to their codebases.
2023-10-23 16:26:10 -04:00
Evan Almloff
9abc390d04 bench 2023-10-20 13:21:27 -05:00
Stygmates
b836851d02
Add openidconnect authentication demo (#1500)
* Add openidconnect authentication demo

* use_atom_ref usage to have a read/write handle on the atom

* Use default

* Code rewrite to better reflect the authentication flow

* Use the env macro instead of the build.rs to load env variables

* Add env variables

* Remove unnecessary dependency

* Add env variables to the root workspace

* Update readme

* Bump openidconnect version

* Use props to pass the client to the child components

* Code clean up

---------

Co-authored-by: Truong Tan Dat <truongt@igbmc.fr>
2023-10-20 12:43:24 -05:00
Alexander
37c6c67a17
refactor todo mvc example (#1556) 2023-10-19 09:26:17 -05:00
Jonathan Kelley
9cdbf81a4b
fix clippy lint 2023-10-17 16:06:43 -07:00
Jonathan Kelley
65e21d7874
Change signals example a bit 2023-10-17 15:52:13 -07:00
Jonathan Kelley
e819702fc5
Add into_vnode temporary logic for more things
This commit adjusts how rsx! works, making it more forgiving with signals.

Notably, we add the temporaries to if chains too.
2023-10-17 15:42:21 -07:00
Jonathan Kelley
7e2164d6d6
Add toggle 2023-10-15 17:52:01 -07:00
Jonathan Kelley
741bfbc9ac
Add toggle to signals example 2023-10-15 17:50:23 -07:00
Jonathan Kelley
14b3fa72e4
Change the semantics of exprs/for loops allocations strategy
This commit adjusts how exprs and for loops are handled within
rsx. This is a breaking change in terms of codegen, but has
slight semantic changes as well.

Now, when exprs/for loops are allocated, they are given a temporary.
The temporary is elided to the <'a> lifetime of the bump, to satisfy
the borrow checker. This fixes issues with signals where exprs/for
loops mapping vecs out of RefCells would be caught up without a
temporary lifetime.
2023-10-15 17:40:56 -07:00
Evan Almloff
cb148cc881 Merge branch 'bump-wry' into binary-protocal 2023-10-13 09:45:11 -05:00
Leonard
2d1234c3d1
Include README and Dioxus logo in package docs (#1536)
* Include README in docs.rs and add Dioxus logo

* Update README.md
2023-10-10 10:52:48 -05:00
Evan Almloff
d5b7a6d15e fix fuzzing test 2023-10-04 08:46:24 -05:00
Amr Bashir
9f7a0a9f63
chore: tauri-mobile -> cargo-mobile2 (#1518) 2023-10-04 08:22:22 -05:00
Evan Almloff
ee25c03e74 fix some clippy lints 2023-09-27 10:13:45 -05:00
Evan Almloff
76a050314a make spread example more interesting 2023-09-27 10:05:02 -05:00
Evan Almloff
b60671e0fe fix non extending attributes 2023-09-27 10:02:49 -05:00
Evan Almloff
7b51bb8060 WIP: add extends to the props macro 2023-09-26 19:23:00 -05:00
Evan Almloff
5b65c4cfb4 implement spreading props in the rsx macro 2023-09-22 10:04:34 -05:00
Evan Almloff
9e167dfdb7 Merge branch 'many_optional_attributes' into pr/atty303/1349 2023-09-22 09:32:05 -05:00
Evan Almloff
31cd15d61f fix clippy 2023-09-22 09:31:13 -05:00