Added ratatui
This commit is contained in:
parent
ba8b12c727
commit
28483fe165
8 changed files with 559 additions and 14 deletions
|
|
@ -1,7 +1,6 @@
|
|||
use crate::core::models::{UnifiedData, UnifiedMonitorData};
|
||||
use crate::data::heartbeat::model::{HeartbeatResponse};
|
||||
use crate::data::status_page::model::{StatusPageResponse};
|
||||
|
||||
use crate::data::heartbeat::model::HeartbeatResponse;
|
||||
use crate::data::status_page::model::StatusPageResponse;
|
||||
|
||||
pub fn unify_data(status_page: &StatusPageResponse, heartbeat: &HeartbeatResponse) -> UnifiedData {
|
||||
let mut monitors = Vec::new();
|
||||
|
|
@ -28,8 +27,8 @@ pub fn unify_data(status_page: &StatusPageResponse, heartbeat: &HeartbeatRespons
|
|||
monitors.sort_by_key(|m| m.monitor_info.id);
|
||||
|
||||
UnifiedData {
|
||||
status_page_title: status_page.config.title.clone(),
|
||||
status_page_description: status_page.config.description.clone(),
|
||||
title: status_page.config.title.clone(),
|
||||
description: status_page.config.description.clone(),
|
||||
monitors,
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue