mirror of
https://github.com/searxng/searxng.git
synced 2025-09-01 19:13:50 +00:00
[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:
parent
60bd8b90f0
commit
34e993a854
40 changed files with 82 additions and 16 deletions
|
@ -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
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -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";
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
|
@ -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(
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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> => {
|
||||||
|
|
|
@ -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 => {
|
||||||
|
|
|
@ -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";
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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";
|
||||||
|
|
||||||
|
|
|
@ -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 => {
|
||||||
|
|
|
@ -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";
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||||
|
|
||||||
@import "../../generated/pygments.less";
|
@import "../../generated/pygments.less";
|
||||||
|
|
||||||
.codelines {
|
.codelines {
|
||||||
|
|
|
@ -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
|
||||||
*
|
*
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||||
|
|
||||||
#main_index {
|
#main_index {
|
||||||
margin-top: 26vh;
|
margin-top: 26vh;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||||
|
|
||||||
.info-page {
|
.info-page {
|
||||||
code {
|
code {
|
||||||
font-family: monospace;
|
font-family: monospace;
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||||
|
|
||||||
table {
|
table {
|
||||||
border-collapse: collapse;
|
border-collapse: collapse;
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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";
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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).
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||||
|
|
||||||
.ltr-left(@offset) {
|
.ltr-left(@offset) {
|
||||||
left: @offset;
|
left: @offset;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||||
|
|
||||||
.ltr-left(@offset) {
|
.ltr-left(@offset) {
|
||||||
right: @offset;
|
right: @offset;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||||
|
|
||||||
.loader,
|
.loader,
|
||||||
.loader::after {
|
.loader::after {
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||||
|
|
||||||
#answers .weather {
|
#answers .weather {
|
||||||
summary {
|
summary {
|
||||||
display: block;
|
display: block;
|
||||||
|
|
|
@ -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.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -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";
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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";
|
||||||
|
|
|
@ -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.
|
||||||
*
|
*
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* CONFIG: https://vite.dev/config/
|
* CONFIG: https://vite.dev/config/
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -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
|
||||||
*/
|
*/
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in a new issue