This commit is contained in:
Joseph Cheung 2023-02-26 08:59:50 +08:00
parent 1dcd512d21
commit c93eaf39c5
10 changed files with 11 additions and 11 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -145,7 +145,7 @@ module.exports = function (grunt) {
svgo: ['--config', 'svg4web.svgo.js']
},
files: {
'<%= _templates %>/simple/searxng-wordmark.min.svg': '<%= _brand %>/searxng-wordmark.svg',
'<%= _templates %>/magi/searxng-wordmark.min.svg': '<%= _brand %>/searxng-wordmark.svg',
'img/logo.svg': '<%= _brand %>/logo.svg',
'img/img_load_error.svg': '<%= _brand %>/img_load_error.svg'
}
@ -192,7 +192,7 @@ module.exports = function (grunt) {
'heart-outline': 'node_modules/ionicons/dist/svg/heart-outline.svg',
'information-circle-outline': 'src/svg/information-circle-outline.svg',
},
dest: '../../../templates/simple/icons.html',
dest: '../../../templates/magi/icons.html',
},
},
});
@ -229,7 +229,7 @@ module.exports = function (grunt) {
grunt.log.error(err);
}
}
const template = `{# this file was generated by searx/static/themes/simple/gruntfile.js #}
const template = `{# this file was generated by searx/static/themes/magi/gruntfile.js #}
{%- set icons = {
<% for (const iconName in icons) { %> '<%- iconName %>':'<%- icons[iconName] %>',
<% } %>

View file

@ -425,7 +425,7 @@ input.checkbox-onoff[type="checkbox"] {
/* check mark
reversed-checkbox displays unchecked checkedboxes as checked, and vice versa.
see https://github.com/searxng/searxng/blob/3408d061aab9abc6168fec9bbc6deab71b236dac/searx/templates/simple/preferences.html#L313
see https://github.com/searxng/searxng/blob/3408d061aab9abc6168fec9bbc6deab71b236dac/searx/templates/magi/preferences.html#L313
*/
input.checkbox-onoff[type="checkbox"],
.reversed-checkbox input.checkbox-onoff[type="checkbox"]:checked {

View file

@ -1,4 +1,4 @@
{% extends "simple/base.html" %}
{% extends "magi/base.html" %}
{% block content %}
<div class="center">
<h1>{{ _('Page not found') }}</h1>

View file

@ -1,4 +1,4 @@
{% extends "simple/base.html" %}
{% extends "magi/base.html" %}
{% from 'simple/icons.html' import icon_big %}
{% block content %}
<div class="index">

View file

Before

Width:  |  Height:  |  Size: 5.3 KiB

After

Width:  |  Height:  |  Size: 5.3 KiB

View file

@ -1,5 +1,5 @@
{% set body_class = "page_with_header" %}
{% extends "simple/base.html" %}
{% extends "magi/base.html" %}
{% block header %}
<a href="{{ url_for('index') }}"><img class="logo" src="{{ url_for('static', filename='img/logo.png') }}" alt="Search"></a>
{% endblock %}

View file

@ -1,4 +1,4 @@
{% extends "simple/base.html" %}
{% extends "magi/base.html" %}
{% from 'simple/icons.html' import icon, icon_big, icon_small %}
{% macro engine_data_form(engine_data) -%}
{% for engine_name, kv_data in engine_data.items() %}

View file

@ -19,7 +19,7 @@
{% endif %}
{% block styles %}{% endblock %}
<!--[if gte IE 9]>-->
<script src="{{ url_for('static', filename='js/magi.head.min.js') }}" client_settings="{{ client_settings }}"></script>
<script src="{{ url_for('static', filename='js/simple.head.min.js') }}" client_settings="{{ client_settings }}"></script>
<!--<![endif]-->
{% block head %}
<link title="{{ instance_name }}" type="application/opensearchdescription+xml" rel="search" href="{{ opensearch_url }}"/>