- Remove unused fields from CommandStatus variants - Clean up unused methods and unused collector fields - Fix lifetime syntax warning in SystemWidget - Delete unused cache module completely - Remove redundant render methods from widgets All agent and dashboard warnings eliminated while preserving panel switching and scrolling functionality.
19 lines
391 B
Rust
19 lines
391 B
Rust
use cm_dashboard_shared::Metric;
|
|
|
|
pub mod backup;
|
|
pub mod cpu;
|
|
pub mod memory;
|
|
pub mod services;
|
|
pub mod system;
|
|
|
|
pub use backup::BackupWidget;
|
|
pub use services::ServicesWidget;
|
|
pub use system::SystemWidget;
|
|
|
|
/// Widget trait for UI components that display metrics
|
|
pub trait Widget {
|
|
/// Update widget with new metrics data
|
|
fn update_from_metrics(&mut self, metrics: &[&Metric]);
|
|
|
|
}
|