1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

First separation commit.

Added LICENSE, README.md, CONTRIBUTORS.md
This commit is contained in:
Erwin de Haan 2019-01-09 12:36:54 +01:00
parent 09513af31b
commit 4678528d00
657 changed files with 422 additions and 0 deletions

View file

@ -0,0 +1,12 @@
Array.prototype.filter || (Array.prototype.filter = function(fun) {
"use strict";
if (null == this) throw new TypeError;
var t = Object(this),
len = t.length >>> 0;
if ("function" != typeof fun) throw new TypeError;
for (var res = [], thisp = arguments[1], i = 0; i < len; i++)
if (i in t) {
var val = t[i];
fun.call(thisp, val, i, t) && res.push(val)
} return res
});

View file

@ -0,0 +1,10 @@
Function.prototype.bind || (Function.prototype.bind = function(oThis) {
if ("function" != typeof this) throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");
var aArgs = Array.prototype.slice.call(arguments, 1),
fToBind = this,
fNOP = function() {},
fBound = function() {
return fToBind.apply(this instanceof fNOP ? this : oThis, aArgs.concat(Array.prototype.slice.call(arguments)))
};
return this.prototype && (fNOP.prototype = this.prototype), fBound.prototype = new fNOP, fBound
});

View file

@ -0,0 +1,12 @@
"function" != typeof Object.assign && function() {
Object.assign = function(target) {
"use strict";
if (void 0 === target || null === target) throw new TypeError("Cannot convert undefined or null to object");
for (var output = Object(target), index = 1; index < arguments.length; index++) {
var source = arguments[index];
if (void 0 !== source && null !== source)
for (var nextKey in source) source.hasOwnProperty(nextKey) && (output[nextKey] = source[nextKey])
}
return output
}
}();

View file

@ -0,0 +1,13 @@
! function() {
for (var lastTime = 0, vendors = ["ms", "moz", "webkit", "o"], x = 0; x < vendors.length && !window.requestAnimationFrame; ++x) window.requestAnimationFrame = window[vendors[x] + "RequestAnimationFrame"], window.cancelAnimationFrame = window[vendors[x] + "CancelAnimationFrame"] || window[vendors[x] + "CancelRequestAnimationFrame"];
window.requestAnimationFrame || (window.requestAnimationFrame = function(callback, element) {
var currTime = (new Date).getTime(),
timeToCall = Math.max(0, 16 - (currTime - lastTime)),
id = window.setTimeout(function() {
callback(currTime + timeToCall)
}, timeToCall);
return lastTime = currTime + timeToCall, id
}), window.cancelAnimationFrame || (window.cancelAnimationFrame = function(id) {
clearTimeout(id)
})
}();