Commit Graph
115 Commits
Author SHA1 Message Date
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
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
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 c9612a085e fix liveview mounted event 2023-10-19 16:40:08 -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 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 f20b740abe switch liveview to sledgehammer 2023-10-09 14:28:12 -05: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 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
Miles MurgawandEvan Almloff 6210c6fefe Convert use_eval to use send/recv system (#1080)
* progress: reworked

don't run this, it'll kill your web browser

* feat: use_eval but with comms

* revision: async recv & recv_sync

* revision: use_eval

* revision: standard eval interface

* revision: use serde_json::Value instead of JsValue

* revision: docs

* revision: error message

* create: desktop eval (wip)

* fix: desktop eval

* revision: wrap use_eval in Rc<RefCell<_>>

* fix: fmt, clippy

* fix: desktop tests

* revision: change to channel system

- fixes clippy errors
- fixes playwright tests

* fix: tests

* fix: eval example

* fix: fmt

* fix: tests, desktop stuff

* fix: tests

* feat: drop handler

* fix: tests

* fix: rustfmt

* revision: web promise/callback system

* fix: recv error

* revision: IntoFuture, functionation

* fix: ci

* revision: playwright web

* remove: unescessary code

* remove dioxus-html from public examples

* prototype-patch

* fix web eval

* fix: rustfmt

* fix: CI

* make use_eval more efficient

* implement eval for liveview as well

* fix playwright tests

* fix clippy

* more clippy fixes

* fix clippy

* fix stack overflow

* fix desktop mock

* fix clippy

---------

Co-authored-by: Evan Almloff <evanalmloff@gmail.com>
2023-07-21 17:36:25 -05:00
Jonathan Kelley 3658698064 put webview in rc 2023-06-30 14:39:38 -07:00
Jonathan Kelley 6512c153dd Fix merge errors 2023-06-30 12:48:25 -07:00
Jon Kelley a0b89de4ca Merge pull request #1057 from ndarilek/master
Add richer API for describing global shortcut accelerators.
2023-06-30 12:27:00 -07:00
Jon Kelley 014bdef744 Merge pull request #945 from ProfXwing/return-context
make new_window return desktop context instead of webview
2023-06-30 12:10:03 -07:00
Nolan Darilek c84e028bd6 Add richer API for describing global shortcut accelerators. 2023-06-30 08:10:48 -05:00
Andrew Collins d6b9d8f5b6 remove rc around webview and add type for desktopcontext 2023-04-11 16:45:00 -04:00
Andrew Collins 0e1f015b78 turn desktop context into Rc<DesktopContext> 2023-04-11 11:03:46 -04:00
Andrew Collins a5c46b0e5c new window returns desktop context 2023-04-08 11:23:48 -04:00
Evan Almloff fa9f0d0f6c Generalize Query system for use in use_eval and node querys 2023-03-23 15:19:00 -05:00
Evan Almloff 7636c046fa implement on mounted for desktop 2023-03-20 16:10:34 -05:00
Nolan Darilek 8657b47401 Add function to remove all global shortcuts. 2023-03-09 11:05:41 -06:00
Evan Almloff cf2a79c173 create global shortcut handler for dioxus desktop 2023-03-01 13:23:15 -06:00
Evan Almloff 773a87d701 fix conditional compilation for hot reloading 2023-02-07 08:57:29 -06:00
Evan Almloff b6c7d44a27 fix clippy 2023-01-27 20:35:46 -06:00
Jon Kelley 1b597f43d1 Merge pull request #754 from Demonthos/desktop-hot-reload
Implement hot reloading for Desktop, TUI, and Liveview
2023-01-23 09:48:54 -10:00
Evan Almloff 70590c6af0 pass clippy 2023-01-14 16:07:13 -06:00
Evan Almloff b3d119b815 Provide option to do full rebuilds when nessisary 2023-01-13 16:13:07 -06:00
Evan Almloff cd17f515d4 change to hook api 2023-01-12 18:48:23 -06:00
Evan Almloff 1073574896 implement hot reloading for desktop 2023-01-11 13:40:02 -06:00
Jonathan Kelley 22e71a71bd feat: return window 2022-12-31 12:19:21 -05:00
Jonathan Kelley d3ab397ad3 chore: add transparency and overlay 2022-12-30 22:30:04 -05:00
Jonathan Kelley 4955cfc940 fix: no type 2022-12-30 22:14:28 -05:00
Jonathan Kelley e3a8e44a69 feat: use dom to allow context injection 2022-12-30 22:10:06 -05:00
Jonathan Kelley 880aa737a6 feat: multiwindow support 2022-12-30 22:05:15 -05:00
Jonathan Kelley 819bd3fc24 chore: use broadcast instead of receiver 2022-12-30 02:56:10 -05:00
Jonathan Kelley 7f418bbfee fix: window zoom 2022-12-30 02:09:02 -05:00
Jonathan Kelley 531f7c6d3f chore: clean up msg in desktop even more 2022-12-30 01:52:54 -05:00
Jonathan Kelley 633bf1f834 aggressively clean up desktop with new inline poll 2022-12-30 01:08:25 -05:00
Jonathan Kelley 7bc8150da7 fix desktop to poll without budget 2022-12-29 20:39:22 -05:00
Jonathan Kelley bd720e2268 fix: use futuresunordered instead of bespoke waker system 2022-12-29 19:53:43 -05:00