这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@return42
Copy link
Member

@return42 return42 commented Apr 2, 2025

What does this PR do?

[fix] client/simple: add missing "swiped-events" devDependencies (import)

Why is this change important?

In commit 1a3543d 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

How to test this PR locally?

Swipe is discussed in #4198 where this issue is reported [4]

Related issues

return42 added 2 commits April 2, 2025 11:36
…ort)

In commit 1a3543d 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] searxng#4284
[2] https://www.npmjs.com/package/swiped-events

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Reported-by: searxng#4198 (comment)
@snoweuph
Copy link
Contributor

snoweuph commented Apr 2, 2025

Is there a Dockerbuild of this?

To test this, I would need an image.
my searxng is deployed like most of my services through compose stacks.

@Bnyro
Copy link
Member

Bnyro commented Apr 2, 2025

Is there a Dockerbuild of this?

No, but you could just use

searxng:
    build: https://github.com/return42/searxng.git#fix-swipw

instead of

searxng:
   image: ...

for testing, see https://docs.docker.com/reference/compose-file/build/#attributes.

@snoweuph
Copy link
Contributor

snoweuph commented Apr 2, 2025

image
Nope, doesnt work for me, because of containerization, and the available features inside it

my main hosting on purpose has none of these features.

So I guess I gonna have to do a local build and push it to my personal registry.

would be cool if you guys could add github actions for building images, especially now that dockerhub ratelimits much more.

this could also allow for building containers for prs

@Bnyro
Copy link
Member

Bnyro commented Apr 2, 2025

We had automated, public preview instance builds of PRs once, not sure what happened to them

@Bnyro
Copy link
Member

Bnyro commented Apr 2, 2025

Okay it's still here, probably GitHub has just frozen the cronjob because the repo has been inactive for a while (ref https://github.com/searxng/preview-environments/blob/main/.github/workflows/look-new-pr-test.yaml). cc @unixfox

@snoweuph
Copy link
Contributor

snoweuph commented Apr 2, 2025

lol.

I did a manual build an tested it, seems to work fine

@return42 return42 merged commit 7546f88 into searxng:master Apr 3, 2025
9 checks passed
@return42 return42 deleted the fix-swipw branch April 3, 2025 07:03
@return42
Copy link
Member Author

return42 commented Apr 3, 2025

I did a manual build an tested it, seems to work fine
To test this, I would need an image.

@snoweuph PR is now merged, new docker image should be available in the next ~1h.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants