summaryrefslogtreecommitdiff
path: root/searx
AgeCommit message (Collapse)Author
2022-01-23[fix] brave autocompleter: charset_normalizer issuesMarkus Heiser
Use httpx.Response.json() to avoid charset_normalizer issues: DEBUG charset_normalizer : override steps (5) and chunk_size (512) as content does not fit (153 byte(s) given) parameters. INFO charset_normalizer : ascii passed initial chaos probing. Mean measured chaos is 0.000000 % DEBUG charset_normalizer : ascii should target any language(s) of ['Latin Based'] INFO charset_normalizer : ascii is most likely the one. Stopping the process. [1] https://www.python-httpx.org/api/#response Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2022-01-23[pylint] searx/autocomplete.pyMarkus Heiser
Fix remarks from pylint, BTW set SPDX-License-Identifier. Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2022-01-23[help] stop rendering documentation with Jinja2Martin Fischer
To facilitate translation of the user documentation we move the templating logic outside of the user documentation.
2022-01-23[help] convert about.html to MarkdownMartin Fischer
To facilitate translation the new user documentation shall be written in Markdown (which is more human-friendly than HTML and reStructuredText).
2022-01-23[help] render user documentation once on startupMartin Fischer
Currently we have two kinds of user documentation: * the about page[1] which is written in HTML and part of the web application and can therefore link instance-specific pages (like e.g. the preferences) via Jinja variables * the Sphinx documentation[2] which is written in reStructuredText and cannot link instance-specific pages since it doesn't know which instance the user is using The plan is to integrate the user documentation currently in Sphinx into the application, so that it can also link instance specific pages. We also want to enable the user documentation to be translated. This commit implements the first step in this endeavor (see #722). [1]: searx/templates/__common__/about.html [2]: docs/user/ (currently served at https://docs.searxng.org/user/)
2022-01-22Merge pull request #801 from dalf/fix-checkerAlexandre Flament
[fix] checker: fix image fetch
2022-01-22[build] /staticMonty
2022-01-22Changed preferences icon to settings icon in gruntfileMonty
2022-01-22[fix] checker: fix image fetchAlexandre Flament
Since https://github.com/searxng/searxng/pull/354 the searx.network.stream(...) returns a tuple This commits update the checker code according to this function signature change.
2022-01-22Merge pull request #775 from return42/redis-4.1.1Alexandre Flament
Revert "[hotfix] interim fix to get docker-build of CI without issues"
2022-01-21[enh] Add autocompleter from BraveAllen
Raw response example: https://search.brave.com/api/suggest?q=how%20to:%20with%20j Headers are needed in order to get a 200 response, thus Searx user-agent is used. Other URL param could be '&rich=false' or '&rich=true'. Cherry-pick: https://github.com/allendema/searx/commit/71786bf9cb6fbb175a054692e6951e77769aac1b
2022-01-21[translations] update from Weblatesearxng-bot
f3f70b7d - 2022-01-20 - Genghis Khan <genghiskhan@gmx.ca> c66d23fb - 2022-01-15 - Linerly <linerly@protonmail.com> c2b9f7f7 - 2022-01-18 - Markus Heiser <markus.heiser@darmarit.de> 159ec416 - 2022-01-18 - Markus Heiser <markus.heiser@darmarit.de> 8184a23b - 2022-01-17 - lucky13820 <hello@ryanyao.design> c4b476d4 - 2022-01-18 - Go2SheeP <allen.ccccnm@gmail.com> eaf18ed5 - 2022-01-17 - Markus Heiser <markus.heiser@darmarit.de> e7fec156 - 2022-01-18 - Markus Heiser <markus.heiser@darmarit.de> 99368a91 - 2022-01-18 - Markus Heiser <markus.heiser@darmarit.de> a8b23af9 - 2022-01-19 - Markus Heiser <markus.heiser@darmarit.de> 7af1ba21 - 2022-01-17 - Genghis Khan <genghiskhan@gmx.ca> 0af5a3ee - 2022-01-15 - Alexandre Flament <alex@al-f.net> a448183b - 2022-01-14 - Markus Heiser <markus.heiser@darmarit.de> ea4f95cf - 2022-01-19 - Markus Heiser <markus.heiser@darmarit.de> 2f3e7ac9 - 2022-01-17 - Iosevka <iosevka@protonmail.com> c28ae5a8 - 2022-01-17 - Markus Heiser <markus.heiser@darmarit.de> b664bd3b - 2022-01-17 - Pham Nguyen <akizminet@gmail.com>
2022-01-18Merge pull request #773 from not-my-profile/typingMartin Fischer
More typing
2022-01-18[fix] googel engine - "some results are invalids: invalid content"Markus Heiser
Fix google issues listet in the `/stats?engine=google` and message:: some results are invalids: invalid content The log is:: DEBUG searx : result: invalid content: {'url': 'https://de.wikipedia.org/wiki/Foo', 'title': 'Foo - Wikipedia', 'content': None, 'engine': 'google'} WARNING searx.engines.google : ErrorContext('searx/search/processors/abstract.py', 111, 'result_container.extend(self.engine_name, search_results)', None, 'some results are invalids: invalid content', ()) True Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2022-01-18[fix] google engine: remove adds and fix mobile_ui selectorMarkus Heiser
1. Fix issue reported in comment [1] 2. Fix XPath selector for the response of google's mobile UI, reported in comment [2] [1] https://github.com/searxng/searxng/pull/777#issuecomment-1015121322 [2] https://github.com/searxng/searxng/pull/777#issuecomment-1015236238 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2022-01-18Merge pull request #776 from mrpaulblack/simple-ltr-varsAlexandre Flament
[simple theme] dont hardcode border radius
2022-01-17Update XPath for Google engineÉmilien Devos
2022-01-17[build] /staticmrpaulblack
2022-01-17[simple theme] dynamic border radius in CSSmrpaulblack
2022-01-17Revert "[hotfix] interim fix to get docker-build of CI without issues"Markus Heiser
This reverts interim fix from commit 50c4b58db and adds requirement `redis==4.1.1`. The interim fix was needed by Alpine images (Docker) [1] and has been fixed in commit [2] merged with the patch series from [3]. In redis-py version 4.1.1 this pach has been released on PyPi [4]. [1] https://github.com/redis/redis-py/issues/1869 [2] https://github.com/redis/redis-py/commit/1fc1233f [3] https://github.com/redis/redis-py/pull/1854 [4] https://github.com/redis/redis-py/issues/1880 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2022-01-17[typing] add type hints to webapp.pyMartin Fischer
2022-01-17[typing] add results.UnresponsiveEngineMartin Fischer
2022-01-17[refactor] remove never used parameterMartin Fischer
2022-01-17[typing] add type hints for dictionariesMartin Fischer
2022-01-17[typing] add optional attrs to PluginMartin Fischer
2022-01-17[typing] add results.TimingMartin Fischer
2022-01-17[typing] add ExtendedRequestMartin Fischer
webapp.py monkey-patches the Flask request global. This commit adds a type cast so that e.g. Pyright[1] doesn't show "Cannot access member" errors everywhere. [1]: https://github.com/microsoft/pyright
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>