SearXNG is a free internet metasearch engine which aggregates results from various search services and databases. Users are neither tracked nor profiled.
Python bingbravedegoogleduckduckgogooglemetasearchprivacypythonqwantsearchsearch-enginesearxsearxngstartpageyahoo
[mod] rename "default" theme to "legacy"
Adam Tauberbee7b497a300
diff --git a/manage.sh b/manage.shindex 75ba32024..11f2df04d 100755--- a/manage.sh+++ b/manage.sh@@ -53,8 +53,8 @@ build_style() {styles() {echo '[!] Building styles'- build_style themes/default/less/style.less themes/default/css/style.css- build_style themes/default/less/style-rtl.less themes/default/css/style-rtl.css+ build_style themes/legacy/less/style.less themes/legacy/css/style.css+ build_style themes/legacy/less/style-rtl.less themes/legacy/css/style-rtl.cssbuild_style themes/courgette/less/style.less themes/courgette/css/style.cssbuild_style themes/courgette/less/style-rtl.less themes/courgette/css/style-rtl.cssbuild_style less/bootstrap/bootstrap.less css/bootstrap.min.cssdiff --git a/searx/settings_robot.yml b/searx/settings_robot.ymlindex 7c7c4eec2..1ae084155 100644--- a/searx/settings_robot.yml+++ b/searx/settings_robot.yml@@ -15,7 +15,7 @@ server:ui:themes_path : ""- default_theme : default+ default_theme : legacydefault_locale : ""outgoing:diff --git a/searx/static/themes/default/css/style-rtl.css b/searx/static/themes/legacy/css/style-rtl.csssimilarity index 100%rename from searx/static/themes/default/css/style-rtl.cssrename to searx/static/themes/legacy/css/style-rtl.cssdiff --git a/searx/static/themes/default/css/style.css b/searx/static/themes/legacy/css/style.csssimilarity index 100%rename from searx/static/themes/default/css/style.cssrename to searx/static/themes/legacy/css/style.cssdiff --git a/searx/static/themes/default/img/favicon.png b/searx/static/themes/legacy/img/favicon.pngsimilarity index 100%rename from searx/static/themes/default/img/favicon.pngrename to searx/static/themes/legacy/img/favicon.pngdiff --git a/searx/static/themes/default/img/github_ribbon.png b/searx/static/themes/legacy/img/github_ribbon.pngsimilarity index 100%rename from searx/static/themes/default/img/github_ribbon.pngrename to searx/static/themes/legacy/img/github_ribbon.pngdiff --git a/searx/static/themes/default/img/icons/icon_500px.ico b/searx/static/themes/legacy/img/icons/icon_500px.icosimilarity index 100%rename from searx/static/themes/default/img/icons/icon_500px.icorename to searx/static/themes/legacy/img/icons/icon_500px.icodiff --git a/searx/static/themes/default/img/icons/icon_bing.ico b/searx/static/themes/legacy/img/icons/icon_bing.icosimilarity index 100%rename from searx/static/themes/default/img/icons/icon_bing.icorename to searx/static/themes/legacy/img/icons/icon_bing.icodiff --git a/searx/static/themes/default/img/icons/icon_dailymotion.ico b/searx/static/themes/legacy/img/icons/icon_dailymotion.icosimilarity index 100%rename from searx/static/themes/default/img/icons/icon_dailymotion.icorename to searx/static/themes/legacy/img/icons/icon_dailymotion.icodiff --git a/searx/static/themes/default/img/icons/icon_deezer.ico b/searx/static/themes/legacy/img/icons/icon_deezer.icosimilarity index 100%rename from searx/static/themes/default/img/icons/icon_deezer.icorename to searx/static/themes/legacy/img/icons/icon_deezer.icodiff --git a/searx/static/themes/default/img/icons/icon_deviantart.ico b/searx/static/themes/legacy/img/icons/icon_deviantart.icosimilarity index 100%rename from searx/static/themes/default/img/icons/icon_deviantart.icorename to searx/static/themes/legacy/img/icons/icon_deviantart.icodiff --git a/searx/static/themes/default/img/icons/icon_digg.ico b/searx/static/themes/legacy/img/icons/icon_digg.icosimilarity index 100%rename from searx/static/themes/default/img/icons/icon_digg.icorename to searx/static/themes/legacy/img/icons/icon_digg.icodiff --git a/searx/static/themes/default/img/icons/icon_duckduckgo.ico b/searx/static/themes/legacy/img/icons/icon_duckduckgo.icosimilarity index 100%rename from searx/static/themes/default/img/icons/icon_duckduckgo.icorename to searx/static/themes/legacy/img/icons/icon_duckduckgo.icodiff --git a/searx/static/themes/default/img/icons/icon_flickr.ico b/searx/static/themes/legacy/img/icons/icon_flickr.icosimilarity index 100%rename from searx/static/themes/default/img/icons/icon_flickr.icorename to searx/static/themes/legacy/img/icons/icon_flickr.icodiff --git a/searx/static/themes/default/img/icons/icon_github.ico b/searx/static/themes/legacy/img/icons/icon_github.icosimilarity index 100%rename from searx/static/themes/default/img/icons/icon_github.icorename to searx/static/themes/legacy/img/icons/icon_github.icodiff --git a/searx/static/themes/default/img/icons/icon_google play apps.ico b/searx/static/themes/legacy/img/icons/icon_google play apps.icosimilarity index 100%rename from searx/static/themes/default/img/icons/icon_google play apps.icorename to searx/static/themes/legacy/img/icons/icon_google play apps.icodiff --git a/searx/static/themes/default/img/icons/icon_google play movies.ico b/searx/static/themes/legacy/img/icons/icon_google play movies.icosimilarity index 100%rename from searx/static/themes/default/img/icons/icon_google play movies.icorename to searx/static/themes/legacy/img/icons/icon_google play movies.icodiff --git a/searx/static/themes/default/img/icons/icon_google play music.ico b/searx/static/themes/legacy/img/icons/icon_google play music.icosimilarity index 100%rename from searx/static/themes/default/img/icons/icon_google play music.icorename to searx/static/themes/legacy/img/icons/icon_google play music.icodiff --git a/searx/static/themes/default/img/icons/icon_google.ico b/searx/static/themes/legacy/img/icons/icon_google.icosimilarity index 100%rename from searx/static/themes/default/img/icons/icon_google.icorename to searx/static/themes/legacy/img/icons/icon_google.icodiff --git a/searx/static/themes/default/img/icons/icon_kickass.ico b/searx/static/themes/legacy/img/icons/icon_kickass.icosimilarity index 100%rename from searx/static/themes/default/img/icons/icon_kickass.icorename to searx/static/themes/legacy/img/icons/icon_kickass.icodiff --git a/searx/static/themes/default/img/icons/icon_openstreetmap.ico b/searx/static/themes/legacy/img/icons/icon_openstreetmap.icosimilarity index 100%rename from searx/static/themes/default/img/icons/icon_openstreetmap.icorename to searx/static/themes/legacy/img/icons/icon_openstreetmap.icodiff --git a/searx/static/themes/default/img/icons/icon_searchcode code.ico b/searx/static/themes/legacy/img/icons/icon_searchcode code.icosimilarity index 100%rename from searx/static/themes/default/img/icons/icon_searchcode code.icorename to searx/static/themes/legacy/img/icons/icon_searchcode code.icodiff --git a/searx/static/themes/default/img/icons/icon_searchcode doc.ico b/searx/static/themes/legacy/img/icons/icon_searchcode doc.icosimilarity index 100%rename from searx/static/themes/default/img/icons/icon_searchcode doc.icorename to searx/static/themes/legacy/img/icons/icon_searchcode doc.icodiff --git a/searx/static/themes/default/img/icons/icon_searchcode.ico b/searx/static/themes/legacy/img/icons/icon_searchcode.icosimilarity index 100%rename from searx/static/themes/default/img/icons/icon_searchcode.icorename to searx/static/themes/legacy/img/icons/icon_searchcode.icodiff --git a/searx/static/themes/default/img/icons/icon_soundcloud.ico b/searx/static/themes/legacy/img/icons/icon_soundcloud.icosimilarity index 100%rename from searx/static/themes/default/img/icons/icon_soundcloud.icorename to searx/static/themes/legacy/img/icons/icon_soundcloud.icodiff --git a/searx/static/themes/default/img/icons/icon_stackoverflow.ico b/searx/static/themes/legacy/img/icons/icon_stackoverflow.icosimilarity index 100%rename from searx/static/themes/default/img/icons/icon_stackoverflow.icorename to searx/static/themes/legacy/img/icons/icon_stackoverflow.icodiff --git a/searx/static/themes/default/img/icons/icon_startpage.ico b/searx/static/themes/legacy/img/icons/icon_startpage.icosimilarity index 100%rename from searx/static/themes/default/img/icons/icon_startpage.icorename to searx/static/themes/legacy/img/icons/icon_startpage.icodiff --git a/searx/static/themes/default/img/icons/icon_subtitleseeker.ico b/searx/static/themes/legacy/img/icons/icon_subtitleseeker.icosimilarity index 100%rename from searx/static/themes/default/img/icons/icon_subtitleseeker.icorename to searx/static/themes/legacy/img/icons/icon_subtitleseeker.icodiff --git a/searx/static/themes/default/img/icons/icon_twitter.ico b/searx/static/themes/legacy/img/icons/icon_twitter.icosimilarity index 100%rename from searx/static/themes/default/img/icons/icon_twitter.icorename to searx/static/themes/legacy/img/icons/icon_twitter.icodiff --git a/searx/static/themes/default/img/icons/icon_vimeo.ico b/searx/static/themes/legacy/img/icons/icon_vimeo.icosimilarity index 100%rename from searx/static/themes/default/img/icons/icon_vimeo.icorename to searx/static/themes/legacy/img/icons/icon_vimeo.icodiff --git a/searx/static/themes/default/img/icons/icon_wikipedia.ico b/searx/static/themes/legacy/img/icons/icon_wikipedia.icosimilarity index 100%rename from searx/static/themes/default/img/icons/icon_wikipedia.icorename to searx/static/themes/legacy/img/icons/icon_wikipedia.icodiff --git a/searx/static/themes/default/img/icons/icon_yahoo.ico b/searx/static/themes/legacy/img/icons/icon_yahoo.icosimilarity index 100%rename from searx/static/themes/default/img/icons/icon_yahoo.icorename to searx/static/themes/legacy/img/icons/icon_yahoo.icodiff --git a/searx/static/themes/default/img/icons/icon_youtube.ico b/searx/static/themes/legacy/img/icons/icon_youtube.icosimilarity index 100%rename from searx/static/themes/default/img/icons/icon_youtube.icorename to searx/static/themes/legacy/img/icons/icon_youtube.icodiff --git a/searx/static/themes/default/img/preference-icon.png b/searx/static/themes/legacy/img/preference-icon.pngsimilarity index 100%rename from searx/static/themes/default/img/preference-icon.pngrename to searx/static/themes/legacy/img/preference-icon.pngdiff --git a/searx/static/themes/default/img/search-icon.png b/searx/static/themes/legacy/img/search-icon.pngsimilarity index 100%rename from searx/static/themes/default/img/search-icon.pngrename to searx/static/themes/legacy/img/search-icon.pngdiff --git a/searx/static/themes/default/img/searx.png b/searx/static/themes/legacy/img/searx.pngsimilarity index 100%rename from searx/static/themes/default/img/searx.pngrename to searx/static/themes/legacy/img/searx.pngdiff --git a/searx/static/themes/default/img/searx_logo.svg b/searx/static/themes/legacy/img/searx_logo.svgsimilarity index 100%rename from searx/static/themes/default/img/searx_logo.svgrename to searx/static/themes/legacy/img/searx_logo.svgdiff --git a/searx/static/themes/default/js/searx.js b/searx/static/themes/legacy/js/searx.jssimilarity index 100%rename from searx/static/themes/default/js/searx.jsrename to searx/static/themes/legacy/js/searx.jsdiff --git a/searx/static/themes/default/less/autocompleter.less b/searx/static/themes/legacy/less/autocompleter.lesssimilarity index 100%rename from searx/static/themes/default/less/autocompleter.lessrename to searx/static/themes/legacy/less/autocompleter.lessdiff --git a/searx/static/themes/default/less/code.less b/searx/static/themes/legacy/less/code.lesssimilarity index 100%rename from searx/static/themes/default/less/code.lessrename to searx/static/themes/legacy/less/code.lessdiff --git a/searx/static/themes/default/less/definitions.less b/searx/static/themes/legacy/less/definitions.lesssimilarity index 100%rename from searx/static/themes/default/less/definitions.lessrename to searx/static/themes/legacy/less/definitions.lessdiff --git a/searx/static/themes/default/less/mixins.less b/searx/static/themes/legacy/less/mixins.lesssimilarity index 100%rename from searx/static/themes/default/less/mixins.lessrename to searx/static/themes/legacy/less/mixins.lessdiff --git a/searx/static/themes/default/less/search.less b/searx/static/themes/legacy/less/search.lesssimilarity index 100%rename from searx/static/themes/default/less/search.lessrename to searx/static/themes/legacy/less/search.lessdiff --git a/searx/static/themes/default/less/style-rtl.less b/searx/static/themes/legacy/less/style-rtl.lesssimilarity index 100%rename from searx/static/themes/default/less/style-rtl.lessrename to searx/static/themes/legacy/less/style-rtl.lessdiff --git a/searx/static/themes/default/less/style.less b/searx/static/themes/legacy/less/style.lesssimilarity index 100%rename from searx/static/themes/default/less/style.lessrename to searx/static/themes/legacy/less/style.lessdiff --git a/searx/templates/default/404.html b/searx/templates/legacy/404.htmlsimilarity index 89%rename from searx/templates/default/404.htmlrename to searx/templates/legacy/404.htmlindex 1d88f86c4..05c14e155 100644--- a/searx/templates/default/404.html+++ b/searx/templates/legacy/404.html@@ -1,4 +1,4 @@-{% extends "default/base.html" %}+{% extends "legacy/base.html" %}{% block content %}<div class="center"><h1>{{ _('Page not found') }}</h1>diff --git a/searx/templates/default/about.html b/searx/templates/legacy/about.htmlsimilarity index 97%rename from searx/templates/default/about.htmlrename to searx/templates/legacy/about.htmlindex f21a6f296..45fb0e449 100644--- a/searx/templates/default/about.html+++ b/searx/templates/legacy/about.html@@ -1,6 +1,6 @@-{% extends 'default/base.html' %}+{% extends 'legacy/base.html' %}{% block content %}-{% include 'default/github_ribbon.html' %}+{% include 'legacy/github_ribbon.html' %}<div class="row"{% if rtl %} dir="ltr"{% endif %}><h1>About <a href="{{ url_for('index') }}">searx</a></h1>diff --git a/searx/templates/default/base.html b/searx/templates/legacy/base.htmlsimilarity index 100%rename from searx/templates/default/base.htmlrename to searx/templates/legacy/base.htmldiff --git a/searx/templates/default/categories.html b/searx/templates/legacy/categories.htmlsimilarity index 100%rename from searx/templates/default/categories.htmlrename to searx/templates/legacy/categories.htmldiff --git a/searx/templates/default/github_ribbon.html b/searx/templates/legacy/github_ribbon.htmlsimilarity index 100%rename from searx/templates/default/github_ribbon.htmlrename to searx/templates/legacy/github_ribbon.htmldiff --git a/searx/templates/default/index.html b/searx/templates/legacy/index.htmlsimilarity index 80%rename from searx/templates/default/index.htmlrename to searx/templates/legacy/index.htmlindex fc15a44b6..de956d5b3 100644--- a/searx/templates/default/index.html+++ b/searx/templates/legacy/index.html@@ -1,8 +1,8 @@-{% extends "default/base.html" %}+{% extends "legacy/base.html" %}{% block content %}<div class="center"><div class="title"><h1>searx</h1></div>- {% include 'default/search.html' %}+ {% include 'legacy/search.html' %}<p class="top_margin">{% if rtl %}<a href="{{ url_for('preferences') }}" class="hmarg">{{ _('preferences') }}</a>@@ -13,6 +13,6 @@{% endif %}</p></div>-{% include 'default/github_ribbon.html' %}+{% include 'legacy/github_ribbon.html' %}{% endblock %}diff --git a/searx/templates/default/infobox.html b/searx/templates/legacy/infobox.htmlsimilarity index 100%rename from searx/templates/default/infobox.htmlrename to searx/templates/legacy/infobox.htmldiff --git a/searx/templates/default/opensearch.xml b/searx/templates/legacy/opensearch.xmlsimilarity index 100%rename from searx/templates/default/opensearch.xmlrename to searx/templates/legacy/opensearch.xmldiff --git a/searx/templates/default/opensearch_response_rss.xml b/searx/templates/legacy/opensearch_response_rss.xmlsimilarity index 100%rename from searx/templates/default/opensearch_response_rss.xmlrename to searx/templates/legacy/opensearch_response_rss.xmldiff --git a/searx/templates/default/preferences.html b/searx/templates/legacy/preferences.htmlsimilarity index 98%rename from searx/templates/default/preferences.htmlrename to searx/templates/legacy/preferences.htmlindex 1de9d2275..30d632c93 100644--- a/searx/templates/default/preferences.html+++ b/searx/templates/legacy/preferences.html@@ -1,4 +1,4 @@-{% extends "default/base.html" %}+{% extends "legacy/base.html" %}{% block head %} {% endblock %}{% block content %}<div class="row">@@ -8,7 +8,7 @@<fieldset><legend>{{ _('Default categories') }}</legend>{% set display_tooltip = false %}- {% include 'default/categories.html' %}+ {% include 'legacy/categories.html' %}</fieldset><fieldset><legend>{{ _('Search language') }}</legend>diff --git a/searx/templates/default/result_templates/code.html b/searx/templates/legacy/result_templates/code.htmlsimilarity index 100%rename from searx/templates/default/result_templates/code.htmlrename to searx/templates/legacy/result_templates/code.htmldiff --git a/searx/templates/default/result_templates/default.html b/searx/templates/legacy/result_templates/default.htmlsimilarity index 100%rename from searx/templates/default/result_templates/default.htmlrename to searx/templates/legacy/result_templates/default.htmldiff --git a/searx/templates/default/result_templates/images.html b/searx/templates/legacy/result_templates/images.htmlsimilarity index 100%rename from searx/templates/default/result_templates/images.htmlrename to searx/templates/legacy/result_templates/images.htmldiff --git a/searx/templates/default/result_templates/map.html b/searx/templates/legacy/result_templates/map.htmlsimilarity index 100%rename from searx/templates/default/result_templates/map.htmlrename to searx/templates/legacy/result_templates/map.htmldiff --git a/searx/templates/default/result_templates/torrent.html b/searx/templates/legacy/result_templates/torrent.htmlsimilarity index 100%rename from searx/templates/default/result_templates/torrent.htmlrename to searx/templates/legacy/result_templates/torrent.htmldiff --git a/searx/templates/default/result_templates/videos.html b/searx/templates/legacy/result_templates/videos.htmlsimilarity index 100%rename from searx/templates/default/result_templates/videos.htmlrename to searx/templates/legacy/result_templates/videos.htmldiff --git a/searx/templates/default/results.html b/searx/templates/legacy/results.htmlsimilarity index 93%rename from searx/templates/default/results.htmlrename to searx/templates/legacy/results.htmlindex 927b7b8a8..f50700c6f 100644--- a/searx/templates/default/results.html+++ b/searx/templates/legacy/results.html@@ -1,10 +1,10 @@-{% extends "default/base.html" %}+{% extends "legacy/base.html" %}{% block title %}{{ q }} - {% endblock %}{% block meta %}<link rel="alternate" type="application/rss+xml" title="Searx search: {{ q }}" href="{{ url_for('index') }}?q={{ q|urlencode }}&format=rss&{% for category in selected_categories %}category_{{ category }}=1&{% endfor %}pageno={{ pageno }}">{% endblock %}{% block content %}<div class="preferences_container right"><a href="{{ url_for('preferences') }}" id="preferences"><span>preferences</span></a></div><div class="small search center">- {% include 'default/search.html' %}+ {% include 'legacy/search.html' %}</div><div id="results"><div id="sidebar">@@ -55,16 +55,16 @@{% if infoboxes %}<div id="infoboxes">{% for infobox in infoboxes %}- {% include 'default/infobox.html' %}+ {% include 'legacy/infobox.html' %}{% endfor %}</div>{% endif %}{% for result in results %}{% if result['template'] %}- {% include get_result_template('default', result['template']) %}+ {% include get_result_template('legacy', result['template']) %}{% else %}- {% include 'default/result_templates/default.html' %}+ {% include 'legacy/result_templates/default.html' %}{% endif %}{% endfor %}diff --git a/searx/templates/default/search.html b/searx/templates/legacy/search.htmlsimilarity index 90%rename from searx/templates/default/search.htmlrename to searx/templates/legacy/search.htmlindex 5a049a492..4d37f9ba1 100644--- a/searx/templates/default/search.html+++ b/searx/templates/legacy/search.html@@ -4,5 +4,5 @@<input type="submit" value="search" id="search_submit" /></div>{% set display_tooltip = true %}- {% include 'default/categories.html' %}+ {% include 'legacy/categories.html' %}</form>diff --git a/searx/templates/default/stats.html b/searx/templates/legacy/stats.htmlsimilarity index 94%rename from searx/templates/default/stats.htmlrename to searx/templates/legacy/stats.htmlindex 70fe98ac7..372447e23 100644--- a/searx/templates/default/stats.html+++ b/searx/templates/legacy/stats.html@@ -1,4 +1,4 @@-{% extends "default/base.html" %}+{% extends "legacy/base.html" %}{% block head %} {% endblock %}{% block content %}<h2>{{ _('Engine stats') }}</h2>diff --git a/searx/templates/pix-art/preferences.html b/searx/templates/pix-art/preferences.htmlindex a4a6cd268..ea5557b07 100644--- a/searx/templates/pix-art/preferences.html+++ b/searx/templates/pix-art/preferences.html@@ -1,4 +1,4 @@-{% extends "default/base.html" %}+{% extends "legacy/base.html" %}{% block head %} {% endblock %}{% block content %}<div class="row">diff --git a/searx/templates/pix-art/stats.html b/searx/templates/pix-art/stats.htmlindex 70fe98ac7..372447e23 100644--- a/searx/templates/pix-art/stats.html+++ b/searx/templates/pix-art/stats.html@@ -1,4 +1,4 @@-{% extends "default/base.html" %}+{% extends "legacy/base.html" %}{% block head %} {% endblock %}{% block content %}<h2>{{ _('Engine stats') }}</h2>diff --git a/tests/robot/test_basic.robot b/tests/robot/test_basic.robotindex a455eeaa0..540060fef 100644--- a/tests/robot/test_basic.robot+++ b/tests/robot/test_basic.robot@@ -67,7 +67,7 @@ Change themePage Should Contain aboutPage Should Contain preferencesGo To http://localhost:11111/preferences- List Selection Should Be theme default+ List Selection Should Be theme legacySelect From List theme oscarSubmit Form id=search_formLocation Should Be http://localhost:11111/@@ -139,7 +139,7 @@ Block a pluginPage Should Contain aboutPage Should Contain preferencesGo To http://localhost:11111/preferences- List Selection Should Be theme default+ List Selection Should Be theme legacySelect From List theme oscarSubmit Form id=search_formLocation Should Be http://localhost:11111/diff --git a/tests/unit/test_webapp.py b/tests/unit/test_webapp.pyindex 1762d66b6..912bebc4d 100644--- a/tests/unit/test_webapp.py+++ b/tests/unit/test_webapp.py@@ -44,7 +44,7 @@ class ViewsTestCase(SearxTestCase):webapp.Search.search = search_mockdef get_current_theme_name_mock(override=None):- return 'default'+ return 'legacy'webapp.get_current_theme_name = get_current_theme_name_mock@@ -58,7 +58,7 @@ class ViewsTestCase(SearxTestCase):def test_index_html(self):result = self.app.post('/', data={'q': 'test'})self.assertIn(- '<h3 class="result_title"><img width="14" height="14" class="favicon" src="/static/themes/default/img/icons/icon_youtube.ico" alt="youtube" /><a href="http://second.test.xyz" rel="noreferrer">Second <span class="highlight">Test</span></a></h3>', # noqa+ '<h3 class="result_title"><img width="14" height="14" class="favicon" src="/static/themes/legacy/img/icons/icon_youtube.ico" alt="youtube" /><a href="http://second.test.xyz" rel="noreferrer">Second <span class="highlight">Test</span></a></h3>', # noqaresult.data)self.assertIn(