chore: release v0.1.0

This commit is contained in:
Jack Wills
2022-07-23 04:24:11 +00:00
parent b2645a2627
commit 4fdef153bf
6 changed files with 33 additions and 34 deletions
+6 -14
View File
@@ -1,19 +1,11 @@
### 2022-07-06 ### 2022-07-23
### Docs ### Chores
+ readme update, [f29e29ad151ddf424ba630e6d33edf19acfd7636] + dependencies updated, [cf7e02dde94f69832a2e485b99785afc66a5bc15]
+ comments improved, [1674db8a20aafa447732deb2e44ac8b97cf0471b]
+ readme logo size, [a733efa65865e04d9ec86c7ca8785dfbae635695]
### Fixes
+ Remove unwraps(), [61db81ecfe5684ddb8a360715f43357a042162c0]
+ Help menu alt+tab > shift+tab typo, thanks [siph](https://github.com/siph), [04466803481b75feb7d7f275248279fdb8729862]
### Refactors
+ tokio spawns, [1fd230f2f3cf4e376058359515e76f4fa6e425c2]
+ max_line_width(), [a5d7dabbd68dc15a081df33352ce3b55d9a9891c]
+ create_release dead code removed, [297979c197c2defd409053d8da724f922b0bba1b]
### Features
+ Enable sorting of containers by each, and every, heading. Either via keyboard or mouse, closes [#3], [a6c296f2cde56cf241bcd696cab8bd477270e5f4]
+ Spawn & track docker information update requests, multiple identical requests cannot be executed, [740c059b276f35acd1cb03f1030134646bf8a07d]
see <a href='https://github.com/mrjackwills/oxker/blob/main/CHANGELOG.md'>CHANGELOG.md</a> for more details see <a href='https://github.com/mrjackwills/oxker/blob/main/CHANGELOG.md'>CHANGELOG.md</a> for more details
+6 -3
View File
@@ -1,9 +1,12 @@
# <a href='https://github.com/mrjackwills/oxker/releases/tag/v0.1.0'>v0.1.0</a>
### 2022-07-23
### Chores ### Chores
+ dependencies updated, [cf7e02dde94f69832a2e485b99785afc66a5bc15] + dependencies updated, [cf7e02dd](https://github.com/mrjackwills/oxker/commit/cf7e02dde94f69832a2e485b99785afc66a5bc15),
### Features ### Features
+ Enable sorting of containers by each, and every, heading. Either via keyboard or mouse, closes [#3], [a6c296f2cde56cf241bcd696cab8bd477270e5f4] + Enable sorting of containers by each, and every, heading. Either via keyboard or mouse, closes [#3](https://github.com/mrjackwills/oxker/issues/3), [a6c296f2](https://github.com/mrjackwills/oxker/commit/a6c296f2cde56cf241bcd696cab8bd477270e5f4),
+ Spawn & track docker information update requests, multiple identical requests cannot be executed, [740c059b276f35acd1cb03f1030134646bf8a07d] + Spawn & track docker information update requests, multiple identical requests cannot be executed, [740c059b](https://github.com/mrjackwills/oxker/commit/740c059b276f35acd1cb03f1030134646bf8a07d),
# <a href='https://github.com/mrjackwills/oxker/releases/tag/v0.0.6'>v0.0.6</a> # <a href='https://github.com/mrjackwills/oxker/releases/tag/v0.0.6'>v0.0.6</a>
### 2022-07-06 ### 2022-07-06
+1 -1
View File
@@ -1,6 +1,6 @@
[package] [package]
name = "oxker" name = "oxker"
version = "0.0.6" version = "0.1.0"
edition = "2021" edition = "2021"
authors = ["Jack Wills <email@mrjackwills.com>"] authors = ["Jack Wills <email@mrjackwills.com>"]
description = "a simple tui to view & control docker containers" description = "a simple tui to view & control docker containers"
+2 -2
View File
@@ -63,7 +63,7 @@ impl DockerData {
/// Get a single docker stat in order to update mem and cpu usage /// Get a single docker stat in order to update mem and cpu usage
/// don't take &self, so that can tokio::spawn into it's own thread /// don't take &self, so that can tokio::spawn into it's own thread
/// remove if from spawns hashmap when complete /// remove if from spawns hashmap when complete
async fn update_container_stat( async fn update_container_stat(
docker: Arc<Docker>, docker: Arc<Docker>,
id: String, id: String,
@@ -183,7 +183,7 @@ impl DockerData {
/// Update single container logs /// Update single container logs
/// don't take &self, so that can tokio::spawn into it's own thread /// don't take &self, so that can tokio::spawn into it's own thread
/// remove if from spawns hashmap when complete /// remove if from spawns hashmap when complete
async fn update_log( async fn update_log(
docker: Arc<Docker>, docker: Arc<Docker>,
id: String, id: String,
+2 -4
View File
@@ -473,10 +473,8 @@ pub fn draw_heading_bar<B: Backend>(
// draw the actual header blocks // draw the actual header blocks
for (index, (paragraph, header, _)) in header_data.into_iter().enumerate() { for (index, (paragraph, header, _)) in header_data.into_iter().enumerate() {
let rect = headers_section[index]; let rect = headers_section[index];
gui_state gui_state.lock().update_map(Region::Header(header), rect);
.lock()
.update_map(Region::Header(header), rect);
f.render_widget(paragraph, rect); f.render_widget(paragraph, rect);
} }
} }
+16 -10
View File
@@ -10,10 +10,9 @@ pub enum SelectablePanel {
Logs, Logs,
} }
pub enum Region { pub enum Region {
Panel(SelectablePanel), Panel(SelectablePanel),
Header(Header) Header(Header),
} }
#[allow(unused)] #[allow(unused)]
@@ -225,13 +224,20 @@ impl GuiState {
.map(|data| data.0.to_owned()) .map(|data| data.0.to_owned())
} }
/// Insert, or updatem header area panel into heading_map /// Insert, or updatem header area panel into heading_map
pub fn update_map(&mut self, region: Region, area: Rect) { pub fn update_map(&mut self, region: Region, area: Rect) {
match region { match region {
Region::Header(header) => Region::Header(header) => self
self.heading_map.entry(header).and_modify(|w|*w =area).or_insert(area), .heading_map
Region::Panel(panel) => self.panel_map.entry(panel).and_modify(|w|*w =area).or_insert(area), .entry(header)
}; .and_modify(|w| *w = area)
.or_insert(area),
Region::Panel(panel) => self
.panel_map
.entry(panel)
.and_modify(|w| *w = area)
.or_insert(area),
};
} }
/// Change to next selectable panel /// Change to next selectable panel