cleanup and tweaks...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2017-06-24 02:09:18 +03:00
parent 8be7c7cd00
commit 306a55e2be
2 changed files with 15 additions and 17 deletions

View File

@ -16,19 +16,19 @@
},
"dependencies": {
"app-module-path": "^1.0.6",
"commander": "^2.9.0",
"commander": "^2.10.0",
"exiftool": "^0.0.3",
"fs-extra": "*",
"fs-walk": "^0.0.1",
"glob": "^4.0.6",
"guarantee-events": "^1.0.0",
"ig-actions": "^3.0.0",
"ig-features": "^3.0.0",
"ig-features": "^3.1.5",
"ig-object": "^1.0.1",
"openseadragon": "^2.1.0",
"preact": "^8.1.0",
"react": "^15.5.4",
"react-dom": "^15.5.4",
"react": "^15.6.1",
"react-dom": "^15.6.1",
"requirejs": "^2.1.23",
"requirejs-plugins": "^1.0.2",
"sharp": "^0.17.0",

View File

@ -105,6 +105,17 @@ $(function(){
m = Object.keys(m).filter(function(e){ return m[e] != null })
console.log('Modules (%d):', m.length, m)
/*/ self-test...
var test = viewer.ImageGridFeatures.buildFeatureList()
if(test.error){
// report loops...
var err = test.error
err.loops.forEach(function(loop){
console.warn('Self-test: Feature dependency loops detected:\n\t'
+ loop.join('\n\t\t-> ')) })
}
//*/
try {
// setup actions...
window.ig =
@ -135,19 +146,6 @@ $(function(){
// report stuff...
/* XXX legacy features...
ig.features.excluded.length > 0
&& console.warn('Features excluded (%d):',
ig.features.excluded.length,
ig.features.excluded)
Object.keys(ig.features.missing).length > 0
&& console.warn('Features disabled (%d):',
ig.features.missing)
ig.features.disabled.length > 0
&& console.log('Features disabled (%d):',
ig.features.disabled.length,
ig.features.disabled)
//*/
console.log('Features loaded (%d):',
ig.features.features.length,
ig.features.features)