Commit Graph
100 Commits
Author SHA1 Message Date
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
Alexandre Flament 3c77412d33 [mod] replace pycodestyle by black
"make test.black" checks for the code style
"make format.python" format the python code
2021-12-27 08:58:59 +01:00
Alexandre Flament 9215d4cde7 [fix] python searxng_extra/standalone_searx.py --help
The scripts loads the engine and then parse the arguments.
After that the engines are initialized.

Before this commit, with "--help", the HTTP clients are closed before
the engine initialization threads. When these init threads try to send
an HTTP request, an exception is raised.
2021-12-26 23:09:10 +01:00
Alexandre Flament 811837d109 [remove] searxng_extra/google_search.py
remove deprecated script
2021-12-26 23:08:25 +01:00
Alexandre Flament 7bef2cc8dc Merge pull request #548 from searxng/dependabot/pip/master/selenium-4.1.0
Bump selenium from 3.141.0 to 4.1.0
2021-12-24 10:05:20 +01:00
Alexandre Flament 81abc5f4c2 [fix] ./manage: upgrade geckodriver when GECKODRIVER_VERSION change 2021-12-24 09:14:15 +01:00
Alexandre Flament 6300b0b4b2 Merge pull request #655 from searxng/translations_update
Update translations
2021-12-24 08:42:02 +01:00
Alexandre Flament 19f6f6b157 Merge pull request #650 from dalf/fix-pr-646
[fix] PR #646
2021-12-24 08:02:35 +01:00
Alexandre Flament 34b820a87d [fix] PR #646 2021-12-23 22:08:45 +01:00
Alexandre Flament 69747d5cb3 Merge pull request #646 from return42/drop-py36
[ci] drop Python 3.6
2021-12-23 10:33:23 +01:00
Alexandre Flament 5ca1ec411e Merge pull request #624 from return42/upd-description
[upd] engine_descriptions.json
2021-12-20 23:36:34 +01:00
Alexandre Flament 21c509d59e Merge pull request #626 from searxng/readme-add-irc-link
README.rst: add IRC #searxng
2021-12-20 23:28:49 +01:00
Alexandre Flament e206a61145 README.rst: add IRC #searxng 2021-12-20 23:26:02 +01:00
Alexandre Flament b5d4cac7e1 Merge pull request #615 from return42/pylint-reddit
[pylint] Reddit engine
2021-12-19 11:32:32 +01:00
Alexandre Flament 2713ac6c0b Merge pull request #612 from dalf/revert-pr-483
[mod] Dockerfile: use binary from pypi
2021-12-18 15:16:40 +01:00
Alexandre Flament 4bd78a7ef0 [mod] Dockerfile: use binary from pypi
lxml doesn't raise any exception
2021-12-18 14:07:29 +01:00
Alexandre Flament 4da1e0026c Merge pull request #609 from return42/fix-bing-news
[fix] engine bing-news: replace the http:// by https://
2021-12-18 00:01:40 +01:00
Alexandre Flament f6b1264b5f Merge pull request #584 from return42/drop-css-vendor
[mod] simple-theme: remove vendor CSS
2021-12-17 12:14:19 +01:00
Alexandre Flament 5c710e1285 Merge pull request #608 from return42/fix-translation-commit
[fix] weblate: separate commit description from commit body
2021-12-17 11:59:38 +01:00
Alexandre Flament 56e6d19b48 update_firefox_version.py: update user agent signature
The user agent from Windows is
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:95.0) Gecko/20100101 Firefox/95.0

See https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/User-Agent/Firefox#windows
2021-12-16 23:10:39 +01:00
Alexandre Flament 6bb6f7ffc1 Merge pull request #602 from return42/fix-600
[fix] move engines gpodder and AZlyrics into category music
2021-12-16 18:18:16 +01:00
Alexandre Flament 9e636afe9c Merge pull request #604 from return42/disable-mvw
[fix] engine: MediathekViewWeb (mvw) disable by default
2021-12-16 18:18:01 +01:00
Alexandre Flament da1f970eb5 Merge pull request #601 from searxng/add-matrix-contact
README.rst: add contact information
2021-12-14 22:21:20 +01:00
Alexandre Flament 4dc7d955be README.rst: add contact information 2021-12-14 22:20:46 +01:00
Alexandre Flament 5c7167cd5a Merge pull request #599 from searxng/dependabot/pip/lxml-4.6.5
Bump lxml from 4.6.4 to 4.6.5
2021-12-13 21:48:19 +01:00
Alexandre Flament 3d378e4d08 Merge pull request #597 from searxng/docker-upgrade-baseimage
Dockerfile: use alpine 3.15
2021-12-12 11:05:26 +01:00
Alexandre Flament ff4958075e Merge pull request #598 from searxng/translations_update
Update translations
2021-12-11 19:16:00 +01:00
Alexandre Flament f9c9284f48 Dockerfile: use alpine 3.15
Use Python 3.9.7-r4 (previously 3.9.5-r2)
2021-12-11 17:06:23 +01:00
Alexandre Flament 2a262df0bb Merge pull request #582 from return42/fix-autocomplete-csp
[fix] simple theme: make autocomplete-js CSP compliant
2021-12-08 20:28:35 +01:00
Alexandre Flament 24c7d6300e Merge pull request #588 from dalf/fix-imdb
[fix] imdb: don't crash when there is no result
2021-12-06 23:28:35 +01:00
Alexandre Flament 1a6207574e [fix] gigablast engine
fetch extra params after 3000 seconds
2021-12-06 22:55:15 +01:00
Alexandre Flament fbc2a6ab4b [del] remove yggtorrent
yggtorrent is behind cloudflare now
close #580
2021-12-06 21:59:51 +01:00
Alexandre Flament 037cb7dd3d [fix] imdb: don't crash when there is no result 2021-12-06 21:49:18 +01:00
Alexandre Flament e4a2d354aa Merge pull request #581 from return42/fix-source-map
[fix] simple theme: make LESS sources available on non build hosts
2021-12-05 11:01:40 +01:00
Alexandre Flament 33e2599b82 Merge pull request #574 from return42/fix-lib_static
[mod] make static.build.commit more robust
2021-12-04 10:06:57 +01:00
Alexandre Flament b0774c7e37 Merge pull request #578 from searxng/translations_update
Update translations
2021-12-03 09:02:46 +01:00
Alexandre Flament 58a6738dec Merge pull request #575 from return42/fix-source-map
[fix] simple theme: make JS sources available on non build hosts
2021-12-03 08:25:11 +01:00
Alexandre Flament ae49b5224c Merge pull request #566 from dalf/simple-theme-smaller-build
[mod] simple theme: smaller build
2021-12-01 20:30:58 +01:00
Alexandre Flament eb7ccb7e79 README.rst: add translation status
Related to https://github.com/searxng/searxng/issues/540
2021-12-01 00:08:44 +01:00
Alexandre Flament 28b22a0f98 [mod] simple theme: smaller build
remove:
* searx/static/themes/simple/js/searxng.head.js
* searx/static/themes/simple/js/searxng.js
* searx/static/themes/simple/css/searxng-rtl.css
* searx/static/themes/simple/css/searxng.css

These files are never used.
About the js files: the .map files references the sources instead of the concated version.
2021-11-30 23:04:37 +01:00
Alexandre Flament 632ae7d175 Merge pull request #562 from return42/fix-img-alt
[simple] ImageLayout.watch: `img_load_error.svg` if img load fails
2021-11-30 20:21:03 +01:00
Alexandre Flament 3700094f3a Merge pull request #557 from return42/fix-autocomplete
[fix] route /autocompleter: escape `<` and `>` in the simple theme
2021-11-29 16:58:15 +01:00
Alexandre Flament 59f4c792b4 [mod] simple theme: use sharp instead of convert to create .png from .svg
define a custom grunt task, since grunt-sharp is too old (it can't be installed).
in gruntfile.js, the image tasks are moved at the end the build chain.

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-11-28 20:05:37 +01:00
Alexandre Flament 0d41f26a20 [fix] searx.results: fix pylint issue "useless-with-lock"
Replace "with threading.Lock():" by "with self._lock"
2021-11-26 08:46:43 +01:00
Alexandre Flament da1d502cf7 Merge pull request #550 from searxng/translations_update
Update translations
2021-11-26 08:26:51 +01:00
Alexandre Flament 328473befd Merge pull request #547 from return42/fix-442
[fix] google & google video engines
2021-11-26 08:25:38 +01:00
Alexandre Flament 42c1a938f0 Merge pull request #485 from dalf/pref_query_in_title
[mod] new preference: query_in_title
2021-11-24 13:10:27 +01:00
Alexandre Flament c4caa52989 fix PR #535
Use the "empty_element" CSS class.
2021-11-23 18:59:50 +01:00
Alexandre Flament e612b81f41 [fix] simple theme: fix modal dialog 2021-11-23 12:35:37 +01:00
Alexandre Flament 02cccdf876 Merge pull request #533 from return42/fix-532
[fix] google images: @href index 0 not found
2021-11-21 21:26:20 +01:00
Alexandre Flament d7eb373371 [fix] npm engine: don't ignore the first result
"from" parameter start at 0
2021-11-20 08:22:48 +01:00
Alexandre Flament bc0cf9e83e Merge pull request #521 from dalf/simple-theme-style-pref
Simple theme: allow the user to choose auto, light, dark style
2021-11-19 17:14:35 +01:00
Alexandre Flament ec5a82fccd [enh] simple theme: add "simple-style" preferences 2021-11-19 16:45:50 +01:00
Alexandre Flament f6bfc8f461 Merge pull request #509 from mrpaulblack/library-of-genesis-category
[engines] move library of genesis from general to files category
2021-11-19 12:45:56 +01:00
Alexandre Flament 55737a219b Merge pull request #518 from dalf/fix-simple-image-detail
[fix] simple theme: fix image detail layout on mobile
2021-11-19 11:19:44 +01:00
Alexandre Flament ef2556770b [build] /static 2021-11-19 10:45:12 +01:00
Alexandre Flament 48d2dcbb20 [fix] simple theme: adjust image detail height
when on the top of the page, the image is just below the search fields.
this commit slightly aligh the top of the image detail with the bottom
of the search fields.
2021-11-19 10:43:01 +01:00
Alexandre Flament 0400b8ca5d [fix] simple theme: fix layout image detail on mobile
the width of #main_results #results.image-detail-open.only_template_images
was set to 59.25rem. On mobile, the images overflowed on right side of
the viewport, which creates a horizontal scroll.

This commit set the value to min(98%, 59.25rem) whatever the max-width is.
2021-11-19 10:32:42 +01:00
Alexandre Flament dfbbc3b471 [fix] simple theme: /preferences: add tokens field
include changes to display input text field in the preferences
2021-11-13 17:12:28 +01:00
Alexandre Flament cf15652e4b Merge pull request #501 from return42/fix-simple
[fix] delete trailing whitespace
2021-11-13 16:04:51 +01:00
Alexandre Flament 3c3599c9e6 [fix] startpage autocompletion 2021-11-13 13:26:47 +01:00
Alexandre Flament 7a9dda51d2 Merge pull request #488 from MrPaulBlack/category-icons
[simple theme] add icons to category and drop webfont
2021-11-13 12:19:08 +01:00
Alexandre Flament e030b543fb Merge pull request #495 from searxng/dependabot/pip/master/jinja2-3.0.3
Bump jinja2 from 3.0.2 to 3.0.3
2021-11-12 09:22:37 +01:00
Alexandre Flament 93b831c11d Merge pull request #492 from searxng/dependabot/pip/master/twine-3.6.0
Bump twine from 3.5.0 to 3.6.0
2021-11-12 09:19:48 +01:00
Alexandre Flament 80fb77476f [mod] new preference: query_in_title
* disable by default
* settings.yml: ui.query_in_title
* in /preferences: privacy tab

when enabled, the result page's title contains the user query.

previously:
* oscar theme: the query was always included
* simple theme: the query was included with the GET method
2021-11-08 21:40:53 +01:00
Alexandre Flament 90acb342d3 Merge pull request #486 from dalf/simple-mobile-pref-access
Simple theme: mobile layout: allow access to the preferences
2021-11-06 22:27:07 +01:00
Alexandre Flament 67ab4d4165 [build] /static 2021-11-06 21:14:12 +01:00
Alexandre Flament ddc2346a06 [enh] simple theme: mobile layout: allow access to the preferences
when there is no query, reduce the width of the query field,
to display the preference button on the right.
2021-11-06 21:13:41 +01:00
Alexandre Flament 1ccf296a55 Merge pull request #483 from dalf/fix-docker-lxml
[fix] Dockerfile image
2021-11-06 06:20:15 +01:00
Alexandre Flament dc39f9c960 [fix] Dockerfile image
ignore existing wheels, rebuild all of them
fix an issue the lxml wheel for the muslc
2021-11-05 20:05:26 +01:00
Alexandre Flament 082d55e6c5 Merge pull request #481 from dalf/simple-fix-hotkeys
Simple themes: fixes in keyboard.js
2021-11-05 15:29:48 +01:00
Alexandre Flament 558e0c3241 [build] /static 2021-11-05 12:45:15 +01:00
Alexandre Flament c00e54d61b [fix] simple theme: image detail: click on the URL to the HTML page works
Before this commit, the default click event on an image result is prevented,
this include clicks inside the detail.

This commit makes sure the click happends outside the detail to prevent the default event.
2021-11-05 12:42:44 +01:00
Alexandre Flament 4d051c43f3 [fix] simple theme: various about the hotkeys help
* dark mode: #555 border (same as infoboxes and other borders)
* remove a call to console.log
* center the dialog without using the style attribute.
2021-11-05 12:42:44 +01:00
Alexandre Flament d1c09c84e2 [fix] simple theme: disable hotkeys when they are not enabled in the preferences 2021-11-05 12:42:44 +01:00
Alexandre Flament ba342db55e Merge pull request #480 from dalf/searxng-simple-theme
SearXNG brand: remove searx from searx*.js file names.
2021-11-05 12:42:30 +01:00
Alexandre Flament 57421c4b20 Merge pull request #479 from dalf/simple-fix-open-new-tab
[fix] simple theme: fix open in a new tab preference
2021-11-05 12:39:34 +01:00
Alexandre Flament 5b53d5cbd5 Merge pull request #478 from searxng/translations_update
Update translations
2021-11-05 10:39:24 +01:00
Alexandre Flament 6ab78f1a6a [build] /static 2021-11-05 09:52:50 +01:00
Alexandre Flament 680d70865f [mod] SearXNG: remove "searx" from the searx*.js file names. 2021-11-05 09:51:27 +01:00
Alexandre Flament 3167d645e8 [fix] simple theme: fix open in a new tab preference 2021-11-05 09:36:19 +01:00
Alexandre Flament 580a55fe86 Merge pull request #462 from dalf/simple-dark-mode-fixes
[RFC] Simple theme: fix & improve the dark mode
2021-11-03 09:55:55 +01:00
Alexandre Flament 8d6c119593 [build] /static 2021-11-03 09:26:20 +01:00
Alexandre Flament 7179af32f2 [mod] simple theme: dark mode: various fixes 2021-11-03 09:25:33 +01:00
Alexandre Flament 2dcd9a68d6 [mod] simple theme: adjust button colors in dark version.
buttons:
* previous & next in the result page
* save, restore, & back in the preferences
* back to top

<select> input in Chrom* browsers:
* fix the white text with a white background issue
2021-11-03 09:25:33 +01:00
Alexandre Flament e4025cd164 Merge pull request #460 from dalf/simple-minor-fixes
Simple theme: various fixes
2021-10-31 11:22:12 +01:00
Alexandre Flament 6782830a4a [build] /static 2021-10-30 22:34:05 +02:00
Alexandre Flament 540042d0ca [mod] simple theme: infobox: center the image 2021-10-30 22:33:36 +02:00
Alexandre Flament 60d595ea52 [mod] simple theme: use :root instead of html to define CSS variables
This allows to use the CSS variables in inline svg.
2021-10-30 22:33:36 +02:00
Alexandre Flament d0a3164514 [fix] simple theme: /preferences: dark theme version for select widgets
It is not possible to use CSS variable in a SVG when this is in a background.
This commit adds two .svg files, less converts them into data URL.
The two files are indentical except the fill color.
2021-10-30 22:33:34 +02:00
Alexandre Flament 67b0b68b40 [fix] simple theme: /preferences: dark theme version for the response time bar charts 2021-10-30 18:03:37 +02:00
Alexandre Flament 9f0b47f525 [fix] simple theme: cookie table doesn't overflow the expected width 2021-10-30 18:03:37 +02:00
Alexandre Flament 46fde2e98e Merge pull request #454 from searxng/translations_update
Update translations
2021-10-30 18:00:42 +02:00
Alexandre Flament af75469bfa Merge pull request #453 from searxng/dependabot/pip/master/aiounittest-1.4.1
Bump aiounittest from 1.4.0 to 1.4.1
2021-10-30 18:00:27 +02:00
Alexandre Flament ec69543ed9 Merge pull request #451 from dalf/searxng-logo2
Simple theme: SearXNG logo
2021-10-30 18:00:09 +02:00
Alexandre Flament 7bfaf42e4b [build] /static 2021-10-29 20:24:30 +02:00
Alexandre Flament 0650e73b12 [mod] simple theme: SearXNG logo 2021-10-29 20:24:04 +02:00
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