src/clock.rs -> src/widgets/clock.rs
This commit is contained in:
parent
929e453d85
commit
04d3dced63
@ -1,9 +1,9 @@
|
|||||||
use crate::{
|
use crate::{
|
||||||
clock::{self, Clock},
|
|
||||||
constants::TICK_VALUE_MS,
|
constants::TICK_VALUE_MS,
|
||||||
events::{Event, EventHandler, Events},
|
events::{Event, EventHandler, Events},
|
||||||
terminal::Terminal,
|
terminal::Terminal,
|
||||||
widgets::{
|
widgets::{
|
||||||
|
clock::{self, Clock},
|
||||||
countdown::{Countdown, CountdownWidget},
|
countdown::{Countdown, CountdownWidget},
|
||||||
footer::Footer,
|
footer::Footer,
|
||||||
header::Header,
|
header::Header,
|
||||||
|
|||||||
@ -1,5 +1,4 @@
|
|||||||
mod app;
|
mod app;
|
||||||
mod clock;
|
|
||||||
mod config;
|
mod config;
|
||||||
mod constants;
|
mod constants;
|
||||||
mod events;
|
mod events;
|
||||||
|
|||||||
@ -1,3 +1,4 @@
|
|||||||
|
pub mod clock;
|
||||||
pub mod countdown;
|
pub mod countdown;
|
||||||
pub mod footer;
|
pub mod footer;
|
||||||
pub mod header;
|
pub mod header;
|
||||||
|
|||||||
@ -8,9 +8,9 @@ use ratatui::{
|
|||||||
use std::cmp::max;
|
use std::cmp::max;
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
clock::{self, Clock, ClockWidget},
|
|
||||||
events::{Event, EventHandler},
|
events::{Event, EventHandler},
|
||||||
utils::center,
|
utils::center,
|
||||||
|
widgets::clock::{self, Clock, ClockWidget},
|
||||||
};
|
};
|
||||||
|
|
||||||
#[derive(Debug, Clone)]
|
#[derive(Debug, Clone)]
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
use crate::{
|
use crate::{
|
||||||
clock::{self, Clock, ClockWidget},
|
|
||||||
events::{Event, EventHandler},
|
events::{Event, EventHandler},
|
||||||
utils::center,
|
utils::center,
|
||||||
|
widgets::clock::{self, Clock, ClockWidget},
|
||||||
};
|
};
|
||||||
use ratatui::{
|
use ratatui::{
|
||||||
buffer::Buffer,
|
buffer::Buffer,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user