Commit graph

6262 commits

Author SHA1 Message Date
Ahmet Kaan GÜMÜŞ
d3404bd13a
fix: 🔒 removed the line that exposes file structure of web server (#3118)
in web/src/lib there is a line that says "Starting up" to the browser console. This is leaking information about server file structure.
Related: https://github.com/DioxusLabs/dioxus/issues/3117
2024-10-28 00:28:19 -07:00
Jonathan Kelley
81409c46de
Add codeowners 2024-10-27 22:08:41 -07:00
Miles Murgaw
f96a42a5b9
Fix: CLI Release & Profile Conflict (#3115)
* fix: cli release & profile conflict

* remove: commented code
2024-10-27 23:13:32 -04:00
Matt Hunzinger
d53a631b5a
Capture current scope ID in use_muda_event_handler (#3120)
* Capture current scope ID in use_muda_event_handler

* Enter scope in wry_handler instead
2024-10-28 01:10:14 +00:00
Miles Murgaw
6c69c2902c
fix: windows hot reload (#3103) 2024-10-25 18:48:47 -07:00
Miles Murgaw
0866aefa33
fix: yt link (#3102) 2024-10-25 18:22:10 -07:00
Jonathan Kelley
7053f3f8fe
rust files are not supposed to be git ignored 2024-10-25 17:58:04 -07:00
Jonathan Kelley
7ec3453ca3
Fix bundling/path errors, sidecar support, iOS/Android simulator support, asset hotreload fixes, serverfn hotrelad, native tailwind support (#2779)
* wip: fix manganis import path
* upgrade tauri bundler, convert todo!() to unimplemented!()
* feat: mobile hotreloading + ios asset configuration
* remove oid demo and its associated env vars
* nuke all the things that cause cache thrashing
* swap to Asset type
* add some more logs
* display impl for attrvalue
* dont panic on collect failure
* cut down web deps to 150
* clean up deps in a lot of places, simplify build scripts
* clean up asset resolution and cli-dev profile
* wire up absolute paths for manganis asset in a particular mode
* move document related things around to shorten compile times
* move most things to `document::Item` and then decompose the cli-config
* switch link to stylesheet for clarity in examples
* move manganis workspace example to examples folder
* decompose manganis-cli-support
* dont need mobile demo anymore
* remove gloo dialogs
* html doesnt need document
* rename hotreload to devtools
* really clean up the html crate
* fix weird rsx spacing
* clean up desktop to use callback
* clean up document a bit
* re-wire up devsocket
* fix utf css
* yeeeet that js out of here
* synthetic web system works
* web crate almost done being cleaned up
* desktop mostly cleaned up too
* clean up cli a bit
* more cli cleanup
* cli builds again
* clean up cli, inline structs, cut down number of unique types where possible
* hotreload works again for desktop and this time, mobile too
* cfg out tungstenite
* devserver err
* more refactor to cli builder
* switch to unbounded_send
* new structure is much cleaner
* add http serve subcommand
* bundled hotreload
* kick stylsheets
* clean up a bit more, split up eventloop
* amazingly serve seems done
* change from pub to pub(crate) in cli
* remove tools
* bit more polish to cli
* fix issue with join
* gracefully handle fullstack without a server
* fullstack mobile demo
* fix launch function, move projects into example-projects folder
* hoist examples
* add "run" command
* clean up launch
* remove old manual websocket receiver
* doctor command
* allow desktop to scroll
* cut apart router crate
* dont put launch in prelude
* use dioxus::launch where possible
* rename rsx, cut out hotreload tests
* remove liveview project
* bump native
* fix compile for renderers
* move sync event response out of interpreter
* move render in serve
* rollback settings change
* cli compiles, huzzah!
* change uris for asset
* fix asset
* new tui screen
* new cargo-like tui works
* very very verty close
* it works! very small bug with incorrect grapheme calc
* Clean up devserver a bit
* status sytem
* tidy up debug filters
* clean up logging situation
* Fix a number of bugs with log printing
* new printing system is more reliable
* wire up more stuff
* things working but fullstack is having issues
* fullstack works again!
* hotreloading bundled assets works again
* bundled hotreload and beginnings of macos bundling
* Hotreload desktop
* combined server builds
* add build handle
* fix fullstack assets
* make open async, add some hooks for ios
* migrate filemap to runner
* wip global crate system
* fixup bundles + organize asset
* fix asset location bug
* all the bundled reloading!
* open ios simulator!
* full hotreload support for mobile + serverfn
* basic cleanups
* clean up dx
* Move filemap
* fix cutting of newlines
* assets workibg, some android
* hoist wry/tao
* use sync locks and headers to fix issues with android
* desktop -> mac/win/linux with alias
* better logging
* feat: workspace (entire computer!) hotreload
* should rebuild toggle, ios simulator bootup
* proper mobile support in launch
* more robust handling of assets
* fix cargo
* bring back some of tauri bundle
* make warnings go away, clippy happy on cli
* some final clippy cleanups
* fmt
* move manganis to its own folder
* upgrade bundle to stable
* drastically slim down manganis, prepping for merge
* typos, failing test, docsrs config
* remove static gen test
* nix static gen test
* we use --platform web instead of --platform fullstack now
* only bind dev urls in desktop/mobile
* install gtk
* nix static gen
* split build dir by app name
2024-10-25 17:23:45 -07:00
Evan Almloff
ef436e4ed0
Fix inserting attributes after expanding dynamic nodes (#3094) 2024-10-24 13:43:39 -07:00
Chung
3f8c32d1ff
fix fullstack doc (#3071) 2024-10-20 15:32:54 -04:00
hackartist
306fbe2e75
fix fullstack build bug when --release (#3078)
* rust 1.82.0 doesn't allow custom profile when release build
2024-10-20 15:21:13 -04:00
Jonathan Kelley
21d7916d56
bump manganis to 0.3 (#3059) 2024-10-14 13:50:50 -07:00
Jonathan Kelley
09066dd334
Don't publish example projects 2024-10-14 13:00:57 -07:00
Jonathan Kelley
e6fb444047
fix versions and workspace features 2024-10-14 12:37:20 -07:00
Jonathan Kelley
316ef25f77
Add metadata to crates 2024-10-14 12:33:33 -07:00
Jonathan Kelley
d539ef67c0
bump to 0.6.0-alpha.3 2024-10-14 12:30:41 -07:00
Jonathan Kelley
5989b9cf50
bump manganis version (#3058) 2024-10-14 12:29:34 -07:00
Miles Murgaw
0995b5d2c5
Fix: Windows File Drag-N-Drop (#3046)
* fix: windows file drop
* update: tokio + fix eval
2024-10-14 11:00:11 -07:00
Evan Almloff
519ec9d294
Move the document trait into a separate crate (#3035)
* add a default head method through eval
* remove the old document trait
* implement document for each platform
* pull out document into a dedicated crate to cut down on shared dependencies
---------

Co-authored-by: Jonathan Kelley <jkelleyrtp@gmail.com>
2024-10-14 10:33:37 -07:00
dependabot[bot]
2b219c826c
Bump lycheeverse/lychee-action from 1 to 2 (#3056)
Bumps [lycheeverse/lychee-action](https://github.com/lycheeverse/lychee-action) from 1 to 2.
- [Release notes](https://github.com/lycheeverse/lychee-action/releases)
- [Commits](https://github.com/lycheeverse/lychee-action/compare/v1...v2)

---
updated-dependencies:
- dependency-name: lycheeverse/lychee-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-14 10:05:40 -07:00
Matt Hunzinger
34bc9fa073
Update bug_report.md (#2955) 2024-10-14 10:03:57 -07:00
Evan Almloff
baf5a95cae
Fix cloned rsx double drop (#2839)
* Implement Rc generational pointers

* Clean up error handling a bit

* start adding tests

* Simplify a few types

* Separate Rc and normal generational boxes

* Add tests for rc drop and read

* Move over the pointer instead of the data in ReadOnlySignal props

* Fix panic on ref drop and release mode builds

* final rc signal cleanup

* use rc generational boxes for event handlers as well

* add a regression test for read only signal cloning

* merge main

---------

Co-authored-by: Jonathan Kelley <jkelleyrtp@gmail.com>
2024-10-14 09:23:09 -07:00
Evan Almloff
20d146d9bd
Simplify the launch builder (#2967)
* improve documentation for the fullstack server context

* Add a section about axum integration to the crate root docs

* make serve_dioxus_application accept the cfg builder directly

* remove unused server_fn module

* improve fullstack config docs

* improve documentation for the server function macro

* fix axum router extension link

* Fix doc tests

* Fix launch builder

* Simplify the launch builder

* don't re-export launch in the prelude

* refactor fullstack launch

* Fix fullstack launch builder

* Update static generation with the new builder api

* fix some formatting/overly broad launch replacements

* fix custom menu example

* fix fullstack/static generation examples

* Fix static generation launch

* A few small formatting fixes

* Fix a few doc tests

* implement LaunchConfig for serve configs

* fix fullstack launch with separate web and server launch methods

* fix check with all features

* dont expose inner core module

* clippy and check

* fix readme

---------

Co-authored-by: Jonathan Kelley <jkelleyrtp@gmail.com>
2024-10-10 16:00:58 -07:00
Jonathan Kelley
2d7bef44e8
remove random println! 2024-10-10 13:45:44 -07:00
Evan Almloff
6a0c1c392b
Improve documentation for the fullstack crate (#2952)
* improve documentation for the fullstack server context

* Add a section about axum integration to the crate root docs

* make serve_dioxus_application accept the cfg builder directly

* remove unused server_fn module

* improve fullstack config docs

* improve documentation for the server function macro

* fix axum router extension link

* Fix doc tests

* Fix launch builder

* Remove redundant server_only inside server function

* Fix isrg config path
2024-10-10 13:40:11 -07:00
Evan Almloff
cda8bb24f1
Remove native and web features from dioxus-html (#3006)
* remove native and web features from dioxus-html

* Fix downcasting web events

* Fix desktop with tokio disabled
2024-10-10 13:35:59 -07:00
dependabot[bot]
677e0e7f4f
Bump JamesIves/github-pages-deploy-action from 4.6.4 to 4.6.8 (#3018)
Bumps [JamesIves/github-pages-deploy-action](https://github.com/jamesives/github-pages-deploy-action) from 4.6.4 to 4.6.8.
- [Release notes](https://github.com/jamesives/github-pages-deploy-action/releases)
- [Commits](https://github.com/jamesives/github-pages-deploy-action/compare/v4.6.4...v4.6.8)

---
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-10-10 13:33:22 -07:00
Peter Holloway
c6ab2904cd
Remove dependency on atty (#3047)
It is no longer maintained and has been replaced by functionality in the
stdlib (std::io::IsTerminal).
2024-10-10 13:24:50 +00:00
Evan Almloff
1053943073
Fix special characters in head elements (#3031) 2024-10-09 13:48:58 -05:00
Evan Almloff
a693ddffa3
Fix partially formatted if chains in attributes (#2999) 2024-10-09 13:48:33 -05:00
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 Almloff
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