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
Leonard
c866ae602b
Add system for creating component attributes + new #[component]
attribute ( #1448 )
...
* Add `#[component]` attribute + system for creating component attributes + other stuff
* Delete inlineprops.rs
* Update inline_props.rs
* Cargo fmt
* Fix clippy warnings and paths in props/mods.rs
* Include where clause in `#[inline_props]` output
* Allow Clippy type complexity in `LinkProps`
* Allow the type complexity lint for the entire link.rs file
* Remove snake_case -> PascalCase converter, but rather enforce PascalCase
Also:
- Put the second function inside the main one instead of besides it.
- Simplify
* Simplify type check lints so they don't return false positives
They will not always work, but they won't return any false positives, like for aliases. This is likely going to be replaced by a more polished Clippy-backed linting system.
* Fix #583
* Cargo fmt
* Add docs for `deserialize()` and remove useless comment
* Add `#[component]` to prelude
* Merge branch 'master' of https://github.com/tigerros/dioxus
* #[inline_props] is no more. Except in the docs folder, but that's going to be removed
* Remove docs folder
* Remove docs from workspace
* Resolve `DeserializerOutput` conversation
2023-09-15 09:13:36 -05:00
ealmloff
ea69811e70
Merge branch 'master' into bump-wry
2023-09-14 12:55:54 -05:00
Evan Almloff
b1b2537949
Merge branch 'master' into events-2
2023-09-04 07:44:59 -05:00
Marc Espín
95887e836c
fix: Add the --locked param to every cli installation command ( #1427 )
2023-09-04 07:28:38 -05:00
Evan Almloff
885580f3af
update to wry 0.31.0
2023-09-02 18:24:42 -05:00
Evan Almloff
baf36ab9ec
Merge branch 'master' into events-2
2023-09-02 18:14:36 -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
df222c121a
port examples to new events
2023-09-01 15:38:55 -05:00
Jani Mustonen
31f8bab20d
Add ScopeId::ROOT ( #1398 )
...
* add ScopeId::ROOT
* replace ScopeId(0) with ScopeId::ROOT
---------
Co-authored-by: Jani Mustonen <jani.mustonen@taitounited.fi>
2023-08-25 08:31:23 -05:00
Steven Pecht
bdfb3b6285
Update tailwind examples to work with multi-page apps ( #1339 )
...
* Update tailwind example to work with multi-page apps
Use the absolute path to `tailwind.css` so the example works with multi-page apps. Without this change, the style disappears on page reload.
* Update tailwind Dioxus.toml to use absolute path for tailwind.css
2023-08-12 08:34:42 -05:00
Jonathan Kelley
c95f70f55a
Merge pull request #1300 from Demonthos/signals
...
Complete Signals implementation
2023-08-11 13:05:04 -07:00
Evan Almloff
f7017fac2e
Fix the login form example
2023-08-08 15:45:09 -07:00
Evan Almloff
14c852010b
restore clock example
2023-08-08 13:31:38 -07:00
Evan Almloff
190c65b15d
fix memo and add tests
2023-08-07 14:31:03 -07:00
Evan Almloff
49001c59d3
add logging to clock example
2023-08-04 17:29:44 -07:00
Evan Almloff
b3fbbba711
fix signals in futures
2023-08-04 17:25:40 -07:00
Evan Almloff
a6f611eccf
fix subscriptions in events
2023-08-04 17:23:57 -07:00
Evan Almloff
cb4c46154d
fix scope context
2023-08-04 14:12:59 -07:00
Jonathan Kelley
39e89c1fac
Bump crate versions, fix any publish errors
2023-07-31 18:49:54 -07:00
Evan Almloff
3eab363e51
Add authors to all crates
2023-07-31 17:30:18 -07:00
ealmloff
cfd62e274e
Make deprecated use router ( #1260 )
...
* make router props expansion better
* fix router data fields
* make a deprecated use_router hook
2023-07-27 10:32:23 -07:00
Jonathan Kelley
30f8218251
Add simpler router
2023-07-26 19:19:51 -07:00
Evan Almloff
e7a9161066
fix link component
2023-07-26 10:18:39 -07:00
Evan Almloff
5f0dd3af3e
it almost lives?
2023-07-25 18:14:48 -07:00
ealmloff
d637ef187c
fix all broken examples ( #1248 )
2023-07-25 14:30:08 -05:00
Evan Almloff
61dc549ba1
Make new enum router less breaking
2023-07-24 11:57:56 -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
fe971ce181
fix file upload example
2023-07-20 13:20:14 -07:00
ealmloff
8a3d1e47b3
Merge branch 'master' into add-file-data-drag-event
2023-07-19 18:12:57 -07:00
Jonathan Kelley
cd30b42e2d
Merge branch 'master' into jk/remove-dioxus-bin
2023-07-18 18:31:48 -07:00
Jonathan Kelley
41c4b57984
Merge pull request #1074 from kaid/directory-selection-dialog
...
Add directory support for file input.
2023-07-18 18:23:23 -07:00
Jonathan Kelley
a6002a6c42
Merge pull request #1197 from DioxusLabs/jk/simple-suspense
...
Rip out async components in favor of a simpler suspense
2023-07-18 18:10:11 -07:00
Evan Almloff
61e9fd9973
use :.. instead of :...
2023-07-18 16:34:27 -07:00
Evan Almloff
4c3fb1a33f
Merge branch 'master' into router-typesafe
2023-07-17 15:12:25 -07:00
Jonathan Kelley
e751f63030
Dont use suspense in dog app, remove from use_future
2023-07-14 17:17:08 -07:00
Jonathan Kelley
4ab554dfe4
Merge branch 'master' into jk/simple-suspense
2023-07-14 17:13:55 -07:00
Jonathan Kelley
d583e1c750
Fix clippy
2023-07-14 16:34:49 -07:00
Jonathan Kelley
cbd88bbcc3
Rip out async components
2023-07-14 16:15:20 -07:00
Jonathan Kelley
af49cb4ec6
Merge branch 'master' into master
2023-07-14 15:36:28 -07:00
Jonathan Kelley
78d383bf1f
Merge pull request #1128 from marc2332/feat/improved-docs
...
feat(docs): Improved shared state, use_effect and use_memo docs
2023-07-14 15:20:40 -07:00
Jonathan Kelley
df23c3c651
Update more docs
2023-07-14 13:58:49 -07:00
Jonathan Kelley
16763c065b
Rename dioxus to dx in examples and fullstack
2023-07-14 13:53:06 -07:00
ealmloff
cda9aad106
Merge branch 'master' into router-typesafe
2023-07-14 14:36:09 -06:00
Jonathan Kelley
2d8841cf70
Add lazy contexts to signals
2023-07-14 12:52:49 -07:00
marc2332
c07006e9a2
:bowtie:
2023-07-13 22:43:46 +02:00
marc2332
39bce476ae
tweaks
2023-07-13 19:06:43 +02:00
Evan Almloff
7577019946
Merge branch 'master' into add-file-data-drag-event
2023-07-11 17:53:09 -05:00
Kaid
e39d8708fa
Changed directory
to webkitdirectory
in bool_attrs
definitions.
2023-07-10 17:19:11 +08:00
Evan Almloff
05fb8c1e91
Merge branch 'master' into router-typesafe
2023-07-07 18:31:48 -07:00
Jonathan Kelley
d56fabfe9a
Merge branch 'master' into feat/window_close_behaviour
2023-07-06 10:50:27 -07:00
Jonathan Kelley
10a3b228f6
Add some logging and debug
2023-07-05 15:19:26 -07:00
Jonathan Kelley
ea3b199eb2
Android build working too
2023-07-05 14:35:08 -07:00
Jonathan Kelley
5506c568c0
move to newer wry
2023-07-05 13:44:24 -07:00
Jonathan Kelley
2ce8ded74d
FIx desktop for android
2023-07-05 12:49:41 -07:00
Jonathan Kelley
4343abf76d
Add better instructions
2023-07-05 12:20:00 -07:00
Jonathan Kelley
2ad85c9b28
Add a custom index.html for the viewport stuff
2023-07-05 12:06:24 -07:00
Jonathan Kelley
1a5936afda
Add iOS example to mainline!
2023-07-05 11:31:09 -07:00
Benedikt Terhechte
44025db5b0
add to example
2023-07-04 14:48:05 +02:00
marc2332
fb2669c3be
improved shared state example
2023-07-02 22:41:00 +02:00
Jonathan Kelley
6512c153dd
Fix merge errors
2023-06-30 12:48:25 -07:00
Jon Kelley
a0b89de4ca
Merge pull request #1057 from ndarilek/master
...
Add richer API for describing global shortcut accelerators.
2023-06-30 12:27:00 -07:00
Nolan Darilek
c84e028bd6
Add richer API for describing global shortcut accelerators.
2023-06-30 08:10:48 -05:00
Sean L
2b47602c27
Update README.md
...
Fixed incorrect tailwind url
2023-06-30 13:31:59 +02:00
marc2332
a3978d60a8
update
2023-06-28 00:17:36 +02:00
marc2332
8a2f9f3fcb
feat(docs): Improved shared state, use_effect and use_memo docs
2023-06-28 00:15:00 +02:00
DianQK
535435a4cf
Fix the issue of duplicate unique ID for atoms using newtype
.
...
The MergeFunctionsPass in LLVM merges identical functions (https://rust.godbolt.org/z/3nnr9nMne ), resulting in the same function addresses.
2023-06-21 21:50:10 +08:00
Kaid
277436f673
Changed underlying directory attribute to webkitdirectory
, fixed attribute parsing to properly toggle it.
2023-06-06 08:06:27 +08:00
Kaid
37a8fb5391
Add directory support for file input.
2023-06-05 16:47:04 +08:00
Evan Almloff
a9307e57e6
fix CI
2023-06-02 12:33:47 -05:00
Evan Almloff
07446386e6
fix external router examples
2023-06-01 14:10:33 -05:00
Evan Almloff
92755a381d
Merge branch 'upstream' into router-typesafe
2023-05-31 17:16:27 -05:00
Jon Kelley
7e96475951
Merge pull request #895 from Demonthos/inline-custom-elements
...
Allow raw elements if they include a dash
2023-05-29 15:05:19 +02:00
Evan Almloff
b91fb39142
Merge branch 'upstream' into router-typesafe
2023-05-23 11:24:31 -05:00
Jon Kelley
c86aaa6819
Merge pull request #912 from Demonthos/full-tailwind-css-example
...
Create complete tailwind example project with steps to setup tailwind
2023-05-18 13:17:56 +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
19436e210f
Merge branch 'upstream' into query-system
2023-05-05 11:09:25 -05:00
Icekey
f01db7461f
Merge branch 'DioxusLabs:master' into select_example
2023-04-27 21:07:29 +02: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
2f8d6fb49f
fix clippy
2023-04-25 15:07:22 -05:00
Evan Almloff
c1e2592299
implement file events on desktop
2023-04-25 09:26:56 -05:00
Evan Almloff
e487cddd1e
Merge branch 'upstream' into implement-file-engine
2023-04-25 08:16:18 -05:00
Evan Almloff
b0a1f4773e
create file upload example
2023-04-25 08:16:11 -05:00
ealmloff
4b5bea171a
Merge branch 'master' into full-tailwind-css-example
2023-04-24 17:15:05 -05:00
Jon Kelley
6ea61d4c52
Merge pull request #975 from Demonthos/fix-generic-component-example
...
Fix clippy in the generic component example
2023-04-24 13:53:41 -07:00
Antonio Curavalea
459d8d69a7
examples: add PWA w/ Dioxus CLI template ( #977 )
...
* examples: add PWA w/ Dioxus CLI template
* ci: properly set workspace and dependencies
2023-04-23 18:26:23 -05:00
Evan Almloff
425d8c64dd
use the generic parameter in the generic component example
2023-04-23 11:54:40 -05:00
bluekey
ca0e1fb9ab
added select element example
2023-04-23 17:15:06 +02:00
Icekey
b4af761038
fix rng in svg dice example ( #970 )
...
fixed the rng range so that a 6 can be rolled
2023-04-22 11:09:41 -05:00
Evan Almloff
223c7efce2
Merge branch 'upstream' into query-system
2023-04-18 10:33:40 -05:00
Marc Espín
c113d96bbe
fix: Update logos and custom assets example ( #960 )
...
* fix: Update logo and custom assets example
* update old logos
2023-04-15 08:02:04 -05:00
Adrian Wannenmacher
90c7e22f8b
actually make clippy happy
2023-04-12 20:19:01 +02:00
Adrian Wannenmacher
231e32d76e
merge upstream changes
2023-04-11 19:21:48 +02:00
Jonathan Kelley
9571adea30
add counter example
2023-04-09 13:42:40 -07:00
Evan Almloff
2ca5ff96df
Merge branch 'upstream' into query-system
2023-04-04 17:36:27 -05:00
Ivan Tham
3aa7349db7
Add more features to todomvc ( #928 )
...
- toggle-all button
- double click modify todo item
- filter state show mouse pointer
- individual todo item remove button
- correct active item count
2023-04-02 20:03:33 -05:00
Evan Almloff
0029fed24a
create complete tailwind example project with steps to setup tailwind
2023-03-26 11:29:56 -05:00
Evan Almloff
c4027c2618
fix clippy
2023-03-26 07:23:32 -05:00
Evan Almloff
a551c0fcb8
add examples for onmounted
2023-03-24 11:32:42 -05:00
Evan Almloff
03413a68ab
fix formatting
2023-03-19 20:47:16 -05:00
Evan Almloff
209a55da69
allow raw elements if they include a dash
2023-03-19 20:37:40 -05:00
Evan Almloff
cf2a79c173
create global shortcut handler for dioxus desktop
2023-03-01 13:23:15 -06:00
Jonathan Kelley
14a1039808
make clippy happy
2023-02-06 22:18:07 -08:00
Jonathan Kelley
9ebafc46bb
feat: allow 'static futures to be spawned from handlers
2023-02-06 00:54:08 -08:00
Evan Almloff
b6c7d44a27
fix clippy
2023-01-27 20:35:46 -06:00
Igor Loskutov
2113827ed9
Remove tui_* examples from README
2023-01-20 16:31:26 +07:00
Igor Loskutov
d6a9f6e246
Clean up a removed example from examples/README.md
...
code removed in c4a18bc24d
2023-01-20 16:24:43 +07:00
Jon Kelley
f65b051102
Merge pull request #751 from Demonthos/expose-event-handle-desktop
...
Create with_event_handler to expose window event on desktop
2023-01-17 20:47:15 -08:00
Jonathan Kelley
c6d4398e36
make clippy happy
2023-01-15 10:12:22 -08:00
Jonathan Kelley
69a347a551
fix: scopes not dropping their hooks
2023-01-15 10:02:24 -08:00
Evan Almloff
cd17f515d4
change to hook api
2023-01-12 18:48:23 -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
Evan Almloff
4621272f4c
fix fermi example
2023-01-09 21:33:00 -06:00
Jonathan Kelley
24b6874e97
wip: use signal for clock
2023-01-04 12:59:35 -05:00
Jonathan Kelley
14a1e4145e
feat: implement function accessor
2023-01-01 22:57:16 -05:00
Jonathan Kelley
fd92079eb3
feat: add recycling of rts in signals
2023-01-01 22:09:08 -05:00
Jonathan Kelley
c0315e55f4
chore: more signals methods
2023-01-01 22:02:49 -05:00
Jonathan Kelley
4f9d67fb45
feat: simple signals implementation
2023-01-01 19:57:33 -05:00
Maurice Kayser
c8f88b6428
Fix typo ( #702 )
2023-01-01 14:41:18 -06:00
Matt Wisniewski
7e54764652
fix(Examples/Multi-Window): launch the popup content instead of app.
...
Not sure if my assumption is correct but it seemed this was the intention of the popup fn.
2022-12-31 21:00:23 -05:00
Jonathan Kelley
22e71a71bd
feat: return window
2022-12-31 12:19:21 -05:00
Jonathan Kelley
341ccf6de6
fix: properly canonicalize assets
2022-12-31 02:24:18 -05:00
Jonathan Kelley
d3ab397ad3
chore: add transparency and overlay
2022-12-30 22:30:04 -05:00
Jonathan Kelley
4955cfc940
fix: no type
2022-12-30 22:14:28 -05:00
Jonathan Kelley
e3a8e44a69
feat: use dom to allow context injection
2022-12-30 22:10:06 -05:00
Jonathan Kelley
880aa737a6
feat: multiwindow support
2022-12-30 22:05:15 -05:00
Jonathan Kelley
ba20bc08b8
chore: clean up clock
2022-12-30 02:41:09 -05:00
Jonathan Kelley
972084ee32
chore: clean up zoom example
2022-12-30 02:32:53 -05:00
Jonathan Kelley
a13b69788b
chore: rename zoom
2022-12-30 02:11:43 -05:00
Jonathan Kelley
7f418bbfee
fix: window zoom
2022-12-30 02:09:02 -05:00
Jonathan Kelley
6dfe84834d
fix eval example
2022-12-30 02:06:33 -05:00
Jonathan Kelley
7bc8150da7
fix desktop to poll without budget
2022-12-29 20:39:22 -05:00
Jonathan Kelley
bd720e2268
fix: use futuresunordered instead of bespoke waker system
2022-12-29 19:53:43 -05:00
Jonathan Kelley
ff697d41e3
wip: move desktop to main thread and use tokio main
2022-12-29 17:11:29 -05:00
Jonathan Kelley
5a70c6ecf9
chore: swap over router none
2022-12-22 14:45:48 -05:00
Adrian Wannenmacher
13239d0e4b
Merge branch 'master' of github.com:DioxusLabs/dioxus into router-2
2022-12-17 19:02:26 +01:00
Jonathan Kelley
e0390ff608
fix: advance dynamic root
2022-12-16 22:39:27 -08:00
Jonathan Kelley
4d73ffa361
fix: save listeners, borrowed props, and pull back props
2022-12-16 19:54:33 -08:00
Adrian Wannenmacher
053dc6fa3e
rustfmt
2022-12-16 12:08:52 +01:00
Adrian Wannenmacher
5c1915990b
update router examples
2022-12-16 11:55:20 +01:00
Jonathan Kelley
36a8275540
cargo fmt
2022-12-13 15:19:52 -08:00
Jonathan Kelley
5c20e651da
fix: get rollover working
2022-12-13 14:44:47 -08:00
Jonathan Kelley
d4b6bb8a7b
feat: fix the scope rollover bug
2022-12-12 18:31:30 -08:00
Jonathan Kelley
d160f38bc2
fix: parsing of attributes without trailing commas
2022-12-12 11:18:36 -08:00
Jonathan Kelley
dbf59f7c57
Merge branch 'master' of github.com:DioxusLabs/dioxus
2022-12-09 15:04:04 -08:00
Jonathan Kelley
b254d9e761
chore: remove cross-crate doc comments
2022-12-09 15:03:56 -08:00
Evan Almloff
bf47f64852
Merge branch 'upstream' into return-from-js
2022-12-08 11:25:15 -06:00
Evan Almloff
e863ef29b8
allow returning values from use_eval
2022-12-08 10:44:56 -06:00
Jonathan Kelley
4eefc3f854
chore: rename all &cx to cx, make clipppy happy
2022-12-07 13:11:40 -08:00
Jonathan Kelley
5673017def
chore: clean up the repo some
2022-12-06 17:50:25 -08:00
Jonathan Kelley
34d9aafe0e
feat: overhaul ssr
2022-12-06 17:41:47 -08:00
Jonathan Kelley
1b14b309e9
chore: clean up desktop
2022-12-06 16:37:28 -08:00
Jonathan Kelley
b182a6ee75
chore: clean up interpreter and bindings
2022-12-05 16:47:04 -08:00
Jonathan Kelley
18d6b1ad6f
feat: get web working properly
2022-11-30 17:21:10 -05:00
Jonathan Kelley
3c19def550
chore: get create working and simplify dynamic nodes
2022-11-30 11:24:13 -05:00
Jonathan Kelley
7e6cea3a13
wip: continue to tweak suspense
2022-11-22 10:05:13 -08:00
Jonathan Kelley
491bf4332d
wip: stop transmuting reference
2022-11-21 17:00:34 -08:00
Jonathan Kelley
5253ce6b65
wip: usecallback
2022-11-19 13:43:19 -08:00
Jonathan Kelley
57c10174ec
wip: add use_callback hook
2022-11-19 13:21:02 -08:00
Jonathan Kelley
6c677e64da
chore: make for loops not the same
2022-11-17 22:55:46 -08:00
Jonathan Kelley
30ef225812
feat: event handling on desktop
2022-11-17 20:00:39 -08:00
Jonathan Kelley
8f118fe3fd
chore: pull out for loop
2022-11-16 22:20:41 -08:00
Jonathan Kelley
77523bdc31
fix: add comment
2022-11-16 22:18:44 -08:00
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
cd93e469e2
fix: interpreter namespace
2022-11-16 22:10:04 -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
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
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
Demonthos
f89cd20455
fix tui example links ( #607 )
2022-10-28 18:06:39 -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
41b450eedf
chore: remove unnecessary brackets from examples ( #552 )
2022-09-13 14:57:23 -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
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
Reinis Mazeiks
6c323e9fc5
Rework Guide ( #486 )
...
* Move getting started to Guide
* Clean up summary and getting started
* Shorten intro by moving stuff to individual platform docs
* Make intro even shorter, summarize features
* Further cleanup; move development-related docs to separate section
* Make `guide` a crate. Turn code samples into examples so that we can check if they compile
* Rewrite "Describing the UI":
* Focus on RSX syntax (interactivity covered in later chapters); make sure samples are tested; concise language
* Move some "special attribute" samples to the `examples` directory
* Simplify introduction to components
* Simplify introduction to component props
* Document Prop features; add code samples
* Simplify component children docs
* Interactivity: better introduction to events
* Hooks: better introduction
* Remove outdated doc
* Introducs use_ref
* Simplify User Input chapter
* Document event handler props
* Meme editor example
* Meme editor walkthrough
* Add dark mode example
* Guide for context; dark mode example
* Guide: custom hooks
* Guide: conditional rendering
* Guide: rendering lists
* Guide: rendering lists + keys
* Move remaining infor from Reference to guide
* Delete reference book
2022-07-07 08:50:36 +00:00
Demonthos
baaa1752d3
add query context ( #400 )
2022-07-05 19:44:54 -05:00
Jonathan Kelley
2884d72b08
chore: make clippy happy
2022-07-02 23:45:32 -04:00
Jonathan Kelley
fcbd260f1a
chore: clean up example a bit more
2022-07-02 23:17:48 -04:00
Jonathan Kelley
41872a075f
chore: clean up all_events example
2022-07-02 23:12:26 -04:00
Reinis Mazeiks
69dd699b99
Remove outdated example; Add note on performance benchmark
2022-06-30 22:58:34 +03:00
Reinis Mazeiks
f5fe4f8fd9
Re-write examples Readme
...
Delete useless table with mostly dead links.
Categorize examples for easy browsing.
Move missing examples to bottom of page.
2022-06-30 17:10:28 +03:00
Reinis Mazeiks
cae0c1409d
Fix some warnings: avoid deprecated fields
2022-06-29 02:13:01 +03:00
Reinis Mazeiks
6aa800018b
Create similar event demo for TUI
2022-06-29 01:52:03 +03:00
Reinis Mazeiks
0cdaeb1a8d
Delete redundant examples (all events now demoed in single simple example)
2022-06-29 01:24:33 +03:00
Reinis Mazeiks
f30387597a
Add wheel events to event example; make interface prettier
2022-06-29 01:18:09 +03:00
Reinis Mazeiks
8f8a614a5c
Add keyboard events to event example
2022-06-28 23:58:07 +03:00
Reinis Mazeiks
c090741c60
Improve event formatting
2022-06-28 23:46:24 +03:00
Reinis Mazeiks
6a6a028afc
Create new example for all mouse events
2022-06-28 23:36:06 +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
Jonathan Kelley
8be66bd34d
fix: apply some clippy lints and rename the liveview methods to not intersect
2022-06-20 02:24:39 -04:00
Evan Almloff
5d323cae78
Merge remote-tracking branch 'upstream/master' into tui_focus
2022-06-13 17:55:18 -05:00
Jon Kelley
e51b18dcde
Merge pull request #413 from duan-zhou/master
...
Example: SVG Basic shapes from https://developer.mozilla.org/en-US/docs/Web/SVG/Tutorial/Basic_Shapes
2022-06-11 10:32:57 -04:00
Muhannad Alrusayni
af8cd51258
test: Add test for generic components
2022-06-04 13:40:50 +03:00
duanzhou
8d453f52bd
Example: SVG Basic shapes from https://developer.mozilla.org/en-US/docs/Web/SVG/Tutorial/Basic_Shapes
2022-05-21 00:13:48 +08:00
Evan Almloff
6ccbe662d2
Merge https://github.com/DioxusLabs/dioxus into tui_focus
2022-05-12 20:34:21 -05: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
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
YuKun Liu
3f4897cd1c
example: update example
2022-05-12 08:41:30 +08:00
YuKun Liu
31a2ded2b9
example: add window_zoom
example
2022-05-12 00:05:59 +08:00
YuKun Liu
77c22161b9
example: add window_zoom
example
2022-05-12 00:03:42 +08: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
5bddafb943
Update tui_keys example and web_sys to use new accessor methods
2022-05-07 18:28:15 +03:00
Reinis Mazeiks
81d3c990bf
Simplify mouse button tracking
...
delete the shitcodes
2022-05-07 16:11:48 +03:00
Reinis Mazeiks
285a6d080b
Add coordinates to tui_hover example
2022-05-07 15:32:19 +03:00
Reinis Mazeiks
6b2753bd4f
Update example
2022-05-07 10:12:08 +03:00
Reinis Mazeiks
3c447d7266
Documentation and examples
...
Also derive useful traits
2022-05-07 00:49:47 +03:00
Reinis Mazeiks
0dbd3e370e
Rusty MouseData API
2022-05-06 23:54:07 +03:00
Evan Almloff
39a65f86b1
Merge remote-tracking branch 'upstream/master' into pr/Demonthos/390
2022-05-05 12:34:18 -05:00
Reinis Mazeiks
152bad6433
rustfmt
2022-05-04 20:15:55 +03:00
Reinis Mazeiks
b5f5c6ebc1
Add example showcasing 3 different coordinate systems
2022-05-04 16:43:11 +03:00
Evan Almloff
592f6ca225
change button example to showcase tabindex
2022-05-03 17:50:04 -05:00
Evan Almloff
23376fef8e
move focus into event system
2022-05-03 16:44:53 -05:00
Evan Almloff
35ee243d0d
intigrate focus system with tui
2022-05-03 11:02:35 -05:00
Jonathan Kelley
07529e491c
fix: subscription should apply internally to hook
2022-04-24 20:51:52 -04:00
Jonathan Kelley
70a6f95c8c
fix: allow fermi atomref to be cloned
2022-04-24 20:47:22 -04:00
Jonathan Kelley
f67b71c5a5
feat: custom element example
2022-04-24 19:44:20 -04:00
Evan Almloff
9d9aa33e25
add builder pattern and update examples
2022-04-21 06:29:22 -05:00
Evan Almloff
931aceca43
remove stress test
2022-04-20 21:50:49 -05:00
Evan Almloff
c8919ad77b
add benchmark
2022-04-20 21:44:37 -05:00
Jonathan Kelley
29bda8aa48
docs: use tailwindv3 in examples
2022-04-16 16:59:41 -04:00
Jonathan Kelley
049976d23a
feat: allow customizing the index and head
2022-04-16 16:53:47 -04:00
Jon Kelley
56ea9e42fa
Merge pull request #318 from overlisted/eval-stuff
...
Eval stuff
2022-04-04 13:01:35 -04:00
Joshua Kifer
213f54c4d8
Convert all logs to trace
2022-03-27 09:23:44 -06:00
Jonathan Kelley
d50e86492e
fix: instantly resolving futures should not use popping
2022-03-24 11:15:07 -04:00
Ilya Maximov
ee22881e08
Merge branch 'master' into eval-stuff
2022-03-21 22:00:17 +01:00
Ilya Maximov
f4b58c9bb6
add the example to the list
2022-03-21 21:57:51 +01:00
Jon Kelley
4edaeb0aae
Merge pull request #324 from overlisted/inlineprops-generics
...
`#[inline_props]` generics
2022-03-20 20:28:06 -04:00
Jon Kelley
41b7de365e
Merge pull request #320 from naturalethic/form-input-event-radio-value
...
Capture correct radio button value in a form input event
2022-03-20 20:10:52 -04:00
Jon Kelley
d3ac3db296
Merge pull request #315 from Synphonyte/master
...
Option<...> props are optional by default.
2022-03-20 19:59:35 -04:00
Ilya Maximov
a762c25b7e
docs: typo in readme
2022-03-20 21:04:48 +01:00
Ilya Maximov
ff459f7297
docs: an example for inlineprops
2022-03-20 20:59:50 +01:00
Joshua Kifer
ae2e8a8038
Add some radio buttons to the form example
2022-03-19 17:05:48 -06:00
Ilya Maximov
5e475fadd9
add a desktop eval example
2022-03-19 03:11:30 +01:00
Maccesch
a2825fb13c
updated examples with the new optional props
2022-03-16 06:36:39 +00:00
Jonathan Kelley
2d2de36eed
fix: filtering for buttons
2022-03-13 18:53:20 -04:00
Jonathan Kelley
841ad91fe1
fix: dblclick instead of doubleclick
2022-03-11 10:49:38 -05:00
Jonathan Kelley
ff81f1c819
feat: update release posts
2022-03-09 18:11:40 -05:00
Jonathan Kelley
50d509688d
feat: update examples for tui
2022-03-09 13:36:30 -05:00
Jonathan Kelley
3acd643afb
docs: more docs and an errorhandling example
2022-03-08 14:15:18 -05:00
Jonathan Kelley
0f87ebb277
docs: even more docs
2022-03-06 20:37:57 -05:00
Jonathan Kelley
a4ab2d9de0
feat: enable addassign for usestate
2022-03-05 17:07:34 -05:00
Jonathan Kelley
e4fac574ed
docs: fix readme and links
2022-03-05 16:57:09 -05:00
Jonathan Kelley
977ae1d44e
docs: update readme with new usestate
2022-03-05 16:50:16 -05:00
Jonathan Kelley
fb1a848124
fix: format examples
2022-03-05 16:10:17 -05:00
Jonathan Kelley
398ebcf283
examples: update to new usestate
2022-03-05 15:59:35 -05:00
Jonathan Kelley
35b22923b2
fix: some examples
2022-03-05 15:25:09 -05:00
Jonathan Kelley
ea7dfd8be4
examples: make crm use router
2022-03-05 14:36:25 -05:00
Jonathan Kelley
bec2f4129b
Merge pull request #203 from DioxusLabs/jk/local-router
...
Feat: abstract the router on a per-platform basis and add docs
2022-03-05 14:16:18 -05:00
Jonathan Kelley
f47d2900fb
feat: add a redirect
2022-03-05 14:06:54 -05:00
Jonathan Kelley
6c3f5195f4
feat: re-unify set_state
2022-03-04 14:29:45 -05:00
Jonathan Kelley
c19995fed9
fix: debug multistage edits in desktop
2022-03-04 13:17:01 -05:00
Jonathan Kelley
c7627f0b93
fix: tests pass
2022-03-04 13:16:37 -05:00
Jonathan Kelley
901bd5b0cd
examples: clippy
2022-02-28 02:38:17 -05:00
Jonathan Kelley
f69430a308
Merge branch 'master' into jk/all-the-css
2022-02-26 18:17:56 -05:00
Jonathan Kelley
2b17717323
Merge branch 'master' into jk/coroutine-coroutineoverhaul
2022-02-26 17:32:11 -05:00
Jonathan Kelley
8d56552908
fix: focusout issue on todomvc
2022-02-23 18:17:28 -05:00
Jonathan Kelley
07bea88fcc
fix: login example
2022-02-23 08:44:16 -05:00
Jonathan Kelley
6b17522507
feat: textarea example
2022-02-22 21:36:59 -05:00
Jonathan Kelley
9211e1fc78
feat: use future fully figured out
2022-02-21 15:39:47 -05:00
Jonathan Kelley
28716248c5
fix: ping window after virtualdom is ready
2022-02-19 17:34:44 -05:00
Jonathan Kelley
d461ffc011
feat: integrate fermi
2022-02-17 10:38:51 -05:00
Jonathan Kelley
b57987cfb1
chore: clean up example a bit
2022-02-16 14:17:47 -05:00
Jonathan Kelley
4d965c8571
feat: simplify login example
2022-02-16 14:16:03 -05:00
Jonathan Kelley
babe862739
fix: login example to use proper methods
2022-02-16 14:11:31 -05:00
Jonathan Kelley
c6bdb5db76
fix: login form
2022-02-16 14:08:57 -05:00
Jonathan Kelley
4fd4fa0b09
Merge pull request #94 from JtotheThree/master
...
Login Form Example
2022-02-16 14:02:47 -05:00
Jonathan Kelley
9f60dfa8b0
feat: add all the css
2022-02-11 15:50:07 -05:00
mrxiaozhuox
8801e4be00
feat: change example
2022-02-11 11:29:00 +08:00
mrxiaozhuox
04d3098c9b
feat: add more window api
example
2022-02-11 11:21:25 +08:00
mrxiaozhuox
69abb89823
feat: commit code
2022-02-11 10:57:53 +08:00
mrxiaozhuox
da0f596cde
feat: commit code
2022-02-11 10:36:29 +08:00
mrxiaozhuox
557201816b
fix: borderless example
2022-02-11 09:51:12 +08:00
mrxiaozhuox
62f8e71f7f
fix: borderless example
2022-02-11 09:05:32 +08:00
Jonathan Kelley
a939df677a
example: use onsubmit to showcase entry
2022-02-04 21:02:53 -05:00
Jonathan Kelley
169f1dac11
Merge branch 'master' into jk/form-ma
2022-02-04 18:10:26 -05:00
Jonathan Kelley
6f10af0cc5
Merge pull request #200 from DioxusLabs/jk/no-more-buildrs
...
fix: remove code generation entirely
2022-02-04 15:07:13 -05:00
Jonathan Kelley
b4391a3eaa
fix: tweak the js bindings while we're at it
2022-02-04 02:44:27 -05:00
Jonathan Kelley
d758dc6065
feat: form works in web
2022-02-04 02:13:35 -05:00
Jonathan Kelley
89cfda4bf9
fix: add attributions
2022-02-03 13:21:20 -05:00
Jonathan Kelley
a9ac0568e2
fix: allow prevent_default on svg
2022-02-03 13:19:41 -05:00
Jonathan Kelley
7c06b3a9a2
Merge branch 'master' into jk/form-ma
2022-02-01 15:24:19 -05:00
Jonathan Kelley
0c0f638c47
Merge pull request #180 from mrxiaozhuox/borderless-frame
...
Add support for desktop context, borderless frames, minimize, maximize, and other window-related goodies through the imperative `use_window` hook.
2022-01-31 19:53:27 -05:00
mrxiaozhuox
bead035969
feat: export use_window
2022-02-01 08:43:54 +08:00
Jonathan Kelley
6905bf98d7
chore: clean up examples and fix link opening code
2022-01-31 19:40:48 -05:00
mrxiaozhuox
f1fe8f1d2a
fix: change hooks name
2022-02-01 08:39:31 +08:00