fix all broken examples (#1248)
This commit is contained in:
1 parent
6751d5941b
commit
d637ef187c
12 files changed
+29
-25
No files matched your search
@@ -8,6 +8,6 @@ use dioxus_fullstack::prelude::server_fn::set_server_url;
|
||||
|
||||
fn main() {
|
||||
// Set the url of the server where server functions are hosted.
|
||||
set_server_url("http://127.0.0.0:8080");
|
||||
set_server_url("http://127.0.0.1:8080");
|
||||
dioxus_desktop::launch(app)
|
||||
}
|
||||
@@ -3,11 +3,16 @@
|
||||
// cargo run --bin server --features ssr
|
||||
// ```
|
||||
|
||||
use axum_desktop::*;
|
||||
use dioxus_fullstack::prelude::*;
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() {
|
||||
let addr = std::net::SocketAddr::from(([127, 0, 0, 1], 8080));
|
||||
|
||||
PostServerData::register_explicit();
|
||||
GetServerData::register_explicit();
|
||||
|
||||
axum::Server::bind(&addr)
|
||||
.serve(
|
||||
axum::Router::new()
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
//! Run with:
|
||||
//!
|
||||
//! ```sh
|
||||
//! dx build --features web
|
||||
//! cargo run --features ssr
|
||||
//! dx build --features web --release
|
||||
//! cargo run --features ssr --release
|
||||
//! ```
|
||||
|
||||
#![allow(non_snake_case, unused)]
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
//! Run with:
|
||||
//!
|
||||
//! ```sh
|
||||
//! dx build --features web
|
||||
//! cargo run --features ssr
|
||||
//! dx build --features web --release
|
||||
//! cargo run --features ssr --release
|
||||
//! ```
|
||||
|
||||
#![allow(non_snake_case)]
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
//! Run with:
|
||||
//!
|
||||
//! ```sh
|
||||
//! dx build --features web
|
||||
//! cargo run --features ssr
|
||||
//! dx build --features web --release
|
||||
//! cargo run --features ssr --release
|
||||
//! ```
|
||||
|
||||
#![allow(non_snake_case, unused)]
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
//! Run with:
|
||||
//!
|
||||
//! ```sh
|
||||
//! dx build --features web
|
||||
//! dx build --features web --release
|
||||
//! cargo run --features ssr
|
||||
//! ```
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
//! Run with:
|
||||
//!
|
||||
//! ```sh
|
||||
//! dx build --features web
|
||||
//! cargo run --features ssr
|
||||
//! dx build --features web --release
|
||||
//! cargo run --features ssr --release
|
||||
//! ```
|
||||
|
||||
#![allow(non_snake_case, unused)]
|
||||
|
||||
Reference in new issue
Block a user