Commit graph

2989 commits

Author SHA1 Message Date
Sridhar Ratnakumar
91752e7220
cli: Fix typo, resouces (#1516) 2023-10-04 08:20:13 -05:00
Leonard
06814dc17b
Update core-macro README per #1448 (#1510) 2023-10-03 06:59:53 -05:00
Oak
5bcb772511
feat: initial_selected attribute for options (#1508) 2023-10-02 14:08:09 -05:00
Leonard
a2dd926f7f
Rename modules to use snake_case (#1498) 2023-09-26 17:20:29 -05:00
Seungwoo Kang
31780b3ede
liveview: Add `interpreter_glue_relative_uri (#1481)
* liveview: Add `interpreter_glue_relative_uri`

By utilizing `window.location.host` in the client-side JavaScript, we can easily derive the WebSocket URI from a relative path URI. This approach obviates the need for host address retrieval on the server side, unlike the method of serving glue code in liveview using `interpreter_glue`.

* liveview: Merge `.._relative_url` functionality

- Merged `.._relative_url` to current API `interpreter_glue`.
- Edit axum example to work with new feature.

* liveview: Fix clippy warning
2023-09-26 16:35:17 -05:00
Marc Espín
517a43d765
fix: Update server function docs link (#1489) 2023-09-25 08:31:35 -05:00
ealmloff
60ee82942c
restore the tray feature in the desktop crate (#1475) 2023-09-19 16:48:01 -05:00
Jonathan Kelley
27a551d63e
Merge pull request #1467 from ealmloff/expose-runtime-gaurd
Make RuntimeGuard public
2023-09-18 23:12:50 -07:00
Calastrophe
98babe1096
partial ord impl (#1473) 2023-09-18 19:50:57 -05:00
Leonard
07613c806b
Fix #1367 (#1471)
* Bump cargo_toml to 1.16.0

* Format
2023-09-18 18:51:04 -05:00
Evan Almloff
ef6e9098fd fix formatting 2023-09-17 20:06:41 -05:00
Evan Almloff
b9a92a1bd8 fix core exports 2023-09-17 20:03:58 -05:00
ealmloff
848f2d8905
Merge branch 'DioxusLabs:master' into expose-runtime-gaurd 2023-09-17 19:34:33 -05:00
Deep Patel
8b411b8c6d
Update Cargo.toml (#1466)
Remove duplicate `dox` feature that resulted in build fail
2023-09-17 14:18:23 -05:00
Evan Almloff
23c215da02 make RuntimeGuard public 2023-09-17 14:11:13 -05:00
Jonathan Kelley
9c300ff266
Merge pull request #1324 from ealmloff/bool-attrs-ssr
Fix boolean attribute rendering in SSR
2023-09-16 12:01:52 -07:00
Jonathan Kelley
a7551d1e63
Merge branch 'master' into log-server-errors 2023-09-16 12:00:54 -07:00
Jonathan Kelley
13f10fea1b
Merge pull request #1441 from ealmloff/fix-uplink
Expose public methods for manipulating the global runtime
2023-09-16 11:59:59 -07:00
Jonathan Kelley
73169e377e
Merge pull request #1322 from ealmloff/fix-text-node-target-events
Fix events with a text node target
2023-09-16 11:57:33 -07:00
Jonathan Kelley
cb39122247
Merge pull request #1298 from ealmloff/fix-spread-routes
Fix parsing spread routes
2023-09-16 11:56:54 -07:00
Jonathan Kelley
30b958ffa8
Merge pull request #1386 from ealmloff/fix-new-signals-in-effects
Fix leaked signals created in effects
2023-09-16 11:56:40 -07:00
Jonathan Kelley
de649a46d6
Merge pull request #1315 from ealmloff/handle-select-elements
Handle oninput for select elements
2023-09-16 11:56:18 -07:00
Jonathan Kelley
2f1fbf3ca4
Merge pull request #1406 from DioxusLabs/fix-router-query
Fix web query segments
2023-09-16 11:55:43 -07:00
Jonathan Kelley
e59a05141e
Merge pull request #1446 from ealmloff/deduplicate-hot-reload-cli
Deduplicate serve code with hot reloading in the CLI crate
2023-09-16 11:55:16 -07:00
Jonathan Kelley
e4620250bd
Merge branch 'master' into fix-docs-rs-desktop-build 2023-09-16 11:54:08 -07:00
Jonathan Kelley
1a093b895e
Merge pull request #1464 from marc2332/fix/update-doc-links-v3-to-v4
fix: Update doc links from v0.3 to v0.4
2023-09-16 11:53:17 -07:00
Jonathan Kelley
f2b05bcfb4
Merge pull request #1440 from ealmloff/fix-use-future-docs
Fix use_future docs
2023-09-16 11:52:54 -07:00
marc2332
7f8c963cd9
fix: Update doc links from v3 to v4 2023-09-16 19:03:27 +02: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
Jonathan Kelley
b68a1f57e0
Merge pull request #1436 from ealmloff/tracing 2023-09-13 10:41:23 -07:00
Daniel Albl
18dca07e4b
Use a gen in PartialEq for UseSharedState (#1389)
* Special case UseFutureDep for UseSharedState

* Add 'gen' to UseSharedState for use in 'PartialEq'

* Update 'gen' in 'UseSharedState::new'

* Don't require PartialEq for T in UseSharedState

---------

Co-authored-by: Evan Almloff <evanalmloff@gmail.com>
2023-09-13 12:10:03 -05:00
Leonard
ae5dca8f43
Routable improvements (#1461)
* Fix `SegmentType::CatchAll` `Display`

* Rename `display_route_segements` to `display_route_segments` and add dots to docs

* Fix `Routeable::static_routes` and add more route retrieval methods

* Fix Clippy and extract duplication to function

* Return route strings instead of instances

* Remove some methods

* Clippy
2023-09-13 11:55:26 -05:00
Evan Almloff
bdaa284c14 fix formatting 2023-09-12 09:12:32 -05:00
Evan Almloff
de0c34ec60 fix hydrate example 2023-09-12 09:07:57 -05:00
ealmloff
9ff5d24d42
Merge branch 'master' into tracing 2023-09-11 19:43:57 -05:00
Evan Almloff
6e74d08bf5 remove log from a few examples 2023-09-11 19:42:08 -05:00
Evan Almloff
ed9573094c fix ComponentProps partialeq 2023-09-11 15:13:29 -05:00
Gijs de Jong
300cbf4fc6
Remove stray log (#1453) 2023-09-11 08:36:04 -05:00
Evan Almloff
bc3b781136 fix runtime import 2023-09-10 13:25:19 -05:00
Evan Almloff
083ccd765c fix formatting 2023-09-10 13:23:29 -05:00
ealmloff
d16a706a86
Merge branch 'DioxusLabs:master' into fix-text-node-target-events 2023-09-10 08:13:38 -05:00
Evan Almloff
49a127b31e deduplicate serve code with hot reloading in the CLI crate 2023-09-09 16:18:52 -05:00
ealmloff
28d71624ef
Restore context changes 2023-09-09 16:00:29 -05:00
Evan Almloff
9496853fbc expose public methods for manipulating the global runtime 2023-09-08 10:05:58 -05:00
Evan Almloff
66333e9767 improve context tracing 2023-09-08 10:00:05 -05:00
Evan Almloff
da627cdf3a fix use_future docs 2023-09-08 09:44:09 -05:00
Evan Almloff
c55c17cb81 switch to tracing for logging 2023-09-06 17:47:33 -05:00
ealmloff
c8127e164b
Url decode routes (#1407)
* fix a few new clippy lints

* url decode routes

* fix catch all segments

* fix clippy
2023-09-06 12:56:43 -05:00
Valentin Golev
e8ea228759
add initial_value to textarea (#1434) 2023-09-06 12:49:29 -05:00
ealmloff
6662892c10
find attributes and components to drop in lazy nodes (#1376) 2023-09-05 13:43:42 -05:00
ealmloff
d5d974d5a3
Bump the dioxus-cli to 0.4.1 (#1424)
* bump the dioxus-cli version

* bump DIOXUS_CLI_VERSION constant

* Merge branch 'master' into bump-cli
2023-09-04 15:10:27 -05:00
Jonathan Kelley
e799c2efa2
Merge pull request #1420 from ealmloff/only-collect-rsx-macro
Only collect the rsx and render macros in autofmt
2023-09-04 12:11:02 -07:00
Jonathan Kelley
65828d0c2a
Merge pull request #1412 from ealmloff/forward-devtools-feature
Forward Wry's devtools, dox and linux-body flags
2023-09-04 12:01:22 -07:00
Jonathan Kelley
4009064767
Merge pull request #1415 from ealmloff/pin-tauri-deps
Pin Tauri dependencies to a minor version
2023-09-04 11:30:25 -07:00
Marc Espín
95887e836c
fix: Add the --locked param to every cli installation command (#1427) 2023-09-04 07:28:38 -05:00
Evan Almloff
bc94f36934 restrict tauri bundler version to 1.3.0 only 2023-09-03 13:36:56 -05:00
YuKun Liu
2cfa0e4ea9
fix: prettier_build unavailabe (#1410)
Co-authored-by: Evan Almloff <evanalmloff@gmail.com>
2023-09-02 18:31:34 -05:00
Evan Almloff
71264b1ee3 bump bundler to "=1.3.*" 2023-09-02 18:28:44 -05:00
Evan Almloff
ef59696aef Merge branch 'master' into forward-devtools-feature 2023-09-02 18:15:43 -05:00
Evan Almloff
24f22b1b87 Merge branch 'master' into pin-tauri-deps 2023-09-02 18:15:29 -05:00
Evan Almloff
4e1bc13933 Merge branch 'master' into only-collect-rsx-macro 2023-09-02 18:14:04 -05:00
Leonard
94f76946fc
Improve CLI docs (#1404)
* Improve CLI docs

* Fixed all the typos (hopefully).
* Improved the bad English. This encompasses grammar, vocabulary, generally awkward phrases, etc. The result is easier to read and understand, and in some cases shorter.
* Made some formatting improvements. This includes making formatting more consistent, but I changed some of it to be better, at least in my opinion.
* Removed certain unnecessities, the biggest one being the commands documentation. I think this is unnecessary because of the `dx --help` command. It also needs to be updated every time a command gets added/updated/removed. It doesn't really provide much extra insight than `dx --help`.
* Improved plugin documentation. I added a warning to ignore all of it, which is ironic, but the fact is that plugins are probably going to change. But by the time I learned that, I already made some changes to the plugin docs. This includes a better guide on how to get started (although still bad since the plugin system is too messy), and some general changes like the aforementioned English or formatting.
* And more. I can't list it all, but I didn't use any destructive changes. The content might be reformatted (to be shorter or easier to understand), but the meaning isn't lost.

* Fix grammar in packages/cli/docs/src/creating.md

Co-authored-by: Evan Simkowitz <esimkowitz@users.noreply.github.com>

* Update README.md

* Change config example

---------

Co-authored-by: Evan Simkowitz <esimkowitz@users.noreply.github.com>
2023-09-02 17:59:20 -05:00
Marc Espín
a0d1e5de3a
fix: Typo on use_on_unmount (#1421) 2023-09-02 17:51:34 -05:00
Stygmates
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
Evan Almloff
f818d27fa6 only collect the rsx and render macros when formatting 2023-09-02 07:09:02 -05:00
fanyang
4511b37da8
Fix cli compile error due to tauri bundler adding fields (#1416)
New fields for debian settings:

- desktop_template

For NSIS settings:

- custom_language_files
- template
2023-09-02 06:44:31 -05:00
Evan Almloff
d94e2c104c pin Tauri dependencies to a minor version 2023-09-01 10:27:28 -05:00
Jay Graves
392c744ad1
Make incremental a cfg feature. (#1409)
* Make incremental a cfg feature.

* Make the incremental feature default.
2023-09-01 09:55:44 -05:00
Evan Almloff
9ae6b46e20 Forward Wry's devtools, and dox flags 2023-08-31 15:43:26 -05:00
Jonathan Kelley
1ba6ca39e3
Merge pull request #1384 from ealmloff/new-in-scope-signals
Expose new_in_scope for signals
2023-08-30 23:14:58 -07:00
Evan Almloff
0554a5db5d Merge branch 'fix-new-clippy-lints' into fix-router-query 2023-08-30 09:03:41 -05:00
Evan Almloff
2d916ef628 fix web query segments 2023-08-30 08:21:24 -05:00
Evan Almloff
c32875337c Merge branch 'fix-new-clippy-lints' into fix-new-signals-in-effects 2023-08-28 15:47:45 -05:00
Evan Almloff
f3e7f042b4 fix reading signals outside of the vdom 2023-08-26 14:53:39 -05:00
Luca
37eb929d69
Explain features necessary for the pre_cache_static_routes function. (#1401) 2023-08-25 14:00:38 -05:00
Jani 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
Evan Almloff
3ac2346e46 fix a few new clippy lints 2023-08-25 07:54:04 -05:00
Evan Simkowitz
de87ba6548
Update all uncommented commands to remove actions-rs (#1366)
* Update all uncommented commands to remove actions-rs (#1)

* install target in toolchain action

* add linux target explicitly

* try latest

* fix install
2023-08-22 19:48:03 -05:00
Jonathan Kelley
a38860e4f2
Merge pull request #1345 from Demonthos/fix-borrowed-props
Constrain Props lifetime to parent, not child scope lifetime
2023-08-22 11:50:06 -07:00
Evan Almloff
38274da3ee Fix creating signals in effects 2023-08-21 14:42:56 -05:00
Evan Almloff
9c03d68d88 expose new_in_scope for signals 2023-08-21 14:33:52 -05:00
Evan Almloff
7fb6dccc0c fix docs.rs build for desktop 2023-08-21 10:22:13 -05:00
Bruce Mitchener
d8704a0447
deps: Update keyboard-types to 0.7. (#1378) 2023-08-21 09:28:32 -05:00
ealmloff
b2f9430689
Merge branch 'DioxusLabs:master' into fix-borrowed-props 2023-08-19 13:35:24 -05:00
wooden-worm
f652474a6e
FileEngine: expose native file types on different platforms (#1258)
* Get native file

* Correct visibility
2023-08-17 08:03:56 -05:00
Vinicius Gobbo Antunes de Oliveira
fa39408d58
If mkcert not enabled, require cert_path and key_path to be specified or error. (#1342) 2023-08-17 07:58:56 -05:00
Jonathan Kelley
a2df9c2e89
Merge pull request #1364 from Demonthos/fix-core-leak
Fix leak in core because of bump allocated Vec
2023-08-15 13:54:00 -07:00
Jonathan Kelley
fee206ab3f
Merge pull request #1351 from Demonthos/fix-context-in-lists
Fix the context API in lists
2023-08-15 13:39:49 -07:00
Evan Simkowitz
3e24b3d34a
Publish CLI binaries for cargo-binstall (#1358)
* add test release pipeline

* fix

* debug

* oops forgot checkout

* debug

* fix if

* blah

* fix working dir

* fix cargo build path

* add publish step

* add cache

* fix path

* use package instead of working dir

* fix cache path

* fix typo in checksum

* fix upload artifact loop

* add more comments

* add binstall metadata

* test simplified action

* fix target

* remove dispatch

* fix permissions

* remove mac arm config

* update comments

* update comment

* replace unmaintained actions-rs
2023-08-15 13:41:32 -05:00
Daniel Albl
555f4d5834
Add 'with' and 'with_mut' to 'use_shared_state' (#1353) 2023-08-15 13:27:19 -05:00
Evan Almloff
6876d2da1c fix clippy 2023-08-15 13:22:06 -05:00
Evan Almloff
b8600d5144 fix tests 2023-08-15 13:11:03 -05:00
Evan Almloff
943c76b1da Fix memory leak in core 2023-08-15 12:19:05 -05:00
Evan Almloff
2d5a4f82bf Fix the context API in lists 2023-08-13 08:47:27 -05:00
Steven Pecht
1ab5a03aef
Use to identify cargo build artifact if present (#1344) 2023-08-12 19:25:17 -05:00
Evan Almloff
d559fdaeab fix borrowed props with temp values 2023-08-12 19:19:46 -05:00
Evan Almloff
ee2619abfd Merge remote-tracking branch 'main/signals' into signals 2023-08-10 17:20:27 -07:00
Evan Almloff
18d255decc add serde feature to signals 2023-08-10 17:17:25 -07:00
ealmloff
39ab39ac56
Merge branch 'DioxusLabs:master' into signals 2023-08-10 16:31:00 -05:00
Evan Almloff
80ac1a99af fix miri 2023-08-09 14:20:46 -07:00