Commit graph

717 commits

Author SHA1 Message Date
Evan Almloff
460a685fa3
Warn if cli-config is not available at compile time (#2135)
* warn if a package relies on the CLI config, but it is not built with the CLI

* fix default features

---------

Co-authored-by: Jonathan Kelley <jkelleyrtp@gmail.com>
2024-03-26 19:10:26 -07:00
Evan Almloff
e464294c66
fix hot reload on windows (#2142) 2024-03-26 00:36:11 -07:00
Evan Almloff
9942c8bfd1
Fix asset bundling in the CLI (#2145)
* Fix asset bundling in the CLI

* fix clippy
2024-03-26 00:36:03 -07:00
Jonathan Kelley
e923c6462c
Resume window position/size, watch cargo/dioxus tomls, fix css reverting during hotreloading, allow menubar events to be captured from within dioxus (#2116)
* Fix: css hotreloading being invalidated, watcher not watching cargo/dioxus tomls, add feature to restore window state

* Make clappy hippier

* remove console log

* use simpler css invalidator

* Less flash, remove log on web hotreload

* Fix floating window managed behavior on mac

* clippy...
2024-03-20 09:16:18 -07:00
Jonathan Kelley
4bb807a3ce
Reduce churn in window behavior 2024-03-18 22:38:33 -07:00
Evan Almloff
d442dac168
Add a menu bar option to the desktop config (#2107)
* add an option to set a custom menu in the desktop config

* Fix rename issue

---------

Co-authored-by: Jonathan Kelley <jkelleyrtp@gmail.com>
2024-03-18 22:36:47 -07:00
Jonathan Kelley
2dc6cecf2e
Fix #2043: use formvalue instead of String for forms (#2103)
Fix #2043: use formvalue instead of String for forms
2024-03-18 18:21:08 -07:00
Jonathan Kelley
f9f902732b
Fix: update wry, tao, to fix android issues 2024-03-15 20:12:13 -07:00
Jonathan Kelley
7d11984a0e
Chore: bump wry + tao 2024-03-14 23:11:25 -07:00
Jonathan Kelley
bb8b4dc2fb
FIx:
- asset hotreloading for desktop,
- asset dir for dxserve on desktop,
- extend features with platform
2024-03-13 17:15:49 -07:00
Jonathan Kelley
3d699e7a75
Match on more places for asset reloading 2024-03-13 15:10:44 -07:00
Evan Almloff
6b84f284c9 fix manganis assets overlapping between examples 2024-03-11 17:11:52 -05:00
Evan Almloff
f8a8ee3e29 fix clippy 2024-03-08 12:45:23 -06:00
Evan Almloff
98158bdc6f fix headless tests 2024-03-08 10:54:02 -06:00
Jonathan Kelley
c3df8c55e3
fix windows, enable tokio for examples on wasm 2024-03-06 19:59:47 -08:00
Jonathan Kelley
81f38a0bc5
cfg out globalhotkey 2024-03-06 16:42:45 -08:00
Jonathan Kelley
4b2e426958
clippy, and don't hash invisible files for ts generation 2024-03-05 22:38:38 -08:00
Jonathan Kelley
624e58bd78
native file drop 2024-03-05 14:11:12 -08:00
Jonathan Kelley
78d16536a7
wip: native file handles when dropping 🎉 2024-03-05 13:57:28 -08:00
Jonathan Kelley
403e8e2f49
Clean up file uploads in desktop/liveview, remove minify 2024-03-05 13:00:27 -08:00
Jonathan Kelley
56a365742c
clean up native js more 2024-03-05 12:08:33 -08:00
Jonathan Kelley
22266cc560
Switch to bun, clean up web implementation 2024-03-04 15:23:48 -08:00
Jonathan Kelley
199173a409
fix navigating when files are dropped 2024-03-01 23:37:46 -08:00
Jonathan Kelley
206a48257b
Merge branch 'main' into jk/fix-form-inputs 2024-02-27 12:50:57 -08:00
Jonathan Kelley
0c4c0e70e5
Merge pull request #1986 from ealmloff/bump-sledgehammer-bindgen
Bump the sledgehammer bindgen version
2024-02-27 12:33:10 -08:00
Jonathan Kelley
b5447c162f
extend interpreter base class with platform methods 2024-02-27 12:31:11 -08:00
Evan Almloff
acbc1f6a47 fix headless tests on desktop 2024-02-27 12:19:34 -06:00
Evan Almloff
93ee53454f bump the sledgehammer bindgen version 2024-02-27 10:35:16 -06:00
Jonathan Kelley
53cafefdef
wip: add tests and slightly refactor interpreter code 2024-02-23 17:38:04 -08:00
Jonathan Kelley
48d6a9acbb
Add logging to event checker 2024-02-22 13:55:29 -08:00
Jonathan Kelley
2ead6c6074
give longer window for events 2024-02-22 12:33:58 -08:00
Jonathan Kelley
cbadea022a
Eval should never return an error
Only awaiting eval should error.
Eval should always be available, even if using its methods returns errors.
2024-02-14 15:13:15 -08:00
Jonathan Kelley
bdbae8ccb0
Update examples, add css 2024-02-14 12:33:07 -08:00
Jonathan Kelley
25d103c1a5
Merge pull request #1908 from ealmloff/fix-assets
Fix manganis support for dioxus desktop
2024-02-07 12:17:12 -08:00
Evan Almloff
cb113cf4b6 Fix external links in dioxus desktop 2024-02-07 11:35:50 -06:00
Evan Almloff
3270f7341a fix manganis support for dioxus desktop 2024-02-06 11:39:30 -06:00
Jonathan Kelley
2ade193a5b
Fix shortcut by wrapping callback 2024-02-05 18:50:13 -08:00
Jonathan Kelley
f2ec5c5cb8
fix headless event counter 2024-02-05 17:58:13 -08:00
Jonathan Kelley
d2346cc477
maybe windows needs even longer for windows to open 2024-02-05 17:15:06 -08:00
Evan Almloff
72ae13ccb5 fix the double click event 2024-02-05 18:24:21 -06:00
Jonathan Kelley
26378631e0
hide non-public type 2024-02-04 23:20:20 -08:00
Evan Almloff
a789d6a64e make eval copy 2024-02-02 14:47:59 -06:00
Evan Almloff
b3ed337b6b fix SLEDGEHAMMER_JS import path in desktop 2024-02-01 10:55:10 -06:00
Evan Almloff
2371c9eed3 minify js at runtime in liveview 2024-02-01 10:10:05 -06:00
Evan Almloff
e2e0a934fd remove minified js from build scripts 2024-02-01 10:07:03 -06:00
Jonathan Kelley
6818bbe10a
Make use_future take an impl FnMut + 'static, don't include router prelude when we don't need to 2024-01-31 16:33:53 -08:00
Jonathan Kelley
9922059969
Fix some commented out tests 2024-01-30 18:42:36 -08:00
Jonathan Kelley
a72c035de4
Fix cargo check on examples 2024-01-30 17:59:57 -08:00
Jonathan Kelley
0bd9692e45
Fix cargo test and a number of little cleanup bugs 2024-01-30 17:33:14 -08:00
Jonathan Kelley
eff1dd6c90
Merge branch 'master' into breaking 2024-01-30 16:20:19 -08:00
ealmloff
b7b5f5c009
Merge pull request #1868 from tirithen/linux-webview-new-gtk
fix: initialize linux wry webview
2024-01-25 17:29:26 -06:00
Evan Almloff
f98a9adad2 fix duplicate window menu in the default menubar 2024-01-25 17:23:06 -06:00
Fredrik Söderström
47d15fc8a1 fix: initialize linux wry webview
In the wry 0.32 examples the linux webviews are initialized in a
different way to render properly using
tao::platform::unix::WindowExtUnix. Tested with Gnome 45.3 and Wayland.
2024-01-25 21:28:39 +01:00
Jonathan Kelley
c0522bc152
cargo check all 2024-01-23 16:58:29 -08:00
Ege Gungordu
8887d674ed add is_composing check to desktop headless tests 2024-01-23 18:33:28 +03:00
Jonathan Kelley
5167cad689
Remove logging in protocol 2024-01-21 14:58:27 -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
85c7c22619
Make router work on web 2024-01-19 16:36:40 -08:00
Jonathan Kelley
83bce6ce97
Make cargo check --all --examples work! 2024-01-19 14:19:49 -08:00
Jonathan Kelley
391fe15db8
Fix context trait params 2024-01-18 19:49:20 -08: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
451a2b6cfc
Trim off 150 deps for examples 2024-01-18 12:32:01 -08:00
Jonathan Kelley
c59a2fb829
Fix desktop launch 2024-01-18 11:44:41 -08:00
Jonathan Kelley
127709f83f
Tiny aesthetic tweaks 2024-01-18 10:59:43 -08:00
Evan Almloff
a0f1b1fc3e make the router and navigator Copy 2024-01-18 12:02:38 -06: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
a323962a22 fix the fullstack platform with the new launch API 2024-01-18 10:19:39 -06:00
Jonathan Kelley
2ed763e660
Use lockless in editqueue 2024-01-18 04:19:17 -08:00
Jonathan Kelley
94b17cc8ca
Fix non tokio builds for desktop 2024-01-18 04:07:28 -08:00
Jonathan Kelley
0a612657e6
Provide context on desktop again 2024-01-17 19:53:34 -08:00
Evan Almloff
25ad3da659 remove some generics from LaunchBuilder 2024-01-17 20:15:16 -06:00
Evan Almloff
499e81fa82 fix fullstack send bound 2024-01-17 15:46:29 -06:00
Evan Almloff
dab87c0144 try not double boxing 2024-01-17 15:07:45 -06:00
Jonathan Kelley
3008870818
Cleanup runtime code 2024-01-16 17:38:39 -08:00
Jonathan Kelley
c94af9538b
Remove phantom markers and just default to Rc<dyn Fn(props) -> Element> where it makes sense 2024-01-16 15:07:22 -08:00
Evan Almloff
e65c5f0eb3 depreciate the render macro 2024-01-16 13:18:46 -06:00
Evan Almloff
7e4d2debe0 implement launch builder for the desktop and web platforms 2024-01-16 08:42:16 -06:00
Jonathan Kelley
14651a3573
Change context api to panic with nice error message 2024-01-15 18:02:58 -08:00
Evan Almloff
6560b88db7 Merge branch 'breaking' of https://github.com/Demonthos/dioxus into breaking 2024-01-15 19:14:26 -06:00
Evan Almloff
af1749d7be re export renderers in dioxus 2024-01-15 19:14:11 -06: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
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
Evan Almloff
d17a04931b Merge branch 'master' into breaking 2024-01-15 12:01:09 -06:00
Evan Almloff
cfebb6c900 remove async-channel now that context and eval is global 2024-01-15 11:46:00 -06:00
Evan Almloff
9133c0a305 fix dioxus desktop build 2024-01-15 09:19:52 -06:00
Evan Almloff
36e9eb1160 partially restore spreading attributes 2024-01-14 15:21:19 -06:00
Jonathan Kelley
2470a46511
remove dbg 2024-01-13 21:23:52 -08:00
Jonathan Kelley
9881a94e67
Remove cx in more places 2024-01-13 21:18:36 -08: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
Evan Almloff
fe1b35d610 fix mount event 2024-01-12 17:47:27 -06:00
Jonathan Kelley
759274143c
Merge branch 'master' into jk/breaking-merged 2024-01-11 17:38:31 -08:00
Jonathan Kelley
8beec2f41f
fix rendering issue 2024-01-11 17:15:01 -08:00
Jonathan Kelley
8c94f0bc4a
get compiling 2024-01-11 16:51:18 -08:00
Jonathan Kelley
2ae3241cc0
Merge branch 'master' into jk/breaking-merged 2024-01-11 16:04:36 -08:00
Jonathan Kelley
075caedf75
Different approach to make clippy happy across platforms 2024-01-11 15:15:45 -08:00
Jonathan Kelley
ac64f40842
Different approach to cfg 2024-01-11 15:14:45 -08:00