Completely updated React, fixed #11, (hopefully)
This commit is contained in:
23
goTorrentWebUI/node_modules/react-scripts/node_modules/ansi-styles/index.js
generated
vendored
23
goTorrentWebUI/node_modules/react-scripts/node_modules/ansi-styles/index.js
generated
vendored
@@ -102,30 +102,43 @@ function assembleStyles() {
|
||||
});
|
||||
}
|
||||
|
||||
const ansi2ansi = n => n;
|
||||
const rgb2rgb = (r, g, b) => [r, g, b];
|
||||
|
||||
styles.color.close = '\u001B[39m';
|
||||
styles.bgColor.close = '\u001B[49m';
|
||||
|
||||
styles.color.ansi = {};
|
||||
styles.color.ansi256 = {};
|
||||
styles.color.ansi = {
|
||||
ansi: wrapAnsi16(ansi2ansi, 0)
|
||||
};
|
||||
styles.color.ansi256 = {
|
||||
ansi256: wrapAnsi256(ansi2ansi, 0)
|
||||
};
|
||||
styles.color.ansi16m = {
|
||||
rgb: wrapAnsi16m(rgb2rgb, 0)
|
||||
};
|
||||
|
||||
styles.bgColor.ansi = {};
|
||||
styles.bgColor.ansi256 = {};
|
||||
styles.bgColor.ansi = {
|
||||
ansi: wrapAnsi16(ansi2ansi, 10)
|
||||
};
|
||||
styles.bgColor.ansi256 = {
|
||||
ansi256: wrapAnsi256(ansi2ansi, 10)
|
||||
};
|
||||
styles.bgColor.ansi16m = {
|
||||
rgb: wrapAnsi16m(rgb2rgb, 10)
|
||||
};
|
||||
|
||||
for (const key of Object.keys(colorConvert)) {
|
||||
for (let key of Object.keys(colorConvert)) {
|
||||
if (typeof colorConvert[key] !== 'object') {
|
||||
continue;
|
||||
}
|
||||
|
||||
const suite = colorConvert[key];
|
||||
|
||||
if (key === 'ansi16') {
|
||||
key = 'ansi';
|
||||
}
|
||||
|
||||
if ('ansi16' in suite) {
|
||||
styles.color.ansi[key] = wrapAnsi16(suite.ansi16, 0);
|
||||
styles.bgColor.ansi[key] = wrapAnsi16(suite.ansi16, 10);
|
||||
|
22
goTorrentWebUI/node_modules/react-scripts/node_modules/ansi-styles/package.json
generated
vendored
22
goTorrentWebUI/node_modules/react-scripts/node_modules/ansi-styles/package.json
generated
vendored
@@ -1,25 +1,25 @@
|
||||
{
|
||||
"_args": [
|
||||
[
|
||||
"ansi-styles@3.2.0",
|
||||
"ansi-styles@3.2.1",
|
||||
"C:\\Users\\deranjer\\go\\src\\github.com\\deranjer\\goTorrent\\goTorrentWebUI"
|
||||
]
|
||||
],
|
||||
"_from": "ansi-styles@3.2.0",
|
||||
"_id": "ansi-styles@3.2.0",
|
||||
"_from": "ansi-styles@3.2.1",
|
||||
"_id": "ansi-styles@3.2.1",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha512-NnSOmMEYtVR2JVMIGTzynRkkaxtiq1xnFBcdQD/DnNCYPoEPsVJhM98BDyaoNOQIi7p4okdi3E27eN7GQbsUug==",
|
||||
"_integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==",
|
||||
"_location": "/react-scripts/ansi-styles",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "version",
|
||||
"registry": true,
|
||||
"raw": "ansi-styles@3.2.0",
|
||||
"raw": "ansi-styles@3.2.1",
|
||||
"name": "ansi-styles",
|
||||
"escapedName": "ansi-styles",
|
||||
"rawSpec": "3.2.0",
|
||||
"rawSpec": "3.2.1",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "3.2.0"
|
||||
"fetchSpec": "3.2.1"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/react-scripts/eslint/chalk",
|
||||
@@ -28,8 +28,8 @@
|
||||
"/react-scripts/pretty-format",
|
||||
"/react-scripts/table/chalk"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.0.tgz",
|
||||
"_spec": "3.2.0",
|
||||
"_resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz",
|
||||
"_spec": "3.2.1",
|
||||
"_where": "C:\\Users\\deranjer\\go\\src\\github.com\\deranjer\\goTorrent\\goTorrentWebUI",
|
||||
"author": {
|
||||
"name": "Sindre Sorhus",
|
||||
@@ -49,6 +49,7 @@
|
||||
"devDependencies": {
|
||||
"ava": "*",
|
||||
"babel-polyfill": "^6.23.0",
|
||||
"svg-term-cli": "^2.1.1",
|
||||
"xo": "*"
|
||||
},
|
||||
"engines": {
|
||||
@@ -87,7 +88,8 @@
|
||||
"url": "git+https://github.com/chalk/ansi-styles.git"
|
||||
},
|
||||
"scripts": {
|
||||
"screenshot": "svg-term --command='node screenshot' --out=screenshot.svg --padding=3 --width=55 --height=3 --at=1000 --no-cursor",
|
||||
"test": "xo && ava"
|
||||
},
|
||||
"version": "3.2.0"
|
||||
"version": "3.2.1"
|
||||
}
|
||||
|
2
goTorrentWebUI/node_modules/react-scripts/node_modules/ansi-styles/readme.md
generated
vendored
2
goTorrentWebUI/node_modules/react-scripts/node_modules/ansi-styles/readme.md
generated
vendored
@@ -4,7 +4,7 @@
|
||||
|
||||
You probably want the higher-level [chalk](https://github.com/chalk/chalk) module for styling your strings.
|
||||
|
||||

|
||||
<img src="https://cdn.rawgit.com/chalk/ansi-styles/8261697c95bf34b6c7767e2cbe9941a851d59385/screenshot.svg" width="900">
|
||||
|
||||
|
||||
## Install
|
||||
|
Reference in New Issue
Block a user