fail2web
fail2web copied to clipboard
Adding an option to deactivate pie chart
Dear @Sean-Der ,
could you please add a configuration option to not render the pie chart and only render the table of entries instead? With thousands of bans on a system, browsers may regularly crash trying to render the pie chart.
Thanks in advance! Maik
Hey @MaikJaek
That sounds like a useful feature! I haven't had a chance to work on fail2web in a while, so I will take some time this weekend to update all the libraries etc.. and add that feature.
Will keep you updated/close this when it is done! thanks
Hi @Sean-Der ,
Thanks. I appreciate the effort! I tried to fix it myself. However, the used libraries are so old that I cannot manage to build it (and I've tried with very old NodeJS versions).
I did a quick hack on bundle.js to resolve the immediate need for my company. Nevertheless, even rendering just 1000 banned ips in the list takes a long time. Maybe this can be fixed using angular 2 or a different way of creating and sorting the table.
Feel free to contact me, if you need any more input or help. I'll see what I can do.
Thanks in advance for taking care!
Hello, Thanks you, fail2web is a great tool ! :) We also had this issue : the history chart makes the browser unresponsive with important number of IPs. I've commented the following lines in web/bundle.js around lines 109-110 to disable the history chart (as we only need the ip list) :
//$scope.$watch('global.bans', rebuildCharts, true);
//$scope.$watch('activeJail.name', rebuildCharts, true);
Thank you :)