Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 17 additions & 31 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ itertools = { version = "0.11.0", default-features = false, optional = true }
crossterm = { version = "0.26.1", default-features = false, features = ["event-stream"], optional = true }
num-format = { version = "0.4.4", default-features = false, features = ["with-num-bigint"], optional = true }
number_prefix = { version = "0.4.0", default-features = false, features = ["std"], optional = true }
tui = { version = "0.19.0", optional = true, default-features = false, features = ["crossterm"] }
ratatui = { version = "0.22.0", optional = true, default-features = false, features = ["crossterm"] }
Comment thread Fixed

# Datadog Pipelines

Expand Down Expand Up @@ -443,7 +443,7 @@ api-client = [
"dep:crossterm",
"dep:num-format",
"dep:number_prefix",
"dep:tui",
"dep:ratatui",
Comment thread Fixed
"vector-core/api",
"dep:vector-api-client",
]
Expand Down
14 changes: 7 additions & 7 deletions src/top/dashboard.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@ use crossterm::{
};
use num_format::{Locale, ToFormattedString};
use number_prefix::NumberPrefix;
use std::io::stdout;
use tokio::sync::oneshot;
use tui::{
use ratatui::{
Comment thread Fixed
backend::{Backend, CrosstermBackend},
layout::{Alignment, Constraint, Layout, Rect},
style::{Color, Modifier, Style},
text::{Span, Spans},
text::{Line, Span},
widgets::{Block, Borders, Cell, Paragraph, Row, Table, Wrap},
Frame, Terminal,
};
use std::io::stdout;
use tokio::sync::oneshot;

use super::{
events::capture_key_press,
Expand Down Expand Up @@ -180,7 +180,7 @@ impl<'a> Widgets<'a> {
];
text.extend(connection_status.as_ui_spans());

let text = vec![Spans::from(text)];
let text = vec![Line::from(text)];

let block = Block::default().borders(Borders::ALL).title(Span::styled(
self.title,
Expand Down Expand Up @@ -260,7 +260,7 @@ impl<'a> Widgets<'a> {
.into_iter()
.map(Cell::from)
.collect::<Vec<_>>();
data[1] = Cell::from(id.as_ref());
data[1] = Cell::from(id.as_str());
data[5] = Cell::from(sent_events_metric);
items.push(Row::new(data).style(Style::default()));
}
Expand Down Expand Up @@ -312,7 +312,7 @@ impl<'a> Widgets<'a> {

/// Renders a box showing instructions on how to exit from `vector top`.
fn quit_box<B: Backend>(&self, f: &mut Frame<B>, area: Rect) {
let text = vec![Spans::from("To quit, press ESC or 'q'")];
let text = vec![Line::from("To quit, press ESC or 'q'")];

let block = Block::default()
.borders(Borders::ALL)
Expand Down
4 changes: 2 additions & 2 deletions src/top/state.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
use std::collections::{BTreeMap, HashMap};

use chrono::{DateTime, Local};
use tokio::sync::mpsc;
use tui::{
use ratatui::{
Comment thread Fixed
style::{Color, Style},
text::Span,
};
use tokio::sync::mpsc;
use vector_core::internal_event::DEFAULT_OUTPUT;

use crate::config::ComponentKey;
Expand Down