MrPaulBlack
d8c9839625
[build] /static
2021-10-09 16:03:58 +02:00
MrPaulBlack
bc2c8e6ba9
[simple theme] add a dark theme
...
* add a new color theme for a dark mode
* make the device auto switch between dark and light theme
2021-10-09 16:00:56 +02:00
MrPaulBlack
3daa024c04
[simple theme] new color theme and result on mobile and tablet
...
* clean up vars in defenition
* results look now the same on mobile and desktop
* reworked results on mobile
* new color theme with more vibrant colors
2021-10-09 16:00:56 +02:00
MrPaulBlack
740fca00cc
Redo Color Theme and css cleanup
...
* remove vars and add elements to base and btn vars
* change default border radius to 10px and padding to 0.7em
* put border radius and padding on search input form, infoxbox and buttons
* remove unused .help class in #categories_container
* remove active background from tabs to straemline design
* redo search form: 10px padding
* 2rem margin on search results on desktop
* fix modal pacement of engine reliability in prefs
* use darker accent colors
* streamline autocomplete with more padding and a hover effect
2021-10-09 16:00:56 +02:00
MrPaulBlack
7c2a518d12
[theme] replace all hardcoded colors by css vars and drop ununsed vars
2021-10-09 16:00:55 +02:00
MrPaulBlack
452b266387
[theme] convert less vars to css vars in simple theme
2021-10-09 16:00:55 +02:00
dependabot[bot]
94de9ee61a
Bump grunt-contrib-jshint in /searx/static/themes/oscar
...
Bumps [grunt-contrib-jshint](https://github.com/gruntjs/grunt-contrib-jshint ) from 3.0.0 to 3.1.1.
- [Release notes](https://github.com/gruntjs/grunt-contrib-jshint/releases )
- [Changelog](https://github.com/gruntjs/grunt-contrib-jshint/blob/main/CHANGELOG )
- [Commits](https://github.com/gruntjs/grunt-contrib-jshint/commits/v3.1.1 )
---
updated-dependencies:
- dependency-name: grunt-contrib-jshint
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-10-08 07:46:52 +00:00
dependabot[bot]
a88ee63aca
Bump grunt-contrib-jshint in /searx/static/themes/simple
...
Bumps [grunt-contrib-jshint](https://github.com/gruntjs/grunt-contrib-jshint ) from 3.0.0 to 3.1.1.
- [Release notes](https://github.com/gruntjs/grunt-contrib-jshint/releases )
- [Changelog](https://github.com/gruntjs/grunt-contrib-jshint/blob/main/CHANGELOG )
- [Commits](https://github.com/gruntjs/grunt-contrib-jshint/commits/v3.1.1 )
---
updated-dependencies:
- dependency-name: grunt-contrib-jshint
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-10-08 07:05:58 +00:00
Alexandre Flament
715c445e9b
[build] /static
2021-10-03 19:04:18 +02:00
Alexandre Flament
a53a4d5012
[build] /static
2021-10-01 18:09:37 +02:00
Alexandre Flament
74b0830362
SearXNG: simple theme
2021-10-01 18:06:55 +02:00
Alexandre Flament
1dfac73a64
[build] /static
2021-09-30 19:01:50 +02:00
Alexandre Flament
df06dddc04
SearXNG: oscar theme
2021-09-30 18:50:21 +02:00
MrPaulBlack
43fc136207
[build] /static
2021-09-28 00:26:43 +02:00
MrPaulBlack
57f58f85bd
[fix] position of engine description tooltip
2021-09-28 00:26:17 +02:00
Markus Heiser
73cb80e71d
[build] /static
2021-09-27 17:40:11 +02:00
Markus Heiser
8ac776765c
[theme] simple: do not prefer arial over user's sans-serif font
...
The default *sans-serif* font from the browsers most often renders much better
compared to Arial font.
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-09-27 17:37:15 +02:00
MrPaulBlack
e8ed56251a
[build] /static
2021-09-27 13:47:00 +02:00
MrPaulBlack
f81afed60b
[fix] backtotop and pagination on image result page
2021-09-27 13:46:40 +02:00
MrPaulBlack
8268873701
[fix] several issues in the simple theme
...
- using more rem in style and definitions
- mobile width in preferences.less fix max-width: 75em to 80em (normalized with
style.less and other)
- do not display #backToTop position on tablet (when max-width: 80em)
- fix answer box on mobile (when max-width: 50em)
2021-09-27 13:17:17 +02:00
MrPaulBlack
b6ae1f1c7a
[theme] margin around checkboxes is bigger now, index centers the search more and the pref, stats and about page have a max-width now
2021-09-27 12:26:54 +02:00
MrPaulBlack
859179f0c9
[theme] optimize switching between different device types
2021-09-27 12:26:54 +02:00
MrPaulBlack
385dce213b
[theme] cleanup grid layout and remove various margins and paddings from elements
2021-09-27 12:26:54 +02:00
Alexandre Flament
cc3c54f4cd
simple theme: update
2021-09-27 12:26:54 +02:00
MrPaulBlack
88c17d106d
[fix] make selected tabs not change wifth anymore compared to not being selected
2021-09-27 12:26:54 +02:00
Alexandre Flament
39876d9f14
[build] /static
2021-09-24 20:38:56 +02:00
Alexandre Flament
2f1384f198
[enh] themes: display the engine descriptions
2021-09-24 20:38:05 +02:00
MrPaulBlack
30a9146bdc
[build] /static
2021-09-24 18:02:07 +02:00
MrPaulBlack
7cb5099c88
[preferences] make elements in query selecter align left
2021-09-24 18:01:20 +02:00
MrPaulBlack
fa95cd91a8
[build] /static
2021-09-22 21:44:35 +02:00
MrPaulBlack
79351c2e4d
[fix] searx.js null pointer exception when category div is missing
2021-09-22 21:41:19 +02:00
Alexandre Flament
e8e81c7432
[build] /static
2021-09-19 22:01:19 +02:00
Alexandre Flament
2cc6301c98
[fix] Oscar theme: fix input field on Safari
...
close #323
2021-09-19 22:00:59 +02:00
Markus Heiser
b0623ac9f6
[build] /static
2021-09-07 17:48:56 +02:00
Markus Heiser
bd830f7449
[fix] simple theme - preferences: fix tooltip overflow
...
Suggested-by: @dalf https://github.com/searxng/searxng/pull/295#discussion_r703370358
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-09-07 16:46:49 +02:00
Markus Heiser
9068a72c6a
[fix] oscar theme - preferences: rename col-checkbox/col-stat
...
[1] https://github.com/searxng/searxng/pull/295#discussion_r703318053
[2] https://github.com/searxng/searxng/pull/295#discussion_r703337237
Suggested-by: @dalf [1] [2]
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-09-07 12:26:07 +02:00
Markus Heiser
222031e975
[fix] make oscar theme more CSP compliant - col-checkbox
...
Add col-checkbox in::
searx/static/themes/oscar/src/less/preferences.less
Replaced style in file::
searx/templates/oscar/preferences.html
Reported-by: https://github.com/searxng/searxng/issues/57
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-09-07 08:24:48 +02:00
Markus Heiser
9d106ae972
[fix] make oscar theme more CSP compliant - default-image-style
...
Add default-image-style in::
searx/static/themes/oscar/src/less/result_templates.less
Replaced style= in files::
./oscar/result_templates/default.html:19: <img src="{{ image_proxify(result.img_src or result.thumbnail) }}" title="{{ result.title|striptags }}" style="width: auto; max-height: 60px; min-height: 60px;" class="col-xs-2 col-sm-4 col-md-4 result-content">
./oscar/result_templates/files.html:24:<img src="{{ image_proxify(result.img_src) }}" alt="{{ result.title|striptags }}" title="{{ result.title|striptags }}" style="width: auto; max-height: 60px; min-height: 60px;" class="col-xs-2 col-sm-4 col-md-4 result-content">
Reported-by: https://github.com/searxng/searxng/issues/57
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-09-07 08:20:30 +02:00
Markus Heiser
0d070fde92
[build] /static
2021-09-06 11:12:17 +02:00
Markus Heiser
ad528c706e
[fix] make result template map more CSP compliant - simple & oscar
...
Add osm-map-box in::
searx/static/themes/__common__/less/result_templates.less
Replaced sty= in files::
./oscar/result_templates/map.html:64: <div style="height:300px; width:100%; margin: 10px 0;" id="osm-map-{{ index }}"></div>
./simple/result_templates/map.html:65: <div id="result-map-{{ index }}" class="invisible"><div id="osm-map-{{ index }}" style="height:300px; width:100%; margin: 10px 0;" ></div></div>
Reported-by: https://github.com/searxng/searxng/issues/57
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-09-06 11:08:50 +02:00
Markus Heiser
37b3d8c33b
Merge pull request #276 from dalf/simple_eslint
...
Simple theme: eslint and bug fix
2021-08-31 16:13:47 +00:00
Alexandre Flament
d246679dbe
[build] /static
2021-08-31 15:43:28 +02:00
Alexandre Flament
f77f797f8c
[mod] simple theme: fix eslint errors, fix VIM keys
...
* VIM keys: fix the next page and previous pages (n, p keys)
* Map: Enable the wikipedia map (the layer was initialized but not included)
2021-08-31 15:41:31 +02:00
Alexandre Flament
0ee316f3d1
eslint: grunt integration
2021-08-31 12:20:23 +02:00
Markus Heiser
2948a99b6e
[mod] simple theme - add ESLint
...
[1] https://eslint.org/
[2] https://eslint.org/docs/user-guide/configuring/
[3] https://eslint.org/docs/user-guide/command-line-interface
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-08-31 12:20:23 +02:00
Alexandre Flament
d29094579b
[build] /static
2021-06-28 10:39:10 +02:00
Markus Heiser
76a066d4a3
[mod] themes: remove banner generated by grunt
...
The banner is useless and responsible for unwanted diff.
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-06-28 10:38:44 +02:00
Markus Heiser
a3f58a3a3d
[emacs] .dir-locals.el: add setup for js-mode
...
- move jshint option from gruntfile to .jshintrc
- remove trailing-whitespace from gruntfile and
- add jshint esversion: 6
- .dir-locals.el add locals for js-mode to use JSHint from the simple theme
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-06-24 13:27:21 +02:00
Markus Heiser
f73a00dcee
[stylelint] disable role 'no-descending-specificity'
...
This patch disables role 'no-descending-specificity'. IMO it is better to have
this rule active (see below [1]), but it is hard to rewrite the less files to
pass this rule, so for the first I chose to disable this rule.
---
Source order is important in CSS, and when two selectors have the same
specificity, the one that occurs last will take priority. However, the situation
is different when one of the selectors has a higher specificity. In that case,
source order does not matter: the selector with higher specificity will win out
even if it comes first.
The clashes of these two mechanisms for prioritization, source order and
specificity, can cause some confusion when reading stylesheets. If a selector
with higher specificity comes before the selector it overrides, we have to think
harder to understand it, because it violates the source order
expectation. Stylesheets are most legible when overriding selectors always come
after the selectors they override. That way both mechanisms, source order and
specificity, work together nicely.
This rule enforces that practice as best it can, reporting fewer errors than it
should. It cannot catch every actual overriding selector, but it can catch
certain common mistakes.
[1] https://stylelint.io/user-guide/rules/list/no-descending-specificity/
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-06-24 13:27:21 +02:00
Markus Heiser
0b7d03c694
[stylelint] simple theme: fix some errors reported by stylelint
...
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-06-24 13:27:21 +02:00
Markus Heiser
14b09c15c4
[fix] simple theme: use stylint to fix common lint errors
...
This fix was autogenerated by::
npx stylelint -f unix --fix 'searx/static/themes/simple/src/less/**/*.less'
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-06-24 13:27:21 +02:00
Markus Heiser
dfc5c3bc15
[mod] add stylelint process to target themes.simple
...
Before build, do lint the LESS files using stylelint [1]. The configuration
'stylelint-config-standard' [2] is added to the root of the simple theme [3].
[1] https://stylelint.io/
[2] https://github.com/stylelint/stylelint-config-standard
[3] https://stylelint.io/user-guide/configure
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-06-24 13:27:21 +02:00
Alexandre Flament
04492b76de
[themes] ignore packages-lock.json
2021-06-22 08:17:06 +02:00
Alexandre Flament
2bc9b00cd7
Static build
2021-06-22 08:15:17 +02:00
Alexandre Flament
dca3bcca9e
[mod] simple theme: include fonts
...
"npm run webfont" to build the fonts directory.
It requires fontforge and ttfautohint distro packages.
partial revert of commit 7137d2893f
2021-06-22 08:15:17 +02:00
Alexandre Flament
d20f6a1f19
[mod] make themes.all update pygments*.less
...
Add a searx/static/themes/*/src/generated empty folder
2021-06-22 08:15:11 +02:00
Alexandre Flament
bb3e67f72b
[mod] simple theme: normalize.css becomes a packages.json dependency
2021-06-21 08:28:29 +02:00
Alexandre Flament
14ba56fd1a
[mod] make node.clean: call the "clean" script from the packages.json
...
The dependencies and build process are described in the gruntfiles.js and packages.json files.
It makes sense to move the clean up to these files too.
2021-06-16 16:04:58 +02:00
Alexandre Flament
c013256881
[mod] remove common grunt install
...
Before this commit, there are 3 node_modules directory:
* one in .
* two others in ./searx/statics/themes/*
This is no desirable:
* it declares the npm depdenencies in the shell script.
* dependabot can't updates theses dependencies.
* this is a not standard way to build a package (two different locations for the dependencies).
With this commit and the PR #150 there is one unique node_modules directory per theme.
2021-06-16 15:39:32 +02:00
Alexandre Flament
85033f3d09
Static build
2021-06-16 14:30:46 +02:00
Alexandre Flament
7137d2893f
[mod] simple theme: remove src/less/ion.less
...
This file is generated by webfont.
* It is now generated as searx/static/themes/simple/ion.less
* It is generated before the .less compilation.
* .gitignore includes this file
Add two new package depedencies: fontforge ttfautohint
See utils/searx.sh
2021-06-16 14:30:09 +02:00
Alexandre Flament
e3ebfd41d7
[mod] simple theme: autocomplete-js becomes a packages.json dependency
...
Update to version 2.7.1
2021-06-16 12:44:07 +02:00
Alexandre Flament
b4a47cacd8
[mod] simple theme: leaflet becomes a packages.json dependency
...
the build of the themes updates:
* js/leaflet.js ( was leaflet/leaflet.js )
* css/leaflet.css ( was leaflet/leaflet.css )
* css/images ( was leaflet/images )
2021-06-16 12:44:07 +02:00
Alexandre Flament
6288b549e2
[mod] simple theme: move magnet.svg to src/fonts
...
see https://github.com/searx/searx/pull/1109
2021-06-16 12:44:07 +02:00
Alexandre Flament
6b80c57a3c
[mod] simple theme: move source files to the src directory
2021-06-16 12:38:06 +02:00
Alexandre Flament
49ea5b7644
Static build
2021-06-16 09:16:37 +02:00
Alexandre Flament
9108c90f0e
[mod] simple theme: update dependencies
2021-06-16 09:16:02 +02:00
Markus Heiser
15178e5b96
[static] make themes.all - based on commit 12af3b39
...
Based on commit 12af3b39
this patch is generated by::
make themes.all
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-06-10 09:20:51 +02:00
Markus Heiser
12af3b39db
[fix] make simple/result_templates/map.html more CSP compliant [1]
...
[1] https://github.com/searxng/searxng/issues/57
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-06-09 18:08:23 +02:00
Markus Heiser
bf10b4a857
[fix] openstreetmap - fix some minor whitespace & indentation issues
...
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-06-09 18:08:23 +02:00
Alexandre Flament
c75425655f
[enh] openstreetmap / map template: improve results
...
implements ideas described in #69
* update the engine
* use wikidata
* update map.html template
2021-06-09 18:08:23 +02:00
Markus Heiser
60dc91f234
[static] make /stats more CSP compliant- make themes.all
...
Based on commit:
- a89b823f
[mod] remove overpass API call
this patch is generated by::
make themes.all
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-06-01 17:54:31 +02:00
Alexandre Flament
a89b823f8d
[mod] remove overpass API call
...
prepare the code the PR #90
2021-06-01 17:52:49 +02:00
Kyle Anthony Williams
d6a2d4f969
[enh] add engine - Docker Hub
...
Slightly modified merge of commit [1cb1d3ac] from searx [PR 2543]:
This adds Docker Hub .. as a search engine .. the engine's favicon was
downloaded from the Docker Hub website with wget and converted to a PNG
with ImageMagick .. It supports the parsing of URLs, titles, content,
published dates, and thumbnails of Docker images.
[1cb1d3ac] https://github.com/searx/searx/pull/2543/commits/1cb1d3ac
[PR 2543] https://github.com/searx/searx/pull/2543
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-05-30 15:18:36 +02:00
Markus Heiser
73d73dcf9b
[static] make /stats more CSP compliant- make themes.all
...
Based on commits
- 0507e185
[fix] bar graph and rename CSS class engine-scores -> engine-score
- 3e9ad7ae
[fix] make /stats more CSP compliant - github issue form
- 34859d0e
[fix] make /stats more CSP compliant - oscar theme
- 0a6c4884
[fix] make /stats more CSP compliant - simple theme
- cdfb4b7f
[fix] make /stats more CSP compliant - bar graph
- 965817f2
[fix] simple theme - generate missing sourceMap file
this patch is generated by::
make themes.all
Reported-by: https://github.com/searxng/searxng/issues/57
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-05-17 21:25:32 +02:00
Markus Heiser
0507e185a5
[fix] bar graph and rename CSS class engine-scores -> engine-score
...
- drop #main_stats selector in stats.less
- 'engine-score' exists before this PR.
- untabify searx/static/themes/__common__/less/stats.less
for details see comment at: d93bec7638..1204e4f07e (r633571496)
Suggested-by: @dalf in commit 1204e4f0
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-05-17 21:24:19 +02:00
Markus Heiser
3e9ad7ae0c
[fix] make /stats more CSP compliant - github issue form
...
Hide textarea from github issue form::
./__common__/new_issue.html:6: <textarea name="body" style="display: none;">{{- '' -}}
BTW: fix indentation.
Reported-by: https://github.com/searxng/searxng/issues/57
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-05-17 21:23:27 +02:00
Markus Heiser
0a6c488417
[fix] make /stats more CSP compliant - simple theme
...
Replace simple theme's *styles* (see below) by CSP compliant implementation in
``searx/static/themes/simple/less/stats.less`` ::
./simple/stats.html:26: <table style="max-width: 1280px; margin: 0 auto 0 0;">
./simple/stats.html:28: <th scope="col" style="width:20rem;">{{ th_sort('name', _("Engine name")) }}</th>
./simple/stats.html:29: <th scope="col" style="width:7rem; text-align: right;">{{ th_sort('score', _('Scores')) }}</th>
./simple/stats.html:32: <th scope="col" style="text-align: right;">{{ th_sort('reliability', _('Reliability')) }}</th>
./simple/stats.html:37: <td style="text-align: right;">
./simple/stats.html:90: <td style="text-align: right;"> {{ engine_reliabilities.get(engine_stat.name, {}).get('reliablity') }}</td>
./simple/stats.html:106: <table style="max-width: 1280px; margin: 1rem; border: 1px solid gray;">
./simple/stats.html:107: <tbody style="padding-top: 1rem;">
./simple/stats.html:110: <th scope="row" style="width: 10rem">{{ _('Exception') }}</th><td>{{ error.exception_classname }}</td>
./simple/stats.html:112: <th scope="row" style="width: 10rem">{{ _('Message') }}</th><td>{{ error.log_message }}</td>
./simple/stats.html:114: <th scope="row" style="width: 10rem">{{ _('Percentage') }}</th><td style="width: 10rem">{{ error.percentage }}</td>
./simple/stats.html:119: <span style="border-right: 1px solid gray; padding: 0 1rem 0 0; margin: 0 0 0 0.5rem;">{{ param }}</span>
./simple/stats.html:136: <th scope="col" style="width: 10rem">{{ _('Failed test') }}</th>
Reported-by: https://github.com/searxng/searxng/issues/57
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-05-17 17:41:22 +02:00
Markus Heiser
cdfb4b7ff9
[fix] make /stats more CSP compliant - bar graph
...
Replace bar graph's *styles* (see below) by CSP compliant implementation in
``searx/static/themes/__common__/less/stats.less`` ::
./simple/stats.html:49: <span style="width: calc(max(2px, 100%*{{ (engine_stat.result_count / engine_stats.max_result_count )|round(3) }}))" class="stacked-bar-chart-serie1"></span>{{- "" -}}
./simple/stats.html:57: <span style="width: calc(max(2px, 100%*{{ (engine_stat.http / engine_stats.max_time )|round(3) }}))" class="stacked-bar-chart-serie1"></span>{{- "" -}}
./simple/stats.html:58: <span style="width: calc(100%*{{ engine_stat.processing / engine_stats.max_time |round(3) }})" class="stacked-bar-chart-serie2"></span>{{- "" -}}
./oscar/stats.html:50: <span style="width: calc(max(2px, 100%*{{ (engine_stat.result_count / engine_stats.max_result_count )|round(3) }}))" class="stacked-bar-chart-serie1"></span>{{- "" -}}
./oscar/stats.html:58: <span style="width: calc(max(2px, 100%*{{ (engine_stat.http / engine_stats.max_time )|round(3) }}))" class="stacked-bar-chart-serie1"></span>{{- "" -}}
./oscar/stats.html:59: <span style="width: calc(100%*{{ engine_stat.processing / engine_stats.max_time |round(3) }})" class="stacked-bar-chart-serie2"></span>{{- "" -}}
Reported-by: https://github.com/searxng/searxng/issues/57
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-05-17 17:41:22 +02:00
Markus Heiser
965817f294
[fix] simple theme - generate missing sourceMap file
...
C&P from searx/static/themes/oscar/gruntfile.js
Suggested-by: @dalf in commit 1204e4f0
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-05-17 17:41:22 +02:00
Markus Heiser
93594a7b42
[less] update grunt-contrib-less v3.3.0
...
Upgraded [v3.3.0] otherwise::
` width: calc(100% - 5rem);`
becomes `width: 95%` once compiled by less version 1.4.1.
[v3.3.0] https://github.com/gruntjs/grunt-contrib-less/releases/tag/v3.0.0
Suggested-by: @dalf in commit 1204e4f0
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-05-17 17:41:22 +02:00
Markus Heiser
8291804082
[static] make themes.all - from commit 9e8171e38
...
Based on commit 9e8171e38 this patch is generated by::
make themes.all
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-04-28 16:22:47 +02:00
Markus Heiser
70cc196e2d
[fix] new_issue.html: drop inline style attributes (CSP conformance)
...
Inline styles are blocked by default with Content Security Policy (CSP). Move
the inline styles from 'new_issue.html' to::
searx/static/themes/__common__/less/new_issue.less
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-04-28 16:22:37 +02:00
Markus Heiser
7f2dc530b2
[fix] simple theme - remove no longer used stats.less file
...
File searx/static/themes/simple/less/stats.less is not used (imported) in any
other less file. I can't say when it's usage was dropped or if it has ever been
used. ATM this file is without any usage.
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-04-28 15:42:08 +02:00
Markus Heiser
54d57c8296
[fix] grunt/less/development: oscar light & dark logicodev mixes CSS
...
closes: https://github.com/searxng/searxng/issues/39
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-04-28 15:15:29 +02:00
Markus Heiser
6b92e8c6fd
[upd] ./manage pyenv.cmd searx_extra/update/update_pygments.py
...
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-04-26 19:11:58 +02:00
Alexandre Flament
7032f7521c
[mod] /stats: simple theme implementation
2021-04-24 06:58:49 +02:00
Alexandre Flament
09e7ecdce2
[mod] /stats : add reliability column and sort by column links
2021-04-24 06:58:49 +02:00
Alexandre Flament
65c29081cc
[mod] update /stats
2021-04-24 06:58:22 +02:00
Alexandre Flament
baff1cbbab
fix issues from review
2021-04-21 18:49:13 +02:00
Alexandre Flament
7cfd8d900a
[mod] oscar: /preferences , engines tab: report engine times
...
* display the median time instead of the average.
* add a "Reliability" column (sum up the metrics and the checker results).
* the "selected language", "SafeSearch", "Time range" values are displayed as "broken" when the checker tests fail.
2021-04-21 16:24:46 +02:00
Alexandre Flament
92db0227b1
Merge remote-tracking branch 'dalf/oscar-images'
2021-04-19 09:36:54 +02:00
Markus Heiser
062d589f86
[fix] xpath expressions to grap all items from bandcamp's response
...
I also found some items missing a thumbnail and I used text_extract for content
and title, to remove unneeded whitespaces.
BTW: added bandcamp's favicon
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-04-15 08:52:11 +02:00
Alexandre Flament
7a0fbdecc4
[enh] oscar: image thumbnail layout
...
Adjust thumbnail sizes to fill the container width
2021-04-05 11:29:17 +02:00
Marc Abonce Seguin
419b907a0b
fix dark "expand" button from infobox
2021-03-28 21:54:37 -07:00
Alexandre Flament
d648001688
[mod] preferences: a tooltip is shown when the mouse is over the engine names
2021-03-22 08:22:59 +01:00
Alexandre Flament
6bd01bf81f
[mod] oscar: fix the sourcemap URL in *.min.css
...
Close https://github.com/searx/searx/issues/2670
Note: clean-css contains a bug:
* a multiline comment or URL adds "$stdin" to the sourcemap (see src/less/logicodev/search.less)
* in this case when the user opens the devtools, the browser fails to load this "https://.../$stdin " URL
* it is not a problem and the error appears only when the user actively tries to debug the CSS.
* seems related to https://github.com/jakubpawlowicz/clean-css/issues/593
2021-03-21 18:03:40 +01:00
Alexandre Flament
6553c79029
[mod] replace /translations.js by embedded JSON
...
In webapp.py, there is a new function "get_translations" lists available translations
Close #2064
2021-03-16 11:22:21 +01:00
Alexandre Flament
32cd0d31b3
[mod] upgrade pygments
...
add searx_extra/update/update_pygments.py to update the css style of the oscar and simple themes.
2021-03-16 09:07:08 +01:00
Alexandre Flament
cb04d42806
[mod] oscar: update README.rst
2021-03-11 09:33:04 +01:00
Alexandre Flament
86912e2272
[mod] oscar: get bootstrap and typeahead from NPM
2021-03-11 09:33:01 +01:00
Alexandre Flament
44407353ef
[mod] oscar: get leaflet and jquery from NPM
...
easy to upgrade (package.json)
2021-03-11 09:32:22 +01:00
Alexandre Flament
c7133efb12
[mod] oscar: move compiled files to the src directory
2021-03-10 19:28:51 +01:00
Alexandre Flament
eda3b513ac
[mod] oscar: remove polyfills for Internet Explorer
2021-03-10 19:01:16 +01:00
Alexandre Flament
1268910274
[mod] oscar: remove unused images
2021-03-10 19:01:16 +01:00
Alexandre Flament
bdb41bea7b
[mod] theme: remove require-2.1.15.min.js
...
See https://github.com/requirejs/requirejs/issues/1816
requirejs loads one file: leaflet.
This commit:
* removes requirejs
* load leaflet using <script src...> HTML tag in searx/templates/oscar/base.html
2021-03-10 19:01:15 +01:00
Alexandre Flament
2f3d5ec2af
[mod] oscar: upgrade npm dependencies
2021-03-10 19:01:14 +01:00
Alexandre Flament
9bc1856e2b
[mod] themes: remove legacy, courgette and pix-art themes
2020-12-17 11:33:28 +01:00
Alexandre Flament
f1e016e9ea
[mod] oscar theme: added option into gruntfile.js for generate sourceMap
...
Credits go to @mrwormo (see PR #2308 )
2020-12-01 10:07:01 +01:00
GazoilKerozen
1b700738eb
[fix] fix the reset button in the oscar theme ( #2306 )
...
Rely on javascript instead of type="clear"
Close #2009
2020-11-30 16:30:21 +01:00
Noémi Ványi
4a36a3044d
Add recoll engine ( #2325 )
...
recoll is a local search engine based on Xapian:
http://www.lesbonscomptes.com/recoll/
By itself recoll does not offer web or API access,
this can be achieved using recoll-webui:
https://framagit.org/medoc92/recollwebui.git
This engine uses a custom 'files' result template
set `base_url` to the location where recoll-webui can be reached
set `dl_prefix` to a location where the file hierarchy as indexed by recoll can be reached
set `search_dir` to the part of the indexed file hierarchy to be searched, use an empty string to search the entire search domain
2020-11-30 08:35:15 +01:00
Marc Abonce Seguin
8d71420b45
[mod] separate index and search routes
...
This makes it easier to separately handle search and index requests
from a web server or from a reverse proxy.
If a request to index contains a query, a permanent redirect HTTP response
is returned. This should give some level of backwards compatibility
for users that have set a searx instance in their browser's search bar.
2020-11-02 20:04:03 -07:00
Alexandre Flament
c23401e9fa
[fix] simple theme: fix autocomplete
...
AJAX requests send the X-Requested-With HTTP header,
so searx.webapp.autocompleter returns the results with the expected data format.
Related to #2127
Close #2203
2020-09-19 10:13:05 +02:00
Marc Abonce Seguin
7e82817925
wait for img to load before hiding infobox toggle
2020-09-10 09:54:30 +02:00
Marc Abonce Seguin
a2430154b9
fix selects in preferences so they look consistent ( #2150 )
2020-08-27 21:55:47 +02:00
Marc Abonce Seguin
0601f2bb48
add toggle to resize infobox
2020-08-10 00:12:45 -07:00
Marc Abonce Seguin
57bad502a6
add visually-hidden css class to pointhi style
2020-08-09 20:44:26 -07:00
Marc Abonce Seguin
74270a3fc2
add class for infobox's official url
2020-08-09 20:44:26 -07:00
Marc Abonce Seguin
001eb047cd
set max-height on infobox's images
2020-08-09 20:44:26 -07:00
Noémi Ványi
74013c212a
Revert "[enh] new plugin to open results on new browser tabs"
...
This reverts commit ab6a7601cb
.
Closes #2037
2020-07-29 22:10:16 +02:00
Adam Tauber
164e4725f3
[mod] add dedicated directory to external plugins with gitignore file
2020-07-28 13:10:40 +02:00
Adam Tauber
3227695b0b
[fix] indicate visually active tab programmatically on the page Preferences - #350
2020-07-06 13:07:45 +02:00
Noémi Ványi
223114c575
[fix] refine contrast ratios of texts and borders - #350
2020-07-02 16:24:58 +02:00
Markus Heiser
f14a7add31
Merge branch 'master' of https://github.com/asciimoo/searx into csp-oscar-theme
2020-06-30 15:37:39 +02:00
Adam Tauber
cc164abdfc
[fix] make "Advanced settings" openable and usable with keyboard - #350
2020-06-25 19:50:26 +02:00
Adam Tauber
a984afd6a3
[enh] make checkboxes in preferences accessible using keyboard - #350
2020-06-23 21:45:57 +02:00
Adam Tauber
cc84566e0a
[enh] add visually hidden but accessible css class - #350
2020-06-23 21:45:57 +02:00
Markus Heiser
ca1c3bd15d
Merge branch 'master' into csp-oscar-theme
2020-06-19 04:51:02 +00:00
Noémi Ványi
4ec2fab583
Consider HTTP request when running search categories on select is enabled
...
Closes #1138
2020-06-18 23:06:09 +02:00
Markus Heiser
cc721b5d86
Merge branch 'master' of https://github.com/asciimoo/searx into csp-oscar-theme
2020-06-16 10:17:03 +02:00
Adam Tauber
4ca0d8cb0f
[enh] add translatable strings to javascript - closes #461
2020-06-15 18:31:14 +02:00
Markus Heiser
e088b95e74
Merge branch 'master' of https://github.com/asciimoo/searx into csp-oscar-theme
2020-06-10 07:25:44 +02:00
Adam Tauber
43f7b84a59
[fix] do not stretch images - fixes #1262
2020-06-10 00:30:39 +02:00
Markus Heiser
d065b9e4fb
Merge branch 'master' into csp-oscar-theme
2020-06-09 08:28:53 +00:00
Adam Tauber
c6ca468df2
[fix] wrap long lines in infoboxes - fixes #1652
2020-06-04 23:22:44 +02:00
Markus Heiser
434e452d54
Merge branch 'master' of https://github.com/asciimoo/searx into csp-oscar-theme
2020-06-04 23:18:22 +02:00
Adam Tauber
08fdfc73fb
[fix] do not autocomplete for pressing enter when mouse is on the completion list - fixes #340
2020-06-03 15:36:22 +02:00
Adam Tauber
47cddcab8b
[mod] reduce the gap between results
2020-06-03 15:04:01 +02:00
Adam Tauber
bab5efeac9
[enh] update npm dependency versions
2020-06-03 13:44:55 +02:00
Adam Tauber
f47e6fc0f8
[enh] build css after less file changes
2020-06-03 13:44:40 +02:00
Adam Tauber
ceedab6aed
Merge pull request #983 from ahangarha/patch-1
...
Update results.less
2020-06-03 13:35:21 +02:00
Markus Heiser
a3431d59d3
Merge branch 'master' of https://github.com/asciimoo/searx into csp-oscar-theme
2020-06-01 09:18:51 +02:00
Noémi Ványi
d7d89369cb
add disable all and allow all engines button to Oscar preferences
2020-05-31 23:39:21 +02:00
Markus Heiser
c9f9e7da52
[build] rebuild of the oscar theme, build from ad208378
...
the CSS files has been build by:
$ make themes.oscar
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2020-05-15 10:23:21 +02:00
Markus Heiser
ad208378bb
[fix] oscar theme, remove inline style attributes (CSP compliants)
...
Inline styles are blocked by default with Content Security Policy (CSP). Move
the rest of inline styles to CSS and correct the HTML template of the oscar
preference page.
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2020-05-15 10:16:49 +02:00
Markus Heiser
6846402d73
.gitignore: make package-lock.json visible
...
Even if we do not versioning them right now.
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2020-03-26 15:35:32 +01:00
Markus Heiser
d471ec86dd
Makefile: add target node.env - download & install npm dependencies
...
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2020-03-25 16:38:52 +01:00
Markus Heiser
757ebb5d9f
[fix] brands: add variables from build env to grunt process
...
We have some variables in the build environment which are also needed in the
grunt process when building themes. Theses variables are relavant if one
creates a fork with its own branding. We treat these variables under the term
'brands'.
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2020-03-25 14:09:47 +01:00
Adam Tauber
9a2f26d915
[enh] submit search on suggestion select - closes #807
2020-03-23 14:01:33 +01:00
Adam Tauber
65cae85735
[fix] load new page with infinite scroll if there is no scrollbar - fixes #759
2020-03-23 13:05:19 +01:00