diff --git a/definitions/base.js b/definitions/base.js index 0fbd1067..98c75748 100644 --- a/definitions/base.js +++ b/definitions/base.js @@ -9225,6 +9225,89 @@ module.exports = function(s,config,lang){ ] }, } - } + }, + "Rally": { + "section": "Rally", + "name": "Rally", + "blocks": { + "Search Settings": { + "id": "rallyConfigure", + "name": lang.Scan, + "blockquote": lang.RallyDescription, + "color": "green", + "section-pre-class": "col-md-4", + isFormGroupGroup: true, + "info": [ + { + "name": "host", + "field": lang["Host"], + "placeholder": "http://shinobi_host:8080", + }, + { + "name": "groupKey", + "field": lang["Group Key"], + }, + { + "name": "apiKey", + "field": lang["API Key"], + "description": lang.rallyApiKeyFieldText, + }, + { + "name": "channel", + "field": lang["Channel"], + "description": lang.rallyChannelDescription, + }, + { + "fieldType": "btn-group", + "btns": [ + { + forForm: true, + "fieldType": "btn", + "class": `btn-success fill mb-3`, + "icon": `search`, + "attribute": `type="submit"`, + "btnContent": `${lang['Scan']}`, + } + ] + } + ] + }, + "Management": { + "id": "rallyManagement", + "noHeader": true, + "color": "blue", + "section-pre-class": "col-md-8", + "info": [ + { + "id":"rallyServerInfo", + "fieldType": "div", + "class": "mb-3", + }, + { + "fieldType": "btn-group", + "class": "mb-3", + "btns": [ + { + "fieldType": "btn", + "class": `btn-success add-all`, + "btnContent": ` ${lang['Add All (Rallied)']}`, + }, + // { + // "fieldType": "btn", + // "class": `btn-success add-all-direct`, + // "btnContent": ` ${lang['Add All (Direct)']}`, + // }, + ], + }, + { + "id":"rallyCameras", + "fieldType": "table", + "attribute": `data-classes="table table-striped"`, + "divContent": "" + } + ] + }, + } + } }) } diff --git a/libs/rally.js b/libs/rally.js index 181aefe7..c07ee81b 100644 --- a/libs/rally.js +++ b/libs/rally.js @@ -43,86 +43,4 @@ module.exports = (s,config,lang,app,io) => { // page structure config.webBlocksPreloaded.push(`home/rally`); - s.definitions['Rally'] = { - "name": "Rally", - "blocks": { - "Search Settings": { - "id": "rallyConfigure", - "name": lang.Scan, - "blockquote": lang.RallyDescription, - "color": "green", - "section-pre-class": "col-md-4", - isFormGroupGroup: true, - "info": [ - { - "name": "host", - "field": lang["Host"], - "placeholder": "http://shinobi_host:8080", - }, - { - "name": "groupKey", - "field": lang["Group Key"], - }, - { - "name": "apiKey", - "field": lang["API Key"], - "description": lang.rallyApiKeyFieldText, - }, - { - "name": "channel", - "field": lang["Channel"], - "description": lang.rallyChannelDescription, - }, - { - "fieldType": "btn-group", - "btns": [ - { - forForm: true, - "fieldType": "btn", - "class": `btn-success fill mb-3`, - "icon": `search`, - "attribute": `type="submit"`, - "btnContent": `${lang['Scan']}`, - } - ] - } - ] - }, - "Management": { - "id": "rallyManagement", - "noHeader": true, - "color": "blue", - "section-pre-class": "col-md-8", - "info": [ - { - "id":"rallyServerInfo", - "fieldType": "div", - "class": "mb-3", - }, - { - "fieldType": "btn-group", - "class": "mb-3", - "btns": [ - { - "fieldType": "btn", - "class": `btn-success add-all`, - "btnContent": ` ${lang['Add All (Rallied)']}`, - }, - // { - // "fieldType": "btn", - // "class": `btn-success add-all-direct`, - // "btnContent": ` ${lang['Add All (Direct)']}`, - // }, - ], - }, - { - "id":"rallyCameras", - "fieldType": "table", - "attribute": `data-classes="table table-striped"`, - "divContent": "" - } - ] - }, - } - } }