From bdb41bea7b4db6e97611a8303e4880e580334a74 Mon Sep 17 00:00:00 2001
From: Alexandre Flament
Date: Wed, 10 Mar 2021 14:34:33 +0100
Subject: [mod] theme: remove require-2.1.15.min.js
See https://github.com/requirejs/requirejs/issues/1816
requirejs loads one file: leaflet.
This commit:
* removes requirejs
* load leaflet using
- {% if autocomplete %} {% endif %}
+ {% if load_leaflet %}{{" "}}{{ "\n" }}{% endif %}
+ {% if autocomplete %}{{" "}}{{ "\n" }}{% endif %}
-
--
cgit v1.2.3
From eda3b513acd2106da44e8cddae3d54a90e241958 Mon Sep 17 00:00:00 2001
From: Alexandre Flament
Date: Wed, 10 Mar 2021 14:47:06 +0100
Subject: [mod] oscar: remove polyfills for Internet Explorer
---
searx/templates/oscar/base.html | 9 +--------
1 file changed, 1 insertion(+), 8 deletions(-)
(limited to 'searx/templates')
diff --git a/searx/templates/oscar/base.html b/searx/templates/oscar/base.html
index 033be89b8..18ff1675a 100644
--- a/searx/templates/oscar/base.html
+++ b/searx/templates/oscar/base.html
@@ -1,11 +1,10 @@
{% from 'oscar/macros.html' import icon %}
-
+
-
@@ -29,12 +28,6 @@
{% endfor %}
-
-
-
{% block styles %}
--
cgit v1.2.3
From 44407353ef3dbab4e4249e9cca6955a500b8e539 Mon Sep 17 00:00:00 2001
From: Alexandre Flament
Date: Wed, 10 Mar 2021 18:28:58 +0100
Subject: [mod] oscar: get leaflet and jquery from NPM
easy to upgrade (package.json)
---
searx/templates/oscar/base.html | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
(limited to 'searx/templates')
diff --git a/searx/templates/oscar/base.html b/searx/templates/oscar/base.html
index 18ff1675a..f8345d9a7 100644
--- a/searx/templates/oscar/base.html
+++ b/searx/templates/oscar/base.html
@@ -92,9 +92,9 @@
-
+
- {% if load_leaflet %}{{" "}}{{ "\n" }}{% endif %}
+ {% if load_leaflet %}{{" "}}{{ "\n" }}{% endif %}
{% if autocomplete %}{{" "}}{{ "\n" }}{% endif %}