From d4c6c9401d30405084f4bb866dd9f2bd19b32732 Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Wed, 2 Apr 2025 11:36:50 +0200 Subject: [PATCH] [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 Reported-by: https://github.com/searxng/searxng/pull/4198#issuecomment-2770734321 --- client/simple/package-lock.json | 8 ++++++++ client/simple/package.json | 1 + client/simple/src/js/main/results.js | 3 +++ 3 files changed, 12 insertions(+) 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';