From 20986852de7e5aa06f3196e54db9172118a6785e Mon Sep 17 00:00:00 2001 From: Jokob-sk Date: Wed, 23 Aug 2023 10:08:12 +1000 Subject: [PATCH] arp_scan plugin update column + settings skip cache --- front/plugins/arp_scan/config.json | 44 ++++++++++++++++++++++--- front/plugins/nmap_services/config.json | 4 +-- front/settings.php | 3 +- 3 files changed, 44 insertions(+), 7 deletions(-) diff --git a/front/plugins/arp_scan/config.json b/front/plugins/arp_scan/config.json index cfa0d38f..1e3dd99f 100755 --- a/front/plugins/arp_scan/config.json +++ b/front/plugins/arp_scan/config.json @@ -308,14 +308,50 @@ "default_value":"", "options": [], "localized": ["name"], - "name":[{ + "name":[ + { "language_code":"en_us", "string" : "Changed" - }, - { + }, + { "language_code":"es_es", "string" : "Cambiado" + } + ] + }, + { + "column": "Status", + "css_classes": "col-sm-1", + "show": true, + "type": "replace", + "default_value":"", + "options": [ + { + "equals": "watched-not-changed", + "replacement": "
" + }, + { + "equals": "watched-changed", + "replacement": "
" + }, + { + "equals": "new", + "replacement": "
" + }, + { + "equals": "missing-in-last-scan", + "replacement": "
" + } + ], + "localized": ["name"], + "name":[{ + "language_code":"en_us", + "string" : "Status" + }, + { + "language_code":"es_es", + "string" : "Estado" }] - } + } ] } diff --git a/front/plugins/nmap_services/config.json b/front/plugins/nmap_services/config.json index 6b21b53a..cce1608d 100755 --- a/front/plugins/nmap_services/config.json +++ b/front/plugins/nmap_services/config.json @@ -16,11 +16,11 @@ "localized": ["display_name", "description", "icon"], "display_name" : [{ "language_code":"en_us", - "string" : "Services (NMAP)" + "string" : "Services & Ports (NMAP)" }, { "language_code":"es_es", - "string" : "Servicios (NMAP)" + "string" : "Servicios & Puertos (NMAP)" }], "icon":[{ "language_code":"en_us", diff --git a/front/settings.php b/front/settings.php index fd68f5f3..fe521768 100755 --- a/front/settings.php +++ b/front/settings.php @@ -99,7 +99,7 @@ while ($row = $result -> fetchArray (SQLITE3_ASSOC)) { function getData(){ - $.get('api/table_settings.json', function(res) { + $.get('api/table_settings.json?nocache=' + Date.now(), function(res) { settingsData = res["data"]; @@ -584,6 +584,7 @@ while ($row = $result -> fetchArray (SQLITE3_ASSOC)) { showModalOk ('Result', data ); // Remove navigation prompt "Are you sure you want to leave..." window.onbeforeunload = null; + } }); }