mirror of
https://github.com/searxng/searxng
synced 2024-11-05 06:01:05 +00:00
Merge pull request #292 from return42/fix-csp
[fix] make HTML templates more CSP compliant
This commit is contained in:
commit
a26e4eff10
@ -0,0 +1,5 @@
|
|||||||
|
.osm-map-box {
|
||||||
|
height:300px;
|
||||||
|
width:100%;
|
||||||
|
margin: 10px 0;
|
||||||
|
}
|
@ -369,9 +369,14 @@
|
|||||||
.bar100 {
|
.bar100 {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
.osm-map-box {
|
||||||
|
height: 300px;
|
||||||
|
width: 100%;
|
||||||
|
margin: 10px 0;
|
||||||
|
}
|
||||||
/*
|
/*
|
||||||
this file is generated automatically by searx_extra/update/update_pygments.py
|
this file is generated automatically by searx_extra/update/update_pygments.py
|
||||||
using pygments version 2.9.0
|
using pygments version 2.10.0
|
||||||
*/
|
*/
|
||||||
.code-highlight .linenos {
|
.code-highlight .linenos {
|
||||||
-webkit-touch-callout: none;
|
-webkit-touch-callout: none;
|
||||||
|
BIN
searx/static/themes/oscar/css/logicodev-dark.min.css
vendored
BIN
searx/static/themes/oscar/css/logicodev-dark.min.css
vendored
Binary file not shown.
Binary file not shown.
@ -369,9 +369,14 @@
|
|||||||
.bar100 {
|
.bar100 {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
.osm-map-box {
|
||||||
|
height: 300px;
|
||||||
|
width: 100%;
|
||||||
|
margin: 10px 0;
|
||||||
|
}
|
||||||
/*
|
/*
|
||||||
this file is generated automatically by searx_extra/update/update_pygments.py
|
this file is generated automatically by searx_extra/update/update_pygments.py
|
||||||
using pygments version 2.9.0
|
using pygments version 2.10.0
|
||||||
*/
|
*/
|
||||||
.code-highlight .linenos {
|
.code-highlight .linenos {
|
||||||
-webkit-touch-callout: none;
|
-webkit-touch-callout: none;
|
||||||
|
BIN
searx/static/themes/oscar/css/logicodev.min.css
vendored
BIN
searx/static/themes/oscar/css/logicodev.min.css
vendored
Binary file not shown.
Binary file not shown.
@ -369,9 +369,14 @@
|
|||||||
.bar100 {
|
.bar100 {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
.osm-map-box {
|
||||||
|
height: 300px;
|
||||||
|
width: 100%;
|
||||||
|
margin: 10px 0;
|
||||||
|
}
|
||||||
/*
|
/*
|
||||||
this file is generated automatically by searx_extra/update/update_pygments.py
|
this file is generated automatically by searx_extra/update/update_pygments.py
|
||||||
using pygments version 2.9.0
|
using pygments version 2.10.0
|
||||||
*/
|
*/
|
||||||
.code-highlight .linenos {
|
.code-highlight .linenos {
|
||||||
-webkit-touch-callout: none;
|
-webkit-touch-callout: none;
|
||||||
|
BIN
searx/static/themes/oscar/css/pointhi.min.css
vendored
BIN
searx/static/themes/oscar/css/pointhi.min.css
vendored
Binary file not shown.
Binary file not shown.
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
this file is generated automatically by searx_extra/update/update_pygments.py
|
this file is generated automatically by searx_extra/update/update_pygments.py
|
||||||
using pygments version 2.9.0
|
using pygments version 2.10.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
.code-highlight .linenos {
|
.code-highlight .linenos {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
this file is generated automatically by searx_extra/update/update_pygments.py
|
this file is generated automatically by searx_extra/update/update_pygments.py
|
||||||
using pygments version 2.9.0
|
using pygments version 2.10.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
.code-highlight .linenos {
|
.code-highlight .linenos {
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
@import "../logicodev/variables.less";
|
@import "../logicodev/variables.less";
|
||||||
@import "../../../../__common__/less/new_issue.less";
|
@import "../../../../__common__/less/new_issue.less";
|
||||||
@import "../../../../__common__/less/stats.less";
|
@import "../../../../__common__/less/stats.less";
|
||||||
|
@import "../../../../__common__/less/result_templates.less";
|
||||||
@import "../../generated/pygments-logicodev.less";
|
@import "../../generated/pygments-logicodev.less";
|
||||||
|
|
||||||
@stacked-bar-chart: rgb(213, 216, 215, 1);
|
@stacked-bar-chart: rgb(213, 216, 215, 1);
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
@import "variables.less";
|
@import "variables.less";
|
||||||
@import "../../../../__common__/less/new_issue.less";
|
@import "../../../../__common__/less/new_issue.less";
|
||||||
@import "../../../../__common__/less/stats.less";
|
@import "../../../../__common__/less/stats.less";
|
||||||
|
@import "../../../../__common__/less/result_templates.less";
|
||||||
@import "../../generated/pygments-logicodev.less";
|
@import "../../generated/pygments-logicodev.less";
|
||||||
|
|
||||||
@import "navbar.less";
|
@import "navbar.less";
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
@import "variables.less";
|
@import "variables.less";
|
||||||
@import "../../../../__common__/less/new_issue.less";
|
@import "../../../../__common__/less/new_issue.less";
|
||||||
@import "../../../../__common__/less/stats.less";
|
@import "../../../../__common__/less/stats.less";
|
||||||
|
@import "../../../../__common__/less/result_templates.less";
|
||||||
@import "../../generated/pygments-pointhi.less";
|
@import "../../generated/pygments-pointhi.less";
|
||||||
|
|
||||||
@import "footer.less";
|
@import "footer.less";
|
||||||
|
@ -374,6 +374,11 @@
|
|||||||
.bar100 {
|
.bar100 {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
.osm-map-box {
|
||||||
|
height: 300px;
|
||||||
|
width: 100%;
|
||||||
|
margin: 10px 0;
|
||||||
|
}
|
||||||
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
|
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
|
||||||
|
|
||||||
/* Document
|
/* Document
|
||||||
@ -825,7 +830,7 @@ template {
|
|||||||
}
|
}
|
||||||
/*
|
/*
|
||||||
this file is generated automatically by searx_extra/update/update_pygments.py
|
this file is generated automatically by searx_extra/update/update_pygments.py
|
||||||
using pygments version 2.9.0
|
using pygments version 2.10.0
|
||||||
*/
|
*/
|
||||||
.code-highlight .linenos {
|
.code-highlight .linenos {
|
||||||
-webkit-touch-callout: none;
|
-webkit-touch-callout: none;
|
||||||
|
BIN
searx/static/themes/simple/css/searx-rtl.min.css
vendored
BIN
searx/static/themes/simple/css/searx-rtl.min.css
vendored
Binary file not shown.
Binary file not shown.
@ -374,6 +374,11 @@
|
|||||||
.bar100 {
|
.bar100 {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
.osm-map-box {
|
||||||
|
height: 300px;
|
||||||
|
width: 100%;
|
||||||
|
margin: 10px 0;
|
||||||
|
}
|
||||||
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
|
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
|
||||||
|
|
||||||
/* Document
|
/* Document
|
||||||
@ -825,7 +830,7 @@ template {
|
|||||||
}
|
}
|
||||||
/*
|
/*
|
||||||
this file is generated automatically by searx_extra/update/update_pygments.py
|
this file is generated automatically by searx_extra/update/update_pygments.py
|
||||||
using pygments version 2.9.0
|
using pygments version 2.10.0
|
||||||
*/
|
*/
|
||||||
.code-highlight .linenos {
|
.code-highlight .linenos {
|
||||||
-webkit-touch-callout: none;
|
-webkit-touch-callout: none;
|
||||||
|
BIN
searx/static/themes/simple/css/searx.min.css
vendored
BIN
searx/static/themes/simple/css/searx.min.css
vendored
Binary file not shown.
Binary file not shown.
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
this file is generated automatically by searx_extra/update/update_pygments.py
|
this file is generated automatically by searx_extra/update/update_pygments.py
|
||||||
using pygments version 2.9.0
|
using pygments version 2.10.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
.code-highlight .linenos {
|
.code-highlight .linenos {
|
||||||
|
@ -10,6 +10,7 @@
|
|||||||
|
|
||||||
@import "../../__common__/less/new_issue.less";
|
@import "../../__common__/less/new_issue.less";
|
||||||
@import "../../__common__/less/stats.less";
|
@import "../../__common__/less/stats.less";
|
||||||
|
@import "../../__common__/less/result_templates.less";
|
||||||
@import (inline) "../../node_modules/normalize.css/normalize.css";
|
@import (inline) "../../node_modules/normalize.css/normalize.css";
|
||||||
@import "../generated/ion.less";
|
@import "../generated/ion.less";
|
||||||
@import "definitions.less";
|
@import "definitions.less";
|
||||||
|
@ -27,9 +27,9 @@
|
|||||||
<span class="stacked-bar-chart-value">{{- stats[engine_name].time -}}</span>{{- "" -}}
|
<span class="stacked-bar-chart-value">{{- stats[engine_name].time -}}</span>{{- "" -}}
|
||||||
<span class="stacked-bar-chart" aria-labelledby="{{engine_name}}_chart" aria-hidden="true">
|
<span class="stacked-bar-chart" aria-labelledby="{{engine_name}}_chart" aria-hidden="true">
|
||||||
{%- if max_rate95 is not none and max_rate95 > 0 -%}
|
{%- if max_rate95 is not none and max_rate95 > 0 -%}
|
||||||
<span style="width: calc(max(2px, 100%*{{ (stats[engine_name].time / max_rate95)|round(3) }}))" class="stacked-bar-chart-median"></span>{{- "" -}}
|
<div class="stacked-bar-chart-median bar{{ (100 * (stats[engine_name].time / max_rate95))|round }}"></div>{{- "" -}}
|
||||||
<span style="width: calc(100%*{{ ((stats[engine_name].rate80 - stats[engine_name].time) / max_rate95)|round(3) }})" class="stacked-bar-chart-rate80"></span>{{- "" -}}
|
<div class="stacked-bar-chart-rate80 bar{{ (100 * ((stats[engine_name].rate80 - stats[engine_name].time) / max_rate95))|round }}"></div>{{- "" -}}
|
||||||
<span style="width: calc(100%*{{ ((stats[engine_name].rate95 - stats[engine_name].rate80) / max_rate95)|round(3) }})" class="stacked-bar-chart-rate95"></span>{{- "" -}}
|
<div class="stacked-bar-chart-rate95 bar{{ (100 * ((stats[engine_name].rate95 - stats[engine_name].rate80) / max_rate95))|round }}"></div>{{- "" -}}
|
||||||
<span class="stacked-bar-chart-rate100"></span>
|
<span class="stacked-bar-chart-rate100"></span>
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
</span>{{- "" -}}
|
</span>{{- "" -}}
|
||||||
|
@ -64,7 +64,7 @@
|
|||||||
|
|
||||||
{%- if (result.latitude and result.longitude) or result.boundingbox -%}
|
{%- if (result.latitude and result.longitude) or result.boundingbox -%}
|
||||||
<div class="collapse" id="result-map-{{ index }}">
|
<div class="collapse" id="result-map-{{ index }}">
|
||||||
<div style="height:300px; width:100%; margin: 10px 0;" id="osm-map-{{ index }}"></div>
|
<div class="osm-map-box" id="osm-map-{{ index }}"></div>
|
||||||
</div>
|
</div>
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
|
|
||||||
|
@ -41,9 +41,9 @@
|
|||||||
<span class="stacked-bar-chart-value">{{- stats[engine_name].time -}}</span>{{- "" -}}
|
<span class="stacked-bar-chart-value">{{- stats[engine_name].time -}}</span>{{- "" -}}
|
||||||
<span class="stacked-bar-chart" aria-labelledby="{{engine_name}}_chart" aria-hidden="true">
|
<span class="stacked-bar-chart" aria-labelledby="{{engine_name}}_chart" aria-hidden="true">
|
||||||
{%- if max_rate95 is not none and max_rate95 > 0 -%}
|
{%- if max_rate95 is not none and max_rate95 > 0 -%}
|
||||||
<span style="width: calc(max(2px, 100%*{{ (stats[engine_name].time / max_rate95)|round(3) }}))" class="stacked-bar-chart-median"></span>{{- "" -}}
|
<div class="stacked-bar-chart-median bar{{ (100 * (stats[engine_name].time / max_rate95))|round }}"></div>{{- "" -}}
|
||||||
<span style="width: calc(100%*{{ ((stats[engine_name].rate80 - stats[engine_name].time) / max_rate95)|round(3) }})" class="stacked-bar-chart-rate80"></span>{{- "" -}}
|
<div class="stacked-bar-chart-rate80 bar{{ (100 * ((stats[engine_name].rate80 - stats[engine_name].time) / max_rate95))|round }}"></div>{{- "" -}}
|
||||||
<span style="width: calc(100%*{{ ((stats[engine_name].rate95 - stats[engine_name].rate80) / max_rate95)|round(3) }})" class="stacked-bar-chart-rate95"></span>{{- "" -}}
|
<div class="stacked-bar-chart-rate95 bar{{ (100 * ((stats[engine_name].rate95 - stats[engine_name].rate80) / max_rate95))|round }}"></div>{{- "" -}}
|
||||||
<span class="stacked-bar-chart-rate100"></span>
|
<span class="stacked-bar-chart-rate100"></span>
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
</span>{{- "" -}}
|
</span>{{- "" -}}
|
||||||
|
@ -45,7 +45,7 @@
|
|||||||
{{- result_sub_footer(result, proxify) -}}
|
{{- result_sub_footer(result, proxify) -}}
|
||||||
|
|
||||||
{% if (result.latitude and result.longitude) or result.boundingbox -%}
|
{% if (result.latitude and result.longitude) or result.boundingbox -%}
|
||||||
<div id="result-map-{{ index }}" class="invisible"><div id="osm-map-{{ index }}" style="height:300px; width:100%; margin: 10px 0;" ></div></div>
|
<div id="result-map-{{ index }}" class="invisible"><div id="osm-map-{{ index }}" class="osm-map-box"></div></div>
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
|
||||||
{{- result_footer(result) }}
|
{{- result_footer(result) }}
|
||||||
|
Loading…
Reference in New Issue
Block a user