Skip to content

Commit

Permalink
wireman: Bump to v0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Philipp Reiter committed Oct 21, 2024
1 parent 3ae0963 commit 88028fc
Show file tree
Hide file tree
Showing 5 changed files with 60 additions and 49 deletions.
78 changes: 42 additions & 36 deletions Cargo.lock

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

4 changes: 4 additions & 0 deletions wireman/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
0.2.0 - 21 Okt 2024
===================
- Bump ratatui version (v0.29)

0.1.5 - 07 Sep 2024
===================
- Resize request and response windows with `+`/`-`
Expand Down
14 changes: 7 additions & 7 deletions wireman/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "wireman"
version = "0.1.4"
version = "0.2.0"
edition = "2021"
authors = ["preiter <[email protected]>"]
description = "A TUI based gRPC client"
Expand All @@ -14,20 +14,20 @@ rust-version = "1.70.0"
# core = { package = "wireman-core", path = "../wireman-core", version = "0.1.2" }
# config = { package = "wireman-config", path = "../wireman-config", version = "0.1.1" }
# logger = { package = "wireman-logger", path = "../wireman-logger", version = "0.1.0" }
# theme = { package = "wireman-theme", path = "../wireman-theme", version = "0.1.0" }
# theme = { package = "wireman-theme", path = "../wireman-theme", version = "0.2.0" }
# event-handler = { package = "wireman-event-handler", path = "../wireman-event-handler", version = "0.1.0" }

core = { package = "wireman-core", version = "0.1.2" }
config = { package = "wireman-config", version = "0.1" }
config = { package = "wireman-config", version = "0.2" }
logger = { package = "wireman-logger", version = "0.1" }
theme = { package = "wireman-theme", version = "0.1" }
theme = { package = "wireman-theme", version = "0.2" }
event-handler = { package = "wireman-event-handler", version = "0.1" }

tui-widget-list = { version = "0.12.2" }
edtui = "0.8"
tui-widget-list = { version = "0.13" }
edtui = "0.9"
# edtui = { package = "edtui", path = "../../edtui", version = "0.8.4" }
crossterm = { version = "0.28", features = ["events", "event-stream"] }
ratatui = { package = "ratatui", version = "0.28", features = ["unstable"] }
ratatui = { package = "ratatui", version = "0.29", features = ["unstable"] }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
unicode-width = "0.1"
Expand Down
6 changes: 3 additions & 3 deletions wireman/src/view/reflection_dialog.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ use ratatui::text::Line;
use ratatui::widgets::{Paragraph, Wrap};
use ratatui::{
buffer::Buffer,
layout::{Alignment, Direction, Rect},
widgets::{block::Title, Block, Borders, Widget},
layout::{Direction, Rect},
widgets::{Block, Borders, Widget},
};
use theme::Theme;

Expand All @@ -36,7 +36,7 @@ impl Widget for ReflectionDialog {
let block = Block::default()
.borders(Borders::ALL)
.style(style)
.title(Title::from("Reflection Settings").alignment(Alignment::Center))
.title_top(Line::from("Reflection Settings").centered())
.title_style(title_style);
let inner_area = block.inner(area);
block.render(area, buf);
Expand Down
7 changes: 4 additions & 3 deletions wireman/src/widgets/help.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
use crate::context::HelpContext;
use ratatui::{
prelude::{Alignment, Buffer, Constraint, Rect},
widgets::{block::Title, Block, Borders, Cell, Row, Table, Widget},
prelude::{Buffer, Constraint, Rect},
text::Line,
widgets::{Block, Borders, Cell, Row, Table, Widget},
};
use theme::Theme;

Expand All @@ -26,7 +27,7 @@ impl Widget for HelpDialog {
let style = theme.help_dialog.style;
let block = Block::default()
.borders(Borders::ALL)
.title(Title::from("Help").alignment(Alignment::Center));
.title_top(Line::from("Help").centered());
let mut rows = Vec::new();
for (key, msg) in self.key_map {
rows.push(Row::new(vec![
Expand Down

0 comments on commit 88028fc

Please sign in to comment.