mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2025-12-07 01:26:11 -08:00
603 lines
16 KiB
JSON
Executable File
603 lines
16 KiB
JSON
Executable File
{
|
|
"code_name": "ui_settings",
|
|
"unique_prefix": "UI",
|
|
"plugin_type": "core",
|
|
"enabled": true,
|
|
"data_source": "template",
|
|
"show_ui": false,
|
|
"localized": ["display_name", "description", "icon"],
|
|
"display_name": [
|
|
{
|
|
"language_code": "en_us",
|
|
"string": "UI settings"
|
|
}
|
|
],
|
|
"description": [
|
|
{
|
|
"language_code": "en_us",
|
|
"string": "Plugin to adjust UI settings."
|
|
}
|
|
],
|
|
"icon": [
|
|
{
|
|
"language_code": "en_us",
|
|
"string": "<i class=\"fa fa-paint-roller\"></i>"
|
|
}
|
|
],
|
|
"params": [],
|
|
"settings": [
|
|
{
|
|
"function": "NOT_RANDOM_MAC",
|
|
"type": {
|
|
"dataType": "array",
|
|
"elements": [
|
|
{
|
|
"elementType": "input",
|
|
"elementOptions": [
|
|
{ "placeholder": "Enter value" },
|
|
{ "suffix": "_in" },
|
|
{ "cssClasses": "col-sm-10" },
|
|
{ "prefillValue": "null" }
|
|
],
|
|
"transformers": []
|
|
},
|
|
{
|
|
"elementType": "button",
|
|
"elementOptions": [
|
|
{ "sourceSuffixes": ["_in"] },
|
|
{ "separator": "" },
|
|
{ "cssClasses": "col-xs-12" },
|
|
{ "onClick": "addList(this,false)" },
|
|
{ "getStringKey": "Gen_Add" }
|
|
],
|
|
"transformers": []
|
|
},
|
|
{
|
|
"elementType": "select",
|
|
"elementHasInputValue": 1,
|
|
"elementOptions": [
|
|
{ "multiple": "true" },
|
|
{ "readonly": "true" },
|
|
{ "editable": "true" }
|
|
],
|
|
"transformers": []
|
|
},
|
|
{
|
|
"elementType": "button",
|
|
"elementOptions": [
|
|
{ "sourceSuffixes": [] },
|
|
{ "separator": "" },
|
|
{ "cssClasses": "col-xs-6" },
|
|
{ "onClick": "removeAllOptions(this)" },
|
|
{ "getStringKey": "Gen_Remove_All" }
|
|
],
|
|
"transformers": []
|
|
},
|
|
{
|
|
"elementType": "button",
|
|
"elementOptions": [
|
|
{ "sourceSuffixes": [] },
|
|
{ "separator": "" },
|
|
{ "cssClasses": "col-xs-6" },
|
|
{ "onClick": "removeFromList(this)" },
|
|
{ "getStringKey": "Gen_Remove_Last" }
|
|
],
|
|
"transformers": []
|
|
}
|
|
]
|
|
},
|
|
"maxLength": 50,
|
|
"default_value": [],
|
|
"options": [],
|
|
"localized": [],
|
|
"name": [
|
|
{
|
|
"string": "_GLOBAL_LANG_FILES_"
|
|
}
|
|
],
|
|
"description": [
|
|
{
|
|
"string": "_GLOBAL_LANG_FILES_"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"function": "ICONS",
|
|
"type": {
|
|
"dataType": "array",
|
|
"elements": [
|
|
{
|
|
"elementType": "input",
|
|
"elementOptions": [
|
|
{ "placeholder": "Enter value" },
|
|
{ "suffix": "_in" },
|
|
{ "cssClasses": "col-sm-10" },
|
|
{ "prefillValue": "null" }
|
|
],
|
|
"transformers": []
|
|
},
|
|
{
|
|
"elementType": "button",
|
|
"elementOptions": [
|
|
{ "sourceSuffixes": ["_in"] },
|
|
{ "separator": "" },
|
|
{ "cssClasses": "col-xs-12" },
|
|
{ "onClick": "addList(this,false)" },
|
|
{ "getStringKey": "Gen_Add" }
|
|
],
|
|
"transformers": []
|
|
},
|
|
{
|
|
"elementType": "select",
|
|
"elementHasInputValue": 1,
|
|
"elementOptions": [
|
|
{ "multiple": "true" },
|
|
{ "readonly": "true" },
|
|
{ "editable": "true" }
|
|
],
|
|
"transformers": []
|
|
},
|
|
{
|
|
"elementType": "button",
|
|
"elementOptions": [
|
|
{ "sourceSuffixes": [] },
|
|
{ "separator": "" },
|
|
{ "cssClasses": "col-xs-6" },
|
|
{ "onClick": "removeAllOptions(this)" },
|
|
{ "getStringKey": "Gen_Remove_All" }
|
|
],
|
|
"transformers": []
|
|
},
|
|
{
|
|
"elementType": "button",
|
|
"elementOptions": [
|
|
{ "sourceSuffixes": [] },
|
|
{ "separator": "" },
|
|
{ "cssClasses": "col-xs-6" },
|
|
{ "onClick": "removeFromList(this)" },
|
|
{ "getStringKey": "Gen_Remove_Last" }
|
|
],
|
|
"transformers": []
|
|
}
|
|
]
|
|
},
|
|
"maxLength": 50,
|
|
"default_value": [
|
|
"PGkgY2xhc3M9ImZhIGZhLWNvbXB1dGVyIj48L2k+",
|
|
"PGkgY2xhc3M9ImZhIGZhLWV0aGVybmV0Ij48L2k+",
|
|
"PGkgY2xhc3M9ImZhIGZhLWdhbWVwYWQiPjwvaT4=",
|
|
"PGkgY2xhc3M9ImZhIGZhLWdsb2JlIj48L2k+",
|
|
"PGkgY2xhc3M9ImZhIGZhLWxhcHRvcCI+PC9pPg==",
|
|
"PGkgY2xhc3M9ImZhIGZhLWxpZ2h0YnVsYiI+PC9pPg==",
|
|
"PGkgY2xhc3M9ImZhIGZhLXNoaWVsZCI+PC9pPg==",
|
|
"PGkgY2xhc3M9ImZhIGZhLXdpZmkiPjwvaT4=",
|
|
"PGkgY2xhc3M9ImZhIGZhLWdhbWVwYWQiPjwvaT4="
|
|
],
|
|
"options": [],
|
|
"localized": [],
|
|
"name": [
|
|
{
|
|
"string": "_GLOBAL_LANG_FILES_"
|
|
}
|
|
],
|
|
"description": [
|
|
{
|
|
"string": "_GLOBAL_LANG_FILES_"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"function": "REFRESH",
|
|
"type": {
|
|
"dataType": "integer",
|
|
"elements": [
|
|
{
|
|
"elementType": "input",
|
|
"elementOptions": [{ "type": "number" }],
|
|
"transformers": []
|
|
}
|
|
]
|
|
},
|
|
"maxLength": 50,
|
|
"default_value": 0,
|
|
"options": [],
|
|
"localized": [],
|
|
"name": [
|
|
{
|
|
"string": "_GLOBAL_LANG_FILES_"
|
|
}
|
|
],
|
|
"description": [
|
|
{
|
|
"string": "_GLOBAL_LANG_FILES_"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"function": "DEV_SECTIONS",
|
|
"type": {
|
|
"dataType": "array",
|
|
"elements": [
|
|
{
|
|
"elementType": "select",
|
|
"elementOptions": [{ "multiple": "true", "ordeable": "true" }],
|
|
"transformers": []
|
|
}
|
|
]
|
|
},
|
|
"maxLength": 50,
|
|
"default_value": [],
|
|
"options": ["Tile Cards", "Device Presence"],
|
|
"localized": [],
|
|
"name": [
|
|
{
|
|
"string": "_GLOBAL_LANG_FILES_"
|
|
}
|
|
],
|
|
"description": [
|
|
{
|
|
"string": "_GLOBAL_LANG_FILES_"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"function": "PRESENCE",
|
|
"type": {
|
|
"dataType": "array",
|
|
"elements": [
|
|
{
|
|
"elementType": "select",
|
|
"elementOptions": [{ "multiple": "true", "ordeable": "true" }],
|
|
"transformers": []
|
|
}
|
|
]
|
|
},
|
|
"maxLength": 50,
|
|
"default_value": ["online", "down", "offline", "archived"],
|
|
"options": ["online", "down", "offline", "archived"],
|
|
"localized": [],
|
|
"name": [
|
|
{
|
|
"string": "_GLOBAL_LANG_FILES_"
|
|
}
|
|
],
|
|
"description": [
|
|
{
|
|
"string": "_GLOBAL_LANG_FILES_"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"function": "MY_DEVICES",
|
|
"type": {
|
|
"dataType": "array",
|
|
"elements": [
|
|
{
|
|
"elementType": "select",
|
|
"elementOptions": [{ "multiple": "true", "ordeable": "true" }],
|
|
"transformers": []
|
|
}
|
|
]
|
|
},
|
|
"maxLength": 50,
|
|
"default_value": ["online", "offline", "archived", "new", "down"],
|
|
"options": ["online", "offline", "archived", "new", "down"],
|
|
"localized": [],
|
|
"name": [
|
|
{
|
|
"string": "_GLOBAL_LANG_FILES_"
|
|
}
|
|
],
|
|
"description": [
|
|
{
|
|
"string": "_GLOBAL_LANG_FILES_"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"function": "device_columns",
|
|
"type": {
|
|
"dataType": "array",
|
|
"elements": [
|
|
{
|
|
"elementType": "select",
|
|
"elementOptions": [{ "multiple": "true", "ordeable": "true" }],
|
|
"transformers": ["getString"]
|
|
},
|
|
{
|
|
"elementType": "button",
|
|
"elementOptions": [
|
|
{ "sourceSuffixes": [] },
|
|
{ "separator": "" },
|
|
{ "cssClasses": "col-xs-4" },
|
|
{ "onClick": "selectAll(this)" },
|
|
{ "getStringKey": "Gen_Add_All" }
|
|
],
|
|
"transformers": []
|
|
},
|
|
{
|
|
"elementType": "button",
|
|
"elementOptions": [
|
|
{ "sourceSuffixes": [] },
|
|
{ "separator": "" },
|
|
{ "cssClasses": "col-xs-4" },
|
|
{ "onClick": "unselectAll(this)" },
|
|
{ "getStringKey": "Gen_Remove_All" }
|
|
],
|
|
"transformers": []
|
|
},
|
|
{
|
|
"elementType": "button",
|
|
"elementOptions": [
|
|
{ "sourceSuffixes": [] },
|
|
{ "separator": "" },
|
|
{ "cssClasses": "col-xs-4" },
|
|
{ "onClick": "selectChange(this)" },
|
|
{ "getStringKey": "Gen_Change" }
|
|
],
|
|
"transformers": []
|
|
}
|
|
]
|
|
},
|
|
"maxLength": 50,
|
|
"default_value": [
|
|
"Device_TableHead_Icon",
|
|
"Device_TableHead_Name",
|
|
"Device_TableHead_Type",
|
|
"Device_TableHead_LastIP",
|
|
"Device_TableHead_Status",
|
|
"Device_TableHead_MAC_full",
|
|
"Device_TableHead_SourcePlugin",
|
|
"Device_TableHead_CustomProps"
|
|
],
|
|
"options": [
|
|
"Device_TableHead_Name",
|
|
"Device_TableHead_Owner",
|
|
"Device_TableHead_Type",
|
|
"Device_TableHead_Icon",
|
|
"Device_TableHead_Favorite",
|
|
"Device_TableHead_Group",
|
|
"Device_TableHead_FirstSession",
|
|
"Device_TableHead_LastSession",
|
|
"Device_TableHead_LastIP",
|
|
"Device_TableHead_MAC",
|
|
"Device_TableHead_Status",
|
|
"Device_TableHead_MAC_full",
|
|
"Device_TableHead_LastIPOrder",
|
|
"Device_TableHead_Rowid",
|
|
"Device_TableHead_Parent_MAC",
|
|
"Device_TableHead_Connected_Devices",
|
|
"Device_TableHead_Location",
|
|
"Device_TableHead_Vendor",
|
|
"Device_TableHead_Port",
|
|
"Device_TableHead_GUID",
|
|
"Device_TableHead_SyncHubNodeName",
|
|
"Device_TableHead_NetworkSite",
|
|
"Device_TableHead_SSID",
|
|
"Device_TableHead_SourcePlugin",
|
|
"Device_TableHead_PresentLastScan",
|
|
"Device_TableHead_AlertDown",
|
|
"Device_TableHead_CustomProps"
|
|
],
|
|
"localized": ["name", "description"],
|
|
"name": [
|
|
{
|
|
"language_code": "en_us",
|
|
"string": "Device Columns"
|
|
}
|
|
],
|
|
"description": [
|
|
{
|
|
"language_code": "en_us",
|
|
"string": "Columns and their order that are shown on the Devices page. Drag and drop the order of columns, click <code>x</code> to remove columns. You can also click into the field to selectivelly add fields. The <code>Name</code> and <code>Status</code> fields are required."
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"function": "columns_filters",
|
|
"type": {
|
|
"dataType": "array",
|
|
"elements": [
|
|
{
|
|
"elementType": "select",
|
|
"elementOptions": [{ "multiple": "true", "ordeable": "true" }],
|
|
"transformers": ["getString"]
|
|
},
|
|
{
|
|
"elementType": "button",
|
|
"elementOptions": [
|
|
{ "sourceSuffixes": [] },
|
|
{ "separator": "" },
|
|
{ "cssClasses": "col-xs-4" },
|
|
{ "onClick": "selectAll(this)" },
|
|
{ "getStringKey": "Gen_Add_All" }
|
|
],
|
|
"transformers": []
|
|
},
|
|
{
|
|
"elementType": "button",
|
|
"elementOptions": [
|
|
{ "sourceSuffixes": [] },
|
|
{ "separator": "" },
|
|
{ "cssClasses": "col-xs-4" },
|
|
{ "onClick": "unselectAll(this)" },
|
|
{ "getStringKey": "Gen_Remove_All" }
|
|
],
|
|
"transformers": []
|
|
},
|
|
{
|
|
"elementType": "button",
|
|
"elementOptions": [
|
|
{ "sourceSuffixes": [] },
|
|
{ "separator": "" },
|
|
{ "cssClasses": "col-xs-4" },
|
|
{ "onClick": "selectChange(this)" },
|
|
{ "getStringKey": "Gen_Change" }
|
|
],
|
|
"transformers": []
|
|
}
|
|
]
|
|
},
|
|
"maxLength": 50,
|
|
"default_value": [
|
|
"Device_TableHead_Type",
|
|
"Device_TableHead_SyncHubNodeName",
|
|
"Device_TableHead_SourcePlugin"
|
|
],
|
|
"options": [
|
|
"Device_TableHead_Owner",
|
|
"Device_TableHead_Type",
|
|
"Device_TableHead_Group",
|
|
"Device_TableHead_Location",
|
|
"Device_TableHead_Vendor",
|
|
"Device_TableHead_SyncHubNodeName",
|
|
"Device_TableHead_NetworkSite",
|
|
"Device_TableHead_SSID",
|
|
"Device_TableHead_SourcePlugin"
|
|
],
|
|
"localized": ["name", "description"],
|
|
"name": [
|
|
{
|
|
"language_code": "en_us",
|
|
"string": "Column Filters"
|
|
}
|
|
],
|
|
"description": [
|
|
{
|
|
"language_code": "en_us",
|
|
"string": "Which column filters should be displayed in the main Devices screen. Remove all to hide the Filters section."
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"function": "shown_cards",
|
|
"type": {
|
|
"dataType": "array",
|
|
"elements": [
|
|
{
|
|
"elementType": "select",
|
|
"elementOptions": [{ "multiple": "true", "ordeable": "true" }],
|
|
"transformers": []
|
|
}
|
|
]
|
|
},
|
|
"maxLength": 50,
|
|
"default_value": [
|
|
"my_devices",
|
|
"connected",
|
|
"favorites",
|
|
"new",
|
|
"down",
|
|
"archived"
|
|
],
|
|
"options": [
|
|
"my_devices",
|
|
"connected",
|
|
"favorites",
|
|
"new",
|
|
"down",
|
|
"archived",
|
|
"offline",
|
|
"all"
|
|
],
|
|
"localized": ["name", "description"],
|
|
"name": [
|
|
{
|
|
"language_code": "en_us",
|
|
"string": "Tiles to Show"
|
|
}
|
|
],
|
|
"description": [
|
|
{
|
|
"language_code": "en_us",
|
|
"string": "Which tiles to show on the top of the Devices page."
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"function": "hide_empty",
|
|
"type": {
|
|
"dataType": "boolean",
|
|
"elements": [
|
|
{
|
|
"elementType": "input",
|
|
"elementOptions": [{ "type": "checkbox" }],
|
|
"transformers": []
|
|
}
|
|
]
|
|
},
|
|
"default_value": false,
|
|
"options": [],
|
|
"localized": ["name", "description"],
|
|
"name": [
|
|
{
|
|
"language_code": "en_us",
|
|
"string": "Hide empty tiles"
|
|
}
|
|
],
|
|
"description": [
|
|
{
|
|
"language_code": "en_us",
|
|
"string": "Hide Tiles in the Devices pages with zero results."
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"function": "theme",
|
|
"type": {
|
|
"dataType": "array",
|
|
"elements": [
|
|
{
|
|
"elementType": "select",
|
|
"elementOptions": [{ "multiple": "false", "orderable": "false" }],
|
|
"transformers": []
|
|
}
|
|
]
|
|
},
|
|
"default_value": "Light",
|
|
"options": ["Light","Dark","System"],
|
|
"localized": ["name", "description"],
|
|
"name": [
|
|
{
|
|
"language_code": "en_us",
|
|
"string": "Theme"
|
|
}
|
|
],
|
|
"description": [
|
|
{
|
|
"language_code": "en_us",
|
|
"string": "UI theme to use. System will auto switch between Light and Dark."
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"function": "TOPOLOGY_ORDER",
|
|
"type": {
|
|
"dataType": "array",
|
|
"elements": [
|
|
{
|
|
"elementType": "select",
|
|
"elementOptions": [{ "multiple": "false", "orderable": "false" }],
|
|
"transformers": []
|
|
}
|
|
]
|
|
},
|
|
"default_value": "Name",
|
|
"options": ["Name","Port"],
|
|
"localized": ["name", "description"],
|
|
"name": [
|
|
{
|
|
"language_code": "en_us",
|
|
"string": "Order by in Network"
|
|
}
|
|
],
|
|
"description": [
|
|
{
|
|
"language_code": "en_us",
|
|
"string": "Based on which value should the network topology view be ordered."
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|