Commit Graph

79 Commits

Author SHA1 Message Date
Jack Wills 9c4f891038 refactor: input_handler
use a mouse_point variable
2024-12-05 17:45:44 +00:00
Jack Wills 35aec5060f refactor: pass &FrameDate into draw_frame() 2024-12-04 21:28:10 +00:00
Jack Wills 7f42383495 refactor: input_handler 2024-11-16 14:50:25 +00:00
Jack Wills 76ccf7c006 refactor: remove uneccessary is_running load 2024-11-15 16:30:02 +00:00
Jack Wills 2a834d6c2f refactor: execute_command()
Include Id and DockerCommand in a DockerMessage, used by the execute_command function to reduce duplicated code
2024-11-15 15:39:06 +00:00
Jack Wills 9936ad45e1 fix: use stderr when saving logs 2024-10-06 15:16:29 +00:00
Jack Wills 372f759ca4 chore: Rust 1.81.0 linting 2024-09-05 20:50:54 +00:00
Jack Wills 93e1279b1f chore: Rust 1.80 linting 2024-07-25 14:30:24 +00:00
Jack Wills 26a2cf55d2 feat: advanced filtering
Allow filtering by name, image name, status, or a combination of all of the three
2024-07-24 14:20:29 +00:00
Jack Wills 91b451c6a3 refactor: filter mode displayed updated 2024-07-15 12:09:56 +00:00
Jack Wills d5d8a0dbc5 feat: filter containers, closes #37
Enable filtering of containers, toggled by pressing `F1` or `/`, build on PR #38 from MohammadShabaniSBU
2024-07-12 15:43:42 +00:00
Jose Quintas 0e4c3ceab9 Allow closing dialogs with Escape 2024-04-19 19:30:57 +02:00
Jack Wills dfd4948d9c chore: Rust 1.77 linting 2024-03-30 15:24:45 +00:00
Jack Wills 65a1afcb06 feat: Added ports section, closes #21 2024-01-18 14:30:54 +00:00
Jack Wills a34c046dee fix: is_oxker_in_container()
Check is both is_oxker and running in a container, so that oxker container commands will only be ignored if both are true
2024-01-13 23:01:22 +00:00
Jack Wills b9df4e446a tests: AppData tests 2024-01-13 22:51:42 +00:00
Jack Wills e936bb4b78 feat: re-arrange columns + ContainerName + ContainerImage, closes #32
Have container name as first column.
Wrap name and image using the StringWrapper macro, so that can have a custom fmt::Display, which will only show the firs 29 chars of both the name and image name
2024-01-05 13:16:06 +00:00
Jack Wills 9e83d48641 fix: typo 2023-11-20 15:24:35 +00:00
Jack Wills b608432865 refactor: variable names updated 2023-11-20 10:27:54 +00:00
Jack Wills 56dba91e9a refactor: variable name changes 2023-11-19 23:03:41 +00:00
Jack Wills d200d13c26 refactor: dead code removed 2023-11-19 22:48:49 +00:00
Jack Wills a15da5ed43 feat: export logs feature, closes #1
Save logs to a file.
 `--logs-dir` cli arg to change from the default location.

Refactor of input_handler
2023-11-19 22:25:28 +00:00
Jack Wills 0e5ee143b0 feat: exec mode improvements
Use Bollard library to exec in pure Rust.

`--use-cli` cli arg, will then only try to exec into containers using
Docker.

Only try to exec into a container if the state == Running.
2023-11-18 22:44:39 +00:00
Jack Wills 40090865fd refactor: Multiple UI improvements;
Use FrameData struct to store commonly accessed data, in order to
reduce mutex locks.

rename unpause to resume

use get_selected_panel() function instead of directly
gui_state.selected_panel

debug mode now shows some usefull information
2023-11-16 11:19:42 +00:00
Jack Wills c8077bca0b feat: Docker exec mode, closes #28 2023-11-16 11:19:09 +00:00
Jack Wills faeaca0cd1 refactor: set_info_box take &str 2023-10-18 10:44:49 +00:00
Jack Wills 76fd178894 chore: release v0.3.2 2023-08-28 13:32:34 +00:00
Jack Wills 62c78dfaa5 refactor: set_error take gui_state
insert into gui_state status when setting error
2023-08-26 12:40:53 +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 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 f906799782 fix: alter the help box link underlining 2023-03-29 17:20:20 +00:00
Jack Wills d431f85021 feat: use ratatui 2023-03-19 21:08:33 +00:00
Jack Wills e3d0d64b4d docs: changelog 2023-03-13 00:56:16 +00:00
Jack Wills 8ba37a165b refactor: reaplace unwrap_or(()) with .ok() 2023-03-09 15:18:00 +00:00
Jack Wills 598f67c6f6 feat: KeyEvents send modifier, so can quit on ctrl + c 2023-03-02 16:09:57 +00:00
Jack Wills 340893a860 fix: correctly set gui error 2023-03-02 05:18:06 +00:00
Jack Wills c74f6c1179 refactor: enable_mouse_capture() moved into Ui struct 2023-03-02 04:10:38 +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 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 c0bb5355d6 refactor: app_data methods re-ordered & renamed 2023-01-29 01:52:38 +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 0350293de3 refactor: param reduction, AtomicBool to Relaxed 2023-01-14 17:59:33 +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 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 d1de291473 fix: sort by ascending first 2022-12-05 02:05:14 +00:00
Jack Wills cf14ba4989 feat: default order of created time, reset sorted, closes #18 2022-12-04 21:42:54 +00:00
Jack Wills 61cfa9394f docs: comment typo 2022-11-10 02:42:43 +00:00