Ponysearch/searx/static/themes/simple
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
..
css [static] make themes.all - from commit 9e8171e38 2021-04-28 16:22:47 +02:00
fonts simple theme update 2018-08-14 17:21:30 +02:00
img simple theme update 2018-08-14 17:21:30 +02:00
js [mod] /stats: simple theme implementation 2021-04-24 06:58:49 +02:00
leaflet themes: remove CR from newlines 2019-12-08 15:33:46 +01:00
less [fix] make /stats more CSP compliant - bar graph 2021-05-17 17:41:22 +02:00
.gitignore .gitignore: make package-lock.json visible 2020-03-26 15:35:32 +01:00
.jshintignore [enh] add simple theme (WIP) 2017-08-06 16:04:21 +02:00
gruntfile.js [fix] simple theme - generate missing sourceMap file 2021-05-17 17:41:22 +02:00
magnet.svg simple theme : replace magnet.svg with a home made version 2017-12-05 21:58:17 +01:00
package.json [less] update grunt-contrib-less v3.3.0 2021-05-17 17:41:22 +02:00