Commit Graph
6232 Commits
Author SHA1 Message Date
Evan Almloff d64df87aba Escape HTML as we translate to rsx (#3038) 2024-10-08 07:02:02 -05:00
Evan Almloff 9ffd4b816b Fix restarting coroutines (#3005)
* Fix restarting coroutines

* Fix popup example
2024-10-03 18:48:26 -05:00
William Kim eeb8428847 docs: add korean translation for README.md (#2998)
* docs: add readme.md

* docs: add korean translation for README.md

* fix(docs): links
2024-10-03 09:15:52 -05:00
Chung d0c9b6712d improve use_drop documentation (#3023) 2024-10-01 19:51:27 -05:00
Evan AlmloffandMatt Hunzinger d1c84d9a25 Fix memo dirty flag after unrelated writes (#2992)
* Fix memo dirty flag after unrelated writes

* improve regression test

* Update packages/signals/tests/memo.rs

Co-authored-by: Matt Hunzinger <matt@hunzinger.me>

* Update packages/signals/tests/memo.rs

Co-authored-by: Matt Hunzinger <matt@hunzinger.me>

* Update packages/signals/tests/memo.rs

Co-authored-by: Matt Hunzinger <matt@hunzinger.me>

---------

Co-authored-by: Matt Hunzinger <matt@hunzinger.me>
2024-10-01 15:47:54 +00:00
Evan Almloff 5925f3c8ee Use the absolute path for result in the macro (#3017) 2024-10-01 10:26:55 -05:00
Evan Almloff f9c2f740c2 Pull out asset handler refactor from https://github.com/DioxusLabs/dioxus/pull/2972 (#3000) 2024-10-01 10:25:31 -05:00
Evan Almloff 95976d9a17 Extend head components with global attributes (#2888)
* Fix hot reloading components with keys

* include component formatted segment keys, but not dynamic component value

* extend each head component with the corresponding element

* Allow spreading custom attributes into components

* Fix component_literal_dyn_idx index

* add a new test for hot reloading components with keys

* FIx script without body warning and rendering styles with a href set

* fix clippy
2024-10-01 10:24:22 -05:00
sknauff c2b131f249 File explorer example moved from examples to example-projects. (#3009) 2024-09-30 07:04:11 -05:00
igor d3e1ba415f feat(web): using None instead of Element (#3012)
Can mount the Dioxus component into every node.
As `Element` and `ShadowRoot` are `Node` we can
now mount a dioxus component into a shadow root.
2024-09-30 07:02:06 -05:00
houseme 9f22e9043c docs: Modify Examples 'website (#2996)
* docs: modify Examples url: https://github.com/DioxusLabs/dioxus/tree/main/examples

* docs: Restore document content

* docs: Restore document content for ssr README.md

* revert

* revert

* revert
2024-09-25 00:27:35 +00:00
荆长逯 76ad23c822 chore: add the missing in comment (#2978)
Signed-off-by: jingchanglu <jingchanglu@outlook.com>
2024-09-19 19:56:47 +00:00
Jonathan Kelley b25469208f move render file up a level 2024-09-17 18:31:39 -07:00
Jonathan Kelley 5c6b72627b Fix android/ios desktop builds, move type from native over 2024-09-17 18:25:56 -07:00
Jonathan Kelley fd9229a768 Change file-engine to be file_engine for consistency 2024-09-17 17:49:06 -07:00
Jonathan Kelley 459dbde697 Fix bug in js bundle 2024-09-17 17:47:41 -07:00
Jonathan Kelley 33841c054d Clippy, fmt, configs 2024-09-17 17:45:21 -07:00
Jonathan Kelley c5c05b0997 Remove unneeded build file 2024-09-17 17:44:02 -07:00
Jonathan Kelley 3fb1f739d1 Simplify cli-config, hotreload -> devtools (drop to 0 deps, fast compile times) (#2975)
* simplify cli-config crate
* clean up configs
* add devtools crate, update cargo imports
* fix serve addr, fix websocket proxy issue
* add comment about opt profiles
* rename hot-reload to devtools
2024-09-17 17:18:23 -07:00
Jonathan Kelley 8203ee571f fix feature flag on fullstack 2024-09-17 11:54:15 -07:00
Jonathan Kelley 459bf51173 Fix: fmt 2024-09-17 11:17:46 -07:00
Jonathan Kelley 03f7547cc3 Fix ISRG doctests compilation 2024-09-17 10:30:01 -07:00
Jonathan Kelley 602c605538 Fix ISRG compiling on web by adding more web cfgs 2024-09-17 10:19:57 -07:00
Jonathan Kelley 463e67cd12 Improve compile times by splitting out rsx-hotreload from rsx (#2971)
* fix imports, migrate over rsx-hotreload
2024-09-16 17:35:05 -07:00
Jonathan Kelley b67122dd2a Chore: format some cargo tomls (#2970) 2024-09-16 16:58:19 -07:00
Jonathan Kelley 143ad749ea Split out isrg from ssr and reorient build graph to make interpreter build 2x faster (#2969)
* split out isrg and core-types to speed up interpreter build
2024-09-16 16:49:06 -07:00
Jonathan Kelley f0d814fede Extract some simple cleanups from 2779 (#2966)
* Chore: remove random old test fixture from CLI

* nuke oidc

* remove weird useless desktop example

* remove lua globals vscode setting for cli

* remove cli testcase

* hoist deps in core-macro

* we dont need prettyplease

* add hoisted dependencies

* hoist more despt

* rename rsx_rosetta to dioxus_rsx_rosetta

* drop cache thrashing when listening for features

* drop flag from mobile dep

* drop cli-config warning

* hoist more deps

* clippy...

* we dont use the tools module...

* bump lock
2024-09-16 16:04:20 -07:00
Jonathan KelleyandEvan Almloff 983fcfc616 Chore: hoist example projects for discoverability (#2959)
* hoist example projects, remove oidc

* move over example projects from the separate repo

* Update ecommerce site to the latest version of dioxus

* update wifi scanner to 0.5

* drop the chatbot example; might be restored in a separate PR

---------

Co-authored-by: Evan Almloff <evanalmloff@gmail.com>
2024-09-16 09:11:33 -05:00
Matt Hunzinger a9f87384f8 Skip running nix CI for draft PRs (#2961) 2024-09-14 11:27:41 -05:00
Jonathan Kelley c5f00bf7d4 Chore: remove old cruft in web crate (#2957) 2024-09-13 12:54:28 -07:00
Jonathan Kelley c7124e41fb Add space between rsx and exclamation point (#2956) 2024-09-13 08:31:39 -05:00
Miles MurgawandJonathan Kelley 8d68886310 CLI Fixes & Tweaks (#2846)
Fixes scrolling on vscode using simple fix
 Adds scroll modifier, scroll at 5 lines per scroll while holding shift key.
 Adds error handling for manganis failure that still lets the build run.
 Revises TUI rendering code.
 Move TUI "info bars" to the bottom of the terminal.
 Revised logging system with tracing
 Working [c] clear keybind. This has been removed.
 Removal of [h] hide keybind text (it does nothing)
 Some opinionated cleanups and renames to make tui logic easier to understand.
 Rolling log file & maybe add some more "internal" logging. Closes CLI Rolling Log File #2764
 Removes log tabs. Closes CLI: Color-code logs and get rid of tabs #2857
 Combines info bars.
 Working and good text selection.
 Print launch URL in console.
 Handle log lines properly and add formatting.
 Move MessageSource to a more reasonable location.
 Add some background styling to powerline (info bar) - Tried this and it doesn't look the greatest.
 Log Filtering
 Final Cleaning & Changes - I could do this forever
 Test Linux

---------

Co-authored-by: Jonathan Kelley <jkelleyrtp@gmail.com>
2024-09-13 01:34:19 -07:00
Evan Almloff 87c2f64f13 Fix dx bundle command and resources panic (#2951) 2024-09-13 01:30:47 -07:00
Matt Hunzinger 2733497038 Simplify TodoMVC example (#2935)
* Remove id field from TodoItem

* Remove derived traits from TodoItem
2024-09-12 19:51:42 -05:00
Evan Almloff 37d5f93c21 Remove mention of suspense/streaming in readme comparison - dioxus now supports streaming suspense (#2950) 2024-09-12 19:49:18 -05:00
dependabot[bot] f9635a1426 Bump JamesIves/github-pages-deploy-action from 4.6.3 to 4.6.4 (#2944)
Bumps [JamesIves/github-pages-deploy-action](https://github.com/jamesives/github-pages-deploy-action) from 4.6.3 to 4.6.4.
- [Release notes](https://github.com/jamesives/github-pages-deploy-action/releases)
- [Commits](https://github.com/jamesives/github-pages-deploy-action/compare/v4.6.3...v4.6.4)

---
updated-dependencies:
- dependency-name: JamesIves/github-pages-deploy-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-12 19:00:01 -04:00
Sridhar Ratnakumar 14ce786d98 ci: Add workflow for building flake.nix (#2910)
* ci: Add workflow for building flake.nix

This will build all flake outputs, which primarily is a devShell.

It uses https://omnix.page/om/ci.html to build.

* ci(nix): Use nix cache to reduce CI times

* ci(nix): Run `cargo build` to test devShell
2024-09-12 18:58:13 -04:00
Chung 9bf94a1636 remove unused logic in fullstack launch (#2949) 2024-09-11 07:32:46 -05:00
Chung b20db13e84 add disabled, form and name attributes to fieldset (#2947) 2024-09-10 15:21:58 -05:00
Evan Almloff eecefb796e bump wry (#2945) 2024-09-09 14:57:59 -05:00
Evan Almloff 6ff7a54706 Fix custom launch builder with unsized context types (#2920) 2024-09-07 13:35:44 -05:00
Evan Almloff c11f2ed3cd Allow hooks in the expression of a match statement and if statement (#2902)
* Allow hooks in the expression of a match statement and if statement

* Don't allow hooks in spawn and detect hooks in initialization closures

* Point to DX check when hooks are called conditionally
2024-09-07 13:35:15 -05:00
Evan Almloff 7bb53fe835 Parse trailing route slash (#2896)
* Parse trailing route slash

* Fix typo
2024-09-07 13:34:57 -05:00
dependabot[bot] 50a707d5b6 Bump gix-path from 0.10.10 to 0.10.11 (#2938)
Bumps [gix-path](https://github.com/Byron/gitoxide) from 0.10.10 to 0.10.11.
- [Release notes](https://github.com/Byron/gitoxide/releases)
- [Changelog](https://github.com/Byron/gitoxide/blob/main/CHANGELOG.md)
- [Commits](https://github.com/Byron/gitoxide/compare/gix-path-v0.10.10...gix-path-v0.10.11)

---
updated-dependencies:
- dependency-name: gix-path
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-07 08:46:23 -05:00
ASR-ASU 14a8902374 Use of async_std::task::sleep instead of tokio::time::sleep (#2939) 2024-09-07 08:44:25 -05:00
dependabot[bot] 9816b402fc Bump gix-path from 0.10.9 to 0.10.10 (#2921)
Bumps [gix-path](https://github.com/Byron/gitoxide) from 0.10.9 to 0.10.10.
- [Release notes](https://github.com/Byron/gitoxide/releases)
- [Changelog](https://github.com/Byron/gitoxide/blob/main/CHANGELOG.md)
- [Commits](https://github.com/Byron/gitoxide/compare/gix-path-v0.10.9...gix-path-v0.10.10)

---
updated-dependencies:
- dependency-name: gix-path
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-03 20:11:54 -05:00
dependabot[bot] 66fe34061e Bump quinn-proto from 0.11.6 to 0.11.8 (#2922)
Bumps [quinn-proto](https://github.com/quinn-rs/quinn) from 0.11.6 to 0.11.8.
- [Release notes](https://github.com/quinn-rs/quinn/releases)
- [Commits](https://github.com/quinn-rs/quinn/compare/quinn-proto-0.11.6...quinn-proto-0.11.8)

---
updated-dependencies:
- dependency-name: quinn-proto
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-03 20:11:45 -05:00
ASR-ASUandEvan Almloff 1dfa1b5e7f Use of async_std::task::sleep instead of tokio::time::sleep in examples (#2912)
* Use of async_std::task::sleep instead of tokio::time::sleep

* Make the clock example run on wasm

* Add control_focus and eval examples to Cargo.toml

* Use web-time on desktop; It just falls back to std on non-wasm platforms

---------

Co-authored-by: Evan Almloff <evanalmloff@gmail.com>
2024-09-03 15:16:37 +00:00
ASR-ASU ffb5c98449 Add aspect-ratio property (#2916) 2024-09-03 08:38:01 -05:00
dependabot[bot] 9d099a7f3f Bump webpack from 5.88.1 to 5.94.0 in /packages/extension (#2907)
Bumps [webpack](https://github.com/webpack/webpack) from 5.88.1 to 5.94.0.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.88.1...v5.94.0)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-30 13:49:37 -04:00