Commit Graph
89 Commits
Author SHA1 Message Date
Evan Almloff aa0ea444cf Fix ordering issues when with_menu(None) is called before setting the window builder (#2903) 2024-08-29 15:51:31 -05:00
Evan Almloff cab573eefd Synchronous prevent default (#2792)
* add prevent default methods to the event

* sync prevent default almost working

* sync prevent default working

* Move event handling into the runtime

* update core tests

* restore desktop file dialog

* implement prevent default on web

* add a hint about the new prevent default method

* fix web prevent default

* Fix CTRL+click on links

* fix values memorize in place test

* Fix a few more tests

* Add a playwright test for sync prevent default

* Fix core doc tests

* create a deprecated VirtualDom::handle_event

* fix macos imports in desktop

* Fix onmounted event

* Fix liveview support

* switch to RefCell for metadata

* Remove println

* remove prevent default attribute

* remove web specific link behavior

* Fix liveview links

* more liveview fixes for link

* Fix merge conflicts

* Fix clippy

* use the new prevent default in the file upload example
2024-08-13 11:57:54 -07:00
Evan Almloff 1dcfc44c23 prevent the reload shortcut on windows (#2654) 2024-07-23 10:58:17 -07:00
Evan Almloff 176e67e5b7 switch to a Document trait and introduce Script/Head/Style/Meta components (#2635)
* switch to a Document trait and introduce Script/Head/Style/Meta components

* Fix desktop title

* Insert special elements into the head during the inital SSR render

* Make all head component attributes optional

* hydrate head elements

* improve the server streaming head warning

* Document fullstack head hydration approach

* deduplicate head elements by href

* move Link into head::Link

* document head components

* add meta and title examples

* Fix a few doc examples

* fix formatting

* Add title to playwright tests

* serde is optional on web, but it is enabled by hydrate

* remove leftover console log
2024-07-17 20:54:03 -05:00
Andrew Scott 69d7098d0e feat (desktop): upgrade from wry 37 to 41 (#2618) 2024-07-10 12:50:04 -07:00
Huddy Buddy 5e3bb4f549 add asynchronous custom protocol support (#2535)
Added asynchronous custom protocol handling
2024-06-18 15:53:39 -07:00
Evan Almloff 74352f2f61 Fix desktop effect race condition (#2313)
* don't poll desktop before the render has been applied

* fix desktop headless tests

* move edit queued code into the edit channel and add more comments
2024-04-26 12:52:33 -04: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
Evan AlmloffandJonathan Kelley 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 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 4b2e426958 clippy, and don't hash invisible files for ts generation 2024-03-05 22:38:38 -08:00
Jonathan Kelley 78d16536a7 wip: native file handles when dropping 🎉 2024-03-05 13:57:28 -08:00
Jonathan Kelley bdbae8ccb0 Update examples, add css 2024-02-14 12:33:07 -08:00
Jonathan Kelley 26378631e0 hide non-public type 2024-02-04 23:20:20 -08:00
Jonathan Kelley eff1dd6c90 Merge branch 'master' into breaking 2024-01-30 16:20:19 -08: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 0a612657e6 Provide context on desktop again 2024-01-17 19:53:34 -08:00
Jonathan Kelley 759274143c Merge branch 'master' into jk/breaking-merged 2024-01-11 17:38:31 -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 08c522d5b3 Fix muda segfault 2024-01-11 14:50:21 -08:00
Evan Almloff 194c9d43e3 fix merge 2024-01-08 14:51:35 -06:00
Evan Almloff 56798b3d1c Merge branch 'master' into add-file-data-drag-event 2024-01-08 14:16:09 -06:00
Jonathan Kelley 729bfa3be1 Fix eval provider 2024-01-06 11:34:26 -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 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 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 cbed09b95c Clean up shared context in desktop 2024-01-05 12:37:47 -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 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 2171263eda More cleanup work 2024-01-04 17:21:33 -08: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 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 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
Evan Almloff 7649ad84a1 allow asset handlers to read the whole request 2023-12-17 17:14:49 -06:00
Will Crichton 7bede0be59 Remove unused imports 2023-12-15 11:30:19 -08:00