From 80dc0869c4f7e0cfad7b967528dcd9519dd16bf7 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Fri, 17 Feb 2017 06:33:37 +0300 Subject: [PATCH] minor refactoring... Signed-off-by: Alex A. Naanou --- ui (gen4)/features/filesystem.js | 26 +++++++------------------- 1 file changed, 7 insertions(+), 19 deletions(-) diff --git a/ui (gen4)/features/filesystem.js b/ui (gen4)/features/filesystem.js index fb6c482f..3fd9dbbe 100755 --- a/ui (gen4)/features/filesystem.js +++ b/ui (gen4)/features/filesystem.js @@ -49,13 +49,7 @@ if(typeof(process) != 'undefined'){ /*********************************************************************/ -var IndexFormat = -module.IndexFormat = core.ImageGridFeatures.Feature({ - title: '', - doc: '', - - tag: 'index-format', - +var IndexFormatActions = actions.Actions({ config: { 'index-dir': '.ImageGrid', @@ -78,13 +72,7 @@ module.IndexFormat = core.ImageGridFeatures.Feature({ // XXX make this used in loader too... 'preview-path-template': '${INDEX}/${RESOLUTION}px/${GID} - ${NAME}.jpg', }, -}) - - -/*********************************************************************/ - -var ExportFormatActions = actions.Actions({ prepareIndexForWrite: ['- File/Prepare index for writing', core.doc`Convert json index to a format compatible with file.writeIndex(..) @@ -193,14 +181,14 @@ var ExportFormatActions = actions.Actions({ }) -var ExportFormat = -module.ExportFormat = core.ImageGridFeatures.Feature({ +var IndexFormat = +module.IndexFormat = core.ImageGridFeatures.Feature({ title: '', - doc: 'Convert state serialization data to/from the write format.', + doc: '', - tag: 'export-format', + tag: 'index-format', - actions: ExportFormatActions, + actions: IndexFormatActions, }) @@ -742,7 +730,7 @@ module.FileSystemLoader = core.ImageGridFeatures.Feature({ tag: 'fs-loader', depends: [ - 'export-format', + 'index-format', 'location', 'recover', 'fs-info',