Commit Graph

137 Commits

Author SHA1 Message Date
Daniel Boll e1998c9fca refactor(draw_blocks.rs): remove unnecessary .as_ref() calls on constraints method to improve code readability
refactor(mod.rs): remove unnecessary .as_ref() calls on constraints method to improve code readability

chore(draw_blocks.rs): format code using rustfmt to improve code readability
chore(draw_blocks.rs): remove unnecessary indentation in NAME_TEXT constant to improve code readability

chore(draw_blocks.rs): remove unnecessary fmt skip directive

Signed-off-by: Daniel Boll <danielboll.academico@gmail.com>
2023-11-16 11:18:49 +00:00
Jack Wills 4e9fb65fe2 chore: Dependencies updated
ratatui v0.24.0 fixes
2023-11-16 11:11:59 +00:00
Jack Wills 3b61a704e2 feat: Clippy mem drop,
re-arrange .lock() ordering, and use `value_capture!`, to satisfy has_significant_drop rule
2023-06-14 20:47:24 +00:00
Jack Wills ef39082276 chore: release v0.3.1 2023-06-04 00:40:39 +00:00
Jack Wills 0d37ac5501 chores: ratatui span -> lines 2023-06-03 23:41:16 +00:00
Jack Wills 4679ddc885 chore: Spans -> Line, ratatui 0.21 update 2023-06-03 20:30:00 +00:00
Jack Wills 18b838a0fc chore: release v0.3.0 2023-03-30 20:06:08 +00:00
Jack Wills 5a360360ba chore: dependencies updated 2023-03-30 18:44:14 +00:00
Jack Wills 932644b74f docs: changelog 2023-03-30 03:15:11 +00:00
Jack Wills d628e80299 refactor: popup() use saturating_x() rather than checked_x() 2023-03-30 02:28:53 +00:00
Jack Wills b9c125da46 fix: out of bound bug in heading_bar
use a `saturating_sub` to calculate the column_width
2023-03-30 02:22:47 +00:00
Jack Wills 937202fe34 feat: delete container, closes #27
Enable a user to delete a container. A dialog will pop up to ask the user to confirm the deletion. A user can then click on either button, or press N/Y to make a selection
2023-03-30 02:12:03 +00:00
Jack Wills 7c92ffef7d refactor: button_item() include brackets 2023-03-29 18:00:31 +00:00
Jack Wills f906799782 fix: alter the help box link underlining 2023-03-29 17:20:20 +00:00
Jack Wills f23dac9bc8 fix: alter the help box link underlining 2023-03-20 00:06:21 +00:00
Jack Wills d431f85021 feat: use ratatui 2023-03-19 21:08:33 +00:00
Jack Wills 5582c45403 chore: Rust 1.68.0 clippy linting 2023-03-09 15:12:51 +00:00
Jack Wills ec962295a8 docs: comments improved 2023-03-01 21:33:58 +00:00
Jack Wills 28de74b866 feat: style help info box
Style each button comman in the help information window, instead of just one giant string.
Now uses a HelpInfo struct, which contains the content, as well as widths + height
2023-03-01 19:18:19 +00:00
Jack Wills 72279e26ae feat: use checked_sub & checked_div for bounds checks 2023-02-27 15:25:18 +00:00
Jack Wills e8f5cf9c6f refactor: get_horizotal/vertical contraints into single method 2023-02-27 14:50:04 +00:00
Kian-Meng Ang a0e2eb38ae docs: fix typos
Found via `typos --format brief`
2023-02-03 10:21:16 +08:00
Jack Wills d7a8639d8b docs: changelog 2023-01-29 02:12:02 +00:00
Jack Wills c0bb5355d6 refactor: app_data methods re-ordered & renamed 2023-01-29 01:52:38 +00:00
Jack Wills 68e444bfc3 fix: deadlock on draw logs when no containers found 2023-01-28 21:53:21 +00:00
Jack Wills b4488e4bdb refactor: major refactor of internal data handling
What started off as an inquisitive look at how the gui drawing blocks get the data they require in order to draw to the screen, ended up as a realisation  that it could be achieved in a better manner. Basically just use x.get(y), instead of using x[y] all over the place
2023-01-28 20:44:09 +00:00
Jack Wills 51c580010a fix: memory column aligned, closes #20 2023-01-18 02:06:05 +00:00
Jack Wills bd7dfcd2c5 feat: align memory columns correctly, closes #20
use kB as minimum bytestats unit, screenshot updated
2023-01-14 18:01:38 +00:00
Jack Wills bf9dcac704 chore: Rust 1.66 linting 2022-12-15 16:34:24 +00:00
Jack Wills 7899b77356 fix: comment typo 2022-12-09 03:49:46 +00:00
Jack Wills a98e8b7260 chore: cargo fmt 2022-10-16 00:00:41 +00:00
Jack Wills 9e9d51559a feat: use gui_status for various gui states 2022-10-15 00:23:26 +00:00
Jack Wills 90e26c300e wip: gui_status, should use a hashset? 2022-10-14 21:26:20 +00:00
Jack Wills ea08a12246 fix: comment typo 2022-10-13 02:33:32 +00:00
Jack Wills 59797685df fix: loading icon color & shifting, closes #15 2022-10-13 02:33:05 +00:00
Jack Wills 62fb224786 refactor: String::from("") > String::new() 2022-10-07 03:04:06 +00:00
Jack Wills a77f690a49 refactor: replace iter() to into_iter(), and remove useless .iters()'s 2022-10-07 02:43:04 +00:00
Jack Wills 3e26f292c7 refactor: map_or_else to map_or 2022-10-07 01:45:01 +00:00
Jack Wills f12a83056b refactor: Paragraph::new from str, rather than variable declaration 2022-10-02 01:46:15 +00:00
Jack Wills f5fc446295 refactor: use map_or_else 2022-10-02 00:31:01 +00:00
Jack Wills a7b8df6b21 refactor: derive Default for CpuStats + ByteStats 2022-10-01 23:40:25 +00:00
Jack Wills 31fb2cb1e6 fix: u16::try_from for text widths 2022-10-01 23:28:08 +00:00
Jack Wills 6731002ee4 refactor: remove pointless clone()'s & variable declarations 2022-10-01 21:02:38 +00:00
Jack Wills e76878f424 refactor: Impl Copy where able to 2022-10-01 19:57:27 +00:00
Jack Wills eb25744472 refactors: unwraps() removed, and/or map_or() used 2022-09-07 02:53:28 +00:00
Jack Wills 0e11767db8 chore: cargo fmt 2022-08-04 13:18:27 +00:00
Jack Wills 1263662bd9 chore: linting pedantic 2022-08-04 12:56:45 +00:00
Jack Wills 4fdef153bf chore: release v0.1.0 2022-07-23 04:24:11 +00:00
Jack Wills 3dd1c1323b refactor: dead code removed 2022-07-23 04:22:56 +00:00
Jack Wills d0f617820c feat: spawn docker updates into own thread
Collects spawns into a hashmap, then on next update if spawn exists in hash map, don't bother to run another update
2022-07-23 02:46:38 +00:00