mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 16:09:32 +00:00
Moved active monitoring page to vuejs
This commit is contained in:
parent
0a2b1e8bb9
commit
963579b526
18 changed files with 1469 additions and 3 deletions
28
http_src/utilities/map/active-monitoring-utils.js
Normal file
28
http_src/utilities/map/active-monitoring-utils.js
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
/*
|
||||
(C) 2013-24 - ntop.org
|
||||
*/
|
||||
|
||||
const active_monitoring_type = [
|
||||
{ name: i18n('active_monitoring_stats.icmp_continuous'), id: 'cicmp' },
|
||||
{ name: i18n('active_monitoring_stats.speedtest'), id: 'speedtest' },
|
||||
{ name: i18n('active_monitoring_stats.throughput'), id: 'throughput' },
|
||||
{ name: i18n('active_monitoring_stats.icmp_continuous_v6'), id: 'cicmp6' },
|
||||
{ name: i18n('active_monitoring_stats.icmp'), id: 'icmp' },
|
||||
{ name: i18n('active_monitoring_page.http'), id: 'http' },
|
||||
]
|
||||
|
||||
const getActiveMonitoringName = (id) => {
|
||||
const obj = active_monitoring_type.find(el => el.id === id);
|
||||
if (obj) {
|
||||
return obj.name;
|
||||
}
|
||||
return id;
|
||||
}
|
||||
|
||||
const activeMonitoringUtils = function () {
|
||||
return {
|
||||
getActiveMonitoringName
|
||||
};
|
||||
}();
|
||||
|
||||
export default activeMonitoringUtils;
|
||||
Loading…
Add table
Add a link
Reference in a new issue