Commit graph

6293 commits

Author SHA1 Message Date
Alexandre Flament
0539e38309 Workaround: index.html: remove image preload
Related to https://github.com/searxng/searxng/issues/1326

URL for the logo is referenced twice:
* in index.html for preloading: it contains the hash for cache busting (when static_use_hash: true)
* in searxng.min.css: to actually display the image. The URL doesn't contain the hash.

So the image preload actually loads twice the same image.

This commit removed the image preloading.
This is workaround: the real fix is to be able to use the URL with the hash in the CSS.
2022-06-18 09:04:13 +02:00
Alexandre Flament
43b8b64866
Merge pull request #1328 from return42/yaml-strict
[fix] test.yamllint: return non-zero exit code on warnings
2022-06-18 08:53:07 +02:00
Alexandre Flament
b41a685eb1
Merge pull request #1336 from searxng/dependabot/pip/master/splinter-0.18.0
Bump splinter from 0.17.0 to 0.18.0
2022-06-18 08:37:25 +02:00
Alexandre Flament
1945039017
Merge pull request #1344 from dalf/fix-sys-modules-iterator
Fix: use sys.modules.copy() to avoid RuntimeError
2022-06-18 08:26:46 +02:00
dependabot[bot]
880378f48d Bump splinter from 0.17.0 to 0.18.0
Bumps [splinter](https://github.com/cobrateam/splinter) from 0.17.0 to 0.18.0.
- [Release notes](https://github.com/cobrateam/splinter/releases)
- [Changelog](https://github.com/cobrateam/splinter/blob/master/docs/news.rst)
- [Commits](https://github.com/cobrateam/splinter/compare/0.17.0...0.18.0)

---
updated-dependencies:
- dependency-name: splinter
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Alexandre Flament <alex@al-f.net>
2022-06-18 08:10:33 +02:00
Alexandre Flament
5bcbec9b06 Fix: use sys.modules.copy() to avoid RuntimeError
use sys.modules.copy() to avoid "RuntimeError: dictionary changed size during iteration"
see https://github.com/python/cpython/issues/89516
and https://docs.python.org/3.10/library/sys.html#sys.modules

close https://github.com/searxng/searxng/issues/1342
2022-06-18 07:39:46 +02:00
Alexandre Flament
a7b0b2ecbf
Merge pull request #1329 from samsaptidev/feature/privacypolicy_url
Add privacypolicy_url option
2022-06-18 07:26:40 +02:00
Markus Heiser
8177bf3f0a
Merge pull request #1337 from searxng/dependabot/pip/master/aiounittest-1.4.2
Bump aiounittest from 1.4.1 to 1.4.2
2022-06-17 10:13:46 +02:00
Markus Heiser
9f819d4b6a
Merge pull request #1341 from tiekoetter/fix-mojeek-xpath
[fix] mojeek engine: XPath
2022-06-17 09:42:40 +02:00
Markus Heiser
af699082db
Merge pull request #1338 from searxng/dependabot/pip/master/certifi-2022.6.15
Bump certifi from 2022.5.18.1 to 2022.6.15
2022-06-17 09:39:18 +02:00
dependabot[bot]
545ea6e4aa
Bump certifi from 2022.5.18.1 to 2022.6.15
Bumps [certifi](https://github.com/certifi/python-certifi) from 2022.5.18.1 to 2022.6.15.
- [Release notes](https://github.com/certifi/python-certifi/releases)
- [Commits](https://github.com/certifi/python-certifi/compare/2022.05.18.1...2022.06.15)

---
updated-dependencies:
- dependency-name: certifi
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-17 07:33:29 +00:00
Léon Tiekötter
6bdc66b70e
[fix] mojeek engine: XPath
Update the XPath of the Mojeek engine.
2022-06-17 09:32:53 +02:00
Markus Heiser
ad18ac1ff2
Merge pull request #1340 from searxng/dependabot/pip/master/babel-2.10.3
Bump babel from 2.10.1 to 2.10.3
2022-06-17 09:32:42 +02:00
Markus Heiser
36db2679c3
Merge pull request #1339 from searxng/translations_update
Update translations
2022-06-17 09:19:43 +02:00
dependabot[bot]
0fce1395e9
Bump babel from 2.10.1 to 2.10.3
Bumps [babel](https://github.com/python-babel/babel) from 2.10.1 to 2.10.3.
- [Release notes](https://github.com/python-babel/babel/releases)
- [Changelog](https://github.com/python-babel/babel/blob/master/CHANGES.rst)
- [Commits](https://github.com/python-babel/babel/compare/v2.10.1...v2.10.3)

---
updated-dependencies:
- dependency-name: babel
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-17 07:18:48 +00:00
Markus Heiser
4f90b93e1d
Merge pull request #1335 from searxng/dependabot/pip/master/pylint-2.14.2
Bump pylint from 2.14.1 to 2.14.2
2022-06-17 09:18:19 +02:00
searxng-bot
8e107a9ad6 [translations] update from Weblate
7d7f9823 - 2022-06-14 - Markus Heiser <markus.heiser@darmarit.de>
61912312 - 2022-06-15 - liimee <alt3753.7@gmail.com>
895d116e - 2022-06-16 - vmisovic <vladimir.misovic03@gmail.com>
2f55d1a3 - 2022-06-13 - Markus Heiser <markus.heiser@darmarit.de>
507db1e1 - 2022-06-10 - Markus Heiser <markus.heiser@darmarit.de>
1a7079d1 - 2022-06-12 - Markus Heiser <markus.heiser@darmarit.de>
aa30ed02 - 2022-06-10 - Stanisław Jankowski <stach.jankowski@gmail.com>
2022-06-17 07:17:59 +00:00
dependabot[bot]
acf67c0729
Bump aiounittest from 1.4.1 to 1.4.2
Bumps [aiounittest](https://github.com/kwarunek/aiounittest) from 1.4.1 to 1.4.2.
- [Release notes](https://github.com/kwarunek/aiounittest/releases)
- [Commits](https://github.com/kwarunek/aiounittest/compare/1.4.1...1.4.2)

---
updated-dependencies:
- dependency-name: aiounittest
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-17 07:06:34 +00:00
dependabot[bot]
01a1ad00a4
Bump pylint from 2.14.1 to 2.14.2
Bumps [pylint](https://github.com/PyCQA/pylint) from 2.14.1 to 2.14.2.
- [Release notes](https://github.com/PyCQA/pylint/releases)
- [Commits](https://github.com/PyCQA/pylint/compare/v2.14.1...v2.14.2)

---
updated-dependencies:
- dependency-name: pylint
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-17 07:06:28 +00:00
samsaptidev
31005595c9
Add privacypolicy_url option 2022-06-16 11:56:24 +02:00
Markus Heiser
c377679103 [fix] test.yamllint: return non-zero exit code on warnings
SearXNG's YAML files should be free of any warnings. This will stop the test
when there are warnings like::

     [warning] truthy value should be one of [false, true] (truthy)

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2022-06-15 13:17:24 +02:00
Markus Heiser
36184b2f29
Merge pull request #1327 from liimee/eng
add pub.dev engine
2022-06-15 13:06:37 +02:00
ta
e9cc6ab0e7 add pub.dev engine 2022-06-15 12:55:37 +02:00
Paul Braeuning
d7a76f3772
Merge pull request #1322 from return42/fix-794
[fix] keyboard.js - highlightResult: don't steal focus on click event
2022-06-14 19:07:09 +02:00
Markus Heiser
e67ed89447
Merge pull request #1323 from return42/fix-typo
[doc] fix some leftovers from ad964562c
2022-06-14 16:42:21 +02:00
Markus Heiser
ef4239c68a [doc] fix some leftovers from ad964562c
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2022-06-14 16:31:41 +02:00
Markus Heiser
1a361e6635 [build] /static 2022-06-14 15:14:33 +02:00
Markus Heiser
882282d0e9 [fix] keyboard.js - highlightResult: don't steal focus on click event
For keyboard navigation the highlightResult() function in keyboard.js steals the
focus.  On a mouse click event (non keyboard action) the focus should resist
where it is, otherwise a marked region gets lost.  This is the reason why text
can't be selected when using simple theme with JS enabled.

Closes: https://github.com/searxng/searxng/issues/794
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2022-06-14 15:14:19 +02:00
Paul Braeuning
7bc3d17b11
Merge pull request #1320 from dalf/theme-fix-click-on-search-input
Theme fix click on search input
2022-06-13 22:05:01 +02:00
Alexandre Flament
3ade7ffc26 [build] /static 2022-06-13 21:38:07 +02:00
Alexandre Flament
fe1683c9c6 UX fix: when the user clicks on the search input, don't move the cursor at the end
Related to https://github.com/searxng/searxng/pull/1153#issuecomment-1154247988
2022-06-13 21:35:14 +02:00
Markus Heiser
9b0b6a2c90
Merge pull request #1313 from unixfox/help-rate-limit-google
add "warn" message to notify the admin that use_mobile_ui parameter exist
2022-06-12 17:07:13 +02:00
Markus Heiser
1bc5455db1
Merge pull request #1315 from dalf/autocomplete-no-duplicate
Autocomplete: don't suggest the current query.
2022-06-12 12:26:59 +02:00
Alexandre Flament
ee3f230d93 Autocomplete: don't suggest the current query.
Example of minor issue before this commit:
the autocompletion can suggest "Test" if the query is "Test".
2022-06-12 11:21:24 +02:00
Alexandre Flament
2455f1d06a
Merge pull request #1308 from allendema/add-yep-com-json
[enh] Add yep.com via json_engine
2022-06-12 11:09:04 +02:00
Markus Heiser
916f5f8b90
Merge pull request #1306 from return42/fix-1303
[fix] move locale code from webapp.py to locales.py and fix #1303
2022-06-12 10:56:59 +02:00
Markus Heiser
ad964562ce [fix] move locale code from webapp.py to locales.py and fix #1303
To improve modularization this patch:

- moves *locale* related implementation from the webapp.py application to the
  locale.py module.

- The initialization of the locales is now done in the application (webapp) and
  is no longer done while importing searx.locales.

In the searx.locales module a new dictionary named `LOCALE_BEST_MATCH` has been
added.  In this dictionary we can map languages without a translation to
languages we have a translation for.

To fix #1303 zh-HK has been mapped to zh-Hant-TW (we do not need additional
translations of traditional Chinese)

Closes: https://github.com/searxng/searxng/issues/1303
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2022-06-12 10:52:26 +02:00
Alexandre Flament
a029ebff01
Merge pull request #1311 from dalf/wikidata-optmization
Wikidata optmizations
2022-06-11 18:36:26 +02:00
Emilien Devos
0d4c066119 notify the user that use_mobile_ui parameter exist 2022-06-11 17:20:56 +02:00
Allen
fd9a13a3e5 [enh] Initial no paging support for Yep.com
Upstream example query:
https://yep.com/web?q=test

https://yep.com/about
2022-06-11 14:17:44 +02:00
Alexandre Flament
cd2dd5dd55 Wikidata engine: ignore dummy entities
Close #641
2022-06-11 11:09:21 +02:00
Alexandre Flament
d068b67a71 Wikidata engine: minor change of the SPARQL request
The engine can be slow especially when the query won't return any answer.
See https://www.mediawiki.org/wiki/Wikidata_Query_Service/User_Manual/MWAPI#Find_articles_in_Wikipedia_speaking_about_cheese_and_see_which_Wikibase_items_they_correspond_to

Related to #1290
2022-06-11 10:50:11 +02:00
Markus Heiser
59ef9b9287
Merge pull request #1302 from searxng/translations_update
Update translations
2022-06-10 09:38:02 +02:00
Markus Heiser
9faa57d6e0
Merge pull request #1301 from searxng/dependabot/pip/master/myst-parser-0.18.0
Bump myst-parser from 0.17.2 to 0.18.0
2022-06-10 09:34:37 +02:00
Markus Heiser
2db92b8672
Merge pull request #1300 from searxng/dependabot/pip/master/pylint-2.14.1
Bump pylint from 2.14.0 to 2.14.1
2022-06-10 09:29:44 +02:00
searxng-bot
1e82dedcf3 [translations] update from Weblate
25debdad - 2022-06-07 - Markus Heiser <markus.heiser@darmarit.de>
4ea83323 - 2022-06-08 - Markus Heiser <markus.heiser@darmarit.de>
034a61d2 - 2022-06-07 - Markus Heiser <markus.heiser@darmarit.de>
12598dee - 2022-06-08 - Markus Heiser <markus.heiser@darmarit.de>
9ebd1a60 - 2022-06-06 - Markus Heiser <markus.heiser@darmarit.de>
2022-06-10 07:19:19 +00:00
dependabot[bot]
a5cbff4361
Bump myst-parser from 0.17.2 to 0.18.0
Bumps [myst-parser](https://github.com/executablebooks/MyST-Parser) from 0.17.2 to 0.18.0.
- [Release notes](https://github.com/executablebooks/MyST-Parser/releases)
- [Changelog](https://github.com/executablebooks/MyST-Parser/blob/master/CHANGELOG.md)
- [Commits](https://github.com/executablebooks/MyST-Parser/compare/v0.17.2...v0.18.0)

---
updated-dependencies:
- dependency-name: myst-parser
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-10 07:04:12 +00:00
dependabot[bot]
61b157f2f3
Bump pylint from 2.14.0 to 2.14.1
Bumps [pylint](https://github.com/PyCQA/pylint) from 2.14.0 to 2.14.1.
- [Release notes](https://github.com/PyCQA/pylint/releases)
- [Commits](https://github.com/PyCQA/pylint/compare/v2.14.0...v2.14.1)

---
updated-dependencies:
- dependency-name: pylint
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-10 07:04:08 +00:00
Markus Heiser
ac15c70566
Merge pull request #1298 from mbledkowski/patch-1
Fixed typo in settings.yml
2022-06-09 17:22:22 +02:00
Maciej Błędkowski
98c4156f12
Fixed typo in settings.yml 2022-06-09 17:08:14 +02:00