Commit graph

137 commits

Author SHA1 Message Date
Gabriele Pappalardo
5c404456b2 fix undefined strings (#3300) 2020-01-23 14:59:46 +00:00
Gabriele Pappalardo
663a39ed0d Ticket#3294 (#3297)
* localized hardcoded strings strings

* localized strings
2020-01-23 12:41:18 +00:00
Gabriele Pappalardo
74a8b86e7d Removed Enabled column (#3295)
* localized hard-coded strings

* removed useless json data

* fix for view button
2020-01-23 10:45:11 +00:00
gabryon99
611e6f2801 implemented toggle_user_script.lua on toggle buttons 2020-01-23 11:02:23 +01:00
gabryon99
1a855b8cf8 Merge branch 'dev' of https://github.com/ntop/ntopng into ticket#3282 2020-01-23 10:55:06 +01:00
gabryon99
06e839c328 enable/disable column removed 2020-01-23 10:55:02 +01:00
emanuele-f
eafa80da09 Fixes for the 'all' hook 2020-01-22 16:54:33 +01:00
emanuele-f
15f507602e Populate apps/categories multiselect 2020-01-22 15:46:29 +01:00
Gabriele Pappalardo
df52a34eb7 multiselect on elephant and long lived (#3293) 2020-01-22 14:45:18 +00:00
emanuele-f
5deefe8511 Items list fix 2020-01-22 13:58:05 +01:00
Gabriele Pappalardo
415a02c960 longlived templates for scripts (#3276)
* long lived implementation
* fix for elpehant input checks (#3274)
* long_lived completed
* elephant flow and long lived completed
* added spaces fro elephant and long lived
2020-01-22 12:57:28 +00:00
emanuele-f
4a4106a796 Integrate elephant flows new gui 2020-01-21 19:39:41 +01:00
Gabriele Pappalardo
a2f4a1a065 elephant flows (#3269)
* elephant flows
* fix for apply button after changes
* fix for refresh icons on index.lua page, scrollable dropdowns enabled
2020-01-21 16:32:14 +00:00
emanuele-f
92b5cfc278 Fix missing reload after changing user scripts configuration
Fixes #3257
2020-01-21 08:46:23 +01:00
emanuele-f
aca088ea13 Add hyperlink to jump to the alert configuration
Closes #2936
2020-01-17 19:11:15 +01:00
emanuele-f
4c8cca297b Initial changes elephant flows support 2020-01-17 15:00:13 +01:00
Gabriele Pappalardo
b0b6ae9523 Apply Event for Elphant Flows (#3252)
* fix undefined value

* add on apply for elephant flows
2020-01-17 13:59:53 +00:00
emanuele-f
324d43c149 Cosmetical changes 2020-01-17 12:21:01 +01:00
emanuele-f
f150b6c6f1 Fix readonly field 2020-01-17 12:14:47 +01:00
Gabriele Pappalardo
ac6b558198 Added two new template for scripts flows (#3250)
* add label for each hooks into scripts table

* fix for issue #3212, refactored scripts-list-utils code

* add render function itemslist

* add items_list template to script_list-utils.js

* label for new template

* fix for issue #3231 and fix reset button for the new ItemsList template

* add message for blacklisted country and add gui for #3226

* fixes for "button" badges and fix for toggle on/off in edit_configset.lua

* removed console.info from last commit

* fix for issue #3243

* fix tooltip description length

* add new templates, refactored code

* added todo

* fix on itemlist template

* fix on enabled toggle
2020-01-17 10:46:48 +00:00
Gabriele Pappalardo
db3562d12e Fix for issue #3239, #3243 (#3245)
* add label for each hooks into scripts table

* fix for issue #3212, refactored scripts-list-utils code

* add render function itemslist

* add items_list template to script_list-utils.js

* label for new template

* fix for issue #3231 and fix reset button for the new ItemsList template

* add message for blacklisted country and add gui for #3226

* fixes for "button" badges and fix for toggle on/off in edit_configset.lua

* removed console.info from last commit

* fix for issue #3243
2020-01-15 15:32:52 +01:00
emanuele-f
d7528e1628 Score improvements
The score is now calculated differently on the client and on the server of the flow.
The hosts flow is updated every minute and charted.
It's now possible to trigger an alert when the score threshold is exceeded
2020-01-15 12:34:16 +01:00
Alfredo Cardigliano
c74a83abfa Replace button group with badges for consistency 2020-01-15 11:08:36 +01:00
Gabriele Pappalardo
a9a880ee04 graphic user interface for #3226 and add messages to locale (#3236)
* add label for each hooks into scripts table

* fix for issue #3212, refactored scripts-list-utils code

* add render function itemslist

* add items_list template to script_list-utils.js

* label for new template

* fix for issue #3231 and fix reset button for the new ItemsList template

* add message for blacklisted country and add gui for #3226
2020-01-14 15:29:26 +00:00
Gabriele Pappalardo
e957d846e3 add label for each hooks into scripts table (#3215)
* add label for each hooks into scripts table

* fix for issue #3212, refactored scripts-list-utils code

* add render function itemslist

* add items_list template to script_list-utils.js

* label for new template
2020-01-14 14:27:10 +00:00
emanuele-f
7679da4d21 Implement blacklisted country alert 2020-01-13 18:15:27 +01:00
gabryon99
63c63ecc41 add popovers for script desc and escape binding for script modal 2020-01-08 14:13:15 +01:00
gabryon99
ad49daf7d3 add first, last buttons on dt and gui fixes 2020-01-08 11:46:01 +01:00
gabryon99
4286eb94a8 fix for issue #3189 2020-01-04 16:34:19 +01:00
emanuele-f
d037f9a9a4 Use new user scripts config and gui
The user scripts configuration can now be configured from the "User Scripts" entry under the cog
icon. It allows the creation of multiple configuration presets to be applied to hosts, networks and
interfaces.
2020-01-03 13:03:34 +01:00
Gabriele Pappalardo
961a06f36e Add localization for text inside scripts_list and config_list (#3184)
* hide previous errors in apply modal

* disable buttons on row for scripts_list

* check csrf token expiration

* localization for text inside scripts, issue #3164
2020-01-03 09:14:04 +01:00
Gabriele Pappalardo
4dea6ddfa0 Disable buttons on row after a request (#3181)
* hide previous errors in apply modal

* disable buttons on row for scripts_list

* check csrf token expiration
2020-01-02 13:49:12 +00:00
emanuele-f
1b438d3619 Fix bad source URL in pro flow user scripts 2020-01-02 12:01:27 +01:00
emanuele-f
32996a294e Fix double POST in flows user scripts config 2020-01-02 11:40:16 +01:00
emanuele-f
9f0fca8c12 Hide non-applicable operators in user scripts config
Fixes #3178
2020-01-02 10:58:48 +01:00
gabryon99
0c48f7f060 add locale for error messages 2019-12-30 15:00:15 +01:00
gabryon99
c3f96c0519 separated js code from template files 2019-12-30 14:21:49 +01:00