Commit Graph
101 Commits
Author SHA1 Message Date
Evan Almloff a428c61457 fix the liveview launch function 2024-03-13 13:42:22 -05:00
Jonathan Kelley 60616d0ba7 fix liveview 2024-03-06 17:26:52 -08:00
Jonathan Kelley 403e8e2f49 Clean up file uploads in desktop/liveview, remove minify 2024-03-05 13:00:27 -08:00
Jonathan Kelley 22266cc560 Switch to bun, clean up web implementation 2024-03-04 15:23:48 -08:00
Evan Almloff 271b53e866 Update the liveview renderer to the new sledgehammer version 2024-02-27 11:46:40 -06:00
Evan Almloff 93ee53454f bump the sledgehammer bindgen version 2024-02-27 10:35:16 -06:00
Evan Almloff e745212157 bump server functions 2024-02-16 12:17:01 -06:00
Jonathan Kelley 214a907adc Upgrade to axum 0.7, drop 3rd party adapters 2024-02-15 18:05:30 -08:00
Jonathan Kelley cbadea022a Eval should never return an error
Only awaiting eval should error.
Eval should always be available, even if using its methods returns errors.
2024-02-14 15:13:15 -08:00
Evan Almloff b4d17abfc1 document all features 2024-02-09 12:15:59 -06:00
Jonathan Kelley 4f8868d43d Merge pull request #1791 from ealmloff/breaking
Remove scope, use_state, use_ref, bump allocator and make everything 'static
2024-02-05 14:19:47 -08:00
Andrew Voynov c51e594fe3 docs(liveview): fixed adapter comments
Fixed some typos; added some word capitalization, periods, and ``.
2024-02-03 22:23:38 +03:00
Evan Almloff a789d6a64e make eval copy 2024-02-02 14:47:59 -06:00
Evan Almloff 2371c9eed3 minify js at runtime in liveview 2024-02-01 10:10:05 -06:00
Evan Almloff e2e0a934fd remove minified js from build scripts 2024-02-01 10:07:03 -06:00
Jonathan Kelley 0bd9692e45 Fix cargo test and a number of little cleanup bugs 2024-01-30 17:33:14 -08:00
Jonathan Kelley 7b0dcb3206 Add flush_sync and pre_render methods to core 2024-01-28 01:30:33 -08:00
Evan Almloff 636aeb4b90 integrate liveview with the launch builder 2024-01-22 11:56:34 -06:00
Evan Almloff d17a04931b Merge branch 'master' into breaking 2024-01-15 12:01:09 -06:00
Evan Almloff cfebb6c900 remove async-channel now that context and eval is global 2024-01-15 11:46:00 -06:00
Evan Almloff 9a38331826 restore liveview renderer 2024-01-15 11:28:27 -06:00
Jonathan Kelley 9881a94e67 Remove cx in more places 2024-01-13 21:18:36 -08:00
Jonathan Kelley fae0b08e61 Fix the router and stub out a number of crates to get compiling 2024-01-13 20:51:37 -08:00
Evan Almloff fe1b35d610 fix mount event 2024-01-12 17:47:27 -06: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 a2f44be2a2 Merge branch 'master' into binary-protocal 2024-01-04 10:17:10 -08:00
Georges KABBOUCHI 3733fbf47d feat(liveview): add rocket adapter (#1761) 2023-12-30 13:49:32 -06:00
ealmloff 5bb06b9719 Merge branch 'master' into events-2 2023-10-30 15:37:29 -05:00
Evan Almloff 9abc390d04 bench 2023-10-20 13:21:27 -05:00
Evan Almloff 33f0f0c172 fix clippy 2023-10-20 09:38:10 -05:00
Evan Almloff 1d664c616e restore desktop/liveview minification 2023-10-20 09:18:16 -05:00
Evan Almloff 2404bfeeb3 fix liveview element 2023-10-20 09:06:19 -05:00
Evan Almloff 378cbfabd9 fix desktop mounted event 2023-10-20 08:45:04 -05:00
Evan Almloff 007aacc247 remove liveview logging 2023-10-19 16:41:47 -05:00
Evan Almloff c9612a085e fix liveview mounted event 2023-10-19 16:40:08 -05:00
Evan Almloff 1a4741ce04 fix liveview events 2023-10-12 10:21:29 -05:00
Leonard 2d1234c3d1 Include README and Dioxus logo in package docs (#1536)
* Include README in docs.rs and add Dioxus logo

* Update README.md
2023-10-10 10:52:48 -05:00
Evan Almloff f20b740abe switch liveview to sledgehammer 2023-10-09 14:28:12 -05:00
ealmloff 072ca3529b Merge branch 'DioxusLabs:master' into events-2 2023-10-02 19:48:52 -05:00
Seungwoo Kang 31780b3ede liveview: Add `interpreter_glue_relative_uri (#1481)
* liveview: Add `interpreter_glue_relative_uri`

By utilizing `window.location.host` in the client-side JavaScript, we can easily derive the WebSocket URI from a relative path URI. This approach obviates the need for host address retrieval on the server side, unlike the method of serving glue code in liveview using `interpreter_glue`.

* liveview: Merge `.._relative_url` functionality

- Merged `.._relative_url` to current API `interpreter_glue`.
- Edit axum example to work with new feature.

* liveview: Fix clippy warning
2023-09-26 16:35:17 -05:00
Evan Almloff 219c068283 Merge branch 'master' into events-2 2023-09-17 20:01:21 -05:00
Evan Almloff c55c17cb81 switch to tracing for logging 2023-09-06 17:47:33 -05:00
Evan Almloff f7451c02e8 port liveview events 2023-08-31 16:34:04 -05:00
Evan Almloff 62556b2c34 fix desktop and liveview compilation 2023-08-28 12:43:21 -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
Evan Almloff a96ccdc6f3 fix clippy 2023-07-18 13:16:17 -07:00
Evan Almloff 8188011fe3 fix adapters 2023-07-18 13:03:34 -07:00
Evan Almloff ee28c89f5e Change to a stream of bytes for liveview to make using sledgehammer later non-breaking 2023-07-18 12:53:38 -07:00
Miles Murgaw 0fec47db72 Fix liveview interpreter JS (#1073)
* fix: liveview interpreter js

* fix: rustfmt
2023-06-04 21:34:43 -05:00