Markus Heiser
cdfb4b7ff9
[fix] make /stats more CSP compliant - bar graph
Replace bar graph's *styles* (see below) by CSP compliant implementation in
``searx/static/themes/__common__/less/stats.less`` ::
./simple/stats.html:49: <span style="width: calc(max(2px, 100%*{{ (engine_stat.result_count / engine_stats.max_result_count )|round(3) }}))" class="stacked-bar-chart-serie1"></span>{{- "" -}}
./simple/stats.html:57: <span style="width: calc(max(2px, 100%*{{ (engine_stat.http / engine_stats.max_time )|round(3) }}))" class="stacked-bar-chart-serie1"></span>{{- "" -}}
./simple/stats.html:58: <span style="width: calc(100%*{{ engine_stat.processing / engine_stats.max_time |round(3) }})" class="stacked-bar-chart-serie2"></span>{{- "" -}}
./oscar/stats.html:50: <span style="width: calc(max(2px, 100%*{{ (engine_stat.result_count / engine_stats.max_result_count )|round(3) }}))" class="stacked-bar-chart-serie1"></span>{{- "" -}}
./oscar/stats.html:58: <span style="width: calc(max(2px, 100%*{{ (engine_stat.http / engine_stats.max_time )|round(3) }}))" class="stacked-bar-chart-serie1"></span>{{- "" -}}
./oscar/stats.html:59: <span style="width: calc(100%*{{ engine_stat.processing / engine_stats.max_time |round(3) }})" class="stacked-bar-chart-serie2"></span>{{- "" -}}
Reported-by: https://github.com/searxng/searxng/issues/57
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-05-17 17:41:22 +02:00
..
2021-04-29 11:10:38 +02:00
2019-11-24 22:01:44 -07:00
2020-09-10 10:39:04 +02:00
2017-08-06 16:04:21 +02:00
2021-04-22 20:14:16 +02:00
2017-08-06 16:04:21 +02:00
2017-08-06 16:04:21 +02:00
2020-11-02 20:04:03 -07:00
2017-08-06 16:04:21 +02:00
2021-05-04 11:57:14 +02:00
2021-05-04 10:50:03 +02:00
2021-04-29 11:10:38 +02:00
2020-11-02 20:04:03 -07:00
2017-08-06 16:04:21 +02:00
2021-05-17 17:41:22 +02:00
2017-08-06 16:04:21 +02:00