Commit graph

328 commits

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