dockly 3.22.1 → 3.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dockly",
3
- "version": "3.22.1",
3
+ "version": "3.23.0",
4
4
  "description": "Immersive terminal interface for managing docker containers and services",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -68,15 +68,15 @@
68
68
  "dependencies": {
69
69
  "blessed": "^0.1.81",
70
70
  "blessed-contrib": "^4.10.1",
71
- "chalk": "2.4.2",
71
+ "chalk": "^4",
72
72
  "clipboardy": "^2.3.0",
73
73
  "command-line-args": "^5.1.2",
74
74
  "command-line-usage": "^5.0.5",
75
- "dockerode": "2.5.8",
75
+ "dockerode": "3.3.4",
76
76
  "figures": "^2.0.0",
77
77
  "glob": "^7.2.0",
78
78
  "lockfile-lint": "^3.0.9",
79
- "semver": "6.3.0"
79
+ "semver": "7.3.8"
80
80
  },
81
81
  "devDependencies": {
82
82
  "standard": "^12.0.1"
@@ -83,6 +83,7 @@ class myWidget extends baseWidget() {
83
83
  align: 'left',
84
84
  width: '70%',
85
85
  height: '70%',
86
+ vi: true,
86
87
  top: 'center',
87
88
  left: 'center',
88
89
  content: 'Loading...'
@@ -50,7 +50,7 @@ class myWidget extends baseWidget() {
50
50
  // then show the information on the item
51
51
  this.getItemById(itemId, (err, data) => {
52
52
  if (!err) {
53
- this.update(util.inspect(data))
53
+ this.update(util.inspect(data, { depth: null, colors: true }))
54
54
  this.screen.render()
55
55
  }
56
56
  })
@@ -97,6 +97,7 @@ class myWidget extends baseWidget() {
97
97
  align: 'left',
98
98
  width: '70%',
99
99
  height: '70%',
100
+ vi: true,
100
101
  top: 'center',
101
102
  left: 'center',
102
103
  content: 'Loading...'
@@ -90,6 +90,7 @@ class myWidget extends baseWidget(EventEmitter) {
90
90
  tags: true,
91
91
  interactive: true,
92
92
  border: 'line',
93
+ vi: true,
93
94
  hover: {
94
95
  bg: 'blue'
95
96
  },
@@ -42,6 +42,7 @@ class myWidget extends baseWidget(EventEmitter) {
42
42
  fg: 'blue',
43
43
  ch: '|'
44
44
  },
45
+ vi: true,
45
46
  align: 'left',
46
47
  content: ''
47
48
  })
@@ -136,6 +136,7 @@ class myWidget extends baseWidget() {
136
136
  fg: 'blue',
137
137
  ch: '|'
138
138
  },
139
+ vi: true,
139
140
  align: 'center'
140
141
  })
141
142
  }
@@ -60,6 +60,10 @@ class myWidget extends ListWidget {
60
60
  const containerList = {}
61
61
  if (containers) {
62
62
  containers.forEach((container) => {
63
+ let containerPortPublic = (container.Ports[0] && container.Ports[0].PublicPort) ? String(container.Ports[0].PublicPort) : ''
64
+ let containerPortPrivate = (container.Ports[0] && container.Ports[0].PrivatePort) ? String(container.Ports[0].PrivatePort) : ''
65
+ let containerPort = containerPortPrivate + ':' + containerPortPublic
66
+
63
67
  containerList[container.Id] = [
64
68
  container.Id.substring(0, 5),
65
69
  container.Names[0].substring(0, 40),
@@ -67,7 +71,8 @@ class myWidget extends ListWidget {
67
71
  // remove any new lines or carriage return line feed from the string in container.Command
68
72
  container.Command.substring(0, 30).replace(/(\r\n|\n|\r)/gm, ''),
69
73
  container.State,
70
- container.Status
74
+ container.Status,
75
+ containerPort
71
76
  ]
72
77
  })
73
78
  }
@@ -83,7 +88,7 @@ class myWidget extends ListWidget {
83
88
  return container
84
89
  })
85
90
 
86
- list.unshift(['Id', 'Name', 'Image', 'Command', 'State', 'Status'])
91
+ list.unshift(['Id', 'Name', 'Image', 'Command', 'State', 'Status', 'Ports'])
87
92
  this.containersListData = list
88
93
  this.containersList = containerList
89
94
 
@@ -94,6 +94,7 @@ class myWidget extends baseWidget(EventEmitter) {
94
94
  style: this.getWidgetStyle({ bg: 'yellow', fg: 'black' }),
95
95
  align: 'left',
96
96
  inputOnFocus: true,
97
+ vi: true,
97
98
  value: ''
98
99
  })
99
100
  }