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
This commit is contained in:
Jonathan Kelley authored and GitHub committed 2024-11-12 09:01:01 -05:00
1 parent 8a998e7d49
commit ac3e33af46
116 files changed
+2367 -6091

No files matched your search

+9 -11
View File
@@ -39,10 +39,8 @@ fn app() -> Element {
rsx! {
for cur_breed in breeds.message.keys().take(20).cloned() {
li { key: "{cur_breed}",
button { onclick: move |_| breed.set(cur_breed.clone()),
"{cur_breed}"
}
button { onclick: move |_| breed.set(cur_breed.clone()),
"{cur_breed}"
}
}
}
@@ -55,11 +53,9 @@ fn app() -> Element {
};
rsx! {
h1 { "Select a dog breed!" }
div { height: "500px", display: "flex",
ul { width: "100px", {breed_list} }
div { flex: 1, BreedPic { breed } }
}
h1 { "Select a dog breed: {breed}" }
BreedPic { breed }
div { width: "400px", {breed_list} }
}
}
@@ -81,8 +77,10 @@ fn BreedPic(breed: Signal<String>) -> Element {
match fut.read_unchecked().as_ref() {
Some(Ok(resp)) => rsx! {
button { onclick: move |_| fut.restart(), "Click to fetch another doggo" }
img { max_width: "500px", max_height: "500px", src: "{resp.message}" }
div {
button { onclick: move |_| fut.restart(), padding: "5px", background_color: "gray", color: "white", border_radius: "5px", "Click to fetch another doggo" }
img { max_width: "500px", max_height: "500px", src: "{resp.message}" }
}
},
Some(Err(_)) => rsx! { "loading image failed" },
None => rsx! { "loading image..." },