dockly 3.23.1 → 3.23.3
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.23.
|
|
3
|
+
"version": "3.23.3",
|
|
4
4
|
"description": "Immersive terminal interface for managing docker containers and services",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"figures": "^2.0.0",
|
|
77
77
|
"glob": "^7.2.0",
|
|
78
78
|
"lockfile-lint": "^3.0.9",
|
|
79
|
-
"semver": "7.
|
|
79
|
+
"semver": "7.5.2"
|
|
80
80
|
},
|
|
81
81
|
"devDependencies": {
|
|
82
82
|
"standard": "^12.0.1"
|
|
@@ -45,9 +45,9 @@ class myWidget extends baseWidget(EventEmitter) {
|
|
|
45
45
|
this.toggleWidgetListColor = !this.toggleWidgetListColor
|
|
46
46
|
|
|
47
47
|
if (this.toggleWidgetListColor) {
|
|
48
|
-
str = chalk.cyan(chunk.toString('
|
|
48
|
+
str = chalk.cyan(chunk.toString('utf8').trim())
|
|
49
49
|
} else {
|
|
50
|
-
str = chalk.green(chunk.toString('
|
|
50
|
+
str = chalk.green(chunk.toString('utf8').trim())
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
this.updateItemLogs(str)
|
|
@@ -20,15 +20,21 @@ class myWidget extends ListWidget {
|
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
getItemLogs (containerId, cb) {
|
|
23
|
-
|
|
23
|
+
if (this.widgetsRepo.has('containerLogs')) {
|
|
24
|
+
return this.utilsRepo.get('docker').getContainerLogs(containerId, cb)
|
|
25
|
+
}
|
|
24
26
|
}
|
|
25
27
|
|
|
26
28
|
updateItemLogs (str) {
|
|
27
|
-
|
|
29
|
+
if (this.widgetsRepo.has('containerLogs')) {
|
|
30
|
+
return this.widgetsRepo.get('containerLogs').update(str)
|
|
31
|
+
}
|
|
28
32
|
}
|
|
29
33
|
|
|
30
34
|
clearItemLogs () {
|
|
31
|
-
|
|
35
|
+
if (this.widgetsRepo.has('containerLogs')) {
|
|
36
|
+
return this.widgetsRepo.get('containerLogs').clear()
|
|
37
|
+
}
|
|
32
38
|
}
|
|
33
39
|
|
|
34
40
|
getListItems (cb) {
|