mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2025-12-07 01:26:11 -08:00
plugins columns cleanup, devDetail cleanup, better icon selector CUSTPROP
This commit is contained in:
@@ -1042,7 +1042,7 @@ height: 50px;
|
|||||||
|
|
||||||
.myhidden
|
.myhidden
|
||||||
{
|
{
|
||||||
display:none;
|
display:none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.center
|
.center
|
||||||
@@ -1364,6 +1364,7 @@ input[readonly] {
|
|||||||
|
|
||||||
.iconPreview {
|
.iconPreview {
|
||||||
min-width: 40px;
|
min-width: 40px;
|
||||||
|
/* display: inherit; */
|
||||||
}
|
}
|
||||||
|
|
||||||
.iconPreview svg{
|
.iconPreview svg{
|
||||||
@@ -1469,6 +1470,11 @@ input[readonly] {
|
|||||||
text-align: left;
|
text-align: left;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#panDetails .input-group {
|
||||||
|
|
||||||
|
min-height: 40px;
|
||||||
|
}
|
||||||
|
|
||||||
#devicePageInfoPlc
|
#devicePageInfoPlc
|
||||||
{
|
{
|
||||||
display: none;
|
display: none;
|
||||||
@@ -1547,10 +1553,6 @@ input[readonly] {
|
|||||||
}
|
}
|
||||||
/* #panDetails .dataTables_wrapper .bottom .paging_simple_numbers */
|
/* #panDetails .dataTables_wrapper .bottom .paging_simple_numbers */
|
||||||
|
|
||||||
#panDetails #NEWDEV_devIcon
|
|
||||||
{
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
#panDetails #NEWDEV_devCustomProps_label
|
#panDetails #NEWDEV_devCustomProps_label
|
||||||
{
|
{
|
||||||
@@ -2023,8 +2025,9 @@ input[readonly] {
|
|||||||
.pluginBadge
|
.pluginBadge
|
||||||
{
|
{
|
||||||
float: right;
|
float: right;
|
||||||
margin-right: 3px;
|
margin-right: 10px;
|
||||||
opacity: 0.6;
|
opacity: 0.6;
|
||||||
|
margin-top: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.pluginBadgeWrap
|
.pluginBadgeWrap
|
||||||
@@ -2033,7 +2036,7 @@ input[readonly] {
|
|||||||
display: ruby;
|
display: ruby;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
position: sticky;
|
position: sticky;
|
||||||
margin-top: 1px;
|
margin-top: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* -----------------------------------------------------------------------------
|
/* -----------------------------------------------------------------------------
|
||||||
|
|||||||
@@ -447,7 +447,7 @@ async function renderSmallBoxes() {
|
|||||||
"labelLang": "DevDetail_Shortcut_Presence",
|
"labelLang": "DevDetail_Shortcut_Presence",
|
||||||
"iconId": "deviceEventsIcon",
|
"iconId": "deviceEventsIcon",
|
||||||
"iconClass": "fa fa-calendar",
|
"iconClass": "fa fa-calendar",
|
||||||
"dataValue": `${deviceData.devPresenceHours}h`
|
"dataValue": `${deviceData.devPresenceHours ?? 0}h`
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"onclickEvent": "$('#tabEvents').trigger('click');",
|
"onclickEvent": "$('#tabEvents').trigger('click');",
|
||||||
|
|||||||
@@ -126,9 +126,9 @@
|
|||||||
// Group for Children.
|
// Group for Children.
|
||||||
DevDetail_Children_Title: {
|
DevDetail_Children_Title: {
|
||||||
data: ["devChildrenDynamic"],
|
data: ["devChildrenDynamic"],
|
||||||
docs: "https://github.com/jokob-sk/NetAlertX/blob/main/docs/CUSTOM_PROPERTIES.md",
|
docs: "https://github.com/jokob-sk/NetAlertX/blob/main/docs/NETWORK_TREE.md",
|
||||||
iconClass: "fa fa-list",
|
iconClass: "fa fa-list",
|
||||||
inputGroupClasses: "field-group cutprop-group col-lg-12 col-sm-12 col-xs-12",
|
inputGroupClasses: "field-group cutprop-group col-lg-6 col-sm-12 col-xs-12",
|
||||||
labelClasses: "col-sm-12 col-xs-12 control-label",
|
labelClasses: "col-sm-12 col-xs-12 control-label",
|
||||||
inputClasses: "col-sm-12 col-xs-12 input-group"
|
inputClasses: "col-sm-12 col-xs-12 input-group"
|
||||||
},
|
},
|
||||||
@@ -137,7 +137,7 @@
|
|||||||
data: ["devCustomProps"],
|
data: ["devCustomProps"],
|
||||||
docs: "https://github.com/jokob-sk/NetAlertX/blob/main/docs/CUSTOM_PROPERTIES.md",
|
docs: "https://github.com/jokob-sk/NetAlertX/blob/main/docs/CUSTOM_PROPERTIES.md",
|
||||||
iconClass: "fa fa-list",
|
iconClass: "fa fa-list",
|
||||||
inputGroupClasses: "field-group cutprop-group col-lg-12 col-sm-12 col-xs-12",
|
inputGroupClasses: "field-group cutprop-group col-lg-6 col-sm-12 col-xs-12",
|
||||||
labelClasses: "col-sm-12 col-xs-12 control-label",
|
labelClasses: "col-sm-12 col-xs-12 control-label",
|
||||||
inputClasses: "col-sm-12 col-xs-12 input-group"
|
inputClasses: "col-sm-12 col-xs-12 input-group"
|
||||||
}
|
}
|
||||||
@@ -213,15 +213,6 @@
|
|||||||
</span>`;
|
</span>`;
|
||||||
}
|
}
|
||||||
|
|
||||||
// handle generate IP for new device
|
|
||||||
if (setting.setKey == "NEWDEV_devIcon") {
|
|
||||||
inlineControl += `<span class="input-group-addon pointer"
|
|
||||||
onclick="showIconSelection()"
|
|
||||||
title="${getString("Gen_Select")}">
|
|
||||||
<i class="fa-solid fa-chevron-down" ></i>
|
|
||||||
</span>`;
|
|
||||||
}
|
|
||||||
|
|
||||||
// handle devChildrenDynamic or NEWDEV_devChildrenNicsDynamic - selected values and options are the same
|
// handle devChildrenDynamic or NEWDEV_devChildrenNicsDynamic - selected values and options are the same
|
||||||
if (
|
if (
|
||||||
Array.isArray(fieldData) &&
|
Array.isArray(fieldData) &&
|
||||||
|
|||||||
@@ -1198,6 +1198,9 @@ if (eventsList.length > 0) {
|
|||||||
let eventIcon = "fa-play";
|
let eventIcon = "fa-play";
|
||||||
|
|
||||||
switch (event) {
|
switch (event) {
|
||||||
|
case "select_icon":
|
||||||
|
eventIcon = "fa-chevron-down";
|
||||||
|
break;
|
||||||
case "add_icon":
|
case "add_icon":
|
||||||
case "add_option":
|
case "add_option":
|
||||||
eventIcon = "fa-square-plus";
|
eventIcon = "fa-square-plus";
|
||||||
|
|||||||
@@ -323,8 +323,12 @@ function execute_settingEvent(element) {
|
|||||||
() => addIconAsBase64(element), // Wrap in an arrow function
|
() => addIconAsBase64(element), // Wrap in an arrow function
|
||||||
feSourceId // triggered by id
|
feSourceId // triggered by id
|
||||||
);
|
);
|
||||||
} else if (["copy_icons"].includes(feEvent)) {
|
} else if (["select_icon"].includes(feEvent)) {
|
||||||
|
|
||||||
|
showIconSelection(feSetKey)
|
||||||
|
// myparam-setkey
|
||||||
|
|
||||||
|
} else if (["copy_icons"].includes(feEvent)) {
|
||||||
|
|
||||||
// Ask overwrite icon types
|
// Ask overwrite icon types
|
||||||
showModalWarning (
|
showModalWarning (
|
||||||
@@ -449,10 +453,11 @@ function addIconAsBase64 (el) {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// -----------------------------------------------
|
||||||
|
// modal pop up for icon selection
|
||||||
|
function showIconSelection(setKey) {
|
||||||
|
|
||||||
|
const selectElement = document.getElementById(setKey);
|
||||||
function showIconSelection() {
|
|
||||||
const selectElement = document.getElementById('NEWDEV_devIcon');
|
|
||||||
const modalId = 'dynamicIconModal';
|
const modalId = 'dynamicIconModal';
|
||||||
|
|
||||||
// Create modal HTML dynamically
|
// Create modal HTML dynamically
|
||||||
@@ -560,7 +565,10 @@ function getColumnNameFromLangString(headStringKey) {
|
|||||||
"Device_TableHead_SourcePlugin": "devSourcePlugin",
|
"Device_TableHead_SourcePlugin": "devSourcePlugin",
|
||||||
"Device_TableHead_PresentLastScan": "devPresentLastScan",
|
"Device_TableHead_PresentLastScan": "devPresentLastScan",
|
||||||
"Device_TableHead_AlertDown": "devAlertDown",
|
"Device_TableHead_AlertDown": "devAlertDown",
|
||||||
"Device_TableHead_CustomProps": "devCustomProps"
|
"Device_TableHead_CustomProps": "devCustomProps",
|
||||||
|
"Device_TableHead_FQDN": "devFQDN",
|
||||||
|
"Device_TableHead_ParentRelType": "devParentRelType",
|
||||||
|
"Device_TableHead_ReqNicsOnline": "devReqNicsOnline"
|
||||||
};
|
};
|
||||||
|
|
||||||
return columnNameMap[headStringKey] || "";
|
return columnNameMap[headStringKey] || "";
|
||||||
|
|||||||
@@ -167,7 +167,7 @@
|
|||||||
|
|
||||||
const paneHtml = `
|
const paneHtml = `
|
||||||
<div class="tab-pane box box-aqua box-body ${i === 0 ? 'active' : ''}" id="${id}">
|
<div class="tab-pane box box-aqua box-body ${i === 0 ? 'active' : ''}" id="${id}">
|
||||||
<h2 class="page-header"><i class="fa fa-server"></i> ${getString('Network_Node')}</h2>
|
<h5><i class="fa fa-server"></i> ${getString('Network_Node')}</h5>
|
||||||
|
|
||||||
<div class="mb-3 row">
|
<div class="mb-3 row">
|
||||||
<label class="col-sm-3 col-form-label fw-bold">${getString('Network_Node')}</label>
|
<label class="col-sm-3 col-form-label fw-bold">${getString('Network_Node')}</label>
|
||||||
@@ -201,12 +201,13 @@
|
|||||||
${isRootNode ? '' : `</a>`}
|
${isRootNode ? '' : `</a>`}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<hr/>
|
||||||
<div class="box box-aqua box-body" id="connected">
|
<div class="box box-aqua box-body" id="connected">
|
||||||
<h3 class="page-header">
|
<h5>
|
||||||
<i class="fa fa-sitemap fa-rotate-270"></i>
|
<i class="fa fa-sitemap fa-rotate-270"></i>
|
||||||
${getString('Network_Connected')}
|
${getString('Network_Connected')}
|
||||||
</h3>
|
</h5>
|
||||||
|
|
||||||
<div id="leafs_${id}"></div>
|
<div id="leafs_${id}"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -326,7 +327,7 @@
|
|||||||
<div class="content">
|
<div class="content">
|
||||||
<div id="unassignedDevices" class="box box-aqua box-body">
|
<div id="unassignedDevices" class="box box-aqua box-body">
|
||||||
<section>
|
<section>
|
||||||
<h3><i class="fa-solid fa-plug-circle-xmark"></i> ${getString('Network_UnassignedDevices')}</h3>
|
<h5><i class="fa-solid fa-plug-circle-xmark"></i> ${getString('Network_UnassignedDevices')}</h5>
|
||||||
<table id="unassignedDevicesTable" class="table table-striped" width="100%"></table>
|
<table id="unassignedDevicesTable" class="table table-striped" width="100%"></table>
|
||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -726,6 +726,7 @@
|
|||||||
"report_select_format": "اختر تنسيق التقرير",
|
"report_select_format": "اختر تنسيق التقرير",
|
||||||
"report_time": "وقت التقرير",
|
"report_time": "وقت التقرير",
|
||||||
"run_event_tooltip": "تلميح تشغيل الحدث",
|
"run_event_tooltip": "تلميح تشغيل الحدث",
|
||||||
|
"select_icon_event_tooltip": "",
|
||||||
"settings_core_icon": "أيقونة الإعدادات الأساسية",
|
"settings_core_icon": "أيقونة الإعدادات الأساسية",
|
||||||
"settings_core_label": "تسمية الإعدادات الأساسية",
|
"settings_core_label": "تسمية الإعدادات الأساسية",
|
||||||
"settings_device_scanners": "ماسحات الأجهزة",
|
"settings_device_scanners": "ماسحات الأجهزة",
|
||||||
|
|||||||
@@ -726,6 +726,7 @@
|
|||||||
"report_select_format": "Seleccioneu Format:",
|
"report_select_format": "Seleccioneu Format:",
|
||||||
"report_time": "Data de recepció:",
|
"report_time": "Data de recepció:",
|
||||||
"run_event_tooltip": "Habiliteu la configuració i deseu els canvis al principi abans d'executar-lo.",
|
"run_event_tooltip": "Habiliteu la configuració i deseu els canvis al principi abans d'executar-lo.",
|
||||||
|
"select_icon_event_tooltip": "",
|
||||||
"settings_core_icon": "fa-solid fa-gem",
|
"settings_core_icon": "fa-solid fa-gem",
|
||||||
"settings_core_label": "Nucli",
|
"settings_core_label": "Nucli",
|
||||||
"settings_device_scanners": "Escàners de dispositius utilitzats per descobrir dispositius que escriuen a la taula de base de dades CurrentScan.",
|
"settings_device_scanners": "Escàners de dispositius utilitzats per descobrir dispositius que escriuen a la taula de base de dades CurrentScan.",
|
||||||
|
|||||||
@@ -726,6 +726,7 @@
|
|||||||
"report_select_format": "",
|
"report_select_format": "",
|
||||||
"report_time": "",
|
"report_time": "",
|
||||||
"run_event_tooltip": "",
|
"run_event_tooltip": "",
|
||||||
|
"select_icon_event_tooltip": "",
|
||||||
"settings_core_icon": "",
|
"settings_core_icon": "",
|
||||||
"settings_core_label": "",
|
"settings_core_label": "",
|
||||||
"settings_device_scanners": "",
|
"settings_device_scanners": "",
|
||||||
|
|||||||
@@ -807,6 +807,7 @@
|
|||||||
"report_select_format": "Format auswählen:",
|
"report_select_format": "Format auswählen:",
|
||||||
"report_time": "Benachrichtigungszeit:",
|
"report_time": "Benachrichtigungszeit:",
|
||||||
"run_event_tooltip": "Aktiviere die Einstellung und speichere deine Änderungen, bevor du sie ausführst.",
|
"run_event_tooltip": "Aktiviere die Einstellung und speichere deine Änderungen, bevor du sie ausführst.",
|
||||||
|
"select_icon_event_tooltip": "",
|
||||||
"settings_core_icon": "",
|
"settings_core_icon": "",
|
||||||
"settings_core_label": "Kern",
|
"settings_core_label": "Kern",
|
||||||
"settings_device_scanners": "",
|
"settings_device_scanners": "",
|
||||||
|
|||||||
@@ -726,6 +726,7 @@
|
|||||||
"report_select_format": "Select Format:",
|
"report_select_format": "Select Format:",
|
||||||
"report_time": "Notification time:",
|
"report_time": "Notification time:",
|
||||||
"run_event_tooltip": "Enable the setting and save your changes at first before you run it.",
|
"run_event_tooltip": "Enable the setting and save your changes at first before you run it.",
|
||||||
|
"select_icon_event_tooltip": "Select icon",
|
||||||
"settings_core_icon": "fa-solid fa-gem",
|
"settings_core_icon": "fa-solid fa-gem",
|
||||||
"settings_core_label": "Core",
|
"settings_core_label": "Core",
|
||||||
"settings_device_scanners": "Device scanners used to discover devices that write into the CurrentScan database table.",
|
"settings_device_scanners": "Device scanners used to discover devices that write into the CurrentScan database table.",
|
||||||
|
|||||||
@@ -805,6 +805,7 @@
|
|||||||
"report_select_format": "Selecciona el formato:",
|
"report_select_format": "Selecciona el formato:",
|
||||||
"report_time": "Hora de la notificación:",
|
"report_time": "Hora de la notificación:",
|
||||||
"run_event_tooltip": "Activa el ajuste y guarda tus cambios antes de ejecutarlo.",
|
"run_event_tooltip": "Activa el ajuste y guarda tus cambios antes de ejecutarlo.",
|
||||||
|
"select_icon_event_tooltip": "",
|
||||||
"settings_core_icon": "fa-solid fa-gem",
|
"settings_core_icon": "fa-solid fa-gem",
|
||||||
"settings_core_label": "Núcleo",
|
"settings_core_label": "Núcleo",
|
||||||
"settings_device_scanners": "Los escáneres de los dispositivos se utilizan para descubrir dispositivos que escriben en la tabla de base de datos de CurrentScan.",
|
"settings_device_scanners": "Los escáneres de los dispositivos se utilizan para descubrir dispositivos que escriben en la tabla de base de datos de CurrentScan.",
|
||||||
|
|||||||
1
front/php/templates/language/fr_fr.json
Normal file → Executable file
1
front/php/templates/language/fr_fr.json
Normal file → Executable file
@@ -726,6 +726,7 @@
|
|||||||
"report_select_format": "Sélectionner un format :",
|
"report_select_format": "Sélectionner un format :",
|
||||||
"report_time": "Heure de la notification :",
|
"report_time": "Heure de la notification :",
|
||||||
"run_event_tooltip": "Activez le paramètre et enregistrez vos changements avant de le lancer.",
|
"run_event_tooltip": "Activez le paramètre et enregistrez vos changements avant de le lancer.",
|
||||||
|
"select_icon_event_tooltip": "",
|
||||||
"settings_core_icon": "fa-solid fa-gem",
|
"settings_core_icon": "fa-solid fa-gem",
|
||||||
"settings_core_label": "Principal",
|
"settings_core_label": "Principal",
|
||||||
"settings_device_scanners": "Les scanners d'appareils utilisés pour découvrir des appareils, qui écrivent dans la table CurrentScan (scan actuel) de la base de données.",
|
"settings_device_scanners": "Les scanners d'appareils utilisés pour découvrir des appareils, qui écrivent dans la table CurrentScan (scan actuel) de la base de données.",
|
||||||
|
|||||||
@@ -726,6 +726,7 @@
|
|||||||
"report_select_format": "Seleziona formato:",
|
"report_select_format": "Seleziona formato:",
|
||||||
"report_time": "Orario notifica:",
|
"report_time": "Orario notifica:",
|
||||||
"run_event_tooltip": "Abilita l'impostazione e salva le modifiche prima di eseguirla.",
|
"run_event_tooltip": "Abilita l'impostazione e salva le modifiche prima di eseguirla.",
|
||||||
|
"select_icon_event_tooltip": "",
|
||||||
"settings_core_icon": "fa-solid fa-gem",
|
"settings_core_icon": "fa-solid fa-gem",
|
||||||
"settings_core_label": "Core",
|
"settings_core_label": "Core",
|
||||||
"settings_device_scanners": "Scanner dei dispositivi utilizzati per rilevare i dispositivi che scrivono nella tabella del database CurrentScan.",
|
"settings_device_scanners": "Scanner dei dispositivi utilizzati per rilevare i dispositivi che scrivono nella tabella del database CurrentScan.",
|
||||||
|
|||||||
@@ -726,6 +726,7 @@
|
|||||||
"report_select_format": "Velg format:",
|
"report_select_format": "Velg format:",
|
||||||
"report_time": "Notifikasjonstid:",
|
"report_time": "Notifikasjonstid:",
|
||||||
"run_event_tooltip": "Aktiver innstillingen og lagre endringene først før du kjører den.",
|
"run_event_tooltip": "Aktiver innstillingen og lagre endringene først før du kjører den.",
|
||||||
|
"select_icon_event_tooltip": "",
|
||||||
"settings_core_icon": "fa-solid fa-gem",
|
"settings_core_icon": "fa-solid fa-gem",
|
||||||
"settings_core_label": "Core",
|
"settings_core_label": "Core",
|
||||||
"settings_device_scanners": "Enhets-skannere som brukes til å oppdage enheter som skrives inn i CurrentScan databasetabellen.",
|
"settings_device_scanners": "Enhets-skannere som brukes til å oppdage enheter som skrives inn i CurrentScan databasetabellen.",
|
||||||
|
|||||||
@@ -726,6 +726,7 @@
|
|||||||
"report_select_format": "Wybierz format:",
|
"report_select_format": "Wybierz format:",
|
||||||
"report_time": "Czas powiadomienia:",
|
"report_time": "Czas powiadomienia:",
|
||||||
"run_event_tooltip": "Najpierw włącz to ustawienie i zapisz zmiany, zanim je uruchomisz.",
|
"run_event_tooltip": "Najpierw włącz to ustawienie i zapisz zmiany, zanim je uruchomisz.",
|
||||||
|
"select_icon_event_tooltip": "",
|
||||||
"settings_core_icon": "fa-solid fa-gem",
|
"settings_core_icon": "fa-solid fa-gem",
|
||||||
"settings_core_label": "Główne",
|
"settings_core_label": "Główne",
|
||||||
"settings_device_scanners": "Skanery urządzeń używane do wykrywania urządzeń, które zapisują dane w tabeli bazy danych CurrentScan.",
|
"settings_device_scanners": "Skanery urządzeń używane do wykrywania urządzeń, które zapisują dane w tabeli bazy danych CurrentScan.",
|
||||||
|
|||||||
@@ -726,6 +726,7 @@
|
|||||||
"report_select_format": "",
|
"report_select_format": "",
|
||||||
"report_time": "",
|
"report_time": "",
|
||||||
"run_event_tooltip": "",
|
"run_event_tooltip": "",
|
||||||
|
"select_icon_event_tooltip": "",
|
||||||
"settings_core_icon": "",
|
"settings_core_icon": "",
|
||||||
"settings_core_label": "",
|
"settings_core_label": "",
|
||||||
"settings_device_scanners": "",
|
"settings_device_scanners": "",
|
||||||
|
|||||||
@@ -726,6 +726,7 @@
|
|||||||
"report_select_format": "Выбрать формат:",
|
"report_select_format": "Выбрать формат:",
|
||||||
"report_time": "Время уведомления:",
|
"report_time": "Время уведомления:",
|
||||||
"run_event_tooltip": "Включите настройку и сначала сохраните изменения, прежде чем запускать ее.",
|
"run_event_tooltip": "Включите настройку и сначала сохраните изменения, прежде чем запускать ее.",
|
||||||
|
"select_icon_event_tooltip": "",
|
||||||
"settings_core_icon": "fa-solid fa-gem",
|
"settings_core_icon": "fa-solid fa-gem",
|
||||||
"settings_core_label": "Основные",
|
"settings_core_label": "Основные",
|
||||||
"settings_device_scanners": "Сканеры устройств, используемые для обнаружения устройств, записывающих данные в таблицу базы данных CurrentScan.",
|
"settings_device_scanners": "Сканеры устройств, используемые для обнаружения устройств, записывающих данные в таблицу базы данных CurrentScan.",
|
||||||
|
|||||||
@@ -726,6 +726,7 @@
|
|||||||
"report_select_format": "",
|
"report_select_format": "",
|
||||||
"report_time": "Bildirim zamanı:",
|
"report_time": "Bildirim zamanı:",
|
||||||
"run_event_tooltip": "",
|
"run_event_tooltip": "",
|
||||||
|
"select_icon_event_tooltip": "",
|
||||||
"settings_core_icon": "",
|
"settings_core_icon": "",
|
||||||
"settings_core_label": "",
|
"settings_core_label": "",
|
||||||
"settings_device_scanners": "",
|
"settings_device_scanners": "",
|
||||||
|
|||||||
1
front/php/templates/language/uk_ua.json
Normal file → Executable file
1
front/php/templates/language/uk_ua.json
Normal file → Executable file
@@ -726,6 +726,7 @@
|
|||||||
"report_select_format": "Виберіть формат:",
|
"report_select_format": "Виберіть формат:",
|
||||||
"report_time": "Час сповіщення:",
|
"report_time": "Час сповіщення:",
|
||||||
"run_event_tooltip": "Увімкніть налаштування та збережіть зміни, перш ніж запускати його.",
|
"run_event_tooltip": "Увімкніть налаштування та збережіть зміни, перш ніж запускати його.",
|
||||||
|
"select_icon_event_tooltip": "",
|
||||||
"settings_core_icon": "фа-твердий фа-самоцвіт",
|
"settings_core_icon": "фа-твердий фа-самоцвіт",
|
||||||
"settings_core_label": "Ядро",
|
"settings_core_label": "Ядро",
|
||||||
"settings_device_scanners": "Сканери пристроїв, які використовуються для виявлення пристроїв, які записують дані в таблицю бази даних CurrentScan.",
|
"settings_device_scanners": "Сканери пристроїв, які використовуються для виявлення пристроїв, які записують дані в таблицю бази даних CurrentScan.",
|
||||||
|
|||||||
@@ -726,6 +726,7 @@
|
|||||||
"report_select_format": "选择格式:",
|
"report_select_format": "选择格式:",
|
||||||
"report_time": "通知时间:",
|
"report_time": "通知时间:",
|
||||||
"run_event_tooltip": "在运行之前,请先启用设置并保存更改。",
|
"run_event_tooltip": "在运行之前,请先启用设置并保存更改。",
|
||||||
|
"select_icon_event_tooltip": "",
|
||||||
"settings_core_icon": "",
|
"settings_core_icon": "",
|
||||||
"settings_core_label": "核",
|
"settings_core_label": "核",
|
||||||
"settings_device_scanners": "设备扫描器用于发现写入当前扫描数据库表的设备。",
|
"settings_device_scanners": "设备扫描器用于发现写入当前扫描数据库表的设备。",
|
||||||
|
|||||||
@@ -453,7 +453,7 @@
|
|||||||
"value": "Example Plugin"
|
"value": "Example Plugin"
|
||||||
},
|
},
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": false,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
"default_value": "",
|
"default_value": "",
|
||||||
"options": [],
|
"options": [],
|
||||||
|
|||||||
@@ -134,7 +134,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value1",
|
"column": "Watched_Value1",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-1",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "eval",
|
"type": "eval",
|
||||||
"default_value": "",
|
"default_value": "",
|
||||||
|
|||||||
@@ -134,7 +134,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value1",
|
"column": "Watched_Value1",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-1",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "eval",
|
"type": "eval",
|
||||||
"default_value": "",
|
"default_value": "",
|
||||||
|
|||||||
@@ -96,7 +96,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value1",
|
"column": "Watched_Value1",
|
||||||
"css_classes": "col-sm-3",
|
"css_classes": "col-sm-1",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "eval",
|
"type": "eval",
|
||||||
"default_value": "",
|
"default_value": "",
|
||||||
|
|||||||
@@ -96,7 +96,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value1",
|
"column": "Watched_Value1",
|
||||||
"css_classes": "col-sm-3",
|
"css_classes": "col-sm-1",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "eval",
|
"type": "eval",
|
||||||
"default_value": "",
|
"default_value": "",
|
||||||
|
|||||||
@@ -96,7 +96,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value1",
|
"column": "Watched_Value1",
|
||||||
"css_classes": "col-sm-3",
|
"css_classes": "col-sm-1",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "eval",
|
"type": "eval",
|
||||||
"default_value": "",
|
"default_value": "",
|
||||||
|
|||||||
@@ -130,7 +130,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value1",
|
"column": "Watched_Value1",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-1",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "eval",
|
"type": "eval",
|
||||||
"default_value": "",
|
"default_value": "",
|
||||||
|
|||||||
@@ -96,7 +96,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value1",
|
"column": "Watched_Value1",
|
||||||
"css_classes": "col-sm-3",
|
"css_classes": "col-sm-1",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "eval",
|
"type": "eval",
|
||||||
"default_value": "",
|
"default_value": "",
|
||||||
@@ -116,7 +116,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value2",
|
"column": "Watched_Value2",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-3",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "textarea_readonly",
|
"type": "textarea_readonly",
|
||||||
"default_value": "",
|
"default_value": "",
|
||||||
@@ -131,7 +131,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"column": "Watched_Value3",
|
"column": "Watched_Value3",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-3",
|
||||||
"show": true,
|
"show": true,
|
||||||
"type": "textarea_readonly",
|
"type": "textarea_readonly",
|
||||||
"default_value": "",
|
"default_value": "",
|
||||||
|
|||||||
@@ -468,7 +468,7 @@
|
|||||||
"value": "ARPSCAN"
|
"value": "ARPSCAN"
|
||||||
},
|
},
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": false,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
"default_value": "",
|
"default_value": "",
|
||||||
"options": [],
|
"options": [],
|
||||||
|
|||||||
@@ -492,7 +492,7 @@
|
|||||||
"value": "ASUSWRT"
|
"value": "ASUSWRT"
|
||||||
},
|
},
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": false,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
"default_value": "",
|
"default_value": "",
|
||||||
"options": [],
|
"options": [],
|
||||||
|
|||||||
@@ -284,7 +284,7 @@
|
|||||||
{
|
{
|
||||||
"column": "Watched_Value1",
|
"column": "Watched_Value1",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": false,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
"default_value": "",
|
"default_value": "",
|
||||||
"options": [],
|
"options": [],
|
||||||
|
|||||||
@@ -28,6 +28,9 @@
|
|||||||
"settings": [
|
"settings": [
|
||||||
{
|
{
|
||||||
"function": "icon",
|
"function": "icon",
|
||||||
|
"events": [
|
||||||
|
"select_icon"
|
||||||
|
],
|
||||||
"type": {
|
"type": {
|
||||||
"dataType": "array",
|
"dataType": "array",
|
||||||
"elements": [
|
"elements": [
|
||||||
|
|||||||
@@ -607,7 +607,7 @@
|
|||||||
"value": "DDNS"
|
"value": "DDNS"
|
||||||
},
|
},
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": false,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
"default_value": "",
|
"default_value": "",
|
||||||
"options": [],
|
"options": [],
|
||||||
|
|||||||
@@ -437,7 +437,7 @@
|
|||||||
"value": "Freebox"
|
"value": "Freebox"
|
||||||
},
|
},
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": false,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
"default_value": "",
|
"default_value": "",
|
||||||
"options": [],
|
"options": [],
|
||||||
|
|||||||
@@ -365,7 +365,7 @@
|
|||||||
"value": "ICMP"
|
"value": "ICMP"
|
||||||
},
|
},
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": false,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
"default_value": "",
|
"default_value": "",
|
||||||
"options": [],
|
"options": [],
|
||||||
|
|||||||
@@ -548,7 +548,7 @@
|
|||||||
"value": "INTRNT"
|
"value": "INTRNT"
|
||||||
},
|
},
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": false,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
"default_value": "",
|
"default_value": "",
|
||||||
"options": [],
|
"options": [],
|
||||||
|
|||||||
@@ -335,7 +335,7 @@
|
|||||||
"value": "IPNEIGH"
|
"value": "IPNEIGH"
|
||||||
},
|
},
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": false,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
"default_value": "",
|
"default_value": "",
|
||||||
"options": [],
|
"options": [],
|
||||||
|
|||||||
@@ -491,7 +491,7 @@
|
|||||||
"value": "LUCIRPC"
|
"value": "LUCIRPC"
|
||||||
},
|
},
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": false,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
"default_value": "",
|
"default_value": "",
|
||||||
"options": [],
|
"options": [],
|
||||||
|
|||||||
@@ -292,7 +292,7 @@
|
|||||||
{
|
{
|
||||||
"column": "Watched_Value1",
|
"column": "Watched_Value1",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": false,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
"default_value": "",
|
"default_value": "",
|
||||||
"options": [],
|
"options": [],
|
||||||
|
|||||||
@@ -562,7 +562,8 @@
|
|||||||
"function": "devIcon",
|
"function": "devIcon",
|
||||||
"events": [
|
"events": [
|
||||||
"copy_icons",
|
"copy_icons",
|
||||||
"add_icon"
|
"add_icon",
|
||||||
|
"select_icon"
|
||||||
],
|
],
|
||||||
"type": {
|
"type": {
|
||||||
"dataType": "string",
|
"dataType": "string",
|
||||||
@@ -587,7 +588,7 @@
|
|||||||
"elementHasInputValue": 1,
|
"elementHasInputValue": 1,
|
||||||
"elementOptions": [
|
"elementOptions": [
|
||||||
{
|
{
|
||||||
"cssClasses": "iconInputVal"
|
"cssClasses": "iconInputVal myhidden"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"onChange": "updateIconPreview(this)"
|
"onChange": "updateIconPreview(this)"
|
||||||
@@ -1624,7 +1625,7 @@
|
|||||||
"elementHasInputValue": 1,
|
"elementHasInputValue": 1,
|
||||||
"elementOptions": [
|
"elementOptions": [
|
||||||
{
|
{
|
||||||
"cssClasses": "iconInputVal"
|
"cssClasses": "iconInputVal myhidden"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"onChange": "updateIconPreview(this)"
|
"onChange": "updateIconPreview(this)"
|
||||||
|
|||||||
@@ -508,7 +508,7 @@
|
|||||||
"value": "NMAPDEV"
|
"value": "NMAPDEV"
|
||||||
},
|
},
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": false,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
"default_value": "",
|
"default_value": "",
|
||||||
"options": [],
|
"options": [],
|
||||||
|
|||||||
@@ -284,7 +284,7 @@
|
|||||||
{
|
{
|
||||||
"column": "Watched_Value1",
|
"column": "Watched_Value1",
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": false,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
"default_value": "",
|
"default_value": "",
|
||||||
"options": [],
|
"options": [],
|
||||||
|
|||||||
@@ -620,7 +620,7 @@
|
|||||||
"value": "OMDSDN"
|
"value": "OMDSDN"
|
||||||
},
|
},
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": false,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
"default_value": "",
|
"default_value": "",
|
||||||
"options": [],
|
"options": [],
|
||||||
|
|||||||
@@ -426,7 +426,7 @@
|
|||||||
"value": "PIHOLE"
|
"value": "PIHOLE"
|
||||||
},
|
},
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": false,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
"default_value": "",
|
"default_value": "",
|
||||||
"options": [],
|
"options": [],
|
||||||
|
|||||||
@@ -279,7 +279,7 @@
|
|||||||
"value": "SNMPDSC"
|
"value": "SNMPDSC"
|
||||||
},
|
},
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": false,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
"default_value": "",
|
"default_value": "",
|
||||||
"options": [],
|
"options": [],
|
||||||
|
|||||||
@@ -587,7 +587,7 @@
|
|||||||
"value": "sync"
|
"value": "sync"
|
||||||
},
|
},
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": false,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
"default_value": "",
|
"default_value": "",
|
||||||
"options": [],
|
"options": [],
|
||||||
|
|||||||
@@ -456,7 +456,8 @@
|
|||||||
"Device_TableHead_SyncHubNodeName",
|
"Device_TableHead_SyncHubNodeName",
|
||||||
"Device_TableHead_NetworkSite",
|
"Device_TableHead_NetworkSite",
|
||||||
"Device_TableHead_SSID",
|
"Device_TableHead_SSID",
|
||||||
"Device_TableHead_SourcePlugin"
|
"Device_TableHead_SourcePlugin",
|
||||||
|
"Device_TableHead_ParentRelType"
|
||||||
],
|
],
|
||||||
"localized": ["name", "description"],
|
"localized": ["name", "description"],
|
||||||
"name": [
|
"name": [
|
||||||
|
|||||||
@@ -355,7 +355,7 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"options": [],
|
"options": [],
|
||||||
"show": true,
|
"show": false,
|
||||||
"type": "label"
|
"type": "label"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -462,7 +462,7 @@
|
|||||||
"value": "VNDRPDT"
|
"value": "VNDRPDT"
|
||||||
},
|
},
|
||||||
"css_classes": "col-sm-2",
|
"css_classes": "col-sm-2",
|
||||||
"show": true,
|
"show": false,
|
||||||
"type": "label",
|
"type": "label",
|
||||||
"default_value": "",
|
"default_value": "",
|
||||||
"options": [],
|
"options": [],
|
||||||
|
|||||||
@@ -523,12 +523,14 @@ function shouldBeShown(entry, pluginObj)
|
|||||||
plugPrefix = ''
|
plugPrefix = ''
|
||||||
dbTable = ''
|
dbTable = ''
|
||||||
|
|
||||||
|
// --------------------------------------------------------
|
||||||
function purgeAll(callback) {
|
function purgeAll(callback) {
|
||||||
plugPrefix = arguments[0]; // plugin prefix
|
plugPrefix = arguments[0]; // plugin prefix
|
||||||
dbTable = arguments[1]; // DB table
|
dbTable = arguments[1]; // DB table
|
||||||
// Ask
|
|
||||||
showModalWarning('<?= lang('Gen_Purge');?>' + ' ' + plugPrefix + ' ' + dbTable , '<?= lang('Gen_AreYouSure');?>',
|
// Ask for confirmation
|
||||||
'<?= lang('Gen_Cancel');?>', '<?= lang('Gen_Okay');?>', "purgeAllExecute");
|
showModalWarning(`${getString('Gen_Purge')} ${plugPrefix} ${dbTable}`, `${getString('Gen_AreYouSure')}`,
|
||||||
|
`${getString('Gen_Cancel')}`, `${getString('Gen_Okay')}`, "purgeAllExecute");
|
||||||
}
|
}
|
||||||
|
|
||||||
// --------------------------------------------------------
|
// --------------------------------------------------------
|
||||||
@@ -544,22 +546,37 @@ function purgeAllExecute() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// --------------------------------------------------------
|
// --------------------------------------------------------
|
||||||
function deleteListed(plugPrefix, dbTable) {
|
function deleteListed(plugPrefixArg, dbTableArg) {
|
||||||
|
plugPrefix = plugPrefixArg;
|
||||||
|
dbTable = dbTableArg;
|
||||||
|
|
||||||
idArr = $(`#${plugPrefix} table[data-my-dbtable="${dbTable}"] tr[data-my-index]`).map(function(){return $(this).attr("data-my-index");}).get();
|
// Collect selected IDs
|
||||||
|
idArr = $(`#${plugPrefix} table[data-my-dbtable="${dbTable}"] tr[data-my-index]`)
|
||||||
|
.map(function() {
|
||||||
|
return $(this).attr("data-my-index");
|
||||||
|
}).get();
|
||||||
|
|
||||||
console.log(idArr);
|
if (idArr.length === 0) {
|
||||||
|
showModalOk('Nothing to delete', 'No items are selected for deletion.');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Ask for confirmation
|
||||||
|
showModalWarning(`${getString('Gen_Purge')} ${plugPrefix} ${dbTable}`, `${getString('Gen_AreYouSure')} (${idArr.length})`,
|
||||||
|
`${getString('Gen_Cancel')}`, `${getString('Gen_Okay')}`, "deleteListedExecute");
|
||||||
|
}
|
||||||
|
|
||||||
|
// --------------------------------------------------------
|
||||||
|
function deleteListedExecute() {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
method: "POST",
|
method: "POST",
|
||||||
url: "php/server/dbHelper.php",
|
url: "php/server/dbHelper.php",
|
||||||
data: { action: "delete", dbtable: dbTable, columnName: 'Index', id:idArr.toString() },
|
data: { action: "delete", dbtable: dbTable, columnName: 'Index', id:idArr.toString() },
|
||||||
success: function(data, textStatus) {
|
success: function(data, textStatus) {
|
||||||
updateApi("plugins_objects")
|
updateApi("plugins_objects")
|
||||||
showModalOk ('Result', data );
|
showModalOk('Result', data);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user