Alexandre Flament
42c1a938f0
Merge pull request #485 from dalf/pref_query_in_title
...
[mod] new preference: query_in_title
2021-11-24 13:10:27 +01:00
Alexandre Flament
dfbbc3b471
[fix] simple theme: /preferences: add tokens field
...
include changes to display input text field in the preferences
2021-11-13 17:12:28 +01:00
Alexandre Flament
80fb77476f
[mod] new preference: query_in_title
...
* disable by default
* settings.yml: ui.query_in_title
* in /preferences: privacy tab
when enabled, the result page's title contains the user query.
previously:
* oscar theme: the query was always included
* simple theme: the query was included with the GET method
2021-11-08 21:40:53 +01:00
Markus Heiser
9730371199
[fix] typos reported from weblate translators
...
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-10-15 19:20:11 +00:00
Alexandre Flament
df06dddc04
SearXNG: oscar theme
2021-09-30 18:50:21 +02:00
Alexandre Flament
2f1384f198
[enh] themes: display the engine descriptions
2021-09-24 20:38:05 +02:00
Markus Heiser
9068a72c6a
[fix] oscar theme - preferences: rename col-checkbox/col-stat
...
[1] https://github.com/searxng/searxng/pull/295#discussion_r703318053
[2] https://github.com/searxng/searxng/pull/295#discussion_r703337237
Suggested-by: @dalf [1] [2]
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-09-07 12:26:07 +02:00
Markus Heiser
222031e975
[fix] make oscar theme more CSP compliant - col-checkbox
...
Add col-checkbox in::
searx/static/themes/oscar/src/less/preferences.less
Replaced style in file::
searx/templates/oscar/preferences.html
Reported-by: https://github.com/searxng/searxng/issues/57
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-09-07 08:24:48 +02:00
Markus Heiser
e564cef0fe
[fix] make /preferences more CSP compliant - simple & oscar theme
...
In simple & oscar theme remove ``style=`` properties which violates CSP but seem
not to have a magnification in GUI (UX).
Fixed files::
./oscar/preferences.html:25:<td class="{{ label }}" style="padding: 2px">{{- "" -}}
./simple/preferences.html:39:<td class="{{ label }}" style="padding: 2px; width: 13rem;">{{- "" -}}
./simple/preferences.html:77: <div class="engine-tooltip" style="right: 12rem;" role="tooltip" id="{{engine_name}}_reliability">
./simple/preferences.html:258: <p class="text-muted" style="margin:20px 0;">
Reported-by: https://github.com/searxng/searxng/issues/57
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-09-07 08:20:30 +02:00
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
Alexandre Flament
881659ca9d
[mod] oscar theme: /preferences : HTML detail order match visual tabs
...
First details about the general tab, then detail about UI tab, etc...
No functionnal change
2021-06-17 15:29:07 +02:00
Alexandre Flament
f83b64270c
[mod] oscar theme /preferences: reorganize the preferences
...
close #115
2021-06-17 15:29:07 +02:00
Alexandre Flament
99aaf86b73
[fix] offline engines: fix templates /stats and /preferences
2021-05-22 15:17:18 +02:00
Alexandre Flament
e83862c22f
[themes] /preferences, reliablity: warning icons & error logs link
...
When there is at least one errors or one failed checker test:
* the warning icon is displayed in the reliability column
* the link "View error logs and submit a bug report" is displayed on engine name tooltip.
Before:
* the warning icon was displayed only when one or more checker test(s) failed.
* the link "View error logs and submit a bug report" was not shown when a checker test failed but there were no error.
2021-05-04 10:50:03 +02:00
Markus Heiser
8026ed0d37
[mod] UI: engine pref-page, about toolbox: add link to stats
...
In the preference page, in the 'about' toolbox of an engine, add a link to the
stats page of the engine, if the engine had one or more errors.
Condition is::
reliabilities[<engine.name>].errors
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-04-29 11:11:05 +02:00
Alexandre Flament
34bced29ae
[mod] engine errors: link to the stats to create an github issue
2021-04-29 11:10:38 +02:00
Alexandre Flament
baff1cbbab
fix issues from review
2021-04-21 18:49:13 +02:00
Alexandre Flament
7cfd8d900a
[mod] oscar: /preferences , engines tab: report engine times
...
* display the median time instead of the average.
* add a "Reliability" column (sum up the metrics and the checker results).
* the "selected language", "SafeSearch", "Time range" values are displayed as "broken" when the checker tests fail.
2021-04-21 16:24:46 +02:00
Markus Heiser
c4793afadc
[fix] https-scheme missing in preferences-page
...
This patch is an addition to PR #2656 which removed all usage of `base_url` from
the templates, except one was forgotten in the cookie URL of the preferences.
closes: 2740
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-04-12 16:02:16 +02:00
Markus Heiser
ebfd0eb2b7
[fix] default_doi_resolver in preferences
...
Instead of a hard-coded `oadoi.org` default, use the default value from
`settings.yml`.
Fix an issue in the themes: The replacement 'current_doi_resolver' contains the
doi_resolver_url, not the name of the DOI resolver. Compare return value of::
searx.plugins.oa_doi_rewrite.get_doi_resolver(...)
Fix a typo in `get_doi_resolver(..)`: suggested by @kvch:
*L32 should set doi_resolver not doi_resolvers*
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-04-04 13:36:33 +02:00
Alexandre Flament
d648001688
[mod] preferences: a tooltip is shown when the mouse is over the engine names
2021-03-22 08:22:59 +01:00
Alexandre Flament
99e0651cea
[mod] by default allow only HTTPS, not HTTP
...
Related to https://github.com/searx/searx/pull/2373
2021-03-08 11:35:08 +01:00
Noémi Ványi
3a63dfbdd7
display if an engine does not support https
...
Closes #302
2020-12-09 20:49:54 +01:00
renyhp
b00f77059c
Add preference for displaying advanced settings
2020-11-22 18:16:43 +01:00
Marc Abonce Seguin
32957cdf49
add Ahmia filter plugin for onion results
2020-10-25 17:59:43 -07:00
Noémi Ványi
33e139cae6
Let admins lock user preferences
2020-10-25 18:06:18 +01:00
Marc Abonce Seguin
a2430154b9
fix selects in preferences so they look consistent ( #2150 )
2020-08-27 21:55:47 +02:00
Adam Tauber
30d16e7ee6
[fix] use base_url for prefix of sharing 'currenly saved preferences' - fixes #1249 by @matejc
2020-08-27 14:29:38 +02:00
Noémi Ványi
223114c575
[fix] refine contrast ratios of texts and borders - #350
2020-07-02 16:24:58 +02:00
Markus Heiser
f14a7add31
Merge branch 'master' of https://github.com/asciimoo/searx into csp-oscar-theme
2020-06-30 15:37:39 +02:00
Adam Tauber
6ab569f558
[fix] connect selects and inputs programmatically on the preferences page - #350
2020-06-25 19:50:26 +02:00
Adam Tauber
fce2d49651
[fix] use scope attribute to describe properties in the engine preferences table
2020-06-25 19:50:26 +02:00
Adam Tauber
5ca5286912
[fix] indicate too high max time by e.g. icon not only by colour
2020-06-25 19:50:26 +02:00
Markus Heiser
a3431d59d3
Merge branch 'master' of https://github.com/asciimoo/searx into csp-oscar-theme
2020-06-01 09:18:51 +02:00
Adam Tauber
19e32dc686
Merge pull request #1978 from kvch/fix-rtl-in-oscar
...
Fix Farsi language in Oscar && adjust tables with RTL
2020-05-31 23:45:14 +02:00
Noémi Ványi
a3e15a3df6
Fix Farsi language in Oscar && adjust tables with RTL
2020-05-31 23:44:34 +02:00
Noémi Ványi
d7d89369cb
add disable all and allow all engines button to Oscar preferences
2020-05-31 23:39:21 +02:00
Markus Heiser
ad208378bb
[fix] oscar theme, remove inline style attributes (CSP compliants)
...
Inline styles are blocked by default with Content Security Policy (CSP). Move
the rest of inline styles to CSS and correct the HTML template of the oscar
preference page.
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2020-05-15 10:16:49 +02:00
Noémi Ványi
99435381a8
[enh] introduce private engines
...
This PR adds a new setting to engines named `tokens`.
It expects a list of tokens which lets searx validate
if the request should be accepted or not.
2020-02-08 11:47:39 +01:00
Markus Heiser
2a5c39e33c
theme: oscar - tidy up trailing whitespaces and tab usage
...
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2019-12-10 18:10:33 +01:00
Marc Abonce Seguin
772c048d01
refactor engine's search language handling
...
Add match_language function in utils to match any user given
language code with a list of engine's supported languages.
Also add language_aliases dict on each engine to translate
standard language codes into the custom codes used by the engine.
2018-03-27 00:08:03 -06:00
Adam Tauber
49b845051f
Merge pull request #973 from MarcAbonce/languages
...
Remove 'all' option from search languages
2017-12-06 14:34:26 +01:00
marc
4d1770398a
remove 'all' option from search languages
2017-12-06 01:20:15 -06:00
Adam Tauber
e060aedc16
[enh] make custom oscar option configurable from url
2017-12-05 22:30:20 +01:00
Adam Tauber
46fb0d860e
[enh] add dark version of oscar/logicodev
2017-12-05 22:05:19 +01:00
Noémi Ványi
1b10abfc92
minor fixes of doi resolver
...
Closes #1047
2017-11-01 17:02:38 +01:00
jibe-b
575159b194
[enh] oa_doi_rewrite plugin broadens doai_rewrite
2017-11-01 14:22:26 +01:00
Adam Tauber
5f758b2d39
[mod] compress saved preferences in url
2017-10-26 00:06:03 +02:00
Noémi Ványi
47ee15f5ce
preferences: make supported/not supported labels
...
Also, Time range support display was missing from RTL locales.
Now it is fixed.
Closes #558
2017-10-06 22:08:24 +02:00
Alexandre Flament
10a24bdc2c
[enh] add simple theme (WIP)
2017-08-06 16:04:21 +02:00