add router

This commit is contained in:
Romulus21
2024-09-02 23:20:37 +02:00
parent abcbc16d24
commit 9bc48ff63d
10 changed files with 190 additions and 159 deletions

View File

@@ -16,6 +16,8 @@ console_error_panic_hook = "0.1.7"
serde = { version = "1.0", features = ["derive"] }
futures = "0.3.30"
leptos = { git = "https://github.com/leptos-rs/leptos" }
leptos_router = { git = "https://github.com/leptos-rs/leptos" }
leptos_meta = { git = "https://github.com/leptos-rs/leptos" }
leptos_actix = { git = "https://github.com/leptos-rs/leptos", optional = true }
log = "0.4.22"
simple_logger = "5.0"
@@ -36,6 +38,8 @@ ssr = [
"dep:sqlx",
"leptos/ssr",
"leptos_actix",
"leptos_meta/ssr",
"leptos_router/ssr",
"dep:tokio",
]
@@ -52,7 +56,7 @@ site-root = "target/site"
# Defaults to pkg
site-pkg-dir = "pkg"
# [Optional] The source CSS file. If it ends with .sass or .scss then it will be compiled by dart-sass into CSS. The CSS is optimized by Lightning CSS before being written to <site-root>/<site-pkg>/app.css
style-file = "./style.css"
style-file = "style/output.css"
# [Optional] Files in the asset-dir will be copied to the site-root directory
assets-dir = "public"
# The IP and port (ex: 127.0.0.1:3000) where the server serves the content. Use it in your server setup.