diff options
| author | Markus Heiser <markus.heiser@darmarit.de> | 2025-04-02 11:36:50 +0200 |
|---|---|---|
| committer | Markus Heiser <markus.heiser@darmarIT.de> | 2025-04-03 09:03:35 +0200 |
| commit | d4c6c9401d30405084f4bb866dd9f2bd19b32732 (patch) | |
| tree | a79bbc9528058fd3bc99975aec604e44ed1eb49e /client | |
| parent | e6308b8167e28a7452e9b87d913c1279f43b130a (diff) | |
[fix] client/simple: add missing "swiped-events" devDependencies (import)
In commit 1a3543d4b in PR-4284 [1] the swiped-events [2] were forgotten to be
migrated. In this patch, the event library is added to the ``devDependencies``
and imported by::
import "../../../node_modules/swiped-events/src/swiped-events.js
[1] https://github.com/searxng/searxng/pull/4284
[2] https://www.npmjs.com/package/swiped-events
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Reported-by: https://github.com/searxng/searxng/pull/4198#issuecomment-2770734321
Diffstat (limited to 'client')
| -rw-r--r-- | client/simple/package-lock.json | 8 | ||||
| -rw-r--r-- | client/simple/package.json | 1 | ||||
| -rw-r--r-- | client/simple/src/js/main/results.js | 3 |
3 files changed, 12 insertions, 0 deletions
diff --git a/client/simple/package-lock.json b/client/simple/package-lock.json index c3f949266..05950e388 100644 --- a/client/simple/package-lock.json +++ b/client/simple/package-lock.json @@ -30,6 +30,7 @@ "stylelint-config-standard-less": "^3.0.1", "stylelint-prettier": "^5.0.3", "svgo": "^3.3.2", + "swiped-events": "^1.2.0", "vite": "^6.2.3", "vite-plugin-static-copy": "^2.3.0", "vite-plugin-stylelint": "^6.0.0", @@ -6486,6 +6487,13 @@ "dev": true, "license": "CC0-1.0" }, + "node_modules/swiped-events": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/swiped-events/-/swiped-events-1.2.0.tgz", + "integrity": "sha512-KRu67z1hb4sPxMdFIF2kaufYHTcWOb8NVLbIl2g5dPWZkEQ6D3wfSIVJ7iXbicTt9cO3e0vARqgx9fITtTZxQw==", + "dev": true, + "license": "MIT" + }, "node_modules/table": { "version": "6.9.0", "resolved": "https://registry.npmjs.org/table/-/table-6.9.0.tgz", diff --git a/client/simple/package.json b/client/simple/package.json index cb2fd1cab..fb756497a 100644 --- a/client/simple/package.json +++ b/client/simple/package.json @@ -28,6 +28,7 @@ "stylelint-config-standard-less": "^3.0.1", "stylelint-prettier": "^5.0.3", "svgo": "^3.3.2", + "swiped-events": "^1.2.0", "vite": "^6.2.3", "vite-plugin-static-copy": "^2.3.0", "vite-plugin-stylelint": "^6.0.0", diff --git a/client/simple/src/js/main/results.js b/client/simple/src/js/main/results.js index cc7c7efcd..bdd76a3a6 100644 --- a/client/simple/src/js/main/results.js +++ b/client/simple/src/js/main/results.js @@ -1,4 +1,7 @@ /* SPDX-License-Identifier: AGPL-3.0-or-later */ + +import "../../../node_modules/swiped-events/src/swiped-events.js"; + (function (w, d, searxng) { 'use strict'; |