Skip to content

Commit

Permalink
release 1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Toinane committed Mar 11, 2019
1 parent e6bdf2a commit 413a92d
Show file tree
Hide file tree
Showing 16 changed files with 25 additions and 17 deletions.
22 changes: 13 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,30 +1,34 @@
# Container PS
This little app for **OSX** help you to manager your Docker containers.
It uses shell commands using the **Node.js** *child_process* [exec](https://nodejs.org/api/child_process.html#child_process_child_process_exec_command_options_callback) module.
> This little app for **OSX** help you to manager your Docker containers.
You must have Docker launched to make work this app.
It uses shell commands using the **Node.js** *child_process* [spawn](https://nodejs.org/api/child_process.html#child_process_child_process_spawn_command_args_options) module, thanks to @SebastianRuecker.

---

You can see the list of all your containers, whether they are active or not.
![Screenshot](/screenshots/dark.png)

<img src="https://raw.githubusercontent.com/Toinane/container-ps/master/screenshots/dark.png" style="width: 70%">

With the light Theme.
![Screenshot](/screenshots/light.png)

<img src="https://raw.githubusercontent.com/Toinane/container-ps/master/screenshots/light.png" style="width: 70%">

- The full circle indicates that the container is active.
- The empty circle indicates that it is inactive.
- And the round with a full wave indicates that the container is restarting.

![Screenshot](/screenshots/light-complete.png)
When hovering over a container, you will have additional information about it, as well as buttons to turn it on, off, restart or delete it.

---

## Download
# Download

See in [releases pages](https://github.com/Toinane/container-ps/releases).

Since exec from child_process doesn't work in asar archive, I can't make a release for the moment :/
If you have a solution for this, feel free to contribute!
# Development

### Launch in shell
Install dependencies and start.
```shell
yarn && yarn start
```
Binary file modified assets/icon.icns
Binary file not shown.
Binary file modified assets/icon.ico
Binary file not shown.
Binary file modified assets/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified screenshots/dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed screenshots/light-complete.png
Binary file not shown.
Binary file modified screenshots/light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion src/ContainerTray.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ const path = require('path')
const { Tray, nativeImage } = require('electron')

class ContainerTray {
constructor() {
constructor(menu) {
this.tray = new Tray(this.getImageLink('idle'))
this.tray.setToolTip('Container PS')
this.isLoading = false
this.setMenu(menu)
}

setIcon(type) {
Expand Down
17 changes: 10 additions & 7 deletions src/List.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,23 @@ const Command = require('./Command')

class List {
constructor() {
this.tray = new Tray()
this.separator = { type: 'separator' }
this.iconType = {
up: this.tray.getImageLink('up'),
restarting: this.tray.getImageLink('restarting'),
down: this.tray.getImageLink('down')
}
this.defaultLabels = [
{ label: 'Container PS', enabled: false },
{ label: 'Container PS', enabled: false },
this.separator,
{ label: 'Reload List', accelerator: 'CmdOrCtrl+R', click: () => this.update() },
{ label: 'Quit', role: 'quit', accelerator: 'CmdOrCtrl+Q' },
this.separator
]
this.tray = new Tray(Menu.buildFromTemplate([
...this.defaultLabels,
{ label: 'Container PS is loading...', enabled: false }
]))
this.iconType = {
up: this.tray.getImageLink('up'),
restarting: this.tray.getImageLink('restarting'),
down: this.tray.getImageLink('down')
}
}

async update() {
Expand Down
Binary file added src/assets/idleTemplate.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/loading-0Template.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/loading-1Template.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/loading-2Template.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/loading-3Template.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/loading-4Template.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed src/assets/trayTemplate.png
Binary file not shown.

0 comments on commit 413a92d

Please sign in to comment.