Alexandre Flament
5c4afdd737
[fix] filtron.sh: fix filtron proxy error
...
morty & filtron upgrade golang from v1.13.5 to v1.17.2 (#stable go[1])
Closes : #443
[1] https://golang.org/dl/#stable
2021-10-29 14:09:58 +00:00
Alexandre Flament
ebf63f4caa
Merge pull request #449 from dalf/simple-margins
...
Simple theme: minor adjustements
2021-10-28 21:08:15 +02:00
Alexandre Flament
861f046090
[build] /static
2021-10-28 20:54:17 +02:00
Alexandre Flament
e2d312f6ae
[mod] simple theme: adjust margins
...
* index page: margin top is 24% of the view port.
avoid to scroll a small screen,
center the content in the middle of the screen
* link to preferences at the same height same the input fields
* increase the category tab heighs
* increase the margin bottom of the query field
* in the results, change the h3 margin top and bottom to 0.4rem (6px)
* move the back to top button slightly on the right when the results are only images
2021-10-28 20:53:52 +02:00
Alexandre Flament
8985d3e6ef
Merge pull request #376 from dalf/simple-image-detail
...
Simple theme: image detail
2021-10-28 08:50:55 +02:00
Alexandre Flament
a93bd19101
[build] /static
2021-10-28 08:37:38 +02:00
Alexandre Flament
fd374d6322
[enh] simple theme: image detail
...
When an image is selected, the detail with the full size image is displayed
on the right side of the screen (or full screen on tablet and phone).
When Javascript is disabled, the thumbnail is a linked to the full size image,
as it was before.
When the image proxy is enabled, the full size image is also proxied,
in consequence this commit increases the bandwidth usage of instances.
The detail can be closed by the close button or the Esc key.
It is possible to go to the next and previous images using the j and k keys
or the button on the top right of the screen.
2021-10-28 08:28:21 +02:00
Alexandre Flament
2624034cd6
[mod] settings_defaults.py: default values for the brand section
2021-10-27 06:31:16 +00:00
Alexandre Flament
18299abc6f
Merge pull request #437 from dalf/fix-433
...
[mod] microsoft academic: increase timeout to 6 seconds
2021-10-26 12:54:13 +02:00
Alexandre Flament
e51c20489d
Merge pull request #436 from dalf/fix-432
...
[mod] update_languages: min_engines_per_country=7
2021-10-26 12:42:30 +02:00
Alexandre Flament
64b29ad838
[mod] microsoft academic: increase timeout to 6 seconds
...
also avoid a crash when there is no result
close #433
2021-10-26 12:26:43 +02:00
Alexandre Flament
828088fa5a
[mod] update_languages: min_engines_per_country=7
...
a (language,country) tuple is included if 7 engines have it, was 10 before.
close #432
2021-10-26 12:13:23 +02:00
Alexandre Flament
9fe1ee4ed9
Merge pull request #423 from dalf/available-languages
...
[enh] reduce the available language list
2021-10-26 10:31:11 +02:00
Alexandre Flament
60db344cc0
[enh] reduce the available language list
...
close #406
settings['search']['languages'] contains the languages codes and 'all'
2021-10-26 10:27:05 +02:00
Alexandre Flament
dfdf71bf08
Merge pull request #428 from searxng/dependabot/pip/master/splinter-0.16.0
...
Bump splinter from 0.15.0 to 0.16.0
2021-10-22 11:01:44 +02:00
Alexandre Flament
cec9ded2e6
Merge pull request #383 from dalf/searxng-docker
...
SearXNG: docker
2021-10-21 12:03:10 +02:00
Alexandre Flament
cab98ed6c7
[build] /static
2021-10-21 08:26:42 +00:00
Alexandre Flament
ff5ded2baf
[mod] upgrade grunt-contrib-concat: ~2.0.0
2021-10-21 08:26:42 +00:00
Alexandre Flament
8116cfb006
Merge pull request #419 from MrPaulBlack/media-queries-names
...
[simple theme] less vars for different device sizes
2021-10-20 17:38:46 +02:00
Alexandre Flament
ee5e9f9e1d
Merge pull request #380 from dalf/fix-339
...
[fix] interface language zh_CN and zh_TW don't work
2021-10-12 21:50:05 +02:00
Alexandre Flament
b86aacdad6
Merge pull request #341 from dalf/verify_tor_on_start
...
[enh] verify that Tor proxy works every time searx starts
2021-10-12 21:44:18 +02:00
Alexandre Flament
4759f65b69
[fix] interface language zh_CN and zh_TW don't work
...
before this commit, when the user picks "Chinese, China" or "Chinese, Taiwan",
the locale fallbacks to English.
This commit fixes this issue (the translations branch must be updated)
close #339
2021-10-12 21:06:20 +02:00
Alexandre Flament
a1d1aec6e2
[mod] locale: use hyphen everywhere except for Babel
2021-10-12 21:06:20 +02:00
Alexandre Flament
988910d451
[fix] templates: lang attribute of html uses hyphen
...
https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes#attr-lang
https://www.w3.org/TR/REC-xml/#sec-lang-tag
2021-10-12 21:06:20 +02:00
Alexandre Flament
f9c6393502
[enh] verify that Tor proxy works every time searx starts
...
based on @MarcAbonce commit on searx
2021-10-12 21:01:02 +02:00
Alexandre Flament
9e03823b98
SearXNG: docker
2021-10-12 20:23:57 +02:00
Alexandre Flament
3fad483b7a
SearXNG: partial update: reference /etc/searxng/settings.yml
2021-10-11 12:28:55 +00:00
Alexandre Flament
861925c50f
SearXNG: load /etc/searxng/settings.yml
...
fall back to /etc/searx/setting.yml
2021-10-11 12:28:55 +00:00
Alexandre Flament
7f72844ca6
Merge pull request #355 from MrPaulBlack/simple-theme-css-vars
...
[simple theme] dark mode and some css cleanup
2021-10-10 09:41:46 +02:00
Alexandre Flament
f5755ba6b9
Merge pull request #319 from dalf/mod-plugins
...
plugins: refactor initialization
2021-10-10 09:16:00 +02:00
Alexandre Flament
878d5d657c
Merge pull request #400 from searxng/github-python-3.10
...
integration.yml : python 3.10
2021-10-08 10:08:14 +02:00
Alexandre Flament
7bd9cd51d0
integration.yml : python 3.10
2021-10-08 10:03:12 +02:00
Alexandre Flament
77fba5d51d
Merge pull request #395 from searxng/dependabot/npm_and_yarn/searx/static/themes/oscar/master/grunt-contrib-jshint-3.1.1
...
Bump grunt-contrib-jshint from 3.0.0 to 3.1.1 in /searx/static/themes/oscar
2021-10-08 09:52:35 +02:00
Alexandre Flament
6b643e961b
Merge pull request #397 from searxng/dependabot/npm_and_yarn/searx/static/themes/simple/master/grunt-contrib-jshint-3.1.1
...
Bump grunt-contrib-jshint from 3.0.0 to 3.1.1 in /searx/static/themes/simple
2021-10-08 09:45:40 +02:00
Alexandre Flament
30b16b7084
Merge pull request #394 from searxng/dependabot/pip/master/flask-2.0.2
...
Bump flask from 2.0.1 to 2.0.2
2021-10-08 09:41:27 +02:00
Alexandre Flament
4e2276f50d
Merge pull request #393 from searxng/dependabot/pip/master/jinja2-3.0.2
...
Bump jinja2 from 3.0.1 to 3.0.2
2021-10-08 09:36:44 +02:00
Alexandre Flament
7996a30512
Merge pull request #399 from searxng/translations_update
...
Update translations
2021-10-08 09:32:24 +02:00
Alexandre Flament
7246d62770
Merge pull request #386 from return42/fix-384
...
[mod] set 'engine.supported_languages' from the origin python module
2021-10-07 09:50:43 +02:00
Alexandre Flament
2b4fef7118
plugins: refactor initialization
...
add a new function "init" call when the app starts.
The function can:
* return False to disable the plugin.
* modify the Flask app.
2021-10-06 19:18:19 +02:00
Alexandre Flament
adeb084cf4
Merge pull request #390 from return42/fix-312
...
[fix] don't mix loaded modules with imported modules (sys.modules)
2021-10-06 19:07:26 +02:00
Alexandre Flament
8a897b86f1
[mod] engines - IMDB: add thumbnails
2021-10-05 09:10:02 +02:00
Alexandre Flament
09a6872e5f
Merge pull request #381 from return42/fix-translate-commit
...
[fix] commit message of 'make weblate.push.translations'
2021-10-04 18:58:31 +02:00
Alexandre Flament
f4dd5b226d
[fix] make weblate.push.translations
...
Even when there are changes, the function exit without pushing them.
2021-10-03 21:11:32 +02:00
Alexandre Flament
47eb836c65
Merge pull request #375 from dalf/searxng_extra
...
SearXNG: searx_extra
2021-10-03 19:09:07 +02:00
Alexandre Flament
715c445e9b
[build] /static
2021-10-03 19:04:18 +02:00
Alexandre Flament
9da9dbcbb4
Merge pull request #373 from dalf/searxng-environ
...
SearXNG: environment variables
2021-10-03 18:48:23 +02:00
Alexandre Flament
1bb82a6b54
SearXNG: searxng_extra
2021-10-02 17:30:39 +02:00
Alexandre Flament
253b850376
SearXNG: SEARXNG_SETTINGS_PATH
2021-10-02 17:18:05 +02:00
Alexandre Flament
9e266ecad3
SearXNG: SEARX_BIND_ADDRESS
2021-10-02 16:58:09 +02:00
Alexandre Flament
6443ed7562
SearXNG: SEARXNG_PORT
2021-10-02 16:56:24 +02:00
Alexandre Flament
430babca25
SearXNG: environment variables
2021-10-02 16:54:11 +02:00
Alexandre Flament
e39a03cc61
Merge pull request #367 from dalf/searxng-github
...
SearXNG: .github, searxng-docker
2021-10-02 07:57:49 +02:00
Alexandre Flament
8bd7358c06
Merge pull request #371 from dalf/searxng-theme-simple
...
Searxng theme simple
2021-10-01 18:37:12 +02:00
Alexandre Flament
a53a4d5012
[build] /static
2021-10-01 18:09:37 +02:00
Alexandre Flament
74b0830362
SearXNG: simple theme
2021-10-01 18:06:55 +02:00
Alexandre Flament
499c7b3cce
SearXNG: .github, searxng-docker
2021-10-01 09:48:53 +02:00
Alexandre Flament
458575c221
Merge pull request #361 from dalf/searxng-theme-oscar
...
SearXNG theme oscar
2021-10-01 09:15:46 +02:00
Alexandre Flament
1dfac73a64
[build] /static
2021-09-30 19:01:50 +02:00
Alexandre Flament
df06dddc04
SearXNG: oscar theme
2021-09-30 18:50:21 +02:00
Alexandre Flament
a582cf3d82
Merge pull request #353 from return42/stackexchange
...
[mod] engines - add Stack Exchange API v2.3
2021-09-29 10:38:50 +02:00
Alexandre Flament
7124fd1704
Merge pull request #354 from dalf/mod-searx-network-stream
...
[mod] /image_proxy: fix memory leak
2021-09-29 10:31:43 +02:00
Alexandre Flament
a9c3c88cc0
[mod] searx.network.stream returns a tuple (response, stream)
2021-09-28 19:33:29 +02:00
Alexandre Flament
c23aa5760c
Merge pull request #343 from dalf/fix-checker-memory-issue
...
[fix] checker: fix memory usage
2021-09-28 19:32:59 +02:00
Alexandre Flament
29893cf816
[fix] searx.network.stream: fix memory leak
2021-09-28 19:28:12 +02:00
Alexandre Flament
2eab89b4ca
[fix] checker: fix memory usage
...
* download images using the "image_proxy" network (HTTP/1 instead of HTTP/2)
* don't cache data: URL (reduce memory usage)
* after each test: purge image URL cache then call garbage collector
* download only the first 64kb of images
2021-09-28 15:26:02 +02:00
Alexandre Flament
ca67f1555a
Merge pull request #350 from MrPaulBlack/fix-engine-description-position
...
[fix] engine description position in simple theme
2021-09-28 09:22:21 +02:00
Alexandre Flament
a1a53859c2
Merge pull request #348 from return42/no-arial
...
[theme] simple: do not prefer arial over user's sans-serif font
2021-09-27 18:30:17 +02:00
Alexandre Flament
a1c55caa71
Merge pull request #345 from MrPaulBlack/simple-theme-changes
...
simple theme css refactor
2021-09-27 16:19:51 +02:00
Alexandre Flament
cc3c54f4cd
simple theme: update
2021-09-27 12:26:54 +02:00
Alexandre Flament
b046322c7b
Merge pull request #333 from dalf/enh-engine-descriptions
...
RFC: /preferences: display engine descriptions
2021-09-25 11:29:25 +02:00
Alexandre Flament
0c3314b338
Merge pull request #344 from dalf/osm-lang-all-fix
...
[fix] openstreetmap engine: map "all" language to English
2021-09-25 11:29:13 +02:00
Alexandre Flament
ab569c1e12
[fix] openstreetmap engine: optmizer SPARQL query
...
add
hint:Query hint:optimizer "None".
to the SPARQL query to keep the response time small.
It tells the optimizer to follow the path from ?item to the different property values
instead of the other way around.
See https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/query_optimization#Property_paths
2021-09-25 11:16:22 +02:00
Alexandre Flament
39876d9f14
[build] /static
2021-09-24 20:38:56 +02:00
Alexandre Flament
2f1384f198
[enh] themes: display the engine descriptions
2021-09-24 20:38:05 +02:00
Alexandre Flament
bfd24d1226
[mod] add /engine_descriptions.json endpoint
...
returns engine descriptions (JSON):
* key: engine name
* value: description in the user locale, use English description as a fallback
2021-09-24 20:20:30 +02:00
Alexandre Flament
f8d5fe0f11
[fix] fix searx_extra/update/update_engine_descriptions.py
...
write ouput in searx/data/engine_descriptions.json instead of stdout
use the wikipedia engine to fetch the wikipedia descriptions
(for example use tl.wikipedia.org for the Filipino language)
2021-09-24 20:20:30 +02:00
Alexandre Flament
8961131497
[fix] fix the about section of some engines
2021-09-24 20:20:30 +02:00
Alexandre Flament
636215b1f2
Merge pull request #340 from MrPaulBlack/simple-preferences-refactor
...
Simple theme preferences refactor
2021-09-24 20:19:03 +02:00
Alexandre Flament
6f11b61cd5
[fix] openstreetmap engine: map "all" language to English
2021-09-24 20:12:18 +02:00
Alexandre Flament
e63410d2f4
Merge pull request #337 from MrPaulBlack/fix-searxjs-null-exception
...
[fix] fix searx.js null pointer because of missing category div
2021-09-22 22:09:54 +02:00
Alexandre Flament
12c90a1b47
Merge pull request #336 from MrPaulBlack/simple-search-form
...
[theme] remove categories, language and time range from index.html
2021-09-22 18:20:33 +02:00
Alexandre Flament
b04b7e6fb5
Merge pull request #330 from dalf/fix-323
...
Oscar theme: fix search input field on Safari
2021-09-20 18:47:05 +02:00
Alexandre Flament
e8e81c7432
[build] /static
2021-09-19 22:01:19 +02:00
Alexandre Flament
2cc6301c98
[fix] Oscar theme: fix input field on Safari
...
close #323
2021-09-19 22:00:59 +02:00
Alexandre Flament
d95c46d646
Merge pull request #329 from searxng/translations_update
...
Update translations
2021-09-17 15:53:45 +02:00
Alexandre Flament
07a2633aee
Merge pull request #327 from dalf/pyenv.activate
...
[mod] utils/lib.sh: add pyenv.activate
2021-09-17 15:48:51 +02:00
Alexandre Flament
e5e322e8ed
[mod] utils/lib.sh: add pyenv.activate
...
* initialize virtualenv (pyenv.install)
* activate virtualenv
close #310
2021-09-17 14:15:35 +02:00
Alexandre Flament
dc74df3a55
Merge pull request #261 from dalf/upgrade_httpx
...
[upd] upgrade httpx 0.19.0
2021-09-17 11:48:37 +02:00
Alexandre Flament
0d9959e649
Merge pull request #325 from searxng/dependabot/pip/master/pylint-2.11.1
...
Bump pylint from 2.10.2 to 2.11.1
2021-09-17 11:36:51 +02:00
Alexandre Flament
41f6359d06
[fix] error recorder: avoid RuntimeError on some rare occasion
...
httpx.RequestError (subclass of httpx.HTTPError) has a property request.
This property raises a RuntimeError if the attributes _request is None.
To avoid a cascade of errors, this commit reads directly the _request attribute.
2021-09-17 10:06:24 +02:00
Alexandre Flament
b10403d3a1
[mod] searx.network: remove redundant code
...
searx.client.new_client: the proxies parameter is a dictonnary,
and the protocol (key of the dictionnary) is already normalized
(see usage of searx.network.network.PROXY_PATTERN_MAPPING)
2021-09-17 10:06:24 +02:00
Alexandre Flament
8e73438cbe
[upd] upgrade httpx 0.19.0
...
adjust searx.network module to the new internal API
see https://github.com/encode/httpx/pull/1522
2021-09-17 10:06:22 +02:00
Alexandre Flament
602cbc2c99
Merge pull request #297 from dalf/engine-logger-enh
...
debug mode: more readable logging
2021-09-14 07:06:28 +02:00
Alexandre Flament
823a2fc792
Merge pull request #317 from return42/fix-manage-usage
...
[fix] manage help(): commands babel.* has been renamed to weblate.*
2021-09-13 09:09:48 +02:00
Alexandre Flament
f8793fbda0
[fix] logger per engine: make .logger is always initialized
...
the openstreetmap engine imports code from the wikidata engine.
before this commit, specific code make sure to copy the logger variable to the wikidata engine.
with this commit searx.engines.load_engine makes sure the .logger is initialized.
The implementation scans sys.modules for module name starting with searx.engines.
2021-09-13 08:47:59 +02:00
Alexandre Flament
0f43b39eac
[enh] add hostname_replace plugin
...
* backport of https://github.com/searx/searx/pull/2724
* allow to remove result if the replacement is the boolean value false
2021-09-11 13:23:06 +02:00
Alexandre Flament
2de95af923
Merge pull request #313 from dalf/fix-pr-257
...
[fix] PR #257 : use the image_proxy network instead of the default network
2021-09-11 11:22:29 +02:00
Alexandre Flament
2b53d718e4
[fix] PR #257 : use the image_proxy network instead of the default network
2021-09-11 11:15:51 +02:00
Alexandre Flament
6abc37efc7
[mod] production mode: make sure to set the log level to WARNING
...
set:
* the root logger level to WARNING
* the werkzeug logger level to WARNING (useful when there is no uwsgi)
2021-09-11 10:13:16 +02:00
Alexandre Flament
0e42db9da1
[mod] xpath engine: remove logging of the requested URL
2021-09-11 10:13:16 +02:00