mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
Reworked blacklists page
This commit is contained in:
parent
cd425b384d
commit
0fecdee1e4
19 changed files with 829 additions and 21 deletions
127
httpdocs/tables_config/blacklists.json
Normal file
127
httpdocs/tables_config/blacklists.json
Normal file
|
|
@ -0,0 +1,127 @@
|
|||
{
|
||||
"id": "blacklists",
|
||||
"data_url": "lua/rest/v2/get/system/blacklists/blacklists.lua",
|
||||
"use_current_page": false,
|
||||
"enable_search": false,
|
||||
"paging": false,
|
||||
"display_empty_rows": true,
|
||||
"default_sort": {
|
||||
"column_id": "name",
|
||||
"sort": 0
|
||||
},
|
||||
"columns": [
|
||||
{
|
||||
"id": "actions",
|
||||
"title_i18n": "actions",
|
||||
"sortable": false,
|
||||
"sticky": true,
|
||||
"class": [
|
||||
"text-nowrap",
|
||||
"text-center"
|
||||
],
|
||||
"min-width": "80px",
|
||||
"render_v_node_type": "button_list",
|
||||
"button_def_array": [
|
||||
{
|
||||
"id": "chart_blacklist",
|
||||
"icon": "fas fa-lg fa-chart-area",
|
||||
"title_i18n": "chart",
|
||||
"class": [
|
||||
"link-button",
|
||||
"btn-info"
|
||||
],
|
||||
"event_id": "click_chart"
|
||||
},
|
||||
{
|
||||
"id": "edit_blacklist",
|
||||
"icon": "fas fa-edit",
|
||||
"title_i18n": "edit",
|
||||
"class": [
|
||||
"link-button",
|
||||
"btn-info"
|
||||
],
|
||||
"event_id": "click_edit"
|
||||
},
|
||||
{
|
||||
"id": "refresh_blacklist",
|
||||
"icon": "fas fa-sync-alt",
|
||||
"title_i18n": "refresh",
|
||||
"class": [
|
||||
"link-button",
|
||||
"btn-info"
|
||||
],
|
||||
"event_id": "click_refresh"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title_i18n": "name",
|
||||
"data_field": "name",
|
||||
"sortable": true,
|
||||
"min-width": "155px",
|
||||
"class": [
|
||||
"text-nowrap"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title_i18n": "status",
|
||||
"data_field": "status",
|
||||
"sortable": true,
|
||||
"min-width": "100px",
|
||||
"class": [
|
||||
"text-center",
|
||||
"text-nowrap"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title_i18n": "category",
|
||||
"data_field": "category",
|
||||
"sortable": true,
|
||||
"min-width": "100px",
|
||||
"class": [
|
||||
"text-nowrap",
|
||||
"text-center"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title_i18n": "category_lists.update_frequency",
|
||||
"data_field": "update_frequency",
|
||||
"sortable": true,
|
||||
"min-width": "100px",
|
||||
"class": [
|
||||
"text-nowrap",
|
||||
"text-center"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title_i18n": "category_lists.last_update",
|
||||
"data_field": "last_update",
|
||||
"sortable": true,
|
||||
"min-width": "100px",
|
||||
"class": [
|
||||
"text-nowrap",
|
||||
"text-center"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title_i18n": "num_entries",
|
||||
"data_field": "entries",
|
||||
"sortable": true,
|
||||
"min-width": "100px",
|
||||
"class": [
|
||||
"text-nowrap",
|
||||
"text-center"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title_i18n": "graphs.metrics_prefixes.num_hits",
|
||||
"data_field": "hits",
|
||||
"sortable": true,
|
||||
"min-width": "100px",
|
||||
"class": [
|
||||
"text-nowrap",
|
||||
"text-center"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue