From 112b15b5918296f159af79e1f6db96beac7aa14d Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Sat, 22 Sep 2018 14:43:16 +0200 Subject: fix runner --- app/relay/runner.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/relay/runner.js') diff --git a/app/relay/runner.js b/app/relay/runner.js index f1e3497..ab22a17 100644 --- a/app/relay/runner.js +++ b/app/relay/runner.js @@ -201,7 +201,7 @@ export function list_directory(opt, cb) { path: full_path, date: stat.ctime, size: stat.size, - dir: stat.isDirectory(), + dir: stat.isDirectory ? stat.isDirectory() : false, }) }) }) -- cgit v1.2.3-70-g09d2 From 83b9f1f4e9a554fcb6faf4f2a3c3f1971bc7aa5d Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Sat, 22 Sep 2018 14:50:55 +0200 Subject: dont transmit path --- app/client/util/format.js | 12 +++++------- app/relay/runner.js | 1 - public/assets/css/css.css | 6 ++++-- 3 files changed, 9 insertions(+), 10 deletions(-) (limited to 'app/relay/runner.js') diff --git a/app/client/util/format.js b/app/client/util/format.js index e436a3e..c8e8f3f 100644 --- a/app/client/util/format.js +++ b/app/client/util/format.js @@ -71,21 +71,19 @@ export function hush_size (n, bias, no_bold) { if (n < 1000000) { return ["quiet", txt + " kb."] } - else if (n < (20000000/bias)) { + if (n < (20000000/bias)) { return ["quiet", txt + " mb."] } - else if (n < (50000000/bias)) { + if (n < (50000000/bias)) { return ["old", txt + " mb."] } - else if (n < (80000000/bias)) { + if (n < (80000000/bias)) { return ["med", txt + " mb."] } - else if (no_bold || n < (170000000/bias)) { + if (no_bold || n < (170000000/bias)) { return ["recent", txt + " mb."] } - else { - return ["new", txt + " mb."] - } + return ["new", txt + " mb."] } export function hush_null (n, unit, no_bold) { var s = unit ? n + " " + unit + "." : n diff --git a/app/relay/runner.js b/app/relay/runner.js index ab22a17..fa86d59 100644 --- a/app/relay/runner.js +++ b/app/relay/runner.js @@ -198,7 +198,6 @@ export function list_directory(opt, cb) { fs.stat(full_path, (err, stat={}) => { resolve({ name: f, - path: full_path, date: stat.ctime, size: stat.size, dir: stat.isDirectory ? stat.isDirectory() : false, diff --git a/public/assets/css/css.css b/public/assets/css/css.css index 44dba16..bd7de50 100644 --- a/public/assets/css/css.css +++ b/public/assets/css/css.css @@ -294,7 +294,8 @@ input.small { overflow: visible; } .filelist .datetime { - width: 105px; + width: 108px; + white-space: pre; } .filelist .epoch { width: 45px; @@ -647,7 +648,8 @@ input.small { margin-left: 3px; } .moduleHeading div:before { - content: ' · '; + content: '·'; + padding-right: 2px; } /* current task */ -- cgit v1.2.3-70-g09d2