Skip to content

Commit

Permalink
removed typings
Browse files Browse the repository at this point in the history
  • Loading branch information
edsilv committed Dec 8, 2017
1 parent 8ba0a54 commit 5ae7425
Show file tree
Hide file tree
Showing 13 changed files with 588 additions and 357 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.idea
.vscode
node_modules
npm-debug.log
Thumbs.db
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# iiif-av-component

http://viewdir.github.io/iiif-av-component/examples/
http://iiif-commons.github.io/iiif-av-component/examples/

**Ensure you have the [typings](https://github.com/typings/typings) CLI installed**

Expand Down
436 changes: 275 additions & 161 deletions dist/iiif-av-component.bundle.js

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion dist/iiif-av-component.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// iiif-av-component v0.0.1 https://github.com/viewdir/iiif-av-component#readme
// iiif-av-component v0.0.1 https://github.com/iiif-commons/iiif-av-component#readme
/// <reference path="../node_modules/typescript/lib/lib.es6.d.ts" />

/// <reference types="base-component" />
declare namespace IIIFComponents {
class AVComponent extends _Components.BaseComponent {
options: _Components.IBaseComponentOptions;
Expand Down Expand Up @@ -29,6 +30,7 @@ declare namespace IIIFComponents.AVComponent {

/// <reference types="jquery" />
/// <reference types="jqueryui" />
/// <reference types="manifesto.js" />
declare namespace IIIFComponents {
class CanvasInstance {
private _highPriorityFrequency;
Expand Down Expand Up @@ -75,6 +77,7 @@ declare namespace IIIFComponents {
}
}

/// <reference types="manifold" />
declare namespace IIIFComponents {
interface IAVComponentContent {
}
Expand Down
10 changes: 5 additions & 5 deletions dist/iiif-av-component.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// iiif-av-component v0.0.1 https://github.com/viewdir/iiif-av-component#readme
// iiif-av-component v0.0.1 https://github.com/iiif-commons/iiif-av-component#readme
(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.iiifAvComponent = 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){
(function (global){
///<reference path="../node_modules/typescript/lib/lib.es6.d.ts"/>
Expand All @@ -15,7 +15,7 @@ var __extends = (this && this.__extends) || (function () {
})();
var IIIFComponents;
(function (IIIFComponents) {
var AVComponent = (function (_super) {
var AVComponent = /** @class */ (function (_super) {
__extends(AVComponent, _super);
function AVComponent(options) {
var _this = _super.call(this, options) || this;
Expand Down Expand Up @@ -192,7 +192,7 @@ var IIIFComponents;
(function (IIIFComponents) {
var AVComponent;
(function (AVComponent) {
var Events = (function () {
var Events = /** @class */ (function () {
function Events() {
}
Events.LOG = 'log';
Expand All @@ -212,7 +212,7 @@ var IIIFComponents;

var IIIFComponents;
(function (IIIFComponents) {
var CanvasInstance = (function () {
var CanvasInstance = /** @class */ (function () {
function CanvasInstance(canvas) {
this._highPriorityFrequency = 25;
this._lowPriorityFrequency = 100;
Expand Down Expand Up @@ -607,7 +607,7 @@ var IIIFComponents;
(function (IIIFComponents) {
var AVComponentUtils;
(function (AVComponentUtils) {
var Utils = (function () {
var Utils = /** @class */ (function () {
function Utils() {
}
Utils.formatTime = function (aNumber) {
Expand Down
2 changes: 1 addition & 1 deletion dist/iiif-av-component.min.js

Large diffs are not rendered by default.

26 changes: 13 additions & 13 deletions examples/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@

<script src="js/base-component.js"></script>
<script src="js/iiif-av-component.js"></script>
<script src="https://rawgit.com/viewdir/iiif-tree-component/master/dist/iiif-tree-component.js"></script>
<script src="https://rawgit.com/iiif-commons/iiif-tree-component/master/dist/iiif-tree-component.js"></script>

<!-- <script src="https://rawgit.com/viewdir/manifesto/dev/dist/client/manifesto.bundle.js"></script>
<script src="https://rawgit.com/viewdir/manifold/dev/dist/manifold.js"></script> -->
<!-- <script src="https://rawgit.com/iiif-commons/manifesto/dev/dist/client/manifesto.bundle.js"></script>
<script src="https://rawgit.com/iiif-commons/manifold/dev/dist/manifold.js"></script> -->

<script src="js/manifold.bundle.js"></script>

Expand All @@ -31,17 +31,17 @@
<body>

<div class="testFixtureSelection">
<button class="testFixture" data-json="https://viewdir.github.io/iiif-av-component/examples/data/bl/01_gapless_audio.json">Load Test 1</button>
<button class="testFixture" data-json="https://viewdir.github.io/iiif-av-component/examples/data/bl/02_gapless_video.json">Load Test 2</button>
<button class="testFixture" data-json="https://viewdir.github.io/iiif-av-component/examples/data/bl/03_synchronised_video.json">Load Test 3</button>
<button class="testFixture" data-json="https://viewdir.github.io/iiif-av-component/examples/data/bl/04_synchronised_av.json">Load Test 4</button>
<button class="testFixture" data-json="https://viewdir.github.io/iiif-av-component/examples/data/bl/05_synchronised_av_text.json">Load Test 5</button>
<button class="testFixture" data-json="https://viewdir.github.io/iiif-av-component/examples/data/iiif/fire.json">Load Test 6</button>
<button class="testFixture" data-json="https://viewdir.github.io/iiif-av-component/examples/data/iiif/mahler-symphony.json">Load Test 7</button>
<button class="testFixture" data-json="https://viewdir.github.io/iiif-av-component/examples/data/iiif/lunchroom-manners.json">Load Test 8</button>
<button class="testFixture" data-json="https://iiif-commons.github.io/iiif-av-component/examples/data/bl/01_gapless_audio.json">Load Test 1</button>
<button class="testFixture" data-json="https://iiif-commons.github.io/iiif-av-component/examples/data/bl/02_gapless_video.json">Load Test 2</button>
<button class="testFixture" data-json="https://iiif-commons.github.io/iiif-av-component/examples/data/bl/03_synchronised_video.json">Load Test 3</button>
<button class="testFixture" data-json="https://iiif-commons.github.io/iiif-av-component/examples/data/bl/04_synchronised_av.json">Load Test 4</button>
<button class="testFixture" data-json="https://iiif-commons.github.io/iiif-av-component/examples/data/bl/05_synchronised_av_text.json">Load Test 5</button>
<button class="testFixture" data-json="https://iiif-commons.github.io/iiif-av-component/examples/data/iiif/fire.json">Load Test 6</button>
<button class="testFixture" data-json="https://iiif-commons.github.io/iiif-av-component/examples/data/iiif/mahler-symphony.json">Load Test 7</button>
<button class="testFixture" data-json="https://iiif-commons.github.io/iiif-av-component/examples/data/iiif/lunchroom-manners.json">Load Test 8</button>
<button class="testFixture" data-json="https://britishlibrary.github.io/iiif-av-samples/symphony/manifest.json">Load Test 9</button>
<button class="testFixture" data-json="https://viewdir.github.io/iiif-av-component/examples/data/iiif/02.json">Load Test 10</button>
<button class="testFixture" data-json="https://viewdir.github.io/iiif-av-component/examples/data/iiif/16.json">Load Test 11</button>
<button class="testFixture" data-json="https://iiif-commons.github.io/iiif-av-component/examples/data/iiif/02.json">Load Test 10</button>
<button class="testFixture" data-json="https://iiif-commons.github.io/iiif-av-component/examples/data/iiif/16.json">Load Test 11</button>
</div>
<input type="text" name="manifestInput" id="manifestInput"/>
<button id="parseManifestButton">Parse Manifest</button>
Expand Down
5 changes: 2 additions & 3 deletions examples/js/base-component.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
// base-component v1.1.0 https://github.com/viewdir/base-component#readme
// base-component v1.1.2 https://github.com/iiif-commons/base-component#readme
(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.baseComponent = 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){
(function (global){
///<reference path="../node_modules/typescript/lib/lib.es6.d.ts"/>

var _Components;
(function (_Components) {
var BaseComponent = (function () {
var BaseComponent = /** @class */ (function () {
function BaseComponent(options) {
this.options = options;
this.options.data = $.extend(this.data(), options.data);
Expand Down
10 changes: 5 additions & 5 deletions examples/js/iiif-av-component.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// iiif-av-component v0.0.1 https://github.com/viewdir/iiif-av-component#readme
// iiif-av-component v0.0.1 https://github.com/iiif-commons/iiif-av-component#readme
(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.iiifAvComponent = 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){
(function (global){
///<reference path="../node_modules/typescript/lib/lib.es6.d.ts"/>
Expand All @@ -15,7 +15,7 @@ var __extends = (this && this.__extends) || (function () {
})();
var IIIFComponents;
(function (IIIFComponents) {
var AVComponent = (function (_super) {
var AVComponent = /** @class */ (function (_super) {
__extends(AVComponent, _super);
function AVComponent(options) {
var _this = _super.call(this, options) || this;
Expand Down Expand Up @@ -192,7 +192,7 @@ var IIIFComponents;
(function (IIIFComponents) {
var AVComponent;
(function (AVComponent) {
var Events = (function () {
var Events = /** @class */ (function () {
function Events() {
}
Events.LOG = 'log';
Expand All @@ -212,7 +212,7 @@ var IIIFComponents;

var IIIFComponents;
(function (IIIFComponents) {
var CanvasInstance = (function () {
var CanvasInstance = /** @class */ (function () {
function CanvasInstance(canvas) {
this._highPriorityFrequency = 25;
this._lowPriorityFrequency = 100;
Expand Down Expand Up @@ -607,7 +607,7 @@ var IIIFComponents;
(function (IIIFComponents) {
var AVComponentUtils;
(function (AVComponentUtils) {
var Utils = (function () {
var Utils = /** @class */ (function () {
function Utils() {
}
Utils.formatTime = function (aNumber) {
Expand Down
431 changes: 273 additions & 158 deletions examples/js/manifold.bundle.js

Large diffs are not rendered by default.

5 changes: 1 addition & 4 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,8 @@ const tasks = require('gulp-tasks');

tasks.init({
metadata: metadata,
// libs that MUST be included in a consuming app for this component to work
libs: [
'node_modules/base-component/dist/base-component.js',
'node_modules/manifold/dist/manifold.bundle.js'
],
// libs that MAY be included in a consuming app but are used here for example purposes
examples: []
]
});
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@
"version": "0.0.1",
"description": "",
"main": "index.js",
"scripts": {

},
"types": "./dist/iiif-av-component.d.ts",
"scripts": {},
"repository": {
"type": "git",
"url": "git+https://github.com/iiif-commons/iiif-av-component.git"
Expand All @@ -17,7 +16,7 @@
},
"homepage": "https://github.com/iiif-commons/iiif-av-component#readme",
"devDependencies": {
"base-component": "iiif-commons/base-component#v1.1.0",
"base-component": "iiif-commons/base-component#v1.1.2",
"exjs": "BSick7/exjs#0.5.0",
"gulp": "^3.9.1",
"gulp-tasks": "iiif-commons/gulp-tasks#v1.0.7",
Expand All @@ -26,6 +25,7 @@
"manifold": "iiif-commons/manifold#v1.2.13"
},
"dependencies": {
"@types/jquery": "^3.2.16",
"@types/jqueryui": "^1.11.36"
}
}
4 changes: 3 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
"types": [
"manifesto.js",
"manifold",
"base-component"
"base-component",
"jquery",
"jqueryui"
]
},
"files": [
Expand Down

0 comments on commit 5ae7425

Please sign in to comment.