searxng/searx
Martin Fischer 3f77ff29a3 [fix] plugin JS/CSS dependencies depend on themes
SearXNG supports plugins. Plugins can declare JavaScript and CSS
dependencies. Currently three plugins declare such dependencies:

* search_on_category_select (on by default)
* vim_hotkeys
* infinite_scroll

If a user enables a plugin its JavaScript and CSS dependencies are
embedded into every page. Sounds simple right?

Ironically in the Simple theme things start to get complicated:
The scripts were originally written for the Oscar theme and thus depend
on jQuery (which isn't loaded in the Simple theme) and look for certain
element identifiers (which aren't present in the Simple theme).  So how
did the plugins actually work with the simple theme?

The simple theme just didn't embed the plugin dependencies (which wasn't
even documented anywhere). Instead the simple theme checked if the paths
contained a certain script path, then set an attribute, which 00_init.js
detected and turned into a boolean, which was then used to enable
vanilla-JS reimplementations of the plugins.

This commit ends this horrible hack (and fixes #769).  The necessary
changes to the Simple theme are introduced in the next commit.
2022-01-18 19:03:15 +01:00
..
answerers [format.python] initial formatting of the python code 2021-12-27 09:26:22 +01:00
data [upd] searx/data/external_bangs.json 2022-01-12 19:37:13 +01:00
engines [fix] googel engine - "some results are invalids: invalid content" 2022-01-18 13:23:35 +01:00
metrics [enh] settings.yml: implement general.enable_metrics 2022-01-05 19:03:04 +01:00
network [typing] add type hints for dictionaries 2022-01-17 11:42:48 +01:00
plugins [fix] plugin JS/CSS dependencies depend on themes 2022-01-18 19:03:15 +01:00
search [typing] add type hints for dictionaries 2022-01-17 11:42:48 +01:00
shared [hotfix] interim fix to get docker-build of CI without issues 2022-01-12 09:31:12 +01:00
static [build] /static 2022-01-17 22:35:22 +01:00
templates [fix] plugin JS/CSS dependencies depend on themes 2022-01-18 19:03:15 +01:00
translations [translations] update from Weblate 2022-01-14 07:17:46 +00:00
__init__.py [format.python] initial formatting of the python code 2021-12-27 09:26:22 +01:00
autocomplete.py [format.python] initial formatting of the python code 2021-12-27 09:26:22 +01:00
exceptions.py [format.python] initial formatting of the python code 2021-12-27 09:26:22 +01:00
external_bang.py [fix] external bangs: don't overwrite Bangs in data trie 2022-01-12 19:37:13 +01:00
external_urls.py [format.python] initial formatting of the python code 2021-12-27 09:26:22 +01:00
flaskfix.py [format.python] initial formatting of the python code 2021-12-27 09:26:22 +01:00
languages.py Update searx.data - update_languages.py 2022-01-01 18:37:35 +01:00
locales.py [format.python] initial formatting of the python code 2021-12-27 09:26:22 +01:00
preferences.py [fix] make BooleanChoices only set cookies that vary from the default 2022-01-13 19:43:49 +01:00
query.py [fix] remove broken ? search operator 2022-01-06 14:10:58 +01:00
results.py [typing] add results.UnresponsiveEngine 2022-01-17 11:42:48 +01:00
settings.yml Merge pull request #686 from return42/lib_redis 2022-01-11 19:55:14 +01:00
settings_defaults.py Merge pull request #686 from return42/lib_redis 2022-01-11 19:55:14 +01:00
settings_loader.py [format.python] initial formatting of the python code 2021-12-27 09:26:22 +01:00
unixthreadname.py [format.python] initial formatting of the python code 2021-12-27 09:26:22 +01:00
utils.py [format.python] initial formatting of the python code 2021-12-27 09:26:22 +01:00
version.py [format.python] initial formatting of the python code 2021-12-27 09:26:22 +01:00
webadapter.py [fix] disabling all engines in a category makes the bang search in general 2022-01-03 20:23:46 +01:00
webapp.py [fix] plugin JS/CSS dependencies depend on themes 2022-01-18 19:03:15 +01:00
webutils.py [enh] change categories_as_tabs from a list to a dict 2022-01-05 11:03:44 +01:00