summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-12-01README.rst: add translation statusAlexandre Flament
Related to https://github.com/searxng/searxng/issues/540
2021-11-30Merge pull request #562 from return42/fix-img-altAlexandre Flament
[simple] ImageLayout.watch: `img_load_error.svg` if img load fails
2021-11-30[build] /staticMarkus Heiser
2021-11-30[mod] simple theme, JS: introduce window.searxng.theme namespaceMarkus Heiser
In window.searxng.theme the theme data can be passed through to JS implementations. Initial the window.searxng.theme namespace starts with a value for `img_load_error`:: // image that is displayed if load of <img src='...'> failed img_load_error: 'img/img_load_error.svg' The searx/static/themes/__common__/js/image_layout.js is patched to uses the value, if the theme defines a value for img_load_error in this namespace. Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-11-29[simple] ImageLayout.watch: `img_load_error.svg` if img load failsMarkus Heiser
Show default image `img/img_load_error.svg` when image can't be loaded. ---- Some words about class ImageLayout: The https://github.com/searxng/searxng/blob/master/searx/static/themes/simple/js/searxng.js is build by a grunt task .. https://github.com/searxng/searxng/blob/d0e21a01b4e14df905f25445a3f6bcbec481671c/searx/static/themes/simple/gruntfile.js#L91-L93 The `/__common__/js/*.js` concats also https://github.com/searxng/searxng/blob/master/searx/static/themes/__common__/js/image_layout.js where a modified copy of the of the "Google-image-layout" (`ImageLayout`) is implemented [1][2][3]. [1] https://ptgamr.github.io/2014-09-12-google-image-layout/ [2] https://ptgamr.github.io/google-image-layout/src/google-image-layout.js [3] https://github.com/ptgamr/google-image-layout/tree/master ---- Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-11-29Merge pull request #556 from return42/fix-tooltipMarkus Heiser
[simple theme] fix tooltip and improve background of an transparent image in the !images results
2021-11-29[build] /staticMarkus Heiser
2021-11-29[fix] simple theme: set img background color to wallpaper's colorMarkus Heiser
The *background color* of an transparent image is the color of the color of wallpaper on which all images are shown on. Set variable `--color-result-image-background` and `--color-base-background` to the same value. Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-11-29[fix] simple theme: img tile, shows duplicate information on screenMarkus Heiser
Remove global title attribute from img tag[1][2] . In the image result, the title is already shown from span class title:: <span class="title">{{ result.title|striptags }}</span> See commit: 8fbffb1409b [fix] simple-theme templates: polish HTML <img> elements [1] https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img [2] https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes#attr-title Reported-by: @dalf https://github.com/searxng/searxng/pull/545#issuecomment-980531215 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-11-29Merge pull request #558 from return42/svg-faviconMarkus Heiser
[enh] add SVG favicon href="favicon.svg" type="image/svg+xml"
2021-11-29[build] /staticMarkus Heiser
2021-11-29[enh] add SVG favicon href="favicon.svg" type="image/svg+xml"Markus Heiser
Add link:: <link rel="icon" href="favicon.png" sizes="any"> <link rel="icon" href="favicon.svg" type="image/svg+xml"> Modern browsers should request:: INFO werkzeug : 127.0.0.1 - - [28/Nov/2021 17:03:07] "GET /static/themes/simple/img/favicon.svg HTTP/1.1" 200 - [1] https://github.com/audreyfeldroy/favicon-cheat-sheet#svg-file [2] https://dev.to/masakudamatsu/favicon-nightmare-how-to-maintain-sanity-3al7 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-11-29Merge pull request #561 from return42/fix-READMEMarkus Heiser
[brand] README: add SearXNG logo
2021-11-29[build] /staticMarkus Heiser
2021-11-29[mod] themes/simple/img/searxng.svg -> src/brand/searxng.svgMarkus Heiser
* move `searx/static/themes/simple/img/searxng.svg` to `src/brand/searxng.svg` * README.rst can use it without a reference to a theme. * the simple theme can create `searx/static/themes/simple/img/searxng.png` using the svg2png task Suggested-by: @dalf https://github.com/searxng/searxng/pull/561#issuecomment-981747902 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-11-29Merge pull request #557 from return42/fix-autocompleteAlexandre Flament
[fix] route /autocompleter: escape `<` and `>` in the simple theme
2021-11-29Merge pull request #560 from return42/fix-page-titleMarkus Heiser
[fix] query_in_title: add missing space in title
2021-11-29[brand] README: add SearXNG logoMarkus Heiser
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-11-29[fix] query_in_title: add missing space in titleMarkus Heiser
Suggested-by: @unixfox https://github.com/searxng/searxng/pull/485#issuecomment-981406978 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-11-29[fix] route /autocompleter: escape `<` and `>` in the simple themeMarkus Heiser
This is a follow up of 9a3253fc escaping `<` and `>` in all themes. This patch fix issue in oscar theme Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-11-28Merge pull request #541 from dalf/simple-theme-svg2pngMarkus Heiser
Simple theme svg2png
2021-11-28[build] /staticMarkus Heiser
2021-11-28[mod] simple theme: use sharp instead of convert to create .png from .svgAlexandre Flament
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[mod] gruntfile: do some polish (no functional change)Markus Heiser
- remove unused 'path' constant - fix indentation - Put all image tasks at the end, where it is easy to list which image is processed. Suggested -by: @dalf https://github.com/searxng/searxng/pull/541#discussion_r756247157 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-11-27Merge pull request #554 from return42/fix-google-videoMarkus Heiser
[fix] google-videos engine: ignore news articles
2021-11-27Merge pull request #555 from return42/fix-autocompleteMarkus Heiser
[fix] route /autocompleter: escape '<' and '>' in the response
2021-11-27[fix] route /autocompleter: escape '<' and '>' in the responseMarkus Heiser
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-11-27Merge pull request #549 from searxng/dependabot/pip/master/pylint-2.12.1Markus Heiser
Bump pylint from 2.11.1 to 2.12.1
2021-11-26Bump pylint from 2.11.1 to 2.12.1dependabot[bot]
Bumps [pylint](https://github.com/PyCQA/pylint) from 2.11.1 to 2.12.1. - [Release notes](https://github.com/PyCQA/pylint/releases) - [Changelog](https://github.com/PyCQA/pylint/blob/main/ChangeLog) - [Commits](https://github.com/PyCQA/pylint/compare/v2.11.1...v2.12.1) --- updated-dependencies: - dependency-name: pylint dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
2021-11-27Merge pull request #553 from return42/fix-oscarMarkus Heiser
[fix] oscar theme: use SearXNG logo and wordmark
2021-11-27Merge pull request #551 from dalf/fix-results-lockMarkus Heiser
[fix] searx.results: fix pylint issue "useless-with-lock"
2021-11-27Merge pull request #545 from return42/fix-523Markus Heiser
[fix] simple-theme templates: polish HTML <img> elements
2021-11-26[build] /staticmrpaulblack
2021-11-26[oscar theme] center search on index and use logo with ponthimrpaulblack
2021-11-26[fix] google-videos engine: ignore news articlesMarkus Heiser
In the video search, google also sometimes includes news. E.g. in the DE language when you search for `!gov paris`, google adds an article from a german newspaper (FAZ), I assume these are sponsored link (not tagged advertisement?) Those links do not have an image / this patch ignores *video links* wqithout an image ID. Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-11-26[fix] oscar theme: use SearXNG logo and wordmarkMarkus Heiser
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-11-26Merge pull request #552 from return42/fix-searx.shMarkus Heiser
[fix] searx.sh update: replace git pull by a hard reset
2021-11-26[fix] searx.sh update: replace git pull by a hard resetMarkus Heiser
If the fetched branch has been rebased a 'git pull' will fails. To get fetched branch in the working tree, a git reset is needed. Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-11-26[fix] searx.results: fix pylint issue "useless-with-lock"Alexandre Flament
Replace "with threading.Lock():" by "with self._lock"
2021-11-26Merge pull request #550 from searxng/translations_updateAlexandre Flament
Update translations
2021-11-26Merge pull request #547 from return42/fix-442Alexandre Flament
[fix] google & google video engines
2021-11-26[translations] updatesearxng-bot
647aee3b - 2021-11-25 - Markus Heiser <markus.heiser@darmarit.de>
2021-11-26[fix] google video engine - rework of the HTML parserMarkus Heiser
The google video response has been changed slightly, a rework of the parser was needed. Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-11-25[fix] google engine - suggestionMarkus Heiser
BTW: google no longer offers *spelling suggestions* Closes: https://github.com/searxng/searxng/issues/442 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-11-25[fix] simple-theme templates: polish HTML <img> elementsMarkus Heiser
- <img> [1] element does not have an end tag, no need for a leading `/>` - add global attribute title[2] to result_templates/images.html (result-images-source) - in jinja macro 'macro result_header' remove duplicate of class="image" - in jinja macro 'macro result_header' remove alt attribute (fix [3]):: alt="{{ result.title|striptags }}" the result.title is already shown in:: <h3>{{ result_link(result.url, result.title|safe) }}</h3> [1] https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img [2] https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes#attr-title [3] https://github.com/searxng/searxng/issues/523 Closes: https://github.com/searxng/searxng/issues/523 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-11-24Merge pull request #543 from return42/fix-485Markus Heiser
[fix] templates: remove unneeded escape \' of single quotation mark
2021-11-24[fix] templates: remove unneeded escape \' of single quotation markMarkus Heiser
Strings like:: 'Query in the page\'s title' are hard to read / remove escape sequence by using double quotation marks for strings :: "Query in the page's title" BTW: remove a leading dot in the simple theme [1]. [1] https://github.com/searxng/searxng/pull/485/files/80fb77476fad4b229418c530f3ffda67f357a15a#r756112716 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-11-24Merge pull request #485 from dalf/pref_query_in_titleAlexandre Flament
[mod] new preference: query_in_title
2021-11-23Merge pull request #537 from return42/moz-warningsMarkus Heiser
[simple theme] remove '-moz-border-radius' property
2021-11-23Merge pull request #539 from searxng/fix-pr-535Markus Heiser
fix PR #535