Version 5.1 - All the GraphQL #32
@ -609,7 +609,7 @@ a:hover, a:active {
|
|||||||
z-index: 6;
|
z-index: 6;
|
||||||
}
|
}
|
||||||
|
|
||||||
.big-check {
|
.big-check, .mal-check {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
633
public/js/scripts-authed.min.js
vendored
633
public/js/scripts-authed.min.js
vendored
@ -1,23 +1,612 @@
|
|||||||
var e=e||{};e.scope={};e.ASSUME_ES5=!1;e.ASSUME_NO_NATIVE_MAP=!1;e.ASSUME_NO_NATIVE_SET=!1;e.defineProperty=e.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(c,f,k){c!=Array.prototype&&c!=Object.prototype&&(c[f]=k.value)};e.getGlobal=function(c){return"undefined"!=typeof window&&window===c?c:"undefined"!=typeof global&&null!=global?global:c};e.global=e.getGlobal(this);e.SYMBOL_PREFIX="jscomp_symbol_";
|
(function () {
|
||||||
e.initSymbol=function(){e.initSymbol=function(){};e.global.Symbol||(e.global.Symbol=e.Symbol)};e.Symbol=function(){var c=0;return function(f){return e.SYMBOL_PREFIX+(f||"")+c++}}();e.initSymbolIterator=function(){e.initSymbol();var c=e.global.Symbol.iterator;c||(c=e.global.Symbol.iterator=e.global.Symbol("iterator"));"function"!=typeof Array.prototype[c]&&e.defineProperty(Array.prototype,c,{configurable:!0,writable:!0,value:function(){return e.arrayIterator(this)}});e.initSymbolIterator=function(){}};
|
'use strict';
|
||||||
e.arrayIterator=function(c){var f=0;return e.iteratorPrototype(function(){return f<c.length?{done:!1,value:c[f++]}:{done:!0}})};e.iteratorPrototype=function(c){e.initSymbolIterator();c={next:c};c[e.global.Symbol.iterator]=function(){return this};return c};
|
|
||||||
e.iteratorFromArray=function(c,f){e.initSymbolIterator();c instanceof String&&(c+="");var k=0,g={next:function(){if(k<c.length){var m=k++;return{value:f(m,c[m]),done:!1}}g.next=function(){return{done:!0,value:void 0}};return g.next()}};g[Symbol.iterator]=function(){return g};return g};
|
// -------------------------------------------------------------------------
|
||||||
e.polyfill=function(c,f){if(f){var k=e.global;c=c.split(".");for(var g=0;g<c.length-1;g++){var m=c[g];m in k||(k[m]={});k=k[m]}c=c[c.length-1];g=k[c];f=f(g);f!=g&&null!=f&&e.defineProperty(k,c,{configurable:!0,writable:!0,value:f})}};e.polyfill("Array.prototype.keys",function(c){return c?c:function(){return e.iteratorFromArray(this,function(c){return c})}},"es6","es3");e.owns=function(c,f){return Object.prototype.hasOwnProperty.call(c,f)};
|
// ! Base
|
||||||
e.assign="function"==typeof Object.assign?Object.assign:function(c,f){for(var k=1;k<arguments.length;k++){var g=arguments[k];if(g)for(var m in g)e.owns(g,m)&&(c[m]=g[m])}return c};e.polyfill("Object.assign",function(c){return c||e.assign},"es6","es3");
|
// -------------------------------------------------------------------------
|
||||||
(function(){function c(a){b.$(".cssload-loader")[0].removeAttribute("hidden");b.get(b.url("/manga/search"),{query:a},function(a){a=JSON.parse(a);b.$(".cssload-loader")[0].setAttribute("hidden","hidden");b.$("#series_list")[0].innerHTML=n(a.data)})}function f(a){b.$(".cssload-loader")[0].removeAttribute("hidden");b.get(b.url("/anime-collection/search"),{query:a},function(a){a=JSON.parse(a);b.$(".cssload-loader")[0].setAttribute("hidden","hidden");b.$("#series_list")[0].innerHTML=p(a.data)})}function k(a,
|
|
||||||
b,d){b.match(/^([\w\-]+)$/)||b.split(" ").forEach(function(b){k(a,b,d)});a.addEventListener(b,d,!1)}function g(a,h,d,c){k(a,d,function(d){b.$(h,a).forEach(function(a){d.target==a&&(c.call(a,d),d.stopPropagation())})})}function m(a){var b=[];Object.keys(a).forEach(function(d){var h=a[d].toString();d=encodeURIComponent(d);h=encodeURIComponent(h);b.push(d+"\x3d"+h)});return b.join("\x26")}function p(a){var b=[];a.forEach(function(a){var d=a.attributes,h=d.titles.reduce(function(a,b){return a+(b+"\x3cbr /\x3e")},
|
const matches = (elm, selector) => {
|
||||||
[]);b.push('\n\t\t\t\x3carticle class\x3d"media search"\x3e\n\t\t\t\t\x3cdiv class\x3d"name"\x3e\n\t\t\t\t\t\x3cinput type\x3d"radio" class\x3d"big-check" id\x3d"'+d.slug+'" name\x3d"id" value\x3d"'+a.id+'" /\x3e\n\t\t\t\t\t\x3clabel for\x3d"'+d.slug+'"\x3e\n\t\t\t\t\t\t\x3cimg src\x3d"/public/images/anime/'+a.id+'.jpg" alt\x3d"" width\x3d"220" /\x3e\n\t\t\t\t\t\t\x3cspan class\x3d"name"\x3e\n\t\t\t\t\t\t\t'+d.canonicalTitle+"\x3cbr /\x3e\n\t\t\t\t\t\t\t\x3csmall\x3e"+h+'\x3c/small\x3e\n\t\t\t\t\t\t\x3c/span\x3e\n\t\t\t\t\t\x3c/label\x3e\n\t\t\t\t\x3c/div\x3e\n\t\t\t\t\x3cdiv class\x3d"table"\x3e\n\t\t\t\t\t\x3cdiv class\x3d"row"\x3e\n\t\t\t\t\t\t\x3cspan class\x3d"edit"\x3e\n\t\t\t\t\t\t\t\x3ca class\x3d"bracketed" href\x3d"/anime/details/'+
|
let matches = (elm.document || elm.ownerDocument).querySelectorAll(selector),
|
||||||
d.slug+'"\x3eInfo Page\x3c/a\x3e\n\t\t\t\t\t\t\x3c/span\x3e\n\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\x3c/div\x3e\n\t\t\t\x3c/article\x3e\n\t\t')});return b.join("")}function n(a){var b=[];a.forEach(function(a){var d=a.attributes,h=d.titles.reduce(function(a,b){return a+(b+"\x3cbr /\x3e")},[]);b.push('\n\t\t\t\x3carticle class\x3d"media search"\x3e\n\t\t\t\t\x3cdiv class\x3d"name"\x3e\n\t\t\t\t\t\x3cinput type\x3d"radio" class\x3d"big-check" id\x3d"'+d.slug+'" name\x3d"id" value\x3d"'+a.id+'" /\x3e\n\t\t\t\t\t\x3clabel for\x3d"'+
|
i = matches.length;
|
||||||
d.slug+'"\x3e\n\t\t\t\t\t\t\x3cimg src\x3d"/public/images/manga/'+a.id+'.jpg" alt\x3d"" width\x3d"220" /\x3e\n\t\t\t\t\t\t\x3cspan class\x3d"name"\x3e\n\t\t\t\t\t\t\t'+d.canonicalTitle+"\x3cbr /\x3e\n\t\t\t\t\t\t\t\x3csmall\x3e"+h+'\x3c/small\x3e\n\t\t\t\t\t\t\x3c/span\x3e\n\t\t\t\t\t\x3c/label\x3e\n\t\t\t\t\x3c/div\x3e\n\t\t\t\t\x3cdiv class\x3d"table"\x3e\n\t\t\t\t\t\x3cdiv class\x3d"row"\x3e\n\t\t\t\t\t\t\x3cspan class\x3d"edit"\x3e\n\t\t\t\t\t\t\t\x3ca class\x3d"bracketed" href\x3d"/manga/details/'+
|
while (--i >= 0 && matches.item(i) !== elm) {} return i > -1;
|
||||||
d.slug+'"\x3eInfo Page\x3c/a\x3e\n\t\t\t\t\t\t\x3c/span\x3e\n\t\t\t\t\t\x3c/div\x3e\n\t\t\t\t\x3c/div\x3e\n\t\t\t\x3c/article\x3e\n\t\t')});return b.join("")}var b={noop:function(){},$:function(a,b){b=void 0===b?null:b;if("string"!==typeof a)return a;b=null!==b&&1===b.nodeType?b:document;var d=[];a.match(/^#([\w]+$)/)?d.push(document.getElementById(a.split("#")[1])):d=[].slice.apply(b.querySelectorAll(a));return d},hasElement:function(a){return 0<b.$(a).length},scrollToTop:function(){window.scroll(0,
|
};
|
||||||
0)},hide:function(a){a.setAttribute("hidden","hidden")},show:function(a){a.removeAttribute("hidden")},showMessage:function(a,h){a="\x3cdiv class\x3d'message "+a+"'\x3e\n\t\t\t\t\x3cspan class\x3d'icon'\x3e\x3c/span\x3e\n\t\t\t\t"+h+"\n\t\t\t\t\x3cspan class\x3d'close'\x3e\x3c/span\x3e\n\t\t\t\x3c/div\x3e";h=b.$(".message");void 0!==h[0]&&h[0].remove();b.$("header")[0].insertAdjacentHTML("beforeend",a)},closestParent:function(a,b){if(void 0!==Element.prototype.closest)return a.closest(b);for(;a!==
|
|
||||||
document.documentElement;){for(var d=a,c=(d.document||d.ownerDocument).querySelectorAll(b),h=c.length;0<=--h&&c.item(h)!==d;);if(-1<h)return a;a=a.parentElement}return null},url:function(a){var b="//"+document.location.host;return b+="/"===a.charAt(0)?a:"/"+a},throttle:function(b,c,d){var a=!1;return function(h){for(var f=[],l=0;l<arguments.length;++l)f[l-0]=arguments[l];l=d||this;a||(c.apply(l,f),a=!0,setTimeout(function(){a=!1},b))}},on:function(a,c,d,f){void 0===f?(f=d,b.$(a).forEach(function(a){k(a,
|
const AnimeClient = {
|
||||||
c,f)})):b.$(a).forEach(function(a){g(a,d,c,f)})},ajax:function(a,c){c=Object.assign({},{data:{},type:"GET",dataType:"",success:b.noop,mimeType:"application/x-www-form-urlencoded",error:b.noop},c);var d=new XMLHttpRequest,h=String(c.type).toUpperCase();"GET"===h&&(a+=a.match(/\?/)?m(c.data):"?"+m(c.data));d.open(h,a);d.onreadystatechange=function(){if(4===d.readyState){var a="json"===d.responseType?JSON.parse(d.responseText):d.responseText;299<d.status?c.error.call(null,d.status,a,d.response):c.success.call(null,
|
/**
|
||||||
a,d.status)}};"json"===c.dataType?(c.data=JSON.stringify(c.data),c.mimeType="application/json"):c.data=m(c.data);d.setRequestHeader("Content-Type",c.mimeType);switch(h){case "GET":d.send(null);break;default:d.send(c.data)}},get:function(a,c,d){d=void 0===d?null:d;null===d&&(d=c,c={});return b.ajax(a,{data:c,success:d})}};b.on("header","click",".message",function(a){b.hide(a.target)});b.on("form.js-delete","submit",function(a){!1===confirm("Are you ABSOLUTELY SURE you want to delete this item?")&&
|
* Placeholder function
|
||||||
(a.preventDefault(),a.stopPropagation())});b.on(".js-clear-cache","click",function(){b.get("/cache_purge",function(){b.showMessage("success","Successfully purged api cache")})});"serviceWorker"in navigator&&navigator.serviceWorker.register("/sw.js").then(function(a){console.log("Service worker registered",a.scope)}).catch(function(a){console.error("Failed to register service worker",a)});if(b.hasElement(".anime #search"))b.on("#search","keyup",b.throttle(250,function(a){a=encodeURIComponent(a.target.value);
|
*/
|
||||||
""!==a&&f(a)}));b.on("body.anime.list","click",".plus_one",function(a){var c=b.closestParent(a.target,"article"),d=parseInt(b.$(".completed_number",c)[0].textContent,10)||0;a=parseInt(b.$(".total_number",c)[0].textContent,10);var f=b.$(".name a",c)[0].textContent,l={id:c.dataset.kitsuId,mal_id:c.dataset.malId,data:{progress:d+1}};if(isNaN(d)||0===d)l.data.status="current";isNaN(d)||d+1!==a||(l.data.status="completed");b.show(b.$("#loading-shadow")[0]);b.ajax(b.url("/anime/increment"),{data:l,dataType:"json",
|
noop: () => {},
|
||||||
type:"POST",success:function(a){a=JSON.parse(a);a.errors?(b.hide(b.$("#loading-shadow")[0]),b.showMessage("error","Failed to update "+f+". ")):("completed"===a.data.attributes.status&&b.hide(c),b.hide(b.$("#loading-shadow")[0]),b.showMessage("success","Successfully updated "+f),b.$(".completed_number",c)[0].textContent=++d);b.scrollToTop()},error:function(){b.hide(b.$("#loading-shadow")[0]);b.showMessage("error","Failed to update "+f+". ");b.scrollToTop()}})});if(b.hasElement(".manga #search"))b.on("#search",
|
/**
|
||||||
"keyup",b.throttle(250,function(a){a=encodeURIComponent(a.target.value);""!==a&&c(a)}));b.on(".manga.list","click",".edit_buttons button",function(a){var c=a.target,d=b.closestParent(a.target,"article"),f=c.classList.contains("plus_one_chapter")?"chapter":"volume",l=parseInt(b.$("."+f+"s_read",d)[0].textContent,10)||0;a=parseInt(b.$("."+f+"_count",d)[0].textContent,10);var k=b.$(".name",d)[0].textContent;isNaN(l)&&(l=0);var g={id:d.dataset.kitsuId,mal_id:d.dataset.malId,data:{progress:l}};if(isNaN(l)||
|
* DOM selector
|
||||||
0===l)g.data.status="current";isNaN(l)||l+1!==a||(g.data.status="completed");g.data.progress=++l;b.show(b.$("#loading-shadow")[0]);b.ajax(b.url("/manga/update"),{data:g,dataType:"json",type:"POST",mimeType:"application/json",success:function(){"completed"===g.data.status&&b.hide(d);b.hide(b.$("#loading-shadow")[0]);b.$("."+f+"s_read",d)[0].textContent=l;b.showMessage("success","Successfully updated "+k);b.scrollToTop()},error:function(){b.hide(b.$("#loading-shadow")[0]);b.showMessage("error","Failed to update "+
|
*
|
||||||
k);b.scrollToTop()}})})})();
|
* @param {string} selector - The dom selector string
|
||||||
|
* @param {object} [context]
|
||||||
|
* @return {[HTMLElement]} - array of dom elements
|
||||||
|
*/
|
||||||
|
$(selector, context = null) {
|
||||||
|
if (typeof selector !== 'string') {
|
||||||
|
return selector;
|
||||||
|
}
|
||||||
|
|
||||||
|
context = (context !== null && context.nodeType === 1)
|
||||||
|
? context
|
||||||
|
: document;
|
||||||
|
|
||||||
|
let elements = [];
|
||||||
|
if (selector.match(/^#([\w]+$)/)) {
|
||||||
|
elements.push(document.getElementById(selector.split('#')[1]));
|
||||||
|
} else {
|
||||||
|
elements = [].slice.apply(context.querySelectorAll(selector));
|
||||||
|
}
|
||||||
|
|
||||||
|
return elements;
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* Does the selector exist on the current page?
|
||||||
|
*
|
||||||
|
* @param {string} selector
|
||||||
|
* @returns {boolean}
|
||||||
|
*/
|
||||||
|
hasElement (selector) {
|
||||||
|
return AnimeClient.$(selector).length > 0;
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* Scroll to the top of the Page
|
||||||
|
*
|
||||||
|
* @return {void}
|
||||||
|
*/
|
||||||
|
scrollToTop () {
|
||||||
|
window.scroll(0,0);
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* Hide the selected element
|
||||||
|
*
|
||||||
|
* @param {string|Element} sel - the selector of the element to hide
|
||||||
|
* @return {void}
|
||||||
|
*/
|
||||||
|
hide (sel) {
|
||||||
|
sel.setAttribute('hidden', 'hidden');
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* UnHide the selected element
|
||||||
|
*
|
||||||
|
* @param {string|Element} sel - the selector of the element to hide
|
||||||
|
* @return {void}
|
||||||
|
*/
|
||||||
|
show (sel) {
|
||||||
|
sel.removeAttribute('hidden');
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* Display a message box
|
||||||
|
*
|
||||||
|
* @param {string} type - message type: info, error, success
|
||||||
|
* @param {string} message - the message itself
|
||||||
|
* @return {void}
|
||||||
|
*/
|
||||||
|
showMessage (type, message) {
|
||||||
|
let template =
|
||||||
|
`<div class='message ${type}'>
|
||||||
|
<span class='icon'></span>
|
||||||
|
${message}
|
||||||
|
<span class='close'></span>
|
||||||
|
</div>`;
|
||||||
|
|
||||||
|
let sel = AnimeClient.$('.message');
|
||||||
|
if (sel[0] !== undefined) {
|
||||||
|
sel[0].remove();
|
||||||
|
}
|
||||||
|
|
||||||
|
AnimeClient.$('header')[0].insertAdjacentHTML('beforeend', template);
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* Finds the closest parent element matching the passed selector
|
||||||
|
*
|
||||||
|
* @param {HTMLElement} current - the current HTMLElement
|
||||||
|
* @param {string} parentSelector - selector for the parent element
|
||||||
|
* @return {HTMLElement|null} - the parent element
|
||||||
|
*/
|
||||||
|
closestParent (current, parentSelector) {
|
||||||
|
if (Element.prototype.closest !== undefined) {
|
||||||
|
return current.closest(parentSelector);
|
||||||
|
}
|
||||||
|
|
||||||
|
while (current !== document.documentElement) {
|
||||||
|
if (matches(current, parentSelector)) {
|
||||||
|
return current;
|
||||||
|
}
|
||||||
|
|
||||||
|
current = current.parentElement;
|
||||||
|
}
|
||||||
|
|
||||||
|
return null;
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* Generate a full url from a relative path
|
||||||
|
*
|
||||||
|
* @param {string} path - url path
|
||||||
|
* @return {string} - full url
|
||||||
|
*/
|
||||||
|
url (path) {
|
||||||
|
let uri = `//${document.location.host}`;
|
||||||
|
uri += (path.charAt(0) === '/') ? path : `/${path}`;
|
||||||
|
|
||||||
|
return uri;
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* Throttle execution of a function
|
||||||
|
*
|
||||||
|
* @see https://remysharp.com/2010/07/21/throttling-function-calls
|
||||||
|
* @see https://jsfiddle.net/jonathansampson/m7G64/
|
||||||
|
* @param {Number} interval - the minimum throttle time in ms
|
||||||
|
* @param {Function} fn - the function to throttle
|
||||||
|
* @param {Object} [scope] - the 'this' object for the function
|
||||||
|
* @return {Function}
|
||||||
|
*/
|
||||||
|
throttle (interval, fn, scope) {
|
||||||
|
let wait = false;
|
||||||
|
return function (...args) {
|
||||||
|
const context = scope || this;
|
||||||
|
|
||||||
|
if ( ! wait) {
|
||||||
|
fn.apply(context, args);
|
||||||
|
wait = true;
|
||||||
|
setTimeout(function() {
|
||||||
|
wait = false;
|
||||||
|
}, interval);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
// -------------------------------------------------------------------------
|
||||||
|
// ! Events
|
||||||
|
// -------------------------------------------------------------------------
|
||||||
|
|
||||||
|
function addEvent(sel, event, listener) {
|
||||||
|
// Recurse!
|
||||||
|
if (! event.match(/^([\w\-]+)$/)) {
|
||||||
|
event.split(' ').forEach((evt) => {
|
||||||
|
addEvent(sel, evt, listener);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
sel.addEventListener(event, listener, false);
|
||||||
|
}
|
||||||
|
|
||||||
|
function delegateEvent(sel, target, event, listener) {
|
||||||
|
// Attach the listener to the parent
|
||||||
|
addEvent(sel, event, (e) => {
|
||||||
|
// Get live version of the target selector
|
||||||
|
AnimeClient.$(target, sel).forEach((element) => {
|
||||||
|
if(e.target == element) {
|
||||||
|
listener.call(element, e);
|
||||||
|
e.stopPropagation();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Add an event listener
|
||||||
|
*
|
||||||
|
* @param {string|HTMLElement} sel - the parent selector to bind to
|
||||||
|
* @param {string} event - event name(s) to bind
|
||||||
|
* @param {string|HTMLElement|function} target - the element to directly bind the event to
|
||||||
|
* @param {function} [listener] - event listener callback
|
||||||
|
* @return {void}
|
||||||
|
*/
|
||||||
|
AnimeClient.on = (sel, event, target, listener) => {
|
||||||
|
if (listener === undefined) {
|
||||||
|
listener = target;
|
||||||
|
AnimeClient.$(sel).forEach((el) => {
|
||||||
|
addEvent(el, event, listener);
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
AnimeClient.$(sel).forEach((el) => {
|
||||||
|
delegateEvent(el, target, event, listener);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
// -------------------------------------------------------------------------
|
||||||
|
// ! Ajax
|
||||||
|
// -------------------------------------------------------------------------
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Url encoding for non-get requests
|
||||||
|
*
|
||||||
|
* @param data
|
||||||
|
* @returns {string}
|
||||||
|
* @private
|
||||||
|
*/
|
||||||
|
function ajaxSerialize(data) {
|
||||||
|
let pairs = [];
|
||||||
|
|
||||||
|
Object.keys(data).forEach((name) => {
|
||||||
|
let value = data[name].toString();
|
||||||
|
|
||||||
|
name = encodeURIComponent(name);
|
||||||
|
value = encodeURIComponent(value);
|
||||||
|
|
||||||
|
pairs.push(`${name}=${value}`);
|
||||||
|
});
|
||||||
|
|
||||||
|
return pairs.join('&');
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Make an ajax request
|
||||||
|
*
|
||||||
|
* Config:{
|
||||||
|
* data: // data to send with the request
|
||||||
|
* type: // http verb of the request, defaults to GET
|
||||||
|
* success: // success callback
|
||||||
|
* error: // error callback
|
||||||
|
* }
|
||||||
|
*
|
||||||
|
* @param {string} url - the url to request
|
||||||
|
* @param {Object} config - the configuration object
|
||||||
|
* @return {void}
|
||||||
|
*/
|
||||||
|
AnimeClient.ajax = (url, config) => {
|
||||||
|
// Set some sane defaults
|
||||||
|
const defaultConfig = {
|
||||||
|
data: {},
|
||||||
|
type: 'GET',
|
||||||
|
dataType: '',
|
||||||
|
success: AnimeClient.noop,
|
||||||
|
mimeType: 'application/x-www-form-urlencoded',
|
||||||
|
error: AnimeClient.noop
|
||||||
|
};
|
||||||
|
|
||||||
|
config = {
|
||||||
|
...defaultConfig,
|
||||||
|
...config,
|
||||||
|
};
|
||||||
|
|
||||||
|
let request = new XMLHttpRequest();
|
||||||
|
let method = String(config.type).toUpperCase();
|
||||||
|
|
||||||
|
if (method === 'GET') {
|
||||||
|
url += (url.match(/\?/))
|
||||||
|
? ajaxSerialize(config.data)
|
||||||
|
: `?${ajaxSerialize(config.data)}`;
|
||||||
|
}
|
||||||
|
|
||||||
|
request.open(method, url);
|
||||||
|
|
||||||
|
request.onreadystatechange = () => {
|
||||||
|
if (request.readyState === 4) {
|
||||||
|
let responseText = '';
|
||||||
|
|
||||||
|
if (request.responseType === 'json') {
|
||||||
|
responseText = JSON.parse(request.responseText);
|
||||||
|
} else {
|
||||||
|
responseText = request.responseText;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (request.status > 299) {
|
||||||
|
config.error.call(null, request.status, responseText, request.response);
|
||||||
|
} else {
|
||||||
|
config.success.call(null, responseText, request.status);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
if (config.dataType === 'json') {
|
||||||
|
config.data = JSON.stringify(config.data);
|
||||||
|
config.mimeType = 'application/json';
|
||||||
|
} else {
|
||||||
|
config.data = ajaxSerialize(config.data);
|
||||||
|
}
|
||||||
|
|
||||||
|
request.setRequestHeader('Content-Type', config.mimeType);
|
||||||
|
|
||||||
|
switch (method) {
|
||||||
|
case 'GET':
|
||||||
|
request.send(null);
|
||||||
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
request.send(config.data);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Do a get request
|
||||||
|
*
|
||||||
|
* @param {string} url
|
||||||
|
* @param {object|function} data
|
||||||
|
* @param {function} [callback]
|
||||||
|
*/
|
||||||
|
AnimeClient.get = (url, data, callback = null) => {
|
||||||
|
if (callback === null) {
|
||||||
|
callback = data;
|
||||||
|
data = {};
|
||||||
|
}
|
||||||
|
|
||||||
|
return AnimeClient.ajax(url, {
|
||||||
|
data,
|
||||||
|
success: callback
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Event handlers
|
||||||
|
*/
|
||||||
|
// Close event for messages
|
||||||
|
AnimeClient.on('header', 'click', '.message', (e) => {
|
||||||
|
AnimeClient.hide(e.target);
|
||||||
|
});
|
||||||
|
|
||||||
|
// Confirm deleting of list or library items
|
||||||
|
AnimeClient.on('form.js-delete', 'submit', (event) => {
|
||||||
|
const proceed = confirm('Are you ABSOLUTELY SURE you want to delete this item?');
|
||||||
|
|
||||||
|
if (proceed === false) {
|
||||||
|
event.preventDefault();
|
||||||
|
event.stopPropagation();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
// Clear the api cache
|
||||||
|
AnimeClient.on('.js-clear-cache', 'click', () => {
|
||||||
|
AnimeClient.get('/cache_purge', () => {
|
||||||
|
AnimeClient.showMessage('success', 'Successfully purged api cache');
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
if ('serviceWorker' in navigator) {
|
||||||
|
navigator.serviceWorker.register('/sw.js').then(reg => {
|
||||||
|
console.log('Service worker registered', reg.scope);
|
||||||
|
}).catch(error => {
|
||||||
|
console.error('Failed to register service worker', error);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function renderAnimeSearchResults (data) {
|
||||||
|
const results = [];
|
||||||
|
|
||||||
|
data.forEach(x => {
|
||||||
|
const item = x.attributes;
|
||||||
|
const titles = item.titles.reduce((prev, current) => {
|
||||||
|
return prev + `${current}<br />`;
|
||||||
|
}, []);
|
||||||
|
|
||||||
|
results.push(`
|
||||||
|
<article class="media search">
|
||||||
|
<div class="name">
|
||||||
|
<input type="radio" class="big-check" id="${item.slug}" name="id" value="${x.id}" />
|
||||||
|
<label for="${item.slug}">
|
||||||
|
<img src="/public/images/anime/${x.id}.jpg" alt="" width="220" />
|
||||||
|
<span class="name">
|
||||||
|
${item.canonicalTitle}<br />
|
||||||
|
<small>${titles}</small>
|
||||||
|
</span>
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
<div class="table">
|
||||||
|
<div class="row">
|
||||||
|
<span class="edit">
|
||||||
|
<a class="bracketed" href="/anime/details/${item.slug}">Info Page</a>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</article>
|
||||||
|
`);
|
||||||
|
});
|
||||||
|
|
||||||
|
return results.join('');
|
||||||
|
}
|
||||||
|
|
||||||
|
function renderMangaSearchResults (data) {
|
||||||
|
const results = [];
|
||||||
|
|
||||||
|
data.forEach(x => {
|
||||||
|
const item = x.attributes;
|
||||||
|
const titles = item.titles.reduce((prev, current) => {
|
||||||
|
return prev + `${current}<br />`;
|
||||||
|
}, []);
|
||||||
|
|
||||||
|
results.push(`
|
||||||
|
<article class="media search">
|
||||||
|
<div class="name">
|
||||||
|
<input type="radio" class="big-check" id="${item.slug}" name="id" value="${x.id}" />
|
||||||
|
<label for="${item.slug}">
|
||||||
|
<img src="/public/images/manga/${x.id}.jpg" alt="" width="220" />
|
||||||
|
<span class="name">
|
||||||
|
${item.canonicalTitle}<br />
|
||||||
|
<small>${titles}</small>
|
||||||
|
</span>
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
<div class="table">
|
||||||
|
<div class="row">
|
||||||
|
<span class="edit">
|
||||||
|
<a class="bracketed" href="/manga/details/${item.slug}">Info Page</a>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</article>
|
||||||
|
`);
|
||||||
|
});
|
||||||
|
|
||||||
|
return results.join('');
|
||||||
|
}
|
||||||
|
|
||||||
|
const search = (query) => {
|
||||||
|
// Show the loader
|
||||||
|
AnimeClient.$('.cssload-loader')[ 0 ].removeAttribute('hidden');
|
||||||
|
|
||||||
|
// Do the api search
|
||||||
|
AnimeClient.get(AnimeClient.url('/anime-collection/search'), { query }, (searchResults, status) => {
|
||||||
|
searchResults = JSON.parse(searchResults);
|
||||||
|
|
||||||
|
// Hide the loader
|
||||||
|
AnimeClient.$('.cssload-loader')[ 0 ].setAttribute('hidden', 'hidden');
|
||||||
|
|
||||||
|
// Show the results
|
||||||
|
AnimeClient.$('#series_list')[ 0 ].innerHTML = renderAnimeSearchResults(searchResults.data);
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
if (AnimeClient.hasElement('.anime #search')) {
|
||||||
|
AnimeClient.on('#search', 'keyup', AnimeClient.throttle(250, (e) => {
|
||||||
|
const query = encodeURIComponent(e.target.value);
|
||||||
|
if (query === '') {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
search(query);
|
||||||
|
}));
|
||||||
|
}
|
||||||
|
|
||||||
|
// Action to increment episode count
|
||||||
|
AnimeClient.on('body.anime.list', 'click', '.plus_one', (e) => {
|
||||||
|
let parentSel = AnimeClient.closestParent(e.target, 'article');
|
||||||
|
let watchedCount = parseInt(AnimeClient.$('.completed_number', parentSel)[ 0 ].textContent, 10) || 0;
|
||||||
|
let totalCount = parseInt(AnimeClient.$('.total_number', parentSel)[ 0 ].textContent, 10);
|
||||||
|
let title = AnimeClient.$('.name a', parentSel)[ 0 ].textContent;
|
||||||
|
|
||||||
|
// Setup the update data
|
||||||
|
let data = {
|
||||||
|
id: parentSel.dataset.kitsuId,
|
||||||
|
mal_id: parentSel.dataset.malId,
|
||||||
|
data: {
|
||||||
|
progress: watchedCount + 1
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
// If the episode count is 0, and incremented,
|
||||||
|
// change status to currently watching
|
||||||
|
if (isNaN(watchedCount) || watchedCount === 0) {
|
||||||
|
data.data.status = 'current';
|
||||||
|
}
|
||||||
|
|
||||||
|
// If you increment at the last episode, mark as completed
|
||||||
|
if ((!isNaN(watchedCount)) && (watchedCount + 1) === totalCount) {
|
||||||
|
data.data.status = 'completed';
|
||||||
|
}
|
||||||
|
|
||||||
|
AnimeClient.show(AnimeClient.$('#loading-shadow')[ 0 ]);
|
||||||
|
|
||||||
|
// okay, lets actually make some changes!
|
||||||
|
AnimeClient.ajax(AnimeClient.url('/anime/increment'), {
|
||||||
|
data,
|
||||||
|
dataType: 'json',
|
||||||
|
type: 'POST',
|
||||||
|
success: (res) => {
|
||||||
|
const resData = JSON.parse(res);
|
||||||
|
|
||||||
|
if (resData.errors) {
|
||||||
|
AnimeClient.hide(AnimeClient.$('#loading-shadow')[ 0 ]);
|
||||||
|
AnimeClient.showMessage('error', `Failed to update ${title}. `);
|
||||||
|
AnimeClient.scrollToTop();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (resData.data.attributes.status === 'completed') {
|
||||||
|
AnimeClient.hide(parentSel);
|
||||||
|
}
|
||||||
|
|
||||||
|
AnimeClient.hide(AnimeClient.$('#loading-shadow')[ 0 ]);
|
||||||
|
|
||||||
|
AnimeClient.showMessage('success', `Successfully updated ${title}`);
|
||||||
|
AnimeClient.$('.completed_number', parentSel)[ 0 ].textContent = ++watchedCount;
|
||||||
|
AnimeClient.scrollToTop();
|
||||||
|
},
|
||||||
|
error: () => {
|
||||||
|
AnimeClient.hide(AnimeClient.$('#loading-shadow')[ 0 ]);
|
||||||
|
AnimeClient.showMessage('error', `Failed to update ${title}. `);
|
||||||
|
AnimeClient.scrollToTop();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
const search$1 = (query) => {
|
||||||
|
AnimeClient.$('.cssload-loader')[ 0 ].removeAttribute('hidden');
|
||||||
|
AnimeClient.get(AnimeClient.url('/manga/search'), { query }, (searchResults, status) => {
|
||||||
|
searchResults = JSON.parse(searchResults);
|
||||||
|
AnimeClient.$('.cssload-loader')[ 0 ].setAttribute('hidden', 'hidden');
|
||||||
|
AnimeClient.$('#series_list')[ 0 ].innerHTML = renderMangaSearchResults(searchResults.data);
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
if (AnimeClient.hasElement('.manga #search')) {
|
||||||
|
AnimeClient.on('#search', 'keyup', AnimeClient.throttle(250, (e) => {
|
||||||
|
let query = encodeURIComponent(e.target.value);
|
||||||
|
if (query === '') {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
search$1(query);
|
||||||
|
}));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Javascript for editing manga, if logged in
|
||||||
|
*/
|
||||||
|
AnimeClient.on('.manga.list', 'click', '.edit_buttons button', (e) => {
|
||||||
|
let thisSel = e.target;
|
||||||
|
let parentSel = AnimeClient.closestParent(e.target, 'article');
|
||||||
|
let type = thisSel.classList.contains('plus_one_chapter') ? 'chapter' : 'volume';
|
||||||
|
let completed = parseInt(AnimeClient.$(`.${type}s_read`, parentSel)[ 0 ].textContent, 10) || 0;
|
||||||
|
let total = parseInt(AnimeClient.$(`.${type}_count`, parentSel)[ 0 ].textContent, 10);
|
||||||
|
let mangaName = AnimeClient.$('.name', parentSel)[ 0 ].textContent;
|
||||||
|
|
||||||
|
if (isNaN(completed)) {
|
||||||
|
completed = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Setup the update data
|
||||||
|
let data = {
|
||||||
|
id: parentSel.dataset.kitsuId,
|
||||||
|
mal_id: parentSel.dataset.malId,
|
||||||
|
data: {
|
||||||
|
progress: completed
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
// If the episode count is 0, and incremented,
|
||||||
|
// change status to currently reading
|
||||||
|
if (isNaN(completed) || completed === 0) {
|
||||||
|
data.data.status = 'current';
|
||||||
|
}
|
||||||
|
|
||||||
|
// If you increment at the last chapter, mark as completed
|
||||||
|
if ((!isNaN(completed)) && (completed + 1) === total) {
|
||||||
|
data.data.status = 'completed';
|
||||||
|
}
|
||||||
|
|
||||||
|
// Update the total count
|
||||||
|
data.data.progress = ++completed;
|
||||||
|
|
||||||
|
AnimeClient.show(AnimeClient.$('#loading-shadow')[ 0 ]);
|
||||||
|
|
||||||
|
AnimeClient.ajax(AnimeClient.url('/manga/update'), {
|
||||||
|
data,
|
||||||
|
dataType: 'json',
|
||||||
|
type: 'POST',
|
||||||
|
mimeType: 'application/json',
|
||||||
|
success: () => {
|
||||||
|
if (data.data.status === 'completed') {
|
||||||
|
AnimeClient.hide(parentSel);
|
||||||
|
}
|
||||||
|
|
||||||
|
AnimeClient.hide(AnimeClient.$('#loading-shadow')[ 0 ]);
|
||||||
|
|
||||||
|
AnimeClient.$(`.${type}s_read`, parentSel)[ 0 ].textContent = completed;
|
||||||
|
AnimeClient.showMessage('success', `Successfully updated ${mangaName}`);
|
||||||
|
AnimeClient.scrollToTop();
|
||||||
|
},
|
||||||
|
error: () => {
|
||||||
|
AnimeClient.hide(AnimeClient.$('#loading-shadow')[ 0 ]);
|
||||||
|
AnimeClient.showMessage('error', `Failed to update ${mangaName}`);
|
||||||
|
AnimeClient.scrollToTop();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
}());
|
||||||
//# sourceMappingURL=scripts-authed.min.js.map
|
//# sourceMappingURL=scripts-authed.min.js.map
|
||||||
|
File diff suppressed because one or more lines are too long
381
public/js/scripts.min.js
vendored
381
public/js/scripts.min.js
vendored
@ -1,14 +1,369 @@
|
|||||||
var d=d||{};d.scope={};d.ASSUME_ES5=!1;d.ASSUME_NO_NATIVE_MAP=!1;d.ASSUME_NO_NATIVE_SET=!1;d.defineProperty=d.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(a,e,g){a!=Array.prototype&&a!=Object.prototype&&(a[e]=g.value)};d.getGlobal=function(a){return"undefined"!=typeof window&&window===a?a:"undefined"!=typeof global&&null!=global?global:a};d.global=d.getGlobal(this);d.SYMBOL_PREFIX="jscomp_symbol_";
|
(function () {
|
||||||
d.initSymbol=function(){d.initSymbol=function(){};d.global.Symbol||(d.global.Symbol=d.Symbol)};d.Symbol=function(){var a=0;return function(e){return d.SYMBOL_PREFIX+(e||"")+a++}}();d.initSymbolIterator=function(){d.initSymbol();var a=d.global.Symbol.iterator;a||(a=d.global.Symbol.iterator=d.global.Symbol("iterator"));"function"!=typeof Array.prototype[a]&&d.defineProperty(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return d.arrayIterator(this)}});d.initSymbolIterator=function(){}};
|
'use strict';
|
||||||
d.arrayIterator=function(a){var e=0;return d.iteratorPrototype(function(){return e<a.length?{done:!1,value:a[e++]}:{done:!0}})};d.iteratorPrototype=function(a){d.initSymbolIterator();a={next:a};a[d.global.Symbol.iterator]=function(){return this};return a};
|
|
||||||
d.iteratorFromArray=function(a,e){d.initSymbolIterator();a instanceof String&&(a+="");var g=0,f={next:function(){if(g<a.length){var b=g++;return{value:e(b,a[b]),done:!1}}f.next=function(){return{done:!0,value:void 0}};return f.next()}};f[Symbol.iterator]=function(){return f};return f};
|
// -------------------------------------------------------------------------
|
||||||
d.polyfill=function(a,e){if(e){var g=d.global;a=a.split(".");for(var f=0;f<a.length-1;f++){var b=a[f];b in g||(g[b]={});g=g[b]}a=a[a.length-1];f=g[a];e=e(f);e!=f&&null!=e&&d.defineProperty(g,a,{configurable:!0,writable:!0,value:e})}};d.polyfill("Array.prototype.keys",function(a){return a?a:function(){return d.iteratorFromArray(this,function(a){return a})}},"es6","es3");d.owns=function(a,e){return Object.prototype.hasOwnProperty.call(a,e)};
|
// ! Base
|
||||||
d.assign="function"==typeof Object.assign?Object.assign:function(a,e){for(var g=1;g<arguments.length;g++){var f=arguments[g];if(f)for(var b in f)d.owns(f,b)&&(a[b]=f[b])}return a};d.polyfill("Object.assign",function(a){return a||d.assign},"es6","es3");
|
// -------------------------------------------------------------------------
|
||||||
(function(){function a(b,c,h){c.match(/^([\w\-]+)$/)||c.split(" ").forEach(function(c){a(b,c,h)});b.addEventListener(c,h,!1)}function e(b,c,h,k){a(b,h,function(a){f.$(c,b).forEach(function(b){a.target==b&&(k.call(b,a),a.stopPropagation())})})}function g(b){var a=[];Object.keys(b).forEach(function(c){var h=b[c].toString();c=encodeURIComponent(c);h=encodeURIComponent(h);a.push(c+"\x3d"+h)});return a.join("\x26")}var f={noop:function(){},$:function(b,a){a=void 0===a?null:a;if("string"!==typeof b)return b;
|
|
||||||
a=null!==a&&1===a.nodeType?a:document;var c=[];b.match(/^#([\w]+$)/)?c.push(document.getElementById(b.split("#")[1])):c=[].slice.apply(a.querySelectorAll(b));return c},hasElement:function(a){return 0<f.$(a).length},scrollToTop:function(){window.scroll(0,0)},hide:function(a){a.setAttribute("hidden","hidden")},show:function(a){a.removeAttribute("hidden")},showMessage:function(a,c){a="\x3cdiv class\x3d'message "+a+"'\x3e\n\t\t\t\t\x3cspan class\x3d'icon'\x3e\x3c/span\x3e\n\t\t\t\t"+c+"\n\t\t\t\t\x3cspan class\x3d'close'\x3e\x3c/span\x3e\n\t\t\t\x3c/div\x3e";
|
const matches = (elm, selector) => {
|
||||||
c=f.$(".message");void 0!==c[0]&&c[0].remove();f.$("header")[0].insertAdjacentHTML("beforeend",a)},closestParent:function(a,c){if(void 0!==Element.prototype.closest)return a.closest(c);for(;a!==document.documentElement;){for(var b=a,f=(b.document||b.ownerDocument).querySelectorAll(c),e=f.length;0<=--e&&f.item(e)!==b;);if(-1<e)return a;a=a.parentElement}return null},url:function(a){var b="//"+document.location.host;return b+="/"===a.charAt(0)?a:"/"+a},throttle:function(a,c,f){var b=!1;return function(h){for(var e=
|
let matches = (elm.document || elm.ownerDocument).querySelectorAll(selector),
|
||||||
[],g=0;g<arguments.length;++g)e[g-0]=arguments[g];g=f||this;b||(c.apply(g,e),b=!0,setTimeout(function(){b=!1},a))}},on:function(b,c,h,g){void 0===g?(g=h,f.$(b).forEach(function(b){a(b,c,g)})):f.$(b).forEach(function(a){e(a,h,c,g)})},ajax:function(a,c){c=Object.assign({},{data:{},type:"GET",dataType:"",success:f.noop,mimeType:"application/x-www-form-urlencoded",error:f.noop},c);var b=new XMLHttpRequest,e=String(c.type).toUpperCase();"GET"===e&&(a+=a.match(/\?/)?g(c.data):"?"+g(c.data));b.open(e,a);
|
i = matches.length;
|
||||||
b.onreadystatechange=function(){if(4===b.readyState){var a="json"===b.responseType?JSON.parse(b.responseText):b.responseText;299<b.status?c.error.call(null,b.status,a,b.response):c.success.call(null,a,b.status)}};"json"===c.dataType?(c.data=JSON.stringify(c.data),c.mimeType="application/json"):c.data=g(c.data);b.setRequestHeader("Content-Type",c.mimeType);switch(e){case "GET":b.send(null);break;default:b.send(c.data)}},get:function(a,c,e){e=void 0===e?null:e;null===e&&(e=c,c={});return f.ajax(a,{data:c,
|
while (--i >= 0 && matches.item(i) !== elm) {} return i > -1;
|
||||||
success:e})}};f.on("header","click",".message",function(a){f.hide(a.target)});f.on("form.js-delete","submit",function(a){!1===confirm("Are you ABSOLUTELY SURE you want to delete this item?")&&(a.preventDefault(),a.stopPropagation())});f.on(".js-clear-cache","click",function(){f.get("/cache_purge",function(){f.showMessage("success","Successfully purged api cache")})});"serviceWorker"in navigator&&navigator.serviceWorker.register("/sw.js").then(function(a){console.log("Service worker registered",a.scope)}).catch(function(a){console.error("Failed to register service worker",
|
};
|
||||||
a)})})();
|
|
||||||
|
const AnimeClient = {
|
||||||
|
/**
|
||||||
|
* Placeholder function
|
||||||
|
*/
|
||||||
|
noop: () => {},
|
||||||
|
/**
|
||||||
|
* DOM selector
|
||||||
|
*
|
||||||
|
* @param {string} selector - The dom selector string
|
||||||
|
* @param {object} [context]
|
||||||
|
* @return {[HTMLElement]} - array of dom elements
|
||||||
|
*/
|
||||||
|
$(selector, context = null) {
|
||||||
|
if (typeof selector !== 'string') {
|
||||||
|
return selector;
|
||||||
|
}
|
||||||
|
|
||||||
|
context = (context !== null && context.nodeType === 1)
|
||||||
|
? context
|
||||||
|
: document;
|
||||||
|
|
||||||
|
let elements = [];
|
||||||
|
if (selector.match(/^#([\w]+$)/)) {
|
||||||
|
elements.push(document.getElementById(selector.split('#')[1]));
|
||||||
|
} else {
|
||||||
|
elements = [].slice.apply(context.querySelectorAll(selector));
|
||||||
|
}
|
||||||
|
|
||||||
|
return elements;
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* Does the selector exist on the current page?
|
||||||
|
*
|
||||||
|
* @param {string} selector
|
||||||
|
* @returns {boolean}
|
||||||
|
*/
|
||||||
|
hasElement (selector) {
|
||||||
|
return AnimeClient.$(selector).length > 0;
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* Scroll to the top of the Page
|
||||||
|
*
|
||||||
|
* @return {void}
|
||||||
|
*/
|
||||||
|
scrollToTop () {
|
||||||
|
window.scroll(0,0);
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* Hide the selected element
|
||||||
|
*
|
||||||
|
* @param {string|Element} sel - the selector of the element to hide
|
||||||
|
* @return {void}
|
||||||
|
*/
|
||||||
|
hide (sel) {
|
||||||
|
sel.setAttribute('hidden', 'hidden');
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* UnHide the selected element
|
||||||
|
*
|
||||||
|
* @param {string|Element} sel - the selector of the element to hide
|
||||||
|
* @return {void}
|
||||||
|
*/
|
||||||
|
show (sel) {
|
||||||
|
sel.removeAttribute('hidden');
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* Display a message box
|
||||||
|
*
|
||||||
|
* @param {string} type - message type: info, error, success
|
||||||
|
* @param {string} message - the message itself
|
||||||
|
* @return {void}
|
||||||
|
*/
|
||||||
|
showMessage (type, message) {
|
||||||
|
let template =
|
||||||
|
`<div class='message ${type}'>
|
||||||
|
<span class='icon'></span>
|
||||||
|
${message}
|
||||||
|
<span class='close'></span>
|
||||||
|
</div>`;
|
||||||
|
|
||||||
|
let sel = AnimeClient.$('.message');
|
||||||
|
if (sel[0] !== undefined) {
|
||||||
|
sel[0].remove();
|
||||||
|
}
|
||||||
|
|
||||||
|
AnimeClient.$('header')[0].insertAdjacentHTML('beforeend', template);
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* Finds the closest parent element matching the passed selector
|
||||||
|
*
|
||||||
|
* @param {HTMLElement} current - the current HTMLElement
|
||||||
|
* @param {string} parentSelector - selector for the parent element
|
||||||
|
* @return {HTMLElement|null} - the parent element
|
||||||
|
*/
|
||||||
|
closestParent (current, parentSelector) {
|
||||||
|
if (Element.prototype.closest !== undefined) {
|
||||||
|
return current.closest(parentSelector);
|
||||||
|
}
|
||||||
|
|
||||||
|
while (current !== document.documentElement) {
|
||||||
|
if (matches(current, parentSelector)) {
|
||||||
|
return current;
|
||||||
|
}
|
||||||
|
|
||||||
|
current = current.parentElement;
|
||||||
|
}
|
||||||
|
|
||||||
|
return null;
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* Generate a full url from a relative path
|
||||||
|
*
|
||||||
|
* @param {string} path - url path
|
||||||
|
* @return {string} - full url
|
||||||
|
*/
|
||||||
|
url (path) {
|
||||||
|
let uri = `//${document.location.host}`;
|
||||||
|
uri += (path.charAt(0) === '/') ? path : `/${path}`;
|
||||||
|
|
||||||
|
return uri;
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* Throttle execution of a function
|
||||||
|
*
|
||||||
|
* @see https://remysharp.com/2010/07/21/throttling-function-calls
|
||||||
|
* @see https://jsfiddle.net/jonathansampson/m7G64/
|
||||||
|
* @param {Number} interval - the minimum throttle time in ms
|
||||||
|
* @param {Function} fn - the function to throttle
|
||||||
|
* @param {Object} [scope] - the 'this' object for the function
|
||||||
|
* @return {Function}
|
||||||
|
*/
|
||||||
|
throttle (interval, fn, scope) {
|
||||||
|
let wait = false;
|
||||||
|
return function (...args) {
|
||||||
|
const context = scope || this;
|
||||||
|
|
||||||
|
if ( ! wait) {
|
||||||
|
fn.apply(context, args);
|
||||||
|
wait = true;
|
||||||
|
setTimeout(function() {
|
||||||
|
wait = false;
|
||||||
|
}, interval);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
// -------------------------------------------------------------------------
|
||||||
|
// ! Events
|
||||||
|
// -------------------------------------------------------------------------
|
||||||
|
|
||||||
|
function addEvent(sel, event, listener) {
|
||||||
|
// Recurse!
|
||||||
|
if (! event.match(/^([\w\-]+)$/)) {
|
||||||
|
event.split(' ').forEach((evt) => {
|
||||||
|
addEvent(sel, evt, listener);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
sel.addEventListener(event, listener, false);
|
||||||
|
}
|
||||||
|
|
||||||
|
function delegateEvent(sel, target, event, listener) {
|
||||||
|
// Attach the listener to the parent
|
||||||
|
addEvent(sel, event, (e) => {
|
||||||
|
// Get live version of the target selector
|
||||||
|
AnimeClient.$(target, sel).forEach((element) => {
|
||||||
|
if(e.target == element) {
|
||||||
|
listener.call(element, e);
|
||||||
|
e.stopPropagation();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Add an event listener
|
||||||
|
*
|
||||||
|
* @param {string|HTMLElement} sel - the parent selector to bind to
|
||||||
|
* @param {string} event - event name(s) to bind
|
||||||
|
* @param {string|HTMLElement|function} target - the element to directly bind the event to
|
||||||
|
* @param {function} [listener] - event listener callback
|
||||||
|
* @return {void}
|
||||||
|
*/
|
||||||
|
AnimeClient.on = (sel, event, target, listener) => {
|
||||||
|
if (listener === undefined) {
|
||||||
|
listener = target;
|
||||||
|
AnimeClient.$(sel).forEach((el) => {
|
||||||
|
addEvent(el, event, listener);
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
AnimeClient.$(sel).forEach((el) => {
|
||||||
|
delegateEvent(el, target, event, listener);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
// -------------------------------------------------------------------------
|
||||||
|
// ! Ajax
|
||||||
|
// -------------------------------------------------------------------------
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Url encoding for non-get requests
|
||||||
|
*
|
||||||
|
* @param data
|
||||||
|
* @returns {string}
|
||||||
|
* @private
|
||||||
|
*/
|
||||||
|
function ajaxSerialize(data) {
|
||||||
|
let pairs = [];
|
||||||
|
|
||||||
|
Object.keys(data).forEach((name) => {
|
||||||
|
let value = data[name].toString();
|
||||||
|
|
||||||
|
name = encodeURIComponent(name);
|
||||||
|
value = encodeURIComponent(value);
|
||||||
|
|
||||||
|
pairs.push(`${name}=${value}`);
|
||||||
|
});
|
||||||
|
|
||||||
|
return pairs.join('&');
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Make an ajax request
|
||||||
|
*
|
||||||
|
* Config:{
|
||||||
|
* data: // data to send with the request
|
||||||
|
* type: // http verb of the request, defaults to GET
|
||||||
|
* success: // success callback
|
||||||
|
* error: // error callback
|
||||||
|
* }
|
||||||
|
*
|
||||||
|
* @param {string} url - the url to request
|
||||||
|
* @param {Object} config - the configuration object
|
||||||
|
* @return {void}
|
||||||
|
*/
|
||||||
|
AnimeClient.ajax = (url, config) => {
|
||||||
|
// Set some sane defaults
|
||||||
|
const defaultConfig = {
|
||||||
|
data: {},
|
||||||
|
type: 'GET',
|
||||||
|
dataType: '',
|
||||||
|
success: AnimeClient.noop,
|
||||||
|
mimeType: 'application/x-www-form-urlencoded',
|
||||||
|
error: AnimeClient.noop
|
||||||
|
};
|
||||||
|
|
||||||
|
config = {
|
||||||
|
...defaultConfig,
|
||||||
|
...config,
|
||||||
|
};
|
||||||
|
|
||||||
|
let request = new XMLHttpRequest();
|
||||||
|
let method = String(config.type).toUpperCase();
|
||||||
|
|
||||||
|
if (method === 'GET') {
|
||||||
|
url += (url.match(/\?/))
|
||||||
|
? ajaxSerialize(config.data)
|
||||||
|
: `?${ajaxSerialize(config.data)}`;
|
||||||
|
}
|
||||||
|
|
||||||
|
request.open(method, url);
|
||||||
|
|
||||||
|
request.onreadystatechange = () => {
|
||||||
|
if (request.readyState === 4) {
|
||||||
|
let responseText = '';
|
||||||
|
|
||||||
|
if (request.responseType === 'json') {
|
||||||
|
responseText = JSON.parse(request.responseText);
|
||||||
|
} else {
|
||||||
|
responseText = request.responseText;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (request.status > 299) {
|
||||||
|
config.error.call(null, request.status, responseText, request.response);
|
||||||
|
} else {
|
||||||
|
config.success.call(null, responseText, request.status);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
if (config.dataType === 'json') {
|
||||||
|
config.data = JSON.stringify(config.data);
|
||||||
|
config.mimeType = 'application/json';
|
||||||
|
} else {
|
||||||
|
config.data = ajaxSerialize(config.data);
|
||||||
|
}
|
||||||
|
|
||||||
|
request.setRequestHeader('Content-Type', config.mimeType);
|
||||||
|
|
||||||
|
switch (method) {
|
||||||
|
case 'GET':
|
||||||
|
request.send(null);
|
||||||
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
request.send(config.data);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Do a get request
|
||||||
|
*
|
||||||
|
* @param {string} url
|
||||||
|
* @param {object|function} data
|
||||||
|
* @param {function} [callback]
|
||||||
|
*/
|
||||||
|
AnimeClient.get = (url, data, callback = null) => {
|
||||||
|
if (callback === null) {
|
||||||
|
callback = data;
|
||||||
|
data = {};
|
||||||
|
}
|
||||||
|
|
||||||
|
return AnimeClient.ajax(url, {
|
||||||
|
data,
|
||||||
|
success: callback
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Event handlers
|
||||||
|
*/
|
||||||
|
// Close event for messages
|
||||||
|
AnimeClient.on('header', 'click', '.message', (e) => {
|
||||||
|
AnimeClient.hide(e.target);
|
||||||
|
});
|
||||||
|
|
||||||
|
// Confirm deleting of list or library items
|
||||||
|
AnimeClient.on('form.js-delete', 'submit', (event) => {
|
||||||
|
const proceed = confirm('Are you ABSOLUTELY SURE you want to delete this item?');
|
||||||
|
|
||||||
|
if (proceed === false) {
|
||||||
|
event.preventDefault();
|
||||||
|
event.stopPropagation();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
// Clear the api cache
|
||||||
|
AnimeClient.on('.js-clear-cache', 'click', () => {
|
||||||
|
AnimeClient.get('/cache_purge', () => {
|
||||||
|
AnimeClient.showMessage('success', 'Successfully purged api cache');
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
if ('serviceWorker' in navigator) {
|
||||||
|
navigator.serviceWorker.register('/sw.js').then(reg => {
|
||||||
|
console.log('Service worker registered', reg.scope);
|
||||||
|
}).catch(error => {
|
||||||
|
console.error('Failed to register service worker', error);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
}());
|
||||||
//# sourceMappingURL=scripts.min.js.map
|
//# sourceMappingURL=scripts.min.js.map
|
||||||
|
File diff suppressed because one or more lines are too long
@ -1,3 +1,14 @@
|
|||||||
|
import _ from './base/AnimeClient.js';
|
||||||
|
|
||||||
|
// Wire up mal checkbox
|
||||||
|
_.on('main', 'change', '.big-check', (e) => {
|
||||||
|
const id = e.target.id;
|
||||||
|
_.$('.mal-check').forEach(el => {
|
||||||
|
el.checked = false;
|
||||||
|
})
|
||||||
|
document.getElementById(`mal_${id}`).checked = true;
|
||||||
|
});
|
||||||
|
|
||||||
export function renderAnimeSearchResults (data) {
|
export function renderAnimeSearchResults (data) {
|
||||||
const results = [];
|
const results = [];
|
||||||
|
|
||||||
@ -10,6 +21,7 @@ export function renderAnimeSearchResults (data) {
|
|||||||
results.push(`
|
results.push(`
|
||||||
<article class="media search">
|
<article class="media search">
|
||||||
<div class="name">
|
<div class="name">
|
||||||
|
<input type="checkbox" class="mal-check" id="mal_${item.slug}" name="mal_id" value="${x.mal_id}" />
|
||||||
<input type="radio" class="big-check" id="${item.slug}" name="id" value="${x.id}" />
|
<input type="radio" class="big-check" id="${item.slug}" name="id" value="${x.id}" />
|
||||||
<label for="${item.slug}">
|
<label for="${item.slug}">
|
||||||
<img src="/public/images/anime/${x.id}.jpg" alt="" width="220" />
|
<img src="/public/images/anime/${x.id}.jpg" alt="" width="220" />
|
||||||
@ -45,6 +57,7 @@ export function renderMangaSearchResults (data) {
|
|||||||
results.push(`
|
results.push(`
|
||||||
<article class="media search">
|
<article class="media search">
|
||||||
<div class="name">
|
<div class="name">
|
||||||
|
<input type="checkbox" id="mal_${item.slug}" name="mal_id" value="${x.mal_id}" />
|
||||||
<input type="radio" class="big-check" id="${item.slug}" name="id" value="${x.id}" />
|
<input type="radio" class="big-check" id="${item.slug}" name="id" value="${x.id}" />
|
||||||
<label for="${item.slug}">
|
<label for="${item.slug}">
|
||||||
<img src="/public/images/manga/${x.id}.jpg" alt="" width="220" />
|
<img src="/public/images/manga/${x.id}.jpg" alt="" width="220" />
|
||||||
|
80
public/js/tables.min.js
vendored
80
public/js/tables.min.js
vendored
@ -1,7 +1,75 @@
|
|||||||
var b=b||{};b.scope={};b.ASSUME_ES5=!1;b.ASSUME_NO_NATIVE_MAP=!1;b.ASSUME_NO_NATIVE_SET=!1;b.defineProperty=b.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(a,c,e){a!=Array.prototype&&a!=Object.prototype&&(a[c]=e.value)};b.getGlobal=function(a){return"undefined"!=typeof window&&window===a?a:"undefined"!=typeof global&&null!=global?global:a};b.global=b.getGlobal(this);b.SYMBOL_PREFIX="jscomp_symbol_";
|
(function () {
|
||||||
b.initSymbol=function(){b.initSymbol=function(){};b.global.Symbol||(b.global.Symbol=b.Symbol)};b.Symbol=function(){var a=0;return function(c){return b.SYMBOL_PREFIX+(c||"")+a++}}();b.initSymbolIterator=function(){b.initSymbol();var a=b.global.Symbol.iterator;a||(a=b.global.Symbol.iterator=b.global.Symbol("iterator"));"function"!=typeof Array.prototype[a]&&b.defineProperty(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return b.arrayIterator(this)}});b.initSymbolIterator=function(){}};
|
'use strict';
|
||||||
b.arrayIterator=function(a){var c=0;return b.iteratorPrototype(function(){return c<a.length?{done:!1,value:a[c++]}:{done:!0}})};b.iteratorPrototype=function(a){b.initSymbolIterator();a={next:a};a[b.global.Symbol.iterator]=function(){return this};return a};b.polyfill=function(a,c){if(c){var e=b.global;a=a.split(".");for(var d=0;d<a.length-1;d++){var g=a[d];g in e||(e[g]={});e=e[g]}a=a[a.length-1];d=e[a];c=c(d);c!=d&&null!=c&&b.defineProperty(e,a,{configurable:!0,writable:!0,value:c})}};
|
|
||||||
b.polyfill("Array.from",function(a){return a?a:function(a,e,d){b.initSymbolIterator();e=null!=e?e:function(a){return a};var c=[],f=a[Symbol.iterator];if("function"==typeof f){a=f.call(a);for(var h=0;!(f=a.next()).done;)c.push(e.call(d,f.value,h++))}else for(f=a.length,h=0;h<f;h++)c.push(e.call(d,a[h],h));return c}},"es6","es3");
|
const LightTableSorter = (() => {
|
||||||
(function(){function a(a){d&&g!==a.target.cellIndex&&(d.classList.remove("sorting_asc","sorting_desc"),d.classList.add("sorting"),f="");d=a.target;if("th"===d.nodeName.toLowerCase()){g=d.cellIndex;var h=d.offsetParent.getElementsByTagName("tbody")[0];if(a=Array.from(h.rows))a.sort(e),"sorting_asc"===f&&a.reverse(),c(),h.innerHtml="",a.forEach(function(a){h.appendChild(a)})}}function c(){var a="sorting_asc"!==f?"sorting_asc":"sorting_desc";d.className=(d.className.replace(f,"")+" "+a).trim();return f=
|
let th = null;
|
||||||
a}function e(a,c){a=a.cells.item(g).textContent.toLowerCase();c=c.cells.item(g).textContent.toLowerCase();var d=parseInt(a,10);d&&(a=d,c=parseInt(c,10));return a>c?1:a<c?-1:0}var d=null,g=null,f="";return{init:function(){for(var c=document.getElementsByTagName("th"),d=[],e=0,f=c.length;e<f;e++){var g=c[e];g.classList.add("sorting");d.push(g.onclick=a)}return d}}})().init();
|
let cellIndex = null;
|
||||||
|
let order = '';
|
||||||
|
const text = (row) => row.cells.item(cellIndex).textContent.toLowerCase();
|
||||||
|
const sort = (a, b) => {
|
||||||
|
let textA = text(a);
|
||||||
|
let textB = text(b);
|
||||||
|
const n = parseInt(textA, 10);
|
||||||
|
if (n) {
|
||||||
|
textA = n;
|
||||||
|
textB = parseInt(textB, 10);
|
||||||
|
}
|
||||||
|
if (textA > textB) {
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
if (textA < textB) {
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
return 0;
|
||||||
|
};
|
||||||
|
const toggle = () => {
|
||||||
|
const c = order !== 'sorting_asc' ? 'sorting_asc' : 'sorting_desc';
|
||||||
|
th.className = (th.className.replace(order, '') + ' ' + c).trim();
|
||||||
|
return order = c;
|
||||||
|
};
|
||||||
|
const reset = () => {
|
||||||
|
th.classList.remove('sorting_asc', 'sorting_desc');
|
||||||
|
th.classList.add('sorting');
|
||||||
|
return order = '';
|
||||||
|
};
|
||||||
|
const onClickEvent = (e) => {
|
||||||
|
if (th && (cellIndex !== e.target.cellIndex)) {
|
||||||
|
reset();
|
||||||
|
}
|
||||||
|
th = e.target;
|
||||||
|
if (th.nodeName.toLowerCase() === 'th') {
|
||||||
|
cellIndex = th.cellIndex;
|
||||||
|
const tbody = th.offsetParent.getElementsByTagName('tbody')[0];
|
||||||
|
let rows = Array.from(tbody.rows);
|
||||||
|
if (rows) {
|
||||||
|
rows.sort(sort);
|
||||||
|
if (order === 'sorting_asc') {
|
||||||
|
rows.reverse();
|
||||||
|
}
|
||||||
|
toggle();
|
||||||
|
tbody.innerHtml = '';
|
||||||
|
|
||||||
|
rows.forEach(row => {
|
||||||
|
tbody.appendChild(row);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
return {
|
||||||
|
init: () => {
|
||||||
|
let ths = document.getElementsByTagName('th');
|
||||||
|
let results = [];
|
||||||
|
for (let i = 0, len = ths.length; i < len; i++) {
|
||||||
|
let th = ths[i];
|
||||||
|
th.classList.add('sorting');
|
||||||
|
results.push(th.onclick = onClickEvent);
|
||||||
|
}
|
||||||
|
return results;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
})();
|
||||||
|
|
||||||
|
LightTableSorter.init();
|
||||||
|
|
||||||
|
}());
|
||||||
//# sourceMappingURL=tables.min.js.map
|
//# sourceMappingURL=tables.min.js.map
|
||||||
|
@ -1 +1 @@
|
|||||||
{"version":3,"file":"tables.min.js.map","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
|
{"version":3,"file":"tables.min.js.map","sources":["src/base/sort_tables.js"],"sourcesContent":["const LightTableSorter = (() => {\n\tlet th = null;\n\tlet cellIndex = null;\n\tlet order = '';\n\tconst text = (row) => row.cells.item(cellIndex).textContent.toLowerCase();\n\tconst sort = (a, b) => {\n\t\tlet textA = text(a);\n\t\tlet textB = text(b);\n\t\tconst n = parseInt(textA, 10);\n\t\tif (n) {\n\t\t\ttextA = n;\n\t\t\ttextB = parseInt(textB, 10);\n\t\t}\n\t\tif (textA > textB) {\n\t\t\treturn 1;\n\t\t}\n\t\tif (textA < textB) {\n\t\t\treturn -1;\n\t\t}\n\t\treturn 0;\n\t};\n\tconst toggle = () => {\n\t\tconst c = order !== 'sorting_asc' ? 'sorting_asc' : 'sorting_desc';\n\t\tth.className = (th.className.replace(order, '') + ' ' + c).trim();\n\t\treturn order = c;\n\t};\n\tconst reset = () => {\n\t\tth.classList.remove('sorting_asc', 'sorting_desc');\n\t\tth.classList.add('sorting');\n\t\treturn order = '';\n\t};\n\tconst onClickEvent = (e) => {\n\t\tif (th && (cellIndex !== e.target.cellIndex)) {\n\t\t\treset();\n\t\t}\n\t\tth = e.target;\n\t\tif (th.nodeName.toLowerCase() === 'th') {\n\t\t\tcellIndex = th.cellIndex;\n\t\t\tconst tbody = th.offsetParent.getElementsByTagName('tbody')[0];\n\t\t\tlet rows = Array.from(tbody.rows);\n\t\t\tif (rows) {\n\t\t\t\trows.sort(sort);\n\t\t\t\tif (order === 'sorting_asc') {\n\t\t\t\t\trows.reverse();\n\t\t\t\t}\n\t\t\t\ttoggle();\n\t\t\t\ttbody.innerHtml = '';\n\n\t\t\t\trows.forEach(row => {\n\t\t\t\t\ttbody.appendChild(row);\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\t};\n\treturn {\n\t\tinit: () => {\n\t\t\tlet ths = document.getElementsByTagName('th');\n\t\t\tlet results = [];\n\t\t\tfor (let i = 0, len = ths.length; i < len; i++) {\n\t\t\t\tlet th = ths[i];\n\t\t\t\tth.classList.add('sorting');\n\t\t\t\tresults.push(th.onclick = onClickEvent);\n\t\t\t}\n\t\t\treturn results;\n\t\t}\n\t};\n})();\n\nLightTableSorter.init();"],"names":[],"mappings":";;;CAAA,MAAM,gBAAgB,GAAG,CAAC,MAAM;CAChC,CAAC,IAAI,EAAE,GAAG,IAAI,CAAC;CACf,CAAC,IAAI,SAAS,GAAG,IAAI,CAAC;CACtB,CAAC,IAAI,KAAK,GAAG,EAAE,CAAC;CAChB,CAAC,MAAM,IAAI,GAAG,CAAC,GAAG,KAAK,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,WAAW,CAAC,WAAW,EAAE,CAAC;CAC3E,CAAC,MAAM,IAAI,GAAG,CAAC,CAAC,EAAE,CAAC,KAAK;CACxB,EAAE,IAAI,KAAK,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC;CACtB,EAAE,IAAI,KAAK,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC;CACtB,EAAE,MAAM,CAAC,GAAG,QAAQ,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;CAChC,EAAE,IAAI,CAAC,EAAE;CACT,GAAG,KAAK,GAAG,CAAC,CAAC;CACb,GAAG,KAAK,GAAG,QAAQ,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;CAC/B,GAAG;CACH,EAAE,IAAI,KAAK,GAAG,KAAK,EAAE;CACrB,GAAG,OAAO,CAAC,CAAC;CACZ,GAAG;CACH,EAAE,IAAI,KAAK,GAAG,KAAK,EAAE;CACrB,GAAG,OAAO,CAAC,CAAC,CAAC;CACb,GAAG;CACH,EAAE,OAAO,CAAC,CAAC;CACX,EAAE,CAAC;CACH,CAAC,MAAM,MAAM,GAAG,MAAM;CACtB,EAAE,MAAM,CAAC,GAAG,KAAK,KAAK,aAAa,GAAG,aAAa,GAAG,cAAc,CAAC;CACrE,EAAE,EAAE,CAAC,SAAS,GAAG,CAAC,EAAE,CAAC,SAAS,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,GAAG,GAAG,GAAG,CAAC,EAAE,IAAI,EAAE,CAAC;CACpE,EAAE,OAAO,KAAK,GAAG,CAAC,CAAC;CACnB,EAAE,CAAC;CACH,CAAC,MAAM,KAAK,GAAG,MAAM;CACrB,EAAE,EAAE,CAAC,SAAS,CAAC,MAAM,CAAC,aAAa,EAAE,cAAc,CAAC,CAAC;CACrD,EAAE,EAAE,CAAC,SAAS,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;CAC9B,EAAE,OAAO,KAAK,GAAG,EAAE,CAAC;CACpB,EAAE,CAAC;CACH,CAAC,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK;CAC7B,EAAE,IAAI,EAAE,KAAK,SAAS,KAAK,CAAC,CAAC,MAAM,CAAC,SAAS,CAAC,EAAE;CAChD,GAAG,KAAK,EAAE,CAAC;CACX,GAAG;CACH,EAAE,EAAE,GAAG,CAAC,CAAC,MAAM,CAAC;CAChB,EAAE,IAAI,EAAE,CAAC,QAAQ,CAAC,WAAW,EAAE,KAAK,IAAI,EAAE;CAC1C,GAAG,SAAS,GAAG,EAAE,CAAC,SAAS,CAAC;CAC5B,GAAG,MAAM,KAAK,GAAG,EAAE,CAAC,YAAY,CAAC,oBAAoB,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC;CAClE,GAAG,IAAI,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;CACrC,GAAG,IAAI,IAAI,EAAE;CACb,IAAI,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;CACpB,IAAI,IAAI,KAAK,KAAK,aAAa,EAAE;CACjC,KAAK,IAAI,CAAC,OAAO,EAAE,CAAC;CACpB,KAAK;CACL,IAAI,MAAM,EAAE,CAAC;CACb,IAAI,KAAK,CAAC,SAAS,GAAG,EAAE,CAAC;;CAEzB,IAAI,IAAI,CAAC,OAAO,CAAC,GAAG,IAAI;CACxB,KAAK,KAAK,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;CAC5B,KAAK,CAAC,CAAC;CACP,IAAI;CACJ,GAAG;CACH,EAAE,CAAC;CACH,CAAC,OAAO;CACR,EAAE,IAAI,EAAE,MAAM;CACd,GAAG,IAAI,GAAG,GAAG,QAAQ,CAAC,oBAAoB,CAAC,IAAI,CAAC,CAAC;CACjD,GAAG,IAAI,OAAO,GAAG,EAAE,CAAC;CACpB,GAAG,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,GAAG,GAAG,GAAG,CAAC,MAAM,EAAE,CAAC,GAAG,GAAG,EAAE,CAAC,EAAE,EAAE;CACnD,IAAI,IAAI,EAAE,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC;CACpB,IAAI,EAAE,CAAC,SAAS,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;CAChC,IAAI,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,OAAO,GAAG,YAAY,CAAC,CAAC;CAC5C,IAAI;CACJ,GAAG,OAAO,OAAO,CAAC;CAClB,GAAG;CACH,EAAE,CAAC;CACH,CAAC,GAAG,CAAC;;CAEL,gBAAgB,CAAC,IAAI,EAAE;;;;"}
|
@ -8,14 +8,13 @@
|
|||||||
"watch": "concurrently \"npm:watch:css\" \"npm:watch:js\" --kill-others"
|
"watch": "concurrently \"npm:watch:css\" \"npm:watch:js\" --kill-others"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"@ampproject/rollup-plugin-closure-compiler": "^0.7.2",
|
||||||
"concurrently": "^3.6.1",
|
"concurrently": "^3.6.1",
|
||||||
"cssnano": "^4.0.5",
|
"cssnano": "^4.0.5",
|
||||||
"postcss-cachify": "^1.3.1",
|
"postcss-cachify": "^1.3.1",
|
||||||
"postcss-cssnext": "^3.0.0",
|
"postcss-cssnext": "^3.0.0",
|
||||||
"postcss-import": "^12.0.0",
|
"postcss-import": "^12.0.0",
|
||||||
"rollup": "^0.64.1",
|
"rollup": "^0.64.1",
|
||||||
"rollup-plugin-buble": "^0.19.2",
|
|
||||||
"rollup-plugin-closure-compiler-js": "^1.0.6",
|
|
||||||
"watch": "^1.0.2"
|
"watch": "^1.0.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import closure from 'rollup-plugin-closure-compiler-js';
|
import closure from '@ampproject/rollup-plugin-closure-compiler';
|
||||||
|
|
||||||
const plugins = [
|
const plugins = [
|
||||||
closure({
|
closure({
|
||||||
@ -16,7 +16,6 @@ const defaultOutput = {
|
|||||||
sourcemap: true,
|
sourcemap: true,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
export default [{
|
export default [{
|
||||||
input: './js/src/index.js',
|
input: './js/src/index.js',
|
||||||
output: {
|
output: {
|
||||||
|
563
public/yarn.lock
563
public/yarn.lock
@ -2,38 +2,31 @@
|
|||||||
# yarn lockfile v1
|
# yarn lockfile v1
|
||||||
|
|
||||||
|
|
||||||
|
"@ampproject/rollup-plugin-closure-compiler@^0.7.2":
|
||||||
|
version "0.7.2"
|
||||||
|
resolved "https://registry.yarnpkg.com/@ampproject/rollup-plugin-closure-compiler/-/rollup-plugin-closure-compiler-0.7.2.tgz#897bd27d4536a9d57b65ca1b111df6b18c696fe4"
|
||||||
|
dependencies:
|
||||||
|
acorn "5.7.3"
|
||||||
|
google-closure-compiler "20180910.0.0"
|
||||||
|
magic-string "0.25.1"
|
||||||
|
temp-write "3.4.0"
|
||||||
|
|
||||||
"@types/estree@0.0.39":
|
"@types/estree@0.0.39":
|
||||||
version "0.0.39"
|
version "0.0.39"
|
||||||
resolved "https://registry.yarnpkg.com/@types/estree/-/estree-0.0.39.tgz#e177e699ee1b8c22d23174caaa7422644389509f"
|
resolved "https://registry.yarnpkg.com/@types/estree/-/estree-0.0.39.tgz#e177e699ee1b8c22d23174caaa7422644389509f"
|
||||||
|
|
||||||
"@types/node@*":
|
"@types/node@*":
|
||||||
version "10.7.1"
|
version "10.10.1"
|
||||||
resolved "https://registry.yarnpkg.com/@types/node/-/node-10.7.1.tgz#b704d7c259aa40ee052eec678758a68d07132a2e"
|
resolved "https://registry.yarnpkg.com/@types/node/-/node-10.10.1.tgz#d5c96ca246a418404914d180b7fdd625ad18eca6"
|
||||||
|
|
||||||
acorn-dynamic-import@^3.0.0:
|
acorn@5.7.3:
|
||||||
version "3.0.0"
|
version "5.7.3"
|
||||||
resolved "https://registry.yarnpkg.com/acorn-dynamic-import/-/acorn-dynamic-import-3.0.0.tgz#901ceee4c7faaef7e07ad2a47e890675da50a278"
|
resolved "https://registry.yarnpkg.com/acorn/-/acorn-5.7.3.tgz#67aa231bf8812974b85235a96771eb6bd07ea279"
|
||||||
dependencies:
|
|
||||||
acorn "^5.0.0"
|
|
||||||
|
|
||||||
acorn-jsx@^4.1.1:
|
|
||||||
version "4.1.1"
|
|
||||||
resolved "https://registry.yarnpkg.com/acorn-jsx/-/acorn-jsx-4.1.1.tgz#e8e41e48ea2fe0c896740610ab6a4ffd8add225e"
|
|
||||||
dependencies:
|
|
||||||
acorn "^5.0.3"
|
|
||||||
|
|
||||||
acorn@^5.0.0, acorn@^5.0.3, acorn@^5.4.1:
|
|
||||||
version "5.7.1"
|
|
||||||
resolved "https://registry.yarnpkg.com/acorn/-/acorn-5.7.1.tgz#f095829297706a7c9776958c0afc8930a9b9d9d8"
|
|
||||||
|
|
||||||
alphanum-sort@^1.0.0:
|
alphanum-sort@^1.0.0:
|
||||||
version "1.0.2"
|
version "1.0.2"
|
||||||
resolved "https://registry.yarnpkg.com/alphanum-sort/-/alphanum-sort-1.0.2.tgz#97a1119649b211ad33691d9f9f486a8ec9fbe0a3"
|
resolved "https://registry.yarnpkg.com/alphanum-sort/-/alphanum-sort-1.0.2.tgz#97a1119649b211ad33691d9f9f486a8ec9fbe0a3"
|
||||||
|
|
||||||
amdefine@>=0.0.4:
|
|
||||||
version "1.0.1"
|
|
||||||
resolved "https://registry.yarnpkg.com/amdefine/-/amdefine-1.0.1.tgz#4a5282ac164729e93619bcfd3ad151f817ce91f5"
|
|
||||||
|
|
||||||
ansi-regex@^2.0.0:
|
ansi-regex@^2.0.0:
|
||||||
version "2.1.1"
|
version "2.1.1"
|
||||||
resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-2.1.1.tgz#c3b33ab5ee360d86e0e628f0468ae7ef27d654df"
|
resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-2.1.1.tgz#c3b33ab5ee360d86e0e628f0468ae7ef27d654df"
|
||||||
@ -54,23 +47,9 @@ argparse@^1.0.7:
|
|||||||
dependencies:
|
dependencies:
|
||||||
sprintf-js "~1.0.2"
|
sprintf-js "~1.0.2"
|
||||||
|
|
||||||
arr-diff@^2.0.0:
|
|
||||||
version "2.0.0"
|
|
||||||
resolved "https://registry.yarnpkg.com/arr-diff/-/arr-diff-2.0.0.tgz#8f3b827f955a8bd669697e4a4256ac3ceae356cf"
|
|
||||||
dependencies:
|
|
||||||
arr-flatten "^1.0.1"
|
|
||||||
|
|
||||||
arr-flatten@^1.0.1:
|
|
||||||
version "1.1.0"
|
|
||||||
resolved "https://registry.yarnpkg.com/arr-flatten/-/arr-flatten-1.1.0.tgz#36048bbff4e7b47e136644316c99669ea5ae91f1"
|
|
||||||
|
|
||||||
array-unique@^0.2.1:
|
|
||||||
version "0.2.1"
|
|
||||||
resolved "https://registry.yarnpkg.com/array-unique/-/array-unique-0.2.1.tgz#a1d97ccafcbc2625cc70fadceb36a50c58b01a53"
|
|
||||||
|
|
||||||
autoprefixer@^7.1.1:
|
autoprefixer@^7.1.1:
|
||||||
version "7.2.6"
|
version "7.2.6"
|
||||||
resolved "https://registry.yarnpkg.com/autoprefixer/-/autoprefixer-7.2.6.tgz#256672f86f7c735da849c4f07d008abb056067dc"
|
resolved "http://registry.npmjs.org/autoprefixer/-/autoprefixer-7.2.6.tgz#256672f86f7c735da849c4f07d008abb056067dc"
|
||||||
dependencies:
|
dependencies:
|
||||||
browserslist "^2.11.3"
|
browserslist "^2.11.3"
|
||||||
caniuse-lite "^1.0.30000805"
|
caniuse-lite "^1.0.30000805"
|
||||||
@ -109,14 +88,6 @@ brace-expansion@^1.1.7:
|
|||||||
balanced-match "^1.0.0"
|
balanced-match "^1.0.0"
|
||||||
concat-map "0.0.1"
|
concat-map "0.0.1"
|
||||||
|
|
||||||
braces@^1.8.2:
|
|
||||||
version "1.8.5"
|
|
||||||
resolved "https://registry.yarnpkg.com/braces/-/braces-1.8.5.tgz#ba77962e12dff969d6b76711e914b737857bf6a7"
|
|
||||||
dependencies:
|
|
||||||
expand-range "^1.8.1"
|
|
||||||
preserve "^0.2.0"
|
|
||||||
repeat-element "^1.1.2"
|
|
||||||
|
|
||||||
browserslist@^2.0.0, browserslist@^2.11.3:
|
browserslist@^2.0.0, browserslist@^2.11.3:
|
||||||
version "2.11.3"
|
version "2.11.3"
|
||||||
resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-2.11.3.tgz#fe36167aed1bbcde4827ebfe71347a2cc70b99b2"
|
resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-2.11.3.tgz#fe36167aed1bbcde4827ebfe71347a2cc70b99b2"
|
||||||
@ -125,25 +96,12 @@ browserslist@^2.0.0, browserslist@^2.11.3:
|
|||||||
electron-to-chromium "^1.3.30"
|
electron-to-chromium "^1.3.30"
|
||||||
|
|
||||||
browserslist@^4.0.0:
|
browserslist@^4.0.0:
|
||||||
version "4.0.1"
|
version "4.1.1"
|
||||||
resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.0.1.tgz#61c05ce2a5843c7d96166408bc23d58b5416e818"
|
resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.1.1.tgz#328eb4ff1215b12df6589e9ab82f8adaa4fc8cd6"
|
||||||
dependencies:
|
dependencies:
|
||||||
caniuse-lite "^1.0.30000865"
|
caniuse-lite "^1.0.30000884"
|
||||||
electron-to-chromium "^1.3.52"
|
electron-to-chromium "^1.3.62"
|
||||||
node-releases "^1.0.0-alpha.10"
|
node-releases "^1.0.0-alpha.11"
|
||||||
|
|
||||||
buble@^0.19.2:
|
|
||||||
version "0.19.3"
|
|
||||||
resolved "https://registry.yarnpkg.com/buble/-/buble-0.19.3.tgz#01e9412062cff1da6f20342b6ecd72e7bf699d02"
|
|
||||||
dependencies:
|
|
||||||
acorn "^5.4.1"
|
|
||||||
acorn-dynamic-import "^3.0.0"
|
|
||||||
acorn-jsx "^4.1.1"
|
|
||||||
chalk "^2.3.1"
|
|
||||||
magic-string "^0.22.4"
|
|
||||||
minimist "^1.2.0"
|
|
||||||
os-homedir "^1.0.1"
|
|
||||||
vlq "^1.0.0"
|
|
||||||
|
|
||||||
builtin-modules@^1.0.0:
|
builtin-modules@^1.0.0:
|
||||||
version "1.1.1"
|
version "1.1.1"
|
||||||
@ -167,13 +125,13 @@ caniuse-api@^3.0.0:
|
|||||||
lodash.memoize "^4.1.2"
|
lodash.memoize "^4.1.2"
|
||||||
lodash.uniq "^4.5.0"
|
lodash.uniq "^4.5.0"
|
||||||
|
|
||||||
caniuse-lite@^1.0.0, caniuse-lite@^1.0.30000792, caniuse-lite@^1.0.30000805, caniuse-lite@^1.0.30000865:
|
caniuse-lite@^1.0.0, caniuse-lite@^1.0.30000792, caniuse-lite@^1.0.30000805, caniuse-lite@^1.0.30000884:
|
||||||
version "1.0.30000874"
|
version "1.0.30000885"
|
||||||
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30000874.tgz#a641b1f1c420d58d9b132920ef6ba87bbdcd2223"
|
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30000885.tgz#e889e9f8e7e50e769f2a49634c932b8aee622984"
|
||||||
|
|
||||||
chalk@^1.1.3:
|
chalk@^1.0.0, chalk@^1.1.3:
|
||||||
version "1.1.3"
|
version "1.1.3"
|
||||||
resolved "https://registry.yarnpkg.com/chalk/-/chalk-1.1.3.tgz#a8115c55e4a702fe4d150abd3872822a7e09fc98"
|
resolved "http://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz#a8115c55e4a702fe4d150abd3872822a7e09fc98"
|
||||||
dependencies:
|
dependencies:
|
||||||
ansi-styles "^2.2.1"
|
ansi-styles "^2.2.1"
|
||||||
escape-string-regexp "^1.0.2"
|
escape-string-regexp "^1.0.2"
|
||||||
@ -181,7 +139,7 @@ chalk@^1.1.3:
|
|||||||
strip-ansi "^3.0.0"
|
strip-ansi "^3.0.0"
|
||||||
supports-color "^2.0.0"
|
supports-color "^2.0.0"
|
||||||
|
|
||||||
chalk@^2.0.1, chalk@^2.3.1, chalk@^2.4.1:
|
chalk@^2.0.1, chalk@^2.4.1:
|
||||||
version "2.4.1"
|
version "2.4.1"
|
||||||
resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.1.tgz#18c49ab16a037b6eb0152cc83e3471338215b66e"
|
resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.1.tgz#18c49ab16a037b6eb0152cc83e3471338215b66e"
|
||||||
dependencies:
|
dependencies:
|
||||||
@ -220,16 +178,12 @@ coa@~2.0.1:
|
|||||||
q "^1.1.2"
|
q "^1.1.2"
|
||||||
|
|
||||||
color-convert@^1.3.0, color-convert@^1.8.2, color-convert@^1.9.0, color-convert@^1.9.1:
|
color-convert@^1.3.0, color-convert@^1.8.2, color-convert@^1.9.0, color-convert@^1.9.1:
|
||||||
version "1.9.2"
|
version "1.9.3"
|
||||||
resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-1.9.2.tgz#49881b8fba67df12a96bdf3f56c0aab9e7913147"
|
resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-1.9.3.tgz#bb71850690e1f136567de629d2d5471deda4c1e8"
|
||||||
dependencies:
|
dependencies:
|
||||||
color-name "1.1.1"
|
color-name "1.1.3"
|
||||||
|
|
||||||
color-name@1.1.1:
|
color-name@1.1.3, color-name@^1.0.0:
|
||||||
version "1.1.1"
|
|
||||||
resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.1.tgz#4b1415304cf50028ea81643643bd82ea05803689"
|
|
||||||
|
|
||||||
color-name@^1.0.0:
|
|
||||||
version "1.1.3"
|
version "1.1.3"
|
||||||
resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.3.tgz#a7d0558bd89c42f795dd42328f740831ca53bc25"
|
resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.3.tgz#a7d0558bd89c42f795dd42328f740831ca53bc25"
|
||||||
|
|
||||||
@ -281,7 +235,7 @@ colors@~1.1.2:
|
|||||||
|
|
||||||
commander@2.6.0:
|
commander@2.6.0:
|
||||||
version "2.6.0"
|
version "2.6.0"
|
||||||
resolved "https://registry.yarnpkg.com/commander/-/commander-2.6.0.tgz#9df7e52fb2a0cb0fb89058ee80c3104225f37e1d"
|
resolved "http://registry.npmjs.org/commander/-/commander-2.6.0.tgz#9df7e52fb2a0cb0fb89058ee80c3104225f37e1d"
|
||||||
|
|
||||||
concat-map@0.0.1:
|
concat-map@0.0.1:
|
||||||
version "0.0.1"
|
version "0.0.1"
|
||||||
@ -320,8 +274,8 @@ core-util-is@~1.0.0:
|
|||||||
resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7"
|
resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7"
|
||||||
|
|
||||||
cosmiconfig@^5.0.0:
|
cosmiconfig@^5.0.0:
|
||||||
version "5.0.5"
|
version "5.0.6"
|
||||||
resolved "https://registry.yarnpkg.com/cosmiconfig/-/cosmiconfig-5.0.5.tgz#a809e3c2306891ce17ab70359dc8bdf661fe2cd0"
|
resolved "https://registry.yarnpkg.com/cosmiconfig/-/cosmiconfig-5.0.6.tgz#dca6cf680a0bd03589aff684700858c81abeeb39"
|
||||||
dependencies:
|
dependencies:
|
||||||
is-directory "^0.3.1"
|
is-directory "^0.3.1"
|
||||||
js-yaml "^3.9.0"
|
js-yaml "^3.9.0"
|
||||||
@ -351,15 +305,22 @@ css-select-base-adapter@~0.1.0:
|
|||||||
version "0.1.0"
|
version "0.1.0"
|
||||||
resolved "https://registry.yarnpkg.com/css-select-base-adapter/-/css-select-base-adapter-0.1.0.tgz#0102b3d14630df86c3eb9fa9f5456270106cf990"
|
resolved "https://registry.yarnpkg.com/css-select-base-adapter/-/css-select-base-adapter-0.1.0.tgz#0102b3d14630df86c3eb9fa9f5456270106cf990"
|
||||||
|
|
||||||
css-select@~1.3.0-rc0:
|
css-select@^2.0.0:
|
||||||
version "1.3.0-rc0"
|
version "2.0.0"
|
||||||
resolved "https://registry.yarnpkg.com/css-select/-/css-select-1.3.0-rc0.tgz#6f93196aaae737666ea1036a8cb14a8fcb7a9231"
|
resolved "https://registry.yarnpkg.com/css-select/-/css-select-2.0.0.tgz#7aa2921392114831f68db175c0b6a555df74bbd5"
|
||||||
dependencies:
|
dependencies:
|
||||||
boolbase "^1.0.0"
|
boolbase "^1.0.0"
|
||||||
css-what "2.1"
|
css-what "2.1"
|
||||||
domutils "1.5.1"
|
domutils "^1.7.0"
|
||||||
nth-check "^1.0.1"
|
nth-check "^1.0.1"
|
||||||
|
|
||||||
|
css-tree@1.0.0-alpha.28:
|
||||||
|
version "1.0.0-alpha.28"
|
||||||
|
resolved "https://registry.yarnpkg.com/css-tree/-/css-tree-1.0.0-alpha.28.tgz#8e8968190d886c9477bc8d61e96f61af3f7ffa7f"
|
||||||
|
dependencies:
|
||||||
|
mdn-data "~1.1.0"
|
||||||
|
source-map "^0.5.3"
|
||||||
|
|
||||||
css-tree@1.0.0-alpha.29:
|
css-tree@1.0.0-alpha.29:
|
||||||
version "1.0.0-alpha.29"
|
version "1.0.0-alpha.29"
|
||||||
resolved "https://registry.yarnpkg.com/css-tree/-/css-tree-1.0.0-alpha.29.tgz#3fa9d4ef3142cbd1c301e7664c1f352bd82f5a39"
|
resolved "https://registry.yarnpkg.com/css-tree/-/css-tree-1.0.0-alpha.29.tgz#3fa9d4ef3142cbd1c301e7664c1f352bd82f5a39"
|
||||||
@ -367,13 +328,6 @@ css-tree@1.0.0-alpha.29:
|
|||||||
mdn-data "~1.1.0"
|
mdn-data "~1.1.0"
|
||||||
source-map "^0.5.3"
|
source-map "^0.5.3"
|
||||||
|
|
||||||
css-tree@1.0.0-alpha25:
|
|
||||||
version "1.0.0-alpha25"
|
|
||||||
resolved "https://registry.yarnpkg.com/css-tree/-/css-tree-1.0.0-alpha25.tgz#1bbfabfbf6eeef4f01d9108ff2edd0be2fe35597"
|
|
||||||
dependencies:
|
|
||||||
mdn-data "^1.0.0"
|
|
||||||
source-map "^0.5.3"
|
|
||||||
|
|
||||||
css-unit-converter@^1.1.1:
|
css-unit-converter@^1.1.1:
|
||||||
version "1.1.1"
|
version "1.1.1"
|
||||||
resolved "https://registry.yarnpkg.com/css-unit-converter/-/css-unit-converter-1.1.1.tgz#d9b9281adcfd8ced935bdbaba83786897f64e996"
|
resolved "https://registry.yarnpkg.com/css-unit-converter/-/css-unit-converter-1.1.1.tgz#d9b9281adcfd8ced935bdbaba83786897f64e996"
|
||||||
@ -440,8 +394,8 @@ cssnano-util-same-parent@^4.0.0:
|
|||||||
resolved "https://registry.yarnpkg.com/cssnano-util-same-parent/-/cssnano-util-same-parent-4.0.0.tgz#d2a3de1039aa98bc4ec25001fa050330c2a16dac"
|
resolved "https://registry.yarnpkg.com/cssnano-util-same-parent/-/cssnano-util-same-parent-4.0.0.tgz#d2a3de1039aa98bc4ec25001fa050330c2a16dac"
|
||||||
|
|
||||||
cssnano@^4.0.5:
|
cssnano@^4.0.5:
|
||||||
version "4.0.5"
|
version "4.1.0"
|
||||||
resolved "https://registry.yarnpkg.com/cssnano/-/cssnano-4.0.5.tgz#8789b5fdbe7be05d8a0f7e45c4c789ebe712f5aa"
|
resolved "https://registry.yarnpkg.com/cssnano/-/cssnano-4.1.0.tgz#682c37b84b9b7df616450a5a8dc9269b9bd10734"
|
||||||
dependencies:
|
dependencies:
|
||||||
cosmiconfig "^5.0.0"
|
cosmiconfig "^5.0.0"
|
||||||
cssnano-preset-default "^4.0.0"
|
cssnano-preset-default "^4.0.0"
|
||||||
@ -465,17 +419,16 @@ debug@^2.1.2, debug@~2:
|
|||||||
ms "2.0.0"
|
ms "2.0.0"
|
||||||
|
|
||||||
debug@^3.1.0:
|
debug@^3.1.0:
|
||||||
version "3.1.0"
|
version "3.2.5"
|
||||||
resolved "https://registry.yarnpkg.com/debug/-/debug-3.1.0.tgz#5bb5a0672628b64149566ba16819e61518c67261"
|
resolved "https://registry.yarnpkg.com/debug/-/debug-3.2.5.tgz#c2418fbfd7a29f4d4f70ff4cea604d4b64c46407"
|
||||||
dependencies:
|
dependencies:
|
||||||
ms "2.0.0"
|
ms "^2.1.1"
|
||||||
|
|
||||||
define-properties@^1.1.2:
|
define-properties@^1.1.2:
|
||||||
version "1.1.2"
|
version "1.1.3"
|
||||||
resolved "https://registry.yarnpkg.com/define-properties/-/define-properties-1.1.2.tgz#83a73f2fea569898fb737193c8f873caf6d45c94"
|
resolved "https://registry.yarnpkg.com/define-properties/-/define-properties-1.1.3.tgz#cf88da6cbee26fe6db7094f61d870cbd84cee9f1"
|
||||||
dependencies:
|
dependencies:
|
||||||
foreach "^2.0.5"
|
object-keys "^1.0.12"
|
||||||
object-keys "^1.0.8"
|
|
||||||
|
|
||||||
dom-serializer@0:
|
dom-serializer@0:
|
||||||
version "0.1.0"
|
version "0.1.0"
|
||||||
@ -492,9 +445,9 @@ domelementtype@~1.1.1:
|
|||||||
version "1.1.3"
|
version "1.1.3"
|
||||||
resolved "https://registry.yarnpkg.com/domelementtype/-/domelementtype-1.1.3.tgz#bd28773e2642881aec51544924299c5cd822185b"
|
resolved "https://registry.yarnpkg.com/domelementtype/-/domelementtype-1.1.3.tgz#bd28773e2642881aec51544924299c5cd822185b"
|
||||||
|
|
||||||
domutils@1.5.1:
|
domutils@^1.7.0:
|
||||||
version "1.5.1"
|
version "1.7.0"
|
||||||
resolved "https://registry.yarnpkg.com/domutils/-/domutils-1.5.1.tgz#dcd8488a26f563d61079e48c9f7b7e32373682cf"
|
resolved "https://registry.yarnpkg.com/domutils/-/domutils-1.7.0.tgz#56ea341e834e06e6748af7a1cb25da67ea9f8c2a"
|
||||||
dependencies:
|
dependencies:
|
||||||
dom-serializer "0"
|
dom-serializer "0"
|
||||||
domelementtype "1"
|
domelementtype "1"
|
||||||
@ -505,9 +458,9 @@ dot-prop@^4.1.1:
|
|||||||
dependencies:
|
dependencies:
|
||||||
is-obj "^1.0.0"
|
is-obj "^1.0.0"
|
||||||
|
|
||||||
electron-to-chromium@^1.3.30, electron-to-chromium@^1.3.52:
|
electron-to-chromium@^1.3.30, electron-to-chromium@^1.3.62:
|
||||||
version "1.3.55"
|
version "1.3.70"
|
||||||
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.55.tgz#f150e10b20b77d9d41afcca312efe0c3b1a7fdce"
|
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.70.tgz#ded377256d92d81b4257d36c65aa890274afcfd2"
|
||||||
|
|
||||||
entities@~1.1.1:
|
entities@~1.1.1:
|
||||||
version "1.1.1"
|
version "1.1.1"
|
||||||
@ -545,48 +498,12 @@ esprima@^4.0.0:
|
|||||||
version "4.0.1"
|
version "4.0.1"
|
||||||
resolved "https://registry.yarnpkg.com/esprima/-/esprima-4.0.1.tgz#13b04cdb3e6c5d19df91ab6987a8695619b0aa71"
|
resolved "https://registry.yarnpkg.com/esprima/-/esprima-4.0.1.tgz#13b04cdb3e6c5d19df91ab6987a8695619b0aa71"
|
||||||
|
|
||||||
estree-walker@^0.5.2:
|
|
||||||
version "0.5.2"
|
|
||||||
resolved "https://registry.yarnpkg.com/estree-walker/-/estree-walker-0.5.2.tgz#d3850be7529c9580d815600b53126515e146dd39"
|
|
||||||
|
|
||||||
exec-sh@^0.2.0:
|
exec-sh@^0.2.0:
|
||||||
version "0.2.2"
|
version "0.2.2"
|
||||||
resolved "https://registry.yarnpkg.com/exec-sh/-/exec-sh-0.2.2.tgz#2a5e7ffcbd7d0ba2755bdecb16e5a427dfbdec36"
|
resolved "https://registry.yarnpkg.com/exec-sh/-/exec-sh-0.2.2.tgz#2a5e7ffcbd7d0ba2755bdecb16e5a427dfbdec36"
|
||||||
dependencies:
|
dependencies:
|
||||||
merge "^1.2.0"
|
merge "^1.2.0"
|
||||||
|
|
||||||
expand-brackets@^0.1.4:
|
|
||||||
version "0.1.5"
|
|
||||||
resolved "https://registry.yarnpkg.com/expand-brackets/-/expand-brackets-0.1.5.tgz#df07284e342a807cd733ac5af72411e581d1177b"
|
|
||||||
dependencies:
|
|
||||||
is-posix-bracket "^0.1.0"
|
|
||||||
|
|
||||||
expand-range@^1.8.1:
|
|
||||||
version "1.8.2"
|
|
||||||
resolved "https://registry.yarnpkg.com/expand-range/-/expand-range-1.8.2.tgz#a299effd335fe2721ebae8e257ec79644fc85337"
|
|
||||||
dependencies:
|
|
||||||
fill-range "^2.1.0"
|
|
||||||
|
|
||||||
extglob@^0.3.1:
|
|
||||||
version "0.3.2"
|
|
||||||
resolved "https://registry.yarnpkg.com/extglob/-/extglob-0.3.2.tgz#2e18ff3d2f49ab2765cec9023f011daa8d8349a1"
|
|
||||||
dependencies:
|
|
||||||
is-extglob "^1.0.0"
|
|
||||||
|
|
||||||
filename-regex@^2.0.0:
|
|
||||||
version "2.0.1"
|
|
||||||
resolved "https://registry.yarnpkg.com/filename-regex/-/filename-regex-2.0.1.tgz#c1c4b9bee3e09725ddb106b75c1e301fe2f18b26"
|
|
||||||
|
|
||||||
fill-range@^2.1.0:
|
|
||||||
version "2.2.4"
|
|
||||||
resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-2.2.4.tgz#eb1e773abb056dcd8df2bfdf6af59b8b3a936565"
|
|
||||||
dependencies:
|
|
||||||
is-number "^2.1.0"
|
|
||||||
isobject "^2.0.0"
|
|
||||||
randomatic "^3.0.0"
|
|
||||||
repeat-element "^1.1.2"
|
|
||||||
repeat-string "^1.5.2"
|
|
||||||
|
|
||||||
find@~0:
|
find@~0:
|
||||||
version "0.2.9"
|
version "0.2.9"
|
||||||
resolved "https://registry.yarnpkg.com/find/-/find-0.2.9.tgz#4b73f1ff9e56ad91b76e716407fe5ffe6554bb8c"
|
resolved "https://registry.yarnpkg.com/find/-/find-0.2.9.tgz#4b73f1ff9e56ad91b76e716407fe5ffe6554bb8c"
|
||||||
@ -597,44 +514,29 @@ flatten@^1.0.2:
|
|||||||
version "1.0.2"
|
version "1.0.2"
|
||||||
resolved "https://registry.yarnpkg.com/flatten/-/flatten-1.0.2.tgz#dae46a9d78fbe25292258cc1e780a41d95c03782"
|
resolved "https://registry.yarnpkg.com/flatten/-/flatten-1.0.2.tgz#dae46a9d78fbe25292258cc1e780a41d95c03782"
|
||||||
|
|
||||||
for-in@^1.0.1:
|
|
||||||
version "1.0.2"
|
|
||||||
resolved "https://registry.yarnpkg.com/for-in/-/for-in-1.0.2.tgz#81068d295a8142ec0ac726c6e2200c30fb6d5e80"
|
|
||||||
|
|
||||||
for-own@^0.1.4:
|
|
||||||
version "0.1.5"
|
|
||||||
resolved "https://registry.yarnpkg.com/for-own/-/for-own-0.1.5.tgz#5265c681a4f294dabbf17c9509b6763aa84510ce"
|
|
||||||
dependencies:
|
|
||||||
for-in "^1.0.1"
|
|
||||||
|
|
||||||
foreach@^2.0.5:
|
|
||||||
version "2.0.5"
|
|
||||||
resolved "https://registry.yarnpkg.com/foreach/-/foreach-2.0.5.tgz#0bee005018aeb260d0a3af3ae658dd0136ec1b99"
|
|
||||||
|
|
||||||
function-bind@^1.1.0, function-bind@^1.1.1:
|
function-bind@^1.1.0, function-bind@^1.1.1:
|
||||||
version "1.1.1"
|
version "1.1.1"
|
||||||
resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.1.tgz#a56899d3ea3c9bab874bb9773b7c5ede92f4895d"
|
resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.1.tgz#a56899d3ea3c9bab874bb9773b7c5ede92f4895d"
|
||||||
|
|
||||||
glob-base@^0.3.0:
|
google-closure-compiler-linux@^20180910.0.1:
|
||||||
version "0.3.0"
|
version "20180910.0.1"
|
||||||
resolved "https://registry.yarnpkg.com/glob-base/-/glob-base-0.3.0.tgz#dbb164f6221b1c0b1ccf82aea328b497df0ea3c4"
|
resolved "https://registry.yarnpkg.com/google-closure-compiler-linux/-/google-closure-compiler-linux-20180910.0.1.tgz#22567f7f5b605946d23c99c86a3e29a2210386da"
|
||||||
dependencies:
|
|
||||||
glob-parent "^2.0.0"
|
|
||||||
is-glob "^2.0.0"
|
|
||||||
|
|
||||||
glob-parent@^2.0.0:
|
google-closure-compiler-osx@^20180910.0.1:
|
||||||
version "2.0.0"
|
version "20180910.0.1"
|
||||||
resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-2.0.0.tgz#81383d72db054fcccf5336daa902f182f6edbb28"
|
resolved "https://registry.yarnpkg.com/google-closure-compiler-osx/-/google-closure-compiler-osx-20180910.0.1.tgz#83e88bf892038655efd281fad61e3f6377a60afb"
|
||||||
dependencies:
|
|
||||||
is-glob "^2.0.0"
|
|
||||||
|
|
||||||
google-closure-compiler-js@>20170000:
|
google-closure-compiler@20180910.0.0:
|
||||||
version "20180610.0.0"
|
version "20180910.0.0"
|
||||||
resolved "https://registry.yarnpkg.com/google-closure-compiler-js/-/google-closure-compiler-js-20180610.0.0.tgz#df0dbf39ba3977027db2c1beb244368521c9220b"
|
resolved "https://registry.yarnpkg.com/google-closure-compiler/-/google-closure-compiler-20180910.0.0.tgz#74f7fdb16931cce2ba6af17a447d264f46e10c47"
|
||||||
dependencies:
|
dependencies:
|
||||||
|
chalk "^1.0.0"
|
||||||
minimist "^1.2.0"
|
minimist "^1.2.0"
|
||||||
vinyl "^2.0.1"
|
vinyl "^2.0.1"
|
||||||
webpack-core "^0.6.8"
|
vinyl-sourcemaps-apply "^0.2.0"
|
||||||
|
optionalDependencies:
|
||||||
|
google-closure-compiler-linux "^20180910.0.1"
|
||||||
|
google-closure-compiler-osx "^20180910.0.1"
|
||||||
|
|
||||||
graceful-fs@^4.1.2:
|
graceful-fs@^4.1.2:
|
||||||
version "4.1.11"
|
version "4.1.11"
|
||||||
@ -700,13 +602,9 @@ is-arrayish@^0.3.1:
|
|||||||
version "0.3.2"
|
version "0.3.2"
|
||||||
resolved "https://registry.yarnpkg.com/is-arrayish/-/is-arrayish-0.3.2.tgz#4574a2ae56f7ab206896fb431eaeed066fdf8f03"
|
resolved "https://registry.yarnpkg.com/is-arrayish/-/is-arrayish-0.3.2.tgz#4574a2ae56f7ab206896fb431eaeed066fdf8f03"
|
||||||
|
|
||||||
is-buffer@^1.1.5:
|
|
||||||
version "1.1.6"
|
|
||||||
resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-1.1.6.tgz#efaa2ea9daa0d7ab2ea13a97b2b8ad51fefbe8be"
|
|
||||||
|
|
||||||
is-builtin-module@^1.0.0:
|
is-builtin-module@^1.0.0:
|
||||||
version "1.0.0"
|
version "1.0.0"
|
||||||
resolved "https://registry.yarnpkg.com/is-builtin-module/-/is-builtin-module-1.0.0.tgz#540572d34f7ac3119f8f76c30cbc1b1e037affbe"
|
resolved "http://registry.npmjs.org/is-builtin-module/-/is-builtin-module-1.0.0.tgz#540572d34f7ac3119f8f76c30cbc1b1e037affbe"
|
||||||
dependencies:
|
dependencies:
|
||||||
builtin-modules "^1.0.0"
|
builtin-modules "^1.0.0"
|
||||||
|
|
||||||
@ -733,51 +631,9 @@ is-directory@^0.3.1:
|
|||||||
version "0.3.1"
|
version "0.3.1"
|
||||||
resolved "https://registry.yarnpkg.com/is-directory/-/is-directory-0.3.1.tgz#61339b6f2475fc772fd9c9d83f5c8575dc154ae1"
|
resolved "https://registry.yarnpkg.com/is-directory/-/is-directory-0.3.1.tgz#61339b6f2475fc772fd9c9d83f5c8575dc154ae1"
|
||||||
|
|
||||||
is-dotfile@^1.0.0:
|
|
||||||
version "1.0.3"
|
|
||||||
resolved "https://registry.yarnpkg.com/is-dotfile/-/is-dotfile-1.0.3.tgz#a6a2f32ffd2dfb04f5ca25ecd0f6b83cf798a1e1"
|
|
||||||
|
|
||||||
is-equal-shallow@^0.1.3:
|
|
||||||
version "0.1.3"
|
|
||||||
resolved "https://registry.yarnpkg.com/is-equal-shallow/-/is-equal-shallow-0.1.3.tgz#2238098fc221de0bcfa5d9eac4c45d638aa1c534"
|
|
||||||
dependencies:
|
|
||||||
is-primitive "^2.0.0"
|
|
||||||
|
|
||||||
is-extendable@^0.1.1:
|
|
||||||
version "0.1.1"
|
|
||||||
resolved "https://registry.yarnpkg.com/is-extendable/-/is-extendable-0.1.1.tgz#62b110e289a471418e3ec36a617d472e301dfc89"
|
|
||||||
|
|
||||||
is-extglob@^1.0.0:
|
|
||||||
version "1.0.0"
|
|
||||||
resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-1.0.0.tgz#ac468177c4943405a092fc8f29760c6ffc6206c0"
|
|
||||||
|
|
||||||
is-glob@^2.0.0, is-glob@^2.0.1:
|
|
||||||
version "2.0.1"
|
|
||||||
resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-2.0.1.tgz#d096f926a3ded5600f3fdfd91198cb0888c2d863"
|
|
||||||
dependencies:
|
|
||||||
is-extglob "^1.0.0"
|
|
||||||
|
|
||||||
is-number@^2.1.0:
|
|
||||||
version "2.1.0"
|
|
||||||
resolved "https://registry.yarnpkg.com/is-number/-/is-number-2.1.0.tgz#01fcbbb393463a548f2f466cce16dece49db908f"
|
|
||||||
dependencies:
|
|
||||||
kind-of "^3.0.2"
|
|
||||||
|
|
||||||
is-number@^4.0.0:
|
|
||||||
version "4.0.0"
|
|
||||||
resolved "https://registry.yarnpkg.com/is-number/-/is-number-4.0.0.tgz#0026e37f5454d73e356dfe6564699867c6a7f0ff"
|
|
||||||
|
|
||||||
is-obj@^1.0.0:
|
is-obj@^1.0.0:
|
||||||
version "1.0.1"
|
version "1.0.1"
|
||||||
resolved "https://registry.yarnpkg.com/is-obj/-/is-obj-1.0.1.tgz#3e4729ac1f5fde025cd7d83a896dab9f4f67db0f"
|
resolved "http://registry.npmjs.org/is-obj/-/is-obj-1.0.1.tgz#3e4729ac1f5fde025cd7d83a896dab9f4f67db0f"
|
||||||
|
|
||||||
is-posix-bracket@^0.1.0:
|
|
||||||
version "0.1.1"
|
|
||||||
resolved "https://registry.yarnpkg.com/is-posix-bracket/-/is-posix-bracket-0.1.1.tgz#3334dc79774368e92f016e6fbc0a88f5cd6e6bc4"
|
|
||||||
|
|
||||||
is-primitive@^2.0.0:
|
|
||||||
version "2.0.0"
|
|
||||||
resolved "https://registry.yarnpkg.com/is-primitive/-/is-primitive-2.0.0.tgz#207bab91638499c07b2adf240a41a87210034575"
|
|
||||||
|
|
||||||
is-regex@^1.0.4:
|
is-regex@^1.0.4:
|
||||||
version "1.0.4"
|
version "1.0.4"
|
||||||
@ -789,6 +645,10 @@ is-resolvable@^1.0.0:
|
|||||||
version "1.1.0"
|
version "1.1.0"
|
||||||
resolved "https://registry.yarnpkg.com/is-resolvable/-/is-resolvable-1.1.0.tgz#fb18f87ce1feb925169c9a407c19318a3206ed88"
|
resolved "https://registry.yarnpkg.com/is-resolvable/-/is-resolvable-1.1.0.tgz#fb18f87ce1feb925169c9a407c19318a3206ed88"
|
||||||
|
|
||||||
|
is-stream@^1.1.0:
|
||||||
|
version "1.1.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-1.1.0.tgz#12d4a3dd4e68e0b79ceb8dbc84173ae80d91ca44"
|
||||||
|
|
||||||
is-svg@^3.0.0:
|
is-svg@^3.0.0:
|
||||||
version "3.0.0"
|
version "3.0.0"
|
||||||
resolved "https://registry.yarnpkg.com/is-svg/-/is-svg-3.0.0.tgz#9321dbd29c212e5ca99c4fa9794c714bcafa2f75"
|
resolved "https://registry.yarnpkg.com/is-svg/-/is-svg-3.0.0.tgz#9321dbd29c212e5ca99c4fa9794c714bcafa2f75"
|
||||||
@ -799,7 +659,7 @@ is-symbol@^1.0.1:
|
|||||||
version "1.0.1"
|
version "1.0.1"
|
||||||
resolved "https://registry.yarnpkg.com/is-symbol/-/is-symbol-1.0.1.tgz#3cc59f00025194b6ab2e38dbae6689256b660572"
|
resolved "https://registry.yarnpkg.com/is-symbol/-/is-symbol-1.0.1.tgz#3cc59f00025194b6ab2e38dbae6689256b660572"
|
||||||
|
|
||||||
isarray@1.0.0, isarray@~1.0.0:
|
isarray@~1.0.0:
|
||||||
version "1.0.0"
|
version "1.0.0"
|
||||||
resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11"
|
resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11"
|
||||||
|
|
||||||
@ -807,44 +667,21 @@ isnumeric@^0.2.0:
|
|||||||
version "0.2.0"
|
version "0.2.0"
|
||||||
resolved "https://registry.yarnpkg.com/isnumeric/-/isnumeric-0.2.0.tgz#a2347ba360de19e33d0ffd590fddf7755cbf2e64"
|
resolved "https://registry.yarnpkg.com/isnumeric/-/isnumeric-0.2.0.tgz#a2347ba360de19e33d0ffd590fddf7755cbf2e64"
|
||||||
|
|
||||||
isobject@^2.0.0:
|
|
||||||
version "2.1.0"
|
|
||||||
resolved "https://registry.yarnpkg.com/isobject/-/isobject-2.1.0.tgz#f065561096a3f1da2ef46272f815c840d87e0c89"
|
|
||||||
dependencies:
|
|
||||||
isarray "1.0.0"
|
|
||||||
|
|
||||||
js-base64@^2.1.9:
|
js-base64@^2.1.9:
|
||||||
version "2.4.8"
|
version "2.4.9"
|
||||||
resolved "https://registry.yarnpkg.com/js-base64/-/js-base64-2.4.8.tgz#57a9b130888f956834aa40c5b165ba59c758f033"
|
resolved "https://registry.yarnpkg.com/js-base64/-/js-base64-2.4.9.tgz#748911fb04f48a60c4771b375cac45a80df11c03"
|
||||||
|
|
||||||
js-yaml@^3.9.0:
|
js-yaml@^3.12.0, js-yaml@^3.9.0:
|
||||||
version "3.12.0"
|
version "3.12.0"
|
||||||
resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.12.0.tgz#eaed656ec8344f10f527c6bfa1b6e2244de167d1"
|
resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.12.0.tgz#eaed656ec8344f10f527c6bfa1b6e2244de167d1"
|
||||||
dependencies:
|
dependencies:
|
||||||
argparse "^1.0.7"
|
argparse "^1.0.7"
|
||||||
esprima "^4.0.0"
|
esprima "^4.0.0"
|
||||||
|
|
||||||
js-yaml@~3.10.0:
|
|
||||||
version "3.10.0"
|
|
||||||
resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.10.0.tgz#2e78441646bd4682e963f22b6e92823c309c62dc"
|
|
||||||
dependencies:
|
|
||||||
argparse "^1.0.7"
|
|
||||||
esprima "^4.0.0"
|
|
||||||
|
|
||||||
json-parse-better-errors@^1.0.1:
|
json-parse-better-errors@^1.0.1:
|
||||||
version "1.0.2"
|
version "1.0.2"
|
||||||
resolved "https://registry.yarnpkg.com/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz#bb867cfb3450e69107c131d1c514bab3dc8bcaa9"
|
resolved "https://registry.yarnpkg.com/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz#bb867cfb3450e69107c131d1c514bab3dc8bcaa9"
|
||||||
|
|
||||||
kind-of@^3.0.2:
|
|
||||||
version "3.2.2"
|
|
||||||
resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-3.2.2.tgz#31ea21a734bab9bbb0f32466d893aea51e4a3c64"
|
|
||||||
dependencies:
|
|
||||||
is-buffer "^1.1.5"
|
|
||||||
|
|
||||||
kind-of@^6.0.0:
|
|
||||||
version "6.0.2"
|
|
||||||
resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-6.0.2.tgz#01146b36a6218e64e58f3a8d66de5d7fc6f6d051"
|
|
||||||
|
|
||||||
load-json-file@^4.0.0:
|
load-json-file@^4.0.0:
|
||||||
version "4.0.0"
|
version "4.0.0"
|
||||||
resolved "https://registry.yarnpkg.com/load-json-file/-/load-json-file-4.0.0.tgz#2f5f45ab91e33216234fd53adab668eb4ec0993b"
|
resolved "https://registry.yarnpkg.com/load-json-file/-/load-json-file-4.0.0.tgz#2f5f45ab91e33216234fd53adab668eb4ec0993b"
|
||||||
@ -880,24 +717,26 @@ lodash.uniq@^4.5.0:
|
|||||||
resolved "https://registry.yarnpkg.com/lodash.uniq/-/lodash.uniq-4.5.0.tgz#d0225373aeb652adc1bc82e4945339a842754773"
|
resolved "https://registry.yarnpkg.com/lodash.uniq/-/lodash.uniq-4.5.0.tgz#d0225373aeb652adc1bc82e4945339a842754773"
|
||||||
|
|
||||||
lodash@^4.5.1:
|
lodash@^4.5.1:
|
||||||
version "4.17.10"
|
version "4.17.11"
|
||||||
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.10.tgz#1b7793cf7259ea38fb3661d4d38b3260af8ae4e7"
|
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.11.tgz#b39ea6229ef607ecd89e2c8df12536891cac9b8d"
|
||||||
|
|
||||||
magic-string@^0.22.4:
|
magic-string@0.25.1:
|
||||||
version "0.22.5"
|
version "0.25.1"
|
||||||
resolved "https://registry.yarnpkg.com/magic-string/-/magic-string-0.22.5.tgz#8e9cf5afddf44385c1da5bc2a6a0dbd10b03657e"
|
resolved "https://registry.yarnpkg.com/magic-string/-/magic-string-0.25.1.tgz#b1c248b399cd7485da0fe7385c2fc7011843266e"
|
||||||
dependencies:
|
dependencies:
|
||||||
vlq "^0.2.2"
|
sourcemap-codec "^1.4.1"
|
||||||
|
|
||||||
|
make-dir@^1.0.0:
|
||||||
|
version "1.3.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/make-dir/-/make-dir-1.3.0.tgz#79c1033b80515bd6d24ec9933e860ca75ee27f0c"
|
||||||
|
dependencies:
|
||||||
|
pify "^3.0.0"
|
||||||
|
|
||||||
math-expression-evaluator@^1.2.14:
|
math-expression-evaluator@^1.2.14:
|
||||||
version "1.2.17"
|
version "1.2.17"
|
||||||
resolved "https://registry.yarnpkg.com/math-expression-evaluator/-/math-expression-evaluator-1.2.17.tgz#de819fdbcd84dccd8fae59c6aeb79615b9d266ac"
|
resolved "https://registry.yarnpkg.com/math-expression-evaluator/-/math-expression-evaluator-1.2.17.tgz#de819fdbcd84dccd8fae59c6aeb79615b9d266ac"
|
||||||
|
|
||||||
math-random@^1.0.1:
|
mdn-data@~1.1.0:
|
||||||
version "1.0.1"
|
|
||||||
resolved "https://registry.yarnpkg.com/math-random/-/math-random-1.0.1.tgz#8b3aac588b8a66e4975e3cdea67f7bb329601fac"
|
|
||||||
|
|
||||||
mdn-data@^1.0.0, mdn-data@~1.1.0:
|
|
||||||
version "1.1.4"
|
version "1.1.4"
|
||||||
resolved "https://registry.yarnpkg.com/mdn-data/-/mdn-data-1.1.4.tgz#50b5d4ffc4575276573c4eedb8780812a8419f01"
|
resolved "https://registry.yarnpkg.com/mdn-data/-/mdn-data-1.1.4.tgz#50b5d4ffc4575276573c4eedb8780812a8419f01"
|
||||||
|
|
||||||
@ -905,24 +744,6 @@ merge@^1.2.0:
|
|||||||
version "1.2.0"
|
version "1.2.0"
|
||||||
resolved "https://registry.yarnpkg.com/merge/-/merge-1.2.0.tgz#7531e39d4949c281a66b8c5a6e0265e8b05894da"
|
resolved "https://registry.yarnpkg.com/merge/-/merge-1.2.0.tgz#7531e39d4949c281a66b8c5a6e0265e8b05894da"
|
||||||
|
|
||||||
micromatch@^2.3.11:
|
|
||||||
version "2.3.11"
|
|
||||||
resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-2.3.11.tgz#86677c97d1720b363431d04d0d15293bd38c1565"
|
|
||||||
dependencies:
|
|
||||||
arr-diff "^2.0.0"
|
|
||||||
array-unique "^0.2.1"
|
|
||||||
braces "^1.8.2"
|
|
||||||
expand-brackets "^0.1.4"
|
|
||||||
extglob "^0.3.1"
|
|
||||||
filename-regex "^2.0.0"
|
|
||||||
is-extglob "^1.0.0"
|
|
||||||
is-glob "^2.0.1"
|
|
||||||
kind-of "^3.0.2"
|
|
||||||
normalize-path "^2.0.1"
|
|
||||||
object.omit "^2.0.0"
|
|
||||||
parse-glob "^3.0.4"
|
|
||||||
regex-cache "^0.4.2"
|
|
||||||
|
|
||||||
minimatch@^3.0.0:
|
minimatch@^3.0.0:
|
||||||
version "3.0.4"
|
version "3.0.4"
|
||||||
resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.4.tgz#5166e286457f03306064be5497e8dbb0c3d32083"
|
resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.4.tgz#5166e286457f03306064be5497e8dbb0c3d32083"
|
||||||
@ -931,15 +752,15 @@ minimatch@^3.0.0:
|
|||||||
|
|
||||||
minimist@0.0.8:
|
minimist@0.0.8:
|
||||||
version "0.0.8"
|
version "0.0.8"
|
||||||
resolved "https://registry.yarnpkg.com/minimist/-/minimist-0.0.8.tgz#857fcabfc3397d2625b8228262e86aa7a011b05d"
|
resolved "http://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz#857fcabfc3397d2625b8228262e86aa7a011b05d"
|
||||||
|
|
||||||
minimist@^1.2.0:
|
minimist@^1.2.0:
|
||||||
version "1.2.0"
|
version "1.2.0"
|
||||||
resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.0.tgz#a35008b20f41383eec1fb914f4cd5df79a264284"
|
resolved "http://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz#a35008b20f41383eec1fb914f4cd5df79a264284"
|
||||||
|
|
||||||
mkdirp@~0.5.1:
|
mkdirp@~0.5.1:
|
||||||
version "0.5.1"
|
version "0.5.1"
|
||||||
resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.1.tgz#30057438eac6cf7f8c4767f38648d6697d75c903"
|
resolved "http://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz#30057438eac6cf7f8c4767f38648d6697d75c903"
|
||||||
dependencies:
|
dependencies:
|
||||||
minimist "0.0.8"
|
minimist "0.0.8"
|
||||||
|
|
||||||
@ -947,9 +768,13 @@ ms@2.0.0:
|
|||||||
version "2.0.0"
|
version "2.0.0"
|
||||||
resolved "https://registry.yarnpkg.com/ms/-/ms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8"
|
resolved "https://registry.yarnpkg.com/ms/-/ms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8"
|
||||||
|
|
||||||
node-releases@^1.0.0-alpha.10:
|
ms@^2.1.1:
|
||||||
version "1.0.0-alpha.10"
|
version "2.1.1"
|
||||||
resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-1.0.0-alpha.10.tgz#61c8d5f9b5b2e05d84eba941d05b6f5202f68a2a"
|
resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.1.tgz#30a5864eb3ebb0a66f2ebe6d727af06a09d86e0a"
|
||||||
|
|
||||||
|
node-releases@^1.0.0-alpha.11:
|
||||||
|
version "1.0.0-alpha.11"
|
||||||
|
resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-1.0.0-alpha.11.tgz#73c810acc2e5b741a17ddfbb39dfca9ab9359d8a"
|
||||||
dependencies:
|
dependencies:
|
||||||
semver "^5.3.0"
|
semver "^5.3.0"
|
||||||
|
|
||||||
@ -962,19 +787,13 @@ normalize-package-data@^2.3.2:
|
|||||||
semver "2 || 3 || 4 || 5"
|
semver "2 || 3 || 4 || 5"
|
||||||
validate-npm-package-license "^3.0.1"
|
validate-npm-package-license "^3.0.1"
|
||||||
|
|
||||||
normalize-path@^2.0.1:
|
|
||||||
version "2.1.1"
|
|
||||||
resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-2.1.1.tgz#1ab28b556e198363a8c1a6f7e6fa20137fe6aed9"
|
|
||||||
dependencies:
|
|
||||||
remove-trailing-separator "^1.0.1"
|
|
||||||
|
|
||||||
normalize-range@^0.1.2:
|
normalize-range@^0.1.2:
|
||||||
version "0.1.2"
|
version "0.1.2"
|
||||||
resolved "https://registry.yarnpkg.com/normalize-range/-/normalize-range-0.1.2.tgz#2d10c06bdfd312ea9777695a4d28439456b75942"
|
resolved "https://registry.yarnpkg.com/normalize-range/-/normalize-range-0.1.2.tgz#2d10c06bdfd312ea9777695a4d28439456b75942"
|
||||||
|
|
||||||
normalize-url@^3.0.0:
|
normalize-url@^3.0.0:
|
||||||
version "3.2.0"
|
version "3.3.0"
|
||||||
resolved "https://registry.yarnpkg.com/normalize-url/-/normalize-url-3.2.0.tgz#98d0948afc82829f374320f405fe9ca55a5f8567"
|
resolved "https://registry.yarnpkg.com/normalize-url/-/normalize-url-3.3.0.tgz#b2e1c4dc4f7c6d57743df733a4f5978d18650559"
|
||||||
|
|
||||||
nth-check@^1.0.1:
|
nth-check@^1.0.1:
|
||||||
version "1.0.1"
|
version "1.0.1"
|
||||||
@ -986,7 +805,7 @@ num2fraction@^1.2.2:
|
|||||||
version "1.2.2"
|
version "1.2.2"
|
||||||
resolved "https://registry.yarnpkg.com/num2fraction/-/num2fraction-1.2.2.tgz#6f682b6a027a4e9ddfa4564cd2589d1d4e669ede"
|
resolved "https://registry.yarnpkg.com/num2fraction/-/num2fraction-1.2.2.tgz#6f682b6a027a4e9ddfa4564cd2589d1d4e669ede"
|
||||||
|
|
||||||
object-keys@^1.0.8:
|
object-keys@^1.0.12:
|
||||||
version "1.0.12"
|
version "1.0.12"
|
||||||
resolved "https://registry.yarnpkg.com/object-keys/-/object-keys-1.0.12.tgz#09c53855377575310cca62f55bb334abff7b3ed2"
|
resolved "https://registry.yarnpkg.com/object-keys/-/object-keys-1.0.12.tgz#09c53855377575310cca62f55bb334abff7b3ed2"
|
||||||
|
|
||||||
@ -997,13 +816,6 @@ object.getownpropertydescriptors@^2.0.3:
|
|||||||
define-properties "^1.1.2"
|
define-properties "^1.1.2"
|
||||||
es-abstract "^1.5.1"
|
es-abstract "^1.5.1"
|
||||||
|
|
||||||
object.omit@^2.0.0:
|
|
||||||
version "2.0.1"
|
|
||||||
resolved "https://registry.yarnpkg.com/object.omit/-/object.omit-2.0.1.tgz#1a9c744829f39dbb858c76ca3579ae2a54ebd1fa"
|
|
||||||
dependencies:
|
|
||||||
for-own "^0.1.4"
|
|
||||||
is-extendable "^0.1.1"
|
|
||||||
|
|
||||||
object.values@^1.0.4:
|
object.values@^1.0.4:
|
||||||
version "1.0.4"
|
version "1.0.4"
|
||||||
resolved "https://registry.yarnpkg.com/object.values/-/object.values-1.0.4.tgz#e524da09b4f66ff05df457546ec72ac99f13069a"
|
resolved "https://registry.yarnpkg.com/object.values/-/object.values-1.0.4.tgz#e524da09b4f66ff05df457546ec72ac99f13069a"
|
||||||
@ -1018,21 +830,8 @@ on-headers@^1.0.0:
|
|||||||
resolved "https://registry.yarnpkg.com/on-headers/-/on-headers-1.0.1.tgz#928f5d0f470d49342651ea6794b0857c100693f7"
|
resolved "https://registry.yarnpkg.com/on-headers/-/on-headers-1.0.1.tgz#928f5d0f470d49342651ea6794b0857c100693f7"
|
||||||
|
|
||||||
onecolor@^3.0.4:
|
onecolor@^3.0.4:
|
||||||
version "3.0.5"
|
version "3.1.0"
|
||||||
resolved "https://registry.yarnpkg.com/onecolor/-/onecolor-3.0.5.tgz#36eff32201379efdf1180fb445e51a8e2425f9f6"
|
resolved "https://registry.yarnpkg.com/onecolor/-/onecolor-3.1.0.tgz#b72522270a49569ac20d244b3cd40fe157fda4d2"
|
||||||
|
|
||||||
os-homedir@^1.0.1:
|
|
||||||
version "1.0.2"
|
|
||||||
resolved "https://registry.yarnpkg.com/os-homedir/-/os-homedir-1.0.2.tgz#ffbc4988336e0e833de0c168c7ef152121aa7fb3"
|
|
||||||
|
|
||||||
parse-glob@^3.0.4:
|
|
||||||
version "3.0.4"
|
|
||||||
resolved "https://registry.yarnpkg.com/parse-glob/-/parse-glob-3.0.4.tgz#b2c376cfb11f35513badd173ef0bb6e3a388391c"
|
|
||||||
dependencies:
|
|
||||||
glob-base "^0.3.0"
|
|
||||||
is-dotfile "^1.0.0"
|
|
||||||
is-extglob "^1.0.0"
|
|
||||||
is-glob "^2.0.0"
|
|
||||||
|
|
||||||
parse-json@^4.0.0:
|
parse-json@^4.0.0:
|
||||||
version "4.0.0"
|
version "4.0.0"
|
||||||
@ -1236,7 +1035,7 @@ postcss-custom-media@^6.0.0:
|
|||||||
|
|
||||||
postcss-custom-properties@^6.1.0:
|
postcss-custom-properties@^6.1.0:
|
||||||
version "6.3.1"
|
version "6.3.1"
|
||||||
resolved "https://registry.yarnpkg.com/postcss-custom-properties/-/postcss-custom-properties-6.3.1.tgz#5c52abde313d7ec9368c4abf67d27a656cba8b39"
|
resolved "http://registry.npmjs.org/postcss-custom-properties/-/postcss-custom-properties-6.3.1.tgz#5c52abde313d7ec9368c4abf67d27a656cba8b39"
|
||||||
dependencies:
|
dependencies:
|
||||||
balanced-match "^1.0.0"
|
balanced-match "^1.0.0"
|
||||||
postcss "^6.0.18"
|
postcss "^6.0.18"
|
||||||
@ -1318,8 +1117,8 @@ postcss-media-query-parser@^0.2.3:
|
|||||||
resolved "https://registry.yarnpkg.com/postcss-media-query-parser/-/postcss-media-query-parser-0.2.3.tgz#27b39c6f4d94f81b1a73b8f76351c609e5cef244"
|
resolved "https://registry.yarnpkg.com/postcss-media-query-parser/-/postcss-media-query-parser-0.2.3.tgz#27b39c6f4d94f81b1a73b8f76351c609e5cef244"
|
||||||
|
|
||||||
postcss-merge-longhand@^4.0.0:
|
postcss-merge-longhand@^4.0.0:
|
||||||
version "4.0.4"
|
version "4.0.5"
|
||||||
resolved "https://registry.yarnpkg.com/postcss-merge-longhand/-/postcss-merge-longhand-4.0.4.tgz#bffc7c6ffa146591c993a0bb8373d65f9a06d4d0"
|
resolved "https://registry.yarnpkg.com/postcss-merge-longhand/-/postcss-merge-longhand-4.0.5.tgz#00898d72347fc7e40bb564b11bdc08119c599b59"
|
||||||
dependencies:
|
dependencies:
|
||||||
css-color-names "0.0.4"
|
css-color-names "0.0.4"
|
||||||
postcss "^6.0.0"
|
postcss "^6.0.0"
|
||||||
@ -1454,8 +1253,8 @@ postcss-normalize-whitespace@^4.0.0:
|
|||||||
postcss-value-parser "^3.0.0"
|
postcss-value-parser "^3.0.0"
|
||||||
|
|
||||||
postcss-ordered-values@^4.0.0:
|
postcss-ordered-values@^4.0.0:
|
||||||
version "4.0.0"
|
version "4.1.0"
|
||||||
resolved "https://registry.yarnpkg.com/postcss-ordered-values/-/postcss-ordered-values-4.0.0.tgz#58b40c74f72e022eb34152c12e4b0f9354482fc2"
|
resolved "https://registry.yarnpkg.com/postcss-ordered-values/-/postcss-ordered-values-4.1.0.tgz#2c769d5d44aa3c7c907b8be2e997ed19dfd8d50a"
|
||||||
dependencies:
|
dependencies:
|
||||||
cssnano-util-get-arguments "^4.0.0"
|
cssnano-util-get-arguments "^4.0.0"
|
||||||
postcss "^6.0.0"
|
postcss "^6.0.0"
|
||||||
@ -1551,7 +1350,7 @@ postcss-value-parser@^3.0.0, postcss-value-parser@^3.2.3, postcss-value-parser@^
|
|||||||
|
|
||||||
postcss-values-parser@^1.5.0:
|
postcss-values-parser@^1.5.0:
|
||||||
version "1.5.0"
|
version "1.5.0"
|
||||||
resolved "https://registry.yarnpkg.com/postcss-values-parser/-/postcss-values-parser-1.5.0.tgz#5d9fa63e2bcb0179ce48f3235303765eb89f3047"
|
resolved "http://registry.npmjs.org/postcss-values-parser/-/postcss-values-parser-1.5.0.tgz#5d9fa63e2bcb0179ce48f3235303765eb89f3047"
|
||||||
dependencies:
|
dependencies:
|
||||||
flatten "^1.0.2"
|
flatten "^1.0.2"
|
||||||
indexes-of "^1.0.1"
|
indexes-of "^1.0.1"
|
||||||
@ -1582,10 +1381,6 @@ postcss@^7.0.1:
|
|||||||
source-map "^0.6.1"
|
source-map "^0.6.1"
|
||||||
supports-color "^5.4.0"
|
supports-color "^5.4.0"
|
||||||
|
|
||||||
preserve@^0.2.0:
|
|
||||||
version "0.2.0"
|
|
||||||
resolved "https://registry.yarnpkg.com/preserve/-/preserve-0.2.0.tgz#815ed1f6ebc65926f865b310c0713bcb3315ce4b"
|
|
||||||
|
|
||||||
process-nextick-args@^2.0.0, process-nextick-args@~2.0.0:
|
process-nextick-args@^2.0.0, process-nextick-args@~2.0.0:
|
||||||
version "2.0.0"
|
version "2.0.0"
|
||||||
resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-2.0.0.tgz#a37d732f4271b4ab1ad070d35508e8290788ffaa"
|
resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-2.0.0.tgz#a37d732f4271b4ab1ad070d35508e8290788ffaa"
|
||||||
@ -1594,14 +1389,6 @@ q@^1.1.2:
|
|||||||
version "1.5.1"
|
version "1.5.1"
|
||||||
resolved "https://registry.yarnpkg.com/q/-/q-1.5.1.tgz#7e32f75b41381291d04611f1bf14109ac00651d7"
|
resolved "https://registry.yarnpkg.com/q/-/q-1.5.1.tgz#7e32f75b41381291d04611f1bf14109ac00651d7"
|
||||||
|
|
||||||
randomatic@^3.0.0:
|
|
||||||
version "3.1.0"
|
|
||||||
resolved "https://registry.yarnpkg.com/randomatic/-/randomatic-3.1.0.tgz#36f2ca708e9e567f5ed2ec01949026d50aa10116"
|
|
||||||
dependencies:
|
|
||||||
is-number "^4.0.0"
|
|
||||||
kind-of "^6.0.0"
|
|
||||||
math-random "^1.0.1"
|
|
||||||
|
|
||||||
read-cache@^1.0.0:
|
read-cache@^1.0.0:
|
||||||
version "1.0.0"
|
version "1.0.0"
|
||||||
resolved "https://registry.yarnpkg.com/read-cache/-/read-cache-1.0.0.tgz#e664ef31161166c9751cdbe8dbcf86b5fb58f774"
|
resolved "https://registry.yarnpkg.com/read-cache/-/read-cache-1.0.0.tgz#e664ef31161166c9751cdbe8dbcf86b5fb58f774"
|
||||||
@ -1618,7 +1405,7 @@ read-pkg@^3.0.0:
|
|||||||
|
|
||||||
readable-stream@^2.3.5:
|
readable-stream@^2.3.5:
|
||||||
version "2.3.6"
|
version "2.3.6"
|
||||||
resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.3.6.tgz#b11c27d88b8ff1fbe070643cf94b0c79ae1b0aaf"
|
resolved "http://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz#b11c27d88b8ff1fbe070643cf94b0c79ae1b0aaf"
|
||||||
dependencies:
|
dependencies:
|
||||||
core-util-is "~1.0.0"
|
core-util-is "~1.0.0"
|
||||||
inherits "~2.0.3"
|
inherits "~2.0.3"
|
||||||
@ -1630,15 +1417,15 @@ readable-stream@^2.3.5:
|
|||||||
|
|
||||||
reduce-css-calc@^1.2.7:
|
reduce-css-calc@^1.2.7:
|
||||||
version "1.3.0"
|
version "1.3.0"
|
||||||
resolved "https://registry.yarnpkg.com/reduce-css-calc/-/reduce-css-calc-1.3.0.tgz#747c914e049614a4c9cfbba629871ad1d2927716"
|
resolved "http://registry.npmjs.org/reduce-css-calc/-/reduce-css-calc-1.3.0.tgz#747c914e049614a4c9cfbba629871ad1d2927716"
|
||||||
dependencies:
|
dependencies:
|
||||||
balanced-match "^0.4.2"
|
balanced-match "^0.4.2"
|
||||||
math-expression-evaluator "^1.2.14"
|
math-expression-evaluator "^1.2.14"
|
||||||
reduce-function-call "^1.0.1"
|
reduce-function-call "^1.0.1"
|
||||||
|
|
||||||
reduce-css-calc@^2.0.0:
|
reduce-css-calc@^2.0.0:
|
||||||
version "2.1.4"
|
version "2.1.5"
|
||||||
resolved "https://registry.yarnpkg.com/reduce-css-calc/-/reduce-css-calc-2.1.4.tgz#c20e9cda8445ad73d4ff4bea960c6f8353791708"
|
resolved "https://registry.yarnpkg.com/reduce-css-calc/-/reduce-css-calc-2.1.5.tgz#f283712f0c9708ef952d328f4b16112d57b03714"
|
||||||
dependencies:
|
dependencies:
|
||||||
css-unit-converter "^1.1.1"
|
css-unit-converter "^1.1.1"
|
||||||
postcss-value-parser "^3.3.0"
|
postcss-value-parser "^3.3.0"
|
||||||
@ -1653,24 +1440,10 @@ regenerator-runtime@^0.11.0:
|
|||||||
version "0.11.1"
|
version "0.11.1"
|
||||||
resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz#be05ad7f9bf7d22e056f9726cee5017fbf19e2e9"
|
resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz#be05ad7f9bf7d22e056f9726cee5017fbf19e2e9"
|
||||||
|
|
||||||
regex-cache@^0.4.2:
|
|
||||||
version "0.4.4"
|
|
||||||
resolved "https://registry.yarnpkg.com/regex-cache/-/regex-cache-0.4.4.tgz#75bdc58a2a1496cec48a12835bc54c8d562336dd"
|
|
||||||
dependencies:
|
|
||||||
is-equal-shallow "^0.1.3"
|
|
||||||
|
|
||||||
remove-trailing-separator@^1.0.1:
|
remove-trailing-separator@^1.0.1:
|
||||||
version "1.1.0"
|
version "1.1.0"
|
||||||
resolved "https://registry.yarnpkg.com/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz#c24bce2a283adad5bc3f58e0d48249b92379d8ef"
|
resolved "https://registry.yarnpkg.com/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz#c24bce2a283adad5bc3f58e0d48249b92379d8ef"
|
||||||
|
|
||||||
repeat-element@^1.1.2:
|
|
||||||
version "1.1.2"
|
|
||||||
resolved "https://registry.yarnpkg.com/repeat-element/-/repeat-element-1.1.2.tgz#ef089a178d1483baae4d93eb98b4f9e4e11d990a"
|
|
||||||
|
|
||||||
repeat-string@^1.5.2:
|
|
||||||
version "1.6.1"
|
|
||||||
resolved "https://registry.yarnpkg.com/repeat-string/-/repeat-string-1.6.1.tgz#8dcae470e1c88abc2d600fff4a776286da75e637"
|
|
||||||
|
|
||||||
replace-ext@^1.0.0:
|
replace-ext@^1.0.0:
|
||||||
version "1.0.0"
|
version "1.0.0"
|
||||||
resolved "https://registry.yarnpkg.com/replace-ext/-/replace-ext-1.0.0.tgz#de63128373fcbf7c3ccfa4de5a480c45a67958eb"
|
resolved "https://registry.yarnpkg.com/replace-ext/-/replace-ext-1.0.0.tgz#de63128373fcbf7c3ccfa4de5a480c45a67958eb"
|
||||||
@ -1697,26 +1470,6 @@ rgba-regex@^1.0.0:
|
|||||||
version "1.0.0"
|
version "1.0.0"
|
||||||
resolved "https://registry.yarnpkg.com/rgba-regex/-/rgba-regex-1.0.0.tgz#43374e2e2ca0968b0ef1523460b7d730ff22eeb3"
|
resolved "https://registry.yarnpkg.com/rgba-regex/-/rgba-regex-1.0.0.tgz#43374e2e2ca0968b0ef1523460b7d730ff22eeb3"
|
||||||
|
|
||||||
rollup-plugin-buble@^0.19.2:
|
|
||||||
version "0.19.2"
|
|
||||||
resolved "https://registry.yarnpkg.com/rollup-plugin-buble/-/rollup-plugin-buble-0.19.2.tgz#c0590c7d3d475b5ed59f129764ec93710cc6e8dd"
|
|
||||||
dependencies:
|
|
||||||
buble "^0.19.2"
|
|
||||||
rollup-pluginutils "^2.0.1"
|
|
||||||
|
|
||||||
rollup-plugin-closure-compiler-js@^1.0.6:
|
|
||||||
version "1.0.6"
|
|
||||||
resolved "https://registry.yarnpkg.com/rollup-plugin-closure-compiler-js/-/rollup-plugin-closure-compiler-js-1.0.6.tgz#58e3e31297ad1a532d9114108bc06f2756d72c3d"
|
|
||||||
dependencies:
|
|
||||||
google-closure-compiler-js ">20170000"
|
|
||||||
|
|
||||||
rollup-pluginutils@^2.0.1:
|
|
||||||
version "2.3.1"
|
|
||||||
resolved "https://registry.yarnpkg.com/rollup-pluginutils/-/rollup-pluginutils-2.3.1.tgz#760d185ccc237dedc12d7ae48c6bcd127b4892d0"
|
|
||||||
dependencies:
|
|
||||||
estree-walker "^0.5.2"
|
|
||||||
micromatch "^2.3.11"
|
|
||||||
|
|
||||||
rollup@^0.64.1:
|
rollup@^0.64.1:
|
||||||
version "0.64.1"
|
version "0.64.1"
|
||||||
resolved "https://registry.yarnpkg.com/rollup/-/rollup-0.64.1.tgz#9188ee368e5fcd43ffbc00ec414e72eeb5de87ba"
|
resolved "https://registry.yarnpkg.com/rollup/-/rollup-0.64.1.tgz#9188ee368e5fcd43ffbc00ec414e72eeb5de87ba"
|
||||||
@ -1737,8 +1490,8 @@ sax@~1.2.4:
|
|||||||
resolved "https://registry.yarnpkg.com/sax/-/sax-1.2.4.tgz#2816234e2378bddc4e5354fab5caa895df7100d9"
|
resolved "https://registry.yarnpkg.com/sax/-/sax-1.2.4.tgz#2816234e2378bddc4e5354fab5caa895df7100d9"
|
||||||
|
|
||||||
"semver@2 || 3 || 4 || 5", semver@^5.3.0:
|
"semver@2 || 3 || 4 || 5", semver@^5.3.0:
|
||||||
version "5.5.0"
|
version "5.5.1"
|
||||||
resolved "https://registry.yarnpkg.com/semver/-/semver-5.5.0.tgz#dc4bbc7a6ca9d916dee5d43516f0092b58f7b8ab"
|
resolved "https://registry.yarnpkg.com/semver/-/semver-5.5.1.tgz#7dfdd8814bdb7cabc7be0fb1d734cfb66c940477"
|
||||||
|
|
||||||
simple-swizzle@^0.2.2:
|
simple-swizzle@^0.2.2:
|
||||||
version "0.2.2"
|
version "0.2.2"
|
||||||
@ -1746,11 +1499,7 @@ simple-swizzle@^0.2.2:
|
|||||||
dependencies:
|
dependencies:
|
||||||
is-arrayish "^0.3.1"
|
is-arrayish "^0.3.1"
|
||||||
|
|
||||||
source-list-map@~0.1.7:
|
source-map@^0.5.1, source-map@^0.5.3, source-map@^0.5.6:
|
||||||
version "0.1.8"
|
|
||||||
resolved "https://registry.yarnpkg.com/source-list-map/-/source-list-map-0.1.8.tgz#c550b2ab5427f6b3f21f5afead88c4f5587b2106"
|
|
||||||
|
|
||||||
source-map@^0.5.3, source-map@^0.5.6:
|
|
||||||
version "0.5.7"
|
version "0.5.7"
|
||||||
resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.5.7.tgz#8a039d2d1021d22d1ea14c80d8ea468ba2ef3fcc"
|
resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.5.7.tgz#8a039d2d1021d22d1ea14c80d8ea468ba2ef3fcc"
|
||||||
|
|
||||||
@ -1758,11 +1507,9 @@ source-map@^0.6.1:
|
|||||||
version "0.6.1"
|
version "0.6.1"
|
||||||
resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263"
|
resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263"
|
||||||
|
|
||||||
source-map@~0.4.1:
|
sourcemap-codec@^1.4.1:
|
||||||
version "0.4.4"
|
version "1.4.1"
|
||||||
resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.4.4.tgz#eba4f5da9c0dc999de68032d8b4f76173652036b"
|
resolved "https://registry.yarnpkg.com/sourcemap-codec/-/sourcemap-codec-1.4.1.tgz#c8fd92d91889e902a07aee392bdd2c5863958ba2"
|
||||||
dependencies:
|
|
||||||
amdefine ">=0.0.4"
|
|
||||||
|
|
||||||
spawn-command@^0.0.2-1:
|
spawn-command@^0.0.2-1:
|
||||||
version "0.0.2-1"
|
version "0.0.2-1"
|
||||||
@ -1787,8 +1534,8 @@ spdx-expression-parse@^3.0.0:
|
|||||||
spdx-license-ids "^3.0.0"
|
spdx-license-ids "^3.0.0"
|
||||||
|
|
||||||
spdx-license-ids@^3.0.0:
|
spdx-license-ids@^3.0.0:
|
||||||
version "3.0.0"
|
version "3.0.1"
|
||||||
resolved "https://registry.yarnpkg.com/spdx-license-ids/-/spdx-license-ids-3.0.0.tgz#7a7cd28470cc6d3a1cfe6d66886f6bc430d3ac87"
|
resolved "https://registry.yarnpkg.com/spdx-license-ids/-/spdx-license-ids-3.0.1.tgz#e2a303236cac54b04031fa7a5a79c7e701df852f"
|
||||||
|
|
||||||
sprintf-js@~1.0.2:
|
sprintf-js@~1.0.2:
|
||||||
version "1.0.3"
|
version "1.0.3"
|
||||||
@ -1833,23 +1580,23 @@ supports-color@^3.2.3:
|
|||||||
has-flag "^1.0.0"
|
has-flag "^1.0.0"
|
||||||
|
|
||||||
supports-color@^5.3.0, supports-color@^5.4.0:
|
supports-color@^5.3.0, supports-color@^5.4.0:
|
||||||
version "5.4.0"
|
version "5.5.0"
|
||||||
resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-5.4.0.tgz#1c6b337402c2137605efe19f10fec390f6faab54"
|
resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-5.5.0.tgz#e2e69a44ac8772f78a1ec0b35b689df6530efc8f"
|
||||||
dependencies:
|
dependencies:
|
||||||
has-flag "^3.0.0"
|
has-flag "^3.0.0"
|
||||||
|
|
||||||
svgo@^1.0.0:
|
svgo@^1.0.0:
|
||||||
version "1.0.5"
|
version "1.1.1"
|
||||||
resolved "https://registry.yarnpkg.com/svgo/-/svgo-1.0.5.tgz#7040364c062a0538abacff4401cea6a26a7a389a"
|
resolved "https://registry.yarnpkg.com/svgo/-/svgo-1.1.1.tgz#12384b03335bcecd85cfa5f4e3375fed671cb985"
|
||||||
dependencies:
|
dependencies:
|
||||||
coa "~2.0.1"
|
coa "~2.0.1"
|
||||||
colors "~1.1.2"
|
colors "~1.1.2"
|
||||||
css-select "~1.3.0-rc0"
|
css-select "^2.0.0"
|
||||||
css-select-base-adapter "~0.1.0"
|
css-select-base-adapter "~0.1.0"
|
||||||
css-tree "1.0.0-alpha25"
|
css-tree "1.0.0-alpha.28"
|
||||||
css-url-regex "^1.1.0"
|
css-url-regex "^1.1.0"
|
||||||
csso "^3.5.0"
|
csso "^3.5.0"
|
||||||
js-yaml "~3.10.0"
|
js-yaml "^3.12.0"
|
||||||
mkdirp "~0.5.1"
|
mkdirp "~0.5.1"
|
||||||
object.values "^1.0.4"
|
object.values "^1.0.4"
|
||||||
sax "~1.2.4"
|
sax "~1.2.4"
|
||||||
@ -1857,6 +1604,21 @@ svgo@^1.0.0:
|
|||||||
unquote "~1.1.1"
|
unquote "~1.1.1"
|
||||||
util.promisify "~1.0.0"
|
util.promisify "~1.0.0"
|
||||||
|
|
||||||
|
temp-dir@^1.0.0:
|
||||||
|
version "1.0.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/temp-dir/-/temp-dir-1.0.0.tgz#0a7c0ea26d3a39afa7e0ebea9c1fc0bc4daa011d"
|
||||||
|
|
||||||
|
temp-write@3.4.0:
|
||||||
|
version "3.4.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/temp-write/-/temp-write-3.4.0.tgz#8cff630fb7e9da05f047c74ce4ce4d685457d492"
|
||||||
|
dependencies:
|
||||||
|
graceful-fs "^4.1.2"
|
||||||
|
is-stream "^1.1.0"
|
||||||
|
make-dir "^1.0.0"
|
||||||
|
pify "^3.0.0"
|
||||||
|
temp-dir "^1.0.0"
|
||||||
|
uuid "^3.0.1"
|
||||||
|
|
||||||
timsort@^0.3.0:
|
timsort@^0.3.0:
|
||||||
version "0.3.0"
|
version "0.3.0"
|
||||||
resolved "https://registry.yarnpkg.com/timsort/-/timsort-0.3.0.tgz#405411a8e7e6339fe64db9a234de11dc31e02bd4"
|
resolved "https://registry.yarnpkg.com/timsort/-/timsort-0.3.0.tgz#405411a8e7e6339fe64db9a234de11dc31e02bd4"
|
||||||
@ -1899,6 +1661,10 @@ util.promisify@~1.0.0:
|
|||||||
define-properties "^1.1.2"
|
define-properties "^1.1.2"
|
||||||
object.getownpropertydescriptors "^2.0.3"
|
object.getownpropertydescriptors "^2.0.3"
|
||||||
|
|
||||||
|
uuid@^3.0.1:
|
||||||
|
version "3.3.2"
|
||||||
|
resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.3.2.tgz#1b4af4955eb3077c501c23872fc6513811587131"
|
||||||
|
|
||||||
validate-npm-package-license@^3.0.1:
|
validate-npm-package-license@^3.0.1:
|
||||||
version "3.0.4"
|
version "3.0.4"
|
||||||
resolved "https://registry.yarnpkg.com/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz#fc91f6b9c7ba15c857f4cb2c5defeec39d4f410a"
|
resolved "https://registry.yarnpkg.com/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz#fc91f6b9c7ba15c857f4cb2c5defeec39d4f410a"
|
||||||
@ -1914,6 +1680,12 @@ viewport-dimensions@^0.2.0:
|
|||||||
version "0.2.0"
|
version "0.2.0"
|
||||||
resolved "https://registry.yarnpkg.com/viewport-dimensions/-/viewport-dimensions-0.2.0.tgz#de740747db5387fd1725f5175e91bac76afdf36c"
|
resolved "https://registry.yarnpkg.com/viewport-dimensions/-/viewport-dimensions-0.2.0.tgz#de740747db5387fd1725f5175e91bac76afdf36c"
|
||||||
|
|
||||||
|
vinyl-sourcemaps-apply@^0.2.0:
|
||||||
|
version "0.2.1"
|
||||||
|
resolved "https://registry.yarnpkg.com/vinyl-sourcemaps-apply/-/vinyl-sourcemaps-apply-0.2.1.tgz#ab6549d61d172c2b1b87be5c508d239c8ef87705"
|
||||||
|
dependencies:
|
||||||
|
source-map "^0.5.1"
|
||||||
|
|
||||||
vinyl@^2.0.1:
|
vinyl@^2.0.1:
|
||||||
version "2.2.0"
|
version "2.2.0"
|
||||||
resolved "https://registry.yarnpkg.com/vinyl/-/vinyl-2.2.0.tgz#d85b07da96e458d25b2ffe19fece9f2caa13ed86"
|
resolved "https://registry.yarnpkg.com/vinyl/-/vinyl-2.2.0.tgz#d85b07da96e458d25b2ffe19fece9f2caa13ed86"
|
||||||
@ -1925,24 +1697,9 @@ vinyl@^2.0.1:
|
|||||||
remove-trailing-separator "^1.0.1"
|
remove-trailing-separator "^1.0.1"
|
||||||
replace-ext "^1.0.0"
|
replace-ext "^1.0.0"
|
||||||
|
|
||||||
vlq@^0.2.2:
|
|
||||||
version "0.2.3"
|
|
||||||
resolved "https://registry.yarnpkg.com/vlq/-/vlq-0.2.3.tgz#8f3e4328cf63b1540c0d67e1b2778386f8975b26"
|
|
||||||
|
|
||||||
vlq@^1.0.0:
|
|
||||||
version "1.0.0"
|
|
||||||
resolved "https://registry.yarnpkg.com/vlq/-/vlq-1.0.0.tgz#8101be90843422954c2b13eb27f2f3122bdcc806"
|
|
||||||
|
|
||||||
watch@^1.0.2:
|
watch@^1.0.2:
|
||||||
version "1.0.2"
|
version "1.0.2"
|
||||||
resolved "https://registry.yarnpkg.com/watch/-/watch-1.0.2.tgz#340a717bde765726fa0aa07d721e0147a551df0c"
|
resolved "https://registry.yarnpkg.com/watch/-/watch-1.0.2.tgz#340a717bde765726fa0aa07d721e0147a551df0c"
|
||||||
dependencies:
|
dependencies:
|
||||||
exec-sh "^0.2.0"
|
exec-sh "^0.2.0"
|
||||||
minimist "^1.2.0"
|
minimist "^1.2.0"
|
||||||
|
|
||||||
webpack-core@^0.6.8:
|
|
||||||
version "0.6.9"
|
|
||||||
resolved "https://registry.yarnpkg.com/webpack-core/-/webpack-core-0.6.9.tgz#fc571588c8558da77be9efb6debdc5a3b172bdc2"
|
|
||||||
dependencies:
|
|
||||||
source-list-map "~0.1.7"
|
|
||||||
source-map "~0.4.1"
|
|
||||||
|
@ -3,7 +3,10 @@ mutation (
|
|||||||
$status: MediaListStatus,
|
$status: MediaListStatus,
|
||||||
) {
|
) {
|
||||||
SaveMediaListEntry (
|
SaveMediaListEntry (
|
||||||
mediaId: $id
|
mediaId: $id,
|
||||||
status: $status
|
status: $status
|
||||||
)
|
) {
|
||||||
|
mediaId
|
||||||
|
status
|
||||||
|
}
|
||||||
}
|
}
|
@ -3,5 +3,7 @@ $id: Int
|
|||||||
) {
|
) {
|
||||||
DeleteMediaListEntry (
|
DeleteMediaListEntry (
|
||||||
id: $id
|
id: $id
|
||||||
)
|
) {
|
||||||
|
deleted
|
||||||
|
}
|
||||||
}
|
}
|
@ -1,7 +1,5 @@
|
|||||||
query ($id: Int, $type: MediaType) {
|
query ($id: Int, $type: MediaType) {
|
||||||
Media (type: $type, idMal: $id) {
|
Media (type: $type, idMal: $id) {
|
||||||
id
|
id
|
||||||
userId
|
|
||||||
mediaId
|
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -48,7 +48,7 @@ final class ListItem implements ListItemInterface{
|
|||||||
*/
|
*/
|
||||||
public function delete(string $id, string $type = 'anime'): Request
|
public function delete(string $id, string $type = 'anime'): Request
|
||||||
{
|
{
|
||||||
// @TODO: implement
|
return $this->mutateRequest('DeleteMediaListEntry', ['id' => $id]);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -86,15 +86,22 @@ final class ListItem implements ListItemInterface{
|
|||||||
*/
|
*/
|
||||||
public function update(string $id, FormItemData $data): Request
|
public function update(string $id, FormItemData $data): Request
|
||||||
{
|
{
|
||||||
|
$array = $data->toArray();
|
||||||
|
|
||||||
|
$notes = $data['notes'] ?? '';
|
||||||
|
$progress = array_key_exists('progress', $array) ? $data['progress'] : 0;
|
||||||
|
$rating = array_key_exists('rating', $array) ? $data['rating'] : NULL;
|
||||||
|
$status = $data['status'];
|
||||||
|
|
||||||
// @TODO Handle weirdness with reWatching
|
// @TODO Handle weirdness with reWatching
|
||||||
return $this->mutateRequest('UpdateMediaListEntry', [
|
return $this->mutateRequest('UpdateMediaListEntry', [
|
||||||
'id' => $id,
|
'id' => $id,
|
||||||
'status' => AnimeWatchingStatus::KITSU_TO_ANILIST[$data['status']],
|
'status' => AnimeWatchingStatus::KITSU_TO_ANILIST[$status],
|
||||||
'score' => $data['rating'] * 20,
|
'score' => $rating * 20,
|
||||||
'progress' => $data['progress'],
|
'progress' => $progress,
|
||||||
'repeat' => (int)$data['reconsumeCount'],
|
'repeat' => (int)$data['reconsumeCount'],
|
||||||
'private' => (bool)$data['private'],
|
'private' => (bool)$data['private'],
|
||||||
'notes' => $data['notes'],
|
'notes' => $notes,
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -41,16 +41,6 @@ final class Model
|
|||||||
$this->listItem = $listItem;
|
$this->listItem = $listItem;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getAnimeList(): array
|
|
||||||
{
|
|
||||||
return $this->runQuery('UserAnimeList', ['name' => 'timw4mail']);
|
|
||||||
}
|
|
||||||
|
|
||||||
public function getMangaList(): array
|
|
||||||
{
|
|
||||||
return $this->runQuery('UserMangaList', ['name' => 'timw4mail']);
|
|
||||||
}
|
|
||||||
|
|
||||||
// -------------------------------------------------------------------------
|
// -------------------------------------------------------------------------
|
||||||
// ! Generic API calls
|
// ! Generic API calls
|
||||||
// -------------------------------------------------------------------------
|
// -------------------------------------------------------------------------
|
||||||
@ -66,7 +56,7 @@ final class Model
|
|||||||
{
|
{
|
||||||
$createData = [];
|
$createData = [];
|
||||||
|
|
||||||
$mediaId = $this->getMediaIdFromMalId($data['malId'], strtoupper($type));
|
$mediaId = $this->getMediaIdFromMalId($data['mal_id'], strtoupper($type));
|
||||||
|
|
||||||
if ($type === 'anime') {
|
if ($type === 'anime') {
|
||||||
$createData = [
|
$createData = [
|
||||||
@ -92,7 +82,12 @@ final class Model
|
|||||||
public function getListItem(string $malId): array
|
public function getListItem(string $malId): array
|
||||||
{
|
{
|
||||||
$id = $this->getListIdFromMalId($malId);
|
$id = $this->getListIdFromMalId($malId);
|
||||||
return $this->listItem->get($id)['data']['MediaList'];
|
|
||||||
|
$data = $this->listItem->get($id)['data'];
|
||||||
|
|
||||||
|
return ($data !== null)
|
||||||
|
? $data['MediaList']
|
||||||
|
: [];
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -124,12 +119,14 @@ final class Model
|
|||||||
/**
|
/**
|
||||||
* Remove a list item
|
* Remove a list item
|
||||||
*
|
*
|
||||||
* @param string $id - The id of the list item to remove
|
* @param string $malId - The id of the list item to remove
|
||||||
* @return Request
|
* @return Request
|
||||||
*/
|
*/
|
||||||
public function deleteListItem(string $id): Request
|
public function deleteListItem(string $malId): Request
|
||||||
{
|
{
|
||||||
return $this->listItem->delete($id);
|
$item_id = $this->getListIdFromMalId($malId);
|
||||||
|
|
||||||
|
return $this->listItem->delete($item_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -138,10 +135,10 @@ final class Model
|
|||||||
* @param string $malId
|
* @param string $malId
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
public function getListIdFromMalId(string $malId): string
|
public function getListIdFromMalId(string $malId): ?string
|
||||||
{
|
{
|
||||||
$info = $this->runQuery('ListItemIdByMalId', ['id' => $malId]);
|
$info = $this->runQuery('ListItemIdByMalId', ['id' => $malId]);
|
||||||
return (string)$info['data']['Media']['mediaListEntry']['id'];
|
return (string)$info['data']['Media']['mediaListEntry']['id'] ?? NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -149,13 +146,15 @@ final class Model
|
|||||||
*
|
*
|
||||||
* @param string $malId
|
* @param string $malId
|
||||||
* @param string $type
|
* @param string $type
|
||||||
* @return array
|
* @return string
|
||||||
*/
|
*/
|
||||||
private function getMediaIdFromMalId(string $malId, string $type = 'ANIME'): array
|
private function getMediaIdFromMalId(string $malId, string $type = 'ANIME'): ?string
|
||||||
{
|
{
|
||||||
return $this->runQuery('MediaIdByMalId', [
|
$info = $this->runQuery('MediaIdByMalId', [
|
||||||
'id' => $malId,
|
'id' => $malId,
|
||||||
'type' => $type
|
'type' => $type
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
return (string)$info['data']['Media']['id'];
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -261,21 +261,34 @@ final class Model {
|
|||||||
$options = [
|
$options = [
|
||||||
'query' => [
|
'query' => [
|
||||||
'filter' => [
|
'filter' => [
|
||||||
'text' => $query
|
'text' => $query,
|
||||||
],
|
],
|
||||||
'page' => [
|
'page' => [
|
||||||
'offset' => 0,
|
'offset' => 0,
|
||||||
'limit' => 20
|
'limit' => 20
|
||||||
],
|
],
|
||||||
|
'include' => 'mappings'
|
||||||
]
|
]
|
||||||
];
|
];
|
||||||
|
|
||||||
$raw = $this->getRequest($type, $options);
|
$raw = $this->getRequest($type, $options);
|
||||||
|
$raw['included'] = JsonAPI::organizeIncluded($raw['included']);
|
||||||
|
|
||||||
foreach ($raw['data'] as &$item)
|
foreach ($raw['data'] as &$item)
|
||||||
{
|
{
|
||||||
$item['attributes']['titles'] = K::filterTitles($item['attributes']);
|
$item['attributes']['titles'] = K::filterTitles($item['attributes']);
|
||||||
array_shift($item['attributes']['titles']);
|
array_shift($item['attributes']['titles']);
|
||||||
|
|
||||||
|
// Map the mal_id if it exists for syncing with other APIs
|
||||||
|
foreach($item['relationships']['mappings']['data'] as $rel)
|
||||||
|
{
|
||||||
|
$mapping = $raw['included']['mappings'][$rel['id']];
|
||||||
|
|
||||||
|
if ($mapping['attributes']['externalSite'] === "myanimelist/{$type}")
|
||||||
|
{
|
||||||
|
$item['mal_id'] = $mapping['attributes']['externalId'];
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return $raw;
|
return $raw;
|
||||||
|
@ -127,9 +127,15 @@ final class Anime extends BaseController {
|
|||||||
public function add(): void
|
public function add(): void
|
||||||
{
|
{
|
||||||
$data = $this->request->getParsedBody();
|
$data = $this->request->getParsedBody();
|
||||||
|
|
||||||
|
if (empty($data['mal_id']))
|
||||||
|
{
|
||||||
|
unset($data['mal_id']);
|
||||||
|
}
|
||||||
|
|
||||||
if ( ! array_key_exists('id', $data))
|
if ( ! array_key_exists('id', $data))
|
||||||
{
|
{
|
||||||
$this->redirect("anime/add", 303);
|
$this->redirect('anime/add', 303);
|
||||||
}
|
}
|
||||||
|
|
||||||
$result = $this->model->createLibraryItem($data);
|
$result = $this->model->createLibraryItem($data);
|
||||||
@ -235,33 +241,9 @@ final class Anime extends BaseController {
|
|||||||
$this->outputJSON($response['body'], $response['statusCode']);
|
$this->outputJSON($response['body'], $response['statusCode']);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Update an anime item
|
|
||||||
*
|
|
||||||
* @return void
|
|
||||||
*/
|
|
||||||
public function update(): void
|
|
||||||
{
|
|
||||||
if (stripos($this->request->getHeader('content-type')[0], 'application/json') !== FALSE)
|
|
||||||
{
|
|
||||||
$data = Json::decode((string)$this->request->getBody());
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$data = $this->request->getParsedBody();
|
|
||||||
}
|
|
||||||
|
|
||||||
$response = $this->model->updateLibraryItem(new AnimeFormItem($data));
|
|
||||||
|
|
||||||
$this->cache->clear();
|
|
||||||
$this->outputJSON($response['body'], $response['statusCode']);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Remove an anime from the list
|
* Remove an anime from the list
|
||||||
*
|
*
|
||||||
* @throws \Aviat\Ion\Di\ContainerException
|
|
||||||
* @throws \Aviat\Ion\Di\NotFoundException
|
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function delete(): void
|
public function delete(): void
|
||||||
|
@ -122,7 +122,7 @@ class Anime extends API {
|
|||||||
*/
|
*/
|
||||||
public function search(string $name): array
|
public function search(string $name): array
|
||||||
{
|
{
|
||||||
return $this->kitsuModel->search('anime', $name);
|
return $this->kitsuModel->search('anime', urldecode($name));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -137,12 +137,23 @@ class Anime extends API {
|
|||||||
$item = $this->kitsuModel->getListItem($itemId);
|
$item = $this->kitsuModel->getListItem($itemId);
|
||||||
$array = $item->toArray();
|
$array = $item->toArray();
|
||||||
|
|
||||||
if ($item->mal_id !== NULL)
|
if ( ! empty($item->mal_id))
|
||||||
{
|
{
|
||||||
$anilistInfo = $this->anilistModel->getListItem($item['mal_id']);
|
$anilistInfo = $this->anilistModel->getListItem($item['mal_id']);
|
||||||
|
|
||||||
|
if (empty($anilistInfo))
|
||||||
|
{
|
||||||
|
return $item;
|
||||||
|
}
|
||||||
|
|
||||||
$array['anilist_item_id'] = $anilistInfo['id'];
|
$array['anilist_item_id'] = $anilistInfo['id'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (is_array($array['notes']))
|
||||||
|
{
|
||||||
|
$array['notes'] = '';
|
||||||
|
}
|
||||||
|
|
||||||
return new AnimeListItem($array);
|
return new AnimeListItem($array);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -157,8 +168,21 @@ class Anime extends API {
|
|||||||
$requester = new ParallelAPIRequest();
|
$requester = new ParallelAPIRequest();
|
||||||
$requester->addRequest($this->kitsuModel->createListItem($data), 'kitsu');
|
$requester->addRequest($this->kitsuModel->createListItem($data), 'kitsu');
|
||||||
|
|
||||||
|
// @TODO Make sure Anilist integration is optional
|
||||||
|
if (array_key_exists('mal_id', $data)) {
|
||||||
|
$requester->addRequest($this->anilistModel->createListItem($data), 'anilist');
|
||||||
|
}
|
||||||
|
|
||||||
$results = $requester->makeRequests();
|
$results = $requester->makeRequests();
|
||||||
|
|
||||||
|
// Debug info
|
||||||
|
/* $body = Json::decode($results['anilist']);
|
||||||
|
if ($body['errors'])
|
||||||
|
{
|
||||||
|
dump($body);
|
||||||
|
die();
|
||||||
|
} */
|
||||||
|
|
||||||
return count($results) > 0;
|
return count($results) > 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -233,8 +257,20 @@ class Anime extends API {
|
|||||||
$requester = new ParallelAPIRequest();
|
$requester = new ParallelAPIRequest();
|
||||||
$requester->addRequest($this->kitsuModel->deleteListItem($id), 'kitsu');
|
$requester->addRequest($this->kitsuModel->deleteListItem($id), 'kitsu');
|
||||||
|
|
||||||
|
// @TODO Make sure Anilist integration is optional
|
||||||
|
if ($malId !== null) {
|
||||||
|
$requester->addRequest($this->anilistModel->deleteListItem($malId), 'anilist');
|
||||||
|
}
|
||||||
|
|
||||||
$results = $requester->makeRequests();
|
$results = $requester->makeRequests();
|
||||||
|
|
||||||
|
// Debug info
|
||||||
|
/* $body = Json::decode($results['anilist']);
|
||||||
|
if (isset($body['errors'])) {
|
||||||
|
dump($body);
|
||||||
|
die();
|
||||||
|
} */
|
||||||
|
|
||||||
return count($results) > 0;
|
return count($results) > 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -34,7 +34,7 @@ final class AnimeListItem extends AbstractType {
|
|||||||
'ended' => '',
|
'ended' => '',
|
||||||
];
|
];
|
||||||
public $anime;
|
public $anime;
|
||||||
public $notes;
|
public $notes = '';
|
||||||
public $private;
|
public $private;
|
||||||
public $rewatching;
|
public $rewatching;
|
||||||
public $rewatched;
|
public $rewatched;
|
||||||
|
Loading…
Reference in New Issue
Block a user