Skip to content

Commit e6bdf2a

Browse files
committed
somes code style
1 parent c14b5a9 commit e6bdf2a

File tree

5 files changed

+267
-7
lines changed

5 files changed

+267
-7
lines changed

build.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"appId": "com.electron.container-ps",
33
"productName": "Container PS",
4-
"compression": "maximum",
4+
"compression": "normal",
55
"copyright": "Copyright @Toinane",
66
"asar": true,
77
"directories": {
@@ -26,7 +26,7 @@
2626
},
2727
"linux": {
2828
"icon": "src/assets",
29-
"synopsis": "Docker PS",
29+
"synopsis": "Container PS",
3030
"category": "Development"
3131
},
3232
"win": {

src/Command.js

-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
const { spawn } = require('child_process')
22

3-
// const trayIcon = nativeImage.createFromPath(path.join(dirname, 'assets/loadingTemplate.png'));
4-
// tray.setImage(trayIcon);
5-
63
class Command {
74
static run(cmd, options = []) {
85
return new Promise((resolve, reject) => {

src/Container.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class Container {
1313
this.image = container[6] || 'no image found'
1414
this.size = container[7] || 'no size found'
1515
} else {
16-
this.ports = 'no ports used'
16+
this.ports = ''
1717
this.image = container[5] || 'no image found'
1818
this.size = container[6] || 'no size found'
1919
}

src/main.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ require('fix-path')()
66

77
app.on('will-finish-launching', () => {
88
app.disableHardwareAcceleration()
9-
app.dock.hide()
9+
if (process.platform === 'darwin') app.dock.hide()
1010
})
1111

1212
app.on('ready', async () => {

0 commit comments

Comments
 (0)