Completely updated React, fixed #11, (hopefully)
This commit is contained in:
4
goTorrentWebUI/node_modules/material-ui/node_modules/jss-props-sort/.npmignore
generated
vendored
4
goTorrentWebUI/node_modules/material-ui/node_modules/jss-props-sort/.npmignore
generated
vendored
@@ -1,4 +0,0 @@
|
||||
src
|
||||
bench
|
||||
coverage
|
||||
tmp
|
||||
4
goTorrentWebUI/node_modules/material-ui/node_modules/jss-props-sort/changelog.md
generated
vendored
4
goTorrentWebUI/node_modules/material-ui/node_modules/jss-props-sort/changelog.md
generated
vendored
@@ -1,3 +1,7 @@
|
||||
## 6.0.0 / 2017-09-30
|
||||
|
||||
- update to jss 9
|
||||
|
||||
## 5.0.0 / 2017-06-20
|
||||
|
||||
- update to jss 8
|
||||
|
||||
113
goTorrentWebUI/node_modules/material-ui/node_modules/jss-props-sort/package.json
generated
vendored
113
goTorrentWebUI/node_modules/material-ui/node_modules/jss-props-sort/package.json
generated
vendored
@@ -1,44 +1,41 @@
|
||||
{
|
||||
"name": "jss-props-sort",
|
||||
"description": "JSS plugin that ensures style properties extend each other instead of override",
|
||||
"version": "5.0.0",
|
||||
"_args": [
|
||||
[
|
||||
"jss-props-sort@6.0.0",
|
||||
"C:\\Users\\deranjer\\go\\src\\github.com\\deranjer\\goTorrent\\goTorrentWebUI"
|
||||
]
|
||||
],
|
||||
"_from": "jss-props-sort@6.0.0",
|
||||
"_id": "jss-props-sort@6.0.0",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha512-E89UDcrphmI0LzmvYk25Hp4aE5ZBsXqMWlkFXS0EtPkunJkRr+WXdCNYbXbksIPnKlBenGB9OxzQY+mVc70S+g==",
|
||||
"_location": "/material-ui/jss-props-sort",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "version",
|
||||
"registry": true,
|
||||
"raw": "jss-props-sort@6.0.0",
|
||||
"name": "jss-props-sort",
|
||||
"escapedName": "jss-props-sort",
|
||||
"rawSpec": "6.0.0",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "6.0.0"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/material-ui",
|
||||
"/material-ui/jss-preset-default"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/jss-props-sort/-/jss-props-sort-6.0.0.tgz",
|
||||
"_spec": "6.0.0",
|
||||
"_where": "C:\\Users\\deranjer\\go\\src\\github.com\\deranjer\\goTorrent\\goTorrentWebUI",
|
||||
"author": {
|
||||
"name": "Oleg Slobodskoi",
|
||||
"email": "oleg008@gmail.com"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git@github.com:cssinjs/jss-props-sort.git"
|
||||
"bugs": {
|
||||
"url": "https://github.com/cssinjs/jss-props-sort/issues"
|
||||
},
|
||||
"keywords": [
|
||||
"cssinjs",
|
||||
"css-in-js",
|
||||
"css in js",
|
||||
"jss",
|
||||
"plugin",
|
||||
"sort",
|
||||
"props"
|
||||
],
|
||||
"engines": {},
|
||||
"scripts": {
|
||||
"all": "npm run lint && npm run test && npm run build",
|
||||
"build": "npm run clean && npm run build:lib && npm run build:tests && npm run build:dist",
|
||||
"build:lib": "babel src --out-dir lib",
|
||||
"build:tests": "npm run build:tests:lib && npm run build:tests:local",
|
||||
"build:tests:lib": "cross-env NODE_ENV=test babel src --out-dir tests",
|
||||
"build:tests:local": "cross-env NODE_ENV=test webpack src/index.test.js tmp/tests.js",
|
||||
"build:dist": "npm run build:dist:max && npm run build:dist:min",
|
||||
"build:dist:max": "cross-env NODE_ENV=development webpack src/index.js dist/jss-props-sort.js",
|
||||
"build:dist:min": "cross-env NODE_ENV=production webpack src/index.js dist/jss-props-sort.min.js",
|
||||
"clean": "rimraf {lib,dist,tests,tmp}/*",
|
||||
"lint": "eslint ./src",
|
||||
"lint:staged": "lint-staged",
|
||||
"test": "cross-env NODE_ENV=test karma start --single-run ",
|
||||
"test:watch": "cross-env NODE_ENV=test karma start",
|
||||
"prepublish": "npm run all"
|
||||
},
|
||||
"license": "MIT",
|
||||
"main": "lib/index.js",
|
||||
"description": "JSS plugin that ensures style properties extend each other instead of override",
|
||||
"devDependencies": {
|
||||
"babel-cli": "^6.5.1",
|
||||
"babel-core": "^6.5.1",
|
||||
@@ -57,7 +54,7 @@
|
||||
"eslint-plugin-jsx-a11y": "^2.2.3",
|
||||
"eslint-plugin-react": "^6.5.0",
|
||||
"expect.js": "^0.3.1",
|
||||
"jss": "^8.0.0",
|
||||
"jss": "^9.0.0",
|
||||
"karma": "^1.1.1",
|
||||
"karma-benchmark": "^0.6.0",
|
||||
"karma-benchmark-reporter": "^0.1.1",
|
||||
@@ -74,14 +71,50 @@
|
||||
"rimraf": "^2.5.4",
|
||||
"webpack": "^1.13.1"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"jss": "^8.0.0"
|
||||
},
|
||||
"engines": {},
|
||||
"homepage": "https://github.com/cssinjs/jss-props-sort#readme",
|
||||
"keywords": [
|
||||
"cssinjs",
|
||||
"css-in-js",
|
||||
"css in js",
|
||||
"jss",
|
||||
"plugin",
|
||||
"sort",
|
||||
"props"
|
||||
],
|
||||
"license": "MIT",
|
||||
"lint-staged": {
|
||||
"./src/*.js": [
|
||||
"eslint",
|
||||
"git add"
|
||||
]
|
||||
},
|
||||
"pre-commit": "lint:staged"
|
||||
"main": "lib/index.js",
|
||||
"name": "jss-props-sort",
|
||||
"peerDependencies": {
|
||||
"jss": "^9.0.0"
|
||||
},
|
||||
"pre-commit": "lint:staged",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+ssh://git@github.com/cssinjs/jss-props-sort.git"
|
||||
},
|
||||
"scripts": {
|
||||
"all": "npm run lint && npm run test && npm run build",
|
||||
"build": "npm run clean && npm run build:lib && npm run build:tests && npm run build:dist",
|
||||
"build:dist": "npm run build:dist:max && npm run build:dist:min",
|
||||
"build:dist:max": "cross-env NODE_ENV=development webpack src/index.js dist/jss-props-sort.js",
|
||||
"build:dist:min": "cross-env NODE_ENV=production webpack src/index.js dist/jss-props-sort.min.js",
|
||||
"build:lib": "babel src --out-dir lib",
|
||||
"build:tests": "npm run build:tests:lib && npm run build:tests:local",
|
||||
"build:tests:lib": "cross-env NODE_ENV=test babel src --out-dir tests",
|
||||
"build:tests:local": "cross-env NODE_ENV=test webpack src/index.test.js tmp/tests.js",
|
||||
"clean": "rimraf {lib,dist,tests,tmp}/*",
|
||||
"lint": "eslint ./src",
|
||||
"lint:staged": "lint-staged",
|
||||
"prepublish": "npm run all",
|
||||
"test": "cross-env NODE_ENV=test karma start --single-run ",
|
||||
"test:watch": "cross-env NODE_ENV=test karma start"
|
||||
},
|
||||
"version": "6.0.0"
|
||||
}
|
||||
|
||||
27
goTorrentWebUI/node_modules/material-ui/node_modules/jss-props-sort/tests/index.js
generated
vendored
27
goTorrentWebUI/node_modules/material-ui/node_modules/jss-props-sort/tests/index.js
generated
vendored
@@ -1,27 +0,0 @@
|
||||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports['default'] = jssPropsSort;
|
||||
/**
|
||||
* Sort props by length.
|
||||
*/
|
||||
function jssPropsSort() {
|
||||
function sort(prop0, prop1) {
|
||||
return prop0.length - prop1.length;
|
||||
}
|
||||
|
||||
function onProcessStyle(style, rule) {
|
||||
if (rule.type !== 'style') return style;
|
||||
|
||||
var newStyle = {};
|
||||
var props = Object.keys(style).sort(sort);
|
||||
for (var prop in props) {
|
||||
newStyle[props[prop]] = style[props[prop]];
|
||||
}
|
||||
return newStyle;
|
||||
}
|
||||
|
||||
return { onProcessStyle: onProcessStyle };
|
||||
}
|
||||
88
goTorrentWebUI/node_modules/material-ui/node_modules/jss-props-sort/tests/index.test.js
generated
vendored
88
goTorrentWebUI/node_modules/material-ui/node_modules/jss-props-sort/tests/index.test.js
generated
vendored
@@ -1,88 +0,0 @@
|
||||
'use strict';
|
||||
|
||||
var _expect = require('expect.js');
|
||||
|
||||
var _expect2 = _interopRequireDefault(_expect);
|
||||
|
||||
var _jss = require('jss');
|
||||
|
||||
var _index = require('./index');
|
||||
|
||||
var _index2 = _interopRequireDefault(_index);
|
||||
|
||||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
|
||||
|
||||
var settings = {
|
||||
createGenerateClassName: function createGenerateClassName() {
|
||||
return function (rule) {
|
||||
return rule.key + '-id';
|
||||
};
|
||||
}
|
||||
};
|
||||
|
||||
describe('jss-props-sort', function () {
|
||||
var jss = void 0;
|
||||
|
||||
beforeEach(function () {
|
||||
jss = (0, _jss.create)(settings).use((0, _index2['default'])());
|
||||
});
|
||||
|
||||
describe('sort props by length', function () {
|
||||
var sheet = void 0;
|
||||
|
||||
beforeEach(function () {
|
||||
sheet = jss.createStyleSheet({
|
||||
a: {
|
||||
'border-left': '1px',
|
||||
border: '3px'
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
it('should have a rule', function () {
|
||||
(0, _expect2['default'])(sheet.getRule('a')).to.not.be(undefined);
|
||||
});
|
||||
|
||||
it('should generate correct CSS', function () {
|
||||
(0, _expect2['default'])(sheet.toString()).to.be('.a-id {\n border: 3px;\n border-left: 1px;\n}');
|
||||
});
|
||||
});
|
||||
|
||||
describe('leave non-style rules unchanged', function () {
|
||||
describe('@font-face', function () {
|
||||
var sheet = void 0;
|
||||
|
||||
beforeEach(function () {
|
||||
sheet = jss.createStyleSheet({
|
||||
'@font-face': {
|
||||
'font-family': 'MyHelvetica',
|
||||
src: 'local("Helvetica")'
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
it('should generate correct CSS', function () {
|
||||
(0, _expect2['default'])(sheet.toString()).to.be('@font-face {\n font-family: MyHelvetica;\n src: local("Helvetica");\n}');
|
||||
});
|
||||
});
|
||||
|
||||
describe('@media', function () {
|
||||
var sheet = void 0;
|
||||
|
||||
beforeEach(function () {
|
||||
sheet = jss.createStyleSheet({
|
||||
'@media print': {
|
||||
a: {
|
||||
'border-left': '1px',
|
||||
border: '3px'
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
it('should generate correct CSS', function () {
|
||||
(0, _expect2['default'])(sheet.toString()).to.be('@media print {\n .a-id {\n border: 3px;\n border-left: 1px;\n }\n}');
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user