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
db56962eea
basic example working with binary protocol on desktop
2023-10-17 14:31:58 -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
marc2332
7f8c963cd9
fix: Update doc links from v3 to v4
2023-09-16 19:03:27 +02: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
Jonathan Kelley
39e89c1fac
Bump crate versions, fix any publish errors
2023-07-31 18:49:54 -07:00
Jonathan Kelley
8a875acdd2
Adjust versions, add authors, move server macro to top level
2023-07-31 17:59:36 -07:00
Miles Murgaw
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
91d4207fa7
Merge branch 'master' into feature/use-shared-state-better-diagnostics
2023-07-20 10:51:10 -07:00
Andrea Frigido
dccad58f1d
Update license field following SPDX 2.1 license expression standard
2023-07-20 18:00:07 +01: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
niedzwiedzw
f159779af4
make thiserror a workspace dependency everywhere else
2023-07-11 22:54:24 +02:00
Marc Espín
32d4472bfd
fix: Remove duplicated doc links and improved some descriptions ( #1167 )
2023-07-08 11:04:27 -05:00
xinglixing
fb227943ae
Fix: bump liveview salvo version to 0.44.1. ( #1224 ) ( #1130 )
2023-06-28 14:10:18 -05:00
Evan Almloff
5f873511c5
use workspace dependancies
2023-06-19 14:29:11 -05:00
Jonathan Kelley
f63220019d
bump liveview version
2023-06-08 15:08:40 +00:00
Miles Murgaw
0fec47db72
Fix liveview interpreter JS ( #1073 )
...
* fix: liveview interpreter js
* fix: rustfmt
2023-06-04 21:34:43 -05:00
Azriel Hoh
52742b30ae
Update pretty_env_logger
to address security advisory.
2023-05-29 12:20:33 +12:00
Evan Almloff
553205dc74
Merge branch 'master' into fix-links-liveview
2023-05-24 07:38:04 -05:00
Evan Almloff
e1f02f8135
Merge branch 'upstream' into query-system
2023-04-26 18:00:39 -05:00
Evan Almloff
7e292cc2fa
Merge branch 'upstream' into fix-links-liveview
2023-04-26 17:56:13 -05:00
Jonathan Kelley
22cfff647c
Merge branch 'master' into implement-file-engine
2023-04-26 15:32:34 -07:00
Evan Almloff
254947a194
fix liveview tokio features
2023-04-25 15:08:53 -05:00
Evan Almloff
9cfb655478
implement the file engine for liveview
2023-04-25 14:26:12 -05:00
Evan Almloff
28ef3f8968
fix liveview links
2023-04-23 12:07:38 -05:00
Evan Almloff
8243dfe00d
implement a query engine for liveview
2023-03-23 16:52:29 -05:00
Jonathan Kelley
9ae5f47d19
Allow liveview to spawn pre-injected virtualdoms
2023-03-09 17:01:41 -08:00
David Pedersen
bf3f7ec490
Fix typos in examples
2023-02-24 22:41:16 +01:00
Evan Almloff
a51f67c2ec
add version to docs links in readmes
2023-02-18 18:38:30 -06:00
Jon Kelley
4f0f2484fd
Merge pull request #774 from Demonthos/update-doc-links
...
Update guide doc links
2023-02-17 11:53:15 -08:00
Evan Almloff
773a87d701
fix conditional compilation for hot reloading
2023-02-07 08:57:29 -06:00
Breno Rocha
8d470ceb78
chore: change tokio
to support shuttle-service
2023-01-28 20:20:22 -03:00
Evan Almloff
b6c7d44a27
fix clippy
2023-01-27 20:35:46 -06:00
Evan Almloff
3f3db39c28
update doc links
2023-01-15 15:18:12 -06:00
Evan Almloff
0c6750d177
fix dependancies
2023-01-13 17:50:32 -06:00
Evan Almloff
8a7cee529c
Merge branch 'upstream' into desktop-hot-reload
2023-01-13 17:43:32 -06:00
Evan Almloff
b3d119b815
Provide option to do full rebuilds when nessisary
2023-01-13 16:13:07 -06:00
d4h0
c4485071a7
init
2023-01-13 17:25:18 +01:00
Evan Almloff
dc8fcf254b
Merge branch 'upstream' into desktop-hot-reload
2023-01-12 10:59:01 -06:00
=
042b67b61b
factor out a hot reloading connect function
2023-01-11 16:43:41 -06:00
Evan Almloff
e5e1abbdac
implement hot reloading for liveview
2023-01-11 14:41:29 -06:00
Jon Kelley
e5b39bb61f
Merge pull request #744 from Demonthos/update-readmes
...
Update READMEs and tags for the 0.3 release
2023-01-10 18:21:55 -08:00
Jonathan Kelley
fd875cd9db
chore: dont log on pong
2023-01-10 16:54:40 -08:00
Evan Almloff
6a8fefdfd8
keep liveview websocket alive
2023-01-10 14:41:26 -06:00
Evan Almloff
52d5c8d4e7
update READMEs and tags for the 0.3 release
2023-01-10 10:16:11 -06:00
Jonathan Kelley
7f01f61138
feat: publish 0.3 versions of many crates
2023-01-04 14:31:07 -05:00
Jonathan Kelley
4fdbce9a70
chore: clean up readmes
2022-12-29 16:17:03 -05:00
Jonathan Kelley
3c1786b7f1
chore: use ws instead of global
2022-12-22 02:56:33 -05:00
Jonathan Kelley
19d0a9af28
chore: send message when websocket is open
2022-12-22 02:40:02 -05:00
Jonathan Kelley
b76c520108
fix: salvo and remove actix from list of webframeworks
2022-12-19 15:29:20 -08:00
Jonathan Kelley
aa71c111cd
feat: introduce simpler adapters for liveview
2022-12-19 13:11:49 -08:00
Jon Kelley
5ac9b595ea
Revert "fix: liveview interpreter using new templates"
2022-12-16 14:20:05 -08:00
Jonathan Kelley
eee191b630
fmt
2022-12-15 20:28:04 -08:00
Jonathan Kelley
b95069619f
feat: get liveview working across the boar
2022-12-15 19:57:48 -08:00
Jonathan Kelley
7790d2c065
chore: simplify liveview abstraction
2022-12-15 18:46:59 -08: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
Jonathan Kelley
4eefc3f854
chore: rename all &cx to cx, make clipppy happy
2022-12-07 13:11:40 -08:00
Jonathan Kelley
3b166c9edd
wip: clean up some things
2022-11-30 23:54:30 -05:00
Demonthos
3b7b503333
Refactor Mutations and simplify Templates ( #578 )
...
* update mutations to be path based rather than renderer integrated
2022-10-18 14:42:45 -07:00
Demonthos
047ed1e553
Subtree memorization / reactive templates ( #488 )
...
This commit adds subtree memoization to Dioxus.
Subtree memoization is basically a compile-time step that drastically
reduces the amount of work the diffing engine needs to do at runtime by
extracting non-changing nodes out into a static "template." Templates
are then understood by the various renderers in the ecosystem as a
faster way of rendering the same items.
For example, in the web, templates are simply a set of DOM Nodes created
once and then cloned later. This is the same pattern frameworks like Lithtml
and SolidJS use to achieve near-perfect performance.
Subtree memoization adds an additional level of complexity to Dioxus. The RSX
macro needs to be much smarter to identify changing/nonchanging nodes and
generate a mapping between the Template and its runtime counterparts.
This commit represents a working starter point for this work, adding support
for templates for the web, desktop, liveview, ssr, and native-core renderers.
In the future we will try to shrink code generation, generally improve
performance, and simplify our implementation.
2022-09-30 12:03:06 -07:00
Chrislearn Young
e4466fee0a
Add liveview Salvo integration ( #538 )
2022-09-13 14:24:30 -07:00
Jon Kelley
d9546d9504
Renderers are now packages, not features. ( #387 )
...
* feat: use synchronous router design
* feat: function to get router out of dom
* chore: restructure workspace to use renderers as packages, not features
2022-07-09 15:15:20 -04:00
Reinis Mazeiks
f3fcec2bdf
Merge branch 'master' of https://github.com/DioxusLabs/dioxus into rusty-events
...
Conflicts:
packages/html/src/events.rs
packages/tui/src/hooks.rs
2022-06-28 21:09:20 +03:00
Jon Kelley
83288e274f
Merge pull request #452 from Demonthos/fix_nonbubbling_web_events
...
Fix nonbubbling web events
2022-06-24 17:05:32 -04:00
Jonathan Kelley
541d67dcfa
fix: only enable liveview drivers if feature is present
2022-06-24 14:06:04 -04:00
Evan Almloff
2d45e1dc8d
add bubbling data to events after merge
2022-06-22 14:24:03 -05:00
Jonathan Kelley
8be66bd34d
fix: apply some clippy lints and rename the liveview methods to not intersect
2022-06-20 02:24:39 -04:00
Reinis Mazeiks
45980f9a1e
Update examples to avoid deprecated API
2022-05-12 15:00:43 +03:00
Reinis Mazeiks
f81ecf5974
Update liveview interpreter to match desktop
2022-05-04 20:05:21 +03:00
Jonathan Kelley
05ab8d2c78
fix: update liveview docs
2022-05-03 00:00:16 -04:00
Jonathan Kelley
3febd42588
Release dioxus-core v0.2.1, dioxus-core-macro v0.2.1, dioxus-html v0.2.1, dioxus-interpreter-js v0.2.1, dioxus-desktop v0.2.3, dioxus-hooks v0.2.1, dioxus-liveview v0.1.0, dioxus-native-core v0.2.0, dioxus-native-core-macro v0.2.0, dioxus-router v0.2.3, dioxus-ssr v0.2.1, dioxus-tui v0.2.2, dioxus-web v0.2.1, fermi v0.2.1, dioxus v0.2.4
2022-05-02 23:57:20 -04:00
Jonathan Kelley
5503aeb7a6
fix: specify dioxus version in liveview
2022-05-02 23:45:59 -04:00
Ian
3b45edacc0
features don't play nice with vscode development
2022-04-26 09:54:12 -04:00
Ian
4b3d200c0d
fixed cargo check issue
2022-04-26 09:50:19 -04:00
Ian
f332ffc5ad
support starting liveview with props
2022-04-24 00:37:46 -04:00
Ian
dfaa6c186b
Fixed example squiglies.
2022-04-23 22:13:43 -04:00
WIGGLES
d6a4a59035
Merge branch 'DioxusLabs:master' into master
2022-04-20 16:50:39 -04:00
Jonathan Kelley
5ff87f6375
fix: liveview handler should filter only for events
2022-04-20 00:52:10 -04:00
Jonathan Kelley
a1c644d80b
feat: allow header injection for liveview
2022-04-19 23:48:17 -04:00
Ian
a632d9b12b
implemented liveview axum adapter
2022-04-19 22:51:56 -04:00
Ian
39b77cd663
fixed warp example
2022-04-17 11:59:43 -04:00
Jonathan Kelley
e44cc41114
fix: cargo fmt
2022-03-15 01:35:59 -04:00
Jonathan Kelley
7bdb8a4539
fix: fmt by including adapters for liveview
2022-03-15 01:28:50 -04:00
Jonathan Kelley
3b4a041c31
fix: liveview failing to pass
2022-03-15 01:14:26 -04:00
Jonathan Kelley
71184b51a0
feat: liveview working with warp
2022-03-15 01:02:44 -04:00
Jonathan Kelley
e0900ca256
wip: add warp liveview proof of concept
2022-03-12 09:41:10 -05:00
Dave Rolsky
9e4ec43b1e
Fix various typos and grammar nits
...
I also removed all trailing whitespace from lines since I have Emacs
configured to highlight this.
2022-01-21 21:43:43 -06:00
Jonathan Kelley
14961023f9
wip: polish some more things
2021-12-29 21:28:28 -05:00