Commit Graph

231 Commits

Author SHA1 Message Date
Jack Wills 9d2e72086b docs: comment typos 2023-03-02 03:54:55 +00:00
Jack Wills 93f7c07f70 fix: nullify_event_read(), mouse event output fix 2023-03-02 03:48:21 +00:00
Jack Wills 495d5ae789 docs: changelog 2023-03-02 03:20:35 +00:00
Jack Wills 0a1b531116 feat: Acutal fix the the mouse events output
The EnableMouseCapture from Crossterm was too broad, by only enabling a subject of the events, 1) performance is improvedand 2) and intermittent bug where mouse events were output to stdout has been removed
2023-03-02 01:09:17 +00:00
Jack Wills ec962295a8 docs: comments improved 2023-03-01 21:33:58 +00:00
Jack Wills b8f5792d18 refactor: dead code removed 2023-03-01 19:18:36 +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 04c26fe8fc refactor: improve the get_width function
Just use x = x.max(y) for the column widths, instead of the previous, laborious, check then update methods
2023-03-01 19:14:39 +00:00
Jack Wills 3437df5988 refactor: ui into a struct 2023-02-28 19:48:49 +00:00
Jack Wills 2626250ace fix: stop_running function
Use stop_running to set the global is_running AtomicBool to false, and to also, on a seperate thread, enable & then disable mouse capture, as was experience strange issue on Linux & WSL with mouse movements being piped to stdout
2023-02-28 18:10:24 +00:00
Jack Wills 31bfaa7a95 wip: fix for mouse capture bug 2023-02-28 04:10:31 +00:00
Jack Wills 846e0641d0 wip: mouse capture errors 2023-02-27 19:52:03 +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
Jack Wills 074cb957f2 refactor: docker update_everything variables 2023-02-27 14:39:00 +00:00
Jack Wills 23ad9a5fb3 docs: comment typo 2023-02-27 03:15:00 +00:00
Jack Wills cebb975cb8 fix: typos 2023-02-27 02:56:47 +00:00
Jack Wills b6c3ce21ca fix: move final stout flush to main.rs 2023-02-27 02:56:38 +00:00
Jack Wills 8437cca72f docs: changelog 2023-02-03 22:39:09 +00:00
Jack Wills d48e6561f9 chore: clippy todo warn 2023-02-03 21:49:19 +00:00
Jack Wills 17b71b6b41 feat: switch to scratch docker container 2023-02-03 21:40:14 +00:00
Kian-Meng Ang a0e2eb38ae docs: fix typos
Found via `typos --format brief`
2023-02-03 10:21:16 +08:00
Jack Wills c77c60e151 chore: release v0.2.1 2023-01-29 02:46:38 +00: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 2ab88eb26e chore: dependencies updated 2023-01-28 21:55:40 +00:00
Jack Wills 68e444bfc3 fix: deadlock on draw logs when no containers found 2023-01-28 21:53:21 +00:00
Jack Wills c4d80061da revert: is_running AtomicBool back to SeqCst 2023-01-28 20:45:02 +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 1025579138 docs: comment typo 2023-01-28 17:23:27 +00:00
Jack Wills a174dafe1b refactor: needless (double) referencing removed 2023-01-26 21:00:32 +00:00
Jack Wills 93dbc614d1 chore: release v0.2.0 2023-01-21 22:20:40 +00:00
Jack Wills a53de908c6 docs: changelog 2023-01-21 22:06:53 +00:00
Jack Wills 51c580010a fix: memory column aligned, closes #20 2023-01-18 02:06:05 +00:00
Jack Wills 97b89349dc refactor: main.rs tidy up 2023-01-18 02:05:00 +00:00
Jack Wills 657ea2d751 feat: Logs in own struct
Store the logs, and timestamp into a hashset, so that won't push data into the vec if it's already in the hashset, close #11
2023-01-18 02:04:44 +00:00
Jack Wills 9ec43e124a feat: spawn docker exec commands into own thread 2023-01-18 02:01:56 +00:00
Jack Wills 9dcd0509ef refactor: derive Default for GuiState 2023-01-18 02:01:01 +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 0350293de3 refactor: param reduction, AtomicBool to Relaxed 2023-01-14 17:59:33 +00:00
Jack Wills 8bd6c94b49 chore: release v0.1.11 2023-01-03 19:23:20 +00:00
Jack Wills cfdea77594 fix: sort containers on every update_stats(), if a sort is set 2023-01-03 04:44:47 +00:00
Jack Wills 3cdc5fae02 refactor: input sort executed in app_data struct sort_by_header() 2023-01-03 04:43:43 +00:00
Jack Wills 46d4e5a832 chore: release v0.1.10 2022-12-25 15:48:57 +00:00
Jack Wills 20feacb8ae fix: linting removed 2022-12-25 15:27:20 +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 57c3a6c186 refactor: remove_ansi to single liner 2022-12-09 03:42:57 +00:00
Jack Wills e71802fe21 chore: release v0.1.9 2022-12-05 14:06:22 +00:00
Jack Wills 552c26bc5c fix: only sort if no containers currently set, i.e. on first attempt 2022-12-05 13:50:14 +00:00