mirror of
https://github.com/idanoo/GoScrobble
synced 2025-07-16 21:11:52 +00:00
0.2.0 - Mid migration
This commit is contained in:
parent
139e6a915e
commit
7e38fdbd7d
42393 changed files with 5358157 additions and 62 deletions
28
web/node_modules/jss-plugin-props-sort/dist/jss-plugin-props-sort.bundle.js
generated
vendored
Normal file
28
web/node_modules/jss-plugin-props-sort/dist/jss-plugin-props-sort.bundle.js
generated
vendored
Normal file
|
@ -0,0 +1,28 @@
|
|||
/**
|
||||
* Sort props by length.
|
||||
*/
|
||||
function jssPropsSort() {
|
||||
var sort = function sort(prop0, prop1) {
|
||||
if (prop0.length === prop1.length) {
|
||||
return prop0 > prop1 ? 1 : -1;
|
||||
}
|
||||
|
||||
return prop0.length - prop1.length;
|
||||
};
|
||||
|
||||
return {
|
||||
onProcessStyle: function onProcessStyle(style, rule) {
|
||||
if (rule.type !== 'style') return style;
|
||||
var newStyle = {};
|
||||
var props = Object.keys(style).sort(sort);
|
||||
|
||||
for (var i = 0; i < props.length; i++) {
|
||||
newStyle[props[i]] = style[props[i]];
|
||||
}
|
||||
|
||||
return newStyle;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
export default jssPropsSort;
|
32
web/node_modules/jss-plugin-props-sort/dist/jss-plugin-props-sort.cjs.js
generated
vendored
Normal file
32
web/node_modules/jss-plugin-props-sort/dist/jss-plugin-props-sort.cjs.js
generated
vendored
Normal file
|
@ -0,0 +1,32 @@
|
|||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, '__esModule', { value: true });
|
||||
|
||||
/**
|
||||
* Sort props by length.
|
||||
*/
|
||||
function jssPropsSort() {
|
||||
var sort = function sort(prop0, prop1) {
|
||||
if (prop0.length === prop1.length) {
|
||||
return prop0 > prop1 ? 1 : -1;
|
||||
}
|
||||
|
||||
return prop0.length - prop1.length;
|
||||
};
|
||||
|
||||
return {
|
||||
onProcessStyle: function onProcessStyle(style, rule) {
|
||||
if (rule.type !== 'style') return style;
|
||||
var newStyle = {};
|
||||
var props = Object.keys(style).sort(sort);
|
||||
|
||||
for (var i = 0; i < props.length; i++) {
|
||||
newStyle[props[i]] = style[props[i]];
|
||||
}
|
||||
|
||||
return newStyle;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
exports.default = jssPropsSort;
|
3
web/node_modules/jss-plugin-props-sort/dist/jss-plugin-props-sort.cjs.js.flow
generated
vendored
Normal file
3
web/node_modules/jss-plugin-props-sort/dist/jss-plugin-props-sort.cjs.js.flow
generated
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
// @flow
|
||||
|
||||
export * from '../src';
|
28
web/node_modules/jss-plugin-props-sort/dist/jss-plugin-props-sort.esm.js
generated
vendored
Normal file
28
web/node_modules/jss-plugin-props-sort/dist/jss-plugin-props-sort.esm.js
generated
vendored
Normal file
|
@ -0,0 +1,28 @@
|
|||
/**
|
||||
* Sort props by length.
|
||||
*/
|
||||
function jssPropsSort() {
|
||||
var sort = function sort(prop0, prop1) {
|
||||
if (prop0.length === prop1.length) {
|
||||
return prop0 > prop1 ? 1 : -1;
|
||||
}
|
||||
|
||||
return prop0.length - prop1.length;
|
||||
};
|
||||
|
||||
return {
|
||||
onProcessStyle: function onProcessStyle(style, rule) {
|
||||
if (rule.type !== 'style') return style;
|
||||
var newStyle = {};
|
||||
var props = Object.keys(style).sort(sort);
|
||||
|
||||
for (var i = 0; i < props.length; i++) {
|
||||
newStyle[props[i]] = style[props[i]];
|
||||
}
|
||||
|
||||
return newStyle;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
export default jssPropsSort;
|
39
web/node_modules/jss-plugin-props-sort/dist/jss-plugin-props-sort.js
generated
vendored
Normal file
39
web/node_modules/jss-plugin-props-sort/dist/jss-plugin-props-sort.js
generated
vendored
Normal file
|
@ -0,0 +1,39 @@
|
|||
(function (global, factory) {
|
||||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
||||
typeof define === 'function' && define.amd ? define(['exports'], factory) :
|
||||
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.jssPluginPropsSort = {}));
|
||||
}(this, (function (exports) { 'use strict';
|
||||
|
||||
/**
|
||||
* Sort props by length.
|
||||
*/
|
||||
function jssPropsSort() {
|
||||
var sort = function sort(prop0, prop1) {
|
||||
if (prop0.length === prop1.length) {
|
||||
return prop0 > prop1 ? 1 : -1;
|
||||
}
|
||||
|
||||
return prop0.length - prop1.length;
|
||||
};
|
||||
|
||||
return {
|
||||
onProcessStyle: function onProcessStyle(style, rule) {
|
||||
if (rule.type !== 'style') return style;
|
||||
var newStyle = {};
|
||||
var props = Object.keys(style).sort(sort);
|
||||
|
||||
for (var i = 0; i < props.length; i++) {
|
||||
newStyle[props[i]] = style[props[i]];
|
||||
}
|
||||
|
||||
return newStyle;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
exports.default = jssPropsSort;
|
||||
|
||||
Object.defineProperty(exports, '__esModule', { value: true });
|
||||
|
||||
})));
|
||||
//# sourceMappingURL=jss-plugin-props-sort.js.map
|
1
web/node_modules/jss-plugin-props-sort/dist/jss-plugin-props-sort.js.map
generated
vendored
Normal file
1
web/node_modules/jss-plugin-props-sort/dist/jss-plugin-props-sort.js.map
generated
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"jss-plugin-props-sort.js","sources":["../src/index.js"],"sourcesContent":["// @flow\nimport type {Plugin} from 'jss'\n\n/**\n * Sort props by length.\n */\nexport default function jssPropsSort(): Plugin {\n const sort = (prop0, prop1) => {\n if (prop0.length === prop1.length) {\n return prop0 > prop1 ? 1 : -1\n }\n return prop0.length - prop1.length\n }\n\n return {\n onProcessStyle(style, rule) {\n if (rule.type !== 'style') return style\n\n const newStyle = {}\n const props = Object.keys(style).sort(sort)\n for (let i = 0; i < props.length; i++) {\n newStyle[props[i]] = style[props[i]]\n }\n return newStyle\n }\n }\n}\n"],"names":["jssPropsSort","sort","prop0","prop1","length","onProcessStyle","style","rule","type","newStyle","props","Object","keys","i"],"mappings":";;;;;;EAGA;;;EAGe,SAASA,YAAT,GAAgC;EAC7C,MAAMC,IAAI,GAAG,SAAPA,IAAO,CAACC,KAAD,EAAQC,KAAR,EAAkB;EAC7B,QAAID,KAAK,CAACE,MAAN,KAAiBD,KAAK,CAACC,MAA3B,EAAmC;EACjC,aAAOF,KAAK,GAAGC,KAAR,GAAgB,CAAhB,GAAoB,CAAC,CAA5B;EACD;;EACD,WAAOD,KAAK,CAACE,MAAN,GAAeD,KAAK,CAACC,MAA5B;EACD,GALD;;EAOA,SAAO;EACLC,IAAAA,cADK,0BACUC,KADV,EACiBC,IADjB,EACuB;EAC1B,UAAIA,IAAI,CAACC,IAAL,KAAc,OAAlB,EAA2B,OAAOF,KAAP;EAE3B,UAAMG,QAAQ,GAAG,EAAjB;EACA,UAAMC,KAAK,GAAGC,MAAM,CAACC,IAAP,CAAYN,KAAZ,EAAmBL,IAAnB,CAAwBA,IAAxB,CAAd;;EACA,WAAK,IAAIY,CAAC,GAAG,CAAb,EAAgBA,CAAC,GAAGH,KAAK,CAACN,MAA1B,EAAkCS,CAAC,EAAnC,EAAuC;EACrCJ,QAAAA,QAAQ,CAACC,KAAK,CAACG,CAAD,CAAN,CAAR,GAAqBP,KAAK,CAACI,KAAK,CAACG,CAAD,CAAN,CAA1B;EACD;;EACD,aAAOJ,QAAP;EACD;EAVI,GAAP;EAYD;;;;;;;;;;"}
|
1
web/node_modules/jss-plugin-props-sort/dist/jss-plugin-props-sort.min.js
generated
vendored
Normal file
1
web/node_modules/jss-plugin-props-sort/dist/jss-plugin-props-sort.min.js
generated
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).jssPluginPropsSort={})}(this,(function(e){"use strict";e.default=function(){var e=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length};return{onProcessStyle:function(t,n){if("style"!==n.type)return t;for(var o={},r=Object.keys(t).sort(e),f=0;f<r.length;f++)o[r[f]]=t[r[f]];return o}}},Object.defineProperty(e,"__esModule",{value:!0})}));
|
Loading…
Add table
Add a link
Reference in a new issue