MrPaulBlack
fa95cd91a8
[build] /static
3 years ago
Alexandre Flament
e8e81c7432
[build] /static
3 years ago
Alexandre Flament
2cc6301c98
[fix] Oscar theme: fix input field on Safari
...
close #323
3 years ago
Markus Heiser
b0623ac9f6
[build] /static
3 years ago
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>
3 years ago
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>
3 years ago
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>
3 years ago
Markus Heiser
0d070fde92
[build] /static
3 years ago
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>
3 years ago
Alexandre Flament
d246679dbe
[build] /static
3 years ago
Alexandre Flament
d29094579b
[build] /static
3 years ago
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>
3 years ago
Alexandre Flament
04492b76de
[themes] ignore packages-lock.json
3 years ago
Alexandre Flament
2bc9b00cd7
Static build
3 years ago
Alexandre Flament
d20f6a1f19
[mod] make themes.all update pygments*.less
...
Add a searx/static/themes/*/src/generated empty folder
3 years ago
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.
3 years ago
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>
3 years ago
Alexandre Flament
c75425655f
[enh] openstreetmap / map template: improve results
...
implements ideas described in #69
* update the engine
* use wikidata
* update map.html template
3 years ago
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>
3 years ago
Alexandre Flament
a89b823f8d
[mod] remove overpass API call
...
prepare the code the PR #90
3 years ago
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>
3 years ago
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>
3 years ago
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>
3 years ago
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>
4 years ago
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>
4 years ago
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>
4 years ago
Markus Heiser
6b92e8c6fd
[upd] ./manage pyenv.cmd searx_extra/update/update_pygments.py
...
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
4 years ago
Alexandre Flament
09e7ecdce2
[mod] /stats : add reliability column and sort by column links
4 years ago
Alexandre Flament
65c29081cc
[mod] update /stats
4 years ago
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.
4 years ago
Alexandre Flament
92db0227b1
Merge remote-tracking branch 'dalf/oscar-images'
4 years ago
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>
4 years ago
Alexandre Flament
7a0fbdecc4
[enh] oscar: image thumbnail layout
...
Adjust thumbnail sizes to fill the container width
4 years ago
Marc Abonce Seguin
419b907a0b
fix dark "expand" button from infobox
4 years ago
Alexandre Flament
d648001688
[mod] preferences: a tooltip is shown when the mouse is over the engine names
4 years ago
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
4 years ago
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
4 years ago
Alexandre Flament
32cd0d31b3
[mod] upgrade pygments
...
add searx_extra/update/update_pygments.py to update the css style of the oscar and simple themes.
4 years ago
Alexandre Flament
cb04d42806
[mod] oscar: update README.rst
4 years ago
Alexandre Flament
86912e2272
[mod] oscar: get bootstrap and typeahead from NPM
4 years ago
Alexandre Flament
44407353ef
[mod] oscar: get leaflet and jquery from NPM
...
easy to upgrade (package.json)
4 years ago
Alexandre Flament
c7133efb12
[mod] oscar: move compiled files to the src directory
4 years ago
Alexandre Flament
1268910274
[mod] oscar: remove unused images
4 years ago
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
4 years ago
Alexandre Flament
2f3d5ec2af
[mod] oscar: upgrade npm dependencies
4 years ago
Alexandre Flament
f1e016e9ea
[mod] oscar theme: added option into gruntfile.js for generate sourceMap
...
Credits go to @mrwormo (see PR #2308 )
4 years ago
GazoilKerozen
1b700738eb
[fix] fix the reset button in the oscar theme ( #2306 )
...
Rely on javascript instead of type="clear"
Close #2009
4 years ago
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
4 years ago
Marc Abonce Seguin
7e82817925
wait for img to load before hiding infobox toggle
4 years ago
Marc Abonce Seguin
a2430154b9
fix selects in preferences so they look consistent ( #2150 )
4 years ago
Marc Abonce Seguin
0601f2bb48
add toggle to resize infobox
4 years ago
Marc Abonce Seguin
57bad502a6
add visually-hidden css class to pointhi style
4 years ago
Marc Abonce Seguin
74270a3fc2
add class for infobox's official url
4 years ago
Marc Abonce Seguin
001eb047cd
set max-height on infobox's images
4 years ago
Adam Tauber
3227695b0b
[fix] indicate visually active tab programmatically on the page Preferences - #350
4 years ago
Noémi Ványi
223114c575
[fix] refine contrast ratios of texts and borders - #350
4 years ago
Markus Heiser
f14a7add31
Merge branch 'master' of https://github.com/asciimoo/searx into csp-oscar-theme
4 years ago
Adam Tauber
cc164abdfc
[fix] make "Advanced settings" openable and usable with keyboard - #350
4 years ago
Adam Tauber
a984afd6a3
[enh] make checkboxes in preferences accessible using keyboard - #350
4 years ago
Adam Tauber
cc84566e0a
[enh] add visually hidden but accessible css class - #350
4 years ago
Markus Heiser
cc721b5d86
Merge branch 'master' of https://github.com/asciimoo/searx into csp-oscar-theme
4 years ago
Adam Tauber
4ca0d8cb0f
[enh] add translatable strings to javascript - closes #461
4 years ago
Markus Heiser
e088b95e74
Merge branch 'master' of https://github.com/asciimoo/searx into csp-oscar-theme
4 years ago
Adam Tauber
43f7b84a59
[fix] do not stretch images - fixes #1262
4 years ago
Markus Heiser
434e452d54
Merge branch 'master' of https://github.com/asciimoo/searx into csp-oscar-theme
4 years ago
Adam Tauber
08fdfc73fb
[fix] do not autocomplete for pressing enter when mouse is on the completion list - fixes #340
4 years ago
Adam Tauber
47cddcab8b
[mod] reduce the gap between results
4 years ago
Adam Tauber
bab5efeac9
[enh] update npm dependency versions
4 years ago
Adam Tauber
f47e6fc0f8
[enh] build css after less file changes
4 years ago
Adam Tauber
ceedab6aed
Merge pull request #983 from ahangarha/patch-1
...
Update results.less
4 years ago
Markus Heiser
a3431d59d3
Merge branch 'master' of https://github.com/asciimoo/searx into csp-oscar-theme
4 years ago
Noémi Ványi
d7d89369cb
add disable all and allow all engines button to Oscar preferences
4 years ago
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>
5 years ago
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>
5 years ago
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>
5 years ago
Markus Heiser
d471ec86dd
Makefile: add target node.env - download & install npm dependencies
...
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
5 years ago
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>
5 years ago
Adam Tauber
9a2f26d915
[enh] submit search on suggestion select - closes #807
5 years ago
Markus Heiser
2a5c39e33c
theme: oscar - tidy up trailing whitespaces and tab usage
...
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
5 years ago
Markus Heiser
56b7e05721
themes: remove CR from newlines
...
Adding a CR in some files and in others not, is a good starting point for a
DOS+Unix mess we all have already seen in many projects.
Patch fixes all files matching (even those comming from grunt's build)::
find ./searx -exec file {} \; | grep CR
BTW: Same with mixing TAB and SPACE indent styles in one and the same file. So
if sources are tuched here in this patch, its also fixed.
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
5 years ago
Dalf
6fbba63c83
oscar and simple themes: no inline script (allow A+ Content-Security-Policy)
5 years ago
Frank de Lange
e4e8e6da4c
Add image format and source information to display ( #1567 )
...
Add image format and source information to display - needs changes to engines to actually display something.
Displays result.source (website from which the image was taken) and result.img_format (image type and size).
Result is styled with result-format and result-source classes. See PR #1566 for an example of an engine which has the necessary changes.
Strip <span class="highlight">...</span> in the oscar image template.
5 years ago
cy8aer
4dc792e1e2
[enh] add invidious engine. ( #1657 )
...
closes #1372
5 years ago
Adam Tauber
666982bd35
Merge pull request #1244 from Venca24/master
...
[UI] new youtube icon for oscar theme
6 years ago
Author Name
7635ebb126
Min width 50 px to oscar theme category. #1158
6 years ago
Venca24
3867b9fba2
[UI] new youtube icon for oscar theme
7 years ago
Adam Tauber
0fe6042cc9
[mod] add bottom margin to results - closes #1176
7 years ago
Adam Tauber
a173c5b4e2
[enh] build oscar css
7 years ago
Matthew Olmsted
c61e1a8165
Preserve image aspect ratio in results
...
Noticed that images are often distorted in the results due to a hard minimum height. This keeps the 4-per-row image results consistent in row height without distorting wider images.
7 years ago
Noémi Ványi
0cb8a849da
dark background for answers && no background for highlight
7 years ago
Adam Tauber
46fb0d860e
[enh] add dark version of oscar/logicodev
7 years ago
Noémi Ványi
47ee15f5ce
preferences: make supported/not supported labels
...
Also, Time range support display was missing from RTL locales.
Now it is fixed.
Closes #558
7 years ago
Alexandre Flament
57dc6b625f
[fix] travis build : various fix about grunt builds
7 years ago
Mostafa Ahangarha
b142e88391
Update results.less
...
More gap between search results increase the readability. Currently, the result page is just filled with text.
7 years ago
marc
80460be8f6
[fix] wrap suggestions inside suggestion box
...
long suggestions now wrap around the box instead of going overboard.
7 years ago
Alexandre Flament
e4d46d21c7
[mod] oscar theme: use tinypng.com to reduce logos and favicon
8 years ago
Alexandre Flament
e9785a69c7
[mod] reduce png and gif image sizes using optipng and gifsicle tools.
8 years ago
Adam Tauber
ee1d44caf9
[mod] darker green url in logicodev
8 years ago
Adam Tauber
4906ac5192
[fix] add padding to pointhi theme's navbar - closes #841
8 years ago
Noémi Ványi
d88950c25f
[fix] darker green for result urls
8 years ago