[license] client/simple: SPDX-License-Identifier: AGPL-3.0-or-later

SPDX short-form identifiers to communicate license information in a simple,
efficient, portable and machine-readable manner [1]

[1] https://spdx.dev/learn/handling-license-info/
This commit is contained in:
Markus Heiser 2025-08-18 10:24:19 +02:00 committed by Markus Heiser
parent 60bd8b90f0
commit 34e993a854
40 changed files with 82 additions and 16 deletions

View file

@ -1,6 +1,10 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
/* /*
this file is generated automatically by searxng_extra/update/update_pygments.py this file is generated automatically by searxng_extra/update/update_pygments.py
using pygments version 2.19.2 using pygments version 2.19.2:
./manage templates.simple.pygments
*/ */

View file

@ -1,8 +1,4 @@
/** // SPDX-License-Identifier: AGPL-3.0-or-later
* @preserve (C) Copyright Contributors to the SearXNG project.
* @preserve (C) Copyright Contributors to the searx project (2014 - 2021).
* @license AGPL-3.0-or-later
*/
import "./router.ts"; import "./router.ts";
import "./toolkit.ts"; import "./toolkit.ts";

View file

@ -1,3 +1,5 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
import { listen } from "./toolkit.ts"; import { listen } from "./toolkit.ts";
listen("click", ".close", function (this: HTMLElement) { listen("click", ".close", function (this: HTMLElement) {

View file

@ -1,3 +1,5 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
import { Endpoints, endpoint, ready, settings } from "./toolkit.ts"; import { Endpoints, endpoint, ready, settings } from "./toolkit.ts";
ready( ready(

View file

@ -1,3 +1,5 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
import type { KeyBindingLayout } from "../main/keyboard.ts"; import type { KeyBindingLayout } from "../main/keyboard.ts";
// synced with searx/webapp.py get_client_settings // synced with searx/webapp.py get_client_settings

View file

@ -1,3 +1,5 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
import { assertElement, http, listen, settings } from "../core/toolkit.ts"; import { assertElement, http, listen, settings } from "../core/toolkit.ts";
const fetchResults = async (qInput: HTMLInputElement, query: string): Promise<void> => { const fetchResults = async (qInput: HTMLInputElement, query: string): Promise<void> => {

View file

@ -1,3 +1,5 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
import { assertElement, http, settings } from "../core/toolkit.ts"; import { assertElement, http, settings } from "../core/toolkit.ts";
const newLoadSpinner = (): HTMLDivElement => { const newLoadSpinner = (): HTMLDivElement => {

View file

@ -1,3 +1,5 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
import { assertElement, listen, mutable, settings } from "../core/toolkit.ts"; import { assertElement, listen, mutable, settings } from "../core/toolkit.ts";
export type KeyBindingLayout = "default" | "vim"; export type KeyBindingLayout = "default" | "vim";

View file

@ -1,3 +1,5 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
import { listen } from "../core/toolkit.ts"; import { listen } from "../core/toolkit.ts";
listen("click", ".searxng_init_map", async function (this: HTMLElement, event: Event) { listen("click", ".searxng_init_map", async function (this: HTMLElement, event: Event) {

View file

@ -1,3 +1,5 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
import { http, listen, settings } from "../core/toolkit.ts"; import { http, listen, settings } from "../core/toolkit.ts";
let engineDescriptions: Record<string, [string, string]> | undefined; let engineDescriptions: Record<string, [string, string]> | undefined;

View file

@ -1,3 +1,5 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
import "../../../node_modules/swiped-events/src/swiped-events.js"; import "../../../node_modules/swiped-events/src/swiped-events.js";
import { assertElement, listen, mutable, settings } from "../core/toolkit.ts"; import { assertElement, listen, mutable, settings } from "../core/toolkit.ts";

View file

@ -1,3 +1,5 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
import { assertElement, listen, settings } from "../core/toolkit.ts"; import { assertElement, listen, settings } from "../core/toolkit.ts";
const submitIfQuery = (qInput: HTMLInputElement): void => { const submitIfQuery = (qInput: HTMLInputElement): void => {

View file

@ -1,3 +1,5 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
import { Feature, Map as OlMap, View } from "ol"; import { Feature, Map as OlMap, View } from "ol";
import { createEmpty } from "ol/extent"; import { createEmpty } from "ol/extent";
import { GeoJSON } from "ol/format"; import { GeoJSON } from "ol/format";

View file

@ -1,3 +1,5 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
.dialog-modal { .dialog-modal {
animation-name: dialogmodal; animation-name: dialogmodal;
animation-duration: 0.13s; animation-duration: 0.13s;

View file

@ -1,4 +1,4 @@
/*! Autocomplete.js v2.6.3 | license MIT | (c) 2017, Baptiste Donaux | http://autocomplete-js.com */ // SPDX-License-Identifier: AGPL-3.0-or-later
.autocomplete { .autocomplete {
position: absolute; position: absolute;

View file

@ -1,3 +1,5 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
@import "../../generated/pygments.less"; @import "../../generated/pygments.less";
.codelines { .codelines {

View file

@ -1,3 +1,5 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
/* /*
* SearXNG, A privacy-respecting, hackable metasearch engine * SearXNG, A privacy-respecting, hackable metasearch engine
* *

View file

@ -1,3 +1,5 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
#main_results #results.image-detail-open.only_template_images { #main_results #results.image-detail-open.only_template_images {
width: min(98%, 59.25rem) !important; width: min(98%, 59.25rem) !important;
} }

View file

@ -1,3 +1,5 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
iframe[src^="https://w.soundcloud.com"] iframe[src^="https://w.soundcloud.com"]
{ {
height: 120px; height: 120px;

View file

@ -1,3 +1,5 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
#main_index { #main_index {
margin-top: 26vh; margin-top: 26vh;
} }

View file

@ -1,3 +1,5 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
.info-page { .info-page {
code { code {
font-family: monospace; font-family: monospace;

View file

@ -1,4 +1,5 @@
// SPDX-License-Identifier: AGPL-3.0-or-later // SPDX-License-Identifier: AGPL-3.0-or-later
.stats_endpoint { .stats_endpoint {
.github-issue-button { .github-issue-button {
display: block; display: block;

View file

@ -1,3 +1,5 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
table { table {
border-collapse: collapse; border-collapse: collapse;

View file

@ -1,6 +1,9 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
/* /*
Layout of the KeyValue result class Layout of the KeyValue result class
*/ */
#main_results .result-keyvalue { #main_results .result-keyvalue {
caption { caption {
padding: 0.8rem 0.5rem; padding: 0.8rem 0.5rem;

View file

@ -1,3 +1,5 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
@import (inline) "../../node_modules/normalize.css/normalize.css"; @import (inline) "../../node_modules/normalize.css/normalize.css";
@import "definitions.less"; @import "definitions.less";
@import "mixins.less"; @import "mixins.less";

View file

@ -1,6 +1,4 @@
/* // SPDX-License-Identifier: AGPL-3.0-or-later
* SearXNG, A privacy-respecting, hackable metasearch engine
*/
#search { #search {
padding: 0; padding: 0;

View file

@ -1,3 +1,5 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
/* /*
--center-page-width overrides the less variable @results-width when the results are centered --center-page-width overrides the less variable @results-width when the results are centered
see the CSS rules for #results in style.less ( grid-template-columns and gap). see the CSS rules for #results in style.less ( grid-template-columns and gap).

View file

@ -1,3 +1,5 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
.ltr-left(@offset) { .ltr-left(@offset) {
left: @offset; left: @offset;
} }

View file

@ -1,3 +1,5 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
.ltr-left(@offset) { .ltr-left(@offset) {
right: @offset; right: @offset;
} }

View file

@ -1,8 +1,4 @@
/* // SPDX-License-Identifier: AGPL-3.0-or-later
* SearXNG, A privacy-respecting, hackable metasearch engine
*
* To convert "style.less" to "style.css" run: $make styles
*/
// stylelint-disable no-descending-specificity // stylelint-disable no-descending-specificity

View file

@ -1,3 +1,5 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
// other solution : http://stackoverflow.com/questions/1577598/how-to-hide-parts-of-html-when-javascript-is-disabled/13857783#13857783 // other solution : http://stackoverflow.com/questions/1577598/how-to-hide-parts-of-html-when-javascript-is-disabled/13857783#13857783
// stylelint-disable no-descending-specificity // stylelint-disable no-descending-specificity

View file

@ -1,3 +1,5 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
.loader, .loader,
.loader::after { .loader::after {
border-radius: 50%; border-radius: 50%;

View file

@ -1,3 +1,5 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
#answers .weather { #answers .weather {
summary { summary {
display: block; display: block;

View file

@ -1,3 +1,5 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
/** /**
* Generate icons.html for the jinja templates of the simple theme. * Generate icons.html for the jinja templates of the simple theme.
*/ */

View file

@ -1,3 +1,5 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
import fs from "node:fs"; import fs from "node:fs";
import path from "node:path"; import path from "node:path";
import sharp from "sharp"; import sharp from "sharp";

View file

@ -1,4 +1,6 @@
{{-- {{--
SPDX-License-Identifier: AGPL-3.0-or-later
This is a EDGE https://edgejs.dev/ template to generate a HTML Jinja template This is a EDGE https://edgejs.dev/ template to generate a HTML Jinja template
for the backend. Example output of this EDGE template: for the backend. Example output of this EDGE template:
- https://github.com/searxng/searxng/blob/master/searx/templates/simple/icons.html - https://github.com/searxng/searxng/blob/master/searx/templates/simple/icons.html

View file

@ -1,3 +1,5 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
import fs from "node:fs"; import fs from "node:fs";
import { dirname, resolve } from "node:path"; import { dirname, resolve } from "node:path";
import { Edge } from "edge.js"; import { Edge } from "edge.js";

View file

@ -1,3 +1,5 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
/** /**
* Custom vite plugins to build the web-client components of the simple theme. * Custom vite plugins to build the web-client components of the simple theme.
* *

View file

@ -1,3 +1,5 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
/** /**
* CONFIG: https://vite.dev/config/ * CONFIG: https://vite.dev/config/
*/ */

View file

@ -16,9 +16,13 @@ from searx import searx_dir
LESS_FILE = Path(searx_dir).parent / 'client/simple/generated/pygments.less' LESS_FILE = Path(searx_dir).parent / 'client/simple/generated/pygments.less'
HEADER = f"""\ HEADER = f"""\
// SPDX-License-Identifier: AGPL-3.0-or-later
/* /*
this file is generated automatically by searxng_extra/update/update_pygments.py this file is generated automatically by searxng_extra/update/update_pygments.py
using pygments version {pygments.__version__} using pygments version {pygments.__version__}:
./manage templates.simple.pygments
*/ */
""" """