mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 18:30:09 +00:00
minor refactoring...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
587b5eaa34
commit
80dc0869c4
@ -49,13 +49,7 @@ if(typeof(process) != 'undefined'){
|
|||||||
|
|
||||||
/*********************************************************************/
|
/*********************************************************************/
|
||||||
|
|
||||||
var IndexFormat =
|
var IndexFormatActions = actions.Actions({
|
||||||
module.IndexFormat = core.ImageGridFeatures.Feature({
|
|
||||||
title: '',
|
|
||||||
doc: '',
|
|
||||||
|
|
||||||
tag: 'index-format',
|
|
||||||
|
|
||||||
config: {
|
config: {
|
||||||
'index-dir': '.ImageGrid',
|
'index-dir': '.ImageGrid',
|
||||||
|
|
||||||
@ -78,13 +72,7 @@ module.IndexFormat = core.ImageGridFeatures.Feature({
|
|||||||
// XXX make this used in loader too...
|
// XXX make this used in loader too...
|
||||||
'preview-path-template': '${INDEX}/${RESOLUTION}px/${GID} - ${NAME}.jpg',
|
'preview-path-template': '${INDEX}/${RESOLUTION}px/${GID} - ${NAME}.jpg',
|
||||||
},
|
},
|
||||||
})
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*********************************************************************/
|
|
||||||
|
|
||||||
var ExportFormatActions = actions.Actions({
|
|
||||||
prepareIndexForWrite: ['- File/Prepare index for writing',
|
prepareIndexForWrite: ['- File/Prepare index for writing',
|
||||||
core.doc`Convert json index to a format compatible with file.writeIndex(..)
|
core.doc`Convert json index to a format compatible with file.writeIndex(..)
|
||||||
|
|
||||||
@ -193,14 +181,14 @@ var ExportFormatActions = actions.Actions({
|
|||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
var ExportFormat =
|
var IndexFormat =
|
||||||
module.ExportFormat = core.ImageGridFeatures.Feature({
|
module.IndexFormat = core.ImageGridFeatures.Feature({
|
||||||
title: '',
|
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',
|
tag: 'fs-loader',
|
||||||
depends: [
|
depends: [
|
||||||
'export-format',
|
'index-format',
|
||||||
'location',
|
'location',
|
||||||
'recover',
|
'recover',
|
||||||
'fs-info',
|
'fs-info',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user