Commit Graph

93 Commits

Author SHA1 Message Date
Jack Wills 7e4a960b88 feat: update Rust edition to 2024 2025-02-21 22:45:06 +00:00
Jack Wills f90e831239 feat: filter panel colors 2025-02-21 22:00:12 +00:00
Jack Wills bfc295c50e fix: Only re-draw the screen if data/layout has changed 2025-02-21 16:40:34 +00:00
Jack Wills 53625e67cb fix: reduce render execution in the err loop 2025-02-21 11:41:26 +00:00
Jack Wills 17a5e7a258 feat: set log timezone, closes #56
Implement a CLI arg, and config file setting, for changing the timezone of the Docker logs timestamp
2025-02-21 11:03:19 +00:00
Jack Wills f4d54e1ba8 feat: config file, closes #47
Enable use of a config file, with custom keymap and custom colours
2025-02-16 12:54:35 +00:00
Jack Wills 69f6c96b70 refactor: remove input_poll_rate from Ui, instead use const POLL_RATE 2024-12-04 22:24:46 +00:00
Jack Wills 35aec5060f refactor: pass &FrameDate into draw_frame() 2024-12-04 21:28:10 +00:00
Jack Wills b596916b97 docs: changelog 2024-12-04 09:23:47 +00:00
Jack Wills 6e2f82db81 refactor: FrameData::from()
use &Arc<Mutex<T>> instead of MutexGuard<T>
2024-12-03 23:46:38 +00:00
Jack Wills 57781701ff refactor: FrameData 2024-12-03 23:25:30 +00:00
Jack Wills 356ea5549b refactor: get_filter
combine filter_term and term_by into a tuple, and insert into FrameData, to reduce .lock() calls
2024-12-03 21:59:00 +00:00
Jack Wills 1a8dab654a refactor: remove app_data param from generate_lock()
insert data into FrameData instead
2024-12-03 20:42:24 +00:00
Jack Wills e5927f781a refactor: Remove numerous clones()
get_container_name_by_id clone, init_all_log refactor to remove clones,
remove id.clone() by using SpawnId.get_id()
2024-12-03 19:54:02 +00:00
Jack Wills c739637b91 feat: --no-stderr cli arg, closes #52
New cli argument which will remove stderr output from logs, defaults to false
2024-12-03 15:01:56 +00:00
Jack Wills ba6a952413 refactor: dead code removed, methods renamed 2024-11-18 10:28:27 +00:00
Jack Wills 372f759ca4 chore: Rust 1.81.0 linting 2024-09-05 20:50:54 +00:00
Jack Wills d6238587ff chore: dependencies updated
Replace depreciated ratatui methods
2024-08-15 15:18:29 +00:00
Jack Wills de87681816 feat: unhealthy status, closes #43
Highlight an unhealthy container in Orange, and display "! running" as the state,

refactor: Move dev Docker files to docker directory
2024-08-01 21:35:37 +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
Jack Wills 9b7d575a76 fix: closes #36 Double key strokes on Windows
https://github.com/mrjackwills/oxker/issues/36
2024-05-24 21:43:53 +00:00
Jack Wills d33dce3eec chore: update to ratatui v0.26.0 2024-02-05 22:11:49 +00:00
Jack Wills 65a1afcb06 feat: Added ports section, closes #21 2024-01-18 14:30:54 +00:00
Jack Wills 53543a1b72 tests: gui tests 2024-01-16 10:38:22 +00:00
Jack Wills 4301e4709f fix: Docker Commands hidden
When only one container running, mistakingly hid the Docker Commands section
2024-01-05 13:16:20 +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
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 591b569e60 feat: value_capture! for draw_frame values 2023-06-14 20:23:05 +00:00
Jack Wills ef39082276 chore: release v0.3.1 2023-06-04 00:40:39 +00:00
Jack Wills 4679ddc885 chore: Spans -> Line, ratatui 0.21 update 2023-06-03 20:30:00 +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 d9f0bd5566 refactor: result return 2023-03-11 21:04:16 +00:00
Jack Wills 8ba37a165b refactor: reaplace unwrap_or(()) with .ok() 2023-03-09 15:18:00 +00:00
Jack Wills 507660d835 feat: only send relevant mouse events to input handler 2023-03-02 16:01:37 +00:00
Jack Wills 340893a860 fix: correctly set gui error 2023-03-02 05:18:06 +00:00
Jack Wills cb7518afe6 docs: changelog 2023-03-02 04:13:31 +00:00
Jack Wills c74f6c1179 refactor: enable_mouse_capture() moved into Ui struct 2023-03-02 04:10:38 +00:00
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