searxng/client/simple
Bnyro 9dfdd30da0 [fix] search: autocomplete focus on results page
This has been a regression introduced with the removal of
the unmaintained autocomplete.js library.

We should only focus the search bar on the main search page at `/`
and not at the results page located at `/search`.

I'm not sure if there's a better way to figure out if
we're on the results page than checking if the id of the
main element is `#main_results`, checking the path
obviously isn't a better solution because it can differ
depending on the instance / reverse proxy / ....

- related to 32823ecb69
- closes https://github.com/searxng/searxng/issues/4846
2025-05-25 18:04:18 +02:00
..
generated [web-client] simple theme: move sources to client/simple/src 2025-02-28 12:27:41 +01:00
src [fix] search: autocomplete focus on results page 2025-05-25 18:04:18 +02:00
static [web-client] simple theme: build & development env based on vite. 2025-02-28 12:27:41 +01:00
tools [fix] simple client: jinja_svg_catalog addClassesToSVGElement 2025-05-09 12:40:34 +02:00
.gitignore [web-client] simple theme: stylelint LESS source files 2025-02-28 12:27:41 +01:00
.stylelintrc.json [web-client] simple theme: stylelint LESS source files 2025-02-28 12:27:41 +01:00
eslint.config.js [web-client] simple theme: eslint JS source files 2025-02-28 12:27:41 +01:00
package-lock.json [build] /static 2025-05-22 15:16:54 +02:00
package.json [refactor] search.js: use custom auto completion implementation 2025-05-22 15:16:54 +02:00
README.rst [web-client] simple theme: build & development env based on vite. 2025-02-28 12:27:41 +01:00
theme_icons.js [fix] simple template - video.html fix button icon to icon_small 2025-02-28 12:27:41 +01:00
vite.config.js [web-client] simple theme: move SVGs to client/simple/src and deploy to static by plg_svg2svg 2025-02-28 12:27:41 +01:00

=====================
MEMO vite development
=====================

Local install::

  # in folder ./client/simple/
  $ npm install

Start development server::

  $ ./manage vite.simple.dev

  # in folder ./client/simple/
  $ npm exec -- vite

Fix source code::

  # in folder ./client/simple/
  $ npm run fix

Fix & Build::

  $ ./manage vite.simple.build