Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed #307 Surge List not working #319

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions lib/middleware/list.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ module.exports = function(req, next){
var list = JSON.parse(obj)

var table = new Table({
//head: ["cmd".underline.grey, 'REV DOMAIN'.grey, 'AGE'.grey, 'MODE'.grey],
//head: ["cmd".underline.grey, 'REV DOMAIN'.grey, 'AGE'.grey, 'MODE'.grey],
chars: { 'top': '' , 'top-mid': '' , 'top-left': '' , 'top-right': ''
, 'bottom': '' , 'bottom-mid': '' , 'bottom-left': '' , 'bottom-right': ''
, 'left': ' ' , 'left-mid': '' , 'mid': '' , 'mid-mid': ''
Expand All @@ -34,17 +34,17 @@ module.exports = function(req, next){
var perm = project.rev ? (project.rev + " ").grey + project.domain : ""
if (project.planName) {
if (project.planName.indexOf("Standard") !== -1){
var pn = project.planName.grey
var pn = project.planName.grey
}else{
var pn = project.planName.blue
}
}

var row = [
perm || project.domain,
project.timeAgoInWords.grey,
project.cmd.grey,
project.platform.grey,
project.timeAgoInWords ? (project.timeAgoInWords).gray : "",
project.cmd ? (project.cmd).gray : "",
Comment on lines +45 to +46

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"gray --> grey" seems to be a typo

Suggested change
project.timeAgoInWords ? (project.timeAgoInWords).gray : "",
project.cmd ? (project.cmd).gray : "",
project.timeAgoInWords ? (project.timeAgoInWords).grey : "",
project.cmd ? (project.cmd).grey : "",

project.platform ? (project.platform).grey : "",
pn || "",
//lastcmd !== project.cmd ? (project.cmd).grey : "",
]
Expand All @@ -60,4 +60,4 @@ module.exports = function(req, next){
next()
})

}
}
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.