Commit graph

6202 commits

Author SHA1 Message Date
Jonathan Kelley
c7124e41fb
Add space between rsx and exclamation point (#2956) 2024-09-13 08:31:39 -05:00
Miles Murgaw
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-ASU
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
Evan Almloff
aa0ea444cf
Fix ordering issues when with_menu(None) is called before setting the window builder (#2903) 2024-08-29 15:51:31 -05:00
Evan Almloff
4676171861
Fix hot reloading components with keys (#2886)
* Fix hot reloading components with keys

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

* Fix component_literal_dyn_idx index

* add a new test for hot reloading components with keys

* Even more tests

* make clippy happy

* fix typo
2024-08-28 18:53:11 -05:00
Evan Almloff
0e937daaa1
Finish the running examples section of the readme (#2889) 2024-08-28 18:52:53 -05:00
Evan Almloff
e5696cd72f
Fix script component src attribute (#2887) 2024-08-28 18:52:36 -05:00
Marc Espin
91112734f6
Revert "feat: Manual impl of PartialEq for Coroutine" (#2899)
* Revert "feat: Manual impl of PartialEq for `Coroutine` (#2895)"

This reverts commit e6efd973d8.

* Update use_coroutine.rs

* Update use_coroutine.rs

* Update use_coroutine.rs
2024-08-28 16:09:31 +00:00
Sridhar Ratnakumar
e552251683
Restore Nix devShell support (#2890)
* nix: Avoid Linux only packages on macOS

* nix: Update flake inputs to get new compiler

In particular, updating nixpkgs & rust-overlay gets us Rust 1.80.1

* Fix partialeq for coroutine

* add a comment about manual implementation of traits for coroutine

---------

Co-authored-by: Evan Almloff <evanalmloff@gmail.com>
2024-08-28 09:25:25 -05:00
Marc Espin
e6efd973d8
feat: Manual impl of PartialEq for Coroutine (#2895) 2024-08-27 15:03:33 -05:00
Drew Pirrone-Brusse
a575a425e3
Add placeholder doc comments to macro-generated enums (#2872)
* Add placeholder doc comments to macro-generate enums

* Add doc comments to generated router parse error enums

---------

Co-authored-by: Evan Almloff <evanalmloff@gmail.com>
2024-08-26 08:26:46 -05:00
Drew Pirrone-Brusse
eac7f65551
Bump dependencies to transitively bump git2 from 0.18 to 0.19 (#2873)
* Bump built to version 0.7.4

* Bump cargo-generate to 0.21.3

* Update Cargo.lock
2024-08-22 18:05:36 -07:00
Evan Almloff
be630a9d3f
Bump sledgehammer (#2879)
* bump sledgehammer

* Bump minor sledgehammer utils version
2024-08-22 18:04:45 -07:00
Jonathan Kelley
005d52468d
Fix: clippy, dont throw error on commas (#2869)
* Fix: clippy, hotreload css blocks, raw blocks

* fix test

* okay nevermind
2024-08-20 23:57:56 +00:00
Jonathan Kelley
5c002686d0
Update README.md to highlight both licenses (#2868) 2024-08-20 17:20:48 -05:00
Evan Almloff
effc0a3b94
Make use_callback and Callback bring the runtime with them (#2852)
* Move the runtime along with Callback
2024-08-20 14:58:53 -07:00
Evan Almloff
5a7a91323a
Make desktop fullstack work with the CLI (#2862)
* Make desktop fullstack work with the CLI
* Simplify desktop fullstack example
* move the profiles to the workspace
2024-08-20 14:57:51 -07:00
Evan Almloff
6a46a66c9a
Fix hot reload custom element (#2866)
* Fix hot reloading attributes on web components
2024-08-20 14:56:47 -07:00
ASR-ASU
3c699aad26
Enable wry linux-body feature flag for linux os target (#2856) 2024-08-20 12:06:44 -05:00
Miles Murgaw
8e613d3bcc
fix: cli progress (#2840) 2024-08-19 14:10:53 -07:00
Jonathan Kelley
4963aa3118
fix autofmt: don't panic when writing blocks out without a srcfile (#2854)
* fix: don't panic when writing blocks out
* also fix serialization for hotreload
* fix windows line endings
2024-08-16 21:55:30 -07:00
Evan Almloff
b47a6cf83e
Move to a generic GlobalLazy<T> (#2851)
* Expose a generic lazy type

* Switch to generic lazy globals

* simplify global lazy context a bit

* rename LazyGlobal to Global

* use Memo::global in more examples

* Fix soundness issue with deref_impl. It relies on the size of self, so it cannot be safe

* add a comment about safety

* Make clippy happy

* fix formatting

* Restore changes to signal impl

* Add helper methods for global signal and global memo to make getting the inner value easier
2024-08-16 17:57:41 -05:00
Miles Murgaw
668d5415c8
Fix: Make Toast Fixed & Increase Z-Index (#2850) 2024-08-16 10:54:35 -07:00
Jonathan Kelley
c21b44a4e6
fix collapsing of multiline components and rsx!{} calls (#2849) 2024-08-15 17:03:58 -07:00
Evan Almloff
40dc14389e
Don't rebuild when the code is in an invalid intermediate state (#2848)
* don't rebuild when the code is invalid

* Fix comment
2024-08-15 12:45:05 -07:00
Jack Lund
ecb077d734
fixes #2833 (#2835) 2024-08-14 22:09:12 -07:00
ASR-ASU
2f49a89638
Add the onresize event handler to Element (#2479)
* Add the capability to handle resize event for web target

* Add the capability to handle resize event for desktop target

* Return all the sizes, not just the first one

* Fix conversion from platform to generic ResizedData for liveview

* Update the generated interpreter js code base

* Fix clippy warnings

* Fix inconsistent use of block_size and inline_size

* Rename `onresized` event to `onresize`

* Remove the the special-casing logic from the binding logic

* Propagating the resize events using CustomEvent

* Fix case convention in core ts

* revert changes to unified bindings

* Cleanup as suggested

* add a resize example

* Fix desktop resize events

* remove tracing from resize example

* use the raw resize entry so we can downcast on web

* remove unused ResizeEventDetail

---------

Co-authored-by: Evan Almloff <evanalmloff@gmail.com>
2024-08-15 01:23:49 +00:00
Evan Almloff
4d6fb74e87
Fix hot reloading component properties out of order (#2842)
* Fix hot reloading component properties out of order

* ignore signal write warnings in hot reloading

* Fix hot reloading components with only some literal properties

* Add a test for hot reloading component properties
2024-08-14 15:18:37 -07:00
Evan Almloff
1e03e3946d
queue hot reload changes for future clients (#2843) 2024-08-14 14:55:04 -07:00
Jonathan Kelley
2f30c73678
Fix side-by-side fragments by walking in reverse (#2841)
* got a repro, but no solution :(

* hmmmmm 🤔

* awyayayayayayya

* omg it's because we dont create in rev

* Make nodes rev

* fix tests compile

* Clean up PR

* revert changes to native

* Clean up PR, add test
2024-08-14 19:38:54 +00:00
Jonathan Kelley
851abe82d5
Fix non-brace delimeters in nested macro formatting (#2831) 2024-08-13 22:47:43 -07:00
Evan Almloff
d649b0c54d
Fix mount use after removal/Simplify mounts a bit (#2834)
* remove clone mounted; mounted nodes should never leak into components?

* Remove the mount from vnodes after unmounting them

* Fix use after removal in iterator diffing

* remove logs

* Re-fix keyed list diffing

* Use new.len for diffing keyed lens and remove redundant check

* simplify core list diffing logic a bit

* remove println

* add proper asserts for new tests

---------

Co-authored-by: Jonathan Kelley <jkelleyrtp@gmail.com>
2024-08-13 22:47:12 -07:00
Evan Almloff
959ab67624
Fix templates merging in debug mode in macros (#2828)
* Fix templates merging in debug mode in macros

* Fix clippy

* Fix web-sys scroll to deprecated warning
2024-08-13 20:18:54 +00:00