mirror of
https://github.com/searxng/searxng.git
synced 2026-08-17 12:41:35 +00:00
Compare commits
5 Commits
57622793bf
...
a6bb1ecf87
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a6bb1ecf87 | ||
|
|
636738779e | ||
|
|
1d138c5968 | ||
|
|
3e7e404fda | ||
|
|
602a73df9a |
@@ -162,7 +162,7 @@ no-docstring-rgx=^_
|
|||||||
property-classes=abc.abstractproperty
|
property-classes=abc.abstractproperty
|
||||||
|
|
||||||
# Regular expression matching correct variable names
|
# Regular expression matching correct variable names
|
||||||
variable-rgx=(([a-z][a-zA-Z0-9_]{2,30})|(_[a-z0-9_]*)|([a-z]))$
|
variable-rgx=([a-zA-Z0-9_]*)$
|
||||||
|
|
||||||
|
|
||||||
[FORMAT]
|
[FORMAT]
|
||||||
|
|||||||
@@ -169,6 +169,17 @@ article[data-vim-selected].category-social {
|
|||||||
.rounded-corners;
|
.rounded-corners;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.image-label-bottom-right() {
|
||||||
|
position: absolute;
|
||||||
|
right: 0;
|
||||||
|
bottom: 0;
|
||||||
|
background: var(--color-image-resolution-background);
|
||||||
|
padding: 0.3rem 0.5rem;
|
||||||
|
font-size: 0.9rem;
|
||||||
|
color: var(--color-image-resolution-font);
|
||||||
|
border-top-left-radius: 0.3rem;
|
||||||
|
}
|
||||||
|
|
||||||
.result {
|
.result {
|
||||||
margin: @results-margin 0;
|
margin: @results-margin 0;
|
||||||
padding: @result-padding;
|
padding: @result-padding;
|
||||||
@@ -295,12 +306,22 @@ article[data-vim-selected].category-social {
|
|||||||
color: var(--color-result-description-highlight-font);
|
color: var(--color-result-description-highlight-font);
|
||||||
}
|
}
|
||||||
|
|
||||||
img.thumbnail {
|
a.thumbnail_link {
|
||||||
|
position: relative;
|
||||||
|
margin-top: 0.6rem;
|
||||||
|
.ltr-margin-right(1rem);
|
||||||
.ltr-float-left();
|
.ltr-float-left();
|
||||||
padding-top: 0.6rem;
|
|
||||||
.ltr-padding-right(1rem);
|
img.thumbnail {
|
||||||
width: 7rem;
|
width: 7rem;
|
||||||
height: unset; // remove height value that was needed for lazy loading
|
height: unset; // remove height value that was needed for lazy loading
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.thumbnail_length {
|
||||||
|
.image-label-bottom-right();
|
||||||
|
right: 6px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.break {
|
.break {
|
||||||
@@ -391,23 +412,19 @@ article[data-vim-selected].category-social {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.result-videos {
|
.result-videos {
|
||||||
img.thumbnail {
|
a.thumbnail_link img.thumbnail {
|
||||||
.ltr-float-left();
|
|
||||||
padding-top: 0.6rem;
|
|
||||||
.ltr-padding-right(1rem);
|
|
||||||
width: 20rem;
|
width: 20rem;
|
||||||
height: unset; // remove height value that was needed for lazy loading
|
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
.result-videos .content {
|
.content {
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
.result-videos .embedded-video iframe {
|
.embedded-video iframe {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
aspect-ratio: 16 / 9;
|
aspect-ratio: 16 / 9;
|
||||||
padding: 10px 0 0 0;
|
padding: 10px 0 0 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@supports not (aspect-ratio: 1 / 1) {
|
@supports not (aspect-ratio: 1 / 1) {
|
||||||
@@ -472,14 +489,7 @@ article[data-vim-selected].category-social {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.image_resolution {
|
.image_resolution {
|
||||||
position: absolute;
|
.image-label-bottom-right();
|
||||||
right: 0;
|
|
||||||
bottom: 0;
|
|
||||||
background: var(--color-image-resolution-background);
|
|
||||||
padding: 0.3rem 0.5rem;
|
|
||||||
font-size: 0.9rem;
|
|
||||||
color: var(--color-image-resolution-font);
|
|
||||||
border-top-left-radius: 0.3rem;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
span.title,
|
span.title,
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ mock==5.2.0
|
|||||||
nose2[coverage_plugin]==0.15.1
|
nose2[coverage_plugin]==0.15.1
|
||||||
cov-core==1.15.0
|
cov-core==1.15.0
|
||||||
black==25.9.0
|
black==25.9.0
|
||||||
pylint==3.3.9
|
pylint==4.0.1
|
||||||
splinter==0.21.0
|
splinter==0.21.0
|
||||||
selenium==4.36.0
|
selenium==4.36.0
|
||||||
Pallets-Sphinx-Themes==2.3.0
|
Pallets-Sphinx-Themes==2.3.0
|
||||||
|
|||||||
@@ -108,6 +108,10 @@ def request(query, params):
|
|||||||
time_ranges = {'day': '1', 'week': '2', 'month': '3', 'year': f'5_{unix_day-365}_{unix_day}'}
|
time_ranges = {'day': '1', 'week': '2', 'month': '3', 'year': f'5_{unix_day-365}_{unix_day}'}
|
||||||
params['url'] += f'&filters=ex1:"ez{time_ranges[params["time_range"]]}"'
|
params['url'] += f'&filters=ex1:"ez{time_ranges[params["time_range"]]}"'
|
||||||
|
|
||||||
|
# in some regions where geoblocking is employed (e.g. China),
|
||||||
|
# www.bing.com redirects to the regional version of Bing
|
||||||
|
params['allow_redirects'] = True
|
||||||
|
|
||||||
return params
|
return params
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -30,14 +30,15 @@
|
|||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
</div>
|
</div>
|
||||||
{{- result_close_link() -}}
|
{{- result_close_link() -}}
|
||||||
{%- if result.thumbnail %}{{ result_open_link(result.url) }}<img class="thumbnail" src="{{ image_proxify(result.thumbnail) }}" title="{{ result.title|striptags }}" loading="lazy">{{ result_close_link() }}{% endif -%}
|
{%- if result.thumbnail %}{{ result_open_link(result.url, classes='thumbnail_link') }}<img class="thumbnail" src="{{ image_proxify(result.thumbnail) }}" title="{{ result.title|striptags }}" loading="lazy">{%- if result.length -%}<span class="thumbnail_length">{{ result.length }}</span>{%- endif -%}{{ result_close_link() }}{% endif -%}
|
||||||
<h3>{{ result_link(result.url, result.title|safe) }}</h3>
|
<h3>{{ result_link(result.url, result.title|safe) }}</h3>
|
||||||
{%- endmacro -%}
|
{%- endmacro -%}
|
||||||
|
|
||||||
<!-- Draw result sub header -->
|
<!-- Draw result sub header -->
|
||||||
{%- macro result_sub_header(result) -%}
|
{%- macro result_sub_header(result) -%}
|
||||||
{%- if result.publishedDate %}<time class="published_date" datetime="{{ result.pubdate }}" >{{ result.publishedDate }}</time>{% endif -%}
|
{%- if result.publishedDate %}<time class="published_date" datetime="{{ result.pubdate }}" >{{ result.publishedDate }}</time>{% endif -%}
|
||||||
{%- if result.length %}<div class="result_length">{{ _('Length') }}: {{ result.length }}</div>{% endif -%}
|
<!-- Length is displayed inside the thumbnail if there's any, so don't display it here a second time -->
|
||||||
|
{%- if result.length and not result.thumbnail %}<div class="result_length">{{ _('Length') }}: {{ result.length }}</div>{% endif -%}
|
||||||
{%- if result.views %}<div class="result_views">{{ _('Views') }}: {{ result.views }}</div>{% endif -%}
|
{%- if result.views %}<div class="result_views">{{ _('Views') }}: {{ result.views }}</div>{% endif -%}
|
||||||
{%- if result.author %}<div class="result_author">{{ _('Author') }}: {{ result.author }}</div>{% endif -%}
|
{%- if result.author %}<div class="result_author">{{ _('Author') }}: {{ result.author }}</div>{% endif -%}
|
||||||
{%- if result.metadata %}<div class="highlight">{{ result.metadata|safe }}</div>{% endif -%}
|
{%- if result.metadata %}<div class="highlight">{{ result.metadata|safe }}</div>{% endif -%}
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ test.pylint() {
|
|||||||
build_msg TEST "[pylint] ./searx ./searxng_extra ./tests"
|
build_msg TEST "[pylint] ./searx ./searxng_extra ./tests"
|
||||||
# shellcheck disable=SC2086
|
# shellcheck disable=SC2086
|
||||||
pylint ${PYLINT_OPTIONS} ${PYLINT_VERBOSE} \
|
pylint ${PYLINT_OPTIONS} ${PYLINT_VERBOSE} \
|
||||||
--ignore=searx/engines \
|
--ignore-paths=searx/engines \
|
||||||
searx searx/searxng.msg \
|
searx searx/searxng.msg \
|
||||||
searxng_extra searxng_extra/docs_prebuild \
|
searxng_extra searxng_extra/docs_prebuild \
|
||||||
tests
|
tests
|
||||||
|
|||||||
Reference in New Issue
Block a user