summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-07-03Merge pull request #191 from ↵Markus Heiser
searxng/dependabot/pip/master/transifex-client-0.14.3 Bump transifex-client from 0.14.2 to 0.14.3
2021-07-03[fix] add missing transifex configuration (./tx/config)Markus Heiser
BTW: update the documentation about transifex usage Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-07-03Merge pull request #194 from return42/fix-miscMarkus Heiser
[fix] some minor issues in Makefile and shell scripts
2021-07-03[mod] add Makfile target lxc.clean which deletes ./lxc-envMarkus Heiser
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-07-03[fix] pacman --noprogressbar in shell scriptsMarkus Heiser
From pacman's man page: --noprogressbar Do not show a progress bar when downloading files. This can be useful for scripts that call pacman and capture the output. Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-07-03[fix] utils/lib.sh: in a pipe, do not print ASCII escape codeMarkus Heiser
In 2a12637 an ASCII escape code was added, such escape codes should not be written to pipes (when the output is not a terminal). Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-07-03Merge pull request #178 from return42/whaleslide.comMarkus Heiser
[enh] Add WhaleSlide engine (JSON)
2021-07-03Bump transifex-client from 0.14.2 to 0.14.3dependabot[bot]
Bumps [transifex-client](https://github.com/transifex/transifex-client) from 0.14.2 to 0.14.3. - [Release notes](https://github.com/transifex/transifex-client/releases) - [Commits](https://github.com/transifex/transifex-client/compare/0.14.2...0.14.3) --- updated-dependencies: - dependency-name: transifex-client dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
2021-07-03Merge pull request #192 from searxng/dependabot/pip/master/splinter-0.15.0Markus Heiser
Bump splinter from 0.14.0 to 0.15.0
2021-07-03Bump splinter from 0.14.0 to 0.15.0dependabot[bot]
Bumps [splinter](https://github.com/cobrateam/splinter) from 0.14.0 to 0.15.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.14.0...0.15.0) --- updated-dependencies: - dependency-name: splinter dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
2021-07-03Merge pull request #190 from searxng/dependabot/pip/master/pylint-2.9.3Markus Heiser
Bump pylint from 2.8.3 to 2.9.3
2021-07-03Bump pylint from 2.8.3 to 2.9.3dependabot[bot]
Bumps [pylint](https://github.com/PyCQA/pylint) from 2.8.3 to 2.9.3. - [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.8.3...v2.9.3) --- updated-dependencies: - dependency-name: pylint dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
2021-07-03[pylint] prepare for pylint v2.9.3 / fix some (new) pylint issuesMarkus Heiser
Upgrade from pylint v2.8.3 to 2.9.3 raise some new issues:: searx/search/checker/__main__.py:37:26: R1732: Consider using 'with' for resource-allocating operations (consider-using-with) searx/search/checker/__main__.py:38:26: R1732: Consider using 'with' for resource-allocating operations (consider-using-with) searx/search/processors/__init__.py:20:0: R0402: Use 'from searx import engines' instead (consider-using-from-import) searx/preferences.py:182:19: C0207: Use data.split('-', maxsplit=1)[0] instead (use-maxsplit-arg) searx/preferences.py:506:15: R1733: Unnecessary dictionary index lookup, use 'user_setting' instead (unnecessary-dict-index-lookup) searx/webapp.py:436:0: C0206: Consider iterating with .items() (consider-using-dict-items) searx/webapp.py:950:4: C0206: Consider iterating with .items() (consider-using-dict-items) Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-07-01Merge pull request #185 from searxng/update_data_update_external_bangs.pyAlexandre Flament
Update searx.data - update_external_bangs.py
2021-07-01Merge pull request #186 from searxng/update_data_update_wikidata_units.pyAlexandre Flament
Update searx.data - update_wikidata_units.py
2021-07-01Merge pull request #187 from searxng/update_data_update_ahmia_blacklist.pyAlexandre Flament
Update searx.data - update_ahmia_blacklist.py
2021-07-01Merge pull request #188 from searxng/update_data_update_firefox_version.pyAlexandre Flament
Update searx.data - update_firefox_version.py
2021-07-01Update searx.data - update_ahmia_blacklist.pydalf
2021-07-01Update searx.data - update_firefox_version.pydalf
2021-07-01Update searx.data - update_wikidata_units.pydalf
2021-07-01Update searx.data - update_external_bangs.pydalf
2021-06-28Merge pull request #174 from searxng/static_scriptAlexandre Flament
[mod] add make targets to manage the build files in the /searx/static directory
2021-06-28[build] /staticAlexandre Flament
2021-06-28[mod] themes: remove banner generated by gruntMarkus Heiser
The banner is useless and responsible for unwanted diff. Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-06-28[docs] describe the usage of the static.build.* scriptsMarkus Heiser
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-06-28Merge pull request #179 from return42/braveAlexandre Flament
[enh] add Brave-Search engine (XPath)
2021-06-28Merge pull request #180 from return42/unicode-urlAlexandre Flament
[fix] decoding of saved preferences in the URL
2021-06-27Merge pull request #182 from return42/fix-.config.shMarkus Heiser
[fix] .config.sh: typo SEARX_INTERNAL_URL --> SEARX_INTERNAL_HTTP
2021-06-27[fix] .config.sh: typo SEARX_INTERNAL_URL --> SEARX_INTERNAL_HTTPMarkus Heiser
There is a typo in .config.sh that causes confusion more and more often. SEARX_INTERNAL_HTTP should be the correct name of the environment variable. First mentioned in [1] and also discussed in [2]. [1] https://github.com/searx/searx/pull/2273 [2] https://github.com/searx/searx/discussions/2863 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-06-27Merge pull request #181 from return42/fix-libMarkus Heiser
[fix] utils/lib.sh: prefix_stdout show cursor (ANSI escape \e[?25h)
2021-06-27[fix] utils/lib.sh: prefix_stdout show cursor (ANSI escape \e[?25h)Markus Heiser
Some piped commands hide the cursor, show cursory when the stream ends. Most often this is a bug of the command which piped. The command should not hide the cursor when it writes to a pipe. I have seen this bug with the package manager (pacman) from ArchLinux. Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-06-26[fix] decoding of saved preferences in the URLMarkus Heiser
To compress saved preferences in the URL was introduced in 5f758b2d3 and slightly fixed in 8f4401462. But the main fail was not fixed; The decompress function returns a binary string and this binary should first be decoded to a string before it is passed to urllib.parse_qs. BTW: revert the hot-fix from 5973491 Related-to: https://github.com/searxng/searxng/issues/166 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-06-26[enh] add Brave-Search engine (XPath)Markus Heiser
Add https://search.brave.com which was requested by @kaonashi696 [1]. This patch was suggested by @eagle-dogtooth [2]. [1] https://github.com/searx/searx/issues/2857 [2] https://github.com/searx/searx/issues/2857#issuecomment-867199241 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-06-26[enh] Add WhaleSlide engine (JSON)Allen
Add WhaleSlide engine [1] / merged from [2] [1] https://whaleslide.com [2] https://github.com/searx/searx/pull/2861
2021-06-26[mod] move functions from utils/manage_static.sh to ./manage scriptMarkus Heiser
The functions: - static.build.commit - static.build.commit.drop - static.build.restore are imported into the ./manage script. To avoid name collisions some variables and fucntions has been renamed by adding the prefix *static_*. Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-06-26[mod] utils/manage_static.sh: remove git_log_current_branchMarkus Heiser
Marginal simplification of the procedure to get only the last local commit which is not in remotes. Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-06-26[mod] utils/manage_static.sh: simplify git restore actionsMarkus Heiser
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-06-26[mod] utils/manage_static.sh: add script to shellcheckMarkus Heiser
- add script to shellcheck, - fix error messages from shellcheck and - moved global variables to local variables (lower case) No functional change! Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-06-26[mod] add make targets to manage the build files in the /searx/static directoryAlexandre Flament
The idea is to avoid conflict when there are differents branches with changes are made on the static files. A solution is to ask the administrators to build the files from the sources, but it requires to install the npm dependencies. So the solution in this commit keep the sources and the build files in the same git repository. In one branch, the modification of the source (*.less, *.js) are commited without the built files. The built files are commited in a uniq commit, with a commit message "Static build" In case of merge or rebase, this commit can be dropped. New make targets: * static.build.commit.drop: drop the last "Static build". The command checks that there are only build files in the commit. * static.build.commit : call "make static.build.commit.drop" call "make themes.all" commit the files * static.git.restore.staged: git restore --staged <build files> * static.git.restore: git restore <build files> Related to https://github.com/searxng/searxng/issues/137
2021-06-26Merge pull request #177 from unixfox/patch-1Alexandre Flament
Set use_mobile_ui to false for Google engine
2021-06-26Set use_mobile_ui to false for Google engineÉmilien Devos
2021-06-25README.rst: remove searx logo.Alexandre Flament
2021-06-25Merge pull request #173 from return42/fix-lxc-iptablesMarkus Heiser
[mod] utils/lxc.sh: detect conflict of docker & LXC in the iptables
2021-06-25Merge pull request #168 from return42/stylelintAlexandre Flament
Lint the less files of the simple theme
2021-06-24[emacs] .dir-locals.el: add setup for js-modeMarkus Heiser
- move jshint option from gruntfile to .jshintrc - remove trailing-whitespace from gruntfile and - add jshint esversion: 6 - .dir-locals.el add locals for js-mode to use JSHint from the simple theme Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-06-24[stylelint] disable role 'no-descending-specificity'Markus Heiser
This patch disables role 'no-descending-specificity'. IMO it is better to have this rule active (see below [1]), but it is hard to rewrite the less files to pass this rule, so for the first I chose to disable this rule. --- Source order is important in CSS, and when two selectors have the same specificity, the one that occurs last will take priority. However, the situation is different when one of the selectors has a higher specificity. In that case, source order does not matter: the selector with higher specificity will win out even if it comes first. The clashes of these two mechanisms for prioritization, source order and specificity, can cause some confusion when reading stylesheets. If a selector with higher specificity comes before the selector it overrides, we have to think harder to understand it, because it violates the source order expectation. Stylesheets are most legible when overriding selectors always come after the selectors they override. That way both mechanisms, source order and specificity, work together nicely. This rule enforces that practice as best it can, reporting fewer errors than it should. It cannot catch every actual overriding selector, but it can catch certain common mistakes. [1] https://stylelint.io/user-guide/rules/list/no-descending-specificity/ Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-06-24[stylelint] simple theme: fix some errors reported by stylelintMarkus Heiser
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-06-24[fix] simple theme: use stylint to fix common lint errorsMarkus Heiser
This fix was autogenerated by:: npx stylelint -f unix --fix 'searx/static/themes/simple/src/less/**/*.less' Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-06-24[mod] add stylelint process to target themes.simpleMarkus Heiser
Before build, do lint the LESS files using stylelint [1]. The configuration 'stylelint-config-standard' [2] is added to the root of the simple theme [3]. [1] https://stylelint.io/ [2] https://github.com/stylelint/stylelint-config-standard [3] https://stylelint.io/user-guide/configure Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-06-23Merge pull request #172 from return42/fix-searx.shAlexandre Flament
[fix] utils/searx.sh: signature of YAML settings has been changed