Commit graph

1754 commits

Author SHA1 Message Date
Evan Almloff
3cd4175e2e remove braces from captured variables 2022-06-05 08:39:50 -05:00
Evan Almloff
2a6d9ed075 handle rsx!{cx, ...} 2022-06-05 07:38:05 -05:00
Evan Almloff
586e29d815 force rerender after rsx is updated 2022-06-04 15:31:40 -05:00
Evan Almloff
031640c9a4 document RSX_CONTEXT 2022-06-04 14:59:24 -05:00
Evan Almloff
8c6fceb0c7 finish desktop implementation 2022-06-04 14:26:37 -05:00
Evan Almloff
bb62254b6b remove refrence to __line_num 2022-06-04 12:26:46 -05:00
Evan Almloff
2bcaa2e43e refactor interperting macro into function and don't rely on cx being in scope 2022-06-04 12:20:56 -05:00
Muhannad Alrusayni
dded91a589 doc: put docs in once place instead of two 2022-06-04 13:40:50 +03:00
Muhannad Alrusayni
af8cd51258 test: Add test for generic components 2022-06-04 13:40:50 +03:00
Muhannad Alrusayni
252f9343b8 fix: Support Div () as component
previously I from some reason I thought this not allowed syntax. Some test
failed because of my misunderstood, so now I fix this :D
2022-06-04 13:40:50 +03:00
Muhannad Alrusayni
03a14f4a86 fix: element start with lowercase letter again :D 2022-06-04 13:40:50 +03:00
Muhannad Alrusayni
062f986841 refactor: Remove unused types from scope 2022-06-04 13:40:50 +03:00
Muhannad Alrusayni
37f7fe2ac6 fix: Element must be of lowercase letters only 2022-06-04 13:40:50 +03:00
Muhannad Alrusayni
690efade88 fix: Support Input::<..> style to for generic components
before that, we accepted this style `Input<..>` but to be consistent
with Rust syntax this is dropped now.

> For reference, the two ways of specifying explicit type parameters in
> Rust are:
> // for functions
> let _ = foo::<MyType>();
>
> // for structs
> let _ = Foo::<MyType> { ... };
>
> by @jkelleyrtp
2022-06-04 13:40:50 +03:00
Muhannad Alrusayni
5b079075d7 refactor: clean up commented code. 2022-06-04 13:40:50 +03:00
Muhannad Alrusayni
0b5b7f09db feat: Support generic component with inline_props with some limitation 2022-06-04 13:40:50 +03:00
Muhannad Alrusayni
a55b56b403 feat: Support generic components in rsx!() macro 2022-06-04 13:40:50 +03:00
Evan Almloff
0079f7d18b WIP: expose pipe for desktop 2022-06-02 13:33:08 -05:00
王一旋
2433b9d305 docs: examples of mistakes
docs: add hard_diff example missing parameter
2022-06-02 10:29:41 +08:00
Alejandro Osornio
6520b24d67
Update index.md
+ Fix outdated documentation
2022-06-01 15:52:43 -05:00
Evan Almloff
3b2ac82e8d fix spelling of interpreter 2022-05-31 12:18:22 -05:00
Evan Almloff
b921dc4eec call error handler when error occurs 2022-05-31 12:06:53 -05:00
Evan Almloff
51b87dafcc derive serde for Errors and Location, and add error handler 2022-05-31 12:03:04 -05:00
Evan Almloff
c94cf9c8e2 return an error when a expression could not be found 2022-05-31 08:29:30 -05:00
Evan Almloff
94448ea4aa handle formatting options 2022-05-30 18:32:57 -05:00
Evan Almloff
2183ecf3fb better error handling 2022-05-29 08:04:08 -05:00
Evan Almloff
29be00e9f5 add license 2022-05-28 14:32:49 -05:00
Evan Almloff
eb270ef062 update component on submitting 2022-05-28 12:52:49 -05:00
Evan Almloff
195dd22206 don't compile dioxus-router unless the router feature is enabled 2022-05-28 12:11:47 -05:00
Evan Almloff
c1072aa95a handle positional_args 2022-05-28 12:11:22 -05:00
Evan Almloff
06390b9be5 allow rsx to be used outside of a proc_macro context 2022-05-28 12:10:32 -05:00
Evan Almloff
4b1ea5879d Merge https://github.com/DioxusLabs/dioxus into jk/rsx-refactor 2022-05-27 18:26:31 -05:00
Demonthos
6ab79a11c0
Merge branch 'DioxusLabs:master' into master 2022-05-27 18:24:47 -05:00
Evan Almloff
04807a1ef7 update with AttributeValue 2022-05-27 18:18:40 -05:00
Evan Almloff
f9713b2fe9 Merge remote-tracking branch 'origin/master' into jk/rsx-refactor 2022-05-27 17:56:50 -05:00
Evan Almloff
cbac6b5326 remove key from example 2022-05-27 17:54:45 -05:00
Evan Almloff
13125fef4e restore dev dependancies 2022-05-27 17:54:36 -05:00
Evan Almloff
cef2f52058 handle keys 2022-05-27 16:49:32 -05:00
Evan Almloff
94169083f5 use __varibles 2022-05-27 13:09:29 -05:00
Evan Almloff
7acc6a553f update example to showcase hot reloading 2022-05-27 13:04:27 -05:00
Evan Almloff
3c7db0631b handle iterators and nested rsx calls 2022-05-27 12:21:12 -05:00
Evan Almloff
f703347936 remove key 2022-05-27 11:16:34 -05:00
Evan Almloff
6b03a60fee handle listeners 2022-05-27 10:50:33 -05:00
Evan Almloff
a0c7e4d78a add component support 2022-05-27 09:47:44 -05:00
Evan Almloff
07da854455 compare parsed expressions instead of strings 2022-05-26 19:21:53 -05:00
Evan Almloff
5b0a60c294 handle expressions in attributes 2022-05-26 19:16:51 -05:00
Evan Almloff
62cca95905 update interperter to use CapuredContext 2022-05-26 17:02:36 -05:00
Evan Almloff
871f51f91b It compiles 2022-05-25 14:08:59 -05:00
Evan Almloff
f8143a5fc1 parse segments before to_tokens 2022-05-25 14:08:31 -05:00
Evan Almloff
71eaafaa00 add example 2022-05-25 14:07:28 -05:00