Skip to content

Commit

Permalink
feat: make KAFKA_PROPERTIES_WITH_LOCATIONS public
Browse files Browse the repository at this point in the history
  • Loading branch information
Mcdostone committed Feb 5, 2025
1 parent c58d97a commit dbdb637
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 7 deletions.
2 changes: 1 addition & 1 deletion crates/app/src/configuration/cluster_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use url::Url;
use super::Configuration;

/// List of kafka properties that are a file location.
const KAFKA_PROPERTIES_WITH_LOCATIONS: [&str; 6] = [
pub const KAFKA_PROPERTIES_WITH_LOCATIONS: [&str; 6] = [
"ssl.ca.location",
"ssl.certificate.location",
"ssl.key.location",
Expand Down
1 change: 1 addition & 0 deletions crates/app/src/configuration/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ mod yozefu_config;

pub use cluster_config::ClusterConfig;
pub use cluster_config::SchemaRegistryConfig;
pub use cluster_config::KAFKA_PROPERTIES_WITH_LOCATIONS;
pub use global_config::GlobalConfig;
pub use internal_config::InternalConfig;
pub use yozefu_config::YozefuConfig;
Expand Down
20 changes: 14 additions & 6 deletions crates/tui/src/component/root_component.rs
Original file line number Diff line number Diff line change
Expand Up @@ -344,12 +344,20 @@ impl Component for RootComponent {

fn draw(&mut self, f: &mut Frame<'_>, rect: Rect, _: &State) -> Result<(), TuiError> {
if rect.width < 20 && rect.height < 4 {
let [area] = Layout::horizontal([Constraint::Length(8)])
.flex(Flex::Center)
.areas(rect);
let [area] = Layout::vertical([Constraint::Length(1)]).flex(Flex::Center).areas(area);

f.render_widget(Paragraph::new(String::from_utf8(vec![70, 111, 114, 32, 74, 32, 226, 157, 164, 239, 184, 143]).unwrap()), area);
let [area] = Layout::horizontal([Constraint::Length(4)])
.flex(Flex::Center)
.areas(rect);
let [area] = Layout::vertical([Constraint::Length(1)])
.flex(Flex::Center)
.areas(area);

Check warning on line 353 in crates/tui/src/component/root_component.rs

View workflow job for this annotation

GitHub Actions / Format

Diff in /home/runner/work/yozefu/yozefu/crates/tui/src/component/root_component.rs
f.render_widget(
Paragraph::new(
String::from_utf8(vec![74, 32, 226, 157, 164, 239, 184, 143])
.unwrap(),
),
area,
);
return Ok(());
}
let mut a = self.buffer_rx.clone();
Expand Down

0 comments on commit dbdb637

Please sign in to comment.