summaryrefslogtreecommitdiff
path: root/searx
AgeCommit message (Collapse)Author
2022-01-16Merge pull request #750 from dalf/simple-rtlAlexandre Flament
Simple theme: implement RTL
2022-01-16Merge pull request #695 from return42/fix-spAlexandre Flament
[fix] startpage engine / modified API
2022-01-16[build] /staticAlexandre Flament
2022-01-16[enh] simple theme: RTL supportAlexandre Flament
* mirror all inline SVGs so that direction SVGs display correctly on RTL * set the bold list element in info box to RTL so the colon gets displayed on the right side * set correct .ltr function for the left border on the search button in #q * move text to the right in autocomplete * move search form in lign with result article on RTL * add the correct padding for img thumbnails in categories like music on RTL * apply RTL to result table for map results * align text in tables part of /preferences on RTL * move burger menu on index page to the left on RTL * fix positioning of drop down arrow on select boxes on RTL * align result URL on the right (written LTR) * align vim hotkeys help on the left since it is not translated * image detail: * labels (author, format, URL, etc...) are written on the right, values are on the left. * URL are written LTR and overflow on the right
2022-01-16[mod] simple theme: change stylelint configurationAlexandre Flament
* disable declaration-empty-line-before https://stylelint.io/user-guide/rules/list/declaration-empty-line-before/ this change allows to mix CSS declarations and LESS mixins without empty lines: #something { display: flex; .ltr-left(60rem); // no mandatory empty line before this one } * disable no-invalid-position-at-import-rule https://stylelint.io/user-guide/rules/list/no-invalid-position-at-import-rule/ this change allows to declare some mixins and then import another .less file: for example: .ltr-left(@offset) { left: @offset; } @import "style.less";
2022-01-15[fix] startpage: workaround to use the startpage networkAlexandre Flament
workaround for the issue #762
2022-01-15Merge pull request #742 from return42/mysqlAlexandre Flament
[mod] engine mysql_server: make port configurable
2022-01-14Merge pull request #754 from return42/fix-751Martin Fischer
[theme] /preferences: rename "Method" to "HTTP Method"
2022-01-14[fix] stop less grunt runner on missing filesMarkus Heiser
The less grunt runner silently ignore missing files and continue with the build[1]:: Running "less:production" (less) task >> Destination css/searxng.min.css not written because no source files were found. >> 1 stylesheet created. >> 1 sourcemap created. Add filter function that calls grunt.fail() if the scr file does not exists. [1] https://github.com/searxng/searxng/pull/750#discussion_r784357031 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2022-01-14[fix] simple theme: description of HTTP methodMarkus Heiser
Suggested-by: @not-my-profile https://github.com/searxng/searxng/pull/754#issuecomment-1012921096 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2022-01-14[theme] /preferences: rename "Method" to "HTTP Method"Markus Heiser
Closes: https://github.com/searxng/searxng/issues/751 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2022-01-14[translations] update from Weblatesearxng-bot
0ca15e28 - 2022-01-11 - Allan Nordhøy <epost@anotheragency.no> dd494ce7 - 2022-01-11 - Markus Heiser <markus.heiser@darmarit.de> 7e4e914a - 2022-01-10 - k2s <martin.minka@gmail.com> b4915a2f - 2022-01-10 - Markus Heiser <markus.heiser@darmarit.de> 832d5cf9 - 2022-01-13 - Genghis Khan <genghiskhan@gmx.ca> 546ad69a - 2022-01-08 - Alexandre Flament <alex@al-f.net> f14bd241 - 2022-01-09 - Markus Heiser <markus.heiser@darmarit.de> 2815009a - 2022-01-07 - Markus Heiser <markus.heiser@darmarit.de>
2022-01-13[fix] make BooleanChoices only set cookies that vary from the defaultMartin Fischer
The bug was inadvertently introduced by the refactor in 180d4d068b4c629ab99876b55046f98455b88149. Fixes #746.
2022-01-12Merge pull request #740 from return42/fix-bangAlexandre Flament
[fix] get_bang_url: handle ambiguous !!bangs without error
2022-01-12[upd] searx/data/external_bangs.jsonMarkus Heiser
Updated external bangs by:: ./manage pyenv.cmd ./searxng_extra/update/update_external_bangs.py Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2022-01-12[fix] external bangs: don't overwrite Bangs in data trieMarkus Heiser
Bangs with a `*` suffix (e.g. `!!d*`) overwrite Bangs with the same prefix (e.g. `!!d`) [1]. This can be avoid when a non printable character is used to tag a LEAF_KEY. [1] https://github.com/searxng/searxng/pull/740#issuecomment-1010411888 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2022-01-12[hotfix] interim fix to get docker-build of CI without issuesMarkus Heiser
There is an issue with redis v4.1.0 [1] / for the interim lets remove this python dependency. [1] https://github.com/searxng/searxng/issues/741 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2022-01-12[themes] add comma before "but" in new sentenceMartin Fischer
Closes #739.
2022-01-11[mod] engine mysql_server: make port configurableMarkus Heiser
Cherry piked from https://github.com/searx/searx/commit/82ac634070 Suggested-by: https://github.com/searx/searx/issues/3117 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2022-01-11Merge pull request #686 from return42/lib_redisMarkus Heiser
Add redis DB and connector
2022-01-11[fix] get_bang_url: handle ambiguous !!bangs without errorMarkus Heiser
An ambiguous bang like `!!d` raises an exception in function get_bang_url(). A bang is only unique when the bang_definition from get_bang_definition_and_ac() is a string / for a ambiguous bang the returned bang_definition is a dictionary. Reported-by: user prg at #searxng:matrix.org on 2022/01/11 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2022-01-10[build] /staticMarkus Heiser
2022-01-10[fix] autocomple.js: register li.onmousedown instead li.onclickMarkus Heiser
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2022-01-10Merge pull request #729 from k2s/fix-tokensMarkus Heiser
fix(security): filtered_engines were not correctly evaluating validate_token()
2022-01-10[mod] starpage engine: add comment about Startpage's FFox add-onMarkus Heiser
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2022-01-10[fix] startpage engine: fetch CAPTCHA & issues related to PR-695Markus Heiser
In case of CAPTCHA raise a SearxEngineCaptchaException and suspend for 7 days. When get_sc_code() fails raise a SearxEngineResponseException and suspend for 7 days. [1] https://github.com/searxng/searxng/pull/695 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2022-01-10[fix] Get an actual `sc` argument from startpage's home page.Markus Heiser
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2022-01-10[pylint] Startpage engineMarkus Heiser
Fix remarks from pylint Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2022-01-10[fix] startpage engine - avoid captchaMarkus Heiser
Startpage has introduced new anti-scraping measures that make SearXNG instances run into captchas: 1. some arguments has been removed and a new `sc` has been added. 2. search path changed from `do/search` to `sp/search` 3. POST request is no longer needed Closes: https://github.com/searxng/searxng/issues/692 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2022-01-10[fix] add default for "about" engine propertyMartin Fischer
Fixes #732.
2022-01-09[fix] filtered_engines were not correctly evaluating validate_token()Martin Minka
2022-01-07[fix] redis: don't create a new connection at each client() callMarkus Heiser
Suggested-by: @dalf https://github.com/searxng/searxng/pull/686#pullrequestreview-844942973 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2022-01-07[fix] ccengine engine - avoid unwanted redirectsMarkus Heiser
api.openverse.engineering is a little picky and wants to have a trailing slash in the path: /v1/images? -->/ v1/images/? otherwise it redirects, here is the debug log: DEBUG searx.network.openverse : HTTP Request: GET https://api.openverse.engineering/v1/images?&page=1&page_size=20&format=json&q=foo "HTTP/2 301 Moved Permanently" (text/html; charset=utf-8) DEBUG searx.network.openverse : HTTP Request: GET https://api.openverse.engineering/v1/images/?&page=1&page_size=20&format=json&q=foo "HTTP/2 200 OK" (application/json) WARNING searx.engines.openverse : ErrorContext('searx/search/processors/online.py', 105, 'count_error(', None, '1 redirects, maximum: 0', ('200', 'OK', 'api.openverse.engineering')) True Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2022-01-07[upd] engine_descriptions.jsonMarkus Heiser
Updated by: ./manage pyenv.cmd python3 \ ./searxng_extra/update/update_engine_descriptions.py Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2022-01-07[fix] Rename ccengine engine to openverseLéon Tiekötter
The CC engine was merged with WordPress and renamed to Openverse Source: https://wordpress.org/news/2021/05/welcome-to-openverse/
2022-01-07[fix] ccengine engineLéon Tiekötter
Change domain to api.openverse.engineering
2022-01-07Merge pull request #709 from return42/drop-etoolsMarkus Heiser
[fix] drop etools engine module
2022-01-07[fix] drop etools engine moduleMarkus Heiser
The implementation of the etools engine is poor. No date-range support, no language support and it is broken by a CAPTCHA. etools is a metasearch engine, the major search engines it supports (google, bing, wikipedia, Yahoo) are already available in SeaarXNG. While etools does support several engines we currently don't support directly, support for them should be added directly to SearXNG if there is demand. In practice: in SearXNG the worse etools results will be mixed with good results from other engines we have (as long as there is no captcha). At best case, what we win with etools is in e.g. results from de.ask.com in a query from a german request .. in all other cases worse results are bubble up in SearXNG's result list. [1] https://github.com/searxng/searxng/issues/696#issuecomment-1005855499 Closes: https://github.com/searxng/searxng/issues/696 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2022-01-07Merge pull request #708 from not-my-profile/pref-refactorMartin Fischer
Refactor `preferences`
2022-01-07Merge pull request #718 from searxng/dependabot/pip/master/pygments-2.11.2Markus Heiser
Bump pygments from 2.11.0 to 2.11.2
2022-01-07[build] /staticMarkus Heiser
2022-01-07make pygments.lessMarkus Heiser
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2022-01-07[translations] update from Weblatesearxng-bot
7781625e - 2022-01-06 - Linerly <linerly@protonmail.com> dcab2ef1 - 2022-01-06 - Markus Heiser <markus.heiser@darmarit.de>
2022-01-07Drop microsoft academic engineLéon Tiekötter
Microsoft academic was discontinued on 2021-12-31. Source: https://www.microsoft.com/en-us/research/project/academic/articles/microsoft-academic-to-expand-horizons-with-community-driven-approach/
2022-01-06[refactor] refactor SwitchableSettingMartin Fischer
The previous implementation used two hash sets and a list. ... that's not necessary ... a single hash map suffices. And it's also less error prone ... because the previous data structure allowed a setting to be enabled and disabled at the same time.
2022-01-06[refactor] stop SwitchableSetting from subclassing SettingMartin Fischer
Previously the default_value was abused for the cookie name. Having SwitchableSetting subclass Setting doesn't even make sense in the first place since none of the Setting methods apply.
2022-01-06Merge pull request #706 from not-my-profile/remove-broken-quest-opMartin Fischer
[fix] remove broken ? search operator
2022-01-06[fix] prevent leaflet.{css,js} from polluting git grep resultsMartin Fischer
Fixes #704.
2022-01-06[refactor] remove pointless tupleMartin Fischer
2022-01-06[refactor] add type hints & remove Setting._post_initMartin Fischer
Previously the Setting classes used a horrible _post_init hack that prevented proper type checking.