Commit Graph
398 Commits
Author SHA1 Message Date
YuKun Liu 286d769103 Merge pull request #130 from spookyvision/patch-1
propagate `features` to `dioxus serve`
2023-04-07 14:08:40 -07:00
Anatol Ulrich a590a07b3f propagate features to dioxus serve
#122 fixed `--features` for `dioxus build`, this PR adds the same for `dioxus serve`
2023-04-07 17:19:31 +02:00
YuKun Liu d5bda3c753 Merge pull request #127 from benschulz/proxies
Add proxy routes in startup_default(…)
2023-03-31 17:04:20 -07:00
Ben Schulz 2c787f85f4 Add proxy routes in startup_default(…) 2023-03-30 18:01:18 +02:00
YuKun Liu 917acf47fc Merge pull request #122 from cosier/fix-features-switch
Build with --features cli argument
2023-03-25 21:56:12 -07:00
Jonathan Kelley c4a307ac95 publish new version of cli
note that we have to use a slightly outdated version of the hot reloading crate.
2023-03-24 09:49:39 -07:00
Jonathan Kelley fdda6b9ffe Merge branch 'master' of https://github.com/jkelleyrtp/dioxus-studio 2023-03-24 09:22:48 -07:00
Jonathan Kelley 32f70c7540 add check to autoformat 2023-03-24 09:22:43 -07:00
Bailey Cosier 24b08ab432 Build with --features cli argument 2023-03-24 22:48:38 +07:00
YuKun Liu ba3f067ffb Merge pull request #112 from nilsmartel/patch-1
Make error more illuminating
2023-03-05 11:19:38 -08:00
Jon Kelley d1c03bcbbb Merge pull request #114 from Nukesor/fix-deps 2023-03-02 08:15:14 -08:00
Arne Beer b15d7d4204 chore: Bump deps and fix failing compilation 2023-03-02 14:41:55 +01:00
Nils Martel 41e5ce367b Make error more illuminating
I was wondering what the previous error message ment.
So I had to look it up.

Cargo directory might just mean ~/.cargo
2023-03-02 11:00:56 +01:00
YuKun Liu 3ff6896c4d Merge pull request #111 from Demonthos/fix-non-rs-files-hot-reloading
Fix reloading non rust files when hot reloading is enabled
2023-03-01 09:22:50 -08:00
Evan Almloff c5bf525547 fix reloading non rust files when hot reloading is enabled 2023-03-01 09:09:30 -06:00
YuKun Liu 1587b687ca Merge pull request #109 from sd2k/add-serve-proxy
Add minimal proxy capabilities to `dioxus serve`
2023-02-28 08:19:09 -08:00
Ben Sully ead183dd2c Add minimal proxy capabilities to dioxus serve
This adds an MVP of some proxying capabilities to the `dioxus serve`
server. The config is similar to that of `trunk serve`: the user can
specify one or more proxy backends under `[[web.proxy]]` in Dioxus.toml,
and the server will intercept requests targeted at the _path_ of that
configured backend and forward them to the backend server.

Example
-------

For example, if the dev server is serving on port 8080 with this config:

```
[[web.proxy]]
backend = "http://localhost:9000/api"
```

then requests to http://localhost:8080/api,
http://localhost:8080/api/ and http://localhost:8080/api/any-subpath
to be forwarded to the respective paths on http://localhost:9000.

This PR doesn't handle path rewriting or anything yet but it would be
fairly simple to add in future if anyone needs it.
2023-02-27 10:44:32 +00:00
Jon Kelley 6c2a51e453 Merge pull request #105 from Demonthos/hot-reloading-resilient
Log io errors instead of panicking for hot reloading
2023-02-22 11:50:39 -08:00
Jon Kelley 39b80129f9 Merge pull request #104 from Demonthos/don't-use-local-dependancies
use git dependencies
2023-02-22 11:50:30 -08:00
Evan Almloff bfbda510fe log errors instead of panicing on io errors 2023-02-22 09:09:00 -06:00
Evan Almloff 24fe266ce1 use git dependancies 2023-02-22 07:49:39 -06:00
Jonathan Kelley 09703ef858 Merge branch 'master' of https://github.com/jkelleyrtp/dioxus-studio 2023-02-16 16:35:47 -08:00
Jonathan Kelley 28a493984c bump wasm-bindgen cli 2023-02-16 16:35:35 -08:00
YuKun Liu 90ee614ca3 Merge pull request #95 from mgbvox/mgb-dioxus-create
`dioxus create some_project` now actually creates said project
2023-02-15 14:16:57 -08:00
YuKun Liu b20cf9b568 Merge pull request #98 from atty303/fix-windows-serve-rebuild
fix: rebuild hangs on windows
2023-02-15 14:14:49 -08:00
YuKun Liu 0538d19aeb Merge pull request #99 from atty303/fix-serve-ip
fix: get_ip on watcher hangs on windows
2023-02-15 14:13:47 -08:00
Koji AGAWA 32ea636bc7 fix: rebuild hangs on windows 2023-02-11 22:40:48 +09:00
Koji AGAWA 3ca4628ae6 fix: get_ip on watcher hangs on windows 2023-02-11 22:38:38 +09:00
mgbvox 5ca3bdc279 remove unneeded installs 2023-01-19 14:13:05 -05:00
mgbvox 7e7ff2cb4c removed dead code 2023-01-19 11:36:03 -05:00
mgbvox e38092fc44 fixed cargo create bug 2023-01-19 11:35:25 -05:00
mgbvox eb91d779cf started tests; some minor build optimization 2023-01-19 10:18:36 -05:00
Jon Kelley 9b966202ed Merge pull request #92 from DioxusLabs/jk/autofmt-project
feat: enable project autoformatting
2023-01-12 17:05:50 -08:00
Jonathan Kelley af381a112f chore: bump autofmt crate 2023-01-12 17:05:27 -08:00
Jonathan Kelley e1705a2920 Merge branch 'master' into jk/autofmt-project 2023-01-12 15:43:23 -08:00
Jonathan Kelley 6684e17024 commit lockfile 2023-01-12 15:42:18 -08:00
Jon Kelley 26307f04d2 Merge pull request #86 from DioxusLabs/jk/cleanups
chore: use rosetta for translate module and cleanup some top level code
2023-01-12 15:41:56 -08:00
Jonathan Kelley 964725a069 feat: enable project autoformatting 2023-01-12 15:36:10 -08:00
Jon Kelley 93c7651312 Merge pull request #88 from dxps/typos 2023-01-07 14:28:43 -08:00
dxps bb9b95fbd1 chore: typos 2023-01-06 17:13:08 +02:00
YuKun Liu 91fa5fa172 Merge pull request #87 from terhechte/patch-1
Move property so it is in the right category
2022-12-29 11:55:43 -08:00
Benedikt Terhechte 5d25a6498b Move property so it is in the right category
index_on_404 was never used with the default config because the property is set on `web.watcher` and not on `web.app`
2022-12-29 11:57:13 +01:00
Jonathan Kelley 479ee2a0f1 chore: use rosetta 2022-12-29 02:24:24 -05:00
Jon Kelley 75e005f761 Merge pull request #35 from DioxusLabs/jk/formatting-and-extension
Formatting and extension
2022-12-25 23:39:45 -05:00
Jonathan Kelley 230c83c35b fix: merge errors 2022-12-25 23:39:28 -05:00
Jonathan Kelley 98aa80d0c7 chore: commit cargo lock 2022-12-25 23:38:42 -05:00
Jonathan Kelley fa52a8f71a Merge branch 'master' into jk/formatting-and-extension 2022-12-25 23:38:33 -05:00
Jon Kelley b482b4c35d Merge pull request #84 from Demonthos/fix-hot-reloading
Fix hot reloading
2022-12-25 21:54:43 -05:00
YuKun Liu cd5599107f Merge pull request #85 from dxps/master
fix(#60): handling default cfg & kebab_case name
2022-12-25 15:30:34 -08:00
dxps 3209dd330b fix(#60): handling default cfg & kebab_case name
closes #60
2022-12-25 16:54:09 +02:00