Att&ck implementation started

This commit is contained in:
VakarisZ 2019-03-12 12:15:10 +02:00
parent 11e6d3807a
commit 1c847ccc06
2 changed files with 23 additions and 1 deletions

View File

@ -0,0 +1,18 @@
import React from 'react';
// ATT&CK component
class AttackComponent extends React.Component {
constructor(props) {
super(props);
}
render() {
return (
<div className="data-table-container">
ATT&CK component
</div>
);
}
}
export default AttackComponent;

View File

@ -3,6 +3,7 @@ import Form from 'react-jsonschema-form';
import {Col, Nav, NavItem} from 'react-bootstrap';
import fileDownload from 'js-file-download';
import AuthComponent from '../AuthComponent';
import AttackComponent from 'components/config-components/Att&ck'
import { FilePond } from 'react-filepond';
import 'filepond/dist/filepond.min.css';
@ -13,6 +14,8 @@ class ConfigurePageComponent extends AuthComponent {
this.PBAlinuxPond = null;
this.currentSection = 'basic';
this.currentFormData = {};
this.sectionsOrder = ['basic', 'basic_network', 'monkey', 'cnc', 'network', 'exploits', 'internal', 'ATT&CK'];
this.sectionsOrder = ['basic', 'basic_network', 'monkey', 'cnc', 'network', 'exploits', 'internal'];
this.uiSchema = {
behaviour: {
@ -296,7 +299,8 @@ class ConfigurePageComponent extends AuthComponent {
</div>
: <div />
}
{ this.state.selectedSection ?
{ this.state.selectedSection === 'ATT&CK' ?
<AttackComponent/> : this.state.selectedSection ?
<Form schema={displayedSchema}
uiSchema={this.uiSchema}
formData={this.state.configuration[this.state.selectedSection]}