forked from p15670423/monkey
Balance by fixing a bunch of small eslint and general code hint warnings
This commit is contained in:
parent
32515e0990
commit
95303309e5
|
@ -126,7 +126,7 @@ class AppComponent extends AuthComponent {
|
||||||
<Row>
|
<Row>
|
||||||
<Col sm={3} md={2} className='sidebar'>
|
<Col sm={3} md={2} className='sidebar'>
|
||||||
<div className='header'>
|
<div className='header'>
|
||||||
<img src={logoImage} style={{width: '5vw', margin: '15px'}}/>
|
<img alt="logo" src={logoImage} style={{width: '5vw', margin: '15px'}}/>
|
||||||
<img src={infectionMonkeyImage} style={{width: '15vw'}} alt='Infection Monkey'/>
|
<img src={infectionMonkeyImage} style={{width: '15vw'}} alt='Infection Monkey'/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -189,7 +189,7 @@ class AppComponent extends AuthComponent {
|
||||||
<hr/>
|
<hr/>
|
||||||
<div className='guardicore-link text-center' style={{'marginBottom': '0.5em'}}>
|
<div className='guardicore-link text-center' style={{'marginBottom': '0.5em'}}>
|
||||||
<span>Powered by</span>
|
<span>Powered by</span>
|
||||||
<a href='http://www.guardicore.com' target='_blank'>
|
<a href='http://www.guardicore.com' rel="noopener noreferrer" target='_blank'>
|
||||||
<img src={guardicoreLogoImage} alt='GuardiCore'/>
|
<img src={guardicoreLogoImage} alt='GuardiCore'/>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -49,7 +49,7 @@ class MitigationsComponent extends React.Component {
|
||||||
|
|
||||||
static getMitigationName(name, url) {
|
static getMitigationName(name, url) {
|
||||||
if(url){
|
if(url){
|
||||||
return (<a href={url} target={'_blank'}>{name}</a>)
|
return (<a href={url} rel="noopener noreferrer" target={'_blank'}>{name}</a>)
|
||||||
} else {
|
} else {
|
||||||
return (<p>{name}</p>)
|
return (<p>{name}</p>)
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,10 +21,10 @@ class LicensePageComponent extends React.Component {
|
||||||
<p>
|
<p>
|
||||||
Copyright <i className="glyphicon glyphicon-copyright-mark"/> {rainge(2015)} Guardicore Ltd.
|
Copyright <i className="glyphicon glyphicon-copyright-mark"/> {rainge(2015)} Guardicore Ltd.
|
||||||
<br/>
|
<br/>
|
||||||
Licensed under <a href="https://www.gnu.org/licenses/gpl-3.0.html" target="_blank">GPLv3</a>.
|
Licensed under <a href="https://www.gnu.org/licenses/gpl-3.0.html" rel="noopener noreferrer" target="_blank">GPLv3</a>.
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
The source code is available on <a href="https://github.com/guardicore/monkey" target="_blank">GitHub</a>
|
The source code is available on <a href="https://github.com/guardicore/monkey" rel="noopener noreferrer" target="_blank">GitHub</a>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</Col>
|
</Col>
|
||||||
|
|
|
@ -12,7 +12,7 @@ class ConfigurePageComponent extends React.Component{
|
||||||
render(){
|
render(){
|
||||||
return(
|
return(
|
||||||
<div className={'not-found'}>
|
<div className={'not-found'}>
|
||||||
<img className={'monkey-detective'} src={monkeyDetective}/>
|
<img alt="404 monkey image" className={'monkey-detective'} src={monkeyDetective}/>
|
||||||
<div className={'text-block'}>
|
<div className={'text-block'}>
|
||||||
<h1 className={'not-found-title'}>404</h1>
|
<h1 className={'not-found-title'}>404</h1>
|
||||||
<h2 className={'not-found-subtitle'}>Page not found</h2>
|
<h2 className={'not-found-subtitle'}>Page not found</h2>
|
||||||
|
|
|
@ -256,7 +256,7 @@ class RunMonkeyPageComponent extends AuthComponent {
|
||||||
<i className="glyphicon glyphicon-info-sign" style={{'marginRight': '5px'}}/>
|
<i className="glyphicon glyphicon-info-sign" style={{'marginRight': '5px'}}/>
|
||||||
Not sure what this is? Not seeing your AWS EC2 instances? <a
|
Not sure what this is? Not seeing your AWS EC2 instances? <a
|
||||||
href="https://github.com/guardicore/monkey/wiki/Monkey-Island:-Running-the-monkey-on-AWS-EC2-instances"
|
href="https://github.com/guardicore/monkey/wiki/Monkey-Island:-Running-the-monkey-on-AWS-EC2-instances"
|
||||||
target="_blank">Read the documentation</a>!
|
rel="noopener noreferrer" target="_blank">Read the documentation</a>!
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
{
|
{
|
||||||
|
|
|
@ -22,7 +22,7 @@ class RunServerPageComponent extends React.Component {
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
To read more about the Monkey, visit <a href="http://infectionmonkey.com"
|
To read more about the Monkey, visit <a href="http://infectionmonkey.com"
|
||||||
target="_blank">infectionmonkey.com</a>
|
rel="noopener noreferrer" target="_blank">infectionmonkey.com</a>
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
Go ahead and <Link to="/run-monkey">run the monkey</Link>.
|
Go ahead and <Link to="/run-monkey">run the monkey</Link>.
|
||||||
|
|
|
@ -20,7 +20,7 @@ class ReportMatrixComponent extends React.Component {
|
||||||
}
|
}
|
||||||
let tech_type = this.state.schema.properties[type_key];
|
let tech_type = this.state.schema.properties[type_key];
|
||||||
columns.push({
|
columns.push({
|
||||||
Header: () => (<a href={tech_type.link} target="_blank">{tech_type.title}</a>),
|
Header: () => (<a href={tech_type.link} rel="noopener noreferrer" target="_blank">{tech_type.title}</a>),
|
||||||
id: type_key,
|
id: type_key,
|
||||||
accessor: x => this.renderTechnique(x[tech_type.title]),
|
accessor: x => this.renderTechnique(x[tech_type.title]),
|
||||||
style: {'whiteSpace': 'unset'}
|
style: {'whiteSpace': 'unset'}
|
||||||
|
|
|
@ -37,7 +37,7 @@ class SelectedTechnique extends React.Component {
|
||||||
{this.state.techniques[tech_id].title}
|
{this.state.techniques[tech_id].title}
|
||||||
</span>
|
</span>
|
||||||
<span>
|
<span>
|
||||||
<a href={this.state.techniques[tech_id].link} target='_blank' className={'link-to-technique'}>
|
<a href={this.state.techniques[tech_id].link} rel="noopener noreferrer" target='_blank' className={'link-to-technique'}>
|
||||||
<FontAwesomeIcon icon={faQuestionCircle}/>
|
<FontAwesomeIcon icon={faQuestionCircle}/>
|
||||||
</a>
|
</a>
|
||||||
</span>
|
</span>
|
||||||
|
|
|
@ -43,7 +43,7 @@ class TechniqueDropdowns extends React.Component{
|
||||||
{this.state.techniques[tech_id].title}
|
{this.state.techniques[tech_id].title}
|
||||||
</span>
|
</span>
|
||||||
<span>
|
<span>
|
||||||
<a href={this.state.techniques[tech_id].link} target='_blank' className={'link-to-technique'}>
|
<a href={this.state.techniques[tech_id].link} rel="noopener noreferrer" target='_blank' className={'link-to-technique'}>
|
||||||
<FontAwesomeIcon icon={faQuestionCircle}/>
|
<FontAwesomeIcon icon={faQuestionCircle}/>
|
||||||
</a>
|
</a>
|
||||||
<FontAwesomeIcon icon={this.state.collapseOpen === tech_id ? faChevronDown : faChevronUp}/>
|
<FontAwesomeIcon icon={this.state.collapseOpen === tech_id ? faChevronDown : faChevronUp}/>
|
||||||
|
|
|
@ -29,7 +29,7 @@ export class ReportHeader extends Component {
|
||||||
</div>
|
</div>
|
||||||
</Col>
|
</Col>
|
||||||
<Col xs={4}>
|
<Col xs={4}>
|
||||||
<img src={monkeyLogoImage}
|
<img alt="monkey logo image" src={monkeyLogoImage}
|
||||||
style={{
|
style={{
|
||||||
float: 'right',
|
float: 'right',
|
||||||
width: '80px'
|
width: '80px'
|
||||||
|
|
|
@ -34,7 +34,7 @@ class VersionComponent extends React.Component {
|
||||||
<div>
|
<div>
|
||||||
<b>Newer version available!</b>
|
<b>Newer version available!</b>
|
||||||
<br/>
|
<br/>
|
||||||
<b><a target="_blank" href={this.state.downloadLink}>Download here <FontAwesomeIcon icon={faDownload}/></a></b>
|
<b><a rel="noopener noreferrer" target="_blank" href={this.state.downloadLink}>Download here <FontAwesomeIcon icon={faDownload}/></a></b>
|
||||||
</div>
|
</div>
|
||||||
:
|
:
|
||||||
undefined
|
undefined
|
||||||
|
|
|
@ -83,7 +83,7 @@ class CheckboxComponent extends React.PureComponent {
|
||||||
type='checkbox' value={this.state.checked}
|
type='checkbox' value={this.state.checked}
|
||||||
name={this.props.name}/>
|
name={this.props.name}/>
|
||||||
<label className='text'>{this.props.children}</label>
|
<label className='text'>{this.props.children}</label>
|
||||||
<div className='ui-btn-ping' onTransitionEnd={this.stopAnimation}></div>
|
<div className='ui-btn-ping' onTransitionEnd={this.stopAnimation}/>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html>
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title>Infection Monkey Island Server</title>
|
<title>Infection Monkey Island Server</title>
|
||||||
|
|
Loading…
Reference in New Issue