Jonathan Kelley
c1c5821dcf
Merge branch 'master' into jk/templates-v3
2022-11-16 22:12:16 -08:00
Jon Kelley
8ea61e1b3e
feat: simple iterators and conditionals in rsx ( #564 )
...
* feat: simple iterators
* fix: into_iter
* feat: add support for unterminated conditionasl
* fix: add tempalte mapping for helpers
2022-11-16 22:10:50 -08:00
Jonathan Kelley
6b473cbdc5
feat: conditionals and iterators in rsx
2022-11-16 22:10:13 -08:00
Jonathan Kelley
642b21f125
suspense works in desktop
2022-11-16 11:48:47 -08:00
Jonathan Kelley
66319cf6e2
wip: queue mods
2022-11-16 01:13:39 -08:00
Jonathan Kelley
ea7ab5f765
wip: it works more
2022-11-15 23:59:19 -08:00
Jonathan Kelley
9a3f84037e
fix: render namespces
2022-11-15 23:40:16 -08:00
Jonathan Kelley
7f85806fa6
wip: trying to get namespaced elements working
2022-11-15 23:31:23 -08:00
Jonathan Kelley
04bc635ac5
wip: prep to fix bug in create
2022-11-15 23:22:41 -08:00
Jonathan Kelley
e09b6bf813
chore: tweak generic arguments and iterators in rsx
2022-11-15 20:58:56 -08:00
Jonathan Kelley
e8ae830cf2
feat: get desktop working with just creation
2022-11-15 18:32:48 -08:00
Jonathan Kelley
8caabb97d8
wip: more work on html
2022-11-15 16:51:22 -08:00
Jonathan Kelley
0dad91bc08
wip: pass more events
2022-11-15 16:37:23 -08:00
Jonathan Kelley
47d0f51e00
wip: overhaul event system
2022-11-15 16:05:22 -08:00
Jonathan Kelley
c44bd11fe5
chore: more refactoring, docs
2022-11-11 18:29:27 -08:00
Adrian Wannenmacher
79ea1994db
fix desktop dependency wry ( #618 )
2022-11-10 12:03:26 -06:00
Jonathan Kelley
f7df6a9893
chore: use std::future::Future instead
2022-11-09 11:02:52 -08:00
Jonathan Kelley
f5bc137f01
chore: clean up scheduler code
2022-11-09 10:58:11 -08:00
Jonathan Kelley
c096057dd3
chore: tweak attributes to only set ID once
2022-11-08 20:06:39 -08:00
Jonathan Kelley
fc9fe6e560
feat: split apart template mutations
2022-11-08 19:39:37 -08:00
Jonathan Kelley
203935834d
feat: suspense!
2022-11-07 22:55:22 -08:00
Jonathan Kelley
e6c53803a6
feat: abstract to rc wake
2022-11-06 14:28:41 -08:00
David Craven
5c996f21fb
Update wry to 0.22.0 ( #604 )
2022-11-06 01:49:25 -07:00
Jonathan Kelley
a38fc9e4ab
feat: suspense!
2022-11-06 01:48:34 -07:00
Jonathan Kelley
aec1b326ba
wip: so much suspense code
2022-11-03 22:30:26 -07:00
Jonathan Kelley
d2ce57ba6e
feat: poll async once
2022-11-03 20:56:31 -07:00
Jonathan Kelley
94601ccd1f
feat: async components!
2022-11-03 17:34:42 -07:00
Jonathan Kelley
51aeb29d1a
wip: figure out async syntax
2022-11-03 02:37:41 -07:00
Jonathan Kelley
591674f701
wip: allow async into component
2022-11-03 02:11:04 -07:00
Jonathan Kelley
5d91f51e17
chore: clean things up
2022-11-03 01:38:18 -07:00
Jonathan Kelley
584504feb7
feat: keys
2022-11-03 01:24:20 -07:00
Jonathan Kelley
dddbcfd5e2
feat: works with components
2022-11-02 17:36:36 -07:00
Jonathan Kelley
c6a6c3d0f8
feat: components pass thru children
2022-11-02 17:29:18 -07:00
Jonathan Kelley
b6c0bce89c
feat: support cached ssr
2022-11-02 01:00:37 -07:00
Jonathan Kelley
4a31b29703
feat: simple tests passing
2022-11-01 18:42:29 -07:00
Demonthos
f89cd20455
fix tui example links ( #607 )
2022-10-28 18:06:39 -07:00
Jonathan Kelley
23603aaaf5
wip: rewrite core to be template focused
2022-10-27 21:58:47 -07:00
Jonathan Kelley
67012c38df
feat: more diffing iteration
2022-10-26 18:40:38 -07:00
Jonathan Kelley
22d4bf7346
feat: use walking pattern
2022-10-26 18:04:47 -07:00
David Craven
7e3a6fb4a4
Some fixes for wayland and ios. ( #602 )
2022-10-23 19:40:41 -07:00
Jonathan Kelley
7cbb4d52dd
wip: more modifications to templates
2022-10-21 18:54:14 -07: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
Demonthos
020c4bf0f8
fix bug with dynamic nodes after fragments ( #591 )
2022-10-15 11:00:56 -07:00
Daniel Olano
b51abd1a9c
Add datetime attribute to time element ( #590 )
2022-10-14 10:16:52 -05:00
Demonthos
ab10d327ac
Fix attribute value in macro ( #577 )
...
* create into AttributeValue trait to allow arbitraty attribute values
* allow attributevalue in non-template macro
2022-10-12 20:43:37 -07:00
saicu
e8c48d46cf
replace fxhash crate with rustc-hash ( #588 )
2022-10-12 18:27:26 -07:00
Demonthos
23c48cf795
render optimizations ( #585 )
2022-10-08 23:24:41 -07:00
Jon Kelley
fb2f3e68ff
fix: random commit ( #586 )
2022-10-08 23:07:20 -07:00
saicu
6476335750
to_owned!: allow optional comma at the end ( #584 )
2022-10-08 16:23:26 -07:00
Jonathan Kelley
03bc63dacc
wip: wire up bodynodes in more places
2022-10-05 01:13:14 -07:00
Demonthos
928b5358b2
allow arbitrary attribute value in owned attribute value ( #574 )
2022-10-02 14:13:06 -07:00
Marc Espín
e98f46bbcc
Remove a Node listeners when it is removed ( #576 )
2022-10-02 14:12:33 -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
Jonathan Kelley
181a51a63b
wip: add whitespace parsing to rsx
2022-09-30 10:51:53 -07:00
Demonthos
b32fd2d2cd
fix scroll data ( #569 )
2022-09-30 10:48:52 -07:00
Marc Espín
964a942243
Feat: Make AttributeValue::Any usable ( #565 )
...
* Implemented Display for AttributeValue::Any
* Make ArbitraryAttributeValue public
* allow(missing_docs) for ArbitraryAttributeValue
* Formatted lib.rs
2022-09-30 10:48:25 -07:00
Jonathan Kelley
5313fc0cc6
fix: trailing commas with key
2022-09-28 17:06:11 -07:00
Jonathan Kelley
a37458b9fa
chore: fixes to autoformat to prevent double rendering of expr line
2022-09-28 16:47:10 -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
0c48cb3601
feat: use infer instead of outdated mime-guess, bump wry ( #548 )
...
* feat: use infer instead of outdated mime
* chore: remove unused file
* fix: remove unused file
2022-09-24 23:48:05 -07:00
Jon Kelley
bf9901a6cd
fix: use typeid of atoms for their unique ID ( #558 )
2022-09-17 10:50:05 -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
Chrislearn Young
e4466fee0a
Add liveview Salvo integration ( #538 )
2022-09-13 14:24:30 -07:00
Norman Paniagua
6e66d6fe36
Added initial_url to the router component ( #510 )
...
* added active_url
* renamed active_url to initial_url
* updated docs
2022-09-13 13:09:00 -07:00
Jon Kelley
67dc6e6017
feat: implement type magic to allow strings, format args, and other types directly in rsx ( #550 )
...
* feat: implement type magic
* chore: undo example
* fix: let tests pass
* chore: add generic to allow any nesting of iterators
* Chore: remove comments
* chore: update rsx usage
* chore: use cleaner version of generic IntoVnode
* chore: don't derive default for lfietimed thing
* chore: remove latent comment
* fix: accept a third parameter
2022-09-12 22:49:04 -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
Demonthos
d4d5d2733e
add missing global attributes ( #546 )
2022-09-08 12:06:25 -07:00
Eric Hulburd
02a21bc193
fix: set false for media event bubbling ( #542 )
2022-09-08 07:55:07 -05:00
Marc Espín
8427a3f657
Support Bytes in AttributeValue ( #543 )
2022-09-07 09:20:35 -05:00
Demonthos
2d08532bad
Improve documentation for the native core and native core macro crates ( #528 )
...
* improve documentation for the native core and native core macro crates
* fix spelling of depenency
2022-09-06 17:25:10 -07:00
Marc Espín
286cfa43b7
Fix repo link and example name ( #545 )
2022-09-06 13:42:45 -05:00
Norman Paniagua
8347de5956
Added dialog tag ( #533 )
...
* added dialog tag
* updated attribute type
2022-08-24 08:01:40 -05:00
Demonthos
a9e71cb001
expose desktopconfig in public interface ( #529 )
2022-08-17 11:16:05 -07:00
Demonthos
baf1807338
allow duplicate idents in format_args_f ( #515 )
2022-08-10 22:45:56 -07:00
Demonthos
4a8a7dd5f4
allow the last attribute in a component to contain formatting ( #504 )
2022-07-27 13:52:09 -07:00
zohnannor
15e9aa1958
Fix weird docs typo/copy-paste error ( #507 )
...
- introduced in a8952a9ee8
and 4518b6bc8c
2022-07-24 17:21:11 -05:00
Demonthos
39cbc82107
update tui to use taffy dimention directly ( #501 )
2022-07-19 09:27:19 -07:00
Jonathan Kelley
dbb842e285
Merge branch 'master' of github.com:DioxusLabs/dioxus
2022-07-18 13:50:11 -07:00
Jonathan Kelley
62b9a0593f
chore: use taffy dimension directly
2022-07-15 22:17:00 -04: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
Jonathan Kelley
92a8b7c75f
fmt: fix formatting
2022-07-07 02:52:37 -04:00
Jonathan Kelley
3d47cb48fa
fix: autofmt on single line rsx calls
2022-07-07 02:06:50 -04:00
Jonathan Kelley
2b9888627b
Merge branch 'master' of github.com:DioxusLabs/dioxus
2022-07-07 01:46:48 -04:00
Jonathan Kelley
7ff4d616d3
chore: remove outdated docs
2022-07-07 01:42:03 -04:00
Demonthos
4a5ae758ee
Allow Multiple dependencies for states in the RealDom (native core) ( #412 )
...
* WIP multable deps
* WIP: refactor and genralize state macro
* add traversable trait
* update tui to use elementid to index dom
2022-07-07 00:50:22 -04:00
Adia Robbie
c271fc132e
dioxus-desktop(Update-dep): tauri 0.19.x ( #489 )
...
* Update(dep): tauri 0.19.x
2022-07-06 12:05:31 -04:00
Demonthos
baaa1752d3
add query context ( #400 )
2022-07-05 19:44:54 -05:00
Jonathan Kelley
251aafa5fd
fix: fmting
2022-07-05 18:42:00 -04:00
Jonathan Kelley
575f92d2d4
chore: update readme and tests for autofmt
2022-07-05 18:23:30 -04:00
Jonathan Kelley
76581e7400
fix: disappearing manual props
2022-07-05 18:03:04 -04:00
Jonathan Kelley
19e6e43358
fix: only apply comments if relevant
2022-07-05 17:59:33 -04:00
Jonathan Kelley
fa9ebe17cc
feat: fix autoformatting around one liners
2022-07-05 17:49:16 -04:00
Jonathan Kelley
64d669e934
chore: add todo list to autofmt crate
2022-07-05 13:31:26 -04:00
Jonathan Kelley
2634755620
fix: handle comments around attributes better
2022-07-05 02:06:54 -04:00
Jonathan Kelley
4471ccba49
fix: even better comment handling
2022-07-05 01:53:08 -04:00
Jonathan Kelley
47f3cc2529
fix: correct comment handling for first line
2022-07-05 00:30:09 -04:00
Jonathan Kelley
150d824561
feat: more advanced comment handling
2022-07-05 00:22:06 -04:00
Jon Kelley
3a30b36f68
fix: some edge cases around autoformatting ( #485 )
...
* wip: remove comment support from autofmt
* fix: some edge cases around autoformatting
* fix: revert readme
* fix: failing test
2022-07-04 21:11:03 -04:00
Demonthos
3a5d1a2ff8
fix web imports and extract hot reload handlers into seperate files ( #484 )
2022-07-04 13:18:11 -05:00
Jonathan Kelley
7e454e770a
chore: remove some hotpath logging
2022-07-03 00:14:15 -04:00
Jonathan Kelley
94004cfe19
chore: clean up some clippy stuff
2022-07-03 00:11:28 -04:00
Jonathan Kelley
2884d72b08
chore: make clippy happy
2022-07-02 23:45:32 -04:00
Jon Kelley
faf1103597
Merge pull request #473 from Demonthos/fix_hot_reloading_svg_attributes
...
Fix hot reloading svg attributes
2022-07-02 22:58:07 -04:00
Jon Kelley
c70cd04835
Merge pull request #454 from DioxusLabs/jk/autofmt
...
Add autoformatting package
2022-07-02 22:57:28 -04:00
Jonathan Kelley
59c38c2ff1
Merge branch 'master' into jk/autofmt
2022-07-02 22:49:21 -04:00
Jonathan Kelley
30c1e702b3
fix: fmt
2022-07-02 22:49:19 -04:00
Demonthos
c9b7b5b3b8
Merge remote-tracking branch 'upstream/master' into pr/Demonthos/473
2022-07-02 20:17:28 -05:00
Demonthos
de3e2a48f8
Merge remote-tracking branch 'upstream/master' into pr/Demonthos/482
2022-07-02 19:03:08 -05:00
Demonthos
55e262b2c6
Merge remote-tracking branch 'upstream/master' into pr/Demonthos/473
2022-07-02 18:48:32 -05:00
Evan Almloff
c0b9b54d9b
allow custom string literals to be captured for hot reloading
2022-07-01 10:51: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
Jonathan Kelley
cd7ee47e40
fix: make clippy happier with rust 1.63
2022-06-30 16:35:33 -04:00
Jonathan Kelley
a6e8852ced
polish: make clippy happy on use_hook
2022-06-30 15:41:45 -04:00
Jonathan Kelley
e627a66acc
Merge branch 'master' into jk/autofmt
2022-06-30 15:23:05 -04:00
Jonathan Kelley
28a0c67275
polish: clean up the examples and move autofmt sample into dedicated file
2022-06-30 15:19:58 -04:00
Jon Kelley
6e7015b997
Merge pull request #466 from Demonthos/fix_js_interperter
...
check that an node is an element before removing listeners
2022-06-30 15:18:40 -04:00
Jon Kelley
dde9ca6ce0
Merge pull request #406 from rMazeiks/rusty-events
...
Rustify events api for WheelData and KeyboardData
2022-06-30 14:56:02 -04:00
Evan Almloff
ab533864db
Merge remote-tracking branch 'upstream/master' into fix_hot_reloading_svg_attributes
2022-06-30 07:18:08 -05:00
Evan Almloff
e444d3d4bc
fix svg attributes
2022-06-30 07:17:59 -05:00
Demonthos
7f5ad96c0b
Merge pull request #462 from Demonthos/fix_hot_reload_paths
...
fix path separator for hot reloading
2022-06-29 12:24:14 -05:00
Jon Kelley
8d6afe70b8
Merge pull request #468 from Demonthos/fix_diffing_equal_length_listeners
...
Fix Diffing Equal Length Listeners
2022-06-29 11:48:13 -04:00
Evan Almloff
bf548d4a0e
set id before creating listener
2022-06-29 09:48:16 -05:00
Evan Almloff
58a495351a
check that an node is an element before removing listeners
2022-06-29 09:09:47 -05:00
Reinis Mazeiks
a9f286c52b
Fix bug in TUI key repeat handling
2022-06-29 07:44:19 +03: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
ca60b01c49
Fix remaining warnings (unrelated)
2022-06-29 02:17:00 +03:00
Reinis Mazeiks
cae0c1409d
Fix some warnings: avoid deprecated fields
2022-06-29 02:13:01 +03:00
Reinis Mazeiks
f30387597a
Add wheel events to event example; make interface prettier
2022-06-29 01:18:09 +03:00
Reinis Mazeiks
a46ff93600
Improve keyboard event debug formatting
2022-06-29 01:09:17 +03:00
Jonathan Kelley
0aec375371
wip: clean up formatting package
2022-06-28 17:33:11 -04:00
Jon Kelley
ca13bf7358
Merge pull request #459 from Demonthos/clean_up_rsx_imports
...
Clean up rsx imports for components and tests
2022-06-28 17:32:39 -04:00
Jonathan Kelley
bd936d3af2
feat: more cleanup
2022-06-28 17:29:10 -04:00
Jonathan Kelley
fa756ba245
feat: manual props
2022-06-28 17:16:26 -04:00
Reinis Mazeiks
c090741c60
Improve event formatting
2022-06-28 23:46:24 +03:00
Reinis Mazeiks
bfcfe2ca5f
Remove use of deprecated functions
2022-06-28 23:10:44 +03:00
Jon Kelley
22677c2992
Merge pull request #463 from Demonthos/fix_escape_sequence
...
fix escape sequences in ifmt
2022-06-28 16:10:40 -04:00
Jonathan Kelley
5bab835843
fix: allow keys
2022-06-28 15:35:46 -04:00
Jonathan Kelley
1e4af430a8
wip: eliminate warnings
2022-06-28 15:15:09 -04:00
Jonathan Kelley
a825cdcf58
feat: simple support for comments
2022-06-28 15:01:51 -04:00
Reinis Mazeiks
6932924f57
Comment on crossterm key event conversion
2022-06-28 21:17:46 +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
cf2f504d77
fix unnessisary mut
2022-06-28 12:48:38 -05:00
Evan Almloff
f1f9f0df1a
pass clippy
2022-06-28 12:37:19 -05:00
Evan Almloff
7730401288
fix escape sequences in ifmt
2022-06-28 12:19:07 -05:00
Evan Almloff
8c3c75cab6
update tests
2022-06-28 10:02:50 -05:00
Evan Almloff
884723831b
fix path seperator
2022-06-28 09:48:19 -05:00
Mark Wotton
4106f07566
tiny doc fix
2022-06-28 09:58:27 +07:00
Jonathan Kelley
d70b436157
wip: more cleanup, more tests
2022-06-27 16:24:36 -04:00
Jonathan Kelley
a2a194ca40
wip: use stateful buffer
2022-06-27 13:36:41 -04: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
9a963bba0a
update router test imports
2022-06-25 11:17:26 -05:00
Evan Almloff
02756f6f92
fix key parsing
2022-06-25 10:14:36 -05:00
Evan Almloff
6c20d74797
finish cleanup
2022-06-25 08:48:03 -05: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
Jonathan Kelley
79b475798d
wip: make element printer more comprehensive
2022-06-25 02:22:26 -04:00
Jonathan Kelley
398cbc6534
wip: rely on git version of prettyplease, refactor autofmt
2022-06-25 00:55:52 -04: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
Evan Almloff
c52a9334cb
fix tui tests
2022-06-24 14:05:19 -05:00
Jonathan Kelley
5b9e34aadd
feat: add fork of prettyplease for autoformatting
2022-06-24 14:22:08 -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
Evan Almloff
11d9a7d013
Merge remote-tracking branch 'upstream/master' into fix_nonbubbling_web_events
2022-06-22 13:59:10 -05:00
Evan Almloff
61b4bb2f19
handle bubbling events
2022-06-22 13:57:05 -05:00
Jon Kelley
478fea58d9
Merge pull request #425 from Demonthos/jk/rsx-refactor
...
Hot Reloading Rsx
2022-06-21 11:07:44 -04:00
Evan Almloff
dd335cda59
use line!, col!, and row! instead of panic location
2022-06-20 15:44:10 -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
Jon Kelley
c3e573b7cb
Merge pull request #445 from Demonthos/test_tui_events
...
test tui events
2022-06-19 22:10:10 -04:00
Evan Almloff
21206390f8
more formatting
2022-06-17 15:33:28 -05:00
Evan Almloff
f7b2869082
fix formatting
2022-06-17 15:15:02 -05:00
Evan Almloff
ffc9bf763a
pass clippy
2022-06-17 13:50:41 -05:00
Evan Almloff
0f2ff34a30
add tests for the interperter
2022-06-17 09:50:25 -05:00
Evan Almloff
9e7e5b0859
Merge remote-tracking branch 'upstream/master' into jk/rsx-refactor
2022-06-16 09:17:36 -05:00
Evan Almloff
75e13749ea
set multiple rsx calls at once to prevent duplicated errors
2022-06-16 09:11:56 -05:00
Evan Almloff
b761bdb767
include element/attribute in errors
2022-06-15 14:20:36 -05:00
Evan Almloff
d9ee305575
offset column numbers
2022-06-15 13:36:18 -05:00
Demonthos
df4ea20bb8
create serde compatible parse error
2022-06-15 12:58:08 -05:00
Evan Almloff
8670f05968
Merge branch 'tui_mouse_events_fix' into tui_focus
2022-06-15 08:31:04 -05:00
Evan Almloff
8e6b56c636
remove outdated comment
2022-06-14 20:57:43 -05:00
Evan Almloff
41e905144c
add warning when hot_reload is used in release builds
2022-06-14 10:32:49 -05:00
Evan Almloff
3dc68ffd76
add tests
2022-06-13 19:55:57 -05:00
Evan Almloff
1d699b0b6e
fix absolute position for mouse events
2022-06-13 19:42:03 -05:00
Evan Almloff
5d323cae78
Merge remote-tracking branch 'upstream/master' into tui_focus
2022-06-13 17:55:18 -05:00
Evan Almloff
ce385965a7
Merge branch 'master' into tui_focus
2022-06-13 17:37:40 -05:00
Evan Almloff
586983291a
log parse errors
2022-06-13 17:02:43 -05:00
Evan Almloff
f132a08f7d
fix merge
2022-06-13 16:50:22 -05:00
Evan Almloff
9e4a069f42
Merge branch 'jk/rsx-refactor' of https://github.com/demonthos/dioxus into jk/rsx-refactor
2022-06-13 16:48:52 -05:00
Evan Almloff
c614506734
report error on unknown attribute
2022-06-13 16:48:15 -05:00
Jon Kelley
d9e14db434
Merge pull request #417 from Demonthos/master
...
handle backtab for tui
2022-06-13 11:13:00 -04:00
Yin Jifeng
3cbf8ed6fa
fix: remove task id from scope when success
2022-06-13 18:43:36 +08:00
Yin Jifeng
814235f145
docs: update func names
2022-06-13 18:43:36 +08:00
Yin Jifeng
7576426c93
core: cleanup tasks polling fn
2022-06-13 18:43:36 +08:00
Yin Jifeng
c97f051bbd
fermi: set atom value even it doesn't exist
2022-06-13 18:32:03 +08:00
Demonthos
8ed8758d35
clean up and document items
2022-06-11 20:06:50 -05:00
Jon Kelley
e97072f387
Merge pull request #438 from Demonthos/stretch2_relative_layout
...
Use Taffy instead of stretch2 for tui and native core
2022-06-11 10:45:01 -04:00
Jon Kelley
03973f692e
Merge pull request #385 from MuhannadAlrusayni/master
...
feat: Support generic components in `rsx!()` macro
2022-06-11 10:32:31 -04:00
Evan Almloff
71d31556e5
Merge https://github.com/DioxusLabs/dioxus into jk/rsx-refactor
2022-06-10 18:16:05 -05:00
Evan Almloff
29b3503da8
fmt
2022-06-10 17:49:04 -05:00
Evan Almloff
69ecc9caaf
update tui tests
2022-06-10 17:47:43 -05:00
Demonthos
c1112cfd3a
Merge branch 'master' into stretch2_relative_layout
2022-06-10 17:41:51 -05:00
Evan Almloff
44686e217f
remove empty match
2022-06-10 17:33:19 -05:00
Evan Almloff
dcfe60c164
use taffy instead of stretch2
2022-06-10 17:23:30 -05:00
Jon Kelley
ea4eb218ab
Merge pull request #422 from rMazeiks/fix-web-missing-event-types
...
Fix web missing event types
2022-06-10 11:44:38 -04:00
Jon Kelley
8349e252b6
Merge pull request #434 from CGQAQ/patch-1
...
fix(desktop): makes release build working
2022-06-10 11:43:57 -04:00
Jon Kelley
0dbdaf1973
Merge pull request #436 from Demonthos/fix_remove_style
...
remove style attributes correctly for the js interpreter
2022-06-10 11:43:01 -04:00
CGQAQ
030f6d58fb
conditional devtools
2022-06-10 06:04:54 +08:00
Evan Almloff
38de26d0e4
remove attributes correctly
2022-06-09 10:31:11 -05:00
Evan Almloff
fe5c698c09
add DirtyAll to SchedulerMsg
2022-06-09 10:01:09 -05:00
Evan Almloff
d4dda577d6
remove extra print
2022-06-09 09:36:48 -05:00
Evan Almloff
017d269ca8
fix websocket error reporting
2022-06-09 09:36:28 -05:00
Jason
09b1d379d7
fix(desktop): makes release build working
2022-06-09 16:55:53 +08:00
Evan Almloff
b480579169
derive clone and debug for SetRsxMessage
2022-06-08 12:33:55 -05:00
Evan Almloff
e7cf382784
create websocket for hot reloading
2022-06-06 13:30:32 -05:00
Evan Almloff
07199c8a64
clean up imports
2022-06-06 13:29:56 -05:00
Evan Almloff
c7a332efaa
remove mutex from RsxContext
2022-06-06 13:29:32 -05:00
Evan Almloff
0e97af989a
capture varibles in keys
2022-06-06 13:02:15 -05:00
Evan Almloff
7b629ef0f5
cleanup imports
2022-06-05 09:24:08 -05:00
Evan Almloff
3cd4175e2e
remove braces from captured variables
2022-06-05 08:39:50 -05:00
Evan Almloff
2a6d9ed075
handle rsx!{cx, ...}
2022-06-05 07:38:05 -05:00
Evan Almloff
586e29d815
force rerender after rsx is updated
2022-06-04 15:31:40 -05:00
Evan Almloff
031640c9a4
document RSX_CONTEXT
2022-06-04 14:59:24 -05:00
Evan Almloff
8c6fceb0c7
finish desktop implementation
2022-06-04 14:26:37 -05:00
Evan Almloff
2bcaa2e43e
refactor interperting macro into function and don't rely on cx being in scope
2022-06-04 12:20:56 -05:00
Muhannad Alrusayni
dded91a589
doc: put docs in once place instead of two
2022-06-04 13:40:50 +03:00
Muhannad Alrusayni
252f9343b8
fix: Support Div ()
as component
...
previously I from some reason I thought this not allowed syntax. Some test
failed because of my misunderstood, so now I fix this :D
2022-06-04 13:40:50 +03:00
Muhannad Alrusayni
03a14f4a86
fix: element start with lowercase letter again :D
2022-06-04 13:40:50 +03:00
Muhannad Alrusayni
062f986841
refactor: Remove unused types from scope
2022-06-04 13:40:50 +03:00
Muhannad Alrusayni
37f7fe2ac6
fix: Element must be of lowercase letters only
2022-06-04 13:40:50 +03:00
Muhannad Alrusayni
690efade88
fix: Support Input::<..>
style to for generic components
...
before that, we accepted this style `Input<..>` but to be consistent
with Rust syntax this is dropped now.
> For reference, the two ways of specifying explicit type parameters in
> Rust are:
> // for functions
> let _ = foo::<MyType>();
>
> // for structs
> let _ = Foo::<MyType> { ... };
>
> by @jkelleyrtp
2022-06-04 13:40:50 +03:00
Muhannad Alrusayni
5b079075d7
refactor: clean up commented code.
2022-06-04 13:40:50 +03:00
Muhannad Alrusayni
0b5b7f09db
feat: Support generic component with inline_props
with some limitation
2022-06-04 13:40:50 +03:00
Muhannad Alrusayni
a55b56b403
feat: Support generic components in rsx!()
macro
2022-06-04 13:40:50 +03:00
Evan Almloff
0079f7d18b
WIP: expose pipe for desktop
2022-06-02 13:33:08 -05:00
王一旋
2433b9d305
docs: examples of mistakes
...
docs: add hard_diff example missing parameter
2022-06-02 10:29:41 +08:00
Evan Almloff
3b2ac82e8d
fix spelling of interpreter
2022-05-31 12:18:22 -05:00
Evan Almloff
b921dc4eec
call error handler when error occurs
2022-05-31 12:06:53 -05:00
Evan Almloff
51b87dafcc
derive serde for Errors and Location, and add error handler
2022-05-31 12:03:04 -05:00
Evan Almloff
c94cf9c8e2
return an error when a expression could not be found
2022-05-31 08:29:30 -05:00
Evan Almloff
94448ea4aa
handle formatting options
2022-05-30 18:32:57 -05:00
Evan Almloff
2183ecf3fb
better error handling
2022-05-29 08:04:08 -05:00
Evan Almloff
29be00e9f5
add license
2022-05-28 14:32:49 -05:00
Evan Almloff
c1072aa95a
handle positional_args
2022-05-28 12:11:22 -05:00
Evan Almloff
06390b9be5
allow rsx to be used outside of a proc_macro context
2022-05-28 12:10:32 -05:00
Evan Almloff
4b1ea5879d
Merge https://github.com/DioxusLabs/dioxus into jk/rsx-refactor
2022-05-27 18:26:31 -05:00
Demonthos
6ab79a11c0
Merge branch 'DioxusLabs:master' into master
2022-05-27 18:24:47 -05:00
Evan Almloff
04807a1ef7
update with AttributeValue
2022-05-27 18:18:40 -05:00
Evan Almloff
f9713b2fe9
Merge remote-tracking branch 'origin/master' into jk/rsx-refactor
2022-05-27 17:56:50 -05:00
Evan Almloff
cef2f52058
handle keys
2022-05-27 16:49:32 -05:00
Evan Almloff
94169083f5
use __varibles
2022-05-27 13:09:29 -05:00
Evan Almloff
3c7db0631b
handle iterators and nested rsx calls
2022-05-27 12:21:12 -05:00
Evan Almloff
f703347936
remove key
2022-05-27 11:16:34 -05:00
Evan Almloff
6b03a60fee
handle listeners
2022-05-27 10:50:33 -05:00
Evan Almloff
a0c7e4d78a
add component support
2022-05-27 09:47:44 -05:00
Evan Almloff
07da854455
compare parsed expressions instead of strings
2022-05-26 19:21:53 -05:00
Evan Almloff
5b0a60c294
handle expressions in attributes
2022-05-26 19:16:51 -05:00
Evan Almloff
62cca95905
update interperter to use CapuredContext
2022-05-26 17:02:36 -05:00
Evan Almloff
871f51f91b
It compiles
2022-05-25 14:08:59 -05:00
Evan Almloff
f8143a5fc1
parse segments before to_tokens
2022-05-25 14:08:31 -05:00
Evan Almloff
fb4cb1a05b
remove autoformat
2022-05-25 14:02:43 -05:00
Evan Almloff
ca10d89670
add RsxTextIndex
2022-05-25 11:20:07 -05:00
Evan Almloff
c7c84da8ab
WIP hot reload
2022-05-25 08:58:59 -05:00
Jon Kelley
fe1279a1c5
Merge pull request #415 from mrxiaozhuox/patch-2
2022-05-24 12:40:55 +03:00
Reinis Mazeiks
f792ed7a17
Update virtual_event_from_websys_event based on make_synthetic_event
in the desktop
crate
2022-05-23 10:12:12 +03:00
Reinis Mazeiks
60e74b2ec0
Add missing event types to web (copied from desktop)
...
Related: #416
2022-05-23 10:12:11 +03:00
Evan Almloff
43d750c329
fix clippy
2022-05-22 21:21:28 -05:00
Evan Almloff
db1866090a
fix broken doc links
2022-05-22 20:44:32 -05:00
Evan Almloff
d6eaf8778f
handle backtab
2022-05-21 18:08:52 -05:00
YuKun Liu
8346525db5
Update README.md
2022-05-21 23:33:17 +08:00
YuKun Liu
b964f7c802
Update README.md
2022-05-21 10:11:07 +08:00
duanzhou
328bab0f5b
Fix: enable dioxus-core
serialize
feature in dioxuse-web
2022-05-18 00:30:36 +08:00
Evan Almloff
bdbe452b33
fix merge
2022-05-12 20:52:06 -05:00
Evan Almloff
6ccbe662d2
Merge https://github.com/DioxusLabs/dioxus into tui_focus
2022-05-12 20:34:21 -05:00
Reinis Mazeiks
fcf776e60f
Update web_sys to avoid deprecated API
2022-05-12 18:24:13 +03:00
Reinis Mazeiks
45980f9a1e
Update examples to avoid deprecated API
2022-05-12 15:00:43 +03:00
Reinis Mazeiks
aaf9d4665f
Update interpreter and example
2022-05-12 14:36:52 +03:00
Reinis Mazeiks
ed34e339fc
Tui: construct keyboard data with new api
2022-05-12 14:10:25 +03:00
Reinis Mazeiks
7ee02bc0d8
Enable euclid/serde
when needed
2022-05-12 11:38:27 +03:00
Reinis Mazeiks
addb0703b1
Write docs for wheel events
2022-05-12 11:12:34 +03:00
Reinis Mazeiks
1bb8b04d87
Update examples to avoid deprecated fields
2022-05-12 11:03:51 +03:00
Reinis Mazeiks
d7e4fcda80
Implement idiomatic accessors for WheelData
2022-05-12 10:55:04 +03:00
Jon Kelley
0ac5e76d98
Merge pull request #398 from rMazeiks/rusty-mousedata
...
Idea: Better, more Rusty, MouseData
2022-05-11 23:18:39 -04:00
Reinis Mazeiks
765baf6e48
Rename module input
to avoid naming conflict with element of the same name
...
Not sure if this was supposed to be allowed, but it was causing https://github.com/rust-lang/rust/issues/96934
2022-05-11 13:47:58 +03:00
Reinis Mazeiks
90cb221b82
Merge branch 'master' of https://github.com/DioxusLabs/dioxus into rusty-mousedata
2022-05-11 13:45:34 +03:00
YuKun Liu
77a92a1cf6
feat: use_window add print
& devtool
2022-05-11 14:56:37 +08:00
YuKun Liu
4f55fcb84a
feat: use_window add set_zoom_level
2022-05-11 14:49:46 +08:00
YuKun Liu
8aadeff9d2
fix: add eval script failed log
2022-05-11 14:29:31 +08:00
YuKun Liu
b7e9dca87c
fix: add eval script failed log
2022-05-11 14:09:31 +08:00
Evan Almloff
a5b9200e47
calculate absolute position
2022-05-10 18:13:05 -05:00
Rowin Hernández
95573d1f54
Update useref.rs defualt -> default
2022-05-09 18:48:50 +01:00
demonthos
bd105c9bc6
Merge remote-tracking branch 'origin/master' into tui_focus
2022-05-07 14:08:10 -05:00
demonthos
31c7907f25
update with AttritubeValue
2022-05-07 13:56:11 -05:00
Reinis Mazeiks
5bddafb943
Update tui_keys example and web_sys to use new accessor methods
2022-05-07 18:28:15 +03:00
Reinis Mazeiks
b7447503ea
Merge branch 'master' of https://github.com/DioxusLabs/dioxus into rusty-mousedata
...
Conflicts:
packages/tui/src/hooks.rs
2022-05-07 17:56:03 +03:00
Jon Kelley
dab24e9ad9
Merge pull request #402 from Demonthos/tui_preformance
...
Tui performance improvements
2022-05-07 10:32:09 -04:00
Evan Almloff
6f260e8a4a
move released into mouse condition
2022-05-07 09:16:21 -05:00
Evan Almloff
2ea587359b
only re-render if the state has changed
2022-05-07 09:10:34 -05:00