Markus Heiser
89fbac5763
[build] /static
1 year ago
Jinyuan Huang
92d0c378e0
[fix] keyboard navigation / simple theme (UI)
...
- avoid loop select
- fix select next item in mixed result lists
Replaces: https://github.com/searxng/searxng/pull/2789
Closes: https://github.com/searxng/searxng/issues/2751
Closes: https://github.com/searxng/searxng/issues/2788
1 year ago
Markus Heiser
ed6a5a01bb
[build] /static
1 year ago
Jinyuan Huang
0984b00b7e
[mod] UI smooth scroll added / CSS scroll-behavior
...
This PR improves the UX by making auto-scroll more smoother. The css is changed
so all the auto-scroll will be smoother but User-scroll will not be influenced.
The scroll-behavior CSS property sets the behavior for a scrolling box when
scrolling is triggered by the navigation or CSSOM scrolling APIs.[1]
[1] https://developer.mozilla.org/en-US/docs/Web/CSS/scroll-behavior
1 year ago
Markus Heiser
aa1453db0c
[build] /static
1 year ago
Markus Heiser
a987672340
[mod] improve handling of the hotkeys
...
- KeyboardEvent: keyCode property is depricated, replaced by key property [2]
- the check for ifDetailOpened is not necessary, because the hotkeys are not
only applicable to image-results, by example:
`!goi !go !scc hello`
- Key bindings like h for help are to be used in general (not only in vim-mode)
[1] https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/keyCode
[2] https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
1 year ago
Jinyuan Huang
e6b160da62
[feature] key bindings: left & right arrow are always on
1 year ago
Markus Heiser
1f7366060e
[build] /static
1 year ago
Markus Heiser
935aed7ca4
[feature] dark theme for code highlighter in the result list
...
Closes: https://github.com/searxng/searxng/issues/1354
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
1 year ago
Markus Heiser
8e45ac4271
[build] /static
1 year ago
Markus Heiser
15a3dbf7a0
[fix] preferences - layout of the "special queries" tab
...
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
1 year ago
Markus Heiser
6fc2ee514d
[build] /static
1 year ago
Bnyro
13d801b75d
[feat] results: show source of suggested answer
1 year ago
Markus Heiser
c348427f07
[update] make pygments.less
...
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
1 year ago
mrpaulblack
b477349824
[build] /static
1 year ago
Kiru
de5c1cedca
fix "#backToTop" button always being clickable
...
`pointer-events` never gets set to "none" when the button is hidden,
allowing you to click the button. And your mouse further changes it's
cursor to the pointer style.
1 year ago
Markus Heiser
b867c39ce0
[build] /static
1 year ago
Markus Heiser
2149e88bdd
[mod] template preferences: split into elements (no functional change)
...
HINT: this patch has no functional change / it is the preparation for following
changes and bugfixes
Over the years, the preferences template became an unmanageable beast. To make
the source code more readable the monolith is splitted into elements. The
splitting into elements also has the advantage that a new template can make use
of them.
The reversed checkbox is a quirk that is only used in the prefereces and must be
eliminated in the long term. For this the macro 'checkbox_onoff_reversed' was
added to the preferences.html template. The 'checkbox' macro is also a quirk of
the preferences.html we don't want to use in other templates (it is an
input-checkbox in a HTML form that was misused for status display).
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
1 year ago
mrpaulblack
60b94dfdca
[build] /static
1 year ago
mrpaulblack
f087959b02
[mod] simple theme: build design for details (collapsables)
...
* set border top and bottom on sidebar collasables
* inrease peading on summary so its easier to click on mobile
* remove margins and add flex wrapper to normalize elements in sidebar
1 year ago
Markus Heiser
b7e315563d
[mod] simple theme: collaps/expand elements in the sidebar
...
Make elements in the sidebar collapse able. Except infoboxes all elements in
the sidebar are collapsed by default.
By folding out the sidebar elements, the UI looks less cluttered. Especially on
small devices like smartphones, where the sidebar is above the results list, the
UX should be improved [1].
[1] https://github.com/searxng/searxng/issues/2140
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
1 year ago
dependabot[bot]
673837f83e
Bump grunt-contrib-cssmin in /searx/static/themes/simple
...
Bumps [grunt-contrib-cssmin](https://github.com/gruntjs/grunt-contrib-cssmin ) from 4.0.0 to 5.0.0.
- [Release notes](https://github.com/gruntjs/grunt-contrib-cssmin/releases )
- [Changelog](https://github.com/gruntjs/grunt-contrib-cssmin/blob/main/CHANGELOG )
- [Commits](https://github.com/gruntjs/grunt-contrib-cssmin/compare/v4.0.0...v5.0.0 )
---
updated-dependencies:
- dependency-name: grunt-contrib-cssmin
dependency-type: direct:development
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
1 year ago
Markus Heiser
4080eca3dd
[build] /static
2 years ago
Markus Heiser
6592f0d36e
[build] /static
2 years ago
Markus Heiser
abf574dc0c
[mod] Ignore autocomplete_min on queries that include '!' (!bang)
...
Closes: https://github.com/searxng/searxng/issues/1566
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2 years ago
Markus Heiser
b3d8d305d2
[build] /static
2 years ago
Markus Heiser
c678b82625
[build] /static
2 years ago
Markus Heiser
962b4c719f
[mod] Update input when selecting by TAB
...
When the user press [TAB] the input form should be filled with the highlighted
item from the autocomplete list, but not release a search / with other words:
what we now have by pressing once on [ENTER] should be mapped to the [TAB] key
and pressing [ENTER] once should release a search query. [1]
[1] https://github.com/searxng/searxng/issues/778#issuecomment-1016593816
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2 years ago
rinagorsha
e9fb9f2705
[mod] Update input when selecting autocomplete prediction with keyboard
...
- Update input when selecting autocomplete prediction with keyboard
- Search immediately by pressing enter key
- Search immediately by clicking on an autocomplete suggestion
Related:
- https://github.com/searxng/searxng/issues/778
2 years ago
Markus Heiser
0def555869
[build] /static
2 years ago
Markus Heiser
f117f969d8
[mod] in the preference page, show !bang of subgrouping categories
...
The names of the subgrouping categories in the preference page are translated,
to use this categories the user needs to know by which !bang the category can be
selected. Related to "Make 'non tab category' bangs discoverable" in [#690 ].
Related:
- [#690 ] https://github.com/searxng/searxng/issues/690
- https://github.com/searxng/searxng/issues/1604
- https://github.com/searxng/searxng/pull/1545
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2 years ago
dependabot[bot]
b99e028ed0
Bump sharp from 0.31.3 to 0.32.0 in /searx/static/themes/simple
...
Bumps [sharp](https://github.com/lovell/sharp ) from 0.31.3 to 0.32.0.
- [Release notes](https://github.com/lovell/sharp/releases )
- [Changelog](https://github.com/lovell/sharp/blob/main/docs/changelog.md )
- [Commits](https://github.com/lovell/sharp/compare/v0.31.3...v0.32.0 )
---
updated-dependencies:
- dependency-name: sharp
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2 years ago
dependabot[bot]
912f877dec
Bump ionicons from 6.1.3 to 7.1.0 in /searx/static/themes/simple
...
Bumps [ionicons](https://github.com/ionic-team/ionicons ) from 6.1.3 to 7.1.0.
- [Release notes](https://github.com/ionic-team/ionicons/releases )
- [Changelog](https://github.com/ionic-team/ionicons/blob/main/CHANGELOG.md )
- [Commits](https://github.com/ionic-team/ionicons/compare/v6.1.3...v7.1.0 )
---
updated-dependencies:
- dependency-name: ionicons
dependency-type: direct:development
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2 years ago
Markus Heiser
a7f1649190
[fix] remove duplicate key in simple theme ESLint configuration
...
Partial merge of [PR-1736]
[PR-1736] https://github.com/searxng/searxng/pull/1736
Suggested-by: @FunctionalHacker in [1]
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2 years ago
dependabot[bot]
a5a73d77b3
Bump grunt from 1.5.3 to 1.6.1 in /searx/static/themes/simple
...
Bumps [grunt](https://github.com/gruntjs/grunt ) from 1.5.3 to 1.6.1.
- [Release notes](https://github.com/gruntjs/grunt/releases )
- [Changelog](https://github.com/gruntjs/grunt/blob/main/CHANGELOG )
- [Commits](https://github.com/gruntjs/grunt/compare/v1.5.3...v1.6.1 )
---
updated-dependencies:
- dependency-name: grunt
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2 years ago
mrpaulblack
b3883dc395
[build] /static
2 years ago
mrpaulblack
8ead23347f
[fix] use input elements for pagination requests
...
* use html input elements instead of buttons for the pagination forms at the bottom of the result page
* move the less section that hides the pagination number widget on mobile to the mobile section
* clean up the less code for styling the numbers of the pagination widget
* fix: add the margin for box results (like in news category) to the bottom of the result to have a margin between pagination widget and article result
2 years ago
llmII
d2b2300ee1
Feature: Pagination Widget with list of numbers.
...
Adds to the navigation widget, preserving forward/backward nav, and
inserting a list of clickable page numbers between them.
Phone sized devices continue without this widget as deterministic
display under small screen sizes has not been solved.
The widget is agnostic to the actual amount of pages there are that one
can navigate to and as such shows all plausible, albeit not necessarilly
valid, possibilities.
This widget does not interfere with infinite scroll in any fashion.
2 years ago
Markus Heiser
9d6b048fba
[build] /static
2 years ago
llmII
33d97fd01a
Fix #2083
...
This changes the Suggestions to be a single column, not a wrapping row,
changing the input to be incapable of overflowing into visually adjacent
elements.
2 years ago
Markus Heiser
b2a80347e3
[build] /static
2 years ago
ahmad-alkadri
db70c262c3
Add flex-wrap to the list of engines
2 years ago
Markus Heiser
e9a7a6aea6
[build] /static
2 years ago
Markus Heiser
d913f0d8aa
[build] /static
2 years ago
dependabot[bot]
3cade9a7eb
Bump svgo from 2.8.0 to 3.0.0 in /searx/static/themes/simple
...
Bumps [svgo](https://github.com/svg/svgo ) from 2.8.0 to 3.0.0.
- [Release notes](https://github.com/svg/svgo/releases )
- [Changelog](https://github.com/svg/svgo/blob/main/CHANGELOG-old.md )
- [Commits](https://github.com/svg/svgo/compare/v2.8.0...v3.0.0 )
---
updated-dependencies:
- dependency-name: svgo
dependency-type: direct:development
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2 years ago
Alexandre FLAMENT
fe43b6e821
[build] /static
2 years ago
Alexandre FLAMENT
5ba831d6a8
Add paper.html result template
2 years ago
dependabot[bot]
cbf65e8292
Bump sharp from 0.30.7 to 0.31.0 in /searx/static/themes/simple
...
Bumps [sharp](https://github.com/lovell/sharp ) from 0.30.7 to 0.31.0.
- [Release notes](https://github.com/lovell/sharp/releases )
- [Changelog](https://github.com/lovell/sharp/blob/main/docs/changelog.md )
- [Commits](https://github.com/lovell/sharp/compare/v0.30.7...v0.31.0 )
---
updated-dependencies:
- dependency-name: sharp
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2 years ago
Alexandre FLAMENT
268fa7e036
[build] /static
2 years ago
Alexandre FLAMENT
4a72a6b9fc
Theme: fix autocompletion with the POST method
...
With the POST method, autocomplete.js does not URL encode the values.
For example "1+1" is sent as "1+1" which is read as "1 1" since space are URL encoded with a plus.
There is no clean way to fix the bug since autocomplete.js seems abandoned.
The commit monkey patches the ajax function of autocomplete.js
Related to #1695
2 years ago
Markus Heiser
299635fb8b
[build] /static
2 years ago
Markus Heiser
b08a779f2e
make pygments.less
...
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2 years ago
Alexandre Flament
be3ecf6e31
[build] /static
2 years ago
Alexandre Flament
eb489c45ea
Submit GH bug: ask the user to do some checks before submitting a new issue
2 years ago
Markus Heiser
8de0b62005
[build] /static
2 years ago
Markus Heiser
f8222eb2cd
[fix] style.less: move <dl> from infobox.attributes to .attributes class
...
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2 years ago
Alexandre Flament
e3e5d2bd22
Theme: all top right icons have labels including "Preferences"
2 years ago
Alexandre Flament
86f14fd066
[build] /static
2 years ago
Alexandre Flament
6e2b5f3d5a
Theme: add Help and Donate links in all pages
...
Close https://github.com/searxng/searxng/issues/931
2 years ago
Alexandre Flament
0f3e98ace4
Theme: upgrade dependencies & minor update of the grunt scripts
...
Remove webfont grunt script
Update clean grunt script
2 years ago
Alexandre Flament
e6c3000909
[build] /static
2 years ago
Alexandre Flament
8a85d1b0c7
Theme: add a preference to center the results (Oscar) (2nd edition)
...
related to
* #1169
* #1281
* #1286
2 years ago
Markus Heiser
1a361e6635
[build] /static
2 years ago
Markus Heiser
882282d0e9
[fix] keyboard.js - highlightResult: don't steal focus on click event
...
For keyboard navigation the highlightResult() function in keyboard.js steals the
focus. On a mouse click event (non keyboard action) the focus should resist
where it is, otherwise a marked region gets lost. This is the reason why text
can't be selected when using simple theme with JS enabled.
Closes: https://github.com/searxng/searxng/issues/794
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2 years ago
Alexandre Flament
3ade7ffc26
[build] /static
2 years ago
Alexandre Flament
fe1683c9c6
UX fix: when the user clicks on the search input, don't move the cursor at the end
...
Related to https://github.com/searxng/searxng/pull/1153#issuecomment-1154247988
2 years ago
Alexandre Flament
06217ef184
[build] /static
2 years ago
Alexandre Flament
9723cef99a
Revert "Theme: add a preference to center the results (Oscar)"
...
This reverts commit 4237f5fd50
.
2 years ago
Alexandre Flament
2c62360e6e
[build] /static
2 years ago
Alexandre Flament
4237f5fd50
Theme: add a preference to center the results (Oscar)
...
related to #1169
2 years ago
Alexandre FLAMENT
7e8a60fb27
[build] /static
2 years ago
Alexandre FLAMENT
fbad93e808
Theme: enable autofocus of #q only on the index page and when the width > 50em
...
Related to #1270
2 years ago
mrpaulblack
bc89bb4790
[build] /static
2 years ago
mrpaulblack
392c9c4243
[simple theme] add products.html template
2 years ago
mrpaulblack
58d4086ce1
[build] /static
2 years ago
mrpaulblack
33c0a9e410
[fix] loading of external resources in JS client toolkit
2 years ago
mrpaulblack
6b124e5120
[build] /static
2 years ago
Monty
2115f6565e
[mod] simple theme: colors, autocomplete, border
...
* change colors, autocomplete, delete border in some places
2 years ago
Alexandre Flament
1e45dbbae9
[build] /static
2 years ago
Alexandre Flament
9b3efa6d8a
theme: remove __common__
2 years ago
Markus Heiser
8175290867
[build] /static
2 years ago
Markus Heiser
444b1e70db
[mod] add setting: search.autocomplete_min
...
Minimun characters to type before autocompleter starts.
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2 years ago
Markus Heiser
ed2a4c8087
[mod] client_settings: pass settings from server to JS client
...
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2 years ago
Markus Heiser
3f18761adb
Revert "[build] /static"
2 years ago
Markus Heiser
0f18bfc8a5
[build] /static
2 years ago
Markus Heiser
ad1aca6823
[theme] delete static/themes/oscar and templates/oscar
...
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
templates/oscar# gelöscht: searx/static/themes/oscar/fonts/glyphicons-halflings-regular.ttf
3 years ago
Markus Heiser
0275f0f5ad
[upd] ./manage pyenv.cmd searxng_extra/update/update_pygments.py
...
After each update of the pygments version, we (or github action) should [1]
1. update less files:
./manage pyenv.cmd searxng_extra/update/update_pygments.py
update: static/themes/oscar/src/generated/pygments-logicodev.less
update: static/themes/oscar/src/generated/pygments-pointhi.less
update: static/themes/simple/src/generated/pygments.less
2. rebuild the static files of each themes:
make static.build.commit
[1] https://github.com/searxng/searxng/pull/2#issuecomment-826958666
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
3 years ago
dependabot[bot]
1974a85461
Bump grunt-contrib-uglify in /searx/static/themes/simple
...
Bumps [grunt-contrib-uglify](https://github.com/gruntjs/grunt-contrib-uglify ) from 5.1.0 to 5.2.1.
- [Release notes](https://github.com/gruntjs/grunt-contrib-uglify/releases )
- [Changelog](https://github.com/gruntjs/grunt-contrib-uglify/blob/main/CHANGELOG )
- [Commits](https://github.com/gruntjs/grunt-contrib-uglify/compare/v5.1.0...v5.2.1 )
---
updated-dependencies:
- dependency-name: grunt-contrib-uglify
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
3 years ago
Markus Heiser
50bac93363
Merge pull request #1094 from searxng/dependabot/npm_and_yarn/searx/static/themes/simple/master/grunt-1.5.2
...
Bump grunt from 1.4.1 to 1.5.2 in /searx/static/themes/simple
3 years ago
Markus Heiser
4ab189315b
[build] /static
3 years ago
Markus Heiser
2bcd610eeb
[fix] add missing result.length and result.author to simple theme
...
Closes: https://github.com/searxng/searxng/issues/1027
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
3 years ago
dependabot[bot]
e314cfe667
Bump grunt from 1.4.1 to 1.5.2 in /searx/static/themes/simple
...
Bumps [grunt](https://github.com/gruntjs/grunt ) from 1.4.1 to 1.5.2.
- [Release notes](https://github.com/gruntjs/grunt/releases )
- [Changelog](https://github.com/gruntjs/grunt/blob/main/CHANGELOG )
- [Commits](https://github.com/gruntjs/grunt/compare/v1.4.1...v1.5.2 )
---
updated-dependencies:
- dependency-name: grunt
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
3 years ago
mrpaulblack
170f0081c9
[build] /static
3 years ago
mrpaulblack
169f8d9988
[simple theme] add netloc to image result articles
3 years ago
dependabot[bot]
b40d57df82
Bump grunt-contrib-uglify in /searx/static/themes/oscar
...
Bumps [grunt-contrib-uglify](https://github.com/gruntjs/grunt-contrib-uglify ) from 5.0.1 to 5.1.0.
- [Release notes](https://github.com/gruntjs/grunt-contrib-uglify/releases )
- [Changelog](https://github.com/gruntjs/grunt-contrib-uglify/blob/main/CHANGELOG )
- [Commits](https://github.com/gruntjs/grunt-contrib-uglify/compare/v5.0.1...v5.1.0 )
---
updated-dependencies:
- dependency-name: grunt-contrib-uglify
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
3 years ago
dependabot[bot]
c199eadaf9
Bump grunt-contrib-uglify in /searx/static/themes/simple
...
Bumps [grunt-contrib-uglify](https://github.com/gruntjs/grunt-contrib-uglify ) from 5.0.1 to 5.1.0.
- [Release notes](https://github.com/gruntjs/grunt-contrib-uglify/releases )
- [Changelog](https://github.com/gruntjs/grunt-contrib-uglify/blob/main/CHANGELOG )
- [Commits](https://github.com/gruntjs/grunt-contrib-uglify/compare/v5.0.1...v5.1.0 )
---
updated-dependencies:
- dependency-name: grunt-contrib-uglify
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
3 years ago
Monty
a5b013be4f
[build] /static
3 years ago
Monty
c09ce4d0f2
Fix answer box bug
...
Fix bug of too long words.
3 years ago
mrpaulblack
fb5169c839
[build] /static
3 years ago
mrpaulblack
d8d42c8541
[fix] revert changes from #997
...
* in #997 there was a bug introduced: #1002
-> for now we just revert the change to make the image detail modal usable again
3 years ago