Skip to content

Commit a30e01b

Browse files
committed
Merge branch 'master' of https://github.com/searxng/searxng
2 parents 7b7a5b3 + 3fe602a commit a30e01b

175 files changed

Lines changed: 18789 additions & 26642 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.devcontainer/devcontainer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
"dockerfile": "Dockerfile"
44
},
55
"features": {
6-
"ghcr.io/devcontainers/features/github-cli": {}
6+
"ghcr.io/devcontainers/features/github-cli": {},
7+
"ghcr.io/devcontainers/features/docker-in-docker": {}
78
},
89
"customizations": {
910
"vscode": {

.editorconfig

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,17 @@ max_line_length = 119
1616
[*.html]
1717
indent_size = 4
1818

19+
[*.css]
20+
indent_size = 2
21+
22+
[*.less]
23+
indent_size = 2
24+
1925
[*.js]
2026
indent_size = 2
2127

2228
[*.json]
23-
indent_size = 4
29+
indent_size = 2
2430
insert_final_newline = ignore
2531

2632
# Minified JavaScript files shouldn't be changed

.github/dependabot.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ updates:
1212
prefix: "[upd] pypi:"
1313

1414
- package-ecosystem: "npm"
15-
directory: "/searx/static/themes/simple"
15+
directory: "/client/simple"
1616
schedule:
1717
interval: "weekly"
1818
day: "friday"
1919
open-pull-requests-limit: 5
2020
target-branch: "master"
2121
commit-message:
22-
prefix: "[upd] npm:"
22+
prefix: "[upd] web-client (simple):"

.github/workflows/integration.yml

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -44,19 +44,8 @@ jobs:
4444
with:
4545
python-version: '3.12'
4646
architecture: 'x64'
47-
- name: Cache Python dependencies
48-
id: cache-python
49-
uses: actions/cache@v4
50-
with:
51-
path: |
52-
./local
53-
./.nvm
54-
./node_modules
55-
key: python-ubuntu-24.04-3.12-${{ hashFiles('requirements*.txt', 'setup.py','.nvmrc', 'package.json') }}
56-
- name: Install node dependencies
57-
run: make V=1 node.env
5847
- name: Build themes
59-
run: make V=1 themes.all
48+
run: make themes.all
6049

6150
documentation:
6251
name: Documentation

Makefile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ search.checker.%: install
5050
$(Q)./manage pyenv.cmd searxng-checker -v "$(subst _, ,$(patsubst search.checker.%,%,$@))"
5151

5252
PHONY += test ci.test test.shell
53-
ci.test: test.yamllint test.black test.types.ci test.pylint test.unit test.robot test.rst test.shell test.pybabel test.themes
53+
ci.test: test.yamllint test.black test.types.ci test.pylint test.unit test.robot test.rst test.shell test.pybabel
5454
test: test.yamllint test.black test.types.dev test.pylint test.unit test.robot test.rst test.shell
5555
test.shell:
5656
$(Q)shellcheck -x -s dash \
@@ -75,7 +75,7 @@ test.shell:
7575
# wrap ./manage script
7676

7777
MANAGE += weblate.translations.commit weblate.push.translations
78-
MANAGE += data.all data.traits data.useragents data.locales
78+
MANAGE += data.all data.traits data.useragents data.locales data.currencies
7979
MANAGE += docs.html docs.live docs.gh-pages docs.prebuild docs.clean
8080
MANAGE += docker.build docker.push docker.buildx
8181
MANAGE += gecko.driver
@@ -85,7 +85,6 @@ MANAGE += pyenv pyenv.install pyenv.uninstall
8585
MANAGE += format.python
8686
MANAGE += test.yamllint test.pylint test.black test.pybabel test.unit test.coverage test.robot test.rst test.clean test.themes test.types.dev test.types.ci
8787
MANAGE += themes.all themes.fix themes.test
88-
MANAGE += themes.simple themes.simple.pygments themes.simple.fix
8988
MANAGE += static.build.commit static.build.drop static.build.restore
9089
MANAGE += nvm.install nvm.clean nvm.status nvm.nodejs
9190

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
33
----
44

5-
.. figure:: https://raw.githubusercontent.com/searxng/searxng/master/src/brand/searxng.svg
5+
.. figure:: https://raw.githubusercontent.com/searxng/searxng/master/client/simple/src/brand/searxng.svg
66
:target: https://docs.searxng.org/
77
:alt: SearXNG
88
:width: 100%
@@ -34,7 +34,7 @@ A user_, admin_ and developer_ handbook is available on the homepage_.
3434
.. _homepage: https://docs.searxng.org/
3535
.. _metasearch engine: https://en.wikipedia.org/wiki/Metasearch_engine
3636

37-
.. |SearXNG logo| image:: https://raw.githubusercontent.com/searxng/searxng/master/src/brand/searxng-wordmark.svg
37+
.. |SearXNG logo| image:: https://raw.githubusercontent.com/searxng/searxng/master/client/simple/src/brand/searxng-wordmark.svg
3838
:target: https://docs.searxng.org/
3939
:width: 5%
4040

client/simple/.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
dist
2+
node_modules
3+
.stylelintcache

searx/static/themes/simple/.stylelintrc.json renamed to client/simple/.stylelintrc.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
{
2-
"extends": "stylelint-config-standard-less",
2+
"formatter": "unix",
3+
"plugins": [ "stylelint-prettier" ],
4+
"extends": [ "stylelint-config-standard-less" ],
35
"rules": {
6+
"prettier/prettier": true,
47
"declaration-empty-line-before": null,
58
"no-invalid-position-at-import-rule": null,
69
"property-no-vendor-prefix": null,

client/simple/README.rst

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
=====================
2+
MEMO vite development
3+
=====================
4+
5+
Local install::
6+
7+
# in folder ./client/simple/
8+
$ npm install
9+
10+
Start development server::
11+
12+
$ ./manage vite.simple.dev
13+
14+
# in folder ./client/simple/
15+
$ npm exec -- vite
16+
17+
Fix source code::
18+
19+
# in folder ./client/simple/
20+
$ npm run fix
21+
22+
Fix & Build::
23+
24+
$ ./manage vite.simple.build

client/simple/eslint.config.js

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
import globals from "globals";
2+
import pluginJs from "@eslint/js";
3+
4+
5+
/** @type {import('eslint').Linter.Config[]} */
6+
export default [
7+
pluginJs.configs.recommended,
8+
9+
// global "ignores"
10+
// https://eslint.org/docs/latest/use/configure/configuration-files#globally-ignoring-files-with-ignores
11+
{
12+
ignores: ["node_modules/", "dist/"]
13+
},
14+
15+
{
16+
files: [
17+
"**/*.js",
18+
],
19+
linterOptions: {
20+
reportUnusedDisableDirectives: "error",
21+
// noInlineConfig: true
22+
},
23+
languageOptions: {
24+
sourceType: "module",
25+
globals: {
26+
...globals.browser,
27+
}
28+
},
29+
rules: {
30+
indent: ["error", 2],
31+
},
32+
},
33+
34+
];

0 commit comments

Comments
 (0)