Commit graph

71 commits

Author SHA1 Message Date
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