fmt and chores in examples

This commit is contained in:
Greg Johnston 2024-06-07 18:44:19 -04:00
parent 2e40bace88
commit 65e3c57ed1
7 changed files with 9 additions and 15 deletions

View File

@ -27,7 +27,7 @@ async fn main() -> std::io::Result<()> {
use leptos::prelude::*;
view! {
<!DOCTYPE html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8"/>

View File

@ -30,7 +30,7 @@ async fn main() {
use leptos::prelude::*;
view! {
<!DOCTYPE html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8"/>

View File

@ -24,7 +24,7 @@ async fn main() -> std::io::Result<()> {
use leptos::prelude::*;
view! {
<!DOCTYPE html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8"/>

View File

@ -2,11 +2,11 @@
#[tokio::main]
async fn main() {
use axum::Router;
use leptos::prelude::*;
use leptos::logging;
use leptos::prelude::*;
use leptos_axum::{generate_route_list, LeptosRoutes};
use ssr_modes_axum::{app::*, fallback::file_and_error_handler};
use leptos_meta::MetaTags;
use ssr_modes_axum::{app::*, fallback::file_and_error_handler};
let conf = get_configuration(None).await.unwrap();
let addr = conf.leptos_options.site_addr;
@ -27,7 +27,7 @@ async fn main() {
use leptos::prelude::*;
view! {
<!DOCTYPE html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8"/>

View File

@ -17,8 +17,6 @@ serde = { version = "1.0.152", features = ["derive"] }
futures = "0.3.25"
leptos = { path = "../../leptos"}
leptos_actix = { path = "../../integrations/actix", optional = true }
leptos_meta = { path = "../../meta" }
leptos_router = { path = "../../router" }
log = "0.4.17"
simple_logger = "4.0.0"
gloo = { git = "https://github.com/rustwasm/gloo" }
@ -38,8 +36,6 @@ ssr = [
"dep:sqlx",
"leptos/ssr",
"leptos_actix",
"leptos_meta/ssr",
"leptos_router/ssr",
"dep:tokio",
]

View File

@ -7,7 +7,6 @@ mod ssr {
pub use actix_web::*;
pub use leptos::prelude::*;
pub use leptos_actix::{generate_route_list, LeptosRoutes};
pub use leptos_meta::MetaTags;
#[get("/style.css")]
pub async fn css() -> impl Responder {
@ -26,9 +25,9 @@ async fn main() -> std::io::Result<()> {
.await
.expect("could not run SQLx migrations");
// Generate the list of routes in your Leptos App
let conf = get_configuration(None).await.unwrap();
let addr = conf.leptos_options.site_addr;
println!("listening on http://{}", &addr);
HttpServer::new(move || {
// Generate the list of routes in your Leptos App
@ -43,7 +42,7 @@ async fn main() -> std::io::Result<()> {
use leptos::prelude::*;
view! {
<!DOCTYPE html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8"/>
@ -53,7 +52,6 @@ async fn main() -> std::io::Result<()> {
/>
<AutoReload options=leptos_options.clone()/>
<HydrationScripts options=leptos_options.clone()/>
<MetaTags/>
</head>
<body>
<TodoApp/>

View File

@ -52,7 +52,7 @@ async fn main() {
use leptos::prelude::*;
view! {
<!DOCTYPE html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8"/>