forked from p15670423/monkey
Merge pull request #643 from guardicore/hotfix/fix-ui-build-problems
Hotfix/fix ui build problems
This commit is contained in:
commit
e73c1d0612
11
.travis.yml
11
.travis.yml
|
@ -1,10 +1,15 @@
|
||||||
# Infection Monkey travis.yml. See Travis documentation for information about this file structure.
|
# Infection Monkey travis.yml. See Travis documentation for information about this file structure.
|
||||||
|
|
||||||
|
# If you change this file, you can validate using Travis CI's Build Config Explorer https://config.travis-ci.com/explore
|
||||||
|
|
||||||
group: travis_latest
|
group: travis_latest
|
||||||
|
|
||||||
language: python
|
language: python
|
||||||
|
|
||||||
cache: pip
|
cache:
|
||||||
|
- pip
|
||||||
|
- directories:
|
||||||
|
- "$HOME/.npm"
|
||||||
|
|
||||||
python:
|
python:
|
||||||
- 3.7
|
- 3.7
|
||||||
|
@ -23,6 +28,8 @@ install:
|
||||||
- npm --version
|
- npm --version
|
||||||
# Install NVM, see https://github.com/nvm-sh/nvm#installing-and-updating
|
# Install NVM, see https://github.com/nvm-sh/nvm#installing-and-updating
|
||||||
- curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash
|
- curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash
|
||||||
|
- export NVM_DIR="$HOME/.nvm"
|
||||||
|
- [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
|
||||||
- nvm install node
|
- nvm install node
|
||||||
- nvm use node
|
- nvm use node
|
||||||
- npm i -g eslint
|
- npm i -g eslint
|
||||||
|
@ -59,7 +66,7 @@ script:
|
||||||
|
|
||||||
# Check JS code. The npm install must happen AFTER the flake8 because the node_modules folder will cause a lot of errors.
|
# Check JS code. The npm install must happen AFTER the flake8 because the node_modules folder will cause a lot of errors.
|
||||||
- cd monkey_island/cc/ui
|
- cd monkey_island/cc/ui
|
||||||
- npm i
|
- npm ci # See https://docs.npmjs.com/cli/ci.html
|
||||||
- eslint ./src --quiet # Test for errors
|
- eslint ./src --quiet # Test for errors
|
||||||
- JS_WARNINGS_AMOUNT_UPPER_LIMIT=490
|
- JS_WARNINGS_AMOUNT_UPPER_LIMIT=490
|
||||||
- eslint ./src --max-warnings $JS_WARNINGS_AMOUNT_UPPER_LIMIT # Test for max warnings
|
- eslint ./src --max-warnings $JS_WARNINGS_AMOUNT_UPPER_LIMIT # Test for max warnings
|
||||||
|
|
|
@ -1,36 +0,0 @@
|
||||||
var webpackCfg = require('./webpack.config');
|
|
||||||
|
|
||||||
// Set node environment to testing
|
|
||||||
process.env.NODE_ENV = 'test';
|
|
||||||
|
|
||||||
module.exports = function (config) {
|
|
||||||
config.set({
|
|
||||||
basePath: '',
|
|
||||||
browsers: ['PhantomJS'],
|
|
||||||
files: [
|
|
||||||
'test/loadtests.js'
|
|
||||||
],
|
|
||||||
port: 8000,
|
|
||||||
captureTimeout: 60000,
|
|
||||||
frameworks: ['mocha', 'chai'],
|
|
||||||
client: {
|
|
||||||
mocha: {}
|
|
||||||
},
|
|
||||||
singleRun: true,
|
|
||||||
reporters: ['mocha', 'coverage'],
|
|
||||||
preprocessors: {
|
|
||||||
'test/loadtests.js': ['webpack', 'sourcemap']
|
|
||||||
},
|
|
||||||
webpack: webpackCfg,
|
|
||||||
webpackServer: {
|
|
||||||
noInfo: true
|
|
||||||
},
|
|
||||||
coverageReporter: {
|
|
||||||
dir: 'coverage/',
|
|
||||||
reporters: [
|
|
||||||
{type: 'html'},
|
|
||||||
{type: 'text'}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
});
|
|
||||||
};
|
|
File diff suppressed because it is too large
Load Diff
|
@ -14,14 +14,15 @@
|
||||||
"release:patch": "npm version patch && npm publish && git push --follow-tags",
|
"release:patch": "npm version patch && npm publish && git push --follow-tags",
|
||||||
"serve": "node server.js --env=dev",
|
"serve": "node server.js --env=dev",
|
||||||
"serve:dist": "node server.js --env=dist",
|
"serve:dist": "node server.js --env=dist",
|
||||||
"start": "webpack-dev-server --verbose --mode development --open --history-api-fallback --port 8000",
|
"start": "webpack-dev-server --verbose --mode development --open --history-api-fallback --port 8000"
|
||||||
"test": "karma start",
|
|
||||||
"test:watch": "karma start --autoWatch=true --singleRun=false"
|
|
||||||
},
|
},
|
||||||
"repository": "",
|
"repository": "",
|
||||||
"keywords": [],
|
"keywords": [],
|
||||||
"author": "Guardicore",
|
"author": "Guardicore",
|
||||||
"browserslist": "> 0.25%, not dead",
|
"browserslist": [
|
||||||
|
"> 0.25%",
|
||||||
|
"not dead"
|
||||||
|
],
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/cli": "^7.8.4",
|
"@babel/cli": "^7.8.4",
|
||||||
"@babel/core": "^7.9.6",
|
"@babel/core": "^7.9.6",
|
||||||
|
@ -32,8 +33,6 @@
|
||||||
"@babel/runtime": "^7.9.6",
|
"@babel/runtime": "^7.9.6",
|
||||||
"babel-eslint": "^10.1.0",
|
"babel-eslint": "^10.1.0",
|
||||||
"babel-loader": "^8.0.0",
|
"babel-loader": "^8.0.0",
|
||||||
"chai": "^4.2.0",
|
|
||||||
"copyfiles": "^2.2.0",
|
|
||||||
"css-loader": "^3.5.0",
|
"css-loader": "^3.5.0",
|
||||||
"eslint": "^6.8.0",
|
"eslint": "^6.8.0",
|
||||||
"eslint-loader": "^4.0.1",
|
"eslint-loader": "^4.0.1",
|
||||||
|
@ -42,27 +41,19 @@
|
||||||
"glob": "^7.1.6",
|
"glob": "^7.1.6",
|
||||||
"html-loader": "^0.5.5",
|
"html-loader": "^0.5.5",
|
||||||
"html-webpack-plugin": "^3.2.0",
|
"html-webpack-plugin": "^3.2.0",
|
||||||
"karma": "^3.1.4",
|
|
||||||
"karma-chai": "^0.1.0",
|
|
||||||
"karma-coverage": "^1.1.2",
|
|
||||||
"karma-mocha": "^1.0.0",
|
|
||||||
"karma-mocha-reporter": "^2.2.5",
|
|
||||||
"karma-phantomjs-launcher": "^1.0.0",
|
|
||||||
"karma-sourcemap-loader": "^0.3.5",
|
|
||||||
"karma-webpack": "^3.0.5",
|
|
||||||
"minimist": "^1.2.5",
|
"minimist": "^1.2.5",
|
||||||
"mocha": "^5.2.0",
|
|
||||||
"null-loader": "^0.1.1",
|
"null-loader": "^0.1.1",
|
||||||
"phantomjs-prebuilt": "^2.1.16",
|
|
||||||
"react-addons-test-utils": "^15.6.2",
|
"react-addons-test-utils": "^15.6.2",
|
||||||
"react-event-timeline": "^1.6.3",
|
|
||||||
"react-hot-loader": "^4.12.20",
|
|
||||||
"rimraf": "^2.7.1",
|
"rimraf": "^2.7.1",
|
||||||
"style-loader": "^0.22.1",
|
"style-loader": "^0.22.1",
|
||||||
|
"copyfiles": "^2.2.0",
|
||||||
"url-loader": "^1.1.2",
|
"url-loader": "^1.1.2",
|
||||||
|
"sass-loader": "^7.3.1",
|
||||||
|
"node-sass": "^4.14.1",
|
||||||
"webpack": "^4.43.0",
|
"webpack": "^4.43.0",
|
||||||
"webpack-cli": "^3.3.11",
|
"webpack-cli": "^3.3.11",
|
||||||
"webpack-dev-server": "^3.10.3"
|
"stylelint": "^13.3.3",
|
||||||
|
"webpack-dev-server": "^3.11.0"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/polyfill": "^7.8.0",
|
"@babel/polyfill": "^7.8.0",
|
||||||
|
@ -80,13 +71,10 @@
|
||||||
"fetch": "^1.1.0",
|
"fetch": "^1.1.0",
|
||||||
"file-saver": "^2.0.2",
|
"file-saver": "^2.0.2",
|
||||||
"filepond": "^4.7.3",
|
"filepond": "^4.7.3",
|
||||||
"json-loader": "^0.5.7",
|
|
||||||
"jwt-decode": "^2.2.0",
|
"jwt-decode": "^2.2.0",
|
||||||
"marked": "^0.8.2",
|
"marked": "^0.8.2",
|
||||||
"moment": "^2.24.0",
|
|
||||||
"node-sass": "^4.13.0",
|
|
||||||
"normalize.css": "^8.0.0",
|
"normalize.css": "^8.0.0",
|
||||||
"npm": "^6.13.1",
|
"npm": "^6.14.5",
|
||||||
"pluralize": "^7.0.0",
|
"pluralize": "^7.0.0",
|
||||||
"prop-types": "^15.7.2",
|
"prop-types": "^15.7.2",
|
||||||
"rainge": "^1.0.1",
|
"rainge": "^1.0.1",
|
||||||
|
@ -97,6 +85,8 @@
|
||||||
"react-data-components": "^1.2.0",
|
"react-data-components": "^1.2.0",
|
||||||
"react-desktop-notification": "^1.0.9",
|
"react-desktop-notification": "^1.0.9",
|
||||||
"react-dimensions": "^1.3.0",
|
"react-dimensions": "^1.3.0",
|
||||||
|
"react-event-timeline": "^1.6.3",
|
||||||
|
"react-hot-loader": "^4.12.20",
|
||||||
"react-dom": "^16.12.0",
|
"react-dom": "^16.12.0",
|
||||||
"react-fa": "^5.0.0",
|
"react-fa": "^5.0.0",
|
||||||
"react-filepond": "^7.0.1",
|
"react-filepond": "^7.0.1",
|
||||||
|
@ -110,8 +100,6 @@
|
||||||
"react-toggle": "^4.1.1",
|
"react-toggle": "^4.1.1",
|
||||||
"react-tooltip-lite": "^1.10.0",
|
"react-tooltip-lite": "^1.10.0",
|
||||||
"redux": "^4.0.4",
|
"redux": "^4.0.4",
|
||||||
"sass-loader": "^7.3.1",
|
"sha3": "^2.0.7"
|
||||||
"sha3": "^2.0.7",
|
|
||||||
"stylelint": "^13.3.3"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,7 +4,7 @@ import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
|
||||||
import { faQuestionCircle } from '@fortawesome/free-solid-svg-icons/faQuestionCircle'
|
import { faQuestionCircle } from '@fortawesome/free-solid-svg-icons/faQuestionCircle'
|
||||||
import { faChevronUp } from '@fortawesome/free-solid-svg-icons/faChevronUp'
|
import { faChevronUp } from '@fortawesome/free-solid-svg-icons/faChevronUp'
|
||||||
import { faChevronDown } from '@fortawesome/free-solid-svg-icons/faChevronDown'
|
import { faChevronDown } from '@fortawesome/free-solid-svg-icons/faChevronDown'
|
||||||
import { faToggleOn } from '@fortawesome/free-solid-svg-icons/faToggleON'
|
import { faToggleOn } from '@fortawesome/free-solid-svg-icons/faToggleOn'
|
||||||
|
|
||||||
import {Button} from 'react-bootstrap';
|
import {Button} from 'react-bootstrap';
|
||||||
import AttackReport from '../AttackReport';
|
import AttackReport from '../AttackReport';
|
||||||
|
|
Loading…
Reference in New Issue