mirror of
https://github.com/parchlinuxB/Gitee.git
synced 2025-02-22 09:55:43 -05:00
initial of new theme
This commit is contained in:
parent
e4c233a759
commit
c51f023091
13 changed files with 3744 additions and 1 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -18,7 +18,8 @@ gh-pages/
|
|||
*.egg-info/
|
||||
|
||||
/package-lock.json
|
||||
/node_modules/
|
||||
**/node_modules
|
||||
**/.parcel-cache
|
||||
|
||||
.idea/
|
||||
|
||||
|
|
1
searx/static/themes/smart/css/ltr-style.css
Normal file
1
searx/static/themes/smart/css/ltr-style.css
Normal file
|
@ -0,0 +1 @@
|
|||
footer{border-top:1px solid var(--border-color);background-color:var(--footer-bg-color);justify-content:space-between;align-items:center;padding:1rem;display:flex}footer p{margin:0}footer a{color:var(--footer-link-color)}footer a:hover{color:var(--footer-link-hover-color)}.search-filters{flex-wrap:wrap;gap:1rem;margin-bottom:1rem;display:flex}.search-filters>*{flex:1}.search-filters>:not(:last-child){margin-right:1rem}.search-filters>:last-child{margin-left:1rem}.search-filters>:first-child{margin-left:0}.search-filters>:last-child{margin-right:0}
|
0
searx/static/themes/smart/css/rtl-style.css
Normal file
0
searx/static/themes/smart/css/rtl-style.css
Normal file
1
searx/static/themes/smart/js/app.js
Normal file
1
searx/static/themes/smart/js/app.js
Normal file
|
@ -0,0 +1 @@
|
|||
console.log("test");
|
1
searx/static/themes/smart/js/main.js
Normal file
1
searx/static/themes/smart/js/main.js
Normal file
|
@ -0,0 +1 @@
|
|||
console.log("test");
|
3650
searx/static/themes/smart/package-lock.json
generated
Normal file
3650
searx/static/themes/smart/package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load diff
19
searx/static/themes/smart/package.json
Normal file
19
searx/static/themes/smart/package.json
Normal file
|
@ -0,0 +1,19 @@
|
|||
{
|
||||
"browserslist": "cover 95% and last 2 versions and not dead",
|
||||
"scripts": {
|
||||
"style:watch:rtl": "parcel ./src/scss/rtl-style.scss --no-source-maps --dist-dir ./css -p 10020",
|
||||
"style:watch:ltr": "parcel ./src/scss/ltr-style.scss --no-source-maps --dist-dir ./css -p 10021",
|
||||
"style:watch": "concurrently -k -n \"RTL,LTR\" -c \"bgYellow.bold,bgGreen.bold\" -p \" {name} \" \"npm:style:watch:rtl\" \"npm:style:watch:ltr\"",
|
||||
"style:build:rtl": "parcel build ./src/scss/rtl-style.scss --no-source-maps --dist-dir ./css",
|
||||
"style:build:ltr": "parcel build ./src/scss/ltr-style.scss --no-source-maps --dist-dir ./css",
|
||||
"style:build": "concurrently -k -n \"RTL,LTR\" -c \"bgYellow.dim,bgGreen.dim\" -p \" {name} \" \"npm:style:build:rtl\" \"npm:style:build:ltr\"",
|
||||
"script:watch": "parcel ./src/ts/app.ts --no-source-maps --dist-dir ./js -p 10030",
|
||||
"script:build": "parcel build ./src/ts/app.ts --no-source-maps --dist-dir ./js",
|
||||
"dev": "concurrently -k -n \"STYLE,SCRIPT\" -c \"bgRed.bold,bgBlue.bold\" -p \" {name} \" \"npm:style:watch\" \"npm:script:watch\"",
|
||||
"build": "concurrently -n \"STYLE,SCRIPT\" -c \"bgRed.dim,bgBlue.dim\" -p \" {name} \" \"npm:style:build\" \"npm:script:build\""
|
||||
},
|
||||
"devDependencies": {
|
||||
"concurrently": "^9.1.0",
|
||||
"parcel": "^2.13.0"
|
||||
}
|
||||
}
|
0
searx/static/themes/smart/src/scss/ltr-style.scss
Normal file
0
searx/static/themes/smart/src/scss/ltr-style.scss
Normal file
0
searx/static/themes/smart/src/scss/rtl-style.scss
Normal file
0
searx/static/themes/smart/src/scss/rtl-style.scss
Normal file
0
searx/static/themes/smart/src/scss/style.scss
Normal file
0
searx/static/themes/smart/src/scss/style.scss
Normal file
0
searx/static/themes/smart/src/ts/app.ts
Normal file
0
searx/static/themes/smart/src/ts/app.ts
Normal file
69
searx/templates/smart/base.html
Normal file
69
searx/templates/smart/base.html
Normal file
|
@ -0,0 +1,69 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="{{ locale_rfc5646 }}" {% if rtl %} dir="rtl"{% endif %}>
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="description" content="Moa, a SearXNG-based and free metasearch that respects your privacy">
|
||||
<meta name="keywords" content="MOA, SearXNG, search, search engine, metasearch, meta search">
|
||||
<meta name="generator" content="searxng/{{ searx_version }}">
|
||||
<meta name="referrer" content="no-referrer">
|
||||
<meta name="robots" content="noarchive">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="HandheldFriendly" content="True">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1">
|
||||
<title>{{ instance_name }} {% block title %}{% endblock %}</title>
|
||||
{% block meta %}{% endblock %}
|
||||
{% if rtl %}
|
||||
<link rel="stylesheet" href="{{ url_for('static', filename='css/rtl-style.css') }}" type="text/css" media="screen" />
|
||||
{% else %}
|
||||
<link rel="stylesheet" href="{{ url_for('static', filename='css/ltr-style.css') }}" type="text/css" media="screen" />
|
||||
{% endif %}
|
||||
{% if get_setting('server.limiter') or get_setting('server.public_instance') %}
|
||||
<link rel="stylesheet" href="{{ url_for('client_token', token=link_token) }}" type="text/css" />
|
||||
{% endif %}
|
||||
{% block styles %}{% endblock %}
|
||||
{% block head %}
|
||||
<link title="{{ instance_name }}" type="application/opensearchdescription+xml" rel="search" href="{{ opensearch_url }}"/>
|
||||
{% endblock %}
|
||||
<link rel="icon" href="/favicon.ico" sizes="any">
|
||||
{# <link rel="icon" href="{{ url_for('static', filename='img/favicon.svg') }}" type="image/svg+xml"> #}
|
||||
<link rel="apple-touch-icon" href="/favicon.ico"/>
|
||||
</head>
|
||||
<body class="{{ endpoint }}_endpoint" >
|
||||
<main id="main_{{ self._TemplateReference__context.name|replace("simple/", "")|replace(".html", "") }}" class="{{body_class}}">
|
||||
{% if errors %}
|
||||
<div class="dialog-error" role="alert">
|
||||
<a href="#" class="close" aria-label="close" title="close">×</a>
|
||||
<ul>
|
||||
{% for message in errors %}
|
||||
<li>{{ message }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% block header %}
|
||||
{% endblock %}
|
||||
{% block content %}
|
||||
{% endblock %}
|
||||
</main>
|
||||
<footer>
|
||||
<p>
|
||||
{{ _('a privacy-respecting, open metasearch engine') }} - {{ searx_version }}
|
||||
</p><p>
|
||||
<a href="{{ get_setting('brand.issue_url') }}">{{ _('Issue tracker') }}</a>
|
||||
{% if enable_metrics %}| <a href="{{ url_for('stats') }}">{{ _('Engine stats') }}</a>{% endif %}
|
||||
{% if get_setting('brand.public_instances') %}
|
||||
| <a href="{{ get_setting('brand.public_instances') }}">{{ _('Public instances') }}</a>
|
||||
{% endif %}
|
||||
{% if get_setting('general.privacypolicy_url') %}
|
||||
| <a href="{{ get_setting('general.privacypolicy_url') }}">{{ _('Privacy policy') }}</a>
|
||||
{% endif %}
|
||||
{% if get_setting('general.contact_url') %}
|
||||
| <a href="{{ get_setting('general.contact_url') }}">{{ _('Contact instance maintainer') }}</a>
|
||||
{% endif %}
|
||||
</p>
|
||||
</footer>
|
||||
<!--[if gte IE 9]>-->
|
||||
<script src="{{ url_for('static', filename='js/app.js') }}"></script>
|
||||
<!--<![endif]-->
|
||||
</body>
|
||||
</html>
|
1
searx/templates/smart/index.html
Normal file
1
searx/templates/smart/index.html
Normal file
|
@ -0,0 +1 @@
|
|||
{% extends "smart/base.html" %}
|
Loading…
Add table
Reference in a new issue