Skip to content

Commit

Permalink
Container Sort
Browse files Browse the repository at this point in the history
Removed comments
  • Loading branch information
LawrenceB5477 committed Jul 6, 2023
1 parent dd4413c commit d0e28b3
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 11 deletions.
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v18
v16
3 changes: 0 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ if (semver.lt(process.version, nodeVersion.minimum)) {
initDockerConnection()
.then(initScreens)
.then(function (screen) {
// register listener
process.on('uncaughtException', (err) => {
// Make sure the screen is cleared
screen.teardown()
Expand All @@ -42,7 +41,6 @@ initDockerConnection()
return exitError(err)
})

// Returns docker in map
function initDockerConnection () {
return new Promise((resolve, reject) => {
let utils
Expand All @@ -68,7 +66,6 @@ function initDockerConnection () {
})
}

// draw screens
function initScreens (utils) {
return new Promise((resolve, reject) => {
let screen
Expand Down
5 changes: 0 additions & 5 deletions widgets/actionStatus.widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,6 @@ class myWidget extends baseWidget(EventEmitter) {

this.screen.render()
}

// TODO this sucks
renderWidget () {
return null
}
}

module.exports = myWidget
2 changes: 0 additions & 2 deletions widgets/actionsMenu.widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ class myWidget extends baseWidget() {
this.widget.setItems(Object.keys(this.menuItems))
}

// TODO too tightly coupled
stopAllContainers () {
const actionStatus = this.widgetsRepo.get('actionStatus')
const data = {
Expand Down Expand Up @@ -103,7 +102,6 @@ class myWidget extends baseWidget() {
})

const toolbar = this.widgetsRepo.get('toolbar')
// TODO sets up it's handler, bad practice IMO
toolbar.on('key', (keyString) => {
// on info keypress m
if (keyString === 'm') {
Expand Down

0 comments on commit d0e28b3

Please sign in to comment.