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 +4 -4
- package/src/widgetsTemplates/help.widget.template.js +1 -0
- package/src/widgetsTemplates/info.widget.template.js +2 -1
- package/src/widgetsTemplates/list.widget.template.js +1 -0
- package/widgets/actionStatus.widget.js +1 -0
- package/widgets/actionsMenu.widget.js +1 -0
- package/widgets/containers/containerList.widget.js +7 -2
- package/widgets/searchInput.widget.js +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dockly",
|
|
3
|
-
"version": "3.
|
|
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": "
|
|
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": "
|
|
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": "
|
|
79
|
+
"semver": "7.3.8"
|
|
80
80
|
},
|
|
81
81
|
"devDependencies": {
|
|
82
82
|
"standard": "^12.0.1"
|
|
@@ -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...'
|
|
@@ -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
|
|