Alexandre Flament
2134703b4b
[enh] settings.yml: implement general.enable_metrics
...
* allow not to record metrics (response time, etc...)
* this commit doesn't change the UI. If the metrics are disabled
/stats and /stats/errors will return empty response.
in /preferences, the columns response time and reliability will be empty.
2022-01-05 19:03:04 +01:00
Martin Fischer
a7199bc085
Merge pull request #694 from return42/fix-c7f27404
...
[fix] debug console (pdb) in a session started by `make run`
2022-01-05 18:40:46 +01:00
Markus Heiser
c9cfa6181b
[fix] debug console (pdb) in a session started by `make run`
...
Commit c7f27404
moves the `python -m searx.webapp` process to the background. A
background job can't open a simple python-debugger (pdb) console.
This patch moves all processes to the background except the searx.webapp.
Insert a break point somewhere in the webapp application::
import pdb
pdb.set_trace()
And start a debug session by::
make run
and test you break point.
To test that the entire 'make run' stops in the case of an error in the
themes.live [1] background process try:
make LIVE_THEME=typo-theme-name run
[1] https://github.com/searxng/searxng/pull/664#discussion_r776419585
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2022-01-05 10:09:17 +01:00
Markus Heiser
00d3a7477c
Merge pull request #664 from return42/themes.live
...
[mod] manage: add themes.live command (rebuild on modification)
2022-01-04 19:44:51 +01:00
Martin Fischer
8eb3167fba
Merge pull request #687 from dalf/fix-685
...
[fix] disabling all engines in a category makes the bang search in general
2022-01-03 20:42:05 +01:00
Alexandre Flament
41ae5aea2b
[fix] disabling all engines in a category makes the bang search in general
...
with this commit, there is no result
2022-01-03 20:23:46 +01:00
Alexandre Flament
8e99c11c95
Merge pull request #680 from JamesClonk/master
...
fix minor typo
2022-01-03 18:25:54 +01:00
Markus Heiser
a3332cd550
Merge pull request #684 from return42/fix-makefile
...
[fix] Makefile: mixed tab & space indentation
2022-01-03 13:57:59 +01:00
Markus Heiser
a585f7c66f
[fix] Makefile: mixed tab & space indentation
...
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2022-01-03 13:51:35 +01:00
Markus Heiser
b630c5d7bc
Merge pull request #666 from return42/mod-doc
...
[docs] move searxng_extra/ stuff to the developer section.
2022-01-03 10:25:14 +01:00
Markus Heiser
de819bb1f5
[docs] move searxng_extra/ stuff to the developer section.
...
Stuff in folder searxng_extra/ is not suitable for normal users and should only
be used by developers.
The script searxng_extra/standalone_searx.py must not give the impression that
it improves privacy. [1]
[1] https://github.com/searxng/searxng/pull/651#issuecomment-1001389726
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2022-01-03 10:20:54 +01:00
Fabio Berchtold
6a67beebe1
fix minor typo
2022-01-02 23:13:36 +01:00
Alexandre Flament
458b7fb72d
Merge pull request #610 from return42/img-load-error
...
[fix] simple theme: hide the image if img load fails
2022-01-02 22:34:15 +01:00
Alexandre Flament
d83aa2b0d2
Merge pull request #613 from return42/pylint-bing-images
...
[pylint] Bing (Images) engine
2022-01-02 22:00:55 +01:00
Markus Heiser
c2e4b95e8d
Merge pull request #672 from searxng/update_data_update_languages.py
...
Update searx.data - update_languages.py
2022-01-01 18:44:53 +01:00
Markus Heiser
3cdf2d6570
Update searx.data - update_languages.py
...
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2022-01-01 18:37:35 +01:00
Markus Heiser
8191e1a253
[fix] update_languages.py: generate code that passes CI
...
File searx/languages.py, created by update_languages.py has to pass quality
check from CI::
make format.python
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2022-01-01 18:32:21 +01:00
Markus Heiser
21d7c8b367
Merge pull request #676 from return42/fix-bing-lang
...
Fix issues on running update_languages.py
2022-01-01 18:12:47 +01:00
Markus Heiser
8a07559ab5
[fix] update_languages.py: no excption on unknown locale & language
...
Fix exception handling of unknown locales and languages::
ERROR: ca_ES_valencia --> [Errno 2] No such file or directory: 'local/py3/lib/python3.8/site-packages/babel/locale-data/ca_ES_valencia.dat'
ERROR: languages['fil-PH'] --> {'name': None, 'english_name': None}
ERROR: languages['nb-NO'] --> {'name': None, 'english_name': None}
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2022-01-01 17:31:38 +01:00
Markus Heiser
61ce0c2244
[fix] bing engines: fetch_supported_languages
...
The Request to and the Response from https://www.bing.com/account/general has
been changed.
[1] https://github.com/searxng/searxng/pull/672#discussion_r777104919
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2022-01-01 17:31:38 +01:00
Alexandre Flament
6b49f32d3e
Merge pull request #670 from searxng/update_data_update_firefox_version.py
...
Update searx.data - update_firefox_version.py
2022-01-01 12:16:50 +01:00
Markus Heiser
3dcba2f67c
Merge pull request #671 from searxng/update_data_update_ahmia_blacklist.py
...
Update searx.data - update_ahmia_blacklist.py
2022-01-01 12:08:26 +01:00
Markus Heiser
877293c470
Merge pull request #673 from searxng/update_data_update_currencies.py
...
Update searx.data - update_currencies.py
2022-01-01 12:08:02 +01:00
Markus Heiser
9f175295dd
Merge pull request #674 from searxng/update_data_update_wikidata_units.py
...
Update searx.data - update_wikidata_units.py
2022-01-01 12:07:27 +01:00
dalf
127da09fc9
Update searx.data - update_wikidata_units.py
2022-01-01 06:25:06 +00:00
dalf
291483af53
Update searx.data - update_currencies.py
2022-01-01 06:25:02 +00:00
dalf
a0016250ec
Update searx.data - update_ahmia_blacklist.py
2022-01-01 06:24:59 +00:00
dalf
184242d36b
Update searx.data - update_firefox_version.py
2022-01-01 06:24:49 +00:00
Markus Heiser
021b4a0a02
Merge pull request #667 from searxng/dependabot/pip/master/pygments-2.11.0
...
Bump pygments from 2.10.0 to 2.11.0
2021-12-31 09:29:29 +01:00
Markus Heiser
efbcaaab3b
[build] /static
2021-12-31 09:14:38 +01:00
Markus Heiser
391e4b57c9
make pygments.less
...
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-12-31 09:12:22 +01:00
Markus Heiser
cd6b64156b
Merge pull request #668 from searxng/translations_update
...
Update translations
2021-12-31 09:02:49 +01:00
searxng-bot
db4885f7d4
[translations] update from Weblate
...
055a6080
- 2021-12-28 - Markus Heiser <markus.heiser@darmarit.de>
d028dfd7
- 2021-12-26 - Gert-dev <gert+github@disroot.org>
d2f3b998
- 2021-12-24 - Markus Heiser <markus.heiser@darmarit.de>
1b882f56
- 2021-12-29 - VaiTon <eyadlorenzo@gmail.com>
f8e524a3
- 2021-12-27 - Markus Heiser <markus.heiser@darmarit.de>
70eafa9c
- 2021-12-26 - Frederik From <frederikfrom@pm.me>
7eb20cec
- 2021-12-28 - Markus Heiser <markus.heiser@darmarit.de>
3cb754a4
- 2021-12-25 - Markus Heiser <markus.heiser@darmarit.de>
2021-12-31 07:17:50 +00:00
dependabot[bot]
94289b1e02
Bump pygments from 2.10.0 to 2.11.0
...
Bumps [pygments](https://github.com/pygments/pygments ) from 2.10.0 to 2.11.0.
- [Release notes](https://github.com/pygments/pygments/releases )
- [Changelog](https://github.com/pygments/pygments/blob/master/CHANGES )
- [Commits](https://github.com/pygments/pygments/compare/2.10.0...2.11.0 )
---
updated-dependencies:
- dependency-name: pygments
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-12-31 07:03:22 +00:00
Markus Heiser
c7f2740414
[mod] live build of a theme: LIVE_THEME=simple make run
...
Environment variable to get live builds while modifying CSS & JS of a theme::
LIVE_THEME=simple make run
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-12-29 21:53:12 +01:00
Markus Heiser
1706b130a4
[fix] remove leftover from 59f4c792
...
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-12-29 21:53:12 +01:00
Markus Heiser
edfd069d16
[mod] manage: add themes.live command (rebuild on modification)
...
To have a live build while editing the HTML client of a theme. The first
argument of the command is the theme name:
./manage themes.live simple
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-12-29 21:53:12 +01:00
Markus Heiser
f087d01e24
[build] /static
2021-12-29 14:33:54 +01:00
Markus Heiser
f75199b1ec
[fix] simple theme: hide the image if img load fails
...
Add event listener to query selector::
'#urls img.image'
From the user point of view, I think it is better to hide the image:
img_load_error.svg is helplful in the image category because it still allows to
select the image. IMO, in the news category, the fact there is a missing image
won't help to choose the links. From a developer point of view, the place holder
is signal that may be the engine needs to be updated (at least give a look). The
browser console should show the same information too, but it requires some
additional steps. [1]
[1] https://github.com/searxng/searxng/pull/610#issuecomment-997640132
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-12-29 14:30:16 +01:00
Markus Heiser
7966fd3bbd
Merge pull request #663 from dalf/mod_secret_key
...
changes about the secret_key
2021-12-29 13:33:27 +01:00
Markus Heiser
5cbbdc305f
Merge pull request #614 from return42/pylint-bing-video
...
[pylint] Bing (Videos) engine
2021-12-29 09:30:10 +01:00
Markus Heiser
8f3a7feb47
[mod] implement is_hmac_of() in webutils / close to new_hmac()
...
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>, Alexandre Flament
2021-12-28 23:04:06 +01:00
Markus Heiser
dc4f1f705d
[pylint] Bing (Images) engine
...
Fix remarks from pylint and remove obsolete try/except block
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-12-28 14:43:39 +01:00
Markus Heiser
6d7a38a912
[pylint] Bing (Videos) engine
...
Fix remarks from pylint and remove obsolete try/except block
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-12-28 14:33:05 +01:00
Alexandre Flament
7d4834ac4d
[mod] webutils.py: remove dead code
...
secret_key can't be bytes (see settings_default.py)
2021-12-28 10:14:38 +01:00
Alexandre Flament
d784870209
[fix] use hmac.compare_digest instead of ==
...
see https://docs.python.org/3/library/hmac.html#hmac.HMAC.hexdigest
2021-12-28 08:36:31 +01:00
Alexandre Flament
c6922ae7c5
Merge pull request #619 from dalf/apply-black
...
Apply black
2021-12-27 19:11:01 +01:00
Markus Heiser
d84226bf63
[fix] issues reported by pylint
...
Fix pylint issues from commit (3d96a983
)
[format.python] initial formatting of the python code
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-12-27 10:16:20 +01:00
Markus Heiser
3d96a9839a
[format.python] initial formatting of the python code
...
This patch was generated by black [1]::
make format.python
[1] https://github.com/psf/black
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-12-27 09:26:22 +01:00
Markus Heiser
fcdc2c2cd2
[format.python] disable py code formatting for some hunks of code
...
Disable the python code formatting from python-black, where the readability of
code suffers by formatting.
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-12-27 09:16:03 +01:00