Commit Graph
490 Commits
Author SHA1 Message Date
Evan Almloff 355cd9b19e Merge branch 'master' into pr/atty303/1349 2023-11-20 18:37:33 -06:00
Alexander 62719c309a fix keyboard input on calc example (#1639) 2023-11-14 10:39:37 -06:00
Evan Almloff 77d53df532 Merge branch 'master' into pr/atty303/1349 2023-10-31 13:39:20 -05:00
StygmatesandTruong Tan Dat b836851d02 Add openidconnect authentication demo (#1500)
* Add openidconnect authentication demo

* use_atom_ref usage to have a read/write handle on the atom

* Use default

* Code rewrite to better reflect the authentication flow

* Use the env macro instead of the build.rs to load env variables

* Add env variables

* Remove unnecessary dependency

* Add env variables to the root workspace

* Update readme

* Bump openidconnect version

* Use props to pass the client to the child components

* Code clean up

---------

Co-authored-by: Truong Tan Dat <truongt@igbmc.fr>
2023-10-20 12:43:24 -05:00
Alexander 37c6c67a17 refactor todo mvc example (#1556) 2023-10-19 09:26:17 -05:00
Jonathan Kelley 9cdbf81a4b fix clippy lint 2023-10-17 16:06:43 -07:00
Jonathan Kelley 65e21d7874 Change signals example a bit 2023-10-17 15:52:13 -07:00
Jonathan Kelley e819702fc5 Add into_vnode temporary logic for more things
This commit adjusts how rsx! works, making it more forgiving with signals.

Notably, we add the temporaries to if chains too.
2023-10-17 15:42:21 -07:00
Jonathan Kelley 7e2164d6d6 Add toggle 2023-10-15 17:52:01 -07:00
Jonathan Kelley 741bfbc9ac Add toggle to signals example 2023-10-15 17:50:23 -07:00
Jonathan Kelley 14b3fa72e4 Change the semantics of exprs/for loops allocations strategy
This commit adjusts how exprs and for loops are handled within
rsx. This is a breaking change in terms of codegen, but has
slight semantic changes as well.

Now, when exprs/for loops are allocated, they are given a temporary.
The temporary is elided to the <'a> lifetime of the bump, to satisfy
the borrow checker. This fixes issues with signals where exprs/for
loops mapping vecs out of RefCells would be caught up without a
temporary lifetime.
2023-10-15 17:40:56 -07:00
Leonard 2d1234c3d1 Include README and Dioxus logo in package docs (#1536)
* Include README in docs.rs and add Dioxus logo

* Update README.md
2023-10-10 10:52:48 -05:00
Evan Almloff d5b7a6d15e fix fuzzing test 2023-10-04 08:46:24 -05:00
Amr Bashir 9f7a0a9f63 chore: tauri-mobile -> cargo-mobile2 (#1518) 2023-10-04 08:22:22 -05:00
Evan Almloff ee25c03e74 fix some clippy lints 2023-09-27 10:13:45 -05:00
Evan Almloff 76a050314a make spread example more interesting 2023-09-27 10:05:02 -05:00
Evan Almloff b60671e0fe fix non extending attributes 2023-09-27 10:02:49 -05:00
Evan Almloff 7b51bb8060 WIP: add extends to the props macro 2023-09-26 19:23:00 -05:00
Evan Almloff 5b65c4cfb4 implement spreading props in the rsx macro 2023-09-22 10:04:34 -05:00
Evan Almloff 9e167dfdb7 Merge branch 'many_optional_attributes' into pr/atty303/1349 2023-09-22 09:32:05 -05:00
Evan Almloff 31cd15d61f fix clippy 2023-09-22 09:31:13 -05:00
Evan Almloff 5ed116b060 fix bounds on generated element extensions 2023-09-22 09:24:00 -05:00
Evan Almloff 0e0819d284 further simplify spread example 2023-09-22 09:19:54 -05:00
Evan Almloff 97035a4482 simplify spread example 2023-09-20 16:36:43 -05:00
Evan Almloff 7033276c34 Merge branch 'master' into pr/atty303/1349 2023-09-20 16:19:23 -05:00
Evan Almloff fa494349fe add a lifetime to the properties trait and make the manual spread example work 2023-09-20 16:15:11 -05:00
Evan Almloff 9be7773ba7 add to tailwind example 2023-09-19 09:50:30 -05:00
Evan Almloff c0f345e775 add if statements to test and rsx usage example 2023-09-19 09:48:56 -05:00
Leonard c866ae602b Add system for creating component attributes + new #[component] attribute (#1448)
* Add `#[component]` attribute + system for creating component attributes + other stuff

* Delete inlineprops.rs

* Update inline_props.rs

* Cargo fmt

* Fix clippy warnings and paths in props/mods.rs

* Include where clause in `#[inline_props]` output

* Allow Clippy type complexity in `LinkProps`

* Allow the type complexity lint for the entire link.rs file

* Remove snake_case -> PascalCase converter, but rather enforce PascalCase

Also:
- Put the second function inside the main one instead of besides it.
- Simplify

* Simplify type check lints so they don't return false positives

They will not always work, but they won't return any false positives, like for aliases. This is likely going to be replaced by a more polished Clippy-backed linting system.

* Fix #583

* Cargo fmt

* Add docs for `deserialize()` and remove useless comment

* Add `#[component]` to prelude

* Merge branch 'master' of https://github.com/tigerros/dioxus

* #[inline_props] is no more. Except in the docs folder, but that's going to be removed

* Remove docs folder

* Remove docs from workspace

* Resolve `DeserializerOutput` conversation
2023-09-15 09:13:36 -05:00
Marc Espín 95887e836c fix: Add the --locked param to every cli installation command (#1427) 2023-09-04 07:28:38 -05:00
StygmatesandEvan Almloff 1b977fdce9 Add query segment example and documentation (#1417)
* fix a few new clippy lints

* Add query segment example

* Add trait documentation

* Change core package to root package

The core package contains the virtual dom implementation ([here](https://github.com/DioxusLabs/dioxus/tree/master/packages/core)). Root package might be a more clear way to refer to the main directory

---------

Co-authored-by: Evan Almloff <evanalmloff@gmail.com>
2023-09-02 10:24:30 -05:00
Jani MustonenandJani Mustonen 31f8bab20d Add ScopeId::ROOT (#1398)
* add ScopeId::ROOT

* replace ScopeId(0) with ScopeId::ROOT

---------

Co-authored-by: Jani Mustonen <jani.mustonen@taitounited.fi>
2023-08-25 08:31:23 -05:00
Steven Pecht bdfb3b6285 Update tailwind examples to work with multi-page apps (#1339)
* Update tailwind example to work with multi-page apps

Use the absolute path to `tailwind.css` so the example works with multi-page apps. Without this change, the style disappears on page reload.

* Update tailwind Dioxus.toml to use absolute path for tailwind.css
2023-08-12 08:34:42 -05:00
Jonathan Kelley c95f70f55a Merge pull request #1300 from Demonthos/signals
Complete Signals implementation
2023-08-11 13:05:04 -07:00
Evan Almloff f7017fac2e Fix the login form example 2023-08-08 15:45:09 -07:00
Evan Almloff 14c852010b restore clock example 2023-08-08 13:31:38 -07:00
Evan Almloff 190c65b15d fix memo and add tests 2023-08-07 14:31:03 -07:00
Evan Almloff 49001c59d3 add logging to clock example 2023-08-04 17:29:44 -07:00
Evan Almloff b3fbbba711 fix signals in futures 2023-08-04 17:25:40 -07:00
Evan Almloff a6f611eccf fix subscriptions in events 2023-08-04 17:23:57 -07:00
Evan Almloff cb4c46154d fix scope context 2023-08-04 14:12:59 -07:00
Jonathan Kelley 39e89c1fac Bump crate versions, fix any publish errors 2023-07-31 18:49:54 -07:00
Evan Almloff 3eab363e51 Add authors to all crates 2023-07-31 17:30:18 -07:00
ealmloff cfd62e274e Make deprecated use router (#1260)
* make router props expansion better

* fix router data fields

* make a deprecated use_router hook
2023-07-27 10:32:23 -07:00
Jonathan Kelley 30f8218251 Add simpler router 2023-07-26 19:19:51 -07:00
Evan Almloff e7a9161066 fix link component 2023-07-26 10:18:39 -07:00
Evan Almloff 5f0dd3af3e it almost lives? 2023-07-25 18:14:48 -07:00
ealmloff d637ef187c fix all broken examples (#1248) 2023-07-25 14:30:08 -05:00
Evan Almloff 61dc549ba1 Make new enum router less breaking 2023-07-24 11:57:56 -07:00
Miles MurgawandEvan Almloff 6210c6fefe Convert use_eval to use send/recv system (#1080)
* progress: reworked

don't run this, it'll kill your web browser

* feat: use_eval but with comms

* revision: async recv & recv_sync

* revision: use_eval

* revision: standard eval interface

* revision: use serde_json::Value instead of JsValue

* revision: docs

* revision: error message

* create: desktop eval (wip)

* fix: desktop eval

* revision: wrap use_eval in Rc<RefCell<_>>

* fix: fmt, clippy

* fix: desktop tests

* revision: change to channel system

- fixes clippy errors
- fixes playwright tests

* fix: tests

* fix: eval example

* fix: fmt

* fix: tests, desktop stuff

* fix: tests

* feat: drop handler

* fix: tests

* fix: rustfmt

* revision: web promise/callback system

* fix: recv error

* revision: IntoFuture, functionation

* fix: ci

* revision: playwright web

* remove: unescessary code

* remove dioxus-html from public examples

* prototype-patch

* fix web eval

* fix: rustfmt

* fix: CI

* make use_eval more efficient

* implement eval for liveview as well

* fix playwright tests

* fix clippy

* more clippy fixes

* fix clippy

* fix stack overflow

* fix desktop mock

* fix clippy

---------

Co-authored-by: Evan Almloff <evanalmloff@gmail.com>
2023-07-21 17:36:25 -05:00