Started adding frontend notifications, fixing firefox file upload bug
This commit is contained in:
69
goTorrentWebUI/node_modules/react-toastify/node_modules/inline-style-prefixer/static/createPrefixer.js
generated
vendored
Normal file
69
goTorrentWebUI/node_modules/react-toastify/node_modules/inline-style-prefixer/static/createPrefixer.js
generated
vendored
Normal file
@@ -0,0 +1,69 @@
|
||||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = createPrefixer;
|
||||
|
||||
var _prefixProperty = require('../utils/prefixProperty');
|
||||
|
||||
var _prefixProperty2 = _interopRequireDefault(_prefixProperty);
|
||||
|
||||
var _prefixValue = require('../utils/prefixValue');
|
||||
|
||||
var _prefixValue2 = _interopRequireDefault(_prefixValue);
|
||||
|
||||
var _addNewValuesOnly = require('../utils/addNewValuesOnly');
|
||||
|
||||
var _addNewValuesOnly2 = _interopRequireDefault(_addNewValuesOnly);
|
||||
|
||||
var _isObject = require('../utils/isObject');
|
||||
|
||||
var _isObject2 = _interopRequireDefault(_isObject);
|
||||
|
||||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
||||
|
||||
function createPrefixer(_ref) {
|
||||
var prefixMap = _ref.prefixMap,
|
||||
plugins = _ref.plugins;
|
||||
|
||||
function prefixAll(style) {
|
||||
for (var property in style) {
|
||||
var value = style[property];
|
||||
|
||||
// handle nested objects
|
||||
if ((0, _isObject2.default)(value)) {
|
||||
style[property] = prefixAll(value);
|
||||
// handle array values
|
||||
} else if (Array.isArray(value)) {
|
||||
var combinedValue = [];
|
||||
|
||||
for (var i = 0, len = value.length; i < len; ++i) {
|
||||
var processedValue = (0, _prefixValue2.default)(plugins, property, value[i], style, prefixMap);
|
||||
(0, _addNewValuesOnly2.default)(combinedValue, processedValue || value[i]);
|
||||
}
|
||||
|
||||
// only modify the value if it was touched
|
||||
// by any plugin to prevent unnecessary mutations
|
||||
if (combinedValue.length > 0) {
|
||||
style[property] = combinedValue;
|
||||
}
|
||||
} else {
|
||||
var _processedValue = (0, _prefixValue2.default)(plugins, property, value, style, prefixMap);
|
||||
|
||||
// only modify the value if it was touched
|
||||
// by any plugin to prevent unnecessary mutations
|
||||
if (_processedValue) {
|
||||
style[property] = _processedValue;
|
||||
}
|
||||
|
||||
(0, _prefixProperty2.default)(prefixMap, property, style);
|
||||
}
|
||||
}
|
||||
|
||||
return style;
|
||||
}
|
||||
|
||||
return prefixAll;
|
||||
}
|
||||
module.exports = exports['default'];
|
63
goTorrentWebUI/node_modules/react-toastify/node_modules/inline-style-prefixer/static/index.js
generated
vendored
Normal file
63
goTorrentWebUI/node_modules/react-toastify/node_modules/inline-style-prefixer/static/index.js
generated
vendored
Normal file
@@ -0,0 +1,63 @@
|
||||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
|
||||
var _createPrefixer = require('./createPrefixer');
|
||||
|
||||
var _createPrefixer2 = _interopRequireDefault(_createPrefixer);
|
||||
|
||||
var _staticData = require('./staticData');
|
||||
|
||||
var _staticData2 = _interopRequireDefault(_staticData);
|
||||
|
||||
var _cursor = require('./plugins/cursor');
|
||||
|
||||
var _cursor2 = _interopRequireDefault(_cursor);
|
||||
|
||||
var _crossFade = require('./plugins/crossFade');
|
||||
|
||||
var _crossFade2 = _interopRequireDefault(_crossFade);
|
||||
|
||||
var _filter = require('./plugins/filter');
|
||||
|
||||
var _filter2 = _interopRequireDefault(_filter);
|
||||
|
||||
var _flex = require('./plugins/flex');
|
||||
|
||||
var _flex2 = _interopRequireDefault(_flex);
|
||||
|
||||
var _flexboxOld = require('./plugins/flexboxOld');
|
||||
|
||||
var _flexboxOld2 = _interopRequireDefault(_flexboxOld);
|
||||
|
||||
var _gradient = require('./plugins/gradient');
|
||||
|
||||
var _gradient2 = _interopRequireDefault(_gradient);
|
||||
|
||||
var _imageSet = require('./plugins/imageSet');
|
||||
|
||||
var _imageSet2 = _interopRequireDefault(_imageSet);
|
||||
|
||||
var _position = require('./plugins/position');
|
||||
|
||||
var _position2 = _interopRequireDefault(_position);
|
||||
|
||||
var _sizing = require('./plugins/sizing');
|
||||
|
||||
var _sizing2 = _interopRequireDefault(_sizing);
|
||||
|
||||
var _transition = require('./plugins/transition');
|
||||
|
||||
var _transition2 = _interopRequireDefault(_transition);
|
||||
|
||||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
||||
|
||||
var plugins = [_crossFade2.default, _cursor2.default, _filter2.default, _flexboxOld2.default, _gradient2.default, _imageSet2.default, _position2.default, _sizing2.default, _transition2.default, _flex2.default];
|
||||
|
||||
exports.default = (0, _createPrefixer2.default)({
|
||||
prefixMap: _staticData2.default.prefixMap,
|
||||
plugins: plugins
|
||||
});
|
||||
module.exports = exports['default'];
|
22
goTorrentWebUI/node_modules/react-toastify/node_modules/inline-style-prefixer/static/plugins/calc.js
generated
vendored
Normal file
22
goTorrentWebUI/node_modules/react-toastify/node_modules/inline-style-prefixer/static/plugins/calc.js
generated
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = calc;
|
||||
|
||||
var _isPrefixedValue = require('css-in-js-utils/lib/isPrefixedValue');
|
||||
|
||||
var _isPrefixedValue2 = _interopRequireDefault(_isPrefixedValue);
|
||||
|
||||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
||||
|
||||
var prefixes = ['-webkit-', '-moz-', ''];
|
||||
function calc(property, value) {
|
||||
if (typeof value === 'string' && !(0, _isPrefixedValue2.default)(value) && value.indexOf('calc(') > -1) {
|
||||
return prefixes.map(function (prefix) {
|
||||
return value.replace(/calc\(/g, prefix + 'calc(');
|
||||
});
|
||||
}
|
||||
}
|
||||
module.exports = exports['default'];
|
23
goTorrentWebUI/node_modules/react-toastify/node_modules/inline-style-prefixer/static/plugins/crossFade.js
generated
vendored
Normal file
23
goTorrentWebUI/node_modules/react-toastify/node_modules/inline-style-prefixer/static/plugins/crossFade.js
generated
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = crossFade;
|
||||
|
||||
var _isPrefixedValue = require('css-in-js-utils/lib/isPrefixedValue');
|
||||
|
||||
var _isPrefixedValue2 = _interopRequireDefault(_isPrefixedValue);
|
||||
|
||||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
||||
|
||||
// http://caniuse.com/#search=cross-fade
|
||||
var prefixes = ['-webkit-', ''];
|
||||
function crossFade(property, value) {
|
||||
if (typeof value === 'string' && !(0, _isPrefixedValue2.default)(value) && value.indexOf('cross-fade(') > -1) {
|
||||
return prefixes.map(function (prefix) {
|
||||
return value.replace(/cross-fade\(/g, prefix + 'cross-fade(');
|
||||
});
|
||||
}
|
||||
}
|
||||
module.exports = exports['default'];
|
23
goTorrentWebUI/node_modules/react-toastify/node_modules/inline-style-prefixer/static/plugins/cursor.js
generated
vendored
Normal file
23
goTorrentWebUI/node_modules/react-toastify/node_modules/inline-style-prefixer/static/plugins/cursor.js
generated
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = cursor;
|
||||
var prefixes = ['-webkit-', '-moz-', ''];
|
||||
|
||||
var values = {
|
||||
'zoom-in': true,
|
||||
'zoom-out': true,
|
||||
grab: true,
|
||||
grabbing: true
|
||||
};
|
||||
|
||||
function cursor(property, value) {
|
||||
if (property === 'cursor' && values.hasOwnProperty(value)) {
|
||||
return prefixes.map(function (prefix) {
|
||||
return prefix + value;
|
||||
});
|
||||
}
|
||||
}
|
||||
module.exports = exports['default'];
|
23
goTorrentWebUI/node_modules/react-toastify/node_modules/inline-style-prefixer/static/plugins/filter.js
generated
vendored
Normal file
23
goTorrentWebUI/node_modules/react-toastify/node_modules/inline-style-prefixer/static/plugins/filter.js
generated
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = filter;
|
||||
|
||||
var _isPrefixedValue = require('css-in-js-utils/lib/isPrefixedValue');
|
||||
|
||||
var _isPrefixedValue2 = _interopRequireDefault(_isPrefixedValue);
|
||||
|
||||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
||||
|
||||
// http://caniuse.com/#feat=css-filter-function
|
||||
var prefixes = ['-webkit-', ''];
|
||||
function filter(property, value) {
|
||||
if (typeof value === 'string' && !(0, _isPrefixedValue2.default)(value) && value.indexOf('filter(') > -1) {
|
||||
return prefixes.map(function (prefix) {
|
||||
return value.replace(/filter\(/g, prefix + 'filter(');
|
||||
});
|
||||
}
|
||||
}
|
||||
module.exports = exports['default'];
|
17
goTorrentWebUI/node_modules/react-toastify/node_modules/inline-style-prefixer/static/plugins/flex.js
generated
vendored
Normal file
17
goTorrentWebUI/node_modules/react-toastify/node_modules/inline-style-prefixer/static/plugins/flex.js
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = flex;
|
||||
var values = {
|
||||
flex: ['-webkit-box', '-moz-box', '-ms-flexbox', '-webkit-flex', 'flex'],
|
||||
'inline-flex': ['-webkit-inline-box', '-moz-inline-box', '-ms-inline-flexbox', '-webkit-inline-flex', 'inline-flex']
|
||||
};
|
||||
|
||||
function flex(property, value) {
|
||||
if (property === 'display' && values.hasOwnProperty(value)) {
|
||||
return values[value];
|
||||
}
|
||||
}
|
||||
module.exports = exports['default'];
|
29
goTorrentWebUI/node_modules/react-toastify/node_modules/inline-style-prefixer/static/plugins/flexboxIE.js
generated
vendored
Normal file
29
goTorrentWebUI/node_modules/react-toastify/node_modules/inline-style-prefixer/static/plugins/flexboxIE.js
generated
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = flexboxIE;
|
||||
var alternativeValues = {
|
||||
'space-around': 'distribute',
|
||||
'space-between': 'justify',
|
||||
'flex-start': 'start',
|
||||
'flex-end': 'end'
|
||||
};
|
||||
var alternativeProps = {
|
||||
alignContent: 'msFlexLinePack',
|
||||
alignSelf: 'msFlexItemAlign',
|
||||
alignItems: 'msFlexAlign',
|
||||
justifyContent: 'msFlexPack',
|
||||
order: 'msFlexOrder',
|
||||
flexGrow: 'msFlexPositive',
|
||||
flexShrink: 'msFlexNegative',
|
||||
flexBasis: 'msFlexPreferredSize'
|
||||
};
|
||||
|
||||
function flexboxIE(property, value, style) {
|
||||
if (alternativeProps.hasOwnProperty(property)) {
|
||||
style[alternativeProps[property]] = alternativeValues[value] || value;
|
||||
}
|
||||
}
|
||||
module.exports = exports['default'];
|
39
goTorrentWebUI/node_modules/react-toastify/node_modules/inline-style-prefixer/static/plugins/flexboxOld.js
generated
vendored
Normal file
39
goTorrentWebUI/node_modules/react-toastify/node_modules/inline-style-prefixer/static/plugins/flexboxOld.js
generated
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = flexboxOld;
|
||||
var alternativeValues = {
|
||||
'space-around': 'justify',
|
||||
'space-between': 'justify',
|
||||
'flex-start': 'start',
|
||||
'flex-end': 'end',
|
||||
'wrap-reverse': 'multiple',
|
||||
wrap: 'multiple'
|
||||
};
|
||||
|
||||
var alternativeProps = {
|
||||
alignItems: 'WebkitBoxAlign',
|
||||
justifyContent: 'WebkitBoxPack',
|
||||
flexWrap: 'WebkitBoxLines'
|
||||
};
|
||||
|
||||
function flexboxOld(property, value, style) {
|
||||
if (property === 'flexDirection' && typeof value === 'string') {
|
||||
if (value.indexOf('column') > -1) {
|
||||
style.WebkitBoxOrient = 'vertical';
|
||||
} else {
|
||||
style.WebkitBoxOrient = 'horizontal';
|
||||
}
|
||||
if (value.indexOf('reverse') > -1) {
|
||||
style.WebkitBoxDirection = 'reverse';
|
||||
} else {
|
||||
style.WebkitBoxDirection = 'normal';
|
||||
}
|
||||
}
|
||||
if (alternativeProps.hasOwnProperty(property)) {
|
||||
style[alternativeProps[property]] = alternativeValues[value] || value;
|
||||
}
|
||||
}
|
||||
module.exports = exports['default'];
|
25
goTorrentWebUI/node_modules/react-toastify/node_modules/inline-style-prefixer/static/plugins/gradient.js
generated
vendored
Normal file
25
goTorrentWebUI/node_modules/react-toastify/node_modules/inline-style-prefixer/static/plugins/gradient.js
generated
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = gradient;
|
||||
|
||||
var _isPrefixedValue = require('css-in-js-utils/lib/isPrefixedValue');
|
||||
|
||||
var _isPrefixedValue2 = _interopRequireDefault(_isPrefixedValue);
|
||||
|
||||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
||||
|
||||
var prefixes = ['-webkit-', '-moz-', ''];
|
||||
|
||||
var values = /linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient/;
|
||||
|
||||
function gradient(property, value) {
|
||||
if (typeof value === 'string' && !(0, _isPrefixedValue2.default)(value) && values.test(value)) {
|
||||
return prefixes.map(function (prefix) {
|
||||
return prefix + value;
|
||||
});
|
||||
}
|
||||
}
|
||||
module.exports = exports['default'];
|
23
goTorrentWebUI/node_modules/react-toastify/node_modules/inline-style-prefixer/static/plugins/imageSet.js
generated
vendored
Normal file
23
goTorrentWebUI/node_modules/react-toastify/node_modules/inline-style-prefixer/static/plugins/imageSet.js
generated
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = imageSet;
|
||||
|
||||
var _isPrefixedValue = require('css-in-js-utils/lib/isPrefixedValue');
|
||||
|
||||
var _isPrefixedValue2 = _interopRequireDefault(_isPrefixedValue);
|
||||
|
||||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
||||
|
||||
// http://caniuse.com/#feat=css-image-set
|
||||
var prefixes = ['-webkit-', ''];
|
||||
function imageSet(property, value) {
|
||||
if (typeof value === 'string' && !(0, _isPrefixedValue2.default)(value) && value.indexOf('image-set(') > -1) {
|
||||
return prefixes.map(function (prefix) {
|
||||
return value.replace(/image-set\(/g, prefix + 'image-set(');
|
||||
});
|
||||
}
|
||||
}
|
||||
module.exports = exports['default'];
|
58
goTorrentWebUI/node_modules/react-toastify/node_modules/inline-style-prefixer/static/plugins/index.js
generated
vendored
Normal file
58
goTorrentWebUI/node_modules/react-toastify/node_modules/inline-style-prefixer/static/plugins/index.js
generated
vendored
Normal file
@@ -0,0 +1,58 @@
|
||||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
|
||||
var _calc = require('./calc');
|
||||
|
||||
var _calc2 = _interopRequireDefault(_calc);
|
||||
|
||||
var _cursor = require('./cursor');
|
||||
|
||||
var _cursor2 = _interopRequireDefault(_cursor);
|
||||
|
||||
var _crossFade = require('./crossFade');
|
||||
|
||||
var _crossFade2 = _interopRequireDefault(_crossFade);
|
||||
|
||||
var _filter = require('./filter');
|
||||
|
||||
var _filter2 = _interopRequireDefault(_filter);
|
||||
|
||||
var _flex = require('./flex');
|
||||
|
||||
var _flex2 = _interopRequireDefault(_flex);
|
||||
|
||||
var _flexboxIE = require('./flexboxIE');
|
||||
|
||||
var _flexboxIE2 = _interopRequireDefault(_flexboxIE);
|
||||
|
||||
var _flexboxOld = require('./flexboxOld');
|
||||
|
||||
var _flexboxOld2 = _interopRequireDefault(_flexboxOld);
|
||||
|
||||
var _gradient = require('./gradient');
|
||||
|
||||
var _gradient2 = _interopRequireDefault(_gradient);
|
||||
|
||||
var _imageSet = require('./imageSet');
|
||||
|
||||
var _imageSet2 = _interopRequireDefault(_imageSet);
|
||||
|
||||
var _position = require('./position');
|
||||
|
||||
var _position2 = _interopRequireDefault(_position);
|
||||
|
||||
var _sizing = require('./sizing');
|
||||
|
||||
var _sizing2 = _interopRequireDefault(_sizing);
|
||||
|
||||
var _transition = require('./transition');
|
||||
|
||||
var _transition2 = _interopRequireDefault(_transition);
|
||||
|
||||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
||||
|
||||
exports.default = [_position2.default, _calc2.default, _imageSet2.default, _crossFade2.default, _filter2.default, _cursor2.default, _sizing2.default, _gradient2.default, _transition2.default, _flexboxIE2.default, _flexboxOld2.default, _flex2.default];
|
||||
module.exports = exports['default'];
|
12
goTorrentWebUI/node_modules/react-toastify/node_modules/inline-style-prefixer/static/plugins/position.js
generated
vendored
Normal file
12
goTorrentWebUI/node_modules/react-toastify/node_modules/inline-style-prefixer/static/plugins/position.js
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = position;
|
||||
function position(property, value) {
|
||||
if (property === 'position' && value === 'sticky') {
|
||||
return ['-webkit-sticky', 'sticky'];
|
||||
}
|
||||
}
|
||||
module.exports = exports['default'];
|
33
goTorrentWebUI/node_modules/react-toastify/node_modules/inline-style-prefixer/static/plugins/sizing.js
generated
vendored
Normal file
33
goTorrentWebUI/node_modules/react-toastify/node_modules/inline-style-prefixer/static/plugins/sizing.js
generated
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = sizing;
|
||||
var prefixes = ['-webkit-', '-moz-', ''];
|
||||
|
||||
var properties = {
|
||||
maxHeight: true,
|
||||
maxWidth: true,
|
||||
width: true,
|
||||
height: true,
|
||||
columnWidth: true,
|
||||
minWidth: true,
|
||||
minHeight: true
|
||||
};
|
||||
var values = {
|
||||
'min-content': true,
|
||||
'max-content': true,
|
||||
'fill-available': true,
|
||||
'fit-content': true,
|
||||
'contain-floats': true
|
||||
};
|
||||
|
||||
function sizing(property, value) {
|
||||
if (properties.hasOwnProperty(property) && values.hasOwnProperty(value)) {
|
||||
return prefixes.map(function (prefix) {
|
||||
return prefix + value;
|
||||
});
|
||||
}
|
||||
}
|
||||
module.exports = exports['default'];
|
93
goTorrentWebUI/node_modules/react-toastify/node_modules/inline-style-prefixer/static/plugins/transition.js
generated
vendored
Normal file
93
goTorrentWebUI/node_modules/react-toastify/node_modules/inline-style-prefixer/static/plugins/transition.js
generated
vendored
Normal file
@@ -0,0 +1,93 @@
|
||||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = transition;
|
||||
|
||||
var _hyphenateProperty = require('css-in-js-utils/lib/hyphenateProperty');
|
||||
|
||||
var _hyphenateProperty2 = _interopRequireDefault(_hyphenateProperty);
|
||||
|
||||
var _isPrefixedValue = require('css-in-js-utils/lib/isPrefixedValue');
|
||||
|
||||
var _isPrefixedValue2 = _interopRequireDefault(_isPrefixedValue);
|
||||
|
||||
var _capitalizeString = require('../../utils/capitalizeString');
|
||||
|
||||
var _capitalizeString2 = _interopRequireDefault(_capitalizeString);
|
||||
|
||||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
||||
|
||||
var properties = {
|
||||
transition: true,
|
||||
transitionProperty: true,
|
||||
WebkitTransition: true,
|
||||
WebkitTransitionProperty: true,
|
||||
MozTransition: true,
|
||||
MozTransitionProperty: true
|
||||
};
|
||||
|
||||
|
||||
var prefixMapping = {
|
||||
Webkit: '-webkit-',
|
||||
Moz: '-moz-',
|
||||
ms: '-ms-'
|
||||
};
|
||||
|
||||
function prefixValue(value, propertyPrefixMap) {
|
||||
if ((0, _isPrefixedValue2.default)(value)) {
|
||||
return value;
|
||||
}
|
||||
|
||||
// only split multi values, not cubic beziers
|
||||
var multipleValues = value.split(/,(?![^()]*(?:\([^()]*\))?\))/g);
|
||||
|
||||
for (var i = 0, len = multipleValues.length; i < len; ++i) {
|
||||
var singleValue = multipleValues[i];
|
||||
var values = [singleValue];
|
||||
for (var property in propertyPrefixMap) {
|
||||
var dashCaseProperty = (0, _hyphenateProperty2.default)(property);
|
||||
|
||||
if (singleValue.indexOf(dashCaseProperty) > -1 && dashCaseProperty !== 'order') {
|
||||
var prefixes = propertyPrefixMap[property];
|
||||
for (var j = 0, pLen = prefixes.length; j < pLen; ++j) {
|
||||
// join all prefixes and create a new value
|
||||
values.unshift(singleValue.replace(dashCaseProperty, prefixMapping[prefixes[j]] + dashCaseProperty));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
multipleValues[i] = values.join(',');
|
||||
}
|
||||
|
||||
return multipleValues.join(',');
|
||||
}
|
||||
|
||||
function transition(property, value, style, propertyPrefixMap) {
|
||||
// also check for already prefixed transitions
|
||||
if (typeof value === 'string' && properties.hasOwnProperty(property)) {
|
||||
var outputValue = prefixValue(value, propertyPrefixMap);
|
||||
// if the property is already prefixed
|
||||
var webkitOutput = outputValue.split(/,(?![^()]*(?:\([^()]*\))?\))/g).filter(function (val) {
|
||||
return !/-moz-|-ms-/.test(val);
|
||||
}).join(',');
|
||||
|
||||
if (property.indexOf('Webkit') > -1) {
|
||||
return webkitOutput;
|
||||
}
|
||||
|
||||
var mozOutput = outputValue.split(/,(?![^()]*(?:\([^()]*\))?\))/g).filter(function (val) {
|
||||
return !/-webkit-|-ms-/.test(val);
|
||||
}).join(',');
|
||||
|
||||
if (property.indexOf('Moz') > -1) {
|
||||
return mozOutput;
|
||||
}
|
||||
|
||||
style['Webkit' + (0, _capitalizeString2.default)(property)] = webkitOutput;
|
||||
style['Moz' + (0, _capitalizeString2.default)(property)] = mozOutput;
|
||||
return outputValue;
|
||||
}
|
||||
}
|
||||
module.exports = exports['default'];
|
18
goTorrentWebUI/node_modules/react-toastify/node_modules/inline-style-prefixer/static/staticData.js
generated
vendored
Normal file
18
goTorrentWebUI/node_modules/react-toastify/node_modules/inline-style-prefixer/static/staticData.js
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
|
||||
var w = ["Webkit"];
|
||||
var m = ["Moz"];
|
||||
var ms = ["ms"];
|
||||
var wm = ["Webkit", "Moz"];
|
||||
var wms = ["Webkit", "ms"];
|
||||
var wmms = ["Webkit", "Moz", "ms"];
|
||||
|
||||
exports.default = {
|
||||
plugins: [],
|
||||
prefixMap: { "appearance": wm, "userSelect": wmms, "textEmphasisPosition": w, "textEmphasis": w, "textEmphasisStyle": w, "textEmphasisColor": w, "boxDecorationBreak": w, "clipPath": w, "maskImage": w, "maskMode": w, "maskRepeat": w, "maskPosition": w, "maskClip": w, "maskOrigin": w, "maskSize": w, "maskComposite": w, "mask": w, "maskBorderSource": w, "maskBorderMode": w, "maskBorderSlice": w, "maskBorderWidth": w, "maskBorderOutset": w, "maskBorderRepeat": w, "maskBorder": w, "maskType": w, "textDecorationStyle": w, "textDecorationSkip": w, "textDecorationLine": w, "textDecorationColor": w, "filter": w, "fontFeatureSettings": w, "breakAfter": wmms, "breakBefore": wmms, "breakInside": wmms, "columnCount": wm, "columnFill": wm, "columnGap": wm, "columnRule": wm, "columnRuleColor": wm, "columnRuleStyle": wm, "columnRuleWidth": wm, "columns": wm, "columnSpan": wm, "columnWidth": wm, "writingMode": wms, "flex": w, "flexBasis": w, "flexDirection": w, "flexGrow": w, "flexFlow": w, "flexShrink": w, "flexWrap": w, "alignContent": w, "alignItems": w, "alignSelf": w, "justifyContent": w, "order": w, "transform": w, "transformOrigin": w, "transformOriginX": w, "transformOriginY": w, "backfaceVisibility": w, "perspective": w, "perspectiveOrigin": w, "transformStyle": w, "transformOriginZ": w, "animation": w, "animationDelay": w, "animationDirection": w, "animationFillMode": w, "animationDuration": w, "animationIterationCount": w, "animationName": w, "animationPlayState": w, "animationTimingFunction": w, "backdropFilter": w, "fontKerning": w, "scrollSnapType": wms, "scrollSnapPointsX": wms, "scrollSnapPointsY": wms, "scrollSnapDestination": wms, "scrollSnapCoordinate": wms, "shapeImageThreshold": w, "shapeImageMargin": w, "shapeImageOutside": w, "hyphens": wmms, "flowInto": wms, "flowFrom": wms, "regionFragment": wms, "textAlignLast": m, "tabSize": m, "wrapFlow": ms, "wrapThrough": ms, "wrapMargin": ms, "gridTemplateColumns": ms, "gridTemplateRows": ms, "gridTemplateAreas": ms, "gridTemplate": ms, "gridAutoColumns": ms, "gridAutoRows": ms, "gridAutoFlow": ms, "grid": ms, "gridRowStart": ms, "gridColumnStart": ms, "gridRowEnd": ms, "gridRow": ms, "gridColumn": ms, "gridColumnEnd": ms, "gridColumnGap": ms, "gridRowGap": ms, "gridArea": ms, "gridGap": ms, "textSizeAdjust": wms, "borderImage": w, "borderImageOutset": w, "borderImageRepeat": w, "borderImageSlice": w, "borderImageSource": w, "borderImageWidth": w, "transitionDelay": w, "transitionDuration": w, "transitionProperty": w, "transitionTimingFunction": w }
|
||||
};
|
||||
module.exports = exports["default"];
|
Reference in New Issue
Block a user