searxngRebrandZaclys/searx/static/themes/oscar
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 [mod] oscar: get bootstrap and typeahead from NPM 2021-03-11 09:33:01 +01:00
img [fix] xpath expressions to grap all items from bandcamp's response 2021-04-15 08:52:11 +02:00
js [mod] update /stats 2021-04-24 06:58:22 +02:00
src [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
README.rst [mod] oscar: update README.rst 2021-03-11 09:33:04 +01:00
gruntfile.js [fix] grunt/less/development: oscar light & dark logicodev mixes CSS 2021-04-28 15:15:29 +02:00
package.json [mod] oscar: get bootstrap and typeahead from NPM 2021-03-11 09:33:01 +01:00

README.rst

install dependencies

run this command in the directory searx/static/themes/oscar

npm install

compile sources

run this command in the directory searx/static/themes/oscar

grunt

or in the root directory:

make grunt

directory structure

see:

  • gruntfile.js
  • package.json

css directory

  • bootstrap*: bootstrap NPM package,
  • leaflet.*: leaflet NPM package
  • leaflet.min.css: minimized version of leaflet.css (see gruntfile.js)
  • logicodev.*: compiled from src/less/logicodev
  • logicodev-dark*: compiled from src/less/logicodev-dark
  • pointhi*: compiled from src/less/pointhi
  • images: leaflet NPM package

font directory

  • from bootstrap NPM package

js directory

  • searx.*: compiled from src/js
  • other files are from NPM packages

img directory

  • images for the oscar theme