Commit Graph
6370 Commits
Author SHA1 Message Date
Jonathan Kelley 94a499c900 fix: print error: messages and their contents from cargo (#3336) 2024-12-10 21:50:24 -08:00
Jonathan Kelley 49caa2b113 fix: toasts (#3333) 2024-12-10 21:11:05 -08:00
Jonathan Kelley e598cfe31c Fix merge conflict causing CLI lifetime to be wrong 2024-12-10 17:08:45 -08:00
Evan Almloff d89ab3cfad Always run toast eval inside the runtime (#3313) 2024-12-10 16:47:51 -08:00
Jonathan Kelley ca70e8660d feat: android asset hotreloading (#3332) 2024-12-10 16:46:30 -08:00
Jonathan Kelley 6a10fd8d78 fix: drop target list to make docsrs build happy (#3329) 2024-12-10 16:24:57 -08:00
Miles Murgaw b20c8ac277 Fix: Windows Manganis Asset Hot Reload (#3330)
* fix: windows asset hot reload

* revision: canonicalize err handling
2024-12-10 16:24:39 -08:00
Evan Almloff 38cb2759e8 Fix enable_out_of_order_streaming doc example and manganis macro remote example (#3317) 2024-12-09 11:58:10 -08:00
Evan Almloff b643461129 Fix hot reloading stylesheets with an existing query parameter and deduplicate random query param (#3315) 2024-12-09 09:09:57 -08:00
Jonathan Kelley 3326e6b2fa bump wasm-bindgen and js-sys 2024-12-07 22:40:07 -08:00
Jonathan Kelley e2e565c889 split typo checker out so it runs against markdown 2024-12-06 20:02:04 -08:00
Jonathan Kelley 46ee13fb2d Fix 404 links 2024-12-06 19:57:04 -08:00
Jonathan Kelley 30f760ca15 Feat: Release Dioxus v0.6 2024-12-06 19:54:08 -08:00
Jonathan Kelley e00ebec804 Fix readme typos 2024-12-06 19:34:40 -08:00
Jonathan Kelley 66a50240bc Update all docs links to 0.6, release 0.6 (#3225)
* update doc links to 0.6
* add new splash pages for crates
* update keyword features
* remove some unnecessary links
2024-12-06 19:15:15 -08:00
Jonathan Kelley d7d2c2fd53 Fix: move the hotreload msg into debug-only so it's so long 2024-12-06 18:18:34 -08:00
Jonathan Kelley 1fd5680937 fix: asset copy counter 2024-12-06 18:00:16 -08:00
Jonathan Kelley 7d490dc3bd feat: integrate dioxus-logger inline (#3302)
* feat: integrate dioxus-logger inline

* remove log/simple logger references

* fix: add dioxus-data-id-0 to root elements to not emit errors internally

* drop config.toml and use cargo.toml profiles instead

* make clippy happy with the unit value lint

* feat: better presentation for logging
2024-12-06 16:27:05 -08:00
Jonathan Kelley 995a529b2f feat: some simple UI tweaks to CLI (#3301) 2024-12-06 15:15:42 -08:00
Jonathan Kelley 02b2a12011 make wasm compile a bit faster 2024-12-06 13:43:55 -08:00
Jonathan Kelley fb85726084 longer ssg timeout 2024-12-06 12:12:00 -08:00
Jonathan Kelley 2c9d8aea56 fix: allow post_create on dx new to fail silently 2024-12-06 12:04:02 -08:00
Jonathan Kelley aa7d952a72 fix: never cache spanless expressions in autofmt (#3297)
* fix: never cache spanless expressions

* clippy
2024-12-05 14:19:03 -08:00
Miles Murgaw f3b6ec5a2c fix: flush cargo logs (#3282) 2024-12-05 10:50:30 -08:00
Miles Murgaw bff5478fdf Feat: Manganis SCSS Support (#3294)
* feat: scss manganis support

* revision: make ScssLogger private
2024-12-05 10:41:44 -08:00
Jonathan Kelley e6f76c7e75 fix wasm-bindgen verify logic 2024-12-04 18:34:43 -08:00
Jonathan Kelley 0974550c9f fix: line clipping and overlapping (#3291) 2024-12-04 17:50:18 -08:00
Jonathan Kelley d738effb6e simplify leptos comparison (#3292)
* simplify leptos comparison
2024-12-04 17:49:01 -08:00
Jonathan Kelley 5bfdc039db Fix performance of wasm-bindgen-cli by bumping walrus 2024-12-04 13:28:08 -08:00
Evan Almloff 29a7325bb7 Expose streaming options to choose between full prerendering and out of order streaming (#3288)
* expose streaming options to choose between full prerendering and out of order streaming

* add examples to streaming_mode
2024-12-04 13:25:08 -08:00
Miles Murgaw 2db758ad7b feat: reexport cargo-metadata in wire-format (#3281) 2024-12-03 20:06:27 -08:00
Jonathan Kelley 1a30a2f75f Publish 0.6.0-rc.0 2024-12-02 17:35:25 -08:00
Jonathan Kelley 54db36c023 Chore: small tweaks to cli logging + cfbundlename 2024-12-02 17:20:44 -08:00
Jonathan Kelley 1cbfcde6cd improve build times by extracting asset opt into its own crate (#3273)
* improve build types by extracing asset opt as a dylib
* dont use dylib, but let regular workspace caching do the heavy lifting
* add prebuild to cli for better lock contention
* hoist deps
* disable slow tests
* re-enable sequential, debug=0 for dev
* use vfs for windows
* dont cache on failure, fix windows vfs caceh
* free disk space re-order
* add clippy + fmt to windows channel
* yoink makefile
* proper rustfmt/clippy on toolchain
* set incremental to zero since cargo-cache disables it
2024-12-02 16:52:40 -08:00
79a2f023e7 Add the onvisible event handler to Element (#2911)
* Add the `onvisible` event using the IntersectionObserver

* Add a visible example

This example is based on https://codepen.io/ryanfinni/pen/VwZeGxN

* Remove web-sys CustomEvent feature for html package

* update js bindings and hash

* Use dioxus doc instead of lorem ipsum

* Fix clippy warning

* Add get_target method to the event data

* Make `get_time` return an Instant instead of a f64

* fix merge conflicts, compilinga

* remove target

* small nits

* serialzie as time_ms

* fix timing, works on desktop

* remove latent nits, fix hash

* box size clippy

* fix browserlist cargo.lock

---------

Co-authored-by: Evan Almloff <evanalmloff@gmail.com>
Co-authored-by: Jonathan Kelley <jkelleyrtp@gmail.com>
2024-12-02 13:51:27 -08:00
Jonathan Kelley b114ed39f3 drop reference types due to deprecation, pin browserlist (fix ci) (#3272)
* drop reference types due to deprecation

* also downgrade browserlist
2024-12-02 13:34:14 -08:00
Evan Almloff 5fc099b30a document Write, GenerationalRef, and GenerationalRefMut (#3253) 2024-12-02 11:35:33 -08:00
Evan Almloff 9dc567255a Fix fullstack axum integration docs (#3263)
* Fix broken fullstack doc tests

* include all features in doc test

* fix clippy
2024-12-02 11:35:13 -08:00
Evan Almloff 354c4ce9cc Fix diffing cloned rsx nodes by deep cloning nodes before mounting them (#3271)
* Fix diffing cloned rsx nodes by deep cloning nodes before mounting them

* fix clippy
2024-12-02 11:35:01 -08:00
Miles Murgaw 2c1215c6a4 fix: legacy folder asset (#3264) 2024-12-02 11:34:34 -08:00
Evan Almloff a7806583b2 Fix hot reloading identical event handler closures (#3270) 2024-12-02 11:34:15 -08:00
igor f257529bec chore(web): bump web-sys & js-sys to 0.3.70 (#3256) 2024-11-27 10:45:36 +03:00
Evan Almloff 3d62fbf021 Fix base path on web and fullstack (#3247)
* Create a crate for constant serialization of config structs for manganis

* use SerializeConst for the image asset builder

* switch to a declarative macro for assets

* clean up asset macro a bit

* add serializable options for each asset type

* serialize const vec

* Add unique path formatting

* implement the new manganis macro

* optimize assets in the CLI

* Fix clippy

* Fix assets with dioxus formattable

* reduce fuzzing test limits

* use the new syntax in examples

* fix formatting

* Final doc and test pass on const-serialize

* fix avif support

* Fix manganis doc tests

* cache asset optimization

* Split out asset and bundled asset

* make hash pointer width independent

* remove const serialize cargo lock

* Fix manganis macro docs

* all tests passing

* add constvec::is_empty method to fix clippy lint

* remove nasm feature

* simplify test_rsplit_once test so typos passes

* fix range syntax for stable

* revert example change from clippy fix

* remove dioxus-static-site-generation workspace dependency

* always accept unix paths

* fix windows path seperator

* fix folder asset hash

* Optimize assets in a blocking task

* Fix asset options docs

* Document Asset and BundledAsset

* move manganis back into it's own folder

* simplify the linker macro a bit

* add more docs to AssetParser expansion

* fix manganis core doc test

* add image format helpers

* Fill in new cargo.tomls

* fix folders with explicit options

* Split by  both unix and windows path separators and take the smallest one

* fix string length

* Fix base path on web and fullstack

* Fix assets with base path

* fix fullstack base route with trailing slash

* fix clippy
2024-11-27 10:40:55 +03:00
1e8693a0e8 wgpu windows (fixed) (#3257)
* Working triangle rendering with wgpu in examples. Resize needs work in order to not reinitialize everything but only the bits needed. Naming of variables and resources are wonky and not the greatest.

* The child window wasn't being resized along with the parent. This works. the abstractions in place should be passed the bounds rect down into the desktopservice to resize as opposed to in the app impl instead of how they are rn.

---------

Co-authored-by: Vineeth Yeevani <vineethyeevani@Vineeths-MacBook-Air.local>
Co-authored-by: Vineeth Yeevani <vineeth.yeevani@gmail.com>
2024-11-26 18:44:53 +01:00
Ryo Hirayama e1457744f0 Fix hydration race condition (#3240)
* Fix mount_to_root

* Remove WebsysDom.mount
2024-11-26 18:43:02 +01:00
Miles Murgaw 3af7d34ef3 Fix: CLI Windows Write exe Errors (#3239)
* fix: windows write exec errors
* revision: gate kill_all behind windows
2024-11-26 18:14:35 +01:00
Evan Almloff f9617c8d33 Restore manganis optimizations (#3195)
* Create a crate for constant serialization of config structs for manganis
* use SerializeConst for the image asset builder
* switch to a declarative macro for assets
* add serializable options for each asset type
* implement the new manganis macro
* optimize assets in the CLI
* Fix assets with dioxus formattable
* reduce fuzzing test limits
* use the new syntax in examples
* fix avif support
* Fix manganis doc tests
* cache asset optimization
* Split out asset and bundled asset
* make hash pointer width independent
* Fix manganis macro docs
* add constvec::is_empty method to fix clippy lint
* remove nasm feature
* simplify test_rsplit_once test so typos passes
* revert example change from clippy fix
* always accept unix paths
* fix windows path seperator
* fix folder asset hash
* Optimize assets in a blocking task
* Fix asset options docs
* Document Asset and BundledAsset
* simplify the linker macro a bit
* add more docs to AssetParser expansion
* add image format helpers
* Split by  both unix and windows path separators and take the smallest one
2024-11-26 18:12:24 +01:00
Jonathan Kelley 31d72db82d fix android serverfns (#3231) 2024-11-17 01:57:13 -05:00
Jonathan Kelley 493c5c7532 properly expose all symbls in manganis without linker intercept (#3230)
* force a volatile read of manganis symbols to preserve them in the final binary
2024-11-17 00:36:56 -05:00
Jonathan Kelley 017478d212 feat: traverse the target directory instead of intercepting the linker to collect assets (#3228)
* feat: simply traverse the filesystem instead of intercepting the linker

* handle LTO approach too

* typo...

* add deeplinker just in case
2024-11-16 22:15:00 -05:00