src/clock.rs -> src/widgets/clock.rs

This commit is contained in:
jk 2024-12-06 15:24:23 +01:00
parent 929e453d85
commit 04d3dced63
No known key found for this signature in database
6 changed files with 4 additions and 4 deletions

View File

@ -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,

View File

@ -1,5 +1,4 @@
mod app; mod app;
mod clock;
mod config; mod config;
mod constants; mod constants;
mod events; mod events;

View File

@ -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;

View File

@ -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)]

View File

@ -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,