Skip to content

Commit

Permalink
fixes format in list
Browse files Browse the repository at this point in the history
Signed-off-by: Eric Wang <skygragon@gmail.com>
  • Loading branch information
skygragon committed Nov 19, 2018
1 parent 98d9a2f commit 863157a
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions bin/pkg
Expand Up @@ -19,6 +19,7 @@ case `uname -m` in
*) echo "Arch not supported!" && exit 1
esac

mkdir -p dist/
rm -rf dist/*
find node_modules -name "*.node" -exec cp {} dist/ \;
npm run pkg -- node$ver-$os-$arch
Expand Down
1 change: 1 addition & 0 deletions icons/ascii.json
Expand Up @@ -4,6 +4,7 @@
"like": "*",
"unlike": " ",
"lock": "$",
"nolock": " ",
"empty": " ",
"ac": "O",
"notac": "X",
Expand Down
1 change: 1 addition & 0 deletions icons/default.json
Expand Up @@ -4,6 +4,7 @@
"like": "",
"unlike": "",
"lock": "🔒",
"nolock": " ",
"empty": " ",
"ac": "",
"notac": "",
Expand Down
1 change: 1 addition & 0 deletions icons/win7.json
Expand Up @@ -4,6 +4,7 @@
"like": "",
"unlike": " ",
"lock": "$",
"nolock": " ",
"empty": " ",
"ac": "O",
"notac": "X",
Expand Down
4 changes: 2 additions & 2 deletions lib/commands/list.js
Expand Up @@ -67,9 +67,9 @@ cmd.handler = function(argv) {
if (problem.locked) ++stat.locked;
if (problem.starred) ++stat.starred;

log.printf('%s %s %s [%3d] %-60s %-6s (%.2f %%)',
log.printf('%s %s %s [%4d] %-60s %-6s (%.2f %%)',
(problem.starred ? chalk.yellow(icon.like) : icon.empty),
(problem.locked ? chalk.red(icon.lock) : icon.empty),
(problem.locked ? chalk.red(icon.lock) : icon.nolock),
h.prettyState(problem.state),
problem.fid,
problem.name,
Expand Down
2 changes: 1 addition & 1 deletion lib/commands/submission.js
Expand Up @@ -62,7 +62,7 @@ function doTask(problem, queue, cb) {
// - green: accepted, fresh download
// - yellow: not ac-ed, fresh download
// - white: existed already, skip download
log.printf('[%3d] %-60s %s', problem.fid, problem.name,
log.printf('[%4d] %-60s %s', problem.fid, problem.name,
(e ? chalk.red('ERROR: ' + (e.msg || e)) : msg));
if (cb) cb(e);
}
Expand Down

0 comments on commit 863157a

Please sign in to comment.