-
Notifications
You must be signed in to change notification settings - Fork 13
/
template.html
108 lines (98 loc) · 12.7 KB
/
template.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
{% extends "base.html" %} {% set read_doc_text = 'You will find more information
about the crowdsec plugin
<a
target="_blank"
href="https://github.com/bunkerity/bunkerweb-plugins/tree/v' + plugin['version'] + '/crowdsec"
class="core-card-text-doc-link"
>in the documentation</a
>.' %} {% block content %}
<div class="core-layout">
{% if is_used %}
<input
id="csrf_token"
type="hidden"
name="csrf_token"
value="{{ csrf_token() }}"
/>
<!-- info-->
<div class="core-card">
<h5 class="core-card-title">INFO</h5>
<div class="core-card-wrap-logo">
<img
alt="logo"
class="core-img-default"
src=" data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOEAAADgCAMAAADCMfHtAAABTVBMVEX///9NSpr4qxc+Onjzkhf4pwD4pQD/sABLSJn4qQDyiwBJRpjzjgDzkBc5NZJFQpc4NJJARJ4/PJQqJW86QaD9474/Q54+OpRERp349/pCP5Xx8fX/+/UnIW39/f79rgn+9uqvrs7V1OX+8d/4ryk3M3T2oRoxLHHf3uvBwNn83bFWTpr96Mv70ZXMy+D97+H7zYuFg7ZhXqR0cq2OjLv6w23816TupC6bmcL5yp71mxv85tJsaqm7utXc3Ol/fbP6yHy+iF75tkL5ulTJj1WgeHZrW5JWU59zYZD2r2dFQoS3tsn3tnaYlsGmpcn6v2HVlktwXI6xgGiBZYblnzmQcIGScHz1p1X5t0l5d530mzT61LH4w5L3vIN7eZ+KiKmbmrTamUXFjFmqfW2cdXaRbXu3hmdUUIjazc7flyooI41qZ5P0n0NRToNLSIDQsmd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PKVRMjqw9SjyHHvNRSRwOVLrQxGKKhjKJWDqelDa7rxKOILsRt8NkLU7JJx+b4AhVsXKg6f1g9kl/+aRNzIMHahoA5CXpbvDzCaFmxdqFRf6dFRSf/rpMPPcauX8sOEzrNTKZ0CwKjI5ftW0FknhB3+lycdjlhBtgLgc7J8mJb7GRlXtfgI/Rw+rzSJFP7nE5Kp4+NWCwuzFT4+DgTPpklqL39CDaAoqPm8JgXIUw/s8P8XEIaEkMsnel+oaWhUWMc4SkcnJALkjY4dz6P+IQR7+aoCjArrGL8GogNrfIyiwfEO9+M+IiT28pUFGBUGNbiX1wBHjuLJww6/nwhRo0xUeZhY4+qQiAQu320VNgAFKR0b6ftMH7UUu/zdibWoFj7R1oXX723ApugaIuefYvIcfp8Qopa8b9N68KKiOsZ6Cjw04P5PPlLIc/h9IVTY/5T2Y4Mlbh3jNuX/IkMh4PB7T+i0wm0XCLnnMboYCIc0P/uJEB3fW+9i6rkuvwtlwCHNf/sIMDI51SVCnst/2wVCFNI8cWiyTY88ekzQI5oEv+yMg0d9jFx+Nwh5dYxrH4QDaYdSBNkhzfB/f/78++8vX77a9BeimZlGo/Gq8WrKpqpHwzQRv0OPoncajZkZPAYa7MuXv//++RN1HQbf6XLhYwS5Lv+Gkg8JJx29ufl1ffT586fV29vbZ+uzs7N1xa5aPaKRuv2d68/sb1/99Pnz0fWvG9wOlwANuefVMaIEJBvRr6O3n1cRmvXZ34tFh0Zm19eHbNCf3x796iDGOHhbF9FrDAkheriQ5DSCEN+u2oCvvaDm/wESdYPcv7BfagAAAABJRU5ErkJggg=="
/>
<p data-info class="core-card-text">{{ plugin.get('description') }}</p>
</div>
<p class="core-card-text-doc">{{ read_doc_text|safe }}</p>
</div>
<!-- end info -->
<!-- test-->
<div class="core-card">
<h5 class="core-card-title">TEST</h5>
<p class="core-card-text center">Use the next button to ping API.</p>
<div class="core-card-test-container">
<button type="button" class="core-card-test-btn" data-ping>PING</button>
</div>
<hr class="core-separator" />
<div class="core-card-test-status-container">
<svg
data-status-svg
class="core-card-test-status-svg info"
viewBox="0 0 100 100"
xmlns="http://www.w3.org/2000/svg"
>
<circle cx="50" cy="50" r="50" />
</svg>
<p data-status-text class="core-card-text">Unknown</p>
</div>
</div>
<!-- end test -->
<script nonce="{{script_nonce}}">
// When click to ping button
const pingBtn = document.querySelector("[data-ping]");
const statusSvg = document.querySelector("[data-status-svg]");
const statusText = document.querySelector("[data-status-text]");
pingBtn.addEventListener("click", (e) => {
new Ping(
`${location.origin}${location.pathname}?ping=true`,
pingBtn,
statusText,
statusSvg,
"ping_status",
);
});
</script>
{% else %}
<div class="core-card">
<div class="core-card-wrap">
<h5 class="core-card-title">Plugin deactivated</h5>
<!-- icon -->
<div role="img" class="core-card-svg-container">
<svg
xmlns="http://www.w3.org/2000/svg"
fill="none"
viewBox="0 0 24 24"
stroke-width="1.5"
stroke="currentColor"
class="core-card-deactivated-svg"
>
<path
stroke-linecap="round"
stroke-linejoin="round"
d="M12 9v3.75m9-.75a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 3.75h.008v.008H12v-.008Z"
/>
</svg>
</div>
<!-- end icon -->
</div>
<div class="core-card-text-container">
<p data-info class="core-card-text">{{ plugin.get('description') }}</p>
</div>
<p class="core-card-text-doc">{{ read_doc_text|safe }}</p>
</div>
<!-- end info -->
{% endif %}
</div>
{% endblock %}