forked from p15670423/monkey
cc: Change schema for Network configuration tab to decouple info box and blocked IPs' input field
This commit is contained in:
parent
e6c9377908
commit
677f995bb3
|
@ -9,6 +9,13 @@ BASIC_NETWORK = {
|
||||||
"title": "Scope",
|
"title": "Scope",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
|
"info_box": {
|
||||||
|
"title": "",
|
||||||
|
"type": "object",
|
||||||
|
"info": 'The Monkey scans its subnet if "Local network scan" is ticked. '
|
||||||
|
'Additionally, the Monkey scans machines according to "Scan '
|
||||||
|
'target list".',
|
||||||
|
},
|
||||||
"blocked_ips": {
|
"blocked_ips": {
|
||||||
"title": "Blocked IPs",
|
"title": "Blocked IPs",
|
||||||
"type": "array",
|
"type": "array",
|
||||||
|
@ -19,9 +26,6 @@ BASIC_NETWORK = {
|
||||||
},
|
},
|
||||||
"default": [],
|
"default": [],
|
||||||
"description": "List of IPs that the Monkey will not scan.",
|
"description": "List of IPs that the Monkey will not scan.",
|
||||||
"info": 'The Monkey scans its subnet if "Local network scan" is ticked. '
|
|
||||||
'Additionally the monkey scans machines according to "Scan '
|
|
||||||
'target list".',
|
|
||||||
},
|
},
|
||||||
"local_network_scan": {
|
"local_network_scan": {
|
||||||
"title": "Local network scan",
|
"title": "Local network scan",
|
||||||
|
|
|
@ -18,8 +18,8 @@ export default function UiSchema(props) {
|
||||||
basic_network: {
|
basic_network: {
|
||||||
'ui:order': ['scope', 'network_analysis'],
|
'ui:order': ['scope', 'network_analysis'],
|
||||||
scope: {
|
scope: {
|
||||||
blocked_ips: {
|
info_box: {
|
||||||
'ui:field': FieldWithInfo
|
'ui:field': InfoField
|
||||||
},
|
},
|
||||||
subnet_scan_list: {
|
subnet_scan_list: {
|
||||||
format: 'ip-list'
|
format: 'ip-list'
|
||||||
|
|
Loading…
Reference in New Issue