Commit graph

476 commits

Author SHA1 Message Date
Evan Almloff
f20b740abe switch liveview to sledgehammer 2023-10-09 14:28:12 -05:00
Evan Almloff
eb15014b9d fix hydration mounted element 2023-10-03 16:42:42 -05:00
Evan Almloff
c137357094 fix hydration 2023-09-27 10:22:49 -05:00
Evan Almloff
d3eefe4a27 fix clippy 2023-09-19 09:16:58 -05:00
Evan Almloff
219c068283 Merge branch 'master' into events-2 2023-09-17 20:01:21 -05:00
Evan Almloff
847801908f Merge branch 'master' into add-file-data-drag-event 2023-09-17 18:56:59 -05:00
marc2332
7f8c963cd9
fix: Update doc links from v3 to v4 2023-09-16 19:03:27 +02:00
ealmloff
f449823d10
Merge branch 'master' into events-2 2023-09-12 09:33:54 -05:00
Evan Almloff
de0c34ec60 fix hydrate example 2023-09-12 09:07:57 -05:00
ealmloff
9ff5d24d42
Merge branch 'master' into tracing 2023-09-11 19:43:57 -05:00
Evan Almloff
6e74d08bf5 remove log from a few examples 2023-09-11 19:42:08 -05:00
Gijs de Jong
300cbf4fc6
Remove stray log (#1453) 2023-09-11 08:36:04 -05:00
Evan Almloff
3a02520ffa fix web onmount event 2023-09-08 10:32:48 -05:00
Evan Almloff
c55c17cb81 switch to tracing for logging 2023-09-06 17:47:33 -05:00
Stygmates
1b977fdce9
Add query segment example and documentation (#1417)
* fix a few new clippy lints

* Add query segment example

* Add trait documentation

* Change core package to root package

The core package contains the virtual dom implementation ([here](https://github.com/DioxusLabs/dioxus/tree/master/packages/core)). Root package might be a more clear way to refer to the main directory

---------

Co-authored-by: Evan Almloff <evanalmloff@gmail.com>
2023-09-02 10:24:30 -05:00
Evan Almloff
f812e52ccb Merge branch 'fix-new-clippy-lints' into events-2 2023-08-31 16:44:42 -05:00
Evan Almloff
364654e1fd fix clippy with events 2023-08-31 16:43:24 -05:00
Evan Almloff
177db238b9 add some inline hints 2023-08-28 17:55:23 -05:00
Evan Almloff
097eb2099c add extension to downcast web events 2023-08-28 17:16:56 -05:00
Evan Almloff
8ba1c05a93 fix desktop events 2023-08-28 16:37:19 -05:00
Evan Almloff
bd387d601c fix formatting 2023-08-28 15:49:46 -05:00
Evan Almloff
b54f7dd5d2 fix no default features on the web renderer 2023-08-25 21:28:44 -05:00
Evan Almloff
ca1a502714 use an event converter for bundle splitting 2023-08-25 21:03:03 -05:00
Evan Almloff
299b123446 trait based event system 2023-08-25 17:02:48 -05:00
Evan Almloff
3ac2346e46 fix a few new clippy lints 2023-08-25 07:54:04 -05:00
wooden-worm
f652474a6e
FileEngine: expose native file types on different platforms (#1258)
* Get native file

* Correct visibility
2023-08-17 08:03:56 -05:00
Brian Donovan
50230b6f71
build(web): fix default-features warning (#1296)
`cargo build` would print this warning:

```
warning: dioxus/packages/web/Cargo.toml: `default-features` is ignored for dioxus-html, since `default-features` was not specified for `workspace.dependencies.dioxus-html`, this could become a hard error in the future
```

Since it's being ignored anyway and that doesn't seem to be causing problems, I figured I'd remove it and get rid of the warning.
2023-08-04 12:51:17 -05:00
Jonathan Kelley
39e89c1fac
Bump crate versions, fix any publish errors 2023-07-31 18:49:54 -07:00
Evan Almloff
45d386810b create features for large web-sys events/types 2023-07-28 15:38:07 -07:00
Evan Almloff
2d51a1c4f2 make more of core private 2023-07-26 16:17:48 -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
Evan Almloff
14867931a4 fix clippy 2023-07-20 13:51:26 -07:00
Evan Almloff
67a2d31f9c Merge branch 'master' into prevent-default-form-web 2023-07-20 13:42:14 -07:00
Andrea Frigido
dccad58f1d Update license field following SPDX 2.1 license expression standard 2023-07-20 18:00:07 +01:00
ealmloff
8a3d1e47b3
Merge branch 'master' into add-file-data-drag-event 2023-07-19 18:12:57 -07:00
Jonathan Kelley
2871c8bb4d
Don't use boxed cell slice, use a refcell instead 2023-07-19 12:08:13 -07:00
Evan Almloff
fa97f5450f add nicer debug messaging in trace level for hydration 2023-07-14 16:16:13 -07:00
Jonathan Kelley
5ceb4cc11e
Merge branch 'master' into timeout-count 2023-07-12 13:41:36 -07:00
Evan Almloff
7577019946 Merge branch 'master' into add-file-data-drag-event 2023-07-11 17:53:09 -05:00
Marc Espín
32d4472bfd
fix: Remove duplicated doc links and improved some descriptions (#1167) 2023-07-08 11:04:27 -05:00
Jon Kelley
e3b4021d34
Merge pull request #898 from Demonthos/make-use-eval-web-Rc
Make web and desktop use_eval compatible
2023-06-30 12:15:22 -07:00
Jon Kelley
abccc7463f
Merge pull request #1010 from Demonthos/fix-onload-event
Fix the onload event
2023-06-30 12:14:35 -07:00
Evan Almloff
c39f55920c fix CI tests 2023-06-19 14:57:58 -05:00
Evan Almloff
5f873511c5 use workspace dependancies 2023-06-19 14:29:11 -05:00
Evan Almloff
04f066ddb7 fix clippy 2023-06-19 08:22:50 -05:00
ealmloff
cf9ed74303
Merge branch 'master' into fix-onload-event 2023-06-19 08:16:40 -05:00
Miles Murgaw
d09c92beda
Add initial_value attribute & fix static special attribute handling (#1063)
* feat & fix: initial_value attribute, special attribute handling

* revision: rename js file

* fix: rustfmt

* fix: clippy

* fix: desktop not finding common.js

* fix: desktop failing to render

Missed a single ``this.SetAttributeInner`` as it was now ``setAttributeInner``
Javascript didn't even throw any errors about this smh

* revision: no need for match statement
2023-06-04 11:29:34 -05:00
Jonathan Kelley
c97f43146d bump hooks and web crates 2023-05-18 13:42:15 +02:00
Jon Kelley
6bd3437e3a
Merge branch 'master' into server-fn 2023-05-18 13:18:41 +02:00
Jon Kelley
379ea09b12
Merge pull request #894 from Demonthos/query-system
Create onmounted Event
2023-05-18 13:17:15 +02:00
Evan Almloff
4a8542c28e fix response spelling 2023-05-11 18:40:02 -05:00
Evan Almloff
043aae1689 fix the onload event 2023-05-08 17:49:28 -05:00
Evan Almloff
19436e210f Merge branch 'upstream' into query-system 2023-05-05 11:09:25 -05:00
Evan Almloff
230afadf3d Fix web events starting on a text node 2023-05-03 09:00:17 -05:00
Attilio
c645e1c6aa
Allow multiple prevent default for Web, Desktop and LiveView (#987)
* Allow multiple prevent default in dioxus_web

* Use SplitWhitespace for prevent default requests

* Add multiple prevent default option to liveview and desktop

* Update docs about prevent_default attribute

* cargo clippy

* update prevent default guide example

---------

Co-authored-by: Evan Almloff <ealmlof1@stumail.jccc.edu>
2023-04-27 11:26:04 -05:00
Evan Almloff
ada246c12e add file property to drag data 2023-04-27 10:21:05 -05:00
Evan Almloff
e1f02f8135 Merge branch 'upstream' into query-system 2023-04-26 18:00:39 -05:00
Jonathan Kelley
22cfff647c Merge branch 'master' into implement-file-engine 2023-04-26 15:32:34 -07:00
Evan Almloff
6d3d927d5c Merge branch 'fix-select-form-events' into implement-file-engine 2023-04-25 13:18:25 -05:00
Evan Almloff
80a8310297 switch debug logs to trace in the router and web crates 2023-04-20 15:08:56 -05:00
Evan Almloff
223c7efce2 Merge branch 'upstream' into query-system 2023-04-18 10:33:40 -05:00
Evan Almloff
bed1d58a77 create web file engine 2023-04-18 09:24:34 -05:00
Ivan Tham
05caa475b1 Add timeout count example 2023-04-09 22:54:18 +08:00
Jon Kelley
7c9295af38
Merge pull request #920 from Demonthos/fix-cfg-docs
Update docs for the web cfg cache option
2023-04-07 16:08:16 -07:00
Evan Almloff
f1f7517b88 Fix form events with select multiple 2023-04-06 11:11:08 -05:00
Evan Almloff
bf2d561be4 invert prevent default on web forms 2023-04-04 09:32:09 -05:00
Evan Almloff
1578cbeda4 prevent default redirect on web forms 2023-04-01 19:29:17 -05:00
Evan Almloff
5f7a6e2f3f fix docs for the web cache setting 2023-03-31 07:55:39 -05:00
Evan Almloff
b19e7ce455 fix non-bubbling listener hydration 2023-03-22 09:17:27 -05:00
Evan Almloff
02d33bf0e4 make web and desktop use_eval compatable 2023-03-20 09:28:09 -05:00
Evan Almloff
cb5cb56ad3 implement onmounted for the web renderer 2023-03-19 18:28:34 -05: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
Jonathan Kelley
f420c6f333 bump web and interpreter 2023-02-16 13:42:49 -08:00
Evan Almloff
ea46db0966 enable hydration feature in dev-dependancies 2023-01-31 14:19:19 -06:00
Evan Almloff
9baef6bcd9 always load the templates in hydration 2023-01-31 14:18:34 -06:00
Evan Almloff
696109db10 implement hydration 2023-01-31 14:10:48 -06: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
Jonathan Kelley
c4a18bc24d chore: clean up some clippy warnings and add clippy lints to CI 2023-01-11 16:13:41 -08: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
Evan Almloff
8a1f54f573 fix drag* events 2023-01-10 12:53:40 -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
Evan Almloff
51dba50c04 use BumpBox<Any> and FromAnyValue instead of sync bounds 2023-01-02 14:40:25 -06:00
Evan Almloff
5b1d9c5c8d Merge branch 'upstream' into fix-non-str-attributes 2022-12-30 11:52:55 -06:00
Jonathan Kelley
4fdbce9a70 chore: clean up readmes 2022-12-29 16:17:03 -05:00
Evan Almloff
044462876d Merge branch 'upstream' into fix-non-str-attributes 2022-12-28 20:36:57 -06:00
Jonathan Kelley
366e46eddf chore: add some fixes to hot reload 2022-12-25 23:22:43 -05:00
Evan Almloff
4caf95d639 add bubbling data to event listeners in the web renderer 2022-12-23 16:04:10 -06:00
Evan Almloff
afd024bcb6 Merge branch 'upstream' into fix-non-str-attributes 2022-12-23 15:53:39 -06:00
Evan Almloff
db7a1ec0b0 fix lints 2022-12-21 13:04:57 -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
Jonathan Kelley
91233aa73a chore: add gitignore for web testing 2022-12-19 15:12:42 -08:00
Jonathan Kelley
8d7d07db56 chore: make clippy happy in workspace crate 2022-12-19 11:56:44 -08:00
Evan Almloff
96ce704f8e fix serialization 2022-12-19 11:48:28 -06:00
Jonathan Kelley
c409fecaaf fix: sync with master 2022-12-17 01:52:17 -08:00
Jonathan Kelley
cc7736302a Merge branch 'master' into fix-non-str-attributes 2022-12-17 01:51:13 -08:00
Jon Kelley
5ac9b595ea
Revert "fix: liveview interpreter using new templates" 2022-12-16 14:20:05 -08:00