mirror of
https://github.com/danog/ytop.git
synced 2024-11-26 20:15:03 +01:00
Refactor
This commit is contained in:
parent
2d419a91a0
commit
266e62c26d
@ -5,7 +5,7 @@ use tui::buffer::Buffer;
|
||||
use tui::layout::Rect;
|
||||
use tui::widgets::Widget;
|
||||
|
||||
use crate::widgets::block;
|
||||
use super::block;
|
||||
|
||||
pub struct BatteryWidget {
|
||||
title: String,
|
||||
|
@ -4,7 +4,7 @@ use tui::layout::Rect;
|
||||
use tui::style::{Color, Style};
|
||||
use tui::widgets::{Axis, Chart, Dataset, Marker, Widget};
|
||||
|
||||
use crate::widgets::block;
|
||||
use super::block;
|
||||
|
||||
pub struct CpuWidget {
|
||||
title: String,
|
||||
|
@ -6,7 +6,7 @@ use tui::buffer::Buffer;
|
||||
use tui::layout::Rect;
|
||||
use tui::widgets::Widget;
|
||||
|
||||
use crate::widgets::block;
|
||||
use super::block;
|
||||
|
||||
struct Partition {
|
||||
name: String,
|
||||
|
@ -3,7 +3,7 @@ use tui::buffer::Buffer;
|
||||
use tui::layout::Rect;
|
||||
use tui::widgets::{Paragraph, Text, Widget};
|
||||
|
||||
use crate::widgets::block;
|
||||
use super::block;
|
||||
|
||||
const TEXT: &str = r"Quit: q or <C-c>
|
||||
Process navigation:
|
||||
|
@ -3,7 +3,7 @@ use tui::buffer::Buffer;
|
||||
use tui::layout::Rect;
|
||||
use tui::widgets::Widget;
|
||||
|
||||
use crate::widgets::block;
|
||||
use super::block;
|
||||
|
||||
pub struct MemWidget {
|
||||
title: String,
|
||||
|
@ -3,7 +3,7 @@ use tui::buffer::Buffer;
|
||||
use tui::layout::Rect;
|
||||
use tui::widgets::Widget;
|
||||
|
||||
use crate::widgets::block;
|
||||
use super::block;
|
||||
|
||||
pub struct NetWidget {
|
||||
title: String,
|
||||
|
@ -3,7 +3,7 @@ use tui::buffer::Buffer;
|
||||
use tui::layout::Rect;
|
||||
use tui::widgets::Widget;
|
||||
|
||||
use crate::widgets::block;
|
||||
use super::block;
|
||||
|
||||
pub struct ProcWidget {
|
||||
title: String,
|
||||
|
@ -4,7 +4,7 @@ use tui::layout::Rect;
|
||||
use tui::style::{Color, Style};
|
||||
use tui::widgets::Widget;
|
||||
|
||||
use crate::widgets::block;
|
||||
use super::block;
|
||||
|
||||
pub struct Statusbar {
|
||||
hostname: String,
|
||||
|
@ -3,7 +3,7 @@ use tui::buffer::Buffer;
|
||||
use tui::layout::Rect;
|
||||
use tui::widgets::Widget;
|
||||
|
||||
use crate::widgets::block;
|
||||
use super::block;
|
||||
|
||||
pub struct TempWidget {
|
||||
title: String,
|
||||
|
Loading…
Reference in New Issue
Block a user