forked from p34709852/monkey
ui: Remove title and type from config schema
This commit is contained in:
parent
8ee3ab4317
commit
752ea6af10
|
@ -10,8 +10,6 @@ BASIC_NETWORK = {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"info_box": {
|
"info_box": {
|
||||||
"title": "",
|
|
||||||
"type": "text",
|
|
||||||
"info": 'The Monkey scans its subnet if "Local network scan" is checked. '
|
"info": 'The Monkey scans its subnet if "Local network scan" is checked. '
|
||||||
'Additionally, the Monkey scans machines according to "Scan '
|
'Additionally, the Monkey scans machines according to "Scan '
|
||||||
'target list".',
|
'target list".',
|
||||||
|
|
|
@ -23,8 +23,6 @@ RANSOMWARE = {
|
||||||
"in the files contained within the target directories.",
|
"in the files contained within the target directories.",
|
||||||
},
|
},
|
||||||
"info_box": {
|
"info_box": {
|
||||||
"title": "",
|
|
||||||
"type": "text",
|
|
||||||
"info": "No files will be encrypted if a directory is not specified or doesn't "
|
"info": "No files will be encrypted if a directory is not specified or doesn't "
|
||||||
"exist on a victim machine.",
|
"exist on a victim machine.",
|
||||||
},
|
},
|
||||||
|
@ -53,8 +51,6 @@ RANSOMWARE = {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
"text_box": {
|
"text_box": {
|
||||||
"title": "",
|
|
||||||
"type": "text",
|
|
||||||
"text": "Note: A README.txt will be left in the specified target " "directory.",
|
"text": "Note: A README.txt will be left in the specified target " "directory.",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
@ -4,9 +4,7 @@ class TextBox extends React.Component {
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
return (
|
return (
|
||||||
<>
|
|
||||||
<p>{this.props.schema.text}</p>
|
<p>{this.props.schema.text}</p>
|
||||||
</>
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -58,7 +58,7 @@ class ConfigurePageComponent extends AuthComponent {
|
||||||
}
|
}
|
||||||
|
|
||||||
getSectionsOrder() {
|
getSectionsOrder() {
|
||||||
let islandMode = 'advanced'
|
let islandMode = this.props.islandMode ? this.props.islandMode : 'advanced'
|
||||||
return CONFIGURATION_TABS_PER_MODE[islandMode];
|
return CONFIGURATION_TABS_PER_MODE[islandMode];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue