Commit Graph
4603 Commits
Author SHA1 Message Date
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
Chris Rogus 1b54cb95a0 fix the downcast for formdata try_as_web_event (#3227) 2024-11-16 19:20:51 -05:00
Jonathan Kelley fe1dd03732 only specify branch if it's none 2024-11-16 14:32:34 -05:00
Jonathan Kelley 7d353c9f17 feat: enable versioned templates (#3223)
* feat: enable versioned templates

* no subtemplate for 0.6
2024-11-16 12:56:03 -05:00
Andrew Voynov fca5a82e2b Fix (and rewrite) dx init/dx new (#2822)
* fix(cli)!: init subcommand now works correctly
* test(cli): added tests for init subcommands
* chore: moved `init` subcommand tests to its own file
* removed unnecessary arguments from tested command
* refactor(cli)!: new subcommand now behaves like cargo
* moved the hidden cursor workaround into a function
* feat(cli): added `branch` flag for init/new subcommands
* feat(cli): added `revision` and `tag` options
2024-11-16 01:20:59 -05:00
Jonathan Kelley a0e649ad96 Release v0.6.0-alpha.5 2024-11-15 23:46:11 -05:00
Jonathan Kelley fb7c568275 fix: java_home and cli swallowing logs (#3221)
* fix: http examples with android, add more important flags
- set java_home from assumed installations
- fix tracing redirection bug
2024-11-15 23:23:45 -05:00
Miles Murgaw 6da7226370 fix: asset warnigns on windows (#3220) 2024-11-15 13:52:05 -05:00
Jonathan Kelley 992c2b0b9c feat: add keep-symbols flag, change ssg format to Vec<String> (#3217) 2024-11-15 02:06:01 -05:00
Miles Murgaw af53354b28 Feat: Android Dynamic Arch Support (#3215)
* feat: android multi-arch support

* revision: make krate immutable

* revision: minor tweaks

* revision: make pub crate

* revision: dedup arch access

* revision: minor tweaks
2024-11-14 13:24:48 -05:00
Jonathan Kelley 5ecbb6594c fixes: light qol fixes for ssg and logging on dx run (#3216) 2024-11-14 13:11:13 -05:00
Jonathan Kelley ba4389567d Deprecate relative asset paths, better warnings for asset!() (#3214)
* Deprecate relative asset paths

* fix paths, better warnings in asset parser
2024-11-13 19:52:23 -05:00
Jonathan Kelley 8a2922c663 feat: allow android apps with any name, fix android + windows for aarch64 target (#3213)
* use llvm objcopy to rename syms
* use handlebars
* it works!
* remove linker code
* better docs internally about dev.dioxus.main
* use bundle identifier
* double check bundle identifier is proper
2024-11-13 18:48:21 -05:00
Alex Andreba 1370bce182 Add support for user-provided event loops & event handlers (#3180)
* added support for custom event loop
* added support for custom event callbacks
2024-11-13 18:44:29 -05:00
Leon WimbesandJonathan Kelley e7e624f05e Enable External Links Without Modifier (#2983)
* make external links usable without modifier

---------

Co-authored-by: Jonathan Kelley <jkelleyrtp@gmail.com>
2024-11-13 13:43:38 -05:00
Evan Almloff 21465390f8 Fix write on render warning with read only signal props (#3194) 2024-11-13 11:48:43 -05:00
Evan Almloff 128608f3b2 Don't run effects from dead recycled scopes (#3201)
* Don't run effects from dead recycled scopes

* Fix scheduler
2024-11-13 11:48:30 -05:00
Jonathan Kelley c1f3a6868e fix: autodetect android install (#3200)
* fix: autodetect android install

* use clang
2024-11-12 10:26:00 -05:00
Jonathan Kelley ac3e33af46 cli json output, dx bundle fix, dx serve --platform android, race condition, drop ssg platform (#3186)
* clean up logging to avoid random extra trace

* fix race condition with updates

* properly wire up verbose

* fix bundling (macos) and logging

* Add structured output

* clean up clap names

* extract out wire format

* switch structured key to json

* fix random println, fallback to `dioxus/platform`

* clean up logging for run/build

* clean up logging around project

* remove manual exits

* fix tokio runtime for mobile

* rework dog app

* rip out ssg

* Switch dioxus/axum to dioxus/server

* add android template inline

* pre restructure for bundle prep

* add the whole res directory

* Better theme for the app

* remove mobile demo now that most apps work natively

* self-referential android

* only use deep linking for assets

* fix imports for android

* clippy, fixup ios and android

* I'm not boxing compiler message you can't make me

* fix clippy on unix
2024-11-12 09:01:01 -05:00
Miles Murgaw 8a998e7d49 fix: fullstack server exec ext (#3198) 2024-11-12 08:57:55 -05:00
Evan AlmloffandJonathan Kelley 45a1147ffd Fix subscriptions for read only signals passed as props (#3173)
* add a fuzzing test for reference counted generational boxes

* Fix subscriptions for readonlysignal passed as props

* Don't subscribe to dropped contexts

---------

Co-authored-by: Jonathan Kelley <jkelleyrtp@gmail.com>
2024-11-10 21:35:33 -05:00
Evan Almloff 5186d8dded Fix as web event (#3178) 2024-11-06 23:53:56 -05:00
Evan Almloff 416811ba3a Fix providing context to server functions (#3174)
* Fix providing context to server functions

* Fix fullstack context test
2024-11-06 13:30:41 -05:00
Chung 3c30a2bffb complete implementation of IntoAttributeValue for number types (#3169) 2024-11-06 13:30:12 -05:00
Rahul721999 2f8f185930 Remove debug printlns (#3179) 2024-11-05 07:25:30 -06:00
Jonathan Kelley 8b586352a2 Make wasm-bindgen parallel/disable log, speed up 2-10x (#3161)
* wip: pull out incr linker intercept and debug=true for wasm for faster builds

* make walrus parallel

* clean up impl
2024-11-04 18:32:23 -08:00
Jonathan Kelley cf64eb909b fmt 2024-11-01 17:18:55 -07:00
Jonathan Kelley d126466702 Convert warn to trace to silence warnings before launching in serve 2024-11-01 17:15:54 -07:00
Jonathan Kelley e0575b3eb5 Release: dioxus v0.6.0-alpha.4 2024-11-01 16:39:02 -07:00
Jonathan Kelley 61f5aa090c hoist and bump versions 2024-11-01 16:24:51 -07:00
Jonathan Kelley a2e8e1d69e Remove latent dependencies in router 2024-11-01 16:11:24 -07:00
Jonathan Kelley aa9216d34c fix: clippy 2024-11-01 15:55:35 -07:00
Jonathan Kelley 4a7f669245 fix: pin throbber widgets 2024-11-01 15:45:45 -07:00
Jonathan Kelley e19e8d48fe Fix: race condition in asset resolution 2024-11-01 15:34:48 -07:00
Jonathan Kelley 24b6853c24 reset log levels 2024-11-01 15:18:41 -07:00
Jonathan Kelley 85c4c09811 feat: enable ssg using /api/static_routes (#3157)
* feat: enable ssg using  `/api/static_routes`
2024-11-01 15:02:23 -07:00
Evan Almloff bb0de9a55a Fix isg streaming (#3156) 2024-11-01 13:01:04 -07:00
Jonathan Kelley 3d16ae855e remove latent comment with typo 2024-11-01 12:08:09 -07:00
Evan Almloff 412f0b5c44 Fix the current route in ssr fullstack rendering (#3153) 2024-11-01 11:30:52 -07:00
Evan Almloff caa9759e44 add a warning about using use_hook(RefCell) in the docs (#3151) 2024-10-31 12:49:49 -07:00
Evan Almloff 37a6e9200f Fix if chain attributes with mixed expressions and strings (#3149)
* Fix if chain attributes with mixed expressions and strings
2024-10-31 12:48:25 -07:00
Klemen 292f757d5d SystemTray (#3123)
* Added tray icon
2024-10-31 12:46:17 -07:00
Evan AlmloffandJonathan Kelley 281087469a Move the history provider into the context (#3048)
* move history providers into a separate crate

* start moving route providers into the renderers

* clean up intoroutable

* remove into routable

* fix router tests

* Provide history providers in each renderer

* implement nested routers

* move the lens out of the history crate

* re-export dioxus history trait in the prelude

* also re-export the history function

* fix history doctests

* some light cleanups

---------

Co-authored-by: Jonathan Kelley <jkelleyrtp@gmail.com>
2024-10-31 12:44:04 -07:00
Chris RogusandMatt Hunzinger e5a1a62644 use DragEvent not MouseEvent for drag events (#3137)
* use DragEvent not MouseEvent for drag events

* Simplify drag events and remove WebDragData struct

* use DragEvent not MouseEvent for drag events

* re-add the web_sys event reference for drag + mouse data

* remove now vestigial impls for MouseEvent

---------

Co-authored-by: Matt Hunzinger <matthunz2@gmail.com>
2024-10-31 09:44:27 -05:00
Evan Almloff 5d99889728 Fix liveview launch (#3145) 2024-10-30 09:32:18 -07:00
Jonathan Kelley a35655a457 fix: don't panic while reading file in hotreload (#3142) 2024-10-30 00:37:49 -07:00
Jonathan Kelley 6216a26a40 fix: allow deadcode for rustflags 2024-10-29 17:05:04 -07:00