Commit Graph

69 Commits

Author SHA1 Message Date
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 8ba37a165b refactor: reaplace unwrap_or(()) with .ok() 2023-03-09 15:18:00 +00:00
Jack Wills 5582c45403 chore: Rust 1.68.0 clippy linting 2023-03-09 15:12:51 +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 b8f5792d18 refactor: dead code removed 2023-03-01 19:18:36 +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 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 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 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 a174dafe1b refactor: needless (double) referencing removed 2023-01-26 21:00:32 +00:00
Jack Wills 9ec43e124a feat: spawn docker exec commands into own thread 2023-01-18 02:01:56 +00:00
Jack Wills 0350293de3 refactor: param reduction, AtomicBool to Relaxed 2023-01-14 17:59:33 +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 e71802fe21 chore: release v0.1.9 2022-12-05 14:06:22 +00:00
Jack Wills 160b8021b1 fix: disallow commands to be sent so an oxker container, closes #19 2022-12-05 03:52:41 +00:00
Jack Wills c93870e5fb feat: -s flag for showing self when conterainerised 2022-12-04 21:42:07 +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 a77f690a49 refactor: replace iter() to into_iter(), and remove useless .iters()'s 2022-10-07 02:43:04 +00:00
Jack Wills 5660b34d51 refactor: map_or_else to map_or 2022-10-07 02:22:26 +00:00
Jack Wills 6bee4d007a refactor: clone()'s removed, allow(precision_loss) 2022-10-02 01:14:42 +00:00
Jack Wills f5fc446295 refactor: use map_or_else 2022-10-02 00:31:01 +00:00
Jack Wills 41cbb84f28 feat: use ContainerId new_type 2022-10-01 23:27:38 +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 17dc604bef refactor: async fn to just fn 2022-09-28 23:32:15 +00:00
Jack Wills 76677316fd chore: release v0.1.4 2022-09-07 14:53:01 +00:00
Jack Wills 66583e1b03 feat: is_loading use HashSet<Uuid>
each set loading function uses a unique uuid, so that the loading animation will always be played, previously would stop on any remove_loading call
2022-09-07 14:33:03 +00:00
Jack Wills 34275b0220 refactor: gui const fn's take self 2022-09-07 13:59:40 +00:00
Jack Wills f0b41626e5 docs: changelog 2022-09-07 04:22:48 +00:00
Jack Wills 7ec58e79a1 fix: docker update mem&cpu use binate value
spawn_id for mem&cpu use the current binate value, to enable two concurrent executes from the same docker container id
2022-09-07 04:18:30 +00:00
Jack Wills fd0081ee7f revert: Dockerdate stat refactor, inadvertently reduced update interval 2022-09-07 03:25:36 +00:00
Jack Wills 5f12362db7 feat: update container info ir running OR restarting
refactor: dockerdata thread hashmap insertion
2022-09-07 03:03:49 +00:00
Jack Wills d26f58201d refactor: update_all_containers filter_map running 2022-09-06 14:31:27 +00:00
Jack Wills 1be9f52ad4 feat: update_all_containers ignore oxker container
filter_map over all container summaries, and ignore if the container command contains "oxker", for use when running oxker as a container itself
2022-09-05 08:31:01 -04:00
Jack Wills 0e11767db8 chore: cargo fmt 2022-08-04 13:18:27 +00:00
Jack Wills 1bd61d4ce8 chore: linting nursery 2022-08-04 13:01:16 +00:00
Jack Wills 1263662bd9 chore: linting pedantic 2022-08-04 12:56:45 +00:00
Jack Wills 8a3df33dfa fix: spawnid typo 2022-07-23 10:18:00 +00:00
Jack Wills 1ae95d58c3 feat: spawnId for docker hashmap
Use custom enum for docker spawns id, so logs & stats can exist in hashmap at same time
2022-07-23 09:51:36 +00:00
Jack Wills 4fdef153bf chore: release v0.1.0 2022-07-23 04:24:11 +00:00
Jack Wills 49e3a4b3b6 refactor: dead code removed 2022-07-23 03:29:18 +00:00