From fb292eaed52e4179838cb3e7bc4a507ca1838a5a Mon Sep 17 00:00:00 2001 From: Hermes Agent Date: Fri, 26 Jun 2026 09:19:18 -0400 Subject: [PATCH] fix: validation URL Imago vide + ajout username configurable (ui.username) --- src/config.rs | 4 ++++ src/frontend/changelog.html | 6 +++--- src/frontend/help.html | 6 +++--- src/frontend/index.html | 24 +++++++++++++++++++++--- src/imago_client.rs | 6 +++++- src/server/mod.rs | 1 + src/server/routes.rs | 13 +++++++++++++ 7 files changed, 50 insertions(+), 10 deletions(-) diff --git a/src/config.rs b/src/config.rs index 734974a..165b7ef 100644 --- a/src/config.rs +++ b/src/config.rs @@ -104,6 +104,9 @@ fn default_cache_size() -> usize { #[derive(Debug, Clone, Serialize, Deserialize)] pub struct UiConfig { + /// Nom affiché dans le dashboard + #[serde(default)] + pub username: String, #[serde(default = "default_true")] pub show_notifications: bool, #[serde(default = "default_true")] @@ -115,6 +118,7 @@ pub struct UiConfig { impl Default for UiConfig { fn default() -> Self { Self { + username: String::new(), show_notifications: true, show_tray_icon: true, notification_timeout_sec: default_notification_timeout(), diff --git a/src/frontend/changelog.html b/src/frontend/changelog.html index 89924e9..d22f430 100644 --- a/src/frontend/changelog.html +++ b/src/frontend/changelog.html @@ -3,7 +3,7 @@ -Changelog — imagod-web v0.2.0+build.30-ce93740-dirty +Changelog — imagod-web v0.2.0+build.31-05d13a7-dirty