-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathpopup.html
234 lines (228 loc) · 9.78 KB
/
popup.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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Icinga Multi Status - Popp</title>
<link href="dist/style.css" rel="stylesheet">
<link href="inc/animation.css" rel="stylesheet">
<script src="inc/jquery-3.7.1.min.js"></script>
</head>
<body class="max-w-full w-[700px] p-2 min-h-[450px]">
<div class="flex items-center justify-between gap-6 mb-6">
<div role="tablist" class="tabs tabs-lifted flex-grow tabs-lg" id="popup-nav">
<a role="tab" class="tab" id="popup-nav-overview">Overview</a>
<a role="tab" class="tab" id="popup-nav-hosts">Hosts</a>
<a role="tab" class="tab" id="popup-nav-services">Services</a>
<a role="tab" class="tab" id="popup-nav-about">About & Help</a>
</div>
<div>
<a href="#" class="btn btn-sm btn-outline open-options"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" style="width: 16px; height: 16px;"><path stroke-linecap="round" stroke-linejoin="round" d="M9.594 3.94c.09-.542.56-.94 1.11-.94h2.593c.55 0 1.02.398 1.11.94l.213 1.281c.063.374.313.686.645.87.074.04.147.083.22.127.324.196.72.257 1.075.124l1.217-.456a1.125 1.125 0 011.37.49l1.296 2.247a1.125 1.125 0 01-.26 1.431l-1.003.827c-.293.24-.438.613-.431.992a6.759 6.759 0 010 .255c-.007.378.138.75.43.99l1.005.828c.424.35.534.954.26 1.43l-1.298 2.247a1.125 1.125 0 01-1.369.491l-1.217-.456c-.355-.133-.75-.072-1.076.124a6.57 6.57 0 01-.22.128c-.331.183-.581.495-.644.869l-.213 1.28c-.09.543-.56.941-1.11.941h-2.594c-.55 0-1.02-.398-1.11-.94l-.213-1.281c-.062-.374-.312-.686-.644-.87a6.52 6.52 0 01-.22-.127c-.325-.196-.72-.257-1.076-.124l-1.217.456a1.125 1.125 0 01-1.369-.49l-1.297-2.247a1.125 1.125 0 01.26-1.431l1.004-.827c.292-.24.437-.613.43-.992a6.932 6.932 0 010-.255c.007-.378-.138-.75-.43-.99l-1.004-.828a1.125 1.125 0 01-.26-1.43l1.297-2.247a1.125 1.125 0 011.37-.491l1.216.456c.356.133.751.072 1.076-.124.072-.044.146-.087.22-.128.332-.183.582-.495.644-.869l.214-1.281z" /><path stroke-linecap="round" stroke-linejoin="round" d="M15 12a3 3 0 11-6 0 3 3 0 016 0z" /></svg></a>
</div>
</div>
<div class="popup-tab hidden space-y-6" id="popup-tab-overview">
<table class="table table-sm table-zebra icinga-overview" id="popup-tab-overview-table">
<thead>
<tr>
<th>Instance</th>
<th>Hosts</th>
<th>Services</th>
</tr>
</thead>
<tbody></tbody>
</table>
<div role="alert" class="alert alert-success" id="popup-tab-overview-alert-0">
<svg
xmlns="http://www.w3.org/2000/svg"
class="h-6 w-6 shrink-0 stroke-current"
fill="none"
viewBox="0 0 24 24">
<path
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
d="M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z" />
</svg>
<span><b>Good job!</b> Looks like everything is working as it should. Coffee granted.</span>
</div>
<div role="alert" class="alert alert-warning" id="popup-tab-overview-alert-1">
<svg
xmlns="http://www.w3.org/2000/svg"
class="h-6 w-6 shrink-0 stroke-current"
fill="none"
viewBox="0 0 24 24">
<path
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
d="M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z" />
</svg>
<span><b>Hmm...</b> We got a warning, maybe something is about to break.</span>
</div>
<div role="alert" class="alert alert-info" id="popup-tab-overview-alert-new">
<svg
xmlns="http://www.w3.org/2000/svg"
fill="none"
viewBox="0 0 24 24"
class="h-6 w-6 shrink-0 stroke-current">
<path
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path>
</svg>
<span><b>Welcome!</b> Time to set up your first Icinga instance.<br><a href="#" class="open-options btn btn-sm btn-outline">Click here to get to the options right away.</a></span>
</div>
<div role="alert" class="alert alert-error" id="popup-tab-overview-alert-2">
<svg
xmlns="http://www.w3.org/2000/svg"
class="h-6 w-6 shrink-0 stroke-current"
fill="none"
viewBox="0 0 24 24">
<path
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
d="M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z" />
</svg>
<span><b>Houston, we have a problem!</b> Something seems broken :-(</span>
</div>
<div class="animation-wrapper">
<div class="animation-content">
<aside></aside>
<aside></aside>
<div><span></span><span></span>
<ul>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li>01</li>
</ul>
</div>
<div><span></span><span></span>
<ul>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li>0A</li>
</ul>
</div>
<div><span></span><span></span>
<ul>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li>1B</li>
</ul>
</div>
</div>
</div>
<div id="popup-tab-overview-downs"></div>
</div>
<div class="popup-tab hidden" id="popup-tab-hosts">
<div class="float-right filter"><input aria-label="Filter hostname" type="text" id="popup-tab-hosts-filter" placeholder="Filter hosts" class="input-bordered input input-xs"></div>
<div id="popup-tab-hosts-tables"></div>
</div>
<div class="popup-tab hidden" id="popup-tab-services">
<div class="float-right filter"><input aria-label="Filter service" type="text" id="popup-tab-services-filter" placeholder="Filter services" class="input-bordered input input-xs"></div>
<div id="popup-tab-services-tables"></div>
</div>
<div class="popup-tab hidden" id="popup-tab-about">
<div class="flex items-center gap-6 mb-12">
<img src="img/icon_black_32.png" alt="Icinga Multi Status" class="dark:hidden">
<img src="img/icon_white_32.png" alt="Icinga Multi Status" class="hidden dark:block">
<h1 class="text-2xl font-bold">Icinga Multi Status</h1>
</div>
<b>This extension comes without any guarantee.</b><br><br>
Icinga Multi Status helps you to monitor your (multiple or single) Icinga instances with comfortable alert badges and notifications about incidents right within your web browser.
<br><br>
The source-code of this extension is available at <a href="https://github.com/bashgeek/icinga-multi-status" target="_blank">GitHub</a>, please feel free to contribute or send in bugs or feature ideas. The layout is entirely based on the Bootstrap framework. Heavily inspired by IcingaChromedStatus.
<br><br>
Authored by Daniel Schmitz.<br>
The development was sponsored by <a href="https://blendbyte.com" target="_blank">Blendbyte Inc.</a>
<br><br>
<div class="flex justify-between items-center">
<div class="flex gap-2">
<a href="#" class="btn btn-sm btn-light open-options">Options</a>
<a href="help.html" target="_blank" class="btn btn-sm btn-light">Help</a>
</div>
<div class="flex gap-2">
<a href="https://github.com/bashgeek/icinga-multi-status" target="_blank"><img src="img/github.jpg" alt="GitHub" style="height: 30px;"></a>
<a href="https://blendbyte.com" target="_blank"><img src="img/blendbyte.png" alt="blendbyte.com" style="height: 30px;"></a>
</div>
</div>
</div>
<dialog class="modal" id="modal_ack">
<div class="modal-box">
<form method="dialog">
<button class="btn btn-sm btn-circle btn-ghost absolute right-2 top-2">✕</button>
</form>
<div class="space-y-6">
<h5 class="modal-title" id="modal_iacknowledge_title"></h5>
<label class="form-control w-full">
<span class="label">
<span class="label-text">Comment:</span>
</span>
<input type="text" class="input input-bordered w-full" id="ack-comment">
</label>
<label class="form-control w-full">
<span class="label">
<span class="label-text">Author:</span>
</span>
<input type="text" class="input input-bordered w-full" id="ack-author">
</label>
<label class="form-control w-full">
<span class="label">
<span class="label-text">Expiration:</span>
</span>
<select class="select select-bordered w-full" id="ack-expire">
<option value="0">no expiration</option>
<option value="60">1 minute</option>
<option value="120">2 minutes</option>
<option value="300">5 minutes</option>
<option value="600">10 minutes</option>
<option value="900">15 minutes</option>
<option value="1800">30 minutes</option>
<option value="3600">1 hour</option>
<option value="7200">2 hours</option>
<option value="10800">3 hours</option>
<option value="21600">6 hours</option>
<option value="43200">12 hours</option>
<option value="86400">1 day</option>
<option value="172800">2 days</option>
<option value="259200">3 days</option>
</select>
</label>
<label class="flex gap-4">
<input type="checkbox" class="toggle" id="ack-services">
<span>Apply for all Services</span>
</label>
<label class="flex gap-4">
<input type="checkbox" class="toggle" id="ack-persistent">
<span>Persistent</span>
</label>
<label class="flex gap-4">
<input type="checkbox" class="toggle" id="ack-sticky">
<span>Sticky</span>
</label>
<div class="alert" id="ack-alert"></div>
<button type="button" class="btn btn-primary" id="ack-submit">ACK!</button>
</div>
</div>
</dialog>
<script src="inc/data.js"></script>
<script src="inc/icinga.js"></script>
<script src="inc/popup.js"></script>
</body>
</html>