A few small formatting fixes

This commit is contained in:
Evan Almloff 2024-09-19 12:06:48 -05:00
parent ef424e3fd0
commit 3de9efd9ee
11 changed files with 16 additions and 16 deletions

View file

@ -8,7 +8,7 @@ use std::{
use tokio::time::sleep;
fn main() {
dioxus::LaunchBuilder::desktop().launch(app);
dioxus::LaunchBuilder::desktop().launch(app);
}
struct WindowPreferences {

View file

@ -8,7 +8,7 @@ use std::{
use tokio::time::sleep;
fn main() {
dioxus::LaunchBuilder::desktop().launch(app);
dioxus::LaunchBuilder::desktop().launch(app);
}
struct WindowPreferences {

View file

@ -29,7 +29,7 @@ This requires that webview is installed on the target system. WebView is install
## Features
- Simple, one-linedioxus::launch for desktop apps
- Simple, one-line launch for desktop apps
- Dioxus VirtualDom running on a native thread
- Full HTML/CSS support via `wry` and `tao`
- Exposed `window` and `Proxy` types from tao for direct window manipulation

View file

@ -39,11 +39,11 @@ fn app() -> Element {
div {
"hello world!"
}
})
}
}
```
To configure the webview, menubar, and other important desktop-specific features, checkout out some of thedioxus::launch configuration in the [API reference](https://docs.rs/dioxus-desktop/).
To configure the webview, menubar, and other important desktop-specific features, checkout out some of the launch configuration in the [API reference](https://docs.rs/dioxus-desktop/).
## Future Steps

View file

@ -38,13 +38,13 @@ Remember: Dioxus is a library for declaring interactive user interfaces—it is
All Dioxus apps are built by composing functions that return an `Element`.
Todioxus::launch an app, we use the `launch` method and use features in `Cargo.toml` to specify which renderer we want to use. In thedioxus::launch function, we pass the app's root `Component`.
To launch an app, we use the `launch` method and use features in `Cargo.toml` to specify which renderer we want to use. In the launch function, we pass the app's root `Component`.
```rust, no_run
use dioxus::prelude::*;
fn main() {
dioxus::launch(App);
dioxus::launch(App);
}
// The #[component] attribute streamlines component creation.
@ -239,7 +239,7 @@ Using components, templates, and hooks, we can build a simple app.
use dioxus::prelude::*;
fn main() {
dioxus::launch(App);
dioxus::launch(App);
}
#[component]

View file

@ -36,13 +36,13 @@ Remember: Dioxus is a library for declaring interactive user interfaces—it is
All Dioxus apps are built by composing functions that start with a capital letter and return an `Element`.
Todioxus::launch an app, we use the `launch` method and use features in `Cargo.toml` to specify which renderer we want to use. In thedioxus::launch function, we pass the app's root `Component`.
To launch an app, we use the `launch` method and use features in `Cargo.toml` to specify which renderer we want to use. In the launch function, we pass the app's root `Component`.
```rust, no_run
use dioxus::prelude::*;
fn main() {
dioxus::launch(App);
dioxus::launch(App);
}
// The #[component] attribute streamlines component creation.
@ -184,7 +184,7 @@ Using components, rsx, and hooks, we can build a simple app.
use dioxus::prelude::*;
fn main() {
dioxus::launch(App);
dioxus::launch(App);
}
#[component]

View file

@ -152,7 +152,7 @@ impl LaunchBuilder {
/// }
/// }
///
/// LaunchBuilder::custom(my_custom_launcher).launch(app);
/// dioxus::LaunchBuilder::custom(my_custom_launcher).launch(app);
/// ```
pub fn custom(launch_fn: LaunchFn) -> LaunchBuilder {
LaunchBuilder {

View file

@ -37,7 +37,7 @@ Full stack Dioxus in under 30 lines of code
use dioxus::prelude::*;
fn main() {
dioxus::launch(App);
dioxus::launch(App);
}
#[component]

View file

@ -64,5 +64,5 @@ fn main() {
// .set_max_level(tracing::Level::TRACE)
// .build(),
// );
dioxus::launch(app);
dioxus::launch(app);
}

View file

@ -53,5 +53,5 @@ fn main() {
// .set_max_level(tracing::Level::TRACE)
// .build(),
// );
dioxus::launch(app);
dioxus::launch(app);
}

View file

@ -37,7 +37,7 @@ Full stack Dioxus in under 30 lines of code
use dioxus::prelude::*;
fn main() {
dioxus::launch(App);
dioxus::launch(App);
}
#[component]