Skip to content

Commit 42d07a5

Browse files
committed
updated manifesto
1 parent 5316139 commit 42d07a5

8 files changed

Lines changed: 25 additions & 25 deletions

File tree

dist/manifold.bundle.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -966,7 +966,7 @@ var Manifesto;
966966
//
967967
// if (!_endsWith(id, '/')) {
968968
// id += '/';
969-
// }
969+
// }
970970
//
971971
// uri = id + 'full/' + width + ',/0/' + Utils.getImageQuality(service.getProfile()) + '.jpg';
972972
// }
@@ -1135,7 +1135,7 @@ var Manifesto;
11351135
}
11361136
Manifest.prototype.getDefaultTree = function () {
11371137
_super.prototype.getDefaultTree.call(this);
1138-
this.defaultTree.data.type = Manifesto.TreeNodeType.MANIFEST.toString();
1138+
this.defaultTree.data.type = Manifesto.Utils.normaliseType(Manifesto.TreeNodeType.MANIFEST.toString());
11391139
if (!this.isLoaded) {
11401140
return this.defaultTree;
11411141
}
@@ -1379,7 +1379,7 @@ var Manifesto;
13791379
*/
13801380
Collection.prototype.getDefaultTree = function () {
13811381
_super.prototype.getDefaultTree.call(this);
1382-
this.defaultTree.data.type = Manifesto.TreeNodeType.COLLECTION.toString();
1382+
this.defaultTree.data.type = Manifesto.Utils.normaliseType(Manifesto.TreeNodeType.COLLECTION.toString());
13831383
this._parseManifests(this);
13841384
this._parseCollections(this);
13851385
Manifesto.Utils.generateTreeNodeIds(this.defaultTree);
@@ -1393,7 +1393,7 @@ var Manifesto;
13931393
tree.label = manifest.parentLabel || Manifesto.TranslationCollection.getValue(manifest.getLabel(), this.options.locale) || 'manifest ' + (i + 1);
13941394
tree.navDate = manifest.getNavDate();
13951395
tree.data.id = manifest.id;
1396-
tree.data.type = Manifesto.TreeNodeType.MANIFEST.toString();
1396+
tree.data.type = Manifesto.Utils.normaliseType(Manifesto.TreeNodeType.MANIFEST.toString());
13971397
parentCollection.defaultTree.addNode(tree);
13981398
}
13991399
}
@@ -1406,7 +1406,7 @@ var Manifesto;
14061406
tree.label = collection.parentLabel || Manifesto.TranslationCollection.getValue(collection.getLabel(), this.options.locale) || 'collection ' + (i + 1);
14071407
tree.navDate = collection.getNavDate();
14081408
tree.data.id = collection.id;
1409-
tree.data.type = Manifesto.TreeNodeType.COLLECTION.toString();
1409+
tree.data.type = Manifesto.Utils.normaliseType(Manifesto.TreeNodeType.COLLECTION.toString());
14101410
parentCollection.defaultTree.addNode(tree);
14111411
this._parseCollections(collection);
14121412
}
@@ -1489,7 +1489,7 @@ var Manifesto;
14891489
Range.prototype._parseTreeNode = function (node, range) {
14901490
node.label = Manifesto.TranslationCollection.getValue(range.getLabel(), this.options.locale);
14911491
node.data = range;
1492-
node.data.type = Manifesto.TreeNodeType.RANGE.toString();
1492+
node.data.type = Manifesto.Utils.normaliseType(Manifesto.TreeNodeType.RANGE.toString());
14931493
range.treeNode = node;
14941494
var ranges = range.getRanges();
14951495
if (ranges && ranges.length) {
@@ -2002,13 +2002,13 @@ var Manifesto;
20022002
node.parentNode = this;
20032003
};
20042004
TreeNode.prototype.isCollection = function () {
2005-
return this.data.type === Manifesto.TreeNodeType.COLLECTION.toString();
2005+
return this.data.type === Manifesto.Utils.normaliseType(Manifesto.TreeNodeType.COLLECTION.toString());
20062006
};
20072007
TreeNode.prototype.isManifest = function () {
2008-
return this.data.type === Manifesto.TreeNodeType.MANIFEST.toString();
2008+
return this.data.type === Manifesto.Utils.normaliseType(Manifesto.TreeNodeType.MANIFEST.toString());
20092009
};
20102010
TreeNode.prototype.isRange = function () {
2011-
return this.data.type === Manifesto.TreeNodeType.RANGE.toString();
2011+
return this.data.type === Manifesto.Utils.normaliseType(Manifesto.TreeNodeType.RANGE.toString());
20122012
};
20132013
return TreeNode;
20142014
}());

dist/manifold.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// manifold v1.2.3 https://github.com/viewdir/manifold#readme
1+
// manifold v1.2.4 https://github.com/viewdir/manifold#readme
22
/// <reference path="../node_modules/typescript/lib/lib.es6.d.ts" />
33
interface Window {
44
manifestCallback: any;

dist/manifold.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// manifold v1.2.3 https://github.com/viewdir/manifold#readme
1+
// manifold v1.2.4 https://github.com/viewdir/manifold#readme
22
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.manifold = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
33
(function (global){
44
///<reference path="../node_modules/typescript/lib/lib.es6.d.ts"/>

dist/manifold.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/js/manifesto.bundle.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -966,7 +966,7 @@ var Manifesto;
966966
//
967967
// if (!_endsWith(id, '/')) {
968968
// id += '/';
969-
// }
969+
// }
970970
//
971971
// uri = id + 'full/' + width + ',/0/' + Utils.getImageQuality(service.getProfile()) + '.jpg';
972972
// }
@@ -1135,7 +1135,7 @@ var Manifesto;
11351135
}
11361136
Manifest.prototype.getDefaultTree = function () {
11371137
_super.prototype.getDefaultTree.call(this);
1138-
this.defaultTree.data.type = Manifesto.TreeNodeType.MANIFEST.toString();
1138+
this.defaultTree.data.type = Manifesto.Utils.normaliseType(Manifesto.TreeNodeType.MANIFEST.toString());
11391139
if (!this.isLoaded) {
11401140
return this.defaultTree;
11411141
}
@@ -1379,7 +1379,7 @@ var Manifesto;
13791379
*/
13801380
Collection.prototype.getDefaultTree = function () {
13811381
_super.prototype.getDefaultTree.call(this);
1382-
this.defaultTree.data.type = Manifesto.TreeNodeType.COLLECTION.toString();
1382+
this.defaultTree.data.type = Manifesto.Utils.normaliseType(Manifesto.TreeNodeType.COLLECTION.toString());
13831383
this._parseManifests(this);
13841384
this._parseCollections(this);
13851385
Manifesto.Utils.generateTreeNodeIds(this.defaultTree);
@@ -1393,7 +1393,7 @@ var Manifesto;
13931393
tree.label = manifest.parentLabel || Manifesto.TranslationCollection.getValue(manifest.getLabel(), this.options.locale) || 'manifest ' + (i + 1);
13941394
tree.navDate = manifest.getNavDate();
13951395
tree.data.id = manifest.id;
1396-
tree.data.type = Manifesto.TreeNodeType.MANIFEST.toString();
1396+
tree.data.type = Manifesto.Utils.normaliseType(Manifesto.TreeNodeType.MANIFEST.toString());
13971397
parentCollection.defaultTree.addNode(tree);
13981398
}
13991399
}
@@ -1406,7 +1406,7 @@ var Manifesto;
14061406
tree.label = collection.parentLabel || Manifesto.TranslationCollection.getValue(collection.getLabel(), this.options.locale) || 'collection ' + (i + 1);
14071407
tree.navDate = collection.getNavDate();
14081408
tree.data.id = collection.id;
1409-
tree.data.type = Manifesto.TreeNodeType.COLLECTION.toString();
1409+
tree.data.type = Manifesto.Utils.normaliseType(Manifesto.TreeNodeType.COLLECTION.toString());
14101410
parentCollection.defaultTree.addNode(tree);
14111411
this._parseCollections(collection);
14121412
}
@@ -1489,7 +1489,7 @@ var Manifesto;
14891489
Range.prototype._parseTreeNode = function (node, range) {
14901490
node.label = Manifesto.TranslationCollection.getValue(range.getLabel(), this.options.locale);
14911491
node.data = range;
1492-
node.data.type = Manifesto.TreeNodeType.RANGE.toString();
1492+
node.data.type = Manifesto.Utils.normaliseType(Manifesto.TreeNodeType.RANGE.toString());
14931493
range.treeNode = node;
14941494
var ranges = range.getRanges();
14951495
if (ranges && ranges.length) {
@@ -2002,13 +2002,13 @@ var Manifesto;
20022002
node.parentNode = this;
20032003
};
20042004
TreeNode.prototype.isCollection = function () {
2005-
return this.data.type === Manifesto.TreeNodeType.COLLECTION.toString();
2005+
return this.data.type === Manifesto.Utils.normaliseType(Manifesto.TreeNodeType.COLLECTION.toString());
20062006
};
20072007
TreeNode.prototype.isManifest = function () {
2008-
return this.data.type === Manifesto.TreeNodeType.MANIFEST.toString();
2008+
return this.data.type === Manifesto.Utils.normaliseType(Manifesto.TreeNodeType.MANIFEST.toString());
20092009
};
20102010
TreeNode.prototype.isRange = function () {
2011-
return this.data.type === Manifesto.TreeNodeType.RANGE.toString();
2011+
return this.data.type === Manifesto.Utils.normaliseType(Manifesto.TreeNodeType.RANGE.toString());
20122012
};
20132013
return TreeNode;
20142014
}());

examples/js/manifold.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// manifold v1.2.3 https://github.com/viewdir/manifold#readme
1+
// manifold v1.2.4 https://github.com/viewdir/manifold#readme
22
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.manifold = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
33
(function (global){
44
///<reference path="../node_modules/typescript/lib/lib.es6.d.ts"/>

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "manifold",
3-
"version": "1.2.3",
3+
"version": "1.2.4",
44
"description": "",
55
"main": "gulpfile.js",
66
"scripts": {
@@ -18,7 +18,7 @@
1818
"homepage": "https://github.com/viewdir/manifold#readme",
1919
"devDependencies": {
2020
"gulp": "^3.9.1",
21-
"manifesto.js": "viewdir/manifesto#v2.1.5",
21+
"manifesto.js": "viewdir/manifesto#v2.1.6",
2222
"gulp-tasks": "viewdir/gulp-tasks#v1.0.5",
2323
"typings": "^2.1.0"
2424
},

typings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
"globalDependencies": {
55
"exjs": "github:BSick7/exjs/dist/ex.d.ts#0.5.0",
66
"http-status-codes": "github:edsilv/http-status-codes/dist/http-status-codes.d.ts#v0.0.5",
7-
"manifesto.js": "github:viewdir/manifesto/dist/manifesto.d.ts#v2.1.5"
7+
"manifesto.js": "github:viewdir/manifesto/dist/manifesto.d.ts#v2.1.6"
88
}
99
}

0 commit comments

Comments
 (0)