| 
									
										
										
										
											2015-12-17 03:34:20 +03:00
										 |  |  | /********************************************************************** | 
					
						
							|  |  |  | *  | 
					
						
							|  |  |  | * | 
					
						
							|  |  |  | * | 
					
						
							|  |  |  | **********************************************************************/ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | define(function(require){ var module = {} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | //var DEBUG = DEBUG != null ? DEBUG : true
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | var actions = require('lib/actions') | 
					
						
							|  |  |  | var features = require('lib/features') | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | var core = require('features/core') | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /*********************************************************************/ | 
					
						
							|  |  |  | // Meta features...
 | 
					
						
							|  |  |  | //
 | 
					
						
							|  |  |  | // XXX need to make a set of basic configurations:
 | 
					
						
							|  |  |  | // 		- commandline		- everything but no UI
 | 
					
						
							|  |  |  | // 		- viewer-minimal	- basic browser compatible viewer
 | 
					
						
							|  |  |  | // 		- viewer			- full viewer
 | 
					
						
							|  |  |  | // 		- editor			- editing capability
 | 
					
						
							|  |  |  | //
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-12-31 10:37:21 +03:00
										 |  |  | core.ImageGridFeatures.Feature('viewer-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
										 |  |  | ]) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | core.ImageGridFeatures.Feature('viewer-minimal', [ | 
					
						
							|  |  |  | 	'lifecycle', | 
					
						
							|  |  |  | 	'base-full', | 
					
						
							| 
									
										
										
										
											2015-12-31 10:37:21 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	'image-marks', | 
					
						
							|  |  |  | 	'image-bookmarks', | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-04-02 19:30:48 +03:00
										 |  |  | 	'fs', | 
					
						
							| 
									
										
										
										
											2016-01-18 05:20:14 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	'metadata', | 
					
						
							| 
									
										
										
										
											2015-12-31 10:37:21 +03:00
										 |  |  | ]) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | core.ImageGridFeatures.Feature('viewer-testing', [ | 
					
						
							|  |  |  | 	'viewer-commandline', | 
					
						
							| 
									
										
										
										
											2016-01-03 04:49:00 +03:00
										 |  |  | 	'viewer-minimal', | 
					
						
							| 
									
										
										
										
											2015-12-31 10:37:21 +03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-03-28 22:07:38 +03:00
										 |  |  | 	'workspace', | 
					
						
							| 
									
										
										
										
											2015-12-17 03:34:20 +03:00
										 |  |  | 	'ui', | 
					
						
							| 
									
										
										
										
											2016-04-02 17:34:25 +03:00
										 |  |  | 	'keyboard', | 
					
						
							| 
									
										
										
										
											2015-12-17 03:34:20 +03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-12-26 01:12:39 +03:00
										 |  |  | 	'ui-ribbons-placement', | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-05-05 01:32:47 +03:00
										 |  |  | 	'ui-fullscreen-controls', | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-12-17 03:34:20 +03:00
										 |  |  | 	// features...
 | 
					
						
							|  |  |  | 	'ui-ribbon-auto-align', | 
					
						
							|  |  |  | 	//'ui-ribbon-align-to-order',
 | 
					
						
							|  |  |  | 	//'ui-ribbon-align-to-first',
 | 
					
						
							|  |  |  | 	//'ui-ribbon-manual-align',
 | 
					
						
							|  |  |  | 	 | 
					
						
							| 
									
										
										
										
											2016-04-02 19:30:48 +03:00
										 |  |  | 	'ui-single-image', | 
					
						
							| 
									
										
										
										
											2015-12-17 03:34:20 +03:00
										 |  |  | 	'ui-partial-ribbons', | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	// XXX
 | 
					
						
							|  |  |  | 	//'ui-keyboard-control',
 | 
					
						
							|  |  |  | 	//'ui-direct-control',
 | 
					
						
							|  |  |  | 	//'ui-indirect-control',
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-04-02 19:30:48 +03:00
										 |  |  | 	'marks', | 
					
						
							| 
									
										
										
										
											2015-12-28 07:09:06 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	// local storage + url...
 | 
					
						
							| 
									
										
										
										
											2015-12-17 03:34:20 +03:00
										 |  |  | 	'config-local-storage', | 
					
						
							| 
									
										
										
										
											2015-12-28 07:09:06 +03:00
										 |  |  | 	'ui-url-hash', | 
					
						
							| 
									
										
										
										
											2016-04-02 19:30:48 +03:00
										 |  |  | 	'url-history', | 
					
						
							| 
									
										
										
										
											2015-12-17 03:34:20 +03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-12-28 07:09:06 +03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-01-05 01:13:20 +03:00
										 |  |  | 	'external-editor', | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-12-17 03:34:20 +03:00
										 |  |  | 	// chrome...
 | 
					
						
							| 
									
										
										
										
											2016-02-10 06:03:59 +03:00
										 |  |  | 	'ui-status-log', | 
					
						
							| 
									
										
										
										
											2016-02-10 05:25:14 +03:00
										 |  |  | 	'ui-scale', | 
					
						
							| 
									
										
										
										
											2015-12-17 03:34:20 +03:00
										 |  |  | 	'ui-animation', | 
					
						
							|  |  |  | 	'ui-bounds-indicators', | 
					
						
							|  |  |  | 	'ui-current-image-indicator', | 
					
						
							|  |  |  | 		// 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',
 | 
					
						
							| 
									
										
										
										
											2015-12-20 20:59:19 +03:00
										 |  |  | 	//'ui-base-ribbon-indicator',
 | 
					
						
							|  |  |  | 	'ui-passive-base-ribbon-indicator', | 
					
						
							| 
									
										
										
										
											2016-02-18 04:16:55 +03:00
										 |  |  | 	'ui-status-bar', | 
					
						
							| 
									
										
										
										
											2015-12-17 03:34:20 +03:00
										 |  |  | 	'ui-url-history', | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-12-17 03:44:07 +03:00
										 |  |  | 	'ui-browse-actions', | 
					
						
							| 
									
										
										
										
											2016-03-05 02:45:02 +03:00
										 |  |  | 		'ui-context-action-menu', | 
					
						
							| 
									
										
										
										
											2015-12-17 03:44:07 +03:00
										 |  |  | 		'ui-widget-test', | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-03-12 06:24:35 +03:00
										 |  |  | 	// slideshow...
 | 
					
						
							|  |  |  | 	'ui-slideshow', | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-12-20 20:59:19 +03:00
										 |  |  | 	// ui control...
 | 
					
						
							|  |  |  | 	'ui-clickable', | 
					
						
							| 
									
										
										
										
											2015-12-18 07:55:14 +03:00
										 |  |  | 	//'ui-direct-control-jquery',
 | 
					
						
							| 
									
										
										
										
											2015-12-26 06:44:43 +03:00
										 |  |  | 	// XXX BUG: on touch down and first move this gets offset by a distance
 | 
					
						
							|  |  |  | 	// 		not sure why...
 | 
					
						
							| 
									
										
										
										
											2015-12-26 23:21:14 +03:00
										 |  |  | 	// 		...seems to be related to scaling
 | 
					
						
							|  |  |  | 	//'ui-direct-control-gsap',
 | 
					
						
							| 
									
										
										
										
											2015-12-30 07:20:59 +03:00
										 |  |  | 	'ui-indirect-control', | 
					
						
							| 
									
										
										
										
											2015-12-18 07:55:14 +03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-12-17 03:34:20 +03:00
										 |  |  | 	// experimental and optional features...
 | 
					
						
							|  |  |  | 	//'auto-single-image',
 | 
					
						
							| 
									
										
										
										
											2015-12-20 20:59:19 +03:00
										 |  |  | 	//'auto-ribbon',
 | 
					
						
							| 
									
										
										
										
											2015-12-17 03:34:20 +03:00
										 |  |  | 	 | 
					
						
							| 
									
										
										
										
											2015-12-31 10:37:21 +03:00
										 |  |  | 	'ui-app-control', | 
					
						
							| 
									
										
										
										
											2015-12-28 07:09:06 +03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-12-17 03:34:20 +03:00
										 |  |  | 	// XXX not yet fully tested...
 | 
					
						
							|  |  |  | 	'system-journal', | 
					
						
							| 
									
										
										
										
											2016-05-05 02:25:44 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	'fail-safe-devtools', | 
					
						
							| 
									
										
										
										
											2015-12-17 03:34:20 +03:00
										 |  |  | ]) | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-01-03 04:49:00 +03:00
										 |  |  | /* | 
					
						
							| 
									
										
										
										
											2015-12-17 03:34:20 +03:00
										 |  |  | core.ImageGridFeatures.Feature('viewer-minimal', [ | 
					
						
							|  |  |  | 	'base', | 
					
						
							|  |  |  | 	'ui', | 
					
						
							|  |  |  | 	'ui-ribbon-align-to-order', | 
					
						
							|  |  |  | 	'ui-animation', | 
					
						
							|  |  |  | 	'ui-bounds-indicators', | 
					
						
							|  |  |  | 	'ui-current-image-indicator', | 
					
						
							|  |  |  | 		'ui-current-image-indicator-hide-on-fast-screen-nav', | 
					
						
							|  |  |  | 		//'ui-current-image-indicator-hide-on-screen-nav',
 | 
					
						
							|  |  |  | 	'ui-action-tree', | 
					
						
							|  |  |  | ]) | 
					
						
							| 
									
										
										
										
											2016-01-03 04:49:00 +03:00
										 |  |  | */ | 
					
						
							| 
									
										
										
										
											2015-12-17 03:34:20 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /********************************************************************** | 
					
						
							|  |  |  | * vim:set ts=4 sw=4 :                                                */ | 
					
						
							|  |  |  | return module }) |