graphs renamed to web

This commit is contained in:
Priec
2026-08-03 12:23:50 +02:00
parent f77e23a986
commit 35d85de556
47 changed files with 19 additions and 19 deletions

30
Cargo.lock generated
View File

@@ -105,20 +105,6 @@ version = "0.2.21"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "683d7910e743518b0e34f1186f92494becacb047c7b6bf616c96772180fef923"
[[package]]
name = "analytics-graphs"
version = "0.1.0"
dependencies = [
"axum",
"prost",
"prost-types",
"serde",
"serde_json",
"tokio",
"tonic",
"tonic-prost",
]
[[package]]
name = "android_system_properties"
version = "0.1.5"
@@ -6573,7 +6559,6 @@ dependencies = [
name = "server"
version = "0.8.37"
dependencies = [
"analytics-graphs",
"anyhow",
"bcrypt",
"casbin",
@@ -6628,6 +6613,7 @@ dependencies = [
"url",
"uuid",
"validator",
"web",
]
[[package]]
@@ -8674,6 +8660,20 @@ version = "0.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "323f4da9523e9a669e1eaf9c6e763892769b1d38c623913647bfdc1532fe4549"
[[package]]
name = "web"
version = "0.1.0"
dependencies = [
"axum",
"prost",
"prost-types",
"serde",
"serde_json",
"tokio",
"tonic",
"tonic-prost",
]
[[package]]
name = "web-sys"
version = "0.3.103"

2
server

Submodule server updated: ad508b8f27...453d16c430

View File

View File

@@ -1,5 +1,5 @@
[package]
name = "analytics-graphs"
name = "web"
version = "0.1.0"
edition = "2024"

View File

@@ -141,7 +141,7 @@ struct ColumnOutput {
pub fn spawn() -> tokio::task::JoinHandle<()> {
tokio::spawn(async {
if let Err(error) = serve().await {
eprintln!("Analytics graphs stopped: {error}");
eprintln!("Web UI stopped: {error}");
}
})
}
@@ -179,7 +179,7 @@ pub async fn serve() -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
.with_state(state);
let listener = tokio::net::TcpListener::bind(listen_address).await?;
println!("Analytics graphs: http://{listen_address}");
println!("Web UI: http://{listen_address}");
println!("Analytics gRPC endpoint: {grpc_endpoint}");
axum::serve(listener, app).await?;
Ok(())