Update ratatui to v0.24
This commit is contained in:
@ -50,7 +50,7 @@ matrix-sdk = { git = "https://github.com/matrix-org/matrix-rust-sdk.git", rev =
|
|||||||
|
|
||||||
# UI
|
# UI
|
||||||
crossterm = { version = "0.27.0", features = ["serde", "event-stream"] }
|
crossterm = { version = "0.27.0", features = ["serde", "event-stream"] }
|
||||||
ratatui = { version = "0.23.0", features = ["serde", "macros"] }
|
ratatui = { version = "0.24.0", features = ["serde", "macros"] }
|
||||||
strip-ansi-escapes = "0.2.0"
|
strip-ansi-escapes = "0.2.0"
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
|
@ -1,12 +1,13 @@
|
|||||||
use color_eyre::eyre::Result;
|
use color_eyre::eyre::Result;
|
||||||
use crossterm::event::{KeyEvent, MouseEvent};
|
use crossterm::event::{KeyEvent, MouseEvent};
|
||||||
use ratatui::layout::Rect;
|
use ratatui::layout::Rect;
|
||||||
|
use ratatui::Frame;
|
||||||
use tokio::sync::mpsc::UnboundedSender;
|
use tokio::sync::mpsc::UnboundedSender;
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
action::Action,
|
action::Action,
|
||||||
config::Config,
|
config::Config,
|
||||||
tui::{Event, Frame},
|
tui::Event,
|
||||||
};
|
};
|
||||||
|
|
||||||
pub mod fps;
|
pub mod fps;
|
||||||
|
@ -4,7 +4,7 @@ use color_eyre::eyre::Result;
|
|||||||
use ratatui::{prelude::*, widgets::*};
|
use ratatui::{prelude::*, widgets::*};
|
||||||
|
|
||||||
use super::Component;
|
use super::Component;
|
||||||
use crate::{action::Action, tui::Frame};
|
use crate::action::Action;
|
||||||
|
|
||||||
#[derive(Debug, Clone, PartialEq)]
|
#[derive(Debug, Clone, PartialEq)]
|
||||||
pub struct FpsCounter {
|
pub struct FpsCounter {
|
||||||
|
@ -7,7 +7,7 @@ use serde::{Deserialize, Serialize};
|
|||||||
use tokio::sync::mpsc::UnboundedSender;
|
use tokio::sync::mpsc::UnboundedSender;
|
||||||
use tokio::sync::OnceCell;
|
use tokio::sync::OnceCell;
|
||||||
|
|
||||||
use super::{Component, Frame};
|
use super::Component;
|
||||||
use crate::{
|
use crate::{
|
||||||
action::Action,
|
action::Action,
|
||||||
config::{Config, KeyBindings},
|
config::{Config, KeyBindings},
|
||||||
|
@ -25,7 +25,6 @@ pub type IO = std::io::Stderr;
|
|||||||
pub fn io() -> IO {
|
pub fn io() -> IO {
|
||||||
std::io::stderr()
|
std::io::stderr()
|
||||||
}
|
}
|
||||||
pub type Frame<'a> = ratatui::Frame<'a, Backend<IO>>;
|
|
||||||
|
|
||||||
#[derive(Clone, Debug, Serialize, Deserialize)]
|
#[derive(Clone, Debug, Serialize, Deserialize)]
|
||||||
pub enum Event {
|
pub enum Event {
|
||||||
|
Reference in New Issue
Block a user