2015-12-17 03:34:20 +03:00
|
|
|
/**********************************************************************
|
|
|
|
|
*
|
|
|
|
|
*
|
|
|
|
|
*
|
|
|
|
|
**********************************************************************/
|
2016-08-21 02:19:24 +03:00
|
|
|
((typeof define)[0]=='u'?function(f){module.exports=f(require)}:define)
|
|
|
|
|
(function(require){ var module={} // make module AMD/node compatible...
|
2016-08-20 22:49:36 +03:00
|
|
|
/*********************************************************************/
|
2015-12-17 03:34:20 +03:00
|
|
|
|
|
|
|
|
var actions = require('lib/actions')
|
|
|
|
|
var features = require('lib/features')
|
|
|
|
|
|
|
|
|
|
var core = require('features/core')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*********************************************************************/
|
|
|
|
|
// Meta features...
|
|
|
|
|
|
2017-12-09 03:14:36 +03:00
|
|
|
core.ImageGridFeatures.Feature('imagegrid-commandline', [
|
2015-12-17 03:34:20 +03:00
|
|
|
'lifecycle',
|
2015-12-31 07:00:18 +03:00
|
|
|
'commandline',
|
2016-01-03 04:49:00 +03:00
|
|
|
])
|
|
|
|
|
|
|
|
|
|
|
2017-12-09 03:14:36 +03:00
|
|
|
core.ImageGridFeatures.Feature('imagegrid-minimal', [
|
2016-01-03 04:49:00 +03:00
|
|
|
'lifecycle',
|
2017-12-09 03:14:36 +03:00
|
|
|
'alias',
|
2017-03-01 00:44:02 +03:00
|
|
|
'peer',
|
2016-04-02 19:30:48 +03:00
|
|
|
'fs',
|
2016-05-23 03:42:53 +03:00
|
|
|
'sharp',
|
2016-01-18 05:20:14 +03:00
|
|
|
|
2017-12-09 03:14:36 +03:00
|
|
|
'base-full',
|
|
|
|
|
'marks',
|
|
|
|
|
'collections',
|
2016-01-18 05:20:14 +03:00
|
|
|
'metadata',
|
2015-12-31 10:37:21 +03:00
|
|
|
])
|
|
|
|
|
|
|
|
|
|
|
2017-12-09 03:14:36 +03:00
|
|
|
core.ImageGridFeatures.Feature('imagegrid-ui-minimal', [
|
|
|
|
|
'imagegrid-minimal',
|
2017-10-01 15:44:18 +03:00
|
|
|
|
2016-04-02 17:34:25 +03:00
|
|
|
'keyboard',
|
2017-12-09 03:14:36 +03:00
|
|
|
'ui-cursor',
|
|
|
|
|
'ui-control',
|
|
|
|
|
'ui-drag-n-drop',
|
2015-12-17 03:34:20 +03:00
|
|
|
|
2017-06-25 08:59:01 +03:00
|
|
|
// XXX use one...
|
2017-06-28 03:51:50 +03:00
|
|
|
//'ui-blank-render',
|
2017-05-15 17:26:30 +03:00
|
|
|
'ui-ribbons-render',
|
2017-06-28 03:51:50 +03:00
|
|
|
'ui-preact-render',
|
|
|
|
|
//'ui-vdom-render',
|
|
|
|
|
//'ui-react-render',
|
2017-12-09 03:14:36 +03:00
|
|
|
|
2017-05-12 04:21:35 +03:00
|
|
|
/*/ XXX has bugs -- non-current ribbons are not always aligned...
|
2017-05-04 00:46:11 +03:00
|
|
|
'ui-partial-ribbons-2',
|
|
|
|
|
'-ui-partial-ribbons',
|
|
|
|
|
//*/
|
2017-05-11 05:22:04 +03:00
|
|
|
/*/ XXX EXPERIMENTAL: virtual-dom based ribbons...
|
2017-04-26 00:32:22 +03:00
|
|
|
'ui-partial-ribbons-vdom',
|
2017-05-09 04:32:42 +03:00
|
|
|
//'-ui-image-marks',
|
|
|
|
|
//'-ui-image-bookmarks',
|
2017-05-03 15:25:44 +03:00
|
|
|
'-ui-partial-ribbons',
|
2017-04-30 20:07:55 +03:00
|
|
|
'-ui-partial-ribbons-2',
|
2017-05-01 03:34:57 +03:00
|
|
|
//*/
|
2015-12-28 07:09:06 +03:00
|
|
|
|
2017-12-09 03:14:36 +03:00
|
|
|
'ui-bounds-indicators',
|
|
|
|
|
'ui-current-image-indicator',
|
2018-11-08 21:10:58 +03:00
|
|
|
|
|
|
|
|
'ui-tags',
|
2017-12-09 03:14:36 +03:00
|
|
|
])
|
2015-12-17 03:34:20 +03:00
|
|
|
|
2016-01-05 01:13:20 +03:00
|
|
|
|
2017-12-09 03:26:44 +03:00
|
|
|
core.ImageGridFeatures.Feature('imagegrid-ui', [
|
2017-12-09 03:14:36 +03:00
|
|
|
'imagegrid-ui-minimal',
|
|
|
|
|
|
|
|
|
|
'ui-app-control',
|
|
|
|
|
|
|
|
|
|
'ui-progress',
|
2017-03-26 18:56:17 +03:00
|
|
|
|
2016-11-15 22:15:14 +03:00
|
|
|
'ui-app-buttons',
|
|
|
|
|
'ui-buttons',
|
2017-12-09 03:14:36 +03:00
|
|
|
|
2016-02-18 04:16:55 +03:00
|
|
|
'ui-status-bar',
|
2015-12-17 03:34:20 +03:00
|
|
|
|
2017-12-09 03:14:36 +03:00
|
|
|
'ui-url-history',
|
2015-12-17 03:44:07 +03:00
|
|
|
'ui-browse-actions',
|
2017-12-09 03:14:36 +03:00
|
|
|
'ui-context-action-menu',
|
|
|
|
|
])
|
2015-12-17 03:44:07 +03:00
|
|
|
|
2016-03-12 06:24:35 +03:00
|
|
|
|
2017-12-09 03:26:44 +03:00
|
|
|
// simple feature set to do read-only previews...
|
|
|
|
|
// XXX experimental...
|
|
|
|
|
core.ImageGridFeatures.Feature('imagegrid-ui-preview', [
|
|
|
|
|
'imagegrid-ui-minimal',
|
|
|
|
|
|
|
|
|
|
// stuff we do not need...
|
|
|
|
|
'-ui-drag-n-drop',
|
|
|
|
|
'-edit',
|
|
|
|
|
'-collections',
|
|
|
|
|
'-metadata',
|
|
|
|
|
'-peer',
|
|
|
|
|
])
|
|
|
|
|
|
|
|
|
|
|
2017-12-09 03:14:36 +03:00
|
|
|
core.ImageGridFeatures.Feature('imagegrid-testing', [
|
|
|
|
|
'imagegrid-commandline',
|
2017-12-09 03:26:44 +03:00
|
|
|
'imagegrid-ui',
|
2015-12-18 07:55:14 +03:00
|
|
|
|
2017-12-29 23:06:55 +03:00
|
|
|
//'-ui-partial-ribbons',
|
2018-01-03 05:37:13 +03:00
|
|
|
|
2018-01-13 05:19:45 +03:00
|
|
|
// Add this to enable widget mode (will not touch the window)...
|
2018-01-03 05:37:13 +03:00
|
|
|
// XXX needs testing...
|
|
|
|
|
//'widget',
|
2017-12-29 23:06:55 +03:00
|
|
|
|
2015-12-28 07:09:06 +03:00
|
|
|
|
2017-12-09 03:14:36 +03:00
|
|
|
// read-only mode...
|
|
|
|
|
// XXX at this point this needs some more tuneup, the following
|
|
|
|
|
// ...should be split into view/edit sub-features...
|
|
|
|
|
// XXX features are completely disabled when '-edit' is not present:
|
|
|
|
|
// - sort
|
|
|
|
|
// - ...
|
|
|
|
|
// XXX the following features are broken:
|
|
|
|
|
// - crop
|
|
|
|
|
// - ...
|
|
|
|
|
// XXX might also be a good idea to make basic marking and bookmarking
|
|
|
|
|
// editable (save to localStorage???)
|
|
|
|
|
//'-edit',
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//------------------------------------------------------ system ---
|
2015-12-17 03:34:20 +03:00
|
|
|
// XXX not yet fully tested...
|
2017-01-02 01:23:33 +03:00
|
|
|
'journal',
|
2016-05-05 02:25:44 +03:00
|
|
|
|
2017-12-09 03:14:36 +03:00
|
|
|
// NOTE: this is not strictly needed unless we need to save stuff,
|
|
|
|
|
// added here mostly for testing purposes...
|
|
|
|
|
// ...this is best included by direct feature dependency.
|
|
|
|
|
'index-format',
|
|
|
|
|
|
2018-02-04 06:23:31 +03:00
|
|
|
// XXX testing...
|
|
|
|
|
'store-config',
|
2018-02-14 16:49:44 +03:00
|
|
|
//'config',
|
2018-02-04 06:23:31 +03:00
|
|
|
|
2017-12-09 03:14:36 +03:00
|
|
|
'ui-url-hash',
|
2016-05-05 02:25:44 +03:00
|
|
|
|
|
|
|
|
'fail-safe-devtools',
|
2016-05-11 05:00:40 +03:00
|
|
|
|
2017-12-09 03:14:36 +03:00
|
|
|
|
|
|
|
|
//------------------------------------------------------ chrome ---
|
|
|
|
|
'ui-status-log',
|
|
|
|
|
//'ui-scale',
|
|
|
|
|
// NOTE: only one of these can be set...
|
|
|
|
|
'ui-current-image-indicator-hide-on-fast-screen-nav',
|
|
|
|
|
//'ui-current-image-indicator-hide-on-screen-nav',
|
|
|
|
|
//'ui-base-ribbon-indicator',
|
|
|
|
|
'ui-passive-base-ribbon-indicator',
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//---------------------------------------------------- features ---
|
|
|
|
|
'ui-introspection',
|
|
|
|
|
'ui-single-image',
|
|
|
|
|
'ui-slideshow',
|
|
|
|
|
'ui-preview-filters',
|
|
|
|
|
'url-history',
|
|
|
|
|
'external-editor',
|
|
|
|
|
|
|
|
|
|
// experimental features...
|
|
|
|
|
//'ui-range',
|
|
|
|
|
//'auto-single-image',
|
|
|
|
|
//'auto-ribbon',
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//------------------------------------------------------- other ---
|
|
|
|
|
'examples',
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//----------------------------------------------------- testing ---
|
2018-04-12 01:40:26 +03:00
|
|
|
'experiments',
|
2017-05-23 23:06:39 +03:00
|
|
|
'-tests',
|
2018-12-06 00:59:05 +03:00
|
|
|
// XXX this is really slow on load, need to speed the search up...
|
|
|
|
|
'-comments',
|
2017-06-25 08:59:01 +03:00
|
|
|
|
2017-12-09 03:26:44 +03:00
|
|
|
// missing suggested feature test -- should show up in .features.missing...
|
2017-06-25 08:59:01 +03:00
|
|
|
'missing-feature',
|
2015-12-17 03:34:20 +03:00
|
|
|
])
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**********************************************************************
|
2016-08-20 22:49:36 +03:00
|
|
|
* vim:set ts=4 sw=4 : */ return module })
|