Commit Graph
153 Commits
Author SHA1 Message Date
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 4abf996b86 fix clippy hinting around trait 2023-07-06 10:57:52 -07:00
Jonathan Kelley d56fabfe9a Merge branch 'master' into feat/window_close_behaviour 2023-07-06 10:50:27 -07:00
Jonathan Kelley b5ccb56038 Fix clippy 2023-07-05 15:33:25 -07:00
Jonathan Kelley ea3b199eb2 Android build working too 2023-07-05 14:35:08 -07:00
Jonathan Kelley 5506c568c0 move to newer wry 2023-07-05 13:44:24 -07:00
Jonathan Kelley 2ad85c9b28 Add a custom index.html for the viewport stuff 2023-07-05 12:06:24 -07:00
Benedikt Terhechte 6a705b6a0e add functionality 2023-07-04 14:47:45 +02:00
Jonathan Kelley 4f22fe3ca8 Stub out files and RFD on ios 2023-06-30 13:59:48 -07:00
Jonathan Kelley 6512c153dd Fix merge errors 2023-06-30 12:48:25 -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
Evan Almloff e1f02f8135 Merge branch 'upstream' into query-system 2023-04-26 18:00:39 -05:00
Evan Almloff d749fff11b fix double diologs on desktop renderer 2023-04-25 14:29:35 -05:00
Evan Almloff c1e2592299 implement file events on desktop 2023-04-25 09:26:56 -05:00
Evan Almloff 223c7efce2 Merge branch 'upstream' into query-system 2023-04-18 10:33:40 -05:00
ealmloff 894246a04a Merge branch 'master' into return-context 2023-04-18 08:53:01 -05:00
Andrew Collins d6b9d8f5b6 remove rc around webview and add type for desktopcontext 2023-04-11 16:45:00 -04:00
Evan Almloff 6653d48614 fix clippy lint in desktop 2023-04-11 11:34:33 -05:00
Andrew Collins 64575eaee2 forgot one 2023-04-11 11:06:16 -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
Andrew Collins 073c4140d9 added web context back and updated wry to latest 2023-04-05 22:09:17 -04:00
Evan Almloff a551c0fcb8 add examples for onmounted 2023-03-24 11:32:42 -05: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
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 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
= 042b67b61b factor out a hot reloading connect function 2023-01-11 16:43:41 -06:00
Evan Almloff 1073574896 implement hot reloading for desktop 2023-01-11 13:40:02 -06:00
Evan Almloff 2772b86629 create with event handler 2023-01-10 21:35:11 -06:00
Jonathan Kelley 22e71a71bd feat: return window 2022-12-31 12:19:21 -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 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
Jonathan Kelley ff697d41e3 wip: move desktop to main thread and use tokio main 2022-12-29 17:11:29 -05:00
Lixou bfdd7945aa Fix copy paste error in docs (#685) 2022-12-27 13:04:23 -06:00
Evan Almloff e5a5850354 merge master 2022-12-20 20:48:28 -06:00
Evan Almloff 493ee1cb3f Merge branch 'upstream' into fix-hot-reloading 2022-12-19 21:17:22 -06:00
Jon Kelley 5ac9b595ea Revert "fix: liveview interpreter using new templates" 2022-12-16 14:20:05 -08:00
= 14dd568987 Merge branch 'upstream-master' into fix-hot-reloading 2022-12-16 10:07:11 -06:00
= 0d9c350d5e implement for web and desktop 2022-12-15 21:16:37 -06:00
Jonathan Kelley 06e8e096bb feat: more fixes to liveview 2022-12-15 14:25:23 -08:00
Jonathan Kelley e256fe1079 wip: add html event type 2022-12-14 19:07:33 -08:00