Commit graph

2109 commits

Author SHA1 Message Date
Jonathan Kelley
1a18911e21 fix: readme html 2022-10-07 01:04:17 -07:00
Jon Kelley
4f1cf78e68
design: make the homepage snazzier (#580)
* feat: snazzy header

* feat: better svg

* fix: optimize svg for safari

* feat: prettier homepage
2022-10-07 01:00:32 -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
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
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
Jon Kelley
41b450eedf
chore: remove unnecessary brackets from examples (#552) 2022-09-13 14:57:23 -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
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
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
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
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
d090b24f8d chore: prevent reference from being uploaded 2022-07-18 13:52:01 -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
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
7fdc72726d
Exclude benchmarks from testing (#492)
* Exclude benchmarks from testing
2022-07-07 09:59:00 -04:00
Reinis Mazeiks
726e1d50bd
Remove reference from docs CI (#491) 2022-07-07 06:29:40 -05: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
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