Commit graph

666 commits

Author SHA1 Message Date
Jonathan Kelley
08c522d5b3
Fix muda segfault 2024-01-11 14:50:21 -08:00
Jonathan Kelley
f7bf156422
Merge pull request #1810 from DioxusLabs/jk/disambiguate-exprs-in-rsx
Disambiguate if expressions in rsx by requiring curlies, allow shorthand component/element initialization
2024-01-11 12:25:59 -08:00
Evan Almloff
404c864246 make the root component take no arguments 2024-01-11 10:48:04 -06:00
Jonathan Kelley
d9b84f9f8f
Disambiguate expressions in rsx by requiring curlies 2024-01-10 19:33:34 -08:00
Evan Almloff
e004c1722f set the required environment variable for manganis support 2024-01-10 11:19:51 -06:00
Jonathan Kelley
3aabaa8c8f
Commit cargo.lock and allow mobile example to be part of workspace 2024-01-08 15:27:59 -08:00
Jonathan Kelley
28a9dc6805
Pin assets sha to keep CI in check 2024-01-08 14:54:02 -08:00
Jonathan Kelley
6b240e1169
remove unused deps 2024-01-08 13:39:03 -08:00
Jonathan Kelley
5ccbeeab46
Merge branch 'master' into add-file-data-drag-event 2024-01-08 13:34:24 -08:00
Jonathan Kelley
399e20fd47
Merge pull request #1622 from ealmloff/cli-config-library
Pull out CLI configs into a separate library
2024-01-08 13:33:16 -08:00
Jonathan Kelley
c90f31a4f6
Fix moutned data on desktop 2024-01-08 13:03:47 -08:00
Evan Almloff
194c9d43e3 fix merge 2024-01-08 14:51:35 -06:00
Jonathan Kelley
1b883b2858
Use the correct serialized event converter 2024-01-08 12:19:43 -08:00
Evan Almloff
56798b3d1c Merge branch 'master' into add-file-data-drag-event 2024-01-08 14:16:09 -06:00
Evan Almloff
23509ada9f Merge branch 'master' into cli-config-library 2024-01-08 13:24:16 -06:00
Evan Almloff
88e2da6c11 update the web renderer to the new dioxus core 2024-01-06 16:44:07 -06:00
Evan Almloff
f4af297777 merge upstream 2024-01-06 16:14:22 -06:00
Jonathan Kelley
729bfa3be1
Fix eval provider 2024-01-06 11:34:26 -08:00
Jonathan Kelley
9d4a8e1622
add window ext trait 2024-01-06 02:18:26 -08:00
Jonathan Kelley
f01a684379
fix windows 2024-01-06 01:44:46 -08:00
Jonathan Kelley
9efeb51873
Fix windows build, again 2024-01-06 00:38:32 -08:00
Jonathan Kelley
d7c6aa4577
fix builds for windows 2024-01-06 00:36:31 -08:00
Jonathan Kelley
d07808634a
disable linux menubar 2024-01-06 00:10:46 -08:00
Jonathan Kelley
8679656d16
fix ios build of desktop 2024-01-05 23:59:44 -08:00
Jonathan Kelley
94949932df
Tweak menubar export 2024-01-05 23:52:37 -08:00
Jonathan Kelley
7a439edc6b
disable muda entirely on mobile 2024-01-05 23:46:16 -08:00
Jonathan Kelley
ce088acb0c
use proper extension traits 2024-01-05 23:40:01 -08:00
Jonathan Kelley
0ac8955bab
Fix android/ios muda cfg 2024-01-05 23:37:10 -08:00
Jonathan Kelley
e9e7219b4b
Add os-webview feature to wry to fix builds 2024-01-05 23:25:15 -08:00
Jonathan Kelley
2e0cded871
Make clippy happy 2024-01-05 23:16:30 -08:00
Jonathan Kelley
20135368b8
Put asset collection behind a feature flag 2024-01-05 23:14:03 -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
Evan Almloff
4013341b6c hello world example working 2024-01-05 18:01:05 -06:00
Jonathan Kelley
bc857bf339
Make clippy happy 2024-01-05 12:54:39 -08:00
Evan Almloff
3865f44081 make desktop compile 2024-01-05 14:39:45 -06:00
Jonathan Kelley
cbed09b95c
Clean up shared context in desktop 2024-01-05 12:37:47 -08:00
Jonathan Kelley
8e9984b4b5
Fix merge conflicts with new event system 2024-01-05 12:28:33 -08:00
Jonathan Kelley
47306bf89b
Merge branch 'master' into jk/rework-desktop-crate 2024-01-05 12:22:59 -08:00
Jonathan Kelley
785b61a05e
Merge branch 'master' into intigrate-collect-assets 2024-01-05 12:13:31 -08:00
Jonathan Kelley
42e25c407f
A few more stylistic changes 2024-01-04 20:41:48 -08:00
Jonathan Kelley
4d95bc1374
Document ipc a bit 2024-01-04 20:28:57 -08:00
Jonathan Kelley
b5a125b963
Refactor IPC a bit 2024-01-04 20:27:04 -08:00
Jonathan Kelley
4adc912189
Collapse objects into single shared object 2024-01-04 20:17:38 -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
Jonathan Kelley
73d5069a20
Move launch functions into their own file 2024-01-04 18:31:22 -08:00
Jonathan Kelley
060490892a
Clean up desktop even more 2024-01-04 18:19:28 -08:00
Jonathan Kelley
7444796a85
Simplify asset code a bit 2024-01-04 18:01:13 -08:00
Jonathan Kelley
fef7b83b79
Rename editqueue type 2024-01-04 17:35:58 -08:00
Jonathan Kelley
d47e494786
More cleaning up of the desktop crate 2024-01-04 17:28:54 -08:00
Jonathan Kelley
6e08703c6c
Fix compile issue 2024-01-04 17:21:38 -08:00
Jonathan Kelley
2171263eda
More cleanup work 2024-01-04 17:21:33 -08: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
4f654d61b7 fix cargo check 2024-01-04 19:05:36 -06:00
Evan Almloff
dccfba12d8 Merge branch 'master' into events-2 2024-01-04 19:02:00 -06:00
Jonathan Kelley
ec3eaa6b26
Add ID to filedrop handler 2024-01-04 16:48:53 -08:00
Evan Almloff
b1de7d850c Merge branch 'master' into intigrate-collect-assets 2024-01-04 18:44:29 -06:00
Jonathan Kelley
62a9583fff
Fix merge conflict 2024-01-04 16:44:16 -08:00
Jonathan Kelley
1518c223f6
Don't drop tokio runtime immediately 2024-01-04 16:38:49 -08:00
Jonathan Kelley
d38ce349b1
Tiny bit of cleanups 2024-01-04 16:36:19 -08:00
Jonathan Kelley
436635386d
Get compiling 2024-01-04 16:28:15 -08:00
Jonathan Kelley
9a6d745339
Refactor desktop into App type 2024-01-04 16:12:37 -08:00
Evan Almloff
f6acaba061 fix compilation 2024-01-04 17:04:56 -06:00
Jonathan Kelley
799be5e4e3
Merge branch 'master' into jk/global-window-fun 2024-01-04 10:22:10 -08:00
Jonathan Kelley
a2f44be2a2
Merge branch 'master' into binary-protocal 2024-01-04 10:17:10 -08:00
Jonathan Kelley
1473473801
Merge branch 'master' into bump-wry 2024-01-04 10:05:34 -08:00
Jonathan Kelley
601627d46e
Merge branch 'master' into master 2024-01-04 09:57:26 -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
ealmloff
1f58530b43
Merge branch 'DioxusLabs:master' into bump-wry 2023-12-31 17:13:42 -06:00
Evan Almloff
dfb118e06c make the video streaming async 2023-12-18 09:34:30 -06:00
Evan Almloff
7649ad84a1 allow asset handlers to read the whole request 2023-12-17 17:14:49 -06:00
Evan Almloff
a647ce2f36 remove headless tests for CI 2023-12-17 11:30:17 -06:00
Will Crichton
1002bc955b Replace AssetHandlerId with slab and usize 2023-12-16 21:44:39 -08:00
Will Crichton
7bede0be59 Remove unused imports 2023-12-15 11:30:19 -08:00
Will Crichton
d5ec22a26f Add custom asynchronous asset handlers 2023-12-15 11:16:25 -08:00
Evan Almloff
3afb313110 fix formatting 2023-12-11 14:00:45 -06:00
Evan Almloff
8984482b63 fix headless windows 2023-12-08 15:14:32 -06:00
Evan Almloff
66e2c02bf7 Merge branch 'master' into intigrate-collect-assets 2023-12-08 08:49:17 -06:00
Evan Almloff
0e3fd225a8 Merge branch 'master' into binary-protocal 2023-12-08 08:44:04 -06:00
Pascal
29f9d002e2 expose dioxus_desktop::build_default_menu_bar() 2023-12-07 19:03:37 +01:00
Pascal
cbfb80d5c6 fixup: improved documentation and refactored naming to be more self-explanatory
Note:
This is the actual correct commit. The previous one contained files touched by cargo fmt which are unrelated. Sorry for that.
2023-12-07 17:23:14 +01:00
Pascal
906c466e78 Revert "improved documentation and refactored naming to be more self-explanatory"
This reverts commit adfbb6c380.
2023-12-07 17:11:56 +01:00
Pascal
adfbb6c380 improved documentation and refactored naming to be more self-explanatory 2023-12-07 16:36:20 +01:00
Evan Almloff
7d2bbda53d move gnu warning to build script 2023-12-07 07:10:53 -06:00
Jonathan Kelley
ea15c6a2eb
Merge branch 'master' into cli-config-library 2023-12-06 21:30:14 -08:00
Pascal
e4d60c8dfc add default menu bar in dioxus-desktop to resolve #1691
fixup naming and expose disable_default_menu_bar with builder function
2023-12-06 23:00:01 +01:00
Evan Almloff
71f7481ded use requestAnimationFrame on desktop 2023-12-04 20:45:26 -06:00
Evan Almloff
a4600294c5 allow users to disable the warning in a feature 2023-12-01 22:17:51 -06:00
Evan Almloff
0a3b794a1c add a warning about wry gnu support to dioxus desktop 2023-12-01 15:56:14 -06:00
zhangzhonglai
c8a9a7b1d5
docs(desktop): fix wrong example code (#1678)
* docs(desktop): fix wrong example code

* stop ignoring doctests in dioxus desktop

---------

Co-authored-by: ealmloff <evanalmloff@gmail.com>
2023-12-01 07:52:20 -06:00
Evan Almloff
15984b78db use the name in the dioxus.toml in desktop if no name was set in the desktop config 2023-11-14 15:53:11 -06:00
Evan Almloff
5fdff4b7ed bump wry to 0.34 2023-10-31 13:49:29 -05:00
ealmloff
856fb1874e
Merge branch 'master' into binary-protocal 2023-10-31 13:40:31 -05:00
ealmloff
c84a13f164
Merge branch 'master' into bump-wry 2023-10-31 13:40:03 -05:00
ealmloff
5bb06b9719
Merge branch 'master' into events-2 2023-10-30 15:37:29 -05:00
HKalbasi
720bfdf231
Make window invisible until the first render (#1588) 2023-10-29 13:09:07 -05:00
Evan Almloff
9de56c00f3 fix multiple types of desktop/liveview listeners in the same app 2023-10-24 13:09:10 -05:00
Jonathan Kelley
1fe8e94063
Deprecate use_window 2023-10-23 16:30:39 -04: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
b14aaca7b2 fix desktop renderer on windows 2023-10-20 13:05:13 -05:00
Evan Almloff
33f0f0c172 fix clippy 2023-10-20 09:38:10 -05:00
Evan Almloff
1d664c616e restore desktop/liveview minification 2023-10-20 09:18:16 -05:00
Evan Almloff
2404bfeeb3 fix liveview element 2023-10-20 09:06:19 -05:00
Evan Almloff
378cbfabd9 fix desktop mounted event 2023-10-20 08:45:04 -05:00
Evan Almloff
c9612a085e fix liveview mounted event 2023-10-19 16:40:08 -05:00
Evan Almloff
06ca8c53d8 gitignore minified.js 2023-10-17 14:47:11 -05:00
Evan Almloff
a4fbeeb932 add stress test for desktop 2023-10-17 14:45:37 -05:00
Evan Almloff
c807808231 remove logging 2023-10-17 14:32:31 -05:00
Evan Almloff
db56962eea basic example working with binary protocol on desktop 2023-10-17 14:31:58 -05:00
Evan Almloff
ce86aabf26 fix clippy 2023-10-17 13:02:51 -05:00
Evan Almloff
9d19f4d204 fix clippy 2023-10-16 10:44:08 -05:00
Evan Almloff
2645b85533 WIP desktop binary protocol 2023-10-15 09:23:01 -05:00
Evan Almloff
cb148cc881 Merge branch 'bump-wry' into binary-protocal 2023-10-13 09:45:11 -05:00
Evan Almloff
3063d83406 start migrating desktop to sledgehammer 2023-10-13 09:21:57 -05:00
Evan Almloff
426a342700 add logs when the desktop or fullstack application is collecting assets 2023-10-10 10:26:16 -05:00
Evan Almloff
f20b740abe switch liveview to sledgehammer 2023-10-09 14:28:12 -05:00
ealmloff
072ca3529b
Merge branch 'DioxusLabs:master' into events-2 2023-10-02 19:48:52 -05:00
Evan Almloff
e5b15f7c31 fix tracing in desktop 2023-09-26 09:07:11 -05:00
Evan Almloff
6fab8963e6 use tracing in new logs 2023-09-22 08:25:38 -05:00
Evan Almloff
e2f50cc689 Merge branch 'master' into intigrate-collect-assets 2023-09-22 07:56:00 -05:00
ealmloff
60ee82942c
restore the tray feature in the desktop crate (#1475) 2023-09-19 16:48:01 -05:00
Evan Almloff
219c068283 Merge branch 'master' into events-2 2023-09-17 20:01:21 -05:00
Evan Almloff
f976e08f71 Merge branch 'master' into intigrate-collect-assets 2023-09-17 19:40:14 -05:00
Evan Almloff
847801908f Merge branch 'master' into add-file-data-drag-event 2023-09-17 18:56:59 -05:00
Deep Patel
8b411b8c6d
Update Cargo.toml (#1466)
Remove duplicate `dox` feature that resulted in build fail
2023-09-17 14:18:23 -05:00
Jonathan Kelley
e4620250bd
Merge branch 'master' into fix-docs-rs-desktop-build 2023-09-16 11:54:08 -07:00
marc2332
7f8c963cd9
fix: Update doc links from v3 to v4 2023-09-16 19:03:27 +02:00
ealmloff
ea69811e70
Merge branch 'master' into bump-wry 2023-09-14 12:55:54 -05:00
Evan Almloff
c55c17cb81 switch to tracing for logging 2023-09-06 17:47:33 -05:00
Evan Almloff
ffb5de91d1 Merge branch 'master' into intigrate-collect-assets 2023-09-05 13:45:37 -05:00
ealmloff
9e623d52cb
Merge branch 'master' into events-2 2023-09-04 18:52:48 -05:00
Evan Almloff
e86c1647d8 fix clippy 2023-09-04 08:33:56 -05:00
Evan Almloff
d1575b40d1 fix mobile build 2023-09-04 08:24:38 -05:00
Evan Almloff
885580f3af update to wry 0.31.0 2023-09-02 18:24:42 -05:00
Evan Almloff
df222c121a port examples to new events 2023-09-01 15:38:55 -05:00
Evan Almloff
9ae6b46e20 Forward Wry's devtools, and dox flags 2023-08-31 15:43:26 -05:00
Evan Almloff
8ba1c05a93 fix desktop events 2023-08-28 16:37:19 -05:00
Evan Almloff
62556b2c34 fix desktop and liveview compilation 2023-08-28 12:43:21 -05:00
Evan Almloff
299b123446 trait based event system 2023-08-25 17:02:48 -05:00
Evan Simkowitz
f599ad6ad7
remove unnecessary PointInteraction imports now that it's in prelude 2023-08-23 22:14:57 -04:00
Evan Simkowitz
56095116e2
Fix tests 2023-08-23 17:58:43 -04:00
Evan Almloff
7fb6dccc0c fix docs.rs build for desktop 2023-08-21 10:22:13 -05:00
Evan Almloff
5eca11fe3d update collect assets name 2023-08-18 14:54:57 -05:00
Evan Almloff
1a36409922 disable asset patching in cargo run for mobile 2023-08-18 14:43:56 -05:00
Evan Almloff
1ed814668a Set an environment variable during serve for bundling 2023-08-18 11:12:56 -05:00
Evan Almloff
efe08df966 report request errors in desktop 2023-08-18 11:02:15 -05:00