Skip to content

Commit

Permalink
docs: fix links
Browse files Browse the repository at this point in the history
  • Loading branch information
Mcdostone committed Feb 4, 2025
1 parent 002558d commit f98ba0d
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
13 changes: 11 additions & 2 deletions crates/tui/src/component/root_component.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ use std::{

use crossterm::event::{KeyCode, KeyEvent, KeyModifiers};
use ratatui::{
layout::{Constraint, Direction, Layout, Margin, Rect},
widgets::Clear,
layout::{Constraint, Direction, Flex, Layout, Margin, Rect},
widgets::{Block, Clear, Paragraph},

Check failure on line 13 in crates/tui/src/component/root_component.rs

View workflow job for this annotation

GitHub Actions / Check

unused import: `Block`

Check failure on line 13 in crates/tui/src/component/root_component.rs

View workflow job for this annotation

GitHub Actions / Code coverage

unused import: `Block`
Frame,
};
use tokio::sync::{mpsc::UnboundedSender, watch::Receiver};
Expand Down Expand Up @@ -342,6 +342,15 @@ 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);
return Ok(());
}
let mut a = self.buffer_rx.clone();
let BufferAction::Count(count) = *a.borrow_and_update();
self.progress_bar.set_progress(count.1);
Expand Down
4 changes: 4 additions & 0 deletions docs/name/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# What does the name Yōzefu mean?

The name Yozefu is a derived name of **Joseph**.
It's a reference to the main character of the trial, the novel of Franz Kafka.
2 changes: 1 addition & 1 deletion docs/query-language/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ value contains "release"
```


5. Records where the `md5(key)` is equals to the user-provided parameter. A [search filter](./search-filter/README.md) must be implemented for this example.
5. Records where the `md5(key)` is equals to the user-provided parameter. A [search filter](../search-filter/README.md) must be implemented for this example.
```sql
from begin md5-key-equals-to("d131dd02c5e6eec4693d9a0698aff95c2fcab58712467eab4004583eb8fb7f89")
```

0 comments on commit f98ba0d

Please sign in to comment.