Clean up unused imports and fix build warnings

- Remove unused imports (Duration, HashMap, SharedError, DateTime, etc.)
- Fix unused variables by prefixing with underscore
- Remove redundant dashboard.toml config file
- Update theme imports to use only needed components
- Maintain all functionality while reducing warnings
- Add srv02 to predefined hosts configuration
- Remove unused broadcast_command methods
This commit is contained in:
2025-10-18 23:12:07 +02:00
parent f0eec38655
commit 7f85a6436e
21 changed files with 27 additions and 150 deletions

View File

@@ -1,13 +1,10 @@
use cm_dashboard_shared::{Metric, Status};
use std::collections::HashMap;
use std::time::{Duration, Instant};
use tracing::{debug, info};
use std::time::Instant;
pub mod store;
pub mod subscription;
pub use store::MetricStore;
pub use subscription::SubscriptionManager;
/// Widget types that can subscribe to metrics
#[derive(Debug, Clone, Copy, Hash, Eq, PartialEq)]
@@ -21,13 +18,6 @@ pub enum WidgetType {
Alerts,
}
/// Metric subscription entry
#[derive(Debug, Clone)]
pub struct MetricSubscription {
pub widget_type: WidgetType,
pub metric_names: Vec<String>,
}
/// Historical metric data point
#[derive(Debug, Clone)]
pub struct MetricDataPoint {