summaryrefslogtreecommitdiff
path: root/searx
AgeCommit message (Collapse)Author
2021-09-07[build] /staticMarkus Heiser
2021-09-07[fix] oscar template - merge the two class attributes into oneMarkus Heiser
Suggested-by: @dalf https://github.com/searxng/searxng/pull/295#discussion_r703337237 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-09-07[fix] simple theme - preferences: fix tooltip overflowMarkus Heiser
Suggested-by: @dalf https://github.com/searxng/searxng/pull/295#discussion_r703370358 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-09-07[fix] oscar theme - preferences: rename col-checkbox/col-statMarkus Heiser
[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[fix] make oscar theme more CSP compliant - col-checkboxMarkus Heiser
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[fix] make oscar theme more CSP compliant - default-image-styleMarkus Heiser
Add default-image-style in:: searx/static/themes/oscar/src/less/result_templates.less Replaced style= in files:: ./oscar/result_templates/default.html:19: <img src="{{ image_proxify(result.img_src or result.thumbnail) }}" title="{{ result.title|striptags }}" style="width: auto; max-height: 60px; min-height: 60px;" class="col-xs-2 col-sm-4 col-md-4 result-content"> ./oscar/result_templates/files.html:24:<img src="{{ image_proxify(result.img_src) }}" alt="{{ result.title|striptags }}" title="{{ result.title|striptags }}" style="width: auto; max-height: 60px; min-height: 60px;" class="col-xs-2 col-sm-4 col-md-4 result-content"> Reported-by: https://github.com/searxng/searxng/issues/57 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-09-07[fix] make /preferences more CSP compliant - simple & oscar themeMarkus Heiser
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-06[build] /staticMarkus Heiser
2021-09-06[fix] make result template map more CSP compliant - simple & oscarMarkus Heiser
Add osm-map-box in:: searx/static/themes/__common__/less/result_templates.less Replaced sty= in files:: ./oscar/result_templates/map.html:64: <div style="height:300px; width:100%; margin: 10px 0;" id="osm-map-{{ index }}"></div> ./simple/result_templates/map.html:65: <div id="result-map-{{ index }}" class="invisible"><div id="osm-map-{{ index }}" style="height:300px; width:100%; margin: 10px 0;" ></div></div> Reported-by: https://github.com/searxng/searxng/issues/57 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-09-06[fix] make /preferences more CSP compliant - simple & oscar themeMarkus Heiser
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-04Merge pull request #289 from return42/fix-xpathAlexandre Flament
[fix] remove minimum length of content for XPath engine
2021-09-04Merge pull request #287 from return42/azlyricsAlexandre Flament
[enh] add engine AZLyrics.com (XPath)
2021-09-04[fix] remove minimum length of content for XPath engineMarkus Heiser
Instead of raising an exception and therefore hiding all results of the engine. It make sense to remove that requirement in order to allow the implementation of search engines that do not always have a description. In fact some search engines that in 99% of the case have a description like Brave Search or Mojeek crash completely if they for some reason included a result with no description. To test this patch try Mojeek: !mjk xyz before and after the patch. Suggested-by: 0xhtml in https://github.com/searx/searx/discussions/2933 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-09-04[enh] add suggestions to brave engineMarkus Heiser
Suggestions should be added too. suggestion_xpath: //div[@class="text-gray h6"]/a You can try it with: !brave recurzuoin Suggested-by: @allendema in https://github.com/searx/searx/issues/2857#issuecomment-904837023 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-09-04[enh] add engine AZLyrics.com (XPath)Allen
Upstream example query: https://search.azlyrics.com/search.php?q=The+verbal+acupunture&w=lyrics&p=1 Cherry picked from [1] and slightly modified to pass yamllint test. [1] https://github.com/allendema/searx/commit/8b6d5a0e5 Reviewed-by: Markus Heiser <markus.heiser@darmarit.de>
2021-09-04[fix] Correct engine name in for RumbleAllen
2021-09-04[fix] Update about section of InvidiousAllen
Another website and new documentation
2021-09-04Merge pull request #281 from dalf/cleanupMarkus Heiser
Cleanup
2021-09-04[fix] typo in searx.webadapter.parse_langMarkus Heiser
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-09-03[translations] updatesearxng-bot
4fd5bb5a - 2021-08-27 - Allan Nordhøy <epost@anotheragency.no>
2021-09-02[mod] remove searx.raise_for_httperrorAlexandre Flament
Not used anymore
2021-09-02[mod] remove remaining references to locales in settings.ymlAlexandre Flament
see #247
2021-09-02[mod] searx.webapp: code clean upAlexandre Flament
2021-09-02[mod] move searx/testing.py to the tests directoryAlexandre Flament
move robot tests to tests.robot manage calls "python -m tests.robot"
2021-09-01Merge pull request #278 from searxng/update_data_update_ahmia_blacklist.pyMarkus Heiser
Update searx.data - update_ahmia_blacklist.py
2021-09-01Merge pull request #279 from searxng/update_data_update_currencies.pyMarkus Heiser
Update searx.data - update_currencies.py
2021-09-01Merge pull request #280 from searxng/update_data_update_firefox_version.pyMarkus Heiser
Update searx.data - update_firefox_version.py
2021-09-01Update searx.data - update_firefox_version.pydalf
2021-09-01Update searx.data - update_currencies.pydalf
2021-09-01Update searx.data - update_ahmia_blacklist.pydalf
2021-09-01Update searx.data - update_wikidata_units.pydalf
2021-08-31Merge pull request #276 from dalf/simple_eslintMarkus Heiser
Simple theme: eslint and bug fix
2021-08-31Merge pull request #275 from koelle25/add-packagistMarkus Heiser
[enh] Add Packagist search engine
2021-08-31[enh] Add Packagist search engine (JSON)Kevin Köllmann
Packagist's API: https://packagist.org/apidoc
2021-08-31[build] /staticAlexandre Flament
2021-08-31[mod] simple theme: fix eslint errors, fix VIM keysAlexandre Flament
* VIM keys: fix the next page and previous pages (n, p keys) * Map: Enable the wikipedia map (the layer was initialized but not included)
2021-08-31Merge pull request #244 from return42/eslint-simple-clientAlexandre Flament
[mod] simple theme - add ESLint
2021-08-31eslint: grunt integrationAlexandre Flament
2021-08-31[mod] simple theme - add ESLintMarkus Heiser
[1] https://eslint.org/ [2] https://eslint.org/docs/user-guide/configuring/ [3] https://eslint.org/docs/user-guide/command-line-interface Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-08-31[enh] new issue: include information from searx.versionAlexandre Flament
2021-08-31Merge pull request #273 from searxng/dependabot/pip/master/pylint-2.10.2Markus Heiser
Bump pylint from 2.9.6 to 2.10.2
2021-08-31[pylint] Pylint 2.10 - unused-variableMarkus Heiser
Pylint 2.10 fixed [1]: Fixed bug with cell-var-from-loop checker: it no longer has false negatives when both unused-variable and used-before-assignment are disabled. [1] https://pylint.pycqa.org/en/latest/whatsnew/2.10.html Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-08-31[pylint] Pylint 2.10 - unspecified-encodingMarkus Heiser
Pylint 2.10 added new default checks [1]: unspecified-encoding: Emitted when open() is called without specifying an encoding [2] [1] https://pylint.pycqa.org/en/latest/whatsnew/2.10.html [2] https://github.com/PyCQA/pylint/issues/3826 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-08-31[pylint] Pylint 2.10 - fix use-list-literal & use-dict-literalMarkus Heiser
Pylint 2.10 added new default checks [1]: use-list-literal Emitted when list() is called with no arguments instead of using [] use-dict-literal Emitted when dict() is called with no arguments instead of using {} [1] https://pylint.pycqa.org/en/latest/whatsnew/2.10.html Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-08-27[translations] updatesearxng-bot
18fae620 - 2021-08-25 - Markus Heiser <markus.heiser@darmarit.de> 2e76843c - 2021-08-25 - ewm <gnu.ewm@protonmail.com> 172a1a88 - 2021-08-25 - Alexandre Flament <alex@al-f.net> 4567065b - 2021-08-25 - Full Name <cheez.1337@mail.ru> 59d9d549 - 2021-08-25 - Markus Heiser <markus.heiser@darmarit.de> 5f135b41 - 2021-08-23 - Markus Heiser <markus.heiser@darmarit.de> 91b3a32e - 2021-08-24 - Full Name <cheez.1337@mail.ru> 0198ea11 - 2021-08-22 - Allan Nordhøy <epost@anotheragency.no> 6efc4b9f - 2021-08-22 - Markus Heiser <markus.heiser@darmarit.de> a263af1e - 2021-08-23 - Alexandre Flament <alex@al-f.net> 713b07f7 - 2021-08-22 - Markus Heiser <markus.heiser@darmarit.de> 0c7b7859 - 2021-08-22 - Markus Heiser <markus.heiser@darmarit.de> 408c85f9 - 2021-08-20 - Alexandre Flament <alex@al-f.net>
2021-08-24[mod] searx.utils.dict_subset: rewrite with comprehensionAlexandre Flament
2021-08-24[mod] /image_proxy: use HTTP/1 instead of HTTP/2Alexandre Flament
httpx: HTTP/2 is slow when a lot data is downloaded. https://github.com/dalf/pyhttp-benchmark also, the usage of HTTP/1 decreases the load average
2021-08-24[fix] image_proxy: always close the httpx responeAlexandre Flament
previously, when the content type was not an image and some other error, the httpx response was not closed
2021-08-24[mod] /image_proxy: don't decompress imagesAlexandre Flament
2021-08-22Merge pull request #260 from dalf/mod_localeMarkus Heiser
[mod] searx.webapp.get_locale: read locale from the preferences