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
=
14dd568987
Merge branch 'upstream-master' into fix-hot-reloading
2022-12-16 10:07:11 -06:00
Jonathan Kelley
a81bbb83d6
fix: removed files
2022-12-15 20:24:30 -08:00
Jonathan Kelley
6a89a0fffc
chore: remove wasm
2022-12-15 19:59:21 -08:00
=
0d9c350d5e
implement for web and desktop
2022-12-15 21:16:37 -06:00
Jonathan Kelley
06e8e096bb
feat: more fixes to liveview
2022-12-15 14:25:23 -08:00
Jonathan Kelley
d4b6bb8a7b
feat: fix the scope rollover bug
2022-12-12 18:31:30 -08:00
Evan Almloff
0c0158f62d
Merge branch 'upstream' into fix-non-str-attributes
2022-12-09 16:24:02 -06:00
Evan Almloff
8a1c96a68c
fix custom attribute value support
2022-12-09 16:18:37 -06:00
Jon Kelley
051f85f78f
Merge branch 'master' into return-from-js
2022-12-09 13:19:05 -08:00
Evan Almloff
bf47f64852
Merge branch 'upstream' into return-from-js
2022-12-08 11:25:15 -06:00
Evan Almloff
35bebbf0cb
wrap the web eval result in a compatability layer
2022-12-08 10:57:09 -06:00
Evan Almloff
e863ef29b8
allow returning values from use_eval
2022-12-08 10:44:56 -06:00
Evan Almloff
99a4a9d45b
Merge branch 'upstream' into optimize-templates-v3
2022-12-07 18:29:02 -06:00
Evan Almloff
56b027ef33
fix more lints
2022-12-07 17:24:50 -06:00
Evan Almloff
b79ad4f50e
Merge remote-tracking branch 'upstream/master' into optimize-templates-v3
2022-12-07 17:20:31 -06:00
Jonathan Kelley
db5b65b6cb
chore: make cargo check happy with new apis
2022-12-07 14:51:14 -08:00
Evan Almloff
5c6c235df0
cleanup code
2022-12-07 15:48:25 -06:00
Jonathan Kelley
a252774226
chore: clean up docs with changes to templates
2022-12-07 13:39:22 -08:00
Jonathan Kelley
4eefc3f854
chore: rename all &cx to cx, make clipppy happy
2022-12-07 13:11:40 -08:00
Evan Almloff
d64d92e4b4
disable rif raf
2022-12-07 07:24:51 -06:00
Jonathan Kelley
1b14b309e9
chore: clean up desktop
2022-12-06 16:37:28 -08:00
Evan Almloff
6102902387
work on optimizing web implementation
2022-12-06 14:24:35 -06:00
Jonathan Kelley
b182a6ee75
chore: clean up interpreter and bindings
2022-12-05 16:47:04 -08:00
Jonathan Kelley
7b1cdb7d85
feat: get desktop working with new template strategy
2022-12-05 16:08:41 -08:00
Jonathan Kelley
a61daf220d
feat: context api overhaul
2022-12-02 16:24:49 -08:00
Jonathan Kelley
11a45c8ef0
chore: continue to clean things up
2022-12-01 01:08:49 -05:00
Jonathan Kelley
85657d3906
feat: rip out mutations for templates
2022-12-01 00:46:15 -05:00
Jonathan Kelley
3b166c9edd
wip: clean up some things
2022-11-30 23:54:30 -05:00
Jonathan Kelley
ba26b1001a
chore: clean up web impl
2022-11-30 17:44:00 -05:00
Jonathan Kelley
18d6b1ad6f
feat: get web working properly
2022-11-30 17:21:10 -05:00
Jonathan Kelley
073fea9ed3
Merge branch 'master' into jk/templates-v3
2022-11-16 22:24:21 -08:00
Demonthos
f21c8423eb
optimizations for wasm size ( #582 )
...
* optimize for size
* fix tests
* revert log feature
* make backtrace not optional
* remove dev feature from web dev-deps
2022-11-16 22:22:13 -08:00
Jonathan Kelley
90982e0ccb
wip: start to refactor out hot reloading from packages
...
Also implement alternative simpler template system
2022-10-20 09:56:09 -07: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
saicu
e8c48d46cf
replace fxhash crate with rustc-hash ( #588 )
2022-10-12 18:27:26 -07:00
Demonthos
daeffd4149
pass clippy ( #575 )
2022-10-02 14:12:24 -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
Jon Kelley
28fba42e7e
feat: add an unhygenic render macro ( #556 )
...
* feat: add an unhygenic render macro
* chore: use render instead of rsx!(cx,
2022-09-25 01:05:16 -07:00
Jon Kelley
540e785d8b
Less clumsy configuration for desktop and mobile ( #553 )
...
* chore: dont use prebuilt builder pattern for configuring desktop
* chore: use regular config pattern for web
* Chore: update docs too
* chore: clean up some warnings
2022-09-13 16:22:27 -07:00
Jon Kelley
38e8745db9
Remove lower case components that use the paran syntax ( #551 )
...
* chore: remove lowercase components
* chore: add docs are lowercase components
* docs: also add docs around lowercase components in current scope
2022-09-12 20:01:03 -07:00
Reinis Mazeiks
d734dc5b46
Remove argument from use_hook
closure ( #496 )
...
Also; update docs for said function
2022-07-11 15:50:56 -04: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
Demonthos
3a5d1a2ff8
fix web imports and extract hot reload handlers into seperate files ( #484 )
2022-07-04 13:18:11 -05:00
Evan Almloff
f0655a11ad
panic on errors in hot-reload if no error handler socket is connected
2022-07-01 09:01:15 -05:00
Reinis Mazeiks
0777437243
Merge branch 'master' of https://github.com/DioxusLabs/dioxus into rusty-events
...
Conflicts:
packages/tui/tests/events.rs
2022-06-29 02:18:57 +03: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
Evan Almloff
041f474329
Merge remote-tracking branch 'upstream/master' into clean_up_rsx_imports
2022-06-26 07:22:55 -05:00
YuKun Liu
0af69f83f2
Rename hot_reload
to hot-reload
2022-06-26 14:23:19 +08:00
Evan Almloff
ef4ece42b3
Merge remote-tracking branch 'upstream/master' into clean_up_rsx_imports
2022-06-25 08:27:32 -05:00
Evan Almloff
fbf8e13b8d
clean up imports
2022-06-25 08:27:10 -05:00