Commit graph

311 commits

Author SHA1 Message Date
Evan Almloff
037a248ad9 fix queries 2023-06-01 11:09:51 -05:00
Evan Almloff
92755a381d Merge branch 'upstream' into router-typesafe 2023-05-31 17:16:27 -05:00
Jon Kelley
9db13f5823
Merge pull request #1044 from elliotwaite/docs-fix
Clarify hooks rules to mention early returns
2023-05-29 15:03:09 +02:00
Evan Almloff
f963e006c7 fix clippy 2023-05-28 21:23:43 -05:00
Evan Almloff
151a0ac34b fix ssr guide examples 2023-05-28 21:22:39 -05:00
elliotwaite
47f508fd2d Clarify hooks rules to mention early returns 2023-05-24 15:30:39 -07:00
Evan Almloff
b91fb39142 Merge branch 'upstream' into router-typesafe 2023-05-23 11:24:31 -05:00
Jon Kelley
6bd3437e3a
Merge branch 'master' into server-fn 2023-05-18 13:18:41 +02:00
Jon Kelley
e110fee100
Merge pull request #980 from Demonthos/improve-custom-hooks-docs
Improve the custom hooks chapter in the guide
2023-05-18 13:16:05 +02:00
Jon Kelley
d3860e2a16
Merge pull request #1007 from Demonthos/contributor-guide
Create Contributor Guide
2023-05-18 13:14:28 +02:00
Weru
6acec6f020
fix router book link (#1024)
Signed-off-by: weru <fromweru@gmail.com>
2023-05-14 08:16:05 -05:00
Evan Almloff
4a8542c28e fix response spelling 2023-05-11 18:40:02 -05:00
Evan Almloff
ae8a7ccbd2 fix docs build command 2023-05-09 07:24:17 -05:00
Evan Almloff
6fc65e9565 finish guiding principles 2023-05-08 15:42:43 -05:00
Evan Almloff
fe695bbc00 finish the readme walkthrough 2023-05-08 15:17:40 -05:00
Evan Almloff
f593b655e2 start README example internals walkthrough 2023-05-07 18:26:30 -05:00
Evan Almloff
ff91379aaf Merge branch 'upstream' into contributor-guide 2023-05-06 15:20:47 -05:00
Evan Almloff
5f1f3e1b58 start a contributing guide 2023-05-06 15:15:49 -05:00
Evan Almloff
ab1de6e53f finish server function docs 2023-05-04 09:57:11 -05:00
Evan Almloff
515aee6c3c reorganize the fullstack docs 2023-05-02 17:43:07 -05:00
Evan Almloff
a9375af2b4 remove ws message logging 2023-05-02 11:06:54 -05:00
Evan Almloff
579da12ab6 Merge branch 'upstream' into server-fn 2023-05-02 11:05:38 -05:00
Evan Almloff
e6c540320e rename package to dioxus-fullstack 2023-05-02 10:15:34 -05:00
Evan Almloff
3317dc3e17 fix the link to tui widgets in the guide 2023-04-29 07:58:43 -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
Tim Newsome
c904411190
Fix typo in event_handlers.md (#991) 2023-04-27 07:27:07 -05:00
Evan Almloff
61dba2825c Improve the custom hooks chapter 2023-04-24 11:16:53 -05:00
Evan Almloff
7193453fe0 Merge branch 'upstream' into server-fn 2023-04-13 08:09:27 -05:00
Adrian Wannenmacher
0f4af4ffd5
merge upstream changes 2023-04-12 19:41:14 +02:00
Adrian Wannenmacher
231e32d76e
merge upstream changes 2023-04-11 19:21:48 +02:00
Evan Almloff
4a9ebe78d7 fix Linux CI dependancies 2023-04-11 11:22:36 -05:00
Evan Almloff
219af51526 fix cargo check 2023-04-03 17:39:09 -05:00
Evan Almloff
4c22d5809e add fullstack section to the getting started guide 2023-04-03 16:06:23 -05:00
Jon Kelley
83613abbc1
Merge pull request #730 from Demonthos/simplify-native-core
Simplify native core state with ECS and make native-core work with other frameworks
2023-03-27 19:54:11 -07:00
marcerhans
46cc07e048
Updated links in docs for custom use_hook. (#891)
Found some more dead links.
2023-03-17 07:15:18 -05:00
marcerhans
f0c9dadf77
Added mention of StreamExt trait extension. (#886) 2023-03-15 09:08:29 -05:00
Evan Almloff
6ee1c5ea16 fix custom renderer imports 2023-03-14 17:58:42 -05:00
Evan Almloff
41bf87e74f Merge branch 'upstream' into simplify-native-core 2023-03-14 16:21:39 -05:00
Evan Almloff
4b81cdbf1b Update custom renderer guide 2023-03-14 16:06:32 -05:00
Evan Almloff
f34fa5d974 Move dioxus-specifc code into dioxus-tui crate and rename core crate to Rink 2023-03-13 12:04:51 -05:00
marcerhans
2a64822615
Updated link in docs for use_hook. (#880) 2023-03-13 08:12:41 -05:00
Kyle Smith
eee6cbabb2
Update Router book to reflect crate separation and need for web feature. (#873) 2023-03-10 07:07:53 -06:00
Jon Kelley
5b61cbb9a0
Merge pull request #859 from Demonthos/use-shared-state-futures
Make use_shared_state usable in static futures
2023-03-02 11:46:58 -08:00
Evan Almloff
90b4dd806e update docs example 2023-03-02 11:57:58 -06:00
Evan Almloff
ef9731eb74 update docs about dioxus desktop 2023-03-01 13:28:04 -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
Evan Almloff
247d1b40d3 fix the tui widgets example link 2023-02-07 08:04:10 -06:00
Jonathan Kelley
5a99d8c98a chore: dont publish guide 2023-02-06 01:59:49 -08:00
Evan Almloff
b6c7d44a27 fix clippy 2023-01-27 20:35:46 -06:00
Jon Kelley
1b597f43d1
Merge pull request #754 from Demonthos/desktop-hot-reload
Implement hot reloading for Desktop, TUI, and Liveview
2023-01-23 09:48:54 -10:00
Evan Almloff
d2e8fbdade update custom renderer docs 2023-01-21 17:38:15 -06:00
Evan Almloff
3f3db39c28 update doc links 2023-01-15 15:18:12 -06:00
Evan Almloff
22f86ed464 update docs 2023-01-13 16:57:27 -06:00
Evan Almloff
6b4a300880 doc formatting and cleanup 2023-01-12 10:58:12 -06:00
Evan Almloff
351b9fab6f allow custom namespaces 2023-01-12 10:52:24 -06:00
Evan Almloff
9be1df1451 allow disabling logging 2023-01-12 10:32:45 -06:00
Evan Almloff
82048737f4 fix the macro export and WIP hot reloading docs 2023-01-12 08:47:33 -06:00
ealmloff
cd4474cc4f
Update docs to reflect changes in master (#670)
* work on updating docs to master version

* more updates

* more polishing

* finish interactivity chapter

* finish updating core guide

* fix grammer mistakes and typos

* more grammer fixes

* add liveview guide

* remove doc build

* WIP custom renderer docs

* add axum as dev-dependancy to guide

* fix examples

* fix overview example

* use md book fork to fix compilation
2023-01-06 15:00:12 -08:00
Maurice Kayser
c8f88b6428
Fix typo (#702) 2023-01-01 14:41:18 -06:00
Adrian Wannenmacher
dbbfdefc21
Merge branch 'master' of github.com:DioxusLabs/dioxus into router-2 2022-12-23 18:19:02 +01:00
Jonathan Kelley
d3be971f4e chore: rollback to option instead of anyhow 2022-12-19 18:06:13 -08:00
Evan Almloff
c74a16b8d4 remove references to renderer features 2022-12-19 12:10:50 -06:00
Adrian Wannenmacher
58611e8d34
document the redirection limit 2022-12-16 10:55:31 +01:00
Adrian Wannenmacher
a947ce2215
update router book 2022-12-16 10:41:44 +01:00
Adrian Wannenmacher
1890ebc4f7
fix book example section 2022-12-16 10:16:47 +01:00
Adrian Wannenmacher
e3610738ab
add rewritten router book and fix features code 2022-12-15 23:36:02 +01:00
Jonathan Kelley
0bf4725639 fix: namespacing of dynamic attributes 2022-12-07 15:11:51 -08: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
Jonathan Kelley
c1c5821dcf Merge branch 'master' into jk/templates-v3 2022-11-16 22:12:16 -08:00
Jonathan Kelley
0dad91bc08 wip: pass more events 2022-11-15 16:37:23 -08:00
Miles Murgaw
0085b9cb1d
Fix the Android support disagreement in the docs (#614) 2022-11-10 12:41:25 -08: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
Altug Sahin
0c421f6e8c
Document formatting and typo fixes (#495)
* minor formatting

* Internationalization: move guide to en folder and preserve its history. (#494)

* chore: move guide to en folder

* docs: add english as language

* merged conf resolved

* chore: remove outdated docs

* chore: use taffy dimension directly

* Add PT-BR translations (#456)

* Translate final.md, hello_world.md, README.md, ROADMAP.md and SUMMARY.md

* Translatation complete

* Internationalization: move guide to en folder and preserve its history. (#494)

* Clean files and build mdBook with localization feature

* Rebase, remove leftovers and check book builds for every language: 

Co-authored-by: Jon Kelley <jkelleyrtp@gmail.com>

* Remove argument from `use_hook` closure (#496)

Also; update docs for said function

* chore: prevent reference from being uploaded

Co-authored-by: Altug Sahin <altugsahin@gmail.com>
Co-authored-by: Jon Kelley <jkelleyrtp@gmail.com>
Co-authored-by: Breno Rocha <66398400+amindWalker@users.noreply.github.com>
Co-authored-by: Reinis Mazeiks <rMazeiks@users.noreply.github.com>
Co-authored-by: = <evanalmloff@gmail.com>
2022-09-05 13:58:19 -05:00
Reinis Mazeiks
c801d4402e
Fix propagation docs (#526)
* Fix typo - wrong example for "stopping propagation" section

* Move `lib.rs` in guide back to `src`

* Make sure tests get run when guide is updated (there's examples in the guide to check for compilation errors)
2022-08-10 07:23:27 -05:00
Marco Godoy
9538cfe733
Update Docs CI with mdbook translation support (#516)
* Update Docs CI with mdbook translation support #514

* install mdbook with --rev
2022-08-04 10:26:04 -05:00
Marc Espín
df5338f4e6
Fix typos and update code (#513) 2022-07-30 07:20:49 -05:00
Jonathan Kelley
d090b24f8d chore: prevent reference from being uploaded 2022-07-18 13:52:01 -07:00
Breno Rocha
6ea076fa7f
Add PT-BR translations (#456)
* Translate final.md, hello_world.md, README.md, ROADMAP.md and SUMMARY.md

* Translatation complete

* Internationalization: move guide to en folder and preserve its history. (#494)

* Clean files and build mdBook with localization feature

* Rebase, remove leftovers and check book builds for every language: 

Co-authored-by: Jon Kelley <jkelleyrtp@gmail.com>
2022-07-11 13:28:12 -04:00
Jonathan Kelley
2369b0cc7f chore: remove outdated docs 2022-07-09 15:22:54 -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
Jon Kelley
c97ca7dff6
Internationalization: move guide to en folder and preserve its history. (#494)
* chore: move guide to en folder

* docs: add english as language
2022-07-09 12:31:46 -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
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
Reinis Mazeiks
48d96869d3 Reference: remove empty and almost empty pages
(Avoids confusion and improves navigation)
2022-06-30 22:49:19 +03:00
Reinis Mazeiks
0ab2f38314 Guide: remove empty and almost empty pages
(Avoids confusion and improves navigation)
2022-06-30 22:39:34 +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
YuKun Liu
0af69f83f2 Rename hot_reload to hot-reload 2022-06-26 14:23:19 +08:00
Evan Almloff
9e7e5b0859 Merge remote-tracking branch 'upstream/master' into jk/rsx-refactor 2022-06-16 09:17:36 -05:00
Evan Almloff
d422a23c94 add a chapter in the refrence 2022-06-14 09:55:46 -05:00
xTeKc
af951f30ce
update dead link 2022-06-12 04:10:42 -04:00
xTeKc
287cef96b1
fix link 2022-06-12 04:02:21 -04:00
Jon Kelley
33eb59e21f
Merge pull request #431 from AOx0/master
Fix outdated guide section (React-like foo, set_foo)
2022-06-10 11:41:57 -04:00
Alejandro Osornio
6520b24d67
Update index.md
+ Fix outdated documentation
2022-06-01 15:52:43 -05:00
ZingerLittleBee
2cdd142c3e fix: desktop project name in docs 2022-05-23 00:56:08 +08:00
Reinis Mazeiks
45980f9a1e Update examples to avoid deprecated API 2022-05-12 15:00:43 +03:00
Jonathan Moore
21df7d2142
Fix typo 2022-05-05 17:49:08 -05:00
Jon Kelley
f7e67cb2d7
Merge pull request #329 from Demonthos/lazy_tui
Tui Lazy Attributes and Layout
2022-05-02 21:38:18 -04:00