Skip to content

Commit

Permalink
Add tui-popup to widgets
Browse files Browse the repository at this point in the history
  • Loading branch information
joshka committed Jul 25, 2024
1 parent e0ef8c5 commit 7456338
Show file tree
Hide file tree
Showing 19 changed files with 56 additions and 1,143 deletions.
File renamed without changes.
17 changes: 12 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,13 @@ clap = { version = "4.5.8", features = ["derive"] }
color-eyre = "0.6.3"
crossterm = { version = "0.27.0" }
derive_builder = "0.20.0"
derive-getters = "0.4.0"
derive_setters = "0.1.6"
document-features = "0.2.10"
futures = "0.3.21"
itertools = "0.13.0"
indoc = "2.0.5"
lipsum = "0.9.1"
ratatui = { version = "0.27.0", default-features = false }
ratatui-macros = "0.4.2"
rstest = "0.21.0"
Expand Down Expand Up @@ -50,19 +54,22 @@ repository.workspace = true
rust-version.workspace = true

[features]
default = ["full"]
## All widgets
full = ["big-text", "prompts", "scrollview"]
#! # features
## By default, all the widgets are enabled.
default = ["big-text", "popup", "prompts", "scrollview"]
## Enables the [`big_text`] widget
big-text = ["tui-big-text"]
## Enables the [`popup`] widget
popup = ["tui-popup"]
## Enables the [`prompts`] widget
prompts = ["tui-prompts"]
## Enables the [`scrollview`] widget
scrollview = ["tui-scrollview"]

[dependencies]
document-features = "0.2.10"
document-features.workspace = true
ratatui = { workspace = true }
tui-big-text = { version = "0.4.7", path = "tui-big-text", optional = true }
tui-scrollview = { version = "0.3.9", path = "tui-scrollview", optional = true }
tui-popup = { version = "0.4.2", path = "tui-popup", optional = true }
tui-prompts = { version = "0.3.18", path = "tui-prompts", optional = true }
tui-scrollview = { version = "0.3.9", path = "tui-scrollview", optional = true }
27 changes: 24 additions & 3 deletions bacon.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,36 @@ command = [
need_stdout = true

[jobs.doc]
command = ["cargo", "doc", "--color", "always", "--no-deps"]
command = [
"cargo",
"+nightly",
"doc",
"-Zunstable-options",
"-Zrustdoc-scrape-examples",
"--all-features",
"--color",
"always",
"--no-deps",
]
need_stdout = false

# If the doc compiles, then it opens in your browser and bacon switches
# to the previous job
[jobs.doc-open]
command = ["cargo", "doc", "--color", "always", "--no-deps", "--open"]
command = [
"cargo",
"+nightly",
"doc",
"-Zunstable-options",
"-Zrustdoc-scrape-examples",
"--all-features",
"--color",
"always",
"--no-deps",
"--open",
]
need_stdout = false
on_success = "job:doc" # so that we don't open the browser at each change
on_success = "job:doc" # so that we don't open the browser at each change

# You can run your application and have the result displayed in bacon,
# *if* it makes sense for this crate. You can run an example the same
Expand Down
6 changes: 4 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,16 @@
//! This is a crate that combines multiple previously standalone crates into one in order simplify
//! maintenance and to make it easier to use the widgets together.
//!
//! # Features
#![doc = document_features::document_features!()]

#[doc(inline)]
pub use tui_big_text as big_text;

#[doc(inline)]
pub use tui_scrollview as scrollview;
pub use tui_popup as popup;

#[doc(inline)]
pub use tui_prompts as prompts;

#[doc(inline)]
pub use tui_scrollview as scrollview;
15 changes: 0 additions & 15 deletions tui-popup/.github/dependabot.yml

This file was deleted.

15 changes: 0 additions & 15 deletions tui-popup/.github/workflows/check.yml

This file was deleted.

20 changes: 0 additions & 20 deletions tui-popup/.github/workflows/release-plz.yml

This file was deleted.

13 changes: 0 additions & 13 deletions tui-popup/.github/workflows/test.yml

This file was deleted.

1 change: 0 additions & 1 deletion tui-popup/.gitignore

This file was deleted.

3 changes: 0 additions & 3 deletions tui-popup/.vscode/settings.json

This file was deleted.

Loading

0 comments on commit 7456338

Please sign in to comment.