mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
add edit user script page (#5002)
This commit is contained in:
parent
aabd05dc17
commit
41ff6bcb3b
8 changed files with 203 additions and 12 deletions
26
scripts/lua/modules/user_scripts_utils.lua
Normal file
26
scripts/lua/modules/user_scripts_utils.lua
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
--
|
||||
-- (C) 2021 - ntop.org
|
||||
--
|
||||
|
||||
local dirs = ntop.getDirs()
|
||||
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
|
||||
|
||||
require "lua_utils"
|
||||
|
||||
local user_scripts_utils = {}
|
||||
|
||||
--- Load the cofigset titles
|
||||
--- @return table
|
||||
function user_scripts_utils.load_configset_titles()
|
||||
return {
|
||||
["host"] = i18n("config_scripts.granularities.host"),
|
||||
["snmp_device"] = i18n("config_scripts.granularities.snmp_device"),
|
||||
["system"] = i18n("config_scripts.granularities.system"),
|
||||
["flow"] = i18n("config_scripts.granularities.flow"),
|
||||
["interface"] = i18n("config_scripts.granularities.interface"),
|
||||
["network"] = i18n("report.local_networks"),
|
||||
["syslog"] = i18n("config_scripts.granularities.syslog")
|
||||
}
|
||||
end
|
||||
|
||||
return user_scripts_utils
|
||||
Loading…
Add table
Add a link
Reference in a new issue