Commit Graph
100 Commits
Author SHA1 Message Date
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
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
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
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
Jonathan Kelley c21b44a4e6 fix collapsing of multiline components and rsx!{} calls (#2849) 2024-08-15 17:03:58 -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
Jonathan KelleyandEvan Almloff 0de3bf7aeb Fix nested rsx expansion by not using template titles (#2799)
* Fix nested rsx expansion by not using template titles

* fix writers with nameless templates

* fix clippy

* dont commit vscode fix

* fix release mode, pull out __template_name

* fix axum_desktop

* Fix core tests

* Make most fields of HotReloadedTemplate public for testing

* wip: formatting, compare all diff cases

* slightly smarter diffing for dynamic nodes

* add a comment about generic node diffing

* clean up mutations a bit

* fix load template

* simplify maybe_rebuild

* Restore write mutations flag in web

* write_mutations -> skip_mutations

---------

Co-authored-by: Evan Almloff <evanalmloff@gmail.com>
2024-08-13 01:59:04 +00:00
Jonathan Kelley a84c2ec6d2 Fix mac CLI publish by using mac13 for runner (#2803) 2024-08-07 19:42:41 -07:00
Jonathan Kelley 8c992bb4cb Fix github CLI publish CI msrv (#2802) 2024-08-07 16:50:43 -07:00
Jonathan Kelley 506d47f7d2 bump dioxus released to alpha-0.2 (#2800)
dioxus@0.6.0-alpha.2
dioxus-autofmt@0.6.0-alpha.2
dioxus-check@0.6.0-alpha.2
dioxus-cli@0.6.0-alpha.2
dioxus-cli-config@0.6.0-alpha.2
dioxus-config-macro@0.6.0-alpha.2
dioxus-core@0.6.0-alpha.2
dioxus-core-macro@0.6.0-alpha.2
dioxus-desktop@0.6.0-alpha.2
dioxus-fullstack@0.6.0-alpha.2
dioxus-hooks@0.6.0-alpha.2
dioxus-hot-reload@0.6.0-alpha.2
dioxus-html@0.6.0-alpha.2
dioxus-interpreter-js@0.6.0-alpha.2
dioxus-liveview@0.6.0-alpha.2
dioxus-mobile@0.6.0-alpha.2
dioxus-router@0.6.0-alpha.2
dioxus-rsx@0.6.0-alpha.2
dioxus-signals@0.6.0-alpha.2
dioxus-ssr@0.6.0-alpha.2
dioxus-static-site-generation@0.6.0-alpha.2
dioxus-web@0.6.0-alpha.2
generational-box@0.6.0-alpha.2
rsx-rosetta@0.6.0-alpha.2

Generated by cargo-workspaces
2024-08-07 16:38:58 -07:00
Jonathan Kelley ae4a2464b3 fix: use prettier-please just in tests - no custom wrapper (#2767)
* fix: use prettier-please just in tests - no custom wrapper
2024-08-01 17:46:51 -07:00
Jonathan Kelley c5fb69f9f1 release: 0.6.0-alpha.1 (improve docs.rs for fullstack, dioxus) (#2760) 2024-07-31 21:43:13 -07:00
Jonathan Kelley 0cbcef735f Pre-release 0.6.0-alpha.0 (#2755)
* CI: add docsrs to ci

* add env vars

* no need for tokio things

* whoops, wrong rust nightly

* add swc

* bump crate versions to 0.6.0-alpha.0

* hoist up warnings and shuffle cargo.toml

* update cargos and disable warnings from ci

* attempt fix of aws

* attempt disabling aws_lc_sys globally

* pull in lc-sys

* add fips feature to fix docs

* turn on features for aws-lc-sys on cargo-doc-all

* pass along more args

* fix cfg docs

* fix: flakey gen box test

* fix: doc_cfg in static gen

* dont include readme

* fix error on static gen

* remove random line

* temporarily disable warnings

* simplify axum desktop so it doesnt count as a lib

* fix binstall link

* bump locks

* lock fixes

* revert axum desktop

* dont publish some crates
2024-07-31 22:37:39 -05:00
Jonathan Kelley 63e7aab4e8 Fix 2265: close tui on success, custom tui subscriber (#2734) 2024-07-31 10:49:51 -07:00
Jonathan Kelley 189772a17b Use the correct to-static impl for sending escaped strings via hotreload (#2753) 2024-07-30 23:06:44 -05:00
Jonathan Kelley 828cc502f1 Fix: #2604, Fix: #2240, Fix: #2341, Fix #1355 - Better error handling and and spaces handling in autofmt (#2736)
* add new autofmt sample
* Feat: implement rustfmt::skip support for rsx
* generally improve error handling with better expect messages
* wip: nested rsx formatting and expression formatting
* nested rsx formatting works
* collapse autofmt crate
* cast indent through macros
* use proper whitespace
* no more eating comments!
* Use proper error handling
2024-07-30 18:36:13 -07:00
Jonathan Kelley 0e84d00d9c Fix #2309: rfd doesn't need async-std (#2712)
* Fix #2309: rfd doesn't need to be async
* just use tokio instead of async std
2024-07-29 15:24:31 -05:00
Jonathan Kelley 8aa07b0a75 speed up incremental cli builds by making wasm-opt optional (#2720)
* speed up incremental builds by making wasm-opt optional
2024-07-29 13:20:46 -07:00
Jonathan Kelley c4e55c7fb6 Fix #2378: CLI MSRV and add MSRV to CI (#2716)
* Fix: bump msrv up to be valid for cli
* add binstall check to ci
* adjust msrv of tomls
2024-07-26 19:24:40 -05:00
Jonathan Kelley 1a66987245 Fix: enable dangerous_inner_html for svgs (#2717) 2024-07-26 23:29:24 +00:00
Jonathan Kelley e42b71b1ba Fix #2612: adjust readable trait to allow try_peek (#2714)
* Fix #2612: adjust readable trait to allow try_peek

Our implementation for Readable was inconsistent.
We had a try_unchecked variant for read but not for peek.
This resolves that by making a breaking change to the
Readable interface.

* fix doctests too
2024-07-26 18:20:16 -05:00
Jonathan Kelley 6148941825 CI: re-reorder free disk space action to clear free up space earlier (#2690) 2024-07-23 16:53:56 -07:00
Jonathan Kelley 8b5ad5d925 Fix some CI (windows + nasm, core-macro error) (#2676)
* Moves index.html creation until after wasm creation so the webserver doesn't prematurely serve the page
* sets up nasm for windows builds (to be superseded by Remove Dioxus CLI NASM dependency #2666 #2682)
* puts magnanis-cli-support in a blocking task to prevent threadlocking during sequential builds
* changes order of client/server builds such that the client is built before the server so the webserver doesn't prematurely serve invalid client code
* declobbers "serve" such that each project gets a different dir in the target folder
* uses nest_service instead of fallback so the router doesn't respond with fallback codes
* reincorporates doge's fix from Fix hot-reloading on Windows #2544
2024-07-23 09:58:13 -07:00
88af3e7eff Hotreloading of for/if/body, formatted strings, literals, component props, nested rsx, light CLI rewrite, cli TUI (#2258)
Hotreload the contents of for loops, if chains, component bodies, props, attributes, and any literals discovered in rsx!
Add a TUI renderer to the CLI.
Improve the CLI build system to be async and parallel.
Refactor RSX to allow partial expansion of expressions.
Merge autofmt implementations for consistency.
Merge the representation of elements and components under the hood.
Add a diagnostics system for rsx for improved error messages.
Drop interprocess and move to websockets for communication between the CLI and the server.
Assign IDs to nodes and attributes in a stable way to be used in non compiler contexts.
Add hotreloading to any body of component/for loop/if chain/etc.

---------

Co-authored-by: Evan Almloff <evanalmloff@gmail.com>
Co-authored-by: Liam Mitchell <liamkarlmitchell@gmail.com>
2024-07-17 19:11:18 -07:00
Jonathan Kelley 2e8af5fc62 fix clippy on zoom example 2024-07-10 12:50:57 -07:00
Jonathan Kelley 2c20d3dc5e Remove deprecated macros: inline_props, format_args_f!, render! (#2574)
* remove deprecated macros

* Rename derive_typed_builder
2024-07-02 21:46:11 -07:00
Jonathan Kelley 90c46afd12 fix fmt tests 2024-07-02 17:22:53 -07:00
Jonathan Kelley b30810e486 cut out a number of changes from the hr PR (#2580) 2024-07-02 17:09:57 -07:00
Jonathan Kelley 30f6986283 Fix clippy 2024-07-02 12:39:32 -07:00
Jonathan Kelley 1404d26455 Switch to using refs instead of owned for autofmt write block out (#2573) 2024-07-02 12:27:11 -07:00
Jonathan Kelley d4831edcf7 edit settings.json to disable format on save for the repo (#2572) 2024-07-02 12:18:25 -07:00
Jonathan Kelley 47ab4c8db9 Chore: move todo!() to unimplemented!() (#2558) 2024-06-27 16:27:27 -05:00
Jonathan Kelley a0e06271dd Fix: flaky CI by correcting autofmt to match proper spacing (#2369) 2024-04-26 12:04:56 -04:00
Jonathan Kelley 790b984e61 bump extension version 2024-04-24 22:41:31 -04:00
Jonathan Kelley 994056e16d Don't eat keys (#2280) 2024-04-08 22:31:58 -07:00
Jonathan Kelley 67af2d89dd Autofmt nested rsx using syn::Visitor (#2279)
* Nested macros using visitor pattern
2024-04-08 22:15:52 -07:00
Jonathan Kelley 0b7c7701a3 fmt 2024-04-08 19:24:49 -07:00
Jonathan Kelley 7eccc7a104 Release 0.5.2
dioxus-cli@0.5.2
dioxus-fullstack@0.5.2

Generated by cargo-workspaces
2024-04-04 18:32:14 -07:00
Jonathan Kelley 9c5e5f969f Release 0.5.1
dioxus@0.5.1
dioxus-autofmt@0.5.1
dioxus-check@0.5.1
dioxus-cli@0.5.1
dioxus-core@0.5.1
dioxus-core-macro@0.5.1
dioxus-desktop@0.5.1
dioxus-fullstack@0.5.1
dioxus-hooks@0.5.1
dioxus-html@0.5.1
dioxus-interpreter-js@0.5.1
dioxus-lib@0.5.1
dioxus-liveview@0.5.1
dioxus-mobile@0.5.1
dioxus-router-macro@0.5.1
dioxus-rsx@0.5.1
dioxus-signals@0.5.1
dioxus-ssr@0.5.1
dioxus-web@0.5.1
dioxus_server_macro@0.5.1
generational-box@0.5.1
rsx-rosetta@0.5.1

Generated by cargo-workspaces
2024-04-04 17:05:21 -07:00
Jonathan Kelley 702509cb7e Fix recycling on component callbacks (#2247) 2024-04-04 16:48:06 -07:00
Jonathan Kelley 0a3291084f Use a VecDequeue instead of a vec for bytes (#2246)
* Fix: add both the rAF queue and vecdequeue

* Fix: Take before recycle
2024-04-04 16:29:28 -07:00
Jonathan KelleyandEvan Almloff 633e2a70a4 Fix memory leak in owner (#2245)
* Fix: memory leak on listeners for elements

---------

Co-authored-by: Evan Almloff <evanalmloff@gmail.com>
2024-04-04 15:32:23 -07:00
Jonathan KelleyandEvan Almloff 44fe2defc2 Fix: memory leak on listeners for elements (#2244)
* Fix: memory leak on listeners for elements
* Recycle in manuallydrop

---------

Co-authored-by: Evan Almloff <evanalmloff@gmail.com>
2024-04-04 14:25:17 -07:00
Jonathan Kelley 6f3c5518ca Feat: provide root context as method on virtualdom (#2243) 2024-04-04 12:00:06 -07:00
Jonathan Kelley 821a650f77 Fix: requeue events, process events (#2236)
* Fix: requeue events, process events

* Fix test: wait_for_work shouldn't wait 3 times when one update happens while rendering
2024-04-04 11:46:31 -07:00
Jonathan Kelley be99e29e5f Fixes to autofmt, make it more aggressive (#2230)
* fix: fmt unterminated if, be more aggressive with line splits

* Fix: Handle long exprs in for/if statements
2024-04-03 15:27:36 -07:00
Jonathan Kelley aca38e6a34 Fix typo is style tag removal (#2220) 2024-04-01 16:01:44 -05:00
Jonathan Kelley 2461790baf bump cli to 0.5.4 2024-03-28 21:11:54 -07:00
Jonathan Kelley e3ce9e235a Fix binstal extra v 2024-03-27 19:39:16 -07:00
Jonathan Kelley ac1aea4783 Binstalls not working, need archive suffix 2024-03-27 19:35:38 -07:00
Jonathan Kelley 1f6c7cfbd0 fix binstall 2024-03-27 18:55:29 -07:00
Jonathan Kelley f6c3b2745e Release v0.5.0 2024-03-27 18:25:52 -07:00
Jonathan Kelley c483abe091 dont version extension 2024-03-27 18:14:33 -07:00
Jonathan Kelley 329c323b35 Doc fixes, running examples instructions, change menubar behavior for desktop 2024-03-27 17:57:05 -07:00
Jonathan Kelley 537f064001 Remove some old docs, cleanup some readmes 2024-03-27 17:28:30 -07:00
Jonathan Kelley a1c03a461d Basic docs cleanups 2024-03-27 17:06:10 -07:00
Jonathan Kelley 41c3967052 use docfix interprocess 2024-03-27 16:57:24 -07:00
Jonathan Kelley b499ebe5bd Fix release url on cli 2024-03-27 09:52:35 -07:00
Jonathan Kelley 08944223be fix binstall 2024-03-27 00:37:58 -07:00
Jonathan Kelley 3f127f5fcb fix vendored flag 2024-03-26 22:40:24 -07:00
Jonathan Kelley fd64d1a419 use vendored ssl on mac 2024-03-26 22:26:54 -07:00
Jonathan Kelley 0826367e4f Ssl error? 2024-03-26 22:22:25 -07:00
Jonathan Kelley 420a9290ff fix tag 2024-03-26 22:10:51 -07:00
Jonathan Kelley 877be9092f fix typo 2024-03-26 22:03:30 -07:00
Jonathan Kelley b27a90841c Fix strategy! 2024-03-26 21:55:33 -07:00
Jonathan Kelley a2377e7bf6 Fix strategy? 2024-03-26 21:54:19 -07:00
Jonathan Kelley 7290344a8e Fix publish 2024-03-26 21:51:50 -07:00
Jonathan Kelley 49f6b97dd9 Fix cli yml 2024-03-26 21:49:34 -07:00
Jonathan Kelley 98774709b8 Fix release CLI 2024-03-26 21:43:14 -07:00
Jonathan Kelley 30bc7ae63f Bump extension and relase it 2024-03-26 21:01:46 -07:00
Jonathan Kelley 85c3cf1f9b Make my editor happier with the cargo 2024-03-26 20:26:45 -07:00
Jonathan Kelley d988ccc369 Cargo.lock 2024-03-26 19:22:57 -07:00
Jonathan Kelley b9d60276b7 Readme header link 2024-03-26 19:01:24 -07:00
Jonathan Kelley 75b1893f72 Fix some readme links, add freya to readme (#2148)
* Add links, update table

* Fix link, add freya
2024-03-26 18:59:36 -07:00
Jonathan Kelley 9888d365dd New readme for 0.5! (#2141)
* feature: add new top-level readme.md, highlighting features and a new vs section
2024-03-26 17:32:42 -07:00
Jonathan Kelley eb79e61642 Add a ton of comments to rsx/hotreload, add snapshot testing, refactor a bit to simplify the crate (#2130)
Merge dynamic context and dynamic mapping, clean up the rsx hotreload logic, and add location data to the Rsx objects
2024-03-24 13:31:26 -07:00
Jonathan Kelley 6c9f991f0b hotfix: finding hotreload path fails when not running under cargo 2024-03-20 09:54:57 -07:00
Jonathan Kelley e923c6462c Resume window position/size, watch cargo/dioxus tomls, fix css reverting during hotreloading, allow menubar events to be captured from within dioxus (#2116)
* Fix: css hotreloading being invalidated, watcher not watching cargo/dioxus tomls, add feature to restore window state

* Make clappy hippier

* remove console log

* use simpler css invalidator

* Less flash, remove log on web hotreload

* Fix floating window managed behavior on mac

* clippy...
2024-03-20 09:16:18 -07:00
Jonathan Kelley 44e997f7df Fix eventhandler optional (#2119) 2024-03-20 09:04:37 -07:00
Jonathan Kelley 4bb807a3ce Reduce churn in window behavior 2024-03-18 22:38:33 -07:00
Jonathan Kelley 10d361a44e Fix proxy (#2108) 2024-03-18 22:21:07 -07:00
Jonathan Kelley d8942a255b Fix #2104: fmt incorrectly using 1-indexing for columns (#2106)
* Fix #2104: fmt incorrectly using 1-indexing for columns

* Clippy...
2024-03-18 18:23:45 -07:00
Jonathan Kelley 2dc6cecf2e Fix #2043: use formvalue instead of String for forms (#2103)
Fix #2043: use formvalue instead of String for forms
2024-03-18 18:21:08 -07:00
Jonathan Kelley 468d2b6b3b Merge pull request #2105 from DioxusLabs/jk/props-expand
Fix #1938, allow explicit props
2024-03-18 16:02:23 -07:00
Jonathan Kelley 9c64fc4769 Fix #1938, allow explicit props 2024-03-18 15:34:46 -07:00
Jonathan Kelley f266213618 Bump to 0.5.0-alpha.2 2024-03-18 02:02:31 -07:00
Jonathan Kelley 2a803c829f Merge pull request #2096 from DioxusLabs/jk/hotreloading-fixed-again
Fix: #2095, #1990
2024-03-17 21:55:58 -07:00
Jonathan Kelley 6ab6e56de9 Make clippy happy 2024-03-17 21:39:29 -07:00