Commit Graph
96 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 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
Jonathan Kelley ff697d41e3 wip: move desktop to main thread and use tokio main 2022-12-29 17:11:29 -05:00
Evan Almloff 555b192436 Merge branch 'upstream' into fix-hot-reloading 2022-12-23 18:06:47 -06:00
Stuart Woodbury fe9c482afb fix(clippy) 2022-12-23 11:40:51 -05:00
Jon Kelley 8802747214 Merge branch 'master' into feat/resize-window 2022-12-23 11:11:11 -05:00
Stuart Woodbury f99991b23b feat(DesktopContext): expose set_inner_size 2022-12-23 09:52:12 -05: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
Evan Almloff bf47f64852 Merge branch 'upstream' into return-from-js 2022-12-08 11:25:15 -06:00
Evan Almloff e863ef29b8 allow returning values from use_eval 2022-12-08 10:44:56 -06:00
Jonathan Kelley 4eefc3f854 chore: rename all &cx to cx, make clipppy happy 2022-12-07 13:11:40 -08:00
Jonathan Kelley e8133e9449 fix: ios buillds 2022-12-07 12:50:43 -08:00
Jonathan Kelley 1b14b309e9 chore: clean up desktop 2022-12-06 16:37:28 -08:00
Jonathan Kelley b182a6ee75 chore: clean up interpreter and bindings 2022-12-05 16:47:04 -08:00
Jonathan Kelley 18d6b1ad6f feat: get web working properly 2022-11-30 17:21:10 -05:00
Jonathan Kelley 112c954e00 Merge branch 'master' into jk/templates-v3 2022-11-22 16:11:12 -08:00
David Craven 1e99e35572 Implement push view for ios. (#612) 2022-11-22 12:35:40 -08:00
Jonathan Kelley c1c5821dcf Merge branch 'master' into jk/templates-v3 2022-11-16 22:12:16 -08:00
Jonathan Kelley e8ae830cf2 feat: get desktop working with just creation 2022-11-15 18:32:48 -08:00
David Craven 7e3a6fb4a4 Some fixes for wayland and ios. (#602) 2022-10-23 19:40:41 -07:00