searxng/searx
Markus Heiser 48c806954e [fix] make /preferences more CSP compliant - simple & oscar theme
in simple & oscar theme replace bar-graph's *styles* by CSP compliant
implementation in::

    searx/static/themes/__common__/less/stats.less

Fixed files::

    ./oscar/preferences.html:29:        <span style="width: calc(max(2px, 100%*{{ (stats[engine_name].time / max_rate95)|round(3) }}))" class="stacked-bar-chart-median"></span>{{- "" -}}
    ./oscar/preferences.html:30:        <span style="width: calc(100%*{{ ((stats[engine_name].rate80 - stats[engine_name].time) / max_rate95)|round(3) }})" class="stacked-bar-chart-rate80"></span>{{- "" -}}
    ./oscar/preferences.html:31:        <span style="width: calc(100%*{{ ((stats[engine_name].rate95 - stats[engine_name].rate80) / max_rate95)|round(3) }})" class="stacked-bar-chart-rate95"></span>{{- "" -}}
    ./simple/preferences.html:43:        <span style="width: calc(max(2px, 100%*{{ (stats[engine_name].time / max_rate95)|round(3) }}))" class="stacked-bar-chart-median"></span>{{- "" -}}
    ./simple/preferences.html:44:        <span style="width: calc(100%*{{ ((stats[engine_name].rate80 - stats[engine_name].time) / max_rate95)|round(3) }})" class="stacked-bar-chart-rate80"></span>{{- "" -}}
    ./simple/preferences.html:45:        <span style="width: calc(100%*{{ ((stats[engine_name].rate95 - stats[engine_name].rate80) / max_rate95)|round(3) }})" class="stacked-bar-chart-rate95"></span>{{- "" -}}

Reported-by: https://github.com/searxng/searxng/issues/57
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-09-06 11:08:50 +02:00
..
answerers [fix] answers: don't crash when the query is an empty string 2021-03-01 10:52:39 +01:00
data Merge pull request #278 from searxng/update_data_update_ahmia_blacklist.py 2021-09-01 06:48:55 +00:00
engines [fix] remove minimum length of content for XPath engine 2021-09-04 12:41:23 +02:00
metrics [refactor] metrics.get_reliabilities() - make code more readable 2021-05-22 15:17:18 +02:00
network [pylint] Pylint 2.10 - unused-variable 2021-08-31 10:51:50 +02:00
plugins [mod] plugins: minor change 2021-08-14 18:03:31 +02:00
search [fix] searx.search.checker.get_result() always return a dict 2021-08-16 08:29:16 +02:00
shared [fix] checker: don't run the checker when uwsgi is not properly configured 2021-01-13 14:07:39 +01:00
static Merge pull request #276 from dalf/simple_eslint 2021-08-31 16:13:47 +00:00
templates [fix] make /preferences more CSP compliant - simple & oscar theme 2021-09-06 11:08:50 +02:00
translations [translations] update 2021-09-03 07:16:39 +00:00
__init__.py [mod] drop obsolete searx.brand namespace 2021-07-21 13:38:28 +02:00
autocomplete.py [httpx] replace searx.poolrequests by searx.network 2021-04-12 17:25:56 +02:00
exceptions.py [enh] add raise_for_httperror 2020-12-11 14:37:08 +01:00
external_bang.py [mod] add utils/fetch_external_bangs.py 2021-02-24 18:48:36 +01:00
external_urls.py [enh] openstreetmap / map template: improve results 2021-06-09 18:08:23 +02:00
flaskfix.py [mod] refactor: move Flask proxy fix to searx.flaskfix module 2021-06-08 15:54:11 +02:00
languages.py [fix] get common used languages back (min_engines_per_lang = 13) 2021-08-01 13:04:24 +02:00
locales.py [mod] searx/locales.py: language names based on Unicode CLDR 2021-08-04 09:50:34 +02:00
preferences.py [pylint] Pylint 2.10 - fix use-list-literal & use-dict-literal 2021-08-31 10:40:29 +02:00
query.py [enh] autocomplete refactoring, autocomplete on external bangs 2021-03-01 19:12:32 +01:00
results.py [fix] offline engine: don't crash on time recording 2021-05-22 15:17:18 +02:00
settings.yml Merge pull request #287 from return42/azlyrics 2021-09-04 13:36:09 +02:00
settings_defaults.py [mod] remove remaining references to locales in settings.yml 2021-09-02 16:19:18 +02:00
settings_loader.py [fix] unit test: don't load /etc/searx/settings.yml 2021-05-18 17:23:21 +02:00
unixthreadname.py [mod] move hook to set Unix thread name into searx.unixthreadname 2021-06-08 15:54:11 +02:00
utils.py [mod] searx.utils.dict_subset: rewrite with comprehension 2021-08-24 15:28:08 +02:00
version.py [pylint] Pylint 2.10 - unspecified-encoding 2021-08-31 10:49:36 +02:00
webadapter.py [fix] typo in searx.webadapter.parse_lang 2021-09-04 08:39:45 +02:00
webapp.py [mod] searx.webapp: code clean up 2021-09-02 16:16:20 +02:00
webutils.py [mod] move all default settings into searx.settings_defaults 2021-06-01 08:10:15 +02:00