Removed GopherJS, basic frontend completed, need backend changes for

torrent storage
This commit is contained in:
2017-11-30 18:12:11 -05:00
parent 67fdef16b1
commit e98ad2cc88
69321 changed files with 5498914 additions and 337 deletions

View File

@@ -0,0 +1,12 @@
var has = Object.prototype.hasOwnProperty;
module.exports = function assign(target, source) {
if (Object.assign) {
return Object.assign(target, source);
}
for (var key in source) {
if (has.call(source, key)) {
target[key] = source[key];
}
}
return target;
};

View File

@@ -0,0 +1,3 @@
var $isNaN = Number.isNaN || function (a) { return a !== a; };
module.exports = Number.isFinite || function (x) { return typeof x === 'number' && !$isNaN(x) && x !== Infinity && x !== -Infinity; };

View File

@@ -0,0 +1,3 @@
module.exports = Number.isNaN || function isNaN(a) {
return a !== a;
};

View File

@@ -0,0 +1,3 @@
module.exports = function isPrimitive(value) {
return value === null || (typeof value !== 'function' && typeof value !== 'object');
};

View File

@@ -0,0 +1,4 @@
module.exports = function mod(number, modulo) {
var remain = number % modulo;
return Math.floor(remain >= 0 ? remain : remain + modulo);
};

View File

@@ -0,0 +1,3 @@
module.exports = function sign(number) {
return number >= 0 ? 1 : -1;
};