chore(deps): update rust crate ratatui to 0.29
This commit is contained in:
parent
23de987444
commit
d989da659c
4 changed files with 44 additions and 25 deletions
36
Cargo.lock
generated
36
Cargo.lock
generated
|
@ -1118,7 +1118,7 @@ dependencies = [
|
||||||
"notify",
|
"notify",
|
||||||
"pretty_assertions",
|
"pretty_assertions",
|
||||||
"rand",
|
"rand",
|
||||||
"ratatui",
|
"ratatui 0.29.0",
|
||||||
"regex",
|
"regex",
|
||||||
"rstest 0.23.0",
|
"rstest 0.23.0",
|
||||||
"secrecy 0.10.3",
|
"secrecy 0.10.3",
|
||||||
|
@ -3352,7 +3352,6 @@ dependencies = [
|
||||||
"bitflags 2.6.0",
|
"bitflags 2.6.0",
|
||||||
"cassowary",
|
"cassowary",
|
||||||
"compact_str",
|
"compact_str",
|
||||||
"crossterm",
|
|
||||||
"instability",
|
"instability",
|
||||||
"itertools",
|
"itertools",
|
||||||
"lru",
|
"lru",
|
||||||
|
@ -3361,7 +3360,28 @@ dependencies = [
|
||||||
"strum_macros 0.26.4",
|
"strum_macros 0.26.4",
|
||||||
"unicode-segmentation",
|
"unicode-segmentation",
|
||||||
"unicode-truncate",
|
"unicode-truncate",
|
||||||
"unicode-width",
|
"unicode-width 0.1.13",
|
||||||
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "ratatui"
|
||||||
|
version = "0.29.0"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "eabd94c2f37801c20583fc49dd5cd6b0ba68c716787c2dd6ed18571e1e63117b"
|
||||||
|
dependencies = [
|
||||||
|
"bitflags 2.6.0",
|
||||||
|
"cassowary",
|
||||||
|
"compact_str",
|
||||||
|
"crossterm",
|
||||||
|
"indoc",
|
||||||
|
"instability",
|
||||||
|
"itertools",
|
||||||
|
"lru",
|
||||||
|
"paste",
|
||||||
|
"strum 0.26.3",
|
||||||
|
"unicode-segmentation",
|
||||||
|
"unicode-truncate",
|
||||||
|
"unicode-width 0.2.0",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
|
@ -4401,7 +4421,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "27a65189ac0c5f8af32660c453a1babae3ac7e72791b9dbeb1221073569f44ea"
|
checksum = "27a65189ac0c5f8af32660c453a1babae3ac7e72791b9dbeb1221073569f44ea"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"indoc",
|
"indoc",
|
||||||
"ratatui",
|
"ratatui 0.28.1",
|
||||||
"rstest 0.22.0",
|
"rstest 0.22.0",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -4500,7 +4520,7 @@ checksum = "b3644627a5af5fa321c95b9b235a72fd24cd29c648c2c379431e6628655627bf"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"itertools",
|
"itertools",
|
||||||
"unicode-segmentation",
|
"unicode-segmentation",
|
||||||
"unicode-width",
|
"unicode-width 0.1.13",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
|
@ -4509,6 +4529,12 @@ version = "0.1.13"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "0336d538f7abc86d282a4189614dfaa90810dfc2c6f6427eaf88e16311dd225d"
|
checksum = "0336d538f7abc86d282a4189614dfaa90810dfc2c6f6427eaf88e16311dd225d"
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "unicode-width"
|
||||||
|
version = "0.2.0"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "1fc81956842c57dac11422a97c3b8195a1ff727f06e85c84ed2e8aa277c9a0fd"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "unicode-xid"
|
name = "unicode-xid"
|
||||||
version = "0.2.5"
|
version = "0.2.5"
|
||||||
|
|
|
@ -27,7 +27,7 @@ git-next-forge-forgejo = { path = "crates/forge-forgejo", version = "0.13" }
|
||||||
git-next-forge-github = { path = "crates/forge-github", version = "0.13" }
|
git-next-forge-github = { path = "crates/forge-github", version = "0.13" }
|
||||||
|
|
||||||
# TUI
|
# TUI
|
||||||
ratatui = "0.28"
|
ratatui = "0.29"
|
||||||
directories = "5.0"
|
directories = "5.0"
|
||||||
lazy_static = "1.5"
|
lazy_static = "1.5"
|
||||||
color-eyre = "0.6"
|
color-eyre = "0.6"
|
||||||
|
|
|
@ -5,10 +5,7 @@ use ratatui::{
|
||||||
style::{Color, Style, Stylize as _},
|
style::{Color, Style, Stylize as _},
|
||||||
symbols::border,
|
symbols::border,
|
||||||
text::{Line, Span},
|
text::{Line, Span},
|
||||||
widgets::{
|
widgets::{Block, Paragraph, StatefulWidget, Widget},
|
||||||
block::{Position, Title},
|
|
||||||
Block, Paragraph, StatefulWidget, Widget,
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
|
|
||||||
use git_next_core::{
|
use git_next_core::{
|
||||||
|
@ -363,24 +360,19 @@ impl StatefulWidget for &State {
|
||||||
Self: Sized,
|
Self: Sized,
|
||||||
{
|
{
|
||||||
let block = Block::bordered()
|
let block = Block::bordered()
|
||||||
.title(
|
.title_top(
|
||||||
Title::from(format!(" Git-Next v{} ", clap::crate_version!()).bold())
|
Line::from(format!(" Git-Next v{} ", clap::crate_version!()).bold())
|
||||||
.alignment(Alignment::Center),
|
.alignment(Alignment::Center),
|
||||||
)
|
)
|
||||||
.title(
|
.title_bottom(
|
||||||
Title::from(Line::from(vec![
|
Line::from(vec![
|
||||||
" [q]uit ".into(),
|
" [q]uit ".into(),
|
||||||
self.beating_heart().into(),
|
self.beating_heart().into(),
|
||||||
" ".into(),
|
" ".into(),
|
||||||
]))
|
])
|
||||||
.alignment(Alignment::Center)
|
.alignment(Alignment::Center),
|
||||||
.position(Position::Bottom),
|
|
||||||
)
|
|
||||||
.title(
|
|
||||||
Title::from(format!(" {} ", time()))
|
|
||||||
.alignment(Alignment::Right)
|
|
||||||
.position(Position::Bottom),
|
|
||||||
)
|
)
|
||||||
|
.title_bottom(Line::from(format!(" {} ", time())).alignment(Alignment::Right))
|
||||||
.border_set(border::THICK);
|
.border_set(border::THICK);
|
||||||
let interior = block.inner(area);
|
let interior = block.inner(area);
|
||||||
block.render(area, buf);
|
block.render(area, buf);
|
||||||
|
|
|
@ -5,7 +5,8 @@ use git_next_core::{ForgeAlias, RepoAlias};
|
||||||
use ratatui::{
|
use ratatui::{
|
||||||
buffer::Buffer,
|
buffer::Buffer,
|
||||||
layout::{Alignment, Direction, Layout, Rect},
|
layout::{Alignment, Direction, Layout, Rect},
|
||||||
widgets::{block::Title, Block, Widget},
|
text::Line,
|
||||||
|
widgets::{Block, Widget},
|
||||||
};
|
};
|
||||||
|
|
||||||
use crate::tui::{
|
use crate::tui::{
|
||||||
|
@ -31,8 +32,8 @@ impl<'a> Widget for ExpandedForgeWidget<'a> {
|
||||||
where
|
where
|
||||||
Self: Sized,
|
Self: Sized,
|
||||||
{
|
{
|
||||||
let block = Block::default().title(
|
let block = Block::default().title_top(
|
||||||
Title::from(format!(" forge: {} ", self.forge_alias)).alignment(Alignment::Left),
|
Line::from(format!(" forge: {} ", self.forge_alias)).alignment(Alignment::Left),
|
||||||
);
|
);
|
||||||
let children = self.children();
|
let children = self.children();
|
||||||
let layout = Layout::default()
|
let layout = Layout::default()
|
||||||
|
|
Loading…
Reference in a new issue