Skip to content

Commit

Permalink
build
Browse files Browse the repository at this point in the history
  • Loading branch information
edsilv committed Sep 4, 2017
1 parent 70c42d1 commit 22f4e27
Show file tree
Hide file tree
Showing 8 changed files with 36 additions and 36 deletions.
18 changes: 9 additions & 9 deletions dist/client/manifesto.bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -966,7 +966,7 @@ var Manifesto;
//
// if (!_endsWith(id, '/')) {
// id += '/';
// }
// }
//
// uri = id + 'full/' + width + ',/0/' + Utils.getImageQuality(service.getProfile()) + '.jpg';
// }
Expand Down Expand Up @@ -1135,7 +1135,7 @@ var Manifesto;
}
Manifest.prototype.getDefaultTree = function () {
_super.prototype.getDefaultTree.call(this);
this.defaultTree.data.type = Manifesto.TreeNodeType.MANIFEST.toString();
this.defaultTree.data.type = Manifesto.Utils.normaliseType(Manifesto.TreeNodeType.MANIFEST.toString());
if (!this.isLoaded) {
return this.defaultTree;
}
Expand Down Expand Up @@ -1379,7 +1379,7 @@ var Manifesto;
*/
Collection.prototype.getDefaultTree = function () {
_super.prototype.getDefaultTree.call(this);
this.defaultTree.data.type = Manifesto.TreeNodeType.COLLECTION.toString();
this.defaultTree.data.type = Manifesto.Utils.normaliseType(Manifesto.TreeNodeType.COLLECTION.toString());
this._parseManifests(this);
this._parseCollections(this);
Manifesto.Utils.generateTreeNodeIds(this.defaultTree);
Expand All @@ -1393,7 +1393,7 @@ var Manifesto;
tree.label = manifest.parentLabel || Manifesto.TranslationCollection.getValue(manifest.getLabel(), this.options.locale) || 'manifest ' + (i + 1);
tree.navDate = manifest.getNavDate();
tree.data.id = manifest.id;
tree.data.type = Manifesto.TreeNodeType.MANIFEST.toString();
tree.data.type = Manifesto.Utils.normaliseType(Manifesto.TreeNodeType.MANIFEST.toString());
parentCollection.defaultTree.addNode(tree);
}
}
Expand All @@ -1406,7 +1406,7 @@ var Manifesto;
tree.label = collection.parentLabel || Manifesto.TranslationCollection.getValue(collection.getLabel(), this.options.locale) || 'collection ' + (i + 1);
tree.navDate = collection.getNavDate();
tree.data.id = collection.id;
tree.data.type = Manifesto.TreeNodeType.COLLECTION.toString();
tree.data.type = Manifesto.Utils.normaliseType(Manifesto.TreeNodeType.COLLECTION.toString());
parentCollection.defaultTree.addNode(tree);
this._parseCollections(collection);
}
Expand Down Expand Up @@ -1489,7 +1489,7 @@ var Manifesto;
Range.prototype._parseTreeNode = function (node, range) {
node.label = Manifesto.TranslationCollection.getValue(range.getLabel(), this.options.locale);
node.data = range;
node.data.type = Manifesto.TreeNodeType.RANGE.toString();
node.data.type = Manifesto.Utils.normaliseType(Manifesto.TreeNodeType.RANGE.toString());
range.treeNode = node;
var ranges = range.getRanges();
if (ranges && ranges.length) {
Expand Down Expand Up @@ -2002,13 +2002,13 @@ var Manifesto;
node.parentNode = this;
};
TreeNode.prototype.isCollection = function () {
return this.data.type === Manifesto.TreeNodeType.COLLECTION.toString();
return this.data.type === Manifesto.Utils.normaliseType(Manifesto.TreeNodeType.COLLECTION.toString());
};
TreeNode.prototype.isManifest = function () {
return this.data.type === Manifesto.TreeNodeType.MANIFEST.toString();
return this.data.type === Manifesto.Utils.normaliseType(Manifesto.TreeNodeType.MANIFEST.toString());
};
TreeNode.prototype.isRange = function () {
return this.data.type === Manifesto.TreeNodeType.RANGE.toString();
return this.data.type === Manifesto.Utils.normaliseType(Manifesto.TreeNodeType.RANGE.toString());
};
return TreeNode;
}());
Expand Down
18 changes: 9 additions & 9 deletions dist/client/manifesto.js
Original file line number Diff line number Diff line change
Expand Up @@ -893,7 +893,7 @@ var Manifesto;
//
// if (!_endsWith(id, '/')) {
// id += '/';
// }
// }
//
// uri = id + 'full/' + width + ',/0/' + Utils.getImageQuality(service.getProfile()) + '.jpg';
// }
Expand Down Expand Up @@ -1062,7 +1062,7 @@ var Manifesto;
}
Manifest.prototype.getDefaultTree = function () {
_super.prototype.getDefaultTree.call(this);
this.defaultTree.data.type = Manifesto.TreeNodeType.MANIFEST.toString();
this.defaultTree.data.type = Manifesto.Utils.normaliseType(Manifesto.TreeNodeType.MANIFEST.toString());
if (!this.isLoaded) {
return this.defaultTree;
}
Expand Down Expand Up @@ -1306,7 +1306,7 @@ var Manifesto;
*/
Collection.prototype.getDefaultTree = function () {
_super.prototype.getDefaultTree.call(this);
this.defaultTree.data.type = Manifesto.TreeNodeType.COLLECTION.toString();
this.defaultTree.data.type = Manifesto.Utils.normaliseType(Manifesto.TreeNodeType.COLLECTION.toString());
this._parseManifests(this);
this._parseCollections(this);
Manifesto.Utils.generateTreeNodeIds(this.defaultTree);
Expand All @@ -1320,7 +1320,7 @@ var Manifesto;
tree.label = manifest.parentLabel || Manifesto.TranslationCollection.getValue(manifest.getLabel(), this.options.locale) || 'manifest ' + (i + 1);
tree.navDate = manifest.getNavDate();
tree.data.id = manifest.id;
tree.data.type = Manifesto.TreeNodeType.MANIFEST.toString();
tree.data.type = Manifesto.Utils.normaliseType(Manifesto.TreeNodeType.MANIFEST.toString());
parentCollection.defaultTree.addNode(tree);
}
}
Expand All @@ -1333,7 +1333,7 @@ var Manifesto;
tree.label = collection.parentLabel || Manifesto.TranslationCollection.getValue(collection.getLabel(), this.options.locale) || 'collection ' + (i + 1);
tree.navDate = collection.getNavDate();
tree.data.id = collection.id;
tree.data.type = Manifesto.TreeNodeType.COLLECTION.toString();
tree.data.type = Manifesto.Utils.normaliseType(Manifesto.TreeNodeType.COLLECTION.toString());
parentCollection.defaultTree.addNode(tree);
this._parseCollections(collection);
}
Expand Down Expand Up @@ -1416,7 +1416,7 @@ var Manifesto;
Range.prototype._parseTreeNode = function (node, range) {
node.label = Manifesto.TranslationCollection.getValue(range.getLabel(), this.options.locale);
node.data = range;
node.data.type = Manifesto.TreeNodeType.RANGE.toString();
node.data.type = Manifesto.Utils.normaliseType(Manifesto.TreeNodeType.RANGE.toString());
range.treeNode = node;
var ranges = range.getRanges();
if (ranges && ranges.length) {
Expand Down Expand Up @@ -1929,13 +1929,13 @@ var Manifesto;
node.parentNode = this;
};
TreeNode.prototype.isCollection = function () {
return this.data.type === Manifesto.TreeNodeType.COLLECTION.toString();
return this.data.type === Manifesto.Utils.normaliseType(Manifesto.TreeNodeType.COLLECTION.toString());
};
TreeNode.prototype.isManifest = function () {
return this.data.type === Manifesto.TreeNodeType.MANIFEST.toString();
return this.data.type === Manifesto.Utils.normaliseType(Manifesto.TreeNodeType.MANIFEST.toString());
};
TreeNode.prototype.isRange = function () {
return this.data.type === Manifesto.TreeNodeType.RANGE.toString();
return this.data.type === Manifesto.Utils.normaliseType(Manifesto.TreeNodeType.RANGE.toString());
};
return TreeNode;
}());
Expand Down
18 changes: 9 additions & 9 deletions dist/server/manifesto.js
Original file line number Diff line number Diff line change
Expand Up @@ -965,7 +965,7 @@ var Manifesto;
//
// if (!_endsWith(id, '/')) {
// id += '/';
// }
// }
//
// uri = id + 'full/' + width + ',/0/' + Utils.getImageQuality(service.getProfile()) + '.jpg';
// }
Expand Down Expand Up @@ -1134,7 +1134,7 @@ var Manifesto;
}
Manifest.prototype.getDefaultTree = function () {
_super.prototype.getDefaultTree.call(this);
this.defaultTree.data.type = Manifesto.TreeNodeType.MANIFEST.toString();
this.defaultTree.data.type = Manifesto.Utils.normaliseType(Manifesto.TreeNodeType.MANIFEST.toString());
if (!this.isLoaded) {
return this.defaultTree;
}
Expand Down Expand Up @@ -1378,7 +1378,7 @@ var Manifesto;
*/
Collection.prototype.getDefaultTree = function () {
_super.prototype.getDefaultTree.call(this);
this.defaultTree.data.type = Manifesto.TreeNodeType.COLLECTION.toString();
this.defaultTree.data.type = Manifesto.Utils.normaliseType(Manifesto.TreeNodeType.COLLECTION.toString());
this._parseManifests(this);
this._parseCollections(this);
Manifesto.Utils.generateTreeNodeIds(this.defaultTree);
Expand All @@ -1392,7 +1392,7 @@ var Manifesto;
tree.label = manifest.parentLabel || Manifesto.TranslationCollection.getValue(manifest.getLabel(), this.options.locale) || 'manifest ' + (i + 1);
tree.navDate = manifest.getNavDate();
tree.data.id = manifest.id;
tree.data.type = Manifesto.TreeNodeType.MANIFEST.toString();
tree.data.type = Manifesto.Utils.normaliseType(Manifesto.TreeNodeType.MANIFEST.toString());
parentCollection.defaultTree.addNode(tree);
}
}
Expand All @@ -1405,7 +1405,7 @@ var Manifesto;
tree.label = collection.parentLabel || Manifesto.TranslationCollection.getValue(collection.getLabel(), this.options.locale) || 'collection ' + (i + 1);
tree.navDate = collection.getNavDate();
tree.data.id = collection.id;
tree.data.type = Manifesto.TreeNodeType.COLLECTION.toString();
tree.data.type = Manifesto.Utils.normaliseType(Manifesto.TreeNodeType.COLLECTION.toString());
parentCollection.defaultTree.addNode(tree);
this._parseCollections(collection);
}
Expand Down Expand Up @@ -1488,7 +1488,7 @@ var Manifesto;
Range.prototype._parseTreeNode = function (node, range) {
node.label = Manifesto.TranslationCollection.getValue(range.getLabel(), this.options.locale);
node.data = range;
node.data.type = Manifesto.TreeNodeType.RANGE.toString();
node.data.type = Manifesto.Utils.normaliseType(Manifesto.TreeNodeType.RANGE.toString());
range.treeNode = node;
var ranges = range.getRanges();
if (ranges && ranges.length) {
Expand Down Expand Up @@ -2001,13 +2001,13 @@ var Manifesto;
node.parentNode = this;
};
TreeNode.prototype.isCollection = function () {
return this.data.type === Manifesto.TreeNodeType.COLLECTION.toString();
return this.data.type === Manifesto.Utils.normaliseType(Manifesto.TreeNodeType.COLLECTION.toString());
};
TreeNode.prototype.isManifest = function () {
return this.data.type === Manifesto.TreeNodeType.MANIFEST.toString();
return this.data.type === Manifesto.Utils.normaliseType(Manifesto.TreeNodeType.MANIFEST.toString());
};
TreeNode.prototype.isRange = function () {
return this.data.type === Manifesto.TreeNodeType.RANGE.toString();
return this.data.type === Manifesto.Utils.normaliseType(Manifesto.TreeNodeType.RANGE.toString());
};
return TreeNode;
}());
Expand Down
2 changes: 1 addition & 1 deletion src/Canvas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ namespace Manifesto {
//
// if (!_endsWith(id, '/')) {
// id += '/';
// }
// }
//
// uri = id + 'full/' + width + ',/0/' + Utils.getImageQuality(service.getProfile()) + '.jpg';
// }
Expand Down
6 changes: 3 additions & 3 deletions src/Collection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ namespace Manifesto {

super.getDefaultTree();

this.defaultTree.data.type = TreeNodeType.COLLECTION.toString();
this.defaultTree.data.type = Utils.normaliseType(TreeNodeType.COLLECTION.toString());

this._parseManifests(this);
this._parseCollections(this);
Expand All @@ -75,7 +75,7 @@ namespace Manifesto {
tree.label = manifest.parentLabel || TranslationCollection.getValue(manifest.getLabel(), this.options.locale) || 'manifest ' + (i + 1);
tree.navDate = manifest.getNavDate();
tree.data.id = manifest.id;
tree.data.type = TreeNodeType.MANIFEST.toString();
tree.data.type = Utils.normaliseType(TreeNodeType.MANIFEST.toString());
parentCollection.defaultTree.addNode(tree);
}
}
Expand All @@ -89,7 +89,7 @@ namespace Manifesto {
tree.label = collection.parentLabel || TranslationCollection.getValue(collection.getLabel(), this.options.locale) || 'collection ' + (i + 1);
tree.navDate = collection.getNavDate();
tree.data.id = collection.id;
tree.data.type = TreeNodeType.COLLECTION.toString();
tree.data.type = Utils.normaliseType(TreeNodeType.COLLECTION.toString());
parentCollection.defaultTree.addNode(tree);

this._parseCollections(collection);
Expand Down
2 changes: 1 addition & 1 deletion src/Manifest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ namespace Manifesto {

super.getDefaultTree();

this.defaultTree.data.type = TreeNodeType.MANIFEST.toString();
this.defaultTree.data.type = Utils.normaliseType(TreeNodeType.MANIFEST.toString());

if (!this.isLoaded) {
return this.defaultTree;
Expand Down
2 changes: 1 addition & 1 deletion src/Range.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ namespace Manifesto {
private _parseTreeNode(node: ITreeNode, range: IRange): void {
node.label = <string>TranslationCollection.getValue(range.getLabel(), this.options.locale);
node.data = range;
node.data.type = TreeNodeType.RANGE.toString();
node.data.type = Utils.normaliseType(TreeNodeType.RANGE.toString());
range.treeNode = node;

const ranges: IRange[] = range.getRanges();
Expand Down
6 changes: 3 additions & 3 deletions src/TreeNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@ namespace Manifesto {
}

public isCollection(): boolean {
return this.data.type === TreeNodeType.COLLECTION.toString();
return this.data.type === Utils.normaliseType(TreeNodeType.COLLECTION.toString());
}

public isManifest(): boolean {
return this.data.type === TreeNodeType.MANIFEST.toString();
return this.data.type === Utils.normaliseType(TreeNodeType.MANIFEST.toString());
}

public isRange(): boolean {
return this.data.type === TreeNodeType.RANGE.toString();
return this.data.type === Utils.normaliseType(TreeNodeType.RANGE.toString());
}
}
}

0 comments on commit 22f4e27

Please sign in to comment.