chore: update ratatui from 0.28 to 0.30

This commit is contained in:
jasonwitty
2026-05-17 05:10:55 -07:00
parent 3024816525
commit 552d2c1375
5 changed files with 882 additions and 111 deletions
Generated
+866 -103
View File
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -24,7 +24,7 @@ serde_json = "1.0"
sysinfo = "0.37" sysinfo = "0.37"
# CLI UI # CLI UI
ratatui = "0.28" ratatui = "0.30"
crossterm = "0.27" crossterm = "0.27"
# web server (remote-agent) # web server (remote-agent)
+12 -3
View File
@@ -465,7 +465,10 @@ impl App {
_url: &str, _url: &str,
_tls_ca: Option<&str>, _tls_ca: Option<&str>,
_verify_hostname: bool, _verify_hostname: bool,
) -> Result<(), Box<dyn std::error::Error>> { ) -> Result<(), Box<dyn std::error::Error>>
where
<B as ratatui::backend::Backend>::Error: 'static,
{
loop { loop {
// Handle input for modal // Handle input for modal
while event::poll(Duration::from_millis(10))? { while event::poll(Duration::from_millis(10))? {
@@ -572,7 +575,10 @@ impl App {
&mut self, &mut self,
terminal: &mut Terminal<B>, terminal: &mut Terminal<B>,
mut ws: SocktopConnector, mut ws: SocktopConnector,
) -> Result<(), Box<dyn std::error::Error>> { ) -> Result<(), Box<dyn std::error::Error>>
where
<B as ratatui::backend::Backend>::Error: 'static,
{
loop { loop {
// Main event loop // Main event loop
let result = self.run_event_loop_iteration(terminal, &mut ws).await; let result = self.run_event_loop_iteration(terminal, &mut ws).await;
@@ -592,7 +598,10 @@ impl App {
&mut self, &mut self,
terminal: &mut Terminal<B>, terminal: &mut Terminal<B>,
ws: &mut SocktopConnector, ws: &mut SocktopConnector,
) -> Result<(), Box<dyn std::error::Error>> { ) -> Result<(), Box<dyn std::error::Error>>
where
<B as ratatui::backend::Backend>::Error: 'static,
{
loop { loop {
// Input (non-blocking) // Input (non-blocking)
while event::poll(Duration::from_millis(10))? { while event::poll(Duration::from_millis(10))? {
+2 -3
View File
@@ -41,12 +41,11 @@ impl ModalManager {
]) ])
.split(area); .split(area);
let block = Block::default() let block = Block::default()
.title(ICON_WARNING_TITLE) .title(Line::from(ICON_WARNING_TITLE).style(
.title_style(
Style::default() Style::default()
.fg(MODAL_TITLE_FG) .fg(MODAL_TITLE_FG)
.add_modifier(Modifier::BOLD), .add_modifier(Modifier::BOLD),
) ))
.borders(Borders::ALL) .borders(Borders::ALL)
.border_style(Style::default().fg(MODAL_BORDER_FG)) .border_style(Style::default().fg(MODAL_BORDER_FG))
.style(Style::default().bg(MODAL_BG).fg(MODAL_FG)); .style(Style::default().bg(MODAL_BG).fg(MODAL_FG));
+1 -1
View File
@@ -419,7 +419,7 @@ impl ModalManager {
) )
.header(header) .header(header)
.block(block) .block(block)
.highlight_style(Style::default()); .row_highlight_style(Style::default());
f.render_widget(table, area); f.render_widget(table, area);