Commit graph

367 commits

Author SHA1 Message Date
Evan Almloff
0127501dbf
Improve inline docs (#2460)
Improve inline docs

* improve incorrect event handler return error message

* Improve event handler docs

* document the eval functions

* document spawn and common spawn errors

* fix event handler docs

* add notes about how you use attributes and elements in rsx

* add doc aliases for attributes and events we rename

* add some more aliases for common search terms

* don't doc ignore any public examples in core

* don't ignore public doc examples in ssr

* don't ignore examples in the dioxus package readme

* add a warning when you launch without a renderer enabled

* fix some outdated element docs

* add a bunch of examples to resource

* add notes about desktop events

* add more docs for use_resource

* add on_unimplemented hint to Dependency

* fix some unresolved links

* add examples to each of the router traits

* add not implemented errors for router traits

* add an example to the routable trait

* expand rsx macro docs

* improve memo docs

* update the dioxus readme

* mention dioxus crate features in the docs

* fix a bunch of doc tests

* fix html doc tests

* fix router doc tests

* fix dioxus signals doc tests

* fix dioxus ssr doc tests

* fix use_future example in the hooks cheat sheet

* add a javascript alias for eval

* fix hook explanation values

* remove unused embed-doc-image dependency
2024-06-06 18:15:17 -07:00
Evan Almloff
b3cd4fac10
set up example scaping for docs.rs (#2450) 2024-05-28 13:05:55 -07:00
ASR-ASU
9f670e1eb0
Fix value returned by get_scroll_size (#2445)
The scroll position was returned instead.
2024-05-23 11:12:47 -05:00
Evan Almloff
2523581cf4
Autocomplete rsx (#2421)
* autocomplete rsx

* hide the completions module

* fix autocomplete for identifiers that start with a raw identifier

* add field completion hints for props

* remove extra import

* Revert "add field completion hints for props"

This reverts commit 194899c737.

* fix autocomplete inside raw expressions

* fix autofmt

* feat: just use regular ifmt if it's compatible

reuses the tokens for ifmt so RA provides its HIR lowering on simple formatted strings

* fix merging ifmt strings

* add a better error message for components called like functions

---------

Co-authored-by: Jonathan Kelley <jkelleyrtp@gmail.com>
2024-05-22 07:24:50 -05:00
ASR-ASU
460b70e0f0
Add access to the Element attributes related to scrolling (#2338)
* Add access to the Element attributes related to scrolling

* Fix clippy warnings

* Restore interpreter/src/js/hash.txt content

* Update generated interpreter files

* Use euclid types as return types

* Remove redundant functions

* It's not necessary for PixelsSize to be in 3D

* Rename PixelsVector to PixelsVector3D and add a PixelsVector2D type

* Remove unused PixelsLength type
2024-05-21 12:56:49 -05:00
Chris Rogus
b147f5a737
impl HasFileData for FormData (#2346) 2024-04-25 14:31:50 -04:00
Evan Almloff
5ce91e1bfc
Fix flakey windows tests (#2332) 2024-04-17 15:08:38 -07:00
Evan Almloff
4d25e3f6a2
fix hydration for non-bubbling events (#2234) 2024-04-04 11:46:22 -07:00
David McNeil
d16ac4e736
Bump rfd to version 0.14 fixing 2149 (#2161) 2024-03-29 18:05:14 -07:00
Miles Murgaw
3cbe6ff96e
Fix Outdated README.md (#2147)
* fix: outdated readme

* Fix missing readme

---------

Co-authored-by: Jonathan Kelley <jkelleyrtp@gmail.com>
2024-03-26 19:17:02 -07:00
Evan Almloff
dadbab5d72
make some enums non-exhaustive (#2140) 2024-03-26 19:14:48 -07:00
Jonathan Kelley
2dc6cecf2e
Fix #2043: use formvalue instead of String for forms (#2103)
Fix #2043: use formvalue instead of String for forms
2024-03-18 18:21:08 -07:00
Jonathan Kelley
81f38a0bc5
cfg out globalhotkey 2024-03-06 16:42:45 -08:00
Jonathan Kelley
624e58bd78
native file drop 2024-03-05 14:11:12 -08:00
Jonathan Kelley
403e8e2f49
Clean up file uploads in desktop/liveview, remove minify 2024-03-05 13:00:27 -08:00
Jonathan Kelley
16b38e339d
Merge branch 'main' into jk/fix-form-inputs 2024-03-04 17:46:38 -08:00
Jonathan Kelley
199173a409
fix navigating when files are dropped 2024-03-01 23:37:46 -08:00
Evan Almloff
f7209e123f
restore the docs for the image element 2024-02-27 10:36:45 -06:00
Florian de Gaulejac
5dad13ac74 Restore image element under svg element 2024-02-27 09:18:18 +01:00
Florian de Gaulejac
83cd04fd17 Fix name for SVG attribute "type" 2024-02-21 15:31:10 +01: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
Jonathan Kelley
bdbae8ccb0
Update examples, add css 2024-02-14 12:33:07 -08:00
Evan Almloff
72ae13ccb5 fix the double click event 2024-02-05 18:24:21 -06:00
Evan Almloff
308226996c actually derive the copy trait for eval 2024-02-02 14:48:31 -06:00
Evan Almloff
a789d6a64e make eval copy 2024-02-02 14:47:59 -06:00
Jonathan Kelley
7c2947a131
Implement effects using reactivecontext 2024-02-01 13:21:52 -08:00
Jonathan Kelley
eff1dd6c90
Merge branch 'master' into breaking 2024-01-30 16:20:19 -08:00
Ege Gungordu
d3ded8c677 add isComposing support of KeyboardEvent 2024-01-23 18:31:14 +03:00
Jonathan Kelley
2366d609d4
add checked to form 2024-01-19 22:23:13 -08:00
Evan Almloff
439e39bab4 fix native core, plasmo and dioxus-tui 2024-01-19 09:48:45 -06:00
Jonathan Kelley
6ed3aafb2f
Get cargo check --all working 2024-01-18 19:27:55 -08:00
Ameyanagi
a3f6d21bea deleted unused comment 2024-01-18 17:55:15 -05:00
Ameyanagi
27254eecc6 added annotation-xml 2024-01-18 17:13:55 -05:00
Ameyanagi
f8071d9a61 add MathML core elements 2024-01-18 01:54:23 -05:00
Evan Almloff
d44b0b34c8 Merge branch 'master' into breaking 2024-01-16 10:38:55 -06:00
Evan Almloff
a20a85dad6 implement deref for FormValue 2024-01-16 10:30:59 -06:00
Jonathan Kelley
14651a3573
Change context api to panic with nice error message 2024-01-15 18:02:58 -08:00
Evan Almloff
cfebb6c900 remove async-channel now that context and eval is global 2024-01-15 11:46:00 -06:00
serzhiio
00cd0dae6e From impl 2024-01-15 17:38:31 +04:00
serzhiio
a92d1a9424 rustfmt 2024-01-15 17:28:00 +04:00
serzhiio
f833d95e79 Added useful methods 2024-01-15 17:16:44 +04:00
Evan Almloff
36e9eb1160 partially restore spreading attributes 2024-01-14 15:21:19 -06:00
Jonathan Kelley
8c94f0bc4a
get compiling 2024-01-11 16:51:18 -08:00
Jonathan Kelley
2ae3241cc0
Merge branch 'master' into jk/breaking-merged 2024-01-11 16:04:36 -08:00
Evan Almloff
b6ea395338 enable serde dependency in the html crate even if eval is disabled 2024-01-11 15:40:44 -06:00
Jonathan Kelley
6f15e0e924
Fix ci failure on unused cfg deps 2024-01-08 14:37:05 -08:00
Jonathan Kelley
9c4d90350f
fix merge conflicts for files 2024-01-08 14:08:21 -08:00
Jonathan Kelley
5ccbeeab46
Merge branch 'master' into add-file-data-drag-event 2024-01-08 13:34:24 -08:00
Evan Almloff
194c9d43e3 fix merge 2024-01-08 14:51:35 -06:00
Evan Almloff
56798b3d1c Merge branch 'master' into add-file-data-drag-event 2024-01-08 14:16:09 -06:00