Commit Graph
221 Commits
Author SHA1 Message Date
Christopher Serr 3da821d184 Provide HotkeyState on Global Shortcut Events (#3822)
* Only react to hotkeys that are pressed

The global shortcuts are otherwise also triggering when the hotkey is
being released. This affects at least Windows.

* Provide `HotkeyState` on Global Shortcut Events

Instead of ignoring the events where the shortcut is released, the state
is now provided as an argument to the event handler.
2025-04-09 11:04:06 -07:00
sertschgiandJonathan Kelley 25a64d97c0 Fixed the multiple window closing issue, where the two multiwindow examples weren't working. (#3499)
* fixed window when multiple windows not closing

* fixed window when multiple windows not closing

* fixed accidental includes

* polished

* fix last window closing hiding app and rc hardcount

* find the suspect strong count holders and fix them

* Use the proper type alias

* fmt

---------

Co-authored-by: Jonathan Kelley <jkelleyrtp@gmail.com>
2025-01-13 12:10:22 -08:00
Klemen 292f757d5d SystemTray (#3123)
* Added tray icon
2024-10-31 12:46:17 -07:00
Jonathan Kelley 7ec3453ca3 Fix bundling/path errors, sidecar support, iOS/Android simulator support, asset hotreload fixes, serverfn hotrelad, native tailwind support (#2779)
* wip: fix manganis import path
* upgrade tauri bundler, convert todo!() to unimplemented!()
* feat: mobile hotreloading + ios asset configuration
* remove oid demo and its associated env vars
* nuke all the things that cause cache thrashing
* swap to Asset type
* add some more logs
* display impl for attrvalue
* dont panic on collect failure
* cut down web deps to 150
* clean up deps in a lot of places, simplify build scripts
* clean up asset resolution and cli-dev profile
* wire up absolute paths for manganis asset in a particular mode
* move document related things around to shorten compile times
* move most things to `document::Item` and then decompose the cli-config
* switch link to stylesheet for clarity in examples
* move manganis workspace example to examples folder
* decompose manganis-cli-support
* dont need mobile demo anymore
* remove gloo dialogs
* html doesnt need document
* rename hotreload to devtools
* really clean up the html crate
* fix weird rsx spacing
* clean up desktop to use callback
* clean up document a bit
* re-wire up devsocket
* fix utf css
* yeeeet that js out of here
* synthetic web system works
* web crate almost done being cleaned up
* desktop mostly cleaned up too
* clean up cli a bit
* more cli cleanup
* cli builds again
* clean up cli, inline structs, cut down number of unique types where possible
* hotreload works again for desktop and this time, mobile too
* cfg out tungstenite
* devserver err
* more refactor to cli builder
* switch to unbounded_send
* new structure is much cleaner
* add http serve subcommand
* bundled hotreload
* kick stylsheets
* clean up a bit more, split up eventloop
* amazingly serve seems done
* change from pub to pub(crate) in cli
* remove tools
* bit more polish to cli
* fix issue with join
* gracefully handle fullstack without a server
* fullstack mobile demo
* fix launch function, move projects into example-projects folder
* hoist examples
* add "run" command
* clean up launch
* remove old manual websocket receiver
* doctor command
* allow desktop to scroll
* cut apart router crate
* dont put launch in prelude
* use dioxus::launch where possible
* rename rsx, cut out hotreload tests
* remove liveview project
* bump native
* fix compile for renderers
* move sync event response out of interpreter
* move render in serve
* rollback settings change
* cli compiles, huzzah!
* change uris for asset
* fix asset
* new tui screen
* new cargo-like tui works
* very very verty close
* it works! very small bug with incorrect grapheme calc
* Clean up devserver a bit
* status sytem
* tidy up debug filters
* clean up logging situation
* Fix a number of bugs with log printing
* new printing system is more reliable
* wire up more stuff
* things working but fullstack is having issues
* fullstack works again!
* hotreloading bundled assets works again
* bundled hotreload and beginnings of macos bundling
* Hotreload desktop
* combined server builds
* add build handle
* fix fullstack assets
* make open async, add some hooks for ios
* migrate filemap to runner
* wip global crate system
* fixup bundles + organize asset
* fix asset location bug
* all the bundled reloading!
* open ios simulator!
* full hotreload support for mobile + serverfn
* basic cleanups
* clean up dx
* Move filemap
* fix cutting of newlines
* assets workibg, some android
* hoist wry/tao
* use sync locks and headers to fix issues with android
* desktop -> mac/win/linux with alias
* better logging
* feat: workspace (entire computer!) hotreload
* should rebuild toggle, ios simulator bootup
* proper mobile support in launch
* more robust handling of assets
* fix cargo
* bring back some of tauri bundle
* make warnings go away, clippy happy on cli
* some final clippy cleanups
* fmt
* move manganis to its own folder
* upgrade bundle to stable
* drastically slim down manganis, prepping for merge
* typos, failing test, docsrs config
* remove static gen test
* nix static gen test
* we use --platform web instead of --platform fullstack now
* only bind dev urls in desktop/mobile
* install gtk
* nix static gen
* split build dir by app name
2024-10-25 17:23:45 -07:00
Jonathan Kelley 0cbcef735f Pre-release 0.6.0-alpha.0 (#2755)
* CI: add docsrs to ci

* add env vars

* no need for tokio things

* whoops, wrong rust nightly

* add swc

* bump crate versions to 0.6.0-alpha.0

* hoist up warnings and shuffle cargo.toml

* update cargos and disable warnings from ci

* attempt fix of aws

* attempt disabling aws_lc_sys globally

* pull in lc-sys

* add fips feature to fix docs

* turn on features for aws-lc-sys on cargo-doc-all

* pass along more args

* fix cfg docs

* fix: flakey gen box test

* fix: doc_cfg in static gen

* dont include readme

* fix error on static gen

* remove random line

* temporarily disable warnings

* simplify axum desktop so it doesnt count as a lib

* fix binstall link

* bump locks

* lock fixes

* revert axum desktop

* dont publish some crates
2024-07-31 22:37:39 -05: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
Evan Almloff 72ef58b95e Create use_muda_event_handler hook (#2367)
* create use_muda_event_handler hook

* fix use_muda_event_handler re-export
2024-04-25 13:32:34 -04:00
Jonathan Kelley 4bb807a3ce Reduce churn in window behavior 2024-03-18 22:38:33 -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 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
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 8c94f0bc4a get compiling 2024-01-11 16:51:18 -08:00
Evan Almloff e004c1722f set the required environment variable for manganis support 2024-01-10 11:19:51 -06:00
Jonathan Kelley 94949932df Tweak menubar export 2024-01-05 23:52:37 -08:00
Jonathan Kelley 0ac8955bab Fix android/ios muda cfg 2024-01-05 23:37:10 -08:00
Jonathan Kelley 20135368b8 Put asset collection behind a feature flag 2024-01-05 23:14:03 -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 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 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 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
Evan Almloff 0388a5c1f4 fix formatting 2024-01-04 19:21:06 -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 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 601627d46e Merge branch 'master' into master 2024-01-04 09:57:26 -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
Evan Almloff 7649ad84a1 allow asset handlers to read the whole request 2023-12-17 17:14:49 -06:00
Will Crichton 1002bc955b Replace AssetHandlerId with slab and usize 2023-12-16 21:44:39 -08:00
Will Crichton d5ec22a26f Add custom asynchronous asset handlers 2023-12-15 11:16:25 -08: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 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
zhangzhonglaiandealmloff 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
ealmloff 856fb1874e Merge branch 'master' into binary-protocal 2023-10-31 13:40:31 -05:00