Commit graph

298 commits

Author SHA1 Message Date
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
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