From 04bffa568679e452f50d6f463ee3faabaf2c398b Mon Sep 17 00:00:00 2001 From: Sophearak Tha Date: Fri, 5 Jul 2019 11:08:43 +0700 Subject: [PATCH 1/2] update style same as Now platform directory listing --- src/directory.jst | 179 +++++++++++++++++----------------------------- src/index.js | 2 +- 2 files changed, 65 insertions(+), 116 deletions(-) diff --git a/src/directory.jst b/src/directory.jst index aa3021a..bb4b4f7 100644 --- a/src/directory.jst +++ b/src/directory.jst @@ -6,176 +6,131 @@ Files within {{!it.directory}} - @@ -191,28 +146,22 @@ {{~}} - + + + + + + +  What's this? - - - + diff --git a/src/index.js b/src/index.js index 6436a91..e0a74e6 100644 --- a/src/index.js +++ b/src/index.js @@ -338,7 +338,7 @@ const renderDirectory = async (current, acceptsJSON, handlers, methods, config, if (stats.isDirectory()) { details.base += slashSuffix; details.relative += slashSuffix; - details.type = 'directory'; + details.type = 'folder'; } else { if (canRenderSingle) { return { From 44b3d2cfbe85fe2bd5b4401c8660d954335ebedf Mon Sep 17 00:00:00 2001 From: Sophearak Tha Date: Fri, 5 Jul 2019 11:18:47 +0700 Subject: [PATCH 2/2] remove platform specific --- src/directory.jst | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/directory.jst b/src/directory.jst index bb4b4f7..844207b 100644 --- a/src/directory.jst +++ b/src/directory.jst @@ -145,14 +145,6 @@ {{!value.name}} {{~}} - - - - - - - -  What's this?