react-aiops 0.1.5 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/DatabaseNode.d.ts +25 -0
- package/dist/components/DatabaseNode.d.ts.map +1 -0
- package/dist/components/HumanNode.d.ts +16 -0
- package/dist/components/HumanNode.d.ts.map +1 -0
- package/dist/components/MessageServerNode.d.ts +27 -0
- package/dist/components/MessageServerNode.d.ts.map +1 -0
- package/dist/components/ServerNode.d.ts +27 -0
- package/dist/components/ServerNode.d.ts.map +1 -0
- package/dist/components/ServiceNode.d.ts +29 -1
- package/dist/components/ServiceNode.d.ts.map +1 -1
- package/dist/components/WebDispatcherNode.d.ts +26 -0
- package/dist/components/WebDispatcherNode.d.ts.map +1 -0
- package/dist/components/index.d.ts +20 -12
- package/dist/components/index.d.ts.map +1 -1
- package/dist/index.js +1159 -1024
- package/package.json +1 -1
- package/dist/components/SimpleService.d.ts +0 -22
- package/dist/components/SimpleService.d.ts.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { jsxs as d, jsx as e, Fragment as
|
|
2
|
-
import
|
|
3
|
-
const
|
|
1
|
+
import { jsxs as d, jsx as e, Fragment as ve } from "react/jsx-runtime";
|
|
2
|
+
import J, { createContext as je, useContext as we, useState as I, useEffect as Te, useMemo as Tt, useRef as ee } from "react";
|
|
3
|
+
const At = {
|
|
4
4
|
info: { color: "#00ff88", bg: "rgba(0, 255, 136, 0.1)", border: "#00ff88", icon: "✅" },
|
|
5
5
|
warning: { color: "#ff8c00", bg: "rgba(255, 140, 0, 0.1)", border: "#ff8c00", icon: "⚠️" },
|
|
6
6
|
critical: { color: "#ff2255", bg: "rgba(255, 34, 85, 0.1)", border: "#ff2255", icon: "🛑" }
|
|
7
7
|
};
|
|
8
|
-
function
|
|
8
|
+
function It({
|
|
9
9
|
name: t,
|
|
10
10
|
status: n,
|
|
11
11
|
dbSync: o = !0,
|
|
@@ -13,7 +13,7 @@ function Ot({
|
|
|
13
13
|
metrics: r,
|
|
14
14
|
alerts: a
|
|
15
15
|
}) {
|
|
16
|
-
const s = n === "critical" || n === "offline", l = n === "warning",
|
|
16
|
+
const s = n === "critical" || n === "offline", l = n === "warning", h = r ?? [
|
|
17
17
|
{
|
|
18
18
|
label: "Uptime",
|
|
19
19
|
value: s ? "92.14%" : "99.98%",
|
|
@@ -115,10 +115,10 @@ function Ot({
|
|
|
115
115
|
fontSize: 13,
|
|
116
116
|
color: "#a0b0c0"
|
|
117
117
|
},
|
|
118
|
-
children:
|
|
118
|
+
children: h.map((p, f) => /* @__PURE__ */ d("div", { style: { display: "flex", justifyContent: "space-between" }, children: [
|
|
119
119
|
/* @__PURE__ */ e("span", { children: p.label }),
|
|
120
120
|
/* @__PURE__ */ e("span", { style: { color: p.color }, children: p.value })
|
|
121
|
-
] },
|
|
121
|
+
] }, f))
|
|
122
122
|
}
|
|
123
123
|
),
|
|
124
124
|
/* @__PURE__ */ d(
|
|
@@ -145,8 +145,8 @@ function Ot({
|
|
|
145
145
|
children: "SYSTEM ALERTS"
|
|
146
146
|
}
|
|
147
147
|
),
|
|
148
|
-
c.map((p,
|
|
149
|
-
const
|
|
148
|
+
c.map((p, f) => {
|
|
149
|
+
const g = At[p.level];
|
|
150
150
|
return /* @__PURE__ */ d(
|
|
151
151
|
"div",
|
|
152
152
|
{
|
|
@@ -154,20 +154,20 @@ function Ot({
|
|
|
154
154
|
display: "flex",
|
|
155
155
|
gap: 8,
|
|
156
156
|
alignItems: "flex-start",
|
|
157
|
-
color:
|
|
157
|
+
color: g.color,
|
|
158
158
|
fontSize: 12,
|
|
159
|
-
background:
|
|
159
|
+
background: g.bg,
|
|
160
160
|
padding: "6px 10px",
|
|
161
161
|
borderRadius: 4,
|
|
162
|
-
borderLeft: `2px solid ${
|
|
162
|
+
borderLeft: `2px solid ${g.border}`
|
|
163
163
|
},
|
|
164
164
|
children: [
|
|
165
|
-
/* @__PURE__ */ e("span", { children:
|
|
165
|
+
/* @__PURE__ */ e("span", { children: g.icon }),
|
|
166
166
|
" ",
|
|
167
167
|
/* @__PURE__ */ e("span", { children: p.message })
|
|
168
168
|
]
|
|
169
169
|
},
|
|
170
|
-
|
|
170
|
+
f
|
|
171
171
|
);
|
|
172
172
|
})
|
|
173
173
|
]
|
|
@@ -182,8 +182,8 @@ const w = {
|
|
|
182
182
|
warning: { color: "#ff8c00", glow: "rgba(255,140,0,0.55)" },
|
|
183
183
|
critical: { color: "#ff2255", glow: "rgba(255,34,85,0.55)" },
|
|
184
184
|
offline: { color: "#1e3a5a", glow: "rgba(30,58,90,0.25)" }
|
|
185
|
-
},
|
|
186
|
-
function
|
|
185
|
+
}, yi = "#00e5ff", mi = "#0055cc", Se = "linear-gradient(180deg, #071428 0%, #040c1c 60%, #030810 100%)", Qe = "linear-gradient(180deg, rgba(10,25,50,0.35) 0%, rgba(5,15,35,0.25) 60%, rgba(3,10,20,0.15) 100%)";
|
|
186
|
+
function Ge(t, n, o) {
|
|
187
187
|
const i = {
|
|
188
188
|
position: "absolute",
|
|
189
189
|
overflow: "hidden",
|
|
@@ -233,48 +233,48 @@ function Ze(t, n, o) {
|
|
|
233
233
|
}
|
|
234
234
|
};
|
|
235
235
|
}
|
|
236
|
-
const
|
|
237
|
-
function
|
|
236
|
+
const Ve = "cubic-bezier(0.34, 1.56, 0.64, 1)", _e = "cubic-bezier(0.16, 1, 0.3, 1)";
|
|
237
|
+
function ct(t) {
|
|
238
238
|
return w[t]?.color ?? w.online.color;
|
|
239
239
|
}
|
|
240
|
-
function
|
|
240
|
+
function Lt(t, n, o) {
|
|
241
241
|
return t >= o ? "#ff2255" : t >= n ? "#ff8c00" : "#00e5ff";
|
|
242
242
|
}
|
|
243
|
-
function
|
|
243
|
+
function Le(t, n, o, i) {
|
|
244
244
|
return t === "offline" ? "offline" : t === "critical" && n >= i ? "critical" : (t === "critical" || t === "warning") && n >= o ? "warning" : "online";
|
|
245
245
|
}
|
|
246
|
-
function
|
|
246
|
+
function Ot({
|
|
247
247
|
component: t,
|
|
248
248
|
onClose: n,
|
|
249
249
|
visible: o,
|
|
250
250
|
sceneWidth: i = 660,
|
|
251
251
|
sceneHeight: r = 600
|
|
252
252
|
}) {
|
|
253
|
-
const { type: a, name: s, status: l, ex:
|
|
253
|
+
const { type: a, name: s, status: l, ex: h, ey: c, context: p = {} } = t, f = ct(l), g = h >= i / 2, u = c >= r / 2, y = {
|
|
254
254
|
position: "fixed",
|
|
255
|
-
...
|
|
255
|
+
...g ? { right: 28 } : { left: 28 },
|
|
256
256
|
...u ? { bottom: 110 } : { top: 72 }
|
|
257
|
-
}, m =
|
|
257
|
+
}, m = g ? 40 : -40, x = u ? 30 : -30, v = t.dialogMetrics ?? p.dialogMetrics;
|
|
258
258
|
let $;
|
|
259
259
|
if (v && v.length > 0)
|
|
260
|
-
$ = v.map((b,
|
|
261
|
-
const
|
|
260
|
+
$ = v.map((b, R) => {
|
|
261
|
+
const D = b.warnAt ?? 70, C = b.critAt ?? 85;
|
|
262
262
|
return {
|
|
263
263
|
id: b.id,
|
|
264
264
|
label: b.label,
|
|
265
265
|
sublabel: b.sublabel,
|
|
266
266
|
value: b.value,
|
|
267
267
|
unit: b.unit ?? "%",
|
|
268
|
-
status:
|
|
268
|
+
status: Le(l, b.value, D, C),
|
|
269
269
|
icon: b.icon ?? "cpu",
|
|
270
|
-
delay:
|
|
270
|
+
delay: R,
|
|
271
271
|
colorOverride: b.color,
|
|
272
|
-
warnAt:
|
|
273
|
-
critAt:
|
|
272
|
+
warnAt: D,
|
|
273
|
+
critAt: C
|
|
274
274
|
};
|
|
275
275
|
});
|
|
276
276
|
else {
|
|
277
|
-
const b = p.cpuLoad ?? p.traffic ?? 50,
|
|
277
|
+
const b = p.cpuLoad ?? p.traffic ?? 50, R = p.memLoad ?? p.queueDepth ?? 60, D = p.capacity ?? 72, C = Le(l, b, 70, 85), T = Le(l, R, 75, 88), W = Le(l, D, 75, 90);
|
|
278
278
|
$ = [
|
|
279
279
|
{
|
|
280
280
|
id: "cpu",
|
|
@@ -282,7 +282,7 @@ function Wt({
|
|
|
282
282
|
sublabel: a === "dispatcher" ? "PORT LOAD" : a === "messageServer" ? "QUEUE DEPTH" : "PROCESSOR",
|
|
283
283
|
value: b,
|
|
284
284
|
unit: "%",
|
|
285
|
-
status:
|
|
285
|
+
status: C,
|
|
286
286
|
icon: "cpu",
|
|
287
287
|
delay: 0
|
|
288
288
|
},
|
|
@@ -290,9 +290,9 @@ function Wt({
|
|
|
290
290
|
id: "mem",
|
|
291
291
|
label: "MEMORY",
|
|
292
292
|
sublabel: a === "database" ? "BUFFER POOL" : "HEAP USAGE",
|
|
293
|
-
value:
|
|
293
|
+
value: R,
|
|
294
294
|
unit: "%",
|
|
295
|
-
status:
|
|
295
|
+
status: T,
|
|
296
296
|
icon: "mem",
|
|
297
297
|
delay: 1
|
|
298
298
|
},
|
|
@@ -300,9 +300,9 @@ function Wt({
|
|
|
300
300
|
id: "storage",
|
|
301
301
|
label: "STORAGE",
|
|
302
302
|
sublabel: a === "database" ? "TABLESPACE" : "DISK I/O",
|
|
303
|
-
value:
|
|
303
|
+
value: D,
|
|
304
304
|
unit: "%",
|
|
305
|
-
status:
|
|
305
|
+
status: W,
|
|
306
306
|
icon: "disk",
|
|
307
307
|
delay: 2
|
|
308
308
|
}
|
|
@@ -312,22 +312,22 @@ function Wt({
|
|
|
312
312
|
"div",
|
|
313
313
|
{
|
|
314
314
|
style: {
|
|
315
|
-
...
|
|
315
|
+
...y,
|
|
316
316
|
width: 420,
|
|
317
317
|
background: "linear-gradient(170deg, rgba(2, 10, 22, 0.96) 0%, rgba(2, 6, 14, 0.98) 100%)",
|
|
318
318
|
backdropFilter: "blur(20px)",
|
|
319
319
|
WebkitBackdropFilter: "blur(20px)",
|
|
320
|
-
border: `1.5px solid ${
|
|
320
|
+
border: `1.5px solid ${f}44`,
|
|
321
321
|
borderRadius: 14,
|
|
322
322
|
fontFamily: "'Courier New', monospace",
|
|
323
323
|
overflow: "hidden",
|
|
324
324
|
opacity: o ? 1 : 0,
|
|
325
325
|
transform: o ? "scale(1) translate(0, 0)" : `scale(0.7) translate(${m}px, ${x}px)`,
|
|
326
|
-
transition: `opacity 0.45s ${
|
|
326
|
+
transition: `opacity 0.45s ${_e}, transform 0.55s ${Ve}`,
|
|
327
327
|
pointerEvents: o ? "auto" : "none",
|
|
328
328
|
zIndex: 9999,
|
|
329
329
|
animation: o ? "comp-dialog-border-glow 3s ease-in-out infinite" : "none",
|
|
330
|
-
"--dialog-color":
|
|
330
|
+
"--dialog-color": f
|
|
331
331
|
},
|
|
332
332
|
onClick: (b) => b.stopPropagation(),
|
|
333
333
|
children: [
|
|
@@ -340,8 +340,8 @@ function Wt({
|
|
|
340
340
|
left: 0,
|
|
341
341
|
right: 0,
|
|
342
342
|
height: 2,
|
|
343
|
-
background: `linear-gradient(90deg, transparent 2%, ${
|
|
344
|
-
boxShadow: `0 0 12px ${
|
|
343
|
+
background: `linear-gradient(90deg, transparent 2%, ${f}aa 30%, #fff 50%, ${f}aa 70%, transparent 98%)`,
|
|
344
|
+
boxShadow: `0 0 12px ${f}, 0 0 24px ${f}44`,
|
|
345
345
|
animation: o ? "holo-scan 3.5s linear infinite" : "none",
|
|
346
346
|
pointerEvents: "none",
|
|
347
347
|
zIndex: 10
|
|
@@ -355,8 +355,8 @@ function Wt({
|
|
|
355
355
|
position: "absolute",
|
|
356
356
|
inset: 0,
|
|
357
357
|
backgroundImage: `
|
|
358
|
-
linear-gradient(${
|
|
359
|
-
linear-gradient(90deg, ${
|
|
358
|
+
linear-gradient(${f}06 1px, transparent 1px),
|
|
359
|
+
linear-gradient(90deg, ${f}06 1px, transparent 1px)
|
|
360
360
|
`,
|
|
361
361
|
backgroundSize: "20px 20px",
|
|
362
362
|
pointerEvents: "none",
|
|
@@ -368,37 +368,37 @@ function Wt({
|
|
|
368
368
|
{
|
|
369
369
|
top: 0,
|
|
370
370
|
left: 0,
|
|
371
|
-
borderTop: `2px solid ${
|
|
372
|
-
borderLeft: `2px solid ${
|
|
371
|
+
borderTop: `2px solid ${f}66`,
|
|
372
|
+
borderLeft: `2px solid ${f}66`,
|
|
373
373
|
borderRadius: "14px 0 0 0"
|
|
374
374
|
},
|
|
375
375
|
{
|
|
376
376
|
top: 0,
|
|
377
377
|
right: 0,
|
|
378
|
-
borderTop: `2px solid ${
|
|
379
|
-
borderRight: `2px solid ${
|
|
378
|
+
borderTop: `2px solid ${f}66`,
|
|
379
|
+
borderRight: `2px solid ${f}66`,
|
|
380
380
|
borderRadius: "0 14px 0 0"
|
|
381
381
|
},
|
|
382
382
|
{
|
|
383
383
|
bottom: 0,
|
|
384
384
|
left: 0,
|
|
385
|
-
borderBottom: `2px solid ${
|
|
386
|
-
borderLeft: `2px solid ${
|
|
385
|
+
borderBottom: `2px solid ${f}66`,
|
|
386
|
+
borderLeft: `2px solid ${f}66`,
|
|
387
387
|
borderRadius: "0 0 0 14px"
|
|
388
388
|
},
|
|
389
389
|
{
|
|
390
390
|
bottom: 0,
|
|
391
391
|
right: 0,
|
|
392
|
-
borderBottom: `2px solid ${
|
|
393
|
-
borderRight: `2px solid ${
|
|
392
|
+
borderBottom: `2px solid ${f}66`,
|
|
393
|
+
borderRight: `2px solid ${f}66`,
|
|
394
394
|
borderRadius: "0 0 14px 0"
|
|
395
395
|
}
|
|
396
|
-
].map((b,
|
|
396
|
+
].map((b, R) => /* @__PURE__ */ e(
|
|
397
397
|
"div",
|
|
398
398
|
{
|
|
399
399
|
style: { position: "absolute", width: 18, height: 18, pointerEvents: "none", ...b }
|
|
400
400
|
},
|
|
401
|
-
|
|
401
|
+
R
|
|
402
402
|
)),
|
|
403
403
|
/* @__PURE__ */ d(
|
|
404
404
|
"div",
|
|
@@ -408,8 +408,8 @@ function Wt({
|
|
|
408
408
|
alignItems: "center",
|
|
409
409
|
justifyContent: "space-between",
|
|
410
410
|
padding: "18px 22px",
|
|
411
|
-
borderBottom: `1px solid ${
|
|
412
|
-
background: `linear-gradient(180deg, ${
|
|
411
|
+
borderBottom: `1px solid ${f}22`,
|
|
412
|
+
background: `linear-gradient(180deg, ${f}12 0%, transparent 100%)`,
|
|
413
413
|
position: "relative",
|
|
414
414
|
zIndex: 2
|
|
415
415
|
},
|
|
@@ -423,8 +423,8 @@ function Wt({
|
|
|
423
423
|
width: 10,
|
|
424
424
|
height: 10,
|
|
425
425
|
borderRadius: "50%",
|
|
426
|
-
background:
|
|
427
|
-
boxShadow: `0 0 12px ${
|
|
426
|
+
background: f,
|
|
427
|
+
boxShadow: `0 0 12px ${f}, 0 0 24px ${f}66`,
|
|
428
428
|
animation: l === "warning" || l === "critical" ? "holo-led-blink 1.5s infinite" : "none"
|
|
429
429
|
}
|
|
430
430
|
}
|
|
@@ -436,7 +436,7 @@ function Wt({
|
|
|
436
436
|
position: "absolute",
|
|
437
437
|
inset: -4,
|
|
438
438
|
borderRadius: "50%",
|
|
439
|
-
border: `1px solid ${
|
|
439
|
+
border: `1px solid ${f}44`,
|
|
440
440
|
animation: l === "warning" || l === "critical" ? "holo-ring-pulse 2s ease-in-out infinite" : "none"
|
|
441
441
|
}
|
|
442
442
|
}
|
|
@@ -449,13 +449,13 @@ function Wt({
|
|
|
449
449
|
style: {
|
|
450
450
|
fontSize: 16,
|
|
451
451
|
fontWeight: 700,
|
|
452
|
-
color:
|
|
452
|
+
color: f,
|
|
453
453
|
letterSpacing: "0.12em",
|
|
454
454
|
textTransform: "uppercase",
|
|
455
455
|
whiteSpace: "nowrap",
|
|
456
456
|
overflow: "hidden",
|
|
457
457
|
textOverflow: "ellipsis",
|
|
458
|
-
textShadow: `0 0 10px ${
|
|
458
|
+
textShadow: `0 0 10px ${f}88, 0 0 20px ${f}44`
|
|
459
459
|
},
|
|
460
460
|
children: s
|
|
461
461
|
}
|
|
@@ -465,7 +465,7 @@ function Wt({
|
|
|
465
465
|
{
|
|
466
466
|
style: {
|
|
467
467
|
fontSize: 9,
|
|
468
|
-
color: `${
|
|
468
|
+
color: `${f}88`,
|
|
469
469
|
letterSpacing: "0.2em",
|
|
470
470
|
textTransform: "uppercase"
|
|
471
471
|
},
|
|
@@ -484,9 +484,9 @@ function Wt({
|
|
|
484
484
|
width: 34,
|
|
485
485
|
height: 34,
|
|
486
486
|
borderRadius: 8,
|
|
487
|
-
border: `1px solid ${
|
|
488
|
-
background: `linear-gradient(135deg, rgba(0,0,0,0.5) 0%, ${
|
|
489
|
-
color:
|
|
487
|
+
border: `1px solid ${f}44`,
|
|
488
|
+
background: `linear-gradient(135deg, rgba(0,0,0,0.5) 0%, ${f}08 100%)`,
|
|
489
|
+
color: f,
|
|
490
490
|
fontSize: 18,
|
|
491
491
|
cursor: "pointer",
|
|
492
492
|
display: "flex",
|
|
@@ -497,10 +497,10 @@ function Wt({
|
|
|
497
497
|
flexShrink: 0
|
|
498
498
|
},
|
|
499
499
|
onMouseEnter: (b) => {
|
|
500
|
-
b.currentTarget.style.background = `${
|
|
500
|
+
b.currentTarget.style.background = `${f}22`, b.currentTarget.style.boxShadow = `0 0 12px ${f}44`;
|
|
501
501
|
},
|
|
502
502
|
onMouseLeave: (b) => {
|
|
503
|
-
b.currentTarget.style.background = `linear-gradient(135deg, rgba(0,0,0,0.5) 0%, ${
|
|
503
|
+
b.currentTarget.style.background = `linear-gradient(135deg, rgba(0,0,0,0.5) 0%, ${f}08 100%)`, b.currentTarget.style.boxShadow = "none";
|
|
504
504
|
},
|
|
505
505
|
children: "×"
|
|
506
506
|
}
|
|
@@ -519,7 +519,7 @@ function Wt({
|
|
|
519
519
|
position: "relative",
|
|
520
520
|
zIndex: 2
|
|
521
521
|
},
|
|
522
|
-
children: $.map((b) => /* @__PURE__ */ e(
|
|
522
|
+
children: $.map((b) => /* @__PURE__ */ e(Dt, { metric: b, visible: o, accentColor: f }, b.id))
|
|
523
523
|
}
|
|
524
524
|
),
|
|
525
525
|
/* @__PURE__ */ d(
|
|
@@ -527,14 +527,14 @@ function Wt({
|
|
|
527
527
|
{
|
|
528
528
|
style: {
|
|
529
529
|
padding: "12px 22px",
|
|
530
|
-
borderTop: `1px solid ${
|
|
531
|
-
background: `${
|
|
530
|
+
borderTop: `1px solid ${f}18`,
|
|
531
|
+
background: `${f}06`,
|
|
532
532
|
display: "flex",
|
|
533
533
|
alignItems: "center",
|
|
534
534
|
justifyContent: "space-between",
|
|
535
535
|
fontSize: 9,
|
|
536
536
|
letterSpacing: "0.18em",
|
|
537
|
-
color: `${
|
|
537
|
+
color: `${f}66`,
|
|
538
538
|
textTransform: "uppercase",
|
|
539
539
|
position: "relative",
|
|
540
540
|
zIndex: 2
|
|
@@ -553,8 +553,8 @@ function Wt({
|
|
|
553
553
|
width: 5,
|
|
554
554
|
height: 5,
|
|
555
555
|
borderRadius: "50%",
|
|
556
|
-
background: l === "online" ? "#00ff88" :
|
|
557
|
-
boxShadow: `0 0 6px ${l === "online" ? "#00ff88" :
|
|
556
|
+
background: l === "online" ? "#00ff88" : f,
|
|
557
|
+
boxShadow: `0 0 6px ${l === "online" ? "#00ff88" : f}`,
|
|
558
558
|
animation: l === "warning" || l === "critical" ? "holo-led-blink 1.5s infinite" : "none"
|
|
559
559
|
}
|
|
560
560
|
}
|
|
@@ -568,7 +568,7 @@ function Wt({
|
|
|
568
568
|
}
|
|
569
569
|
);
|
|
570
570
|
}
|
|
571
|
-
function
|
|
571
|
+
function Dt({
|
|
572
572
|
metric: t,
|
|
573
573
|
visible: n,
|
|
574
574
|
accentColor: o
|
|
@@ -579,12 +579,12 @@ function zt({
|
|
|
579
579
|
value: a,
|
|
580
580
|
unit: s,
|
|
581
581
|
status: l,
|
|
582
|
-
icon:
|
|
582
|
+
icon: h,
|
|
583
583
|
delay: c,
|
|
584
584
|
colorOverride: p,
|
|
585
|
-
warnAt:
|
|
586
|
-
critAt:
|
|
587
|
-
} = t, u = p ??
|
|
585
|
+
warnAt: f = 70,
|
|
586
|
+
critAt: g = 85
|
|
587
|
+
} = t, u = p ?? Lt(a, f, g), y = p ?? ct(l);
|
|
588
588
|
return /* @__PURE__ */ d(
|
|
589
589
|
"div",
|
|
590
590
|
{
|
|
@@ -594,7 +594,7 @@ function zt({
|
|
|
594
594
|
gap: 16,
|
|
595
595
|
opacity: n ? 1 : 0,
|
|
596
596
|
transform: n ? "translateY(0)" : "translateY(12px)",
|
|
597
|
-
transition: `opacity 0.4s ${
|
|
597
|
+
transition: `opacity 0.4s ${_e} ${0.3 + c * 0.12}s, transform 0.5s ${Ve} ${0.3 + c * 0.12}s`
|
|
598
598
|
},
|
|
599
599
|
children: [
|
|
600
600
|
/* @__PURE__ */ d(
|
|
@@ -604,18 +604,18 @@ function zt({
|
|
|
604
604
|
width: 52,
|
|
605
605
|
height: 52,
|
|
606
606
|
borderRadius: 12,
|
|
607
|
-
border: `1px solid ${
|
|
608
|
-
background: `linear-gradient(135deg, ${
|
|
607
|
+
border: `1px solid ${y}44`,
|
|
608
|
+
background: `linear-gradient(135deg, ${y}0c 0%, ${y}04 100%)`,
|
|
609
609
|
display: "flex",
|
|
610
610
|
alignItems: "center",
|
|
611
611
|
justifyContent: "center",
|
|
612
612
|
flexShrink: 0,
|
|
613
613
|
position: "relative",
|
|
614
614
|
overflow: "hidden",
|
|
615
|
-
animation: n ? `comp-dialog-icon-pop 0.5s ${
|
|
615
|
+
animation: n ? `comp-dialog-icon-pop 0.5s ${Ve} ${0.35 + c * 0.12}s both` : "none"
|
|
616
616
|
},
|
|
617
617
|
children: [
|
|
618
|
-
/* @__PURE__ */ e(
|
|
618
|
+
/* @__PURE__ */ e(Wt, { type: h, color: y }),
|
|
619
619
|
(l === "warning" || l === "critical") && /* @__PURE__ */ e(
|
|
620
620
|
"div",
|
|
621
621
|
{
|
|
@@ -626,8 +626,8 @@ function zt({
|
|
|
626
626
|
width: 5,
|
|
627
627
|
height: 5,
|
|
628
628
|
borderRadius: "50%",
|
|
629
|
-
background:
|
|
630
|
-
boxShadow: `0 0 6px ${
|
|
629
|
+
background: y,
|
|
630
|
+
boxShadow: `0 0 6px ${y}`,
|
|
631
631
|
animation: "holo-led-blink 1.2s infinite"
|
|
632
632
|
}
|
|
633
633
|
}
|
|
@@ -714,7 +714,7 @@ function zt({
|
|
|
714
714
|
background: `linear-gradient(90deg, ${u}66, ${u})`,
|
|
715
715
|
boxShadow: `0 0 8px ${u}44`,
|
|
716
716
|
transformOrigin: "left center",
|
|
717
|
-
animation: n ? `comp-dialog-metric-fill 0.8s ${
|
|
717
|
+
animation: n ? `comp-dialog-metric-fill 0.8s ${_e} ${0.4 + c * 0.12}s both` : "none"
|
|
718
718
|
}
|
|
719
719
|
}
|
|
720
720
|
),
|
|
@@ -723,7 +723,7 @@ function zt({
|
|
|
723
723
|
{
|
|
724
724
|
style: {
|
|
725
725
|
position: "absolute",
|
|
726
|
-
left: `${
|
|
726
|
+
left: `${f}%`,
|
|
727
727
|
top: 0,
|
|
728
728
|
bottom: 0,
|
|
729
729
|
width: 1,
|
|
@@ -736,7 +736,7 @@ function zt({
|
|
|
736
736
|
{
|
|
737
737
|
style: {
|
|
738
738
|
position: "absolute",
|
|
739
|
-
left: `${
|
|
739
|
+
left: `${g}%`,
|
|
740
740
|
top: 0,
|
|
741
741
|
bottom: 0,
|
|
742
742
|
width: 1,
|
|
@@ -766,7 +766,7 @@ function zt({
|
|
|
766
766
|
{
|
|
767
767
|
style: {
|
|
768
768
|
position: "absolute",
|
|
769
|
-
left: `${
|
|
769
|
+
left: `${f}%`,
|
|
770
770
|
transform: "translateX(-50%)",
|
|
771
771
|
fontSize: 6,
|
|
772
772
|
color: "rgba(255,140,0,0.3)",
|
|
@@ -780,7 +780,7 @@ function zt({
|
|
|
780
780
|
{
|
|
781
781
|
style: {
|
|
782
782
|
position: "absolute",
|
|
783
|
-
left: `${
|
|
783
|
+
left: `${g}%`,
|
|
784
784
|
transform: "translateX(-50%)",
|
|
785
785
|
fontSize: 6,
|
|
786
786
|
color: "rgba(255,34,85,0.3)",
|
|
@@ -808,7 +808,7 @@ function zt({
|
|
|
808
808
|
}
|
|
809
809
|
);
|
|
810
810
|
}
|
|
811
|
-
function
|
|
811
|
+
function Wt({ type: t, color: n }) {
|
|
812
812
|
return t === "cpu" ? /* @__PURE__ */ d("svg", { width: 28, height: 28, viewBox: "0 0 24 24", fill: "none", children: [
|
|
813
813
|
/* @__PURE__ */ e("rect", { x: "6", y: "6", width: "12", height: "12", rx: "2", stroke: n, strokeWidth: "1.5" }),
|
|
814
814
|
/* @__PURE__ */ e(
|
|
@@ -893,14 +893,14 @@ function Mt({ type: t, color: n }) {
|
|
|
893
893
|
/* @__PURE__ */ e("line", { x1: "18", y1: "12", x2: "21", y2: "12", stroke: n, strokeWidth: "0.8" })
|
|
894
894
|
] });
|
|
895
895
|
}
|
|
896
|
-
const
|
|
897
|
-
function
|
|
898
|
-
return
|
|
896
|
+
const qe = je(null), Ke = je({ index: 0 });
|
|
897
|
+
function xi() {
|
|
898
|
+
return we(qe);
|
|
899
899
|
}
|
|
900
|
-
function
|
|
901
|
-
return
|
|
900
|
+
function vi() {
|
|
901
|
+
return we(Ke);
|
|
902
902
|
}
|
|
903
|
-
function
|
|
903
|
+
function zt({
|
|
904
904
|
children: t,
|
|
905
905
|
logoUrl: n,
|
|
906
906
|
viewState: o,
|
|
@@ -909,42 +909,42 @@ function Nt({
|
|
|
909
909
|
selectedComponent: a,
|
|
910
910
|
drillAnimPhase: s,
|
|
911
911
|
rotateY: l = 20,
|
|
912
|
-
autoRotateComponents:
|
|
912
|
+
autoRotateComponents: h = !0,
|
|
913
913
|
componentScale: c = 0.35,
|
|
914
914
|
drillZoom: p = 3.3,
|
|
915
|
-
autoRotateCarousel:
|
|
916
|
-
carouselSpeed:
|
|
915
|
+
autoRotateCarousel: f = !0,
|
|
916
|
+
carouselSpeed: g = 6e-3,
|
|
917
917
|
width: u = 950,
|
|
918
|
-
height:
|
|
918
|
+
height: y = 790,
|
|
919
919
|
onSelectSystem: m,
|
|
920
920
|
onBackgroundClick: x,
|
|
921
921
|
onComponentClick: v,
|
|
922
922
|
onCloseDrill: $,
|
|
923
923
|
selectedSystemStatus: b = "online",
|
|
924
|
-
selectedSystemDbSync:
|
|
925
|
-
selectedSystemMetrics:
|
|
926
|
-
selectedSystemAlerts:
|
|
924
|
+
selectedSystemDbSync: R = !0,
|
|
925
|
+
selectedSystemMetrics: D,
|
|
926
|
+
selectedSystemAlerts: C
|
|
927
927
|
}) {
|
|
928
|
-
const [
|
|
929
|
-
|
|
930
|
-
let
|
|
931
|
-
if ((o === "compact" || o === "collapsing") &&
|
|
932
|
-
const
|
|
933
|
-
|
|
928
|
+
const [T, W] = I(0);
|
|
929
|
+
Te(() => {
|
|
930
|
+
let z;
|
|
931
|
+
if ((o === "compact" || o === "collapsing") && f) {
|
|
932
|
+
const F = () => {
|
|
933
|
+
W((ne) => ne + g), z = requestAnimationFrame(F);
|
|
934
934
|
};
|
|
935
|
-
|
|
935
|
+
z = requestAnimationFrame(F);
|
|
936
936
|
}
|
|
937
|
-
return () => cancelAnimationFrame(
|
|
938
|
-
}, [o,
|
|
939
|
-
const
|
|
937
|
+
return () => cancelAnimationFrame(z);
|
|
938
|
+
}, [o, f, g]);
|
|
939
|
+
const X = J.Children.toArray(t), j = X.length, N = Tt(() => ({
|
|
940
940
|
totalSystems: j,
|
|
941
|
-
carouselRotation:
|
|
941
|
+
carouselRotation: T,
|
|
942
942
|
viewState: o,
|
|
943
943
|
animPhase: i,
|
|
944
944
|
selectedSystem: r,
|
|
945
945
|
selectedComponent: a,
|
|
946
946
|
rotateY: l,
|
|
947
|
-
autoRotateComponents:
|
|
947
|
+
autoRotateComponents: h,
|
|
948
948
|
componentScale: c,
|
|
949
949
|
drillZoom: p,
|
|
950
950
|
onSelectSystem: m,
|
|
@@ -952,21 +952,21 @@ function Nt({
|
|
|
952
952
|
containerWidth: u
|
|
953
953
|
}), [
|
|
954
954
|
j,
|
|
955
|
-
|
|
955
|
+
T,
|
|
956
956
|
o,
|
|
957
957
|
i,
|
|
958
958
|
r,
|
|
959
959
|
a,
|
|
960
960
|
l,
|
|
961
|
-
|
|
961
|
+
h,
|
|
962
962
|
c,
|
|
963
963
|
p,
|
|
964
964
|
m,
|
|
965
965
|
v,
|
|
966
966
|
u
|
|
967
|
-
]),
|
|
968
|
-
return /* @__PURE__ */ d(
|
|
969
|
-
/* @__PURE__ */ d("div", { style: { position: "relative", width: u, height:
|
|
967
|
+
]), te = X.map((z, F) => /* @__PURE__ */ e(Ke.Provider, { value: { index: F }, children: z }, F)), ie = o === "expanded" || o === "expanding" && i >= 4;
|
|
968
|
+
return /* @__PURE__ */ d(qe.Provider, { value: N, children: [
|
|
969
|
+
/* @__PURE__ */ d("div", { style: { position: "relative", width: u, height: y, margin: "0 auto", flexShrink: 0 }, children: [
|
|
970
970
|
n && (o === "compact" || o === "collapsing") && /* @__PURE__ */ e(
|
|
971
971
|
"img",
|
|
972
972
|
{
|
|
@@ -987,32 +987,32 @@ function Nt({
|
|
|
987
987
|
}
|
|
988
988
|
}
|
|
989
989
|
),
|
|
990
|
-
|
|
990
|
+
te
|
|
991
991
|
] }),
|
|
992
|
-
r && /* @__PURE__ */ e("div", { onClick: (
|
|
993
|
-
|
|
992
|
+
r && /* @__PURE__ */ e("div", { onClick: (z) => z.stopPropagation(), children: /* @__PURE__ */ e(
|
|
993
|
+
It,
|
|
994
994
|
{
|
|
995
995
|
name: r,
|
|
996
996
|
status: b,
|
|
997
|
-
dbSync:
|
|
998
|
-
visible:
|
|
999
|
-
metrics:
|
|
1000
|
-
alerts:
|
|
997
|
+
dbSync: R,
|
|
998
|
+
visible: ie && !a,
|
|
999
|
+
metrics: D,
|
|
1000
|
+
alerts: C
|
|
1001
1001
|
}
|
|
1002
1002
|
) }),
|
|
1003
|
-
a && /* @__PURE__ */ e("div", { onClick: (
|
|
1004
|
-
|
|
1003
|
+
a && /* @__PURE__ */ e("div", { onClick: (z) => z.stopPropagation(), children: /* @__PURE__ */ e(
|
|
1004
|
+
Ot,
|
|
1005
1005
|
{
|
|
1006
1006
|
component: a,
|
|
1007
1007
|
onClose: $,
|
|
1008
1008
|
visible: s >= 0.3,
|
|
1009
1009
|
sceneWidth: u,
|
|
1010
|
-
sceneHeight:
|
|
1010
|
+
sceneHeight: y
|
|
1011
1011
|
}
|
|
1012
1012
|
) })
|
|
1013
1013
|
] });
|
|
1014
1014
|
}
|
|
1015
|
-
function
|
|
1015
|
+
function Mt({
|
|
1016
1016
|
x1: t,
|
|
1017
1017
|
y1: n,
|
|
1018
1018
|
x2: o,
|
|
@@ -1059,7 +1059,7 @@ function Bt({
|
|
|
1059
1059
|
)
|
|
1060
1060
|
}
|
|
1061
1061
|
),
|
|
1062
|
-
r && /* @__PURE__ */ d(
|
|
1062
|
+
r && /* @__PURE__ */ d(ve, { children: [
|
|
1063
1063
|
/* @__PURE__ */ e("circle", { r: "3", fill: a, opacity: 0.85, children: /* @__PURE__ */ e(
|
|
1064
1064
|
"animateMotion",
|
|
1065
1065
|
{
|
|
@@ -1079,14 +1079,14 @@ function Bt({
|
|
|
1079
1079
|
] })
|
|
1080
1080
|
] });
|
|
1081
1081
|
}
|
|
1082
|
-
const
|
|
1082
|
+
const Nt = [
|
|
1083
1083
|
{ scale: 1, op: 1, delay: "0.0s", bw: "2px", glow: 1 },
|
|
1084
1084
|
{ scale: 0.82, op: 0.88, delay: "0.5s", bw: "1.5px", glow: 0.7 },
|
|
1085
1085
|
{ scale: 0.64, op: 0.72, delay: "1.0s", bw: "1px", glow: 0.5 },
|
|
1086
1086
|
{ scale: 0.47, op: 0.58, delay: "1.5s", bw: "1px", glow: 0.35 },
|
|
1087
1087
|
{ scale: 0.3, op: 0.45, delay: "2.0s", bw: "1px", glow: 0.25 }
|
|
1088
1088
|
];
|
|
1089
|
-
function
|
|
1089
|
+
function Bt({
|
|
1090
1090
|
children: t,
|
|
1091
1091
|
size: n = 230,
|
|
1092
1092
|
widthRatio: o = 1,
|
|
@@ -1252,7 +1252,7 @@ function Ht({
|
|
|
1252
1252
|
background: `radial-gradient(ellipse, ${i}88 0%, ${i}33 40%, transparent 72%)`,
|
|
1253
1253
|
filter: "blur(12px)"
|
|
1254
1254
|
} }),
|
|
1255
|
-
|
|
1255
|
+
Nt.map((s, l) => /* @__PURE__ */ e("div", { style: {
|
|
1256
1256
|
position: "absolute",
|
|
1257
1257
|
width: a * s.scale,
|
|
1258
1258
|
height: n * s.scale,
|
|
@@ -1295,8 +1295,8 @@ function Ht({
|
|
|
1295
1295
|
}, children: r })
|
|
1296
1296
|
] });
|
|
1297
1297
|
}
|
|
1298
|
-
const le =
|
|
1299
|
-
function
|
|
1298
|
+
const le = je(null), Ft = "cubic-bezier(0.34, 1.56, 0.64, 1)", ot = 330, rt = 340, Ht = 660;
|
|
1299
|
+
function pt({
|
|
1300
1300
|
name: t,
|
|
1301
1301
|
status: n = "online",
|
|
1302
1302
|
connections: o = [],
|
|
@@ -1305,36 +1305,36 @@ function tt({
|
|
|
1305
1305
|
_index: a,
|
|
1306
1306
|
_totalSystems: s,
|
|
1307
1307
|
_carouselRotation: l,
|
|
1308
|
-
_viewState:
|
|
1308
|
+
_viewState: h,
|
|
1309
1309
|
_animPhase: c,
|
|
1310
1310
|
_selectedSystem: p,
|
|
1311
|
-
_selectedComponent:
|
|
1312
|
-
_rotateY:
|
|
1311
|
+
_selectedComponent: f,
|
|
1312
|
+
_rotateY: g,
|
|
1313
1313
|
_autoRotateComponents: u,
|
|
1314
|
-
_componentScale:
|
|
1314
|
+
_componentScale: y,
|
|
1315
1315
|
_drillZoom: m,
|
|
1316
1316
|
_onSelectSystem: x,
|
|
1317
1317
|
_onComponentClick: v,
|
|
1318
1318
|
_containerWidth: $
|
|
1319
1319
|
}) {
|
|
1320
|
-
const b =
|
|
1320
|
+
const b = we(qe), R = we(Ke), D = a ?? R.index, C = s ?? b?.totalSystems ?? 1, T = l ?? b?.carouselRotation ?? 0, W = h ?? b?.viewState ?? "compact", X = c ?? b?.animPhase ?? 0, j = p ?? b?.selectedSystem ?? null, N = f ?? b?.selectedComponent ?? null, te = g ?? b?.rotateY ?? 20, ie = u ?? b?.autoRotateComponents ?? !0, z = y ?? b?.componentScale ?? 0.35, F = m ?? b?.drillZoom ?? 3.3, ne = x ?? b?.onSelectSystem, $e = v ?? b?.onComponentClick, ke = $ ?? b?.containerWidth ?? 950, V = j === t, M = V && (W === "expanded" || W === "expanding" && X >= 1), P = !M, Re = (ke - Ht) / 2, oe = ot + Re, se = D / C * Math.PI * 2 + T, Ne = 420, Ae = 160, Pe = oe + Math.cos(se) * Ne, de = 450 + Math.sin(se) * Ae, xt = Math.round(de), Be = !V && (W === "expanding" || W === "expanded"), vt = Be ? 0 : 1, Ce = P ? 0.3 + (Math.sin(se) + 1) * 0.1 : 1, wt = P ? Ce : z, Ie = W === "compact" || W === "collapsing" ? "none" : "all 1s cubic-bezier(0.34, 1.56, 0.64, 1)", nt = V && N, Fe = nt ? F : 1, St = N?.ex ?? 330, $t = N?.ey ?? 300, { size: kt = 90, color: Rt = "#00e5ff", widthRatio: Pt = 3 } = i ?? {}, Ct = {
|
|
1321
1321
|
name: t,
|
|
1322
|
-
isSelected:
|
|
1323
|
-
isExpandedPos:
|
|
1324
|
-
isCompact:
|
|
1325
|
-
animPhase:
|
|
1326
|
-
compactCx:
|
|
1322
|
+
isSelected: V,
|
|
1323
|
+
isExpandedPos: M,
|
|
1324
|
+
isCompact: P,
|
|
1325
|
+
animPhase: X,
|
|
1326
|
+
compactCx: Pe,
|
|
1327
1327
|
compactCy: de,
|
|
1328
|
-
groupScale:
|
|
1329
|
-
effectiveScale:
|
|
1330
|
-
transitionValue:
|
|
1331
|
-
rotateY:
|
|
1332
|
-
autoRotateComponents:
|
|
1333
|
-
onComponentClick:
|
|
1334
|
-
selectedComponentName:
|
|
1335
|
-
expandedOffsetX:
|
|
1328
|
+
groupScale: Ce,
|
|
1329
|
+
effectiveScale: wt,
|
|
1330
|
+
transitionValue: Ie,
|
|
1331
|
+
rotateY: te,
|
|
1332
|
+
autoRotateComponents: ie,
|
|
1333
|
+
onComponentClick: $e,
|
|
1334
|
+
selectedComponentName: N?.name ?? null,
|
|
1335
|
+
expandedOffsetX: Re
|
|
1336
1336
|
};
|
|
1337
|
-
return /* @__PURE__ */ e(le.Provider, { value:
|
|
1337
|
+
return /* @__PURE__ */ e(le.Provider, { value: Ct, children: /* @__PURE__ */ d(
|
|
1338
1338
|
"div",
|
|
1339
1339
|
{
|
|
1340
1340
|
style: {
|
|
@@ -1344,20 +1344,20 @@ function tt({
|
|
|
1344
1344
|
width: "100%",
|
|
1345
1345
|
height: "100%",
|
|
1346
1346
|
pointerEvents: "none",
|
|
1347
|
-
opacity:
|
|
1348
|
-
transition: `opacity 0.8s ease, filter 0.5s ease, transform 0.6s ${
|
|
1349
|
-
filter:
|
|
1350
|
-
zIndex:
|
|
1351
|
-
transformOrigin: `${
|
|
1352
|
-
transform:
|
|
1347
|
+
opacity: vt,
|
|
1348
|
+
transition: `opacity 0.8s ease, filter 0.5s ease, transform 0.6s ${Ft}`,
|
|
1349
|
+
filter: P && Math.sin(se) < -0.5 ? "brightness(0.5) blur(2px)" : "none",
|
|
1350
|
+
zIndex: V ? 500 : Be ? 0 : xt,
|
|
1351
|
+
transformOrigin: `${oe}px ${rt}px`,
|
|
1352
|
+
transform: nt ? `translate(${-(St - ot) * Fe}px, ${-($t - rt) * Fe}px) scale(${Fe})` : "none"
|
|
1353
1353
|
},
|
|
1354
1354
|
children: [
|
|
1355
|
-
|
|
1355
|
+
P && !Be && /* @__PURE__ */ e(
|
|
1356
1356
|
"div",
|
|
1357
1357
|
{
|
|
1358
1358
|
style: {
|
|
1359
1359
|
position: "absolute",
|
|
1360
|
-
left:
|
|
1360
|
+
left: Pe,
|
|
1361
1361
|
top: de,
|
|
1362
1362
|
width: 160,
|
|
1363
1363
|
height: 180,
|
|
@@ -1366,19 +1366,19 @@ function tt({
|
|
|
1366
1366
|
cursor: "pointer",
|
|
1367
1367
|
zIndex: 101
|
|
1368
1368
|
},
|
|
1369
|
-
onClick: (
|
|
1370
|
-
|
|
1369
|
+
onClick: (Q) => {
|
|
1370
|
+
Q.stopPropagation(), ne?.(t);
|
|
1371
1371
|
}
|
|
1372
1372
|
}
|
|
1373
1373
|
),
|
|
1374
|
-
|
|
1374
|
+
P && (n === "warning" || n === "critical") && /* @__PURE__ */ e(
|
|
1375
1375
|
"div",
|
|
1376
1376
|
{
|
|
1377
1377
|
style: {
|
|
1378
1378
|
position: "absolute",
|
|
1379
|
-
left:
|
|
1379
|
+
left: Pe,
|
|
1380
1380
|
top: de - 200,
|
|
1381
|
-
transform: `translate(-50%, -50%) scale(${
|
|
1381
|
+
transform: `translate(-50%, -50%) scale(${Ce})`,
|
|
1382
1382
|
zIndex: 110,
|
|
1383
1383
|
pointerEvents: "none",
|
|
1384
1384
|
animation: "holo-led-blink 1.5s infinite",
|
|
@@ -1424,13 +1424,13 @@ function tt({
|
|
|
1424
1424
|
{
|
|
1425
1425
|
style: {
|
|
1426
1426
|
position: "absolute",
|
|
1427
|
-
left:
|
|
1428
|
-
top:
|
|
1429
|
-
transform: `translate(-50%, -50%) scale(${
|
|
1427
|
+
left: M ? oe : Pe,
|
|
1428
|
+
top: M ? 48 : de - 180,
|
|
1429
|
+
transform: `translate(-50%, -50%) scale(${M ? 1.2 : Ce * 1.5})`,
|
|
1430
1430
|
opacity: 1,
|
|
1431
1431
|
pointerEvents: "none",
|
|
1432
1432
|
zIndex: 100,
|
|
1433
|
-
transition:
|
|
1433
|
+
transition: Ie,
|
|
1434
1434
|
fontSize: 36,
|
|
1435
1435
|
fontWeight: 700,
|
|
1436
1436
|
letterSpacing: "0.18em",
|
|
@@ -1450,25 +1450,25 @@ function tt({
|
|
|
1450
1450
|
style: {
|
|
1451
1451
|
position: "absolute",
|
|
1452
1452
|
top: 0,
|
|
1453
|
-
left:
|
|
1453
|
+
left: M ? Re : 0,
|
|
1454
1454
|
width: 660,
|
|
1455
1455
|
height: 640,
|
|
1456
1456
|
pointerEvents: "none",
|
|
1457
1457
|
zIndex: 0,
|
|
1458
|
-
transition:
|
|
1458
|
+
transition: Ie
|
|
1459
1459
|
},
|
|
1460
|
-
children: o.map((
|
|
1461
|
-
|
|
1460
|
+
children: o.map((Q, Et) => /* @__PURE__ */ e(
|
|
1461
|
+
Mt,
|
|
1462
1462
|
{
|
|
1463
|
-
x1:
|
|
1464
|
-
y1:
|
|
1465
|
-
x2:
|
|
1466
|
-
y2:
|
|
1467
|
-
show:
|
|
1468
|
-
color:
|
|
1469
|
-
dur:
|
|
1463
|
+
x1: Q.from[0],
|
|
1464
|
+
y1: Q.from[1],
|
|
1465
|
+
x2: Q.to[0],
|
|
1466
|
+
y2: Q.to[1],
|
|
1467
|
+
show: V && X >= (Q.visibleAtPhase ?? 0),
|
|
1468
|
+
color: Q.color,
|
|
1469
|
+
dur: Q.duration
|
|
1470
1470
|
},
|
|
1471
|
-
|
|
1471
|
+
Et
|
|
1472
1472
|
))
|
|
1473
1473
|
}
|
|
1474
1474
|
),
|
|
@@ -1477,13 +1477,13 @@ function tt({
|
|
|
1477
1477
|
{
|
|
1478
1478
|
style: {
|
|
1479
1479
|
position: "absolute",
|
|
1480
|
-
left:
|
|
1481
|
-
top:
|
|
1482
|
-
transform: `translate(-50%, -50%) scaleX(${
|
|
1483
|
-
transition:
|
|
1480
|
+
left: M ? oe : Pe,
|
|
1481
|
+
top: M ? 570 : de + 70,
|
|
1482
|
+
transform: `translate(-50%, -50%) scaleX(${M ? 1 : 0.4}) scaleY(${M ? 1 : 0.6}) scale(${M ? 1 : Ce})`,
|
|
1483
|
+
transition: Ie,
|
|
1484
1484
|
zIndex: 1
|
|
1485
1485
|
},
|
|
1486
|
-
children: /* @__PURE__ */ e(
|
|
1486
|
+
children: /* @__PURE__ */ e(Bt, { size: kt, color: Rt, widthRatio: Pt, children: /* @__PURE__ */ e("div", { className: "base-hotspot" }) })
|
|
1487
1487
|
}
|
|
1488
1488
|
),
|
|
1489
1489
|
r
|
|
@@ -1491,173 +1491,7 @@ function tt({
|
|
|
1491
1491
|
}
|
|
1492
1492
|
) });
|
|
1493
1493
|
}
|
|
1494
|
-
function
|
|
1495
|
-
ex: t,
|
|
1496
|
-
ey: n,
|
|
1497
|
-
compactOffset: o,
|
|
1498
|
-
zIndex: i,
|
|
1499
|
-
children: r,
|
|
1500
|
-
color: a = "#00e5ff",
|
|
1501
|
-
label: s,
|
|
1502
|
-
subLabel: l,
|
|
1503
|
-
delay: f = "0s",
|
|
1504
|
-
componentInfo: c,
|
|
1505
|
-
visibleAtPhase: p = 0,
|
|
1506
|
-
fixedScale: h,
|
|
1507
|
-
bare: y = !1
|
|
1508
|
-
}) {
|
|
1509
|
-
const u = ve(le);
|
|
1510
|
-
if (!u)
|
|
1511
|
-
throw new Error("ServiceNode must be used inside a <Service> component.");
|
|
1512
|
-
const {
|
|
1513
|
-
isExpandedPos: g,
|
|
1514
|
-
animPhase: m,
|
|
1515
|
-
compactCx: x,
|
|
1516
|
-
compactCy: v,
|
|
1517
|
-
groupScale: $,
|
|
1518
|
-
effectiveScale: b,
|
|
1519
|
-
transitionValue: k,
|
|
1520
|
-
onComponentClick: T,
|
|
1521
|
-
selectedComponentName: R,
|
|
1522
|
-
expandedOffsetX: L
|
|
1523
|
-
} = u, F = p === 0 || u.isSelected && m >= p ? 1 : 0, j = x + o.x, M = v + o.y, ie = g ? t + L : j, ne = g ? n : M, W = h !== void 0 ? h : u.isCompact ? $ : b, H = !!c && !!R && c.name === R, oe = c?.status ? w[c.status]?.color ?? a : a, Se = c?.status === "offline" ? "#4a6a8a" : oe, $e = c && g && T ? () => T({
|
|
1524
|
-
type: c.type,
|
|
1525
|
-
name: c.name,
|
|
1526
|
-
status: c.status,
|
|
1527
|
-
ex: c.ex ?? t,
|
|
1528
|
-
ey: c.ey ?? n,
|
|
1529
|
-
context: c.context,
|
|
1530
|
-
dialogMetrics: c.dialogMetrics,
|
|
1531
|
-
subComponents: c.subComponents,
|
|
1532
|
-
graphSeries: c.graphSeries
|
|
1533
|
-
}) : void 0;
|
|
1534
|
-
return /* @__PURE__ */ e(
|
|
1535
|
-
"div",
|
|
1536
|
-
{
|
|
1537
|
-
style: {
|
|
1538
|
-
position: "absolute",
|
|
1539
|
-
left: ie,
|
|
1540
|
-
top: ne,
|
|
1541
|
-
transform: `translate(-50%, -50%) scale(${W})`,
|
|
1542
|
-
opacity: F,
|
|
1543
|
-
zIndex: i,
|
|
1544
|
-
transition: k || "all 1s cubic-bezier(0.34, 1.56, 0.64, 1)",
|
|
1545
|
-
pointerEvents: g && F >= 0.5 ? "auto" : "none"
|
|
1546
|
-
},
|
|
1547
|
-
children: y ? r : /* @__PURE__ */ e(
|
|
1548
|
-
Vt,
|
|
1549
|
-
{
|
|
1550
|
-
statusColor: Se,
|
|
1551
|
-
label: s,
|
|
1552
|
-
subLabel: l,
|
|
1553
|
-
delay: f,
|
|
1554
|
-
showLabels: g,
|
|
1555
|
-
isCompact: u.isCompact,
|
|
1556
|
-
onClick: $e,
|
|
1557
|
-
isSelected: H,
|
|
1558
|
-
children: r
|
|
1559
|
-
}
|
|
1560
|
-
)
|
|
1561
|
-
}
|
|
1562
|
-
);
|
|
1563
|
-
}
|
|
1564
|
-
function Vt({
|
|
1565
|
-
children: t,
|
|
1566
|
-
statusColor: n,
|
|
1567
|
-
label: o,
|
|
1568
|
-
subLabel: i,
|
|
1569
|
-
delay: r = "0s",
|
|
1570
|
-
showLabels: a = !0,
|
|
1571
|
-
isCompact: s = !1,
|
|
1572
|
-
onClick: l,
|
|
1573
|
-
isSelected: f = !1
|
|
1574
|
-
}) {
|
|
1575
|
-
const [c, p] = I(!1), h = f ? `brightness(1.5) drop-shadow(0 0 24px ${n}cc) drop-shadow(0 0 8px ${n}88)` : c && l ? `brightness(1.2) drop-shadow(0 0 12px ${n}77)` : "";
|
|
1576
|
-
return /* @__PURE__ */ d(
|
|
1577
|
-
"div",
|
|
1578
|
-
{
|
|
1579
|
-
className: `float-node${l ? " float-node--interactive" : ""}`,
|
|
1580
|
-
onClick: (y) => {
|
|
1581
|
-
l && (y.stopPropagation(), l());
|
|
1582
|
-
},
|
|
1583
|
-
style: {
|
|
1584
|
-
cursor: l ? "pointer" : void 0,
|
|
1585
|
-
transition: "filter 0.3s ease",
|
|
1586
|
-
filter: h
|
|
1587
|
-
},
|
|
1588
|
-
onMouseEnter: () => p(!0),
|
|
1589
|
-
onMouseLeave: () => p(!1),
|
|
1590
|
-
role: l ? "button" : void 0,
|
|
1591
|
-
title: l ? "Click to inspect internal components" : void 0,
|
|
1592
|
-
children: [
|
|
1593
|
-
/* @__PURE__ */ d("div", { className: "float-body", style: { animationDelay: r }, children: [
|
|
1594
|
-
/* @__PURE__ */ e(
|
|
1595
|
-
"div",
|
|
1596
|
-
{
|
|
1597
|
-
className: "scan-line",
|
|
1598
|
-
style: {
|
|
1599
|
-
background: `linear-gradient(90deg, transparent 5%, ${n}cc 40%, #fff 50%, ${n}cc 60%, transparent 95%)`,
|
|
1600
|
-
boxShadow: `0 0 8px ${n}`
|
|
1601
|
-
}
|
|
1602
|
-
}
|
|
1603
|
-
),
|
|
1604
|
-
/* @__PURE__ */ e("div", { style: s ? { background: "#040c1a", borderRadius: 2 } : void 0, children: s && ee.isValidElement(t) ? ee.cloneElement(t, {
|
|
1605
|
-
_compact: !0
|
|
1606
|
-
}) : t })
|
|
1607
|
-
] }),
|
|
1608
|
-
/* @__PURE__ */ d(
|
|
1609
|
-
"div",
|
|
1610
|
-
{
|
|
1611
|
-
style: {
|
|
1612
|
-
opacity: a ? 1 : 0,
|
|
1613
|
-
transition: "opacity 0.5s ease"
|
|
1614
|
-
},
|
|
1615
|
-
children: [
|
|
1616
|
-
o && /* @__PURE__ */ e("div", { className: "node-tag", style: { color: n + "cc" }, children: o }),
|
|
1617
|
-
i && /* @__PURE__ */ e("div", { className: "node-subtag", style: { color: n + "77" }, children: i })
|
|
1618
|
-
]
|
|
1619
|
-
}
|
|
1620
|
-
)
|
|
1621
|
-
]
|
|
1622
|
-
}
|
|
1623
|
-
);
|
|
1624
|
-
}
|
|
1625
|
-
function ut({ synced: t, latencyMs: n }) {
|
|
1626
|
-
const o = t ? "#00ff88" : "#ff8c00";
|
|
1627
|
-
return /* @__PURE__ */ d("div", { className: "sync-bridge", children: [
|
|
1628
|
-
/* @__PURE__ */ d("div", { className: "sync-arrows", children: [
|
|
1629
|
-
/* @__PURE__ */ e("span", { style: { color: o, fontSize: 10, lineHeight: 1 }, children: "◄" }),
|
|
1630
|
-
/* @__PURE__ */ e(
|
|
1631
|
-
"div",
|
|
1632
|
-
{
|
|
1633
|
-
className: "sync-line",
|
|
1634
|
-
style: {
|
|
1635
|
-
background: `linear-gradient(90deg, ${o}44, ${o}, ${o}44)`,
|
|
1636
|
-
boxShadow: `0 0 8px ${o}55`
|
|
1637
|
-
}
|
|
1638
|
-
}
|
|
1639
|
-
),
|
|
1640
|
-
/* @__PURE__ */ e("span", { style: { color: o, fontSize: 10, lineHeight: 1 }, children: "►" })
|
|
1641
|
-
] }),
|
|
1642
|
-
/* @__PURE__ */ e(
|
|
1643
|
-
"div",
|
|
1644
|
-
{
|
|
1645
|
-
className: "sync-status",
|
|
1646
|
-
style: {
|
|
1647
|
-
color: o,
|
|
1648
|
-
animation: t ? "none" : "holo-led-blink 1s linear infinite"
|
|
1649
|
-
},
|
|
1650
|
-
children: t ? "SYNCED" : "LAG"
|
|
1651
|
-
}
|
|
1652
|
-
),
|
|
1653
|
-
/* @__PURE__ */ d("div", { className: "sync-latency", style: { color: o + "88" }, children: [
|
|
1654
|
-
n,
|
|
1655
|
-
"ms ",
|
|
1656
|
-
t ? "replication" : "behind"
|
|
1657
|
-
] })
|
|
1658
|
-
] });
|
|
1659
|
-
}
|
|
1660
|
-
function O({
|
|
1494
|
+
function L({
|
|
1661
1495
|
ex: t,
|
|
1662
1496
|
ey: n,
|
|
1663
1497
|
status: o,
|
|
@@ -1666,23 +1500,23 @@ function O({
|
|
|
1666
1500
|
offsetX: a,
|
|
1667
1501
|
offsetY: s,
|
|
1668
1502
|
isVisible: l,
|
|
1669
|
-
align:
|
|
1503
|
+
align: h = "right",
|
|
1670
1504
|
internalRef: c
|
|
1671
1505
|
}) {
|
|
1672
|
-
const p =
|
|
1506
|
+
const p = we(le), f = p?.expandedOffsetX ?? 0;
|
|
1673
1507
|
if (o === "online") return null;
|
|
1674
|
-
const
|
|
1508
|
+
const g = l && !!p?.isExpandedPos, u = w[o]?.color ?? w.warning.color, y = Math.abs(a) > Math.abs(s), m = t + f + (y ? Math.sign(a) * 45 : 0), x = n + (y ? 0 : Math.sign(s) * 40), v = t + f + a, $ = n + s;
|
|
1675
1509
|
let b = "";
|
|
1676
|
-
if (
|
|
1677
|
-
const
|
|
1678
|
-
b = `M ${m} ${x} L ${
|
|
1510
|
+
if (y) {
|
|
1511
|
+
const T = m + (v - m) / 2;
|
|
1512
|
+
b = `M ${m} ${x} L ${T} ${x} L ${T} ${$} L ${v} ${$}`;
|
|
1679
1513
|
} else {
|
|
1680
|
-
const
|
|
1681
|
-
b = `M ${m} ${x} L ${m} ${
|
|
1514
|
+
const T = x + ($ - x) / 2;
|
|
1515
|
+
b = `M ${m} ${x} L ${m} ${T} L ${v} ${T} L ${v} ${$}`;
|
|
1682
1516
|
}
|
|
1683
|
-
let
|
|
1684
|
-
|
|
1685
|
-
const
|
|
1517
|
+
let R = "translate(0, -50%)";
|
|
1518
|
+
h === "left" && (R = "translate(-100%, -50%)"), h === "top" && (R = "translate(-50%, -100%)"), h === "bottom" && (R = "translate(-50%, 0)");
|
|
1519
|
+
const D = h === "left" ? -8 : h === "right" ? 8 : 0, C = h === "top" ? -8 : h === "bottom" ? 8 : 0;
|
|
1686
1520
|
return /* @__PURE__ */ d(
|
|
1687
1521
|
"div",
|
|
1688
1522
|
{
|
|
@@ -1693,7 +1527,7 @@ function O({
|
|
|
1693
1527
|
width: "100%",
|
|
1694
1528
|
height: "100%",
|
|
1695
1529
|
pointerEvents: "none",
|
|
1696
|
-
opacity:
|
|
1530
|
+
opacity: g ? 1 : 0,
|
|
1697
1531
|
transition: "opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.8s",
|
|
1698
1532
|
zIndex: 150
|
|
1699
1533
|
},
|
|
@@ -1730,9 +1564,9 @@ function O({
|
|
|
1730
1564
|
position: "absolute",
|
|
1731
1565
|
left: v,
|
|
1732
1566
|
top: $,
|
|
1733
|
-
transform:
|
|
1734
|
-
marginLeft:
|
|
1735
|
-
marginTop:
|
|
1567
|
+
transform: R,
|
|
1568
|
+
marginLeft: D,
|
|
1569
|
+
marginTop: C,
|
|
1736
1570
|
background: "repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255,255,255,0.03) 2px, rgba(255,255,255,0.03) 4px), rgba(2, 8, 16, 0.82)",
|
|
1737
1571
|
border: `1px solid ${u}55`,
|
|
1738
1572
|
borderLeft: `2px solid ${u}`,
|
|
@@ -1804,8 +1638,192 @@ function O({
|
|
|
1804
1638
|
}
|
|
1805
1639
|
);
|
|
1806
1640
|
}
|
|
1807
|
-
|
|
1808
|
-
|
|
1641
|
+
function k({
|
|
1642
|
+
ex: t,
|
|
1643
|
+
ey: n,
|
|
1644
|
+
compactOffset: o,
|
|
1645
|
+
zIndex: i,
|
|
1646
|
+
children: r,
|
|
1647
|
+
color: a = "#00e5ff",
|
|
1648
|
+
label: s,
|
|
1649
|
+
subLabel: l,
|
|
1650
|
+
delay: h = "0s",
|
|
1651
|
+
componentInfo: c,
|
|
1652
|
+
visibleAtPhase: p = 0,
|
|
1653
|
+
fixedScale: f,
|
|
1654
|
+
bare: g = !1,
|
|
1655
|
+
alert: u
|
|
1656
|
+
}) {
|
|
1657
|
+
const y = we(le);
|
|
1658
|
+
if (!y)
|
|
1659
|
+
throw new Error("ServiceNode must be used inside a <Service> component.");
|
|
1660
|
+
const {
|
|
1661
|
+
isExpandedPos: m,
|
|
1662
|
+
animPhase: x,
|
|
1663
|
+
compactCx: v,
|
|
1664
|
+
compactCy: $,
|
|
1665
|
+
groupScale: b,
|
|
1666
|
+
effectiveScale: R,
|
|
1667
|
+
transitionValue: D,
|
|
1668
|
+
onComponentClick: C,
|
|
1669
|
+
selectedComponentName: T,
|
|
1670
|
+
expandedOffsetX: W
|
|
1671
|
+
} = y, j = p === 0 || y.isSelected && x >= p ? 1 : 0, N = v + o.x, te = $ + o.y, ie = m ? t + W : N, z = m ? n : te, F = f !== void 0 ? f : y.isCompact ? b : R, ne = !!c && !!T && c.name === T, $e = c?.status ? w[c.status]?.color ?? a : a, ke = c?.status === "offline" ? "#4a6a8a" : $e, V = c && m && C ? () => C({
|
|
1672
|
+
type: c.type,
|
|
1673
|
+
name: c.name,
|
|
1674
|
+
status: c.status,
|
|
1675
|
+
ex: c.ex ?? t,
|
|
1676
|
+
ey: c.ey ?? n,
|
|
1677
|
+
context: c.context,
|
|
1678
|
+
dialogMetrics: c.dialogMetrics,
|
|
1679
|
+
subComponents: c.subComponents,
|
|
1680
|
+
graphSeries: c.graphSeries
|
|
1681
|
+
}) : void 0, M = c?.status ?? "online", P = c?.name ?? s ?? "";
|
|
1682
|
+
return /* @__PURE__ */ d(ve, { children: [
|
|
1683
|
+
/* @__PURE__ */ e(
|
|
1684
|
+
"div",
|
|
1685
|
+
{
|
|
1686
|
+
style: {
|
|
1687
|
+
position: "absolute",
|
|
1688
|
+
left: ie,
|
|
1689
|
+
top: z,
|
|
1690
|
+
transform: `translate(-50%, -50%) scale(${F})`,
|
|
1691
|
+
opacity: j,
|
|
1692
|
+
zIndex: i,
|
|
1693
|
+
transition: D || "all 1s cubic-bezier(0.34, 1.56, 0.64, 1)",
|
|
1694
|
+
pointerEvents: m && j >= 0.5 ? "auto" : "none"
|
|
1695
|
+
},
|
|
1696
|
+
children: g ? r : /* @__PURE__ */ e(
|
|
1697
|
+
Ut,
|
|
1698
|
+
{
|
|
1699
|
+
statusColor: ke,
|
|
1700
|
+
label: s,
|
|
1701
|
+
subLabel: l,
|
|
1702
|
+
delay: h,
|
|
1703
|
+
showLabels: m,
|
|
1704
|
+
isCompact: y.isCompact,
|
|
1705
|
+
onClick: V,
|
|
1706
|
+
isSelected: ne,
|
|
1707
|
+
children: r
|
|
1708
|
+
}
|
|
1709
|
+
)
|
|
1710
|
+
}
|
|
1711
|
+
),
|
|
1712
|
+
u && /* @__PURE__ */ e(
|
|
1713
|
+
L,
|
|
1714
|
+
{
|
|
1715
|
+
ex: t,
|
|
1716
|
+
ey: n,
|
|
1717
|
+
status: M,
|
|
1718
|
+
title: P,
|
|
1719
|
+
msg: u.msg,
|
|
1720
|
+
offsetX: u.offsetX ?? 110,
|
|
1721
|
+
offsetY: u.offsetY ?? -30,
|
|
1722
|
+
align: u.align ?? "right",
|
|
1723
|
+
internalRef: u.internalRef,
|
|
1724
|
+
isVisible: !0
|
|
1725
|
+
}
|
|
1726
|
+
)
|
|
1727
|
+
] });
|
|
1728
|
+
}
|
|
1729
|
+
function Ut({
|
|
1730
|
+
children: t,
|
|
1731
|
+
statusColor: n,
|
|
1732
|
+
label: o,
|
|
1733
|
+
subLabel: i,
|
|
1734
|
+
delay: r = "0s",
|
|
1735
|
+
showLabels: a = !0,
|
|
1736
|
+
isCompact: s = !1,
|
|
1737
|
+
onClick: l,
|
|
1738
|
+
isSelected: h = !1
|
|
1739
|
+
}) {
|
|
1740
|
+
const [c, p] = I(!1), f = h ? `brightness(1.5) drop-shadow(0 0 24px ${n}cc) drop-shadow(0 0 8px ${n}88)` : c && l ? `brightness(1.2) drop-shadow(0 0 12px ${n}77)` : "";
|
|
1741
|
+
return /* @__PURE__ */ d(
|
|
1742
|
+
"div",
|
|
1743
|
+
{
|
|
1744
|
+
className: `float-node${l ? " float-node--interactive" : ""}`,
|
|
1745
|
+
onClick: (g) => {
|
|
1746
|
+
l && (g.stopPropagation(), l());
|
|
1747
|
+
},
|
|
1748
|
+
style: {
|
|
1749
|
+
cursor: l ? "pointer" : void 0,
|
|
1750
|
+
transition: "filter 0.3s ease",
|
|
1751
|
+
filter: f
|
|
1752
|
+
},
|
|
1753
|
+
onMouseEnter: () => p(!0),
|
|
1754
|
+
onMouseLeave: () => p(!1),
|
|
1755
|
+
role: l ? "button" : void 0,
|
|
1756
|
+
title: l ? "Click to inspect internal components" : void 0,
|
|
1757
|
+
children: [
|
|
1758
|
+
/* @__PURE__ */ d("div", { className: "float-body", style: { animationDelay: r }, children: [
|
|
1759
|
+
/* @__PURE__ */ e(
|
|
1760
|
+
"div",
|
|
1761
|
+
{
|
|
1762
|
+
className: "scan-line",
|
|
1763
|
+
style: {
|
|
1764
|
+
background: `linear-gradient(90deg, transparent 5%, ${n}cc 40%, #fff 50%, ${n}cc 60%, transparent 95%)`,
|
|
1765
|
+
boxShadow: `0 0 8px ${n}`
|
|
1766
|
+
}
|
|
1767
|
+
}
|
|
1768
|
+
),
|
|
1769
|
+
/* @__PURE__ */ e("div", { style: s ? { background: "#040c1a", borderRadius: 2 } : void 0, children: s && J.isValidElement(t) ? J.cloneElement(t, {
|
|
1770
|
+
_compact: !0
|
|
1771
|
+
}) : t })
|
|
1772
|
+
] }),
|
|
1773
|
+
/* @__PURE__ */ d(
|
|
1774
|
+
"div",
|
|
1775
|
+
{
|
|
1776
|
+
style: {
|
|
1777
|
+
opacity: a ? 1 : 0,
|
|
1778
|
+
transition: "opacity 0.5s ease"
|
|
1779
|
+
},
|
|
1780
|
+
children: [
|
|
1781
|
+
o && /* @__PURE__ */ e("div", { className: "node-tag", style: { color: n + "cc" }, children: o }),
|
|
1782
|
+
i && /* @__PURE__ */ e("div", { className: "node-subtag", style: { color: n + "77" }, children: i })
|
|
1783
|
+
]
|
|
1784
|
+
}
|
|
1785
|
+
)
|
|
1786
|
+
]
|
|
1787
|
+
}
|
|
1788
|
+
);
|
|
1789
|
+
}
|
|
1790
|
+
function ft({ synced: t, latencyMs: n }) {
|
|
1791
|
+
const o = t ? "#00ff88" : "#ff8c00";
|
|
1792
|
+
return /* @__PURE__ */ d("div", { className: "sync-bridge", children: [
|
|
1793
|
+
/* @__PURE__ */ d("div", { className: "sync-arrows", children: [
|
|
1794
|
+
/* @__PURE__ */ e("span", { style: { color: o, fontSize: 10, lineHeight: 1 }, children: "◄" }),
|
|
1795
|
+
/* @__PURE__ */ e(
|
|
1796
|
+
"div",
|
|
1797
|
+
{
|
|
1798
|
+
className: "sync-line",
|
|
1799
|
+
style: {
|
|
1800
|
+
background: `linear-gradient(90deg, ${o}44, ${o}, ${o}44)`,
|
|
1801
|
+
boxShadow: `0 0 8px ${o}55`
|
|
1802
|
+
}
|
|
1803
|
+
}
|
|
1804
|
+
),
|
|
1805
|
+
/* @__PURE__ */ e("span", { style: { color: o, fontSize: 10, lineHeight: 1 }, children: "►" })
|
|
1806
|
+
] }),
|
|
1807
|
+
/* @__PURE__ */ e(
|
|
1808
|
+
"div",
|
|
1809
|
+
{
|
|
1810
|
+
className: "sync-status",
|
|
1811
|
+
style: {
|
|
1812
|
+
color: o,
|
|
1813
|
+
animation: t ? "none" : "holo-led-blink 1s linear infinite"
|
|
1814
|
+
},
|
|
1815
|
+
children: t ? "SYNCED" : "LAG"
|
|
1816
|
+
}
|
|
1817
|
+
),
|
|
1818
|
+
/* @__PURE__ */ d("div", { className: "sync-latency", style: { color: o + "88" }, children: [
|
|
1819
|
+
n,
|
|
1820
|
+
"ms ",
|
|
1821
|
+
t ? "replication" : "behind"
|
|
1822
|
+
] })
|
|
1823
|
+
] });
|
|
1824
|
+
}
|
|
1825
|
+
const G = 140, H = 240, Z = 160, ce = Ge(G, H, Z);
|
|
1826
|
+
function Yt({
|
|
1809
1827
|
cfg: t,
|
|
1810
1828
|
name: n,
|
|
1811
1829
|
cpuLoad: o,
|
|
@@ -1814,7 +1832,7 @@ function _t({
|
|
|
1814
1832
|
compact: a,
|
|
1815
1833
|
brandLabel: s
|
|
1816
1834
|
}) {
|
|
1817
|
-
const l = Math.ceil(o / 100 * 3),
|
|
1835
|
+
const l = Math.ceil(o / 100 * 3), h = r === "offline" ? "#4a6a8a" : t.color, c = [
|
|
1818
1836
|
{ color: t.color, on: r !== "offline", label: "PWR" },
|
|
1819
1837
|
{ color: t.color, on: r === "online" || r === "warning", label: "NET" },
|
|
1820
1838
|
{ color: t.color, on: o > 15, label: "DSK" },
|
|
@@ -1824,9 +1842,9 @@ function _t({
|
|
|
1824
1842
|
"div",
|
|
1825
1843
|
{
|
|
1826
1844
|
style: {
|
|
1827
|
-
width:
|
|
1828
|
-
height:
|
|
1829
|
-
background: a ?
|
|
1845
|
+
width: G,
|
|
1846
|
+
height: H,
|
|
1847
|
+
background: a ? Se : Qe,
|
|
1830
1848
|
position: "relative",
|
|
1831
1849
|
overflow: "hidden",
|
|
1832
1850
|
fontFamily: "'Courier New', monospace",
|
|
@@ -1900,14 +1918,14 @@ function _t({
|
|
|
1900
1918
|
{
|
|
1901
1919
|
style: {
|
|
1902
1920
|
fontSize: 7,
|
|
1903
|
-
color:
|
|
1921
|
+
color: h,
|
|
1904
1922
|
letterSpacing: "0.08em",
|
|
1905
|
-
textShadow: `0 0 4px ${
|
|
1923
|
+
textShadow: `0 0 4px ${h}66`
|
|
1906
1924
|
},
|
|
1907
1925
|
children: n
|
|
1908
1926
|
}
|
|
1909
1927
|
),
|
|
1910
|
-
/* @__PURE__ */ e("div", { style: { display: "flex", gap: 5 }, children: c.map((p,
|
|
1928
|
+
/* @__PURE__ */ e("div", { style: { display: "flex", gap: 5 }, children: c.map((p, f) => /* @__PURE__ */ e(
|
|
1911
1929
|
"div",
|
|
1912
1930
|
{
|
|
1913
1931
|
style: {
|
|
@@ -1916,10 +1934,10 @@ function _t({
|
|
|
1916
1934
|
borderRadius: "50%",
|
|
1917
1935
|
background: p.on ? p.color : "#0a1830",
|
|
1918
1936
|
boxShadow: p.on ? `0 0 6px ${p.color}, 0 0 12px ${p.color}88` : "none",
|
|
1919
|
-
animation: p.on &&
|
|
1937
|
+
animation: p.on && f === 1 ? "holo-led-blink 2.5s linear infinite" : "none"
|
|
1920
1938
|
}
|
|
1921
1939
|
},
|
|
1922
|
-
|
|
1940
|
+
f
|
|
1923
1941
|
)) })
|
|
1924
1942
|
] })
|
|
1925
1943
|
]
|
|
@@ -1986,8 +2004,8 @@ function _t({
|
|
|
1986
2004
|
}
|
|
1987
2005
|
}
|
|
1988
2006
|
),
|
|
1989
|
-
Array.from({ length: 3 }, (p,
|
|
1990
|
-
const
|
|
2007
|
+
Array.from({ length: 3 }, (p, f) => {
|
|
2008
|
+
const g = f < l;
|
|
1991
2009
|
return /* @__PURE__ */ d(
|
|
1992
2010
|
"div",
|
|
1993
2011
|
{
|
|
@@ -1995,7 +2013,7 @@ function _t({
|
|
|
1995
2013
|
position: "absolute",
|
|
1996
2014
|
left: 8,
|
|
1997
2015
|
right: 8,
|
|
1998
|
-
top: 75 +
|
|
2016
|
+
top: 75 + f * 31,
|
|
1999
2017
|
height: 27,
|
|
2000
2018
|
background: "linear-gradient(90deg, #040a16, #030710, #040a16)",
|
|
2001
2019
|
border: "1px solid #1a2d40",
|
|
@@ -2014,8 +2032,8 @@ function _t({
|
|
|
2014
2032
|
height: 5,
|
|
2015
2033
|
borderRadius: "50%",
|
|
2016
2034
|
flexShrink: 0,
|
|
2017
|
-
background:
|
|
2018
|
-
boxShadow:
|
|
2035
|
+
background: g ? t.color : "#08142a",
|
|
2036
|
+
boxShadow: g ? `0 0 6px ${t.color}, 0 0 12px ${t.color}66` : "none"
|
|
2019
2037
|
}
|
|
2020
2038
|
}
|
|
2021
2039
|
),
|
|
@@ -2031,7 +2049,7 @@ function _t({
|
|
|
2031
2049
|
position: "relative",
|
|
2032
2050
|
overflow: "hidden"
|
|
2033
2051
|
},
|
|
2034
|
-
children:
|
|
2052
|
+
children: g && /* @__PURE__ */ e(
|
|
2035
2053
|
"div",
|
|
2036
2054
|
{
|
|
2037
2055
|
style: {
|
|
@@ -2039,7 +2057,7 @@ function _t({
|
|
|
2039
2057
|
top: 0,
|
|
2040
2058
|
left: 0,
|
|
2041
2059
|
bottom: 0,
|
|
2042
|
-
width: `${30 + o / 100 * 45 +
|
|
2060
|
+
width: `${30 + o / 100 * 45 + f * 8}%`,
|
|
2043
2061
|
background: `linear-gradient(90deg, ${t.color}22, transparent)`
|
|
2044
2062
|
}
|
|
2045
2063
|
}
|
|
@@ -2062,7 +2080,7 @@ function _t({
|
|
|
2062
2080
|
)
|
|
2063
2081
|
]
|
|
2064
2082
|
},
|
|
2065
|
-
|
|
2083
|
+
f
|
|
2066
2084
|
);
|
|
2067
2085
|
}),
|
|
2068
2086
|
/* @__PURE__ */ e(
|
|
@@ -2132,7 +2150,7 @@ function _t({
|
|
|
2132
2150
|
/* @__PURE__ */ e("div", { style: { flex: 1, display: "flex", flexDirection: "column", gap: 4 }, children: [
|
|
2133
2151
|
{ val: o, color: t.color },
|
|
2134
2152
|
{ val: i, color: t.color + "bb" }
|
|
2135
|
-
].map((p,
|
|
2153
|
+
].map((p, f) => /* @__PURE__ */ e(
|
|
2136
2154
|
"div",
|
|
2137
2155
|
{
|
|
2138
2156
|
style: {
|
|
@@ -2153,7 +2171,7 @@ function _t({
|
|
|
2153
2171
|
}
|
|
2154
2172
|
)
|
|
2155
2173
|
},
|
|
2156
|
-
|
|
2174
|
+
f
|
|
2157
2175
|
)) })
|
|
2158
2176
|
]
|
|
2159
2177
|
}
|
|
@@ -2186,7 +2204,7 @@ function _t({
|
|
|
2186
2204
|
overflow: "hidden",
|
|
2187
2205
|
opacity: 0.22
|
|
2188
2206
|
},
|
|
2189
|
-
children: Array.from({ length: 100 }).map((p,
|
|
2207
|
+
children: Array.from({ length: 100 }).map((p, f) => /* @__PURE__ */ e(
|
|
2190
2208
|
"div",
|
|
2191
2209
|
{
|
|
2192
2210
|
style: {
|
|
@@ -2196,7 +2214,7 @@ function _t({
|
|
|
2196
2214
|
background: "#2a6090"
|
|
2197
2215
|
}
|
|
2198
2216
|
},
|
|
2199
|
-
|
|
2217
|
+
f
|
|
2200
2218
|
))
|
|
2201
2219
|
}
|
|
2202
2220
|
),
|
|
@@ -2217,13 +2235,13 @@ function _t({
|
|
|
2217
2235
|
}
|
|
2218
2236
|
);
|
|
2219
2237
|
}
|
|
2220
|
-
function
|
|
2238
|
+
function Vt() {
|
|
2221
2239
|
return /* @__PURE__ */ d(
|
|
2222
2240
|
"div",
|
|
2223
2241
|
{
|
|
2224
2242
|
style: {
|
|
2225
|
-
width:
|
|
2226
|
-
height:
|
|
2243
|
+
width: G,
|
|
2244
|
+
height: H,
|
|
2227
2245
|
background: "linear-gradient(180deg, #040c1a 0%, #030810 100%)",
|
|
2228
2246
|
position: "relative",
|
|
2229
2247
|
overflow: "hidden",
|
|
@@ -2331,7 +2349,7 @@ function Xt() {
|
|
|
2331
2349
|
}
|
|
2332
2350
|
);
|
|
2333
2351
|
}
|
|
2334
|
-
function
|
|
2352
|
+
function at({
|
|
2335
2353
|
side: t,
|
|
2336
2354
|
color: n,
|
|
2337
2355
|
brandLabel: o
|
|
@@ -2342,7 +2360,7 @@ function dt({
|
|
|
2342
2360
|
{
|
|
2343
2361
|
style: {
|
|
2344
2362
|
width: Z,
|
|
2345
|
-
height:
|
|
2363
|
+
height: H,
|
|
2346
2364
|
background: i ? "linear-gradient(90deg, #040c1c 0%, #071428 60%, #040c1c 100%)" : "linear-gradient(90deg, #040c1c 0%, #071428 40%, #040c1c 100%)",
|
|
2347
2365
|
position: "relative",
|
|
2348
2366
|
overflow: "hidden"
|
|
@@ -2361,7 +2379,7 @@ function dt({
|
|
|
2361
2379
|
}
|
|
2362
2380
|
}
|
|
2363
2381
|
),
|
|
2364
|
-
[8,
|
|
2382
|
+
[8, H - 20].map((r) => /* @__PURE__ */ e(
|
|
2365
2383
|
"div",
|
|
2366
2384
|
{
|
|
2367
2385
|
style: {
|
|
@@ -2383,8 +2401,8 @@ function dt({
|
|
|
2383
2401
|
{
|
|
2384
2402
|
style: {
|
|
2385
2403
|
position: "absolute",
|
|
2386
|
-
top:
|
|
2387
|
-
bottom:
|
|
2404
|
+
top: H * 0.35,
|
|
2405
|
+
bottom: H * 0.15,
|
|
2388
2406
|
left: i ? 22 : 18,
|
|
2389
2407
|
right: i ? 18 : 22,
|
|
2390
2408
|
display: "flex",
|
|
@@ -2412,7 +2430,7 @@ function dt({
|
|
|
2412
2430
|
{
|
|
2413
2431
|
style: {
|
|
2414
2432
|
position: "absolute",
|
|
2415
|
-
top:
|
|
2433
|
+
top: H * 0.18,
|
|
2416
2434
|
left: i ? 12 : Z - 78,
|
|
2417
2435
|
fontSize: 7,
|
|
2418
2436
|
color: "#1a3050",
|
|
@@ -2431,13 +2449,13 @@ function dt({
|
|
|
2431
2449
|
}
|
|
2432
2450
|
);
|
|
2433
2451
|
}
|
|
2434
|
-
function
|
|
2452
|
+
function _t({ cpuLoad: t }) {
|
|
2435
2453
|
const n = t / 100, o = n > 0.75 ? "rgba(255,34,85,0.16)" : n > 0.45 ? "rgba(255,140,0,0.12)" : "rgba(0,229,255,0.08)", i = Math.floor((Z - 18) / 7);
|
|
2436
2454
|
return /* @__PURE__ */ d(
|
|
2437
2455
|
"div",
|
|
2438
2456
|
{
|
|
2439
2457
|
style: {
|
|
2440
|
-
width:
|
|
2458
|
+
width: G,
|
|
2441
2459
|
height: Z,
|
|
2442
2460
|
background: "linear-gradient(180deg, #0c1c30 0%, #070f1e 40%, #040c1a 100%)",
|
|
2443
2461
|
position: "relative",
|
|
@@ -2511,7 +2529,7 @@ function jt({ cpuLoad: t }) {
|
|
|
2511
2529
|
}
|
|
2512
2530
|
);
|
|
2513
2531
|
}
|
|
2514
|
-
function
|
|
2532
|
+
function ae({
|
|
2515
2533
|
rotateX: t = -22,
|
|
2516
2534
|
rotateY: n = 20,
|
|
2517
2535
|
rotateZ: o = 0,
|
|
@@ -2520,21 +2538,21 @@ function J({
|
|
|
2520
2538
|
status: a = "online",
|
|
2521
2539
|
name: s = "SRV-001",
|
|
2522
2540
|
cpuLoad: l = 67,
|
|
2523
|
-
memLoad:
|
|
2541
|
+
memLoad: h = 82,
|
|
2524
2542
|
brandLabel: c = "BUSAUD",
|
|
2525
2543
|
_compact: p
|
|
2526
2544
|
}) {
|
|
2527
|
-
const [
|
|
2528
|
-
|
|
2545
|
+
const [f, g] = I(n), u = ee(0), y = ee(0);
|
|
2546
|
+
Te(() => {
|
|
2529
2547
|
if (!r) {
|
|
2530
|
-
|
|
2548
|
+
g(n);
|
|
2531
2549
|
return;
|
|
2532
2550
|
}
|
|
2533
2551
|
const x = (v) => {
|
|
2534
|
-
|
|
2552
|
+
y.current && g(($) => $ + (v - y.current) * 0.027), y.current = v, u.current = requestAnimationFrame(x);
|
|
2535
2553
|
};
|
|
2536
2554
|
return u.current = requestAnimationFrame(x), () => {
|
|
2537
|
-
cancelAnimationFrame(u.current),
|
|
2555
|
+
cancelAnimationFrame(u.current), y.current = 0;
|
|
2538
2556
|
};
|
|
2539
2557
|
}, [r, n]);
|
|
2540
2558
|
const m = w[a] ?? w.online;
|
|
@@ -2542,8 +2560,8 @@ function J({
|
|
|
2542
2560
|
"div",
|
|
2543
2561
|
{
|
|
2544
2562
|
style: {
|
|
2545
|
-
width:
|
|
2546
|
-
height:
|
|
2563
|
+
width: G * i,
|
|
2564
|
+
height: H * i,
|
|
2547
2565
|
position: "relative",
|
|
2548
2566
|
display: "flex",
|
|
2549
2567
|
alignItems: "center",
|
|
@@ -2595,8 +2613,8 @@ function J({
|
|
|
2595
2613
|
{
|
|
2596
2614
|
style: {
|
|
2597
2615
|
position: "absolute",
|
|
2598
|
-
width:
|
|
2599
|
-
height:
|
|
2616
|
+
width: G * 1.4 * i,
|
|
2617
|
+
height: H * 0.8 * i,
|
|
2600
2618
|
background: `radial-gradient(ellipse, ${m.glow} 0%, transparent 65%)`,
|
|
2601
2619
|
filter: `blur(${Math.round(45 * i)}px)`,
|
|
2602
2620
|
pointerEvents: "none",
|
|
@@ -2619,35 +2637,35 @@ function J({
|
|
|
2619
2637
|
"div",
|
|
2620
2638
|
{
|
|
2621
2639
|
style: {
|
|
2622
|
-
width:
|
|
2623
|
-
height:
|
|
2640
|
+
width: G,
|
|
2641
|
+
height: H,
|
|
2624
2642
|
position: "relative",
|
|
2625
2643
|
transformStyle: "preserve-3d",
|
|
2626
|
-
transform: `rotateX(${t}deg) rotateY(${
|
|
2644
|
+
transform: `rotateX(${t}deg) rotateY(${f}deg) rotateZ(${o}deg)`,
|
|
2627
2645
|
transition: r ? "none" : "transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94)"
|
|
2628
2646
|
},
|
|
2629
2647
|
children: [
|
|
2630
2648
|
/* @__PURE__ */ e("div", { style: ce.front, children: /* @__PURE__ */ e(
|
|
2631
|
-
|
|
2649
|
+
Yt,
|
|
2632
2650
|
{
|
|
2633
2651
|
cfg: m,
|
|
2634
2652
|
name: s,
|
|
2635
2653
|
cpuLoad: l,
|
|
2636
|
-
memLoad:
|
|
2654
|
+
memLoad: h,
|
|
2637
2655
|
status: a,
|
|
2638
2656
|
compact: p,
|
|
2639
2657
|
brandLabel: c
|
|
2640
2658
|
}
|
|
2641
2659
|
) }),
|
|
2642
|
-
/* @__PURE__ */ e("div", { style: ce.back, children: /* @__PURE__ */ e(
|
|
2643
|
-
/* @__PURE__ */ e("div", { style: ce.left, children: /* @__PURE__ */ e(
|
|
2644
|
-
/* @__PURE__ */ e("div", { style: ce.right, children: /* @__PURE__ */ e(
|
|
2645
|
-
/* @__PURE__ */ e("div", { style: ce.top, children: /* @__PURE__ */ e(
|
|
2660
|
+
/* @__PURE__ */ e("div", { style: ce.back, children: /* @__PURE__ */ e(Vt, {}) }),
|
|
2661
|
+
/* @__PURE__ */ e("div", { style: ce.left, children: /* @__PURE__ */ e(at, { side: "left", color: m.color, brandLabel: c }) }),
|
|
2662
|
+
/* @__PURE__ */ e("div", { style: ce.right, children: /* @__PURE__ */ e(at, { side: "right", color: m.color, brandLabel: c }) }),
|
|
2663
|
+
/* @__PURE__ */ e("div", { style: ce.top, children: /* @__PURE__ */ e(_t, { cpuLoad: l }) }),
|
|
2646
2664
|
/* @__PURE__ */ e("div", { style: ce.bottom, children: /* @__PURE__ */ e(
|
|
2647
2665
|
"div",
|
|
2648
2666
|
{
|
|
2649
2667
|
style: {
|
|
2650
|
-
width:
|
|
2668
|
+
width: G,
|
|
2651
2669
|
height: Z,
|
|
2652
2670
|
background: "linear-gradient(180deg, #030710, #020508)"
|
|
2653
2671
|
}
|
|
@@ -2662,11 +2680,56 @@ function J({
|
|
|
2662
2680
|
}
|
|
2663
2681
|
);
|
|
2664
2682
|
}
|
|
2665
|
-
|
|
2666
|
-
|
|
2683
|
+
function wi({
|
|
2684
|
+
ex: t,
|
|
2685
|
+
ey: n,
|
|
2686
|
+
compactOffset: o,
|
|
2687
|
+
zIndex: i,
|
|
2688
|
+
name: r = "SRV-01",
|
|
2689
|
+
status: a = "online",
|
|
2690
|
+
subLabel: s,
|
|
2691
|
+
color: l,
|
|
2692
|
+
delay: h,
|
|
2693
|
+
visibleAtPhase: c,
|
|
2694
|
+
cpuLoad: p,
|
|
2695
|
+
memLoad: f,
|
|
2696
|
+
brandLabel: g,
|
|
2697
|
+
dialogMetrics: u,
|
|
2698
|
+
subComponents: y,
|
|
2699
|
+
graphSeries: m,
|
|
2700
|
+
alert: x
|
|
2701
|
+
}) {
|
|
2702
|
+
return /* @__PURE__ */ e(
|
|
2703
|
+
k,
|
|
2704
|
+
{
|
|
2705
|
+
ex: t,
|
|
2706
|
+
ey: n,
|
|
2707
|
+
compactOffset: o,
|
|
2708
|
+
zIndex: i,
|
|
2709
|
+
label: r,
|
|
2710
|
+
subLabel: s,
|
|
2711
|
+
color: l,
|
|
2712
|
+
delay: h,
|
|
2713
|
+
visibleAtPhase: c,
|
|
2714
|
+
componentInfo: {
|
|
2715
|
+
type: "server",
|
|
2716
|
+
name: r,
|
|
2717
|
+
status: a,
|
|
2718
|
+
context: { cpuLoad: p, memLoad: f },
|
|
2719
|
+
dialogMetrics: u,
|
|
2720
|
+
subComponents: y,
|
|
2721
|
+
graphSeries: m
|
|
2722
|
+
},
|
|
2723
|
+
alert: x,
|
|
2724
|
+
children: /* @__PURE__ */ e(ae, { status: a, cpuLoad: p, memLoad: f, brandLabel: g })
|
|
2725
|
+
}
|
|
2726
|
+
);
|
|
2727
|
+
}
|
|
2728
|
+
const Xe = 12, re = 55, _ = re * 2, ue = 52, Ze = 10, He = 3 * ue + 2 * Ze, pe = 2 * Math.PI * re / Xe, Ue = Array.from({ length: Xe }, (t, n) => n / Xe * 360);
|
|
2729
|
+
function Ye(t) {
|
|
2667
2730
|
return Math.cos(t * Math.PI / 180) * 0.42 + 0.58;
|
|
2668
2731
|
}
|
|
2669
|
-
function
|
|
2732
|
+
function Xt({
|
|
2670
2733
|
diskY: t,
|
|
2671
2734
|
diskIdx: n,
|
|
2672
2735
|
cfg: o,
|
|
@@ -2674,9 +2737,9 @@ function Qt({
|
|
|
2674
2737
|
capacity: r,
|
|
2675
2738
|
compact: a
|
|
2676
2739
|
}) {
|
|
2677
|
-
return /* @__PURE__ */ d(
|
|
2678
|
-
|
|
2679
|
-
const
|
|
2740
|
+
return /* @__PURE__ */ d(ve, { children: [
|
|
2741
|
+
Ue.map((s, l) => {
|
|
2742
|
+
const h = Ye(s), c = l === 0, p = Math.round(4 + h * 9), f = Math.round(12 + h * 22), g = Math.round(28 + h * 44), u = Math.round(h * 0.55 * 255).toString(16).padStart(2, "0");
|
|
2680
2743
|
return /* @__PURE__ */ e(
|
|
2681
2744
|
"div",
|
|
2682
2745
|
{
|
|
@@ -2686,13 +2749,13 @@ function Qt({
|
|
|
2686
2749
|
height: ue,
|
|
2687
2750
|
left: (_ - pe) / 2,
|
|
2688
2751
|
top: t,
|
|
2689
|
-
transform: `rotateY(${s}deg) translateZ(${
|
|
2752
|
+
transform: `rotateY(${s}deg) translateZ(${re}px)`,
|
|
2690
2753
|
backfaceVisibility: "hidden",
|
|
2691
|
-
background: c ? a ? "linear-gradient(180deg, rgb(0,28,62), rgb(0,18,44))" : "linear-gradient(180deg, rgba(0,28,62,0.70), rgba(0,18,44,0.76))" : `rgb(${p},${
|
|
2754
|
+
background: c ? a ? "linear-gradient(180deg, rgb(0,28,62), rgb(0,18,44))" : "linear-gradient(180deg, rgba(0,28,62,0.70), rgba(0,18,44,0.76))" : `rgb(${p},${f},${g})`,
|
|
2692
2755
|
borderLeft: `1px solid ${o.color}${u}`,
|
|
2693
2756
|
boxShadow: c ? `inset 0 0 18px ${o.color}28` : "none"
|
|
2694
2757
|
},
|
|
2695
|
-
children: c && /* @__PURE__ */ d(
|
|
2758
|
+
children: c && /* @__PURE__ */ d(ve, { children: [
|
|
2696
2759
|
/* @__PURE__ */ e(
|
|
2697
2760
|
"div",
|
|
2698
2761
|
{
|
|
@@ -2748,7 +2811,7 @@ function Qt({
|
|
|
2748
2811
|
width: _ + 4,
|
|
2749
2812
|
height: _ + 4,
|
|
2750
2813
|
left: -2,
|
|
2751
|
-
top: t -
|
|
2814
|
+
top: t - re,
|
|
2752
2815
|
borderRadius: "50%",
|
|
2753
2816
|
transform: "rotateX(90deg)",
|
|
2754
2817
|
backfaceVisibility: "hidden",
|
|
@@ -2809,7 +2872,7 @@ function Qt({
|
|
|
2809
2872
|
width: _ + 4,
|
|
2810
2873
|
height: _ + 4,
|
|
2811
2874
|
left: -2,
|
|
2812
|
-
top: t + ue -
|
|
2875
|
+
top: t + ue - re,
|
|
2813
2876
|
borderRadius: "50%",
|
|
2814
2877
|
transform: "rotateX(-90deg)",
|
|
2815
2878
|
backfaceVisibility: "hidden",
|
|
@@ -2833,8 +2896,8 @@ function Qt({
|
|
|
2833
2896
|
)
|
|
2834
2897
|
}
|
|
2835
2898
|
),
|
|
2836
|
-
i &&
|
|
2837
|
-
const
|
|
2899
|
+
i && Ue.map((s, l) => {
|
|
2900
|
+
const h = Ye(s);
|
|
2838
2901
|
return /* @__PURE__ */ e(
|
|
2839
2902
|
"div",
|
|
2840
2903
|
{
|
|
@@ -2844,30 +2907,30 @@ function Qt({
|
|
|
2844
2907
|
height: 6,
|
|
2845
2908
|
left: (_ - pe - 1.5) / 2,
|
|
2846
2909
|
top: t + ue - 3,
|
|
2847
|
-
transform: `rotateY(${s}deg) translateZ(${
|
|
2910
|
+
transform: `rotateY(${s}deg) translateZ(${re + 1.5}px)`,
|
|
2848
2911
|
backfaceVisibility: "hidden",
|
|
2849
2912
|
background: o.color,
|
|
2850
2913
|
boxShadow: `0 0 8px ${o.color}, 0 0 18px ${o.color}aa, 0 0 30px ${o.glow}`,
|
|
2851
|
-
opacity:
|
|
2914
|
+
opacity: h * 0.9
|
|
2852
2915
|
}
|
|
2853
2916
|
},
|
|
2854
2917
|
`rng${n}${l}`
|
|
2855
2918
|
);
|
|
2856
2919
|
}),
|
|
2857
|
-
i &&
|
|
2858
|
-
const
|
|
2920
|
+
i && Ue.map((s, l) => {
|
|
2921
|
+
const h = Ye(s), c = Math.round(2 + h * 4), p = Math.round(5 + h * 10), f = Math.round(12 + h * 20);
|
|
2859
2922
|
return /* @__PURE__ */ e(
|
|
2860
2923
|
"div",
|
|
2861
2924
|
{
|
|
2862
2925
|
style: {
|
|
2863
2926
|
position: "absolute",
|
|
2864
2927
|
width: pe,
|
|
2865
|
-
height:
|
|
2928
|
+
height: Ze,
|
|
2866
2929
|
left: (_ - pe) / 2,
|
|
2867
2930
|
top: t + ue,
|
|
2868
|
-
transform: `rotateY(${s}deg) translateZ(${
|
|
2931
|
+
transform: `rotateY(${s}deg) translateZ(${re}px)`,
|
|
2869
2932
|
backfaceVisibility: "hidden",
|
|
2870
|
-
background: `rgb(${c},${p},${
|
|
2933
|
+
background: `rgb(${c},${p},${f})`
|
|
2871
2934
|
}
|
|
2872
2935
|
},
|
|
2873
2936
|
`gap${n}${l}`
|
|
@@ -2887,26 +2950,26 @@ function Ee({
|
|
|
2887
2950
|
// connections = 284,
|
|
2888
2951
|
_compact: l
|
|
2889
2952
|
}) {
|
|
2890
|
-
const [
|
|
2891
|
-
|
|
2953
|
+
const [h, c] = I(n), p = ee(0), f = ee(0);
|
|
2954
|
+
Te(() => {
|
|
2892
2955
|
if (!r) {
|
|
2893
2956
|
c(n);
|
|
2894
2957
|
return;
|
|
2895
2958
|
}
|
|
2896
|
-
const u = (
|
|
2897
|
-
|
|
2959
|
+
const u = (y) => {
|
|
2960
|
+
f.current && c((m) => m + (y - f.current) * 0.027), f.current = y, p.current = requestAnimationFrame(u);
|
|
2898
2961
|
};
|
|
2899
2962
|
return p.current = requestAnimationFrame(u), () => {
|
|
2900
|
-
cancelAnimationFrame(p.current),
|
|
2963
|
+
cancelAnimationFrame(p.current), f.current = 0;
|
|
2901
2964
|
};
|
|
2902
2965
|
}, [r, n]);
|
|
2903
|
-
const
|
|
2966
|
+
const g = w[a] ?? w.online;
|
|
2904
2967
|
return /* @__PURE__ */ d(
|
|
2905
2968
|
"div",
|
|
2906
2969
|
{
|
|
2907
2970
|
style: {
|
|
2908
2971
|
width: _ * i,
|
|
2909
|
-
height:
|
|
2972
|
+
height: He * i,
|
|
2910
2973
|
position: "relative",
|
|
2911
2974
|
display: "flex",
|
|
2912
2975
|
alignItems: "center",
|
|
@@ -2967,8 +3030,8 @@ function Ee({
|
|
|
2967
3030
|
style: {
|
|
2968
3031
|
position: "absolute",
|
|
2969
3032
|
width: _ * 2.8 * i,
|
|
2970
|
-
height:
|
|
2971
|
-
background: `radial-gradient(ellipse, ${
|
|
3033
|
+
height: He * 0.85 * i,
|
|
3034
|
+
background: `radial-gradient(ellipse, ${g.glow} 0%, transparent 65%)`,
|
|
2972
3035
|
filter: `blur(${Math.round(50 * i)}px)`,
|
|
2973
3036
|
pointerEvents: "none",
|
|
2974
3037
|
top: "45%",
|
|
@@ -2991,18 +3054,18 @@ function Ee({
|
|
|
2991
3054
|
{
|
|
2992
3055
|
style: {
|
|
2993
3056
|
width: _,
|
|
2994
|
-
height:
|
|
3057
|
+
height: He,
|
|
2995
3058
|
position: "relative",
|
|
2996
3059
|
transformStyle: "preserve-3d",
|
|
2997
|
-
transform: `rotateX(${t}deg) rotateY(${
|
|
3060
|
+
transform: `rotateX(${t}deg) rotateY(${h}deg) rotateZ(${o}deg)`,
|
|
2998
3061
|
transition: r ? "none" : "transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94)"
|
|
2999
3062
|
},
|
|
3000
3063
|
children: [0, 1, 2].map((u) => /* @__PURE__ */ e(
|
|
3001
|
-
|
|
3064
|
+
Xt,
|
|
3002
3065
|
{
|
|
3003
|
-
diskY: u * (ue +
|
|
3066
|
+
diskY: u * (ue + Ze),
|
|
3004
3067
|
diskIdx: u,
|
|
3005
|
-
cfg:
|
|
3068
|
+
cfg: g,
|
|
3006
3069
|
hasRingBelow: u < 2,
|
|
3007
3070
|
capacity: s,
|
|
3008
3071
|
compact: l
|
|
@@ -3017,8 +3080,186 @@ function Ee({
|
|
|
3017
3080
|
}
|
|
3018
3081
|
);
|
|
3019
3082
|
}
|
|
3020
|
-
|
|
3021
|
-
|
|
3083
|
+
function Si({
|
|
3084
|
+
ex: t,
|
|
3085
|
+
ey: n,
|
|
3086
|
+
compactOffset: o,
|
|
3087
|
+
zIndex: i,
|
|
3088
|
+
name: r = "DB-01",
|
|
3089
|
+
status: a = "online",
|
|
3090
|
+
subLabel: s,
|
|
3091
|
+
color: l,
|
|
3092
|
+
delay: h,
|
|
3093
|
+
visibleAtPhase: c,
|
|
3094
|
+
capacity: p,
|
|
3095
|
+
dialogMetrics: f,
|
|
3096
|
+
subComponents: g,
|
|
3097
|
+
graphSeries: u,
|
|
3098
|
+
alert: y
|
|
3099
|
+
}) {
|
|
3100
|
+
return /* @__PURE__ */ e(
|
|
3101
|
+
k,
|
|
3102
|
+
{
|
|
3103
|
+
ex: t,
|
|
3104
|
+
ey: n,
|
|
3105
|
+
compactOffset: o,
|
|
3106
|
+
zIndex: i,
|
|
3107
|
+
label: r,
|
|
3108
|
+
subLabel: s,
|
|
3109
|
+
color: l,
|
|
3110
|
+
delay: h,
|
|
3111
|
+
visibleAtPhase: c,
|
|
3112
|
+
componentInfo: {
|
|
3113
|
+
type: "database",
|
|
3114
|
+
name: r,
|
|
3115
|
+
status: a,
|
|
3116
|
+
context: { capacity: p },
|
|
3117
|
+
dialogMetrics: f,
|
|
3118
|
+
subComponents: g,
|
|
3119
|
+
graphSeries: u
|
|
3120
|
+
},
|
|
3121
|
+
alert: y,
|
|
3122
|
+
children: /* @__PURE__ */ e(Ee, { status: a, capacity: p })
|
|
3123
|
+
}
|
|
3124
|
+
);
|
|
3125
|
+
}
|
|
3126
|
+
function Je({ status: t = "online", scale: n = 1 }) {
|
|
3127
|
+
const i = (w[t] ?? w.online).color;
|
|
3128
|
+
return /* @__PURE__ */ e(
|
|
3129
|
+
"div",
|
|
3130
|
+
{
|
|
3131
|
+
style: {
|
|
3132
|
+
width: 80 * n,
|
|
3133
|
+
height: 140 * n,
|
|
3134
|
+
display: "flex",
|
|
3135
|
+
alignItems: "center",
|
|
3136
|
+
justifyContent: "center"
|
|
3137
|
+
},
|
|
3138
|
+
children: /* @__PURE__ */ d(
|
|
3139
|
+
"div",
|
|
3140
|
+
{
|
|
3141
|
+
style: {
|
|
3142
|
+
display: "flex",
|
|
3143
|
+
flexDirection: "column",
|
|
3144
|
+
alignItems: "center",
|
|
3145
|
+
fontFamily: "'Courier New', monospace",
|
|
3146
|
+
userSelect: "none",
|
|
3147
|
+
transform: `scale(${n})`,
|
|
3148
|
+
transformOrigin: "center center"
|
|
3149
|
+
},
|
|
3150
|
+
children: [
|
|
3151
|
+
/* @__PURE__ */ d("div", { style: { position: "relative", animation: "holo-float 4s ease-in-out infinite" }, children: [
|
|
3152
|
+
/* @__PURE__ */ e(
|
|
3153
|
+
"div",
|
|
3154
|
+
{
|
|
3155
|
+
style: {
|
|
3156
|
+
position: "absolute",
|
|
3157
|
+
top: 0,
|
|
3158
|
+
left: 0,
|
|
3159
|
+
right: 0,
|
|
3160
|
+
height: "1.5px",
|
|
3161
|
+
background: `linear-gradient(90deg, transparent 5%, ${i}cc 40%, #fff 50%, ${i}cc 60%, transparent 95%)`,
|
|
3162
|
+
boxShadow: `0 0 8px ${i}`,
|
|
3163
|
+
animation: "holo-scan 3.5s linear infinite",
|
|
3164
|
+
pointerEvents: "none",
|
|
3165
|
+
zIndex: 10
|
|
3166
|
+
}
|
|
3167
|
+
}
|
|
3168
|
+
),
|
|
3169
|
+
/* @__PURE__ */ d(
|
|
3170
|
+
"svg",
|
|
3171
|
+
{
|
|
3172
|
+
width: "70",
|
|
3173
|
+
height: "75",
|
|
3174
|
+
viewBox: "0 0 70 75",
|
|
3175
|
+
style: { display: "block", overflow: "visible" },
|
|
3176
|
+
children: [
|
|
3177
|
+
/* @__PURE__ */ e("defs", { children: /* @__PURE__ */ d("radialGradient", { id: `usr-glow-${t}`, cx: "50%", cy: "45%", r: "55%", children: [
|
|
3178
|
+
/* @__PURE__ */ e("stop", { offset: "0%", stopColor: i, stopOpacity: "0.12" }),
|
|
3179
|
+
/* @__PURE__ */ e("stop", { offset: "100%", stopColor: i, stopOpacity: "0" })
|
|
3180
|
+
] }) }),
|
|
3181
|
+
/* @__PURE__ */ e("ellipse", { cx: "35", cy: "37", rx: "34", ry: "32", fill: `url(#usr-glow-${t})` }),
|
|
3182
|
+
/* @__PURE__ */ e(
|
|
3183
|
+
"circle",
|
|
3184
|
+
{
|
|
3185
|
+
cx: "35",
|
|
3186
|
+
cy: "20",
|
|
3187
|
+
r: "13",
|
|
3188
|
+
fill: i + "0a",
|
|
3189
|
+
stroke: i,
|
|
3190
|
+
strokeWidth: "1.5",
|
|
3191
|
+
style: { filter: `drop-shadow(0 0 6px ${i})` }
|
|
3192
|
+
}
|
|
3193
|
+
),
|
|
3194
|
+
/* @__PURE__ */ e("circle", { cx: "35", cy: "20", r: "7", fill: "none", stroke: i + "30", strokeWidth: "0.5" }),
|
|
3195
|
+
/* @__PURE__ */ e("circle", { cx: "35", cy: "20", r: "3", fill: i + "18", stroke: "none" }),
|
|
3196
|
+
/* @__PURE__ */ e(
|
|
3197
|
+
"path",
|
|
3198
|
+
{
|
|
3199
|
+
d: "M7 71 Q7 47 20 39 Q27 35 35 35 Q43 35 50 39 Q63 47 63 71",
|
|
3200
|
+
fill: i + "08",
|
|
3201
|
+
stroke: i,
|
|
3202
|
+
strokeWidth: "1.5",
|
|
3203
|
+
strokeLinecap: "round",
|
|
3204
|
+
style: { filter: `drop-shadow(0 0 5px ${i})` }
|
|
3205
|
+
}
|
|
3206
|
+
),
|
|
3207
|
+
/* @__PURE__ */ e(
|
|
3208
|
+
"path",
|
|
3209
|
+
{
|
|
3210
|
+
d: "M16 65 Q16 51 26 44 Q30 42 35 42 Q40 42 44 44 Q54 51 54 65",
|
|
3211
|
+
fill: "none",
|
|
3212
|
+
stroke: i + "20",
|
|
3213
|
+
strokeWidth: "0.6",
|
|
3214
|
+
strokeDasharray: "4,5"
|
|
3215
|
+
}
|
|
3216
|
+
),
|
|
3217
|
+
/* @__PURE__ */ e(
|
|
3218
|
+
"path",
|
|
3219
|
+
{
|
|
3220
|
+
d: "M24 61 Q24 53 30 49 Q32 48 35 48 Q38 48 40 49 Q46 53 46 61",
|
|
3221
|
+
fill: "none",
|
|
3222
|
+
stroke: i + "18",
|
|
3223
|
+
strokeWidth: "0.5",
|
|
3224
|
+
strokeDasharray: "2,4"
|
|
3225
|
+
}
|
|
3226
|
+
)
|
|
3227
|
+
]
|
|
3228
|
+
}
|
|
3229
|
+
)
|
|
3230
|
+
] }),
|
|
3231
|
+
/* @__PURE__ */ e("div", { style: { height: 22 } })
|
|
3232
|
+
]
|
|
3233
|
+
}
|
|
3234
|
+
)
|
|
3235
|
+
}
|
|
3236
|
+
);
|
|
3237
|
+
}
|
|
3238
|
+
function $i({
|
|
3239
|
+
ex: t,
|
|
3240
|
+
ey: n,
|
|
3241
|
+
compactOffset: o,
|
|
3242
|
+
zIndex: i,
|
|
3243
|
+
status: r = "online",
|
|
3244
|
+
scale: a,
|
|
3245
|
+
color: s,
|
|
3246
|
+
visibleAtPhase: l
|
|
3247
|
+
}) {
|
|
3248
|
+
return /* @__PURE__ */ e(
|
|
3249
|
+
k,
|
|
3250
|
+
{
|
|
3251
|
+
ex: t,
|
|
3252
|
+
ey: n,
|
|
3253
|
+
compactOffset: o,
|
|
3254
|
+
zIndex: i,
|
|
3255
|
+
color: s,
|
|
3256
|
+
visibleAtPhase: l,
|
|
3257
|
+
children: /* @__PURE__ */ e(Je, { status: r, scale: a })
|
|
3258
|
+
}
|
|
3259
|
+
);
|
|
3260
|
+
}
|
|
3261
|
+
const q = 190, U = 72, be = 120, fe = Ge(q, U, be);
|
|
3262
|
+
function jt({
|
|
3022
3263
|
cfg: t,
|
|
3023
3264
|
name: n,
|
|
3024
3265
|
traffic: o,
|
|
@@ -3030,9 +3271,9 @@ function qt({
|
|
|
3030
3271
|
"div",
|
|
3031
3272
|
{
|
|
3032
3273
|
style: {
|
|
3033
|
-
width:
|
|
3034
|
-
height:
|
|
3035
|
-
background: r ?
|
|
3274
|
+
width: q,
|
|
3275
|
+
height: U,
|
|
3276
|
+
background: r ? Se : Qe,
|
|
3036
3277
|
position: "relative",
|
|
3037
3278
|
overflow: "hidden",
|
|
3038
3279
|
fontFamily: "'Courier New', monospace",
|
|
@@ -3117,8 +3358,8 @@ function qt({
|
|
|
3117
3358
|
gap: 10
|
|
3118
3359
|
},
|
|
3119
3360
|
children: [
|
|
3120
|
-
/* @__PURE__ */ e("div", { style: { display: "flex", gap: 3, alignItems: "center" }, children: Array.from({ length: 8 }, (l,
|
|
3121
|
-
const c =
|
|
3361
|
+
/* @__PURE__ */ e("div", { style: { display: "flex", gap: 3, alignItems: "center" }, children: Array.from({ length: 8 }, (l, h) => {
|
|
3362
|
+
const c = h < a, p = s[h];
|
|
3122
3363
|
return /* @__PURE__ */ d(
|
|
3123
3364
|
"div",
|
|
3124
3365
|
{
|
|
@@ -3170,13 +3411,13 @@ function qt({
|
|
|
3170
3411
|
background: c ? t.color : "#0a1830",
|
|
3171
3412
|
boxShadow: c ? `0 0 5px ${t.color}` : "none",
|
|
3172
3413
|
animation: c ? "holo-led-blink 1.8s linear infinite" : "none",
|
|
3173
|
-
animationDelay: `${
|
|
3414
|
+
animationDelay: `${h * 0.2}s`
|
|
3174
3415
|
}
|
|
3175
3416
|
}
|
|
3176
3417
|
)
|
|
3177
3418
|
]
|
|
3178
3419
|
},
|
|
3179
|
-
|
|
3420
|
+
h
|
|
3180
3421
|
);
|
|
3181
3422
|
}) }),
|
|
3182
3423
|
/* @__PURE__ */ e(
|
|
@@ -3280,13 +3521,13 @@ function qt({
|
|
|
3280
3521
|
}
|
|
3281
3522
|
);
|
|
3282
3523
|
}
|
|
3283
|
-
function
|
|
3524
|
+
function Qt() {
|
|
3284
3525
|
return /* @__PURE__ */ d(
|
|
3285
3526
|
"div",
|
|
3286
3527
|
{
|
|
3287
3528
|
style: {
|
|
3288
|
-
width:
|
|
3289
|
-
height:
|
|
3529
|
+
width: q,
|
|
3530
|
+
height: U,
|
|
3290
3531
|
background: "linear-gradient(180deg, #040c1a, #030810)",
|
|
3291
3532
|
position: "relative",
|
|
3292
3533
|
overflow: "hidden",
|
|
@@ -3301,7 +3542,7 @@ function Gt() {
|
|
|
3301
3542
|
{
|
|
3302
3543
|
style: {
|
|
3303
3544
|
width: 40,
|
|
3304
|
-
height:
|
|
3545
|
+
height: U - 16,
|
|
3305
3546
|
background: "#020710",
|
|
3306
3547
|
border: "1px solid #1a2d40",
|
|
3307
3548
|
borderRadius: 2,
|
|
@@ -3357,7 +3598,7 @@ function Gt() {
|
|
|
3357
3598
|
style: {
|
|
3358
3599
|
marginLeft: "auto",
|
|
3359
3600
|
width: 12,
|
|
3360
|
-
height:
|
|
3601
|
+
height: U - 16,
|
|
3361
3602
|
background: "#020710",
|
|
3362
3603
|
border: "1px solid #1a3050",
|
|
3363
3604
|
borderRadius: 1
|
|
@@ -3368,13 +3609,13 @@ function Gt() {
|
|
|
3368
3609
|
}
|
|
3369
3610
|
);
|
|
3370
3611
|
}
|
|
3371
|
-
function
|
|
3612
|
+
function lt({ side: t, color: n }) {
|
|
3372
3613
|
return /* @__PURE__ */ d(
|
|
3373
3614
|
"div",
|
|
3374
3615
|
{
|
|
3375
3616
|
style: {
|
|
3376
3617
|
width: be,
|
|
3377
|
-
height:
|
|
3618
|
+
height: U,
|
|
3378
3619
|
background: t === "right" ? "linear-gradient(90deg, #04091a 0%, #071428 60%, #040c1c 100%)" : "linear-gradient(90deg, #040c1c 0%, #071428 40%, #04091a 100%)",
|
|
3379
3620
|
position: "relative",
|
|
3380
3621
|
overflow: "hidden"
|
|
@@ -3398,8 +3639,8 @@ function ct({ side: t, color: n }) {
|
|
|
3398
3639
|
{
|
|
3399
3640
|
style: {
|
|
3400
3641
|
position: "absolute",
|
|
3401
|
-
top:
|
|
3402
|
-
bottom:
|
|
3642
|
+
top: U * 0.25,
|
|
3643
|
+
bottom: U * 0.25,
|
|
3403
3644
|
left: 14,
|
|
3404
3645
|
right: 14,
|
|
3405
3646
|
display: "flex",
|
|
@@ -3425,13 +3666,13 @@ function ct({ side: t, color: n }) {
|
|
|
3425
3666
|
}
|
|
3426
3667
|
);
|
|
3427
3668
|
}
|
|
3428
|
-
function
|
|
3669
|
+
function Gt({ traffic: t }) {
|
|
3429
3670
|
const n = Math.floor((be - 14) / 7);
|
|
3430
3671
|
return /* @__PURE__ */ d(
|
|
3431
3672
|
"div",
|
|
3432
3673
|
{
|
|
3433
3674
|
style: {
|
|
3434
|
-
width:
|
|
3675
|
+
width: q,
|
|
3435
3676
|
height: be,
|
|
3436
3677
|
background: "linear-gradient(180deg, #0c1c30 0%, #07101e 40%, #040c1a 100%)",
|
|
3437
3678
|
position: "relative",
|
|
@@ -3484,7 +3725,7 @@ function Kt({ traffic: t }) {
|
|
|
3484
3725
|
}
|
|
3485
3726
|
);
|
|
3486
3727
|
}
|
|
3487
|
-
function
|
|
3728
|
+
function et({
|
|
3488
3729
|
rotateX: t = -20,
|
|
3489
3730
|
rotateY: n = 20,
|
|
3490
3731
|
rotateZ: o = 0,
|
|
@@ -3493,29 +3734,29 @@ function nt({
|
|
|
3493
3734
|
status: a = "online",
|
|
3494
3735
|
name: s = "WEB-DISP-01",
|
|
3495
3736
|
traffic: l = 78,
|
|
3496
|
-
activeRoutes:
|
|
3737
|
+
activeRoutes: h = 12,
|
|
3497
3738
|
_compact: c
|
|
3498
3739
|
}) {
|
|
3499
|
-
const [p,
|
|
3500
|
-
|
|
3740
|
+
const [p, f] = I(n), g = ee(0), u = ee(0);
|
|
3741
|
+
Te(() => {
|
|
3501
3742
|
if (!r) {
|
|
3502
|
-
|
|
3743
|
+
f(n);
|
|
3503
3744
|
return;
|
|
3504
3745
|
}
|
|
3505
3746
|
const m = (x) => {
|
|
3506
|
-
u.current &&
|
|
3747
|
+
u.current && f((v) => v + (x - u.current) * 0.027), u.current = x, g.current = requestAnimationFrame(m);
|
|
3507
3748
|
};
|
|
3508
|
-
return
|
|
3509
|
-
cancelAnimationFrame(
|
|
3749
|
+
return g.current = requestAnimationFrame(m), () => {
|
|
3750
|
+
cancelAnimationFrame(g.current), u.current = 0;
|
|
3510
3751
|
};
|
|
3511
3752
|
}, [r, n]);
|
|
3512
|
-
const
|
|
3753
|
+
const y = w[a] ?? w.online;
|
|
3513
3754
|
return /* @__PURE__ */ d(
|
|
3514
3755
|
"div",
|
|
3515
3756
|
{
|
|
3516
3757
|
style: {
|
|
3517
|
-
width:
|
|
3518
|
-
height:
|
|
3758
|
+
width: q * i,
|
|
3759
|
+
height: U * i,
|
|
3519
3760
|
position: "relative",
|
|
3520
3761
|
display: "flex",
|
|
3521
3762
|
alignItems: "center",
|
|
@@ -3575,9 +3816,9 @@ function nt({
|
|
|
3575
3816
|
{
|
|
3576
3817
|
style: {
|
|
3577
3818
|
position: "absolute",
|
|
3578
|
-
width:
|
|
3579
|
-
height:
|
|
3580
|
-
background: `radial-gradient(ellipse, ${
|
|
3819
|
+
width: q * 1.3 * i,
|
|
3820
|
+
height: U * 2 * i,
|
|
3821
|
+
background: `radial-gradient(ellipse, ${y.glow} 0%, transparent 65%)`,
|
|
3581
3822
|
filter: `blur(${Math.round(40 * i)}px)`,
|
|
3582
3823
|
pointerEvents: "none",
|
|
3583
3824
|
top: "40%",
|
|
@@ -3599,8 +3840,8 @@ function nt({
|
|
|
3599
3840
|
"div",
|
|
3600
3841
|
{
|
|
3601
3842
|
style: {
|
|
3602
|
-
width:
|
|
3603
|
-
height:
|
|
3843
|
+
width: q,
|
|
3844
|
+
height: U,
|
|
3604
3845
|
position: "relative",
|
|
3605
3846
|
transformStyle: "preserve-3d",
|
|
3606
3847
|
transform: `rotateX(${t}deg) rotateY(${p}deg) rotateZ(${o}deg)`,
|
|
@@ -3608,20 +3849,20 @@ function nt({
|
|
|
3608
3849
|
},
|
|
3609
3850
|
children: [
|
|
3610
3851
|
/* @__PURE__ */ e("div", { style: fe.front, children: /* @__PURE__ */ e(
|
|
3611
|
-
|
|
3852
|
+
jt,
|
|
3612
3853
|
{
|
|
3613
|
-
cfg:
|
|
3854
|
+
cfg: y,
|
|
3614
3855
|
name: s,
|
|
3615
3856
|
traffic: l,
|
|
3616
|
-
activeRoutes:
|
|
3857
|
+
activeRoutes: h,
|
|
3617
3858
|
compact: c
|
|
3618
3859
|
}
|
|
3619
3860
|
) }),
|
|
3620
|
-
/* @__PURE__ */ e("div", { style: fe.back, children: /* @__PURE__ */ e(
|
|
3621
|
-
/* @__PURE__ */ e("div", { style: fe.left, children: /* @__PURE__ */ e(
|
|
3622
|
-
/* @__PURE__ */ e("div", { style: fe.right, children: /* @__PURE__ */ e(
|
|
3623
|
-
/* @__PURE__ */ e("div", { style: fe.top, children: /* @__PURE__ */ e(
|
|
3624
|
-
/* @__PURE__ */ e("div", { style: fe.bottom, children: /* @__PURE__ */ e("div", { style: { width:
|
|
3861
|
+
/* @__PURE__ */ e("div", { style: fe.back, children: /* @__PURE__ */ e(Qt, {}) }),
|
|
3862
|
+
/* @__PURE__ */ e("div", { style: fe.left, children: /* @__PURE__ */ e(lt, { side: "left", color: y.color }) }),
|
|
3863
|
+
/* @__PURE__ */ e("div", { style: fe.right, children: /* @__PURE__ */ e(lt, { side: "right", color: y.color }) }),
|
|
3864
|
+
/* @__PURE__ */ e("div", { style: fe.top, children: /* @__PURE__ */ e(Gt, { traffic: l }) }),
|
|
3865
|
+
/* @__PURE__ */ e("div", { style: fe.bottom, children: /* @__PURE__ */ e("div", { style: { width: q, height: be, background: "#020508" } }) })
|
|
3625
3866
|
]
|
|
3626
3867
|
}
|
|
3627
3868
|
)
|
|
@@ -3631,13 +3872,57 @@ function nt({
|
|
|
3631
3872
|
}
|
|
3632
3873
|
);
|
|
3633
3874
|
}
|
|
3634
|
-
|
|
3875
|
+
function ki({
|
|
3876
|
+
ex: t,
|
|
3877
|
+
ey: n,
|
|
3878
|
+
compactOffset: o,
|
|
3879
|
+
zIndex: i,
|
|
3880
|
+
name: r = "WEB-DISP",
|
|
3881
|
+
status: a = "online",
|
|
3882
|
+
subLabel: s,
|
|
3883
|
+
color: l,
|
|
3884
|
+
delay: h,
|
|
3885
|
+
visibleAtPhase: c,
|
|
3886
|
+
traffic: p,
|
|
3887
|
+
activeRoutes: f,
|
|
3888
|
+
dialogMetrics: g,
|
|
3889
|
+
subComponents: u,
|
|
3890
|
+
graphSeries: y,
|
|
3891
|
+
alert: m
|
|
3892
|
+
}) {
|
|
3893
|
+
return /* @__PURE__ */ e(
|
|
3894
|
+
k,
|
|
3895
|
+
{
|
|
3896
|
+
ex: t,
|
|
3897
|
+
ey: n,
|
|
3898
|
+
compactOffset: o,
|
|
3899
|
+
zIndex: i,
|
|
3900
|
+
label: r,
|
|
3901
|
+
subLabel: s,
|
|
3902
|
+
color: l,
|
|
3903
|
+
delay: h,
|
|
3904
|
+
visibleAtPhase: c,
|
|
3905
|
+
componentInfo: {
|
|
3906
|
+
type: "dispatcher",
|
|
3907
|
+
name: r,
|
|
3908
|
+
status: a,
|
|
3909
|
+
context: { traffic: p, activeRoutes: f },
|
|
3910
|
+
dialogMetrics: g,
|
|
3911
|
+
subComponents: u,
|
|
3912
|
+
graphSeries: y
|
|
3913
|
+
},
|
|
3914
|
+
alert: m,
|
|
3915
|
+
children: /* @__PURE__ */ e(et, { status: a, traffic: p, activeRoutes: f })
|
|
3916
|
+
}
|
|
3917
|
+
);
|
|
3918
|
+
}
|
|
3919
|
+
const K = 190, Y = 72, ge = 120, he = Ge(K, Y, ge), st = {
|
|
3635
3920
|
online: { color: "#bb55ff", glow: "rgba(187,85,255,0.50)" },
|
|
3636
3921
|
warning: { color: "#ff8c00", glow: "rgba(255,140,0,0.50)" },
|
|
3637
3922
|
critical: { color: "#ff2255", glow: "rgba(255,34,85,0.50)" },
|
|
3638
3923
|
offline: { color: "#1e3a5a", glow: "rgba(30,58,90,0.25)" }
|
|
3639
3924
|
};
|
|
3640
|
-
function
|
|
3925
|
+
function qt({
|
|
3641
3926
|
cfg: t,
|
|
3642
3927
|
name: n,
|
|
3643
3928
|
queueDepth: o,
|
|
@@ -3651,8 +3936,8 @@ function Zt({
|
|
|
3651
3936
|
{
|
|
3652
3937
|
style: {
|
|
3653
3938
|
width: K,
|
|
3654
|
-
height:
|
|
3655
|
-
background: a ?
|
|
3939
|
+
height: Y,
|
|
3940
|
+
background: a ? Se : Qe,
|
|
3656
3941
|
position: "relative",
|
|
3657
3942
|
overflow: "hidden",
|
|
3658
3943
|
fontFamily: "'Courier New', monospace",
|
|
@@ -3737,7 +4022,7 @@ function Zt({
|
|
|
3737
4022
|
gap: 10
|
|
3738
4023
|
},
|
|
3739
4024
|
children: [
|
|
3740
|
-
/* @__PURE__ */ e("div", { style: { display: "flex", gap: 3, alignItems: "center" }, children: Array.from({ length: 5 }, (
|
|
4025
|
+
/* @__PURE__ */ e("div", { style: { display: "flex", gap: 3, alignItems: "center" }, children: Array.from({ length: 5 }, (h, c) => {
|
|
3741
4026
|
const p = c < r;
|
|
3742
4027
|
return /* @__PURE__ */ d(
|
|
3743
4028
|
"div",
|
|
@@ -3869,14 +4154,14 @@ function Zt({
|
|
|
3869
4154
|
{ label: "INST", val: r, unit: "conn" },
|
|
3870
4155
|
{ label: "ENQUEUE", val: Math.round(o * 2.4), unit: "msgs" },
|
|
3871
4156
|
{ label: "DISP", val: Math.round(i * 0.1), unit: "/s" }
|
|
3872
|
-
].map((
|
|
3873
|
-
/* @__PURE__ */ e("span", { style: { fontSize: 6, color: "#1e3a5a", letterSpacing: "0.08em" }, children:
|
|
4157
|
+
].map((h) => /* @__PURE__ */ d("div", { style: { display: "flex", gap: 3 }, children: [
|
|
4158
|
+
/* @__PURE__ */ e("span", { style: { fontSize: 6, color: "#1e3a5a", letterSpacing: "0.08em" }, children: h.label }),
|
|
3874
4159
|
/* @__PURE__ */ d("span", { style: { fontSize: 6, color: s + "88" }, children: [
|
|
3875
|
-
|
|
4160
|
+
h.val,
|
|
3876
4161
|
" ",
|
|
3877
|
-
|
|
4162
|
+
h.unit
|
|
3878
4163
|
] })
|
|
3879
|
-
] },
|
|
4164
|
+
] }, h.label))
|
|
3880
4165
|
}
|
|
3881
4166
|
),
|
|
3882
4167
|
/* @__PURE__ */ e(
|
|
@@ -3896,13 +4181,13 @@ function Zt({
|
|
|
3896
4181
|
}
|
|
3897
4182
|
);
|
|
3898
4183
|
}
|
|
3899
|
-
function
|
|
4184
|
+
function Kt() {
|
|
3900
4185
|
return /* @__PURE__ */ d(
|
|
3901
4186
|
"div",
|
|
3902
4187
|
{
|
|
3903
4188
|
style: {
|
|
3904
4189
|
width: K,
|
|
3905
|
-
height:
|
|
4190
|
+
height: Y,
|
|
3906
4191
|
background: "linear-gradient(180deg, #040c1a, #030810)",
|
|
3907
4192
|
position: "relative",
|
|
3908
4193
|
overflow: "hidden",
|
|
@@ -3917,7 +4202,7 @@ function Jt() {
|
|
|
3917
4202
|
{
|
|
3918
4203
|
style: {
|
|
3919
4204
|
width: 40,
|
|
3920
|
-
height:
|
|
4205
|
+
height: Y - 16,
|
|
3921
4206
|
background: "#020710",
|
|
3922
4207
|
border: "1px solid #1a2d40",
|
|
3923
4208
|
borderRadius: 2,
|
|
@@ -3973,7 +4258,7 @@ function Jt() {
|
|
|
3973
4258
|
style: {
|
|
3974
4259
|
marginLeft: "auto",
|
|
3975
4260
|
width: 12,
|
|
3976
|
-
height:
|
|
4261
|
+
height: Y - 16,
|
|
3977
4262
|
background: "#020710",
|
|
3978
4263
|
border: "1px solid #1a3050",
|
|
3979
4264
|
borderRadius: 1
|
|
@@ -3984,13 +4269,13 @@ function Jt() {
|
|
|
3984
4269
|
}
|
|
3985
4270
|
);
|
|
3986
4271
|
}
|
|
3987
|
-
function
|
|
4272
|
+
function dt({ side: t, color: n }) {
|
|
3988
4273
|
return /* @__PURE__ */ d(
|
|
3989
4274
|
"div",
|
|
3990
4275
|
{
|
|
3991
4276
|
style: {
|
|
3992
4277
|
width: ge,
|
|
3993
|
-
height:
|
|
4278
|
+
height: Y,
|
|
3994
4279
|
background: t === "right" ? "linear-gradient(90deg, #04091a 0%, #071428 60%, #040c1c 100%)" : "linear-gradient(90deg, #040c1c 0%, #071428 40%, #04091a 100%)",
|
|
3995
4280
|
position: "relative",
|
|
3996
4281
|
overflow: "hidden"
|
|
@@ -4014,8 +4299,8 @@ function ft({ side: t, color: n }) {
|
|
|
4014
4299
|
{
|
|
4015
4300
|
style: {
|
|
4016
4301
|
position: "absolute",
|
|
4017
|
-
top:
|
|
4018
|
-
bottom:
|
|
4302
|
+
top: Y * 0.25,
|
|
4303
|
+
bottom: Y * 0.25,
|
|
4019
4304
|
left: 14,
|
|
4020
4305
|
right: 14,
|
|
4021
4306
|
display: "flex",
|
|
@@ -4041,7 +4326,7 @@ function ft({ side: t, color: n }) {
|
|
|
4041
4326
|
}
|
|
4042
4327
|
);
|
|
4043
4328
|
}
|
|
4044
|
-
function
|
|
4329
|
+
function Zt({ queueDepth: t, color: n }) {
|
|
4045
4330
|
const o = Math.floor((ge - 14) / 7);
|
|
4046
4331
|
return /* @__PURE__ */ d(
|
|
4047
4332
|
"div",
|
|
@@ -4100,7 +4385,7 @@ function ei({ queueDepth: t, color: n }) {
|
|
|
4100
4385
|
}
|
|
4101
4386
|
);
|
|
4102
4387
|
}
|
|
4103
|
-
function
|
|
4388
|
+
function ht({
|
|
4104
4389
|
rotateX: t = -20,
|
|
4105
4390
|
rotateY: n = 20,
|
|
4106
4391
|
rotateZ: o = 0,
|
|
@@ -4109,30 +4394,30 @@ function bt({
|
|
|
4109
4394
|
status: a = "online",
|
|
4110
4395
|
name: s = "MSG-SRV-01",
|
|
4111
4396
|
queueDepth: l = 45,
|
|
4112
|
-
msgsPerSec:
|
|
4397
|
+
msgsPerSec: h = 230,
|
|
4113
4398
|
instances: c = 3,
|
|
4114
4399
|
_compact: p
|
|
4115
4400
|
}) {
|
|
4116
|
-
const [
|
|
4117
|
-
|
|
4401
|
+
const [f, g] = I(n), u = ee(0), y = ee(0);
|
|
4402
|
+
Te(() => {
|
|
4118
4403
|
if (!r) {
|
|
4119
|
-
|
|
4404
|
+
g(n);
|
|
4120
4405
|
return;
|
|
4121
4406
|
}
|
|
4122
4407
|
const x = (v) => {
|
|
4123
|
-
|
|
4408
|
+
y.current && g(($) => $ + (v - y.current) * 0.027), y.current = v, u.current = requestAnimationFrame(x);
|
|
4124
4409
|
};
|
|
4125
4410
|
return u.current = requestAnimationFrame(x), () => {
|
|
4126
|
-
cancelAnimationFrame(u.current),
|
|
4411
|
+
cancelAnimationFrame(u.current), y.current = 0;
|
|
4127
4412
|
};
|
|
4128
4413
|
}, [r, n]);
|
|
4129
|
-
const m =
|
|
4414
|
+
const m = st[a] ?? st.online;
|
|
4130
4415
|
return /* @__PURE__ */ d(
|
|
4131
4416
|
"div",
|
|
4132
4417
|
{
|
|
4133
4418
|
style: {
|
|
4134
4419
|
width: K * i,
|
|
4135
|
-
height:
|
|
4420
|
+
height: Y * i,
|
|
4136
4421
|
position: "relative",
|
|
4137
4422
|
display: "flex",
|
|
4138
4423
|
alignItems: "center",
|
|
@@ -4193,7 +4478,7 @@ function bt({
|
|
|
4193
4478
|
style: {
|
|
4194
4479
|
position: "absolute",
|
|
4195
4480
|
width: K * 1.3 * i,
|
|
4196
|
-
height:
|
|
4481
|
+
height: Y * 2 * i,
|
|
4197
4482
|
background: `radial-gradient(ellipse, ${m.glow} 0%, transparent 65%)`,
|
|
4198
4483
|
filter: `blur(${Math.round(40 * i)}px)`,
|
|
4199
4484
|
pointerEvents: "none",
|
|
@@ -4217,28 +4502,28 @@ function bt({
|
|
|
4217
4502
|
{
|
|
4218
4503
|
style: {
|
|
4219
4504
|
width: K,
|
|
4220
|
-
height:
|
|
4505
|
+
height: Y,
|
|
4221
4506
|
position: "relative",
|
|
4222
4507
|
transformStyle: "preserve-3d",
|
|
4223
|
-
transform: `rotateX(${t}deg) rotateY(${
|
|
4508
|
+
transform: `rotateX(${t}deg) rotateY(${f}deg) rotateZ(${o}deg)`,
|
|
4224
4509
|
transition: r ? "none" : "transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94)"
|
|
4225
4510
|
},
|
|
4226
4511
|
children: [
|
|
4227
4512
|
/* @__PURE__ */ e("div", { style: he.front, children: /* @__PURE__ */ e(
|
|
4228
|
-
|
|
4513
|
+
qt,
|
|
4229
4514
|
{
|
|
4230
4515
|
cfg: m,
|
|
4231
4516
|
name: s,
|
|
4232
4517
|
queueDepth: l,
|
|
4233
|
-
msgsPerSec:
|
|
4518
|
+
msgsPerSec: h,
|
|
4234
4519
|
instances: c,
|
|
4235
4520
|
compact: p
|
|
4236
4521
|
}
|
|
4237
4522
|
) }),
|
|
4238
|
-
/* @__PURE__ */ e("div", { style: he.back, children: /* @__PURE__ */ e(
|
|
4239
|
-
/* @__PURE__ */ e("div", { style: he.left, children: /* @__PURE__ */ e(
|
|
4240
|
-
/* @__PURE__ */ e("div", { style: he.right, children: /* @__PURE__ */ e(
|
|
4241
|
-
/* @__PURE__ */ e("div", { style: he.top, children: /* @__PURE__ */ e(
|
|
4523
|
+
/* @__PURE__ */ e("div", { style: he.back, children: /* @__PURE__ */ e(Kt, {}) }),
|
|
4524
|
+
/* @__PURE__ */ e("div", { style: he.left, children: /* @__PURE__ */ e(dt, { side: "left", color: m.color }) }),
|
|
4525
|
+
/* @__PURE__ */ e("div", { style: he.right, children: /* @__PURE__ */ e(dt, { side: "right", color: m.color }) }),
|
|
4526
|
+
/* @__PURE__ */ e("div", { style: he.top, children: /* @__PURE__ */ e(Zt, { queueDepth: l, color: m.color }) }),
|
|
4242
4527
|
/* @__PURE__ */ e("div", { style: he.bottom, children: /* @__PURE__ */ e("div", { style: { width: K, height: ge, background: "#020508" } }) })
|
|
4243
4528
|
]
|
|
4244
4529
|
}
|
|
@@ -4249,127 +4534,68 @@ function bt({
|
|
|
4249
4534
|
}
|
|
4250
4535
|
);
|
|
4251
4536
|
}
|
|
4252
|
-
function
|
|
4253
|
-
|
|
4537
|
+
function Ri({
|
|
4538
|
+
ex: t,
|
|
4539
|
+
ey: n,
|
|
4540
|
+
compactOffset: o,
|
|
4541
|
+
zIndex: i,
|
|
4542
|
+
name: r = "MSG-SRV",
|
|
4543
|
+
status: a = "online",
|
|
4544
|
+
subLabel: s,
|
|
4545
|
+
color: l,
|
|
4546
|
+
delay: h,
|
|
4547
|
+
visibleAtPhase: c,
|
|
4548
|
+
queueDepth: p,
|
|
4549
|
+
msgsPerSec: f,
|
|
4550
|
+
instances: g,
|
|
4551
|
+
dialogMetrics: u,
|
|
4552
|
+
subComponents: y,
|
|
4553
|
+
graphSeries: m,
|
|
4554
|
+
alert: x
|
|
4555
|
+
}) {
|
|
4254
4556
|
return /* @__PURE__ */ e(
|
|
4255
|
-
|
|
4557
|
+
k,
|
|
4256
4558
|
{
|
|
4257
|
-
|
|
4258
|
-
|
|
4259
|
-
|
|
4260
|
-
|
|
4261
|
-
|
|
4262
|
-
|
|
4559
|
+
ex: t,
|
|
4560
|
+
ey: n,
|
|
4561
|
+
compactOffset: o,
|
|
4562
|
+
zIndex: i,
|
|
4563
|
+
label: r,
|
|
4564
|
+
subLabel: s,
|
|
4565
|
+
color: l,
|
|
4566
|
+
delay: h,
|
|
4567
|
+
visibleAtPhase: c,
|
|
4568
|
+
componentInfo: {
|
|
4569
|
+
type: "messageServer",
|
|
4570
|
+
name: r,
|
|
4571
|
+
status: a,
|
|
4572
|
+
context: { queueDepth: p, msgsPerSec: f, instances: g },
|
|
4573
|
+
dialogMetrics: u,
|
|
4574
|
+
subComponents: y,
|
|
4575
|
+
graphSeries: m
|
|
4263
4576
|
},
|
|
4264
|
-
|
|
4265
|
-
|
|
4577
|
+
alert: x,
|
|
4578
|
+
children: /* @__PURE__ */ e(
|
|
4579
|
+
ht,
|
|
4266
4580
|
{
|
|
4267
|
-
|
|
4268
|
-
|
|
4269
|
-
|
|
4270
|
-
|
|
4271
|
-
fontFamily: "'Courier New', monospace",
|
|
4272
|
-
userSelect: "none",
|
|
4273
|
-
transform: `scale(${n})`,
|
|
4274
|
-
transformOrigin: "center center"
|
|
4275
|
-
},
|
|
4276
|
-
children: [
|
|
4277
|
-
/* @__PURE__ */ d("div", { style: { position: "relative", animation: "holo-float 4s ease-in-out infinite" }, children: [
|
|
4278
|
-
/* @__PURE__ */ e(
|
|
4279
|
-
"div",
|
|
4280
|
-
{
|
|
4281
|
-
style: {
|
|
4282
|
-
position: "absolute",
|
|
4283
|
-
top: 0,
|
|
4284
|
-
left: 0,
|
|
4285
|
-
right: 0,
|
|
4286
|
-
height: "1.5px",
|
|
4287
|
-
background: `linear-gradient(90deg, transparent 5%, ${i}cc 40%, #fff 50%, ${i}cc 60%, transparent 95%)`,
|
|
4288
|
-
boxShadow: `0 0 8px ${i}`,
|
|
4289
|
-
animation: "holo-scan 3.5s linear infinite",
|
|
4290
|
-
pointerEvents: "none",
|
|
4291
|
-
zIndex: 10
|
|
4292
|
-
}
|
|
4293
|
-
}
|
|
4294
|
-
),
|
|
4295
|
-
/* @__PURE__ */ d(
|
|
4296
|
-
"svg",
|
|
4297
|
-
{
|
|
4298
|
-
width: "70",
|
|
4299
|
-
height: "75",
|
|
4300
|
-
viewBox: "0 0 70 75",
|
|
4301
|
-
style: { display: "block", overflow: "visible" },
|
|
4302
|
-
children: [
|
|
4303
|
-
/* @__PURE__ */ e("defs", { children: /* @__PURE__ */ d("radialGradient", { id: `usr-glow-${t}`, cx: "50%", cy: "45%", r: "55%", children: [
|
|
4304
|
-
/* @__PURE__ */ e("stop", { offset: "0%", stopColor: i, stopOpacity: "0.12" }),
|
|
4305
|
-
/* @__PURE__ */ e("stop", { offset: "100%", stopColor: i, stopOpacity: "0" })
|
|
4306
|
-
] }) }),
|
|
4307
|
-
/* @__PURE__ */ e("ellipse", { cx: "35", cy: "37", rx: "34", ry: "32", fill: `url(#usr-glow-${t})` }),
|
|
4308
|
-
/* @__PURE__ */ e(
|
|
4309
|
-
"circle",
|
|
4310
|
-
{
|
|
4311
|
-
cx: "35",
|
|
4312
|
-
cy: "20",
|
|
4313
|
-
r: "13",
|
|
4314
|
-
fill: i + "0a",
|
|
4315
|
-
stroke: i,
|
|
4316
|
-
strokeWidth: "1.5",
|
|
4317
|
-
style: { filter: `drop-shadow(0 0 6px ${i})` }
|
|
4318
|
-
}
|
|
4319
|
-
),
|
|
4320
|
-
/* @__PURE__ */ e("circle", { cx: "35", cy: "20", r: "7", fill: "none", stroke: i + "30", strokeWidth: "0.5" }),
|
|
4321
|
-
/* @__PURE__ */ e("circle", { cx: "35", cy: "20", r: "3", fill: i + "18", stroke: "none" }),
|
|
4322
|
-
/* @__PURE__ */ e(
|
|
4323
|
-
"path",
|
|
4324
|
-
{
|
|
4325
|
-
d: "M7 71 Q7 47 20 39 Q27 35 35 35 Q43 35 50 39 Q63 47 63 71",
|
|
4326
|
-
fill: i + "08",
|
|
4327
|
-
stroke: i,
|
|
4328
|
-
strokeWidth: "1.5",
|
|
4329
|
-
strokeLinecap: "round",
|
|
4330
|
-
style: { filter: `drop-shadow(0 0 5px ${i})` }
|
|
4331
|
-
}
|
|
4332
|
-
),
|
|
4333
|
-
/* @__PURE__ */ e(
|
|
4334
|
-
"path",
|
|
4335
|
-
{
|
|
4336
|
-
d: "M16 65 Q16 51 26 44 Q30 42 35 42 Q40 42 44 44 Q54 51 54 65",
|
|
4337
|
-
fill: "none",
|
|
4338
|
-
stroke: i + "20",
|
|
4339
|
-
strokeWidth: "0.6",
|
|
4340
|
-
strokeDasharray: "4,5"
|
|
4341
|
-
}
|
|
4342
|
-
),
|
|
4343
|
-
/* @__PURE__ */ e(
|
|
4344
|
-
"path",
|
|
4345
|
-
{
|
|
4346
|
-
d: "M24 61 Q24 53 30 49 Q32 48 35 48 Q38 48 40 49 Q46 53 46 61",
|
|
4347
|
-
fill: "none",
|
|
4348
|
-
stroke: i + "18",
|
|
4349
|
-
strokeWidth: "0.5",
|
|
4350
|
-
strokeDasharray: "2,4"
|
|
4351
|
-
}
|
|
4352
|
-
)
|
|
4353
|
-
]
|
|
4354
|
-
}
|
|
4355
|
-
)
|
|
4356
|
-
] }),
|
|
4357
|
-
/* @__PURE__ */ e("div", { style: { height: 22 } })
|
|
4358
|
-
]
|
|
4581
|
+
status: a,
|
|
4582
|
+
queueDepth: p,
|
|
4583
|
+
msgsPerSec: f,
|
|
4584
|
+
instances: g
|
|
4359
4585
|
}
|
|
4360
4586
|
)
|
|
4361
4587
|
}
|
|
4362
4588
|
);
|
|
4363
4589
|
}
|
|
4364
|
-
function
|
|
4590
|
+
function E(t, n, o = 24) {
|
|
4365
4591
|
return Array.from({ length: o }, (i, r) => {
|
|
4366
4592
|
const a = r / o;
|
|
4367
4593
|
return Math.min(100, Math.max(0, t + Math.sin(a * Math.PI * 2) * n + (Math.random() - 0.5) * 10));
|
|
4368
4594
|
});
|
|
4369
4595
|
}
|
|
4370
|
-
function
|
|
4371
|
-
const r = o, a = Math.max(...t, 1), s = t.map((l,
|
|
4372
|
-
const c =
|
|
4596
|
+
function Jt({ data: t, color: n, height: o = 28 }) {
|
|
4597
|
+
const r = o, a = Math.max(...t, 1), s = t.map((l, h) => {
|
|
4598
|
+
const c = h / (t.length - 1) * 120, p = r - l / a * (r - 4) - 2;
|
|
4373
4599
|
return `${c},${p}`;
|
|
4374
4600
|
}).join(" ");
|
|
4375
4601
|
return /* @__PURE__ */ e("svg", { width: 120, height: r, style: { display: "block", overflow: "visible" }, children: /* @__PURE__ */ e(
|
|
@@ -4385,7 +4611,7 @@ function ti({ data: t, color: n, height: o = 28 }) {
|
|
|
4385
4611
|
}
|
|
4386
4612
|
) });
|
|
4387
4613
|
}
|
|
4388
|
-
function
|
|
4614
|
+
function ei({
|
|
4389
4615
|
type: t,
|
|
4390
4616
|
name: n,
|
|
4391
4617
|
context: o = {},
|
|
@@ -4393,7 +4619,7 @@ function ii({
|
|
|
4393
4619
|
animPhase: r,
|
|
4394
4620
|
series: a
|
|
4395
4621
|
}) {
|
|
4396
|
-
const s = i === "critical" || i === "offline" ? "#ff2255" : i === "warning" ? "#ff8c00" : "#00e5ff", l = a ? a.map((p) => ({ ...p })) :
|
|
4622
|
+
const s = i === "critical" || i === "offline" ? "#ff2255" : i === "warning" ? "#ff8c00" : "#00e5ff", l = a ? a.map((p) => ({ ...p })) : ti(t, o), h = r >= 0.3 ? 0 : -280, c = r >= 0.2 ? 1 : 0;
|
|
4397
4623
|
return /* @__PURE__ */ d(
|
|
4398
4624
|
"div",
|
|
4399
4625
|
{
|
|
@@ -4407,7 +4633,7 @@ function ii({
|
|
|
4407
4633
|
display: "flex",
|
|
4408
4634
|
flexDirection: "column",
|
|
4409
4635
|
overflow: "hidden",
|
|
4410
|
-
transform: `translateX(${
|
|
4636
|
+
transform: `translateX(${h}px)`,
|
|
4411
4637
|
opacity: c,
|
|
4412
4638
|
transition: "transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease"
|
|
4413
4639
|
},
|
|
@@ -4429,7 +4655,7 @@ function ii({
|
|
|
4429
4655
|
]
|
|
4430
4656
|
}
|
|
4431
4657
|
),
|
|
4432
|
-
/* @__PURE__ */ e("div", { style: { flex: 1, overflowY: "auto", padding: "12px 10px", display: "flex", flexDirection: "column", gap: 16 }, children: l.map((p,
|
|
4658
|
+
/* @__PURE__ */ e("div", { style: { flex: 1, overflowY: "auto", padding: "12px 10px", display: "flex", flexDirection: "column", gap: 16 }, children: l.map((p, f) => /* @__PURE__ */ d(
|
|
4433
4659
|
"div",
|
|
4434
4660
|
{
|
|
4435
4661
|
style: {
|
|
@@ -4437,7 +4663,7 @@ function ii({
|
|
|
4437
4663
|
background: "rgba(0, 20, 40, 0.35)",
|
|
4438
4664
|
border: `1px solid ${p.color}22`,
|
|
4439
4665
|
borderRadius: 6,
|
|
4440
|
-
transition: `opacity 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) ${
|
|
4666
|
+
transition: `opacity 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) ${f * 0.04}s`,
|
|
4441
4667
|
opacity: r >= 0.5 ? 1 : 0
|
|
4442
4668
|
},
|
|
4443
4669
|
children: [
|
|
@@ -4448,7 +4674,7 @@ function ii({
|
|
|
4448
4674
|
p.unit
|
|
4449
4675
|
] })
|
|
4450
4676
|
] }),
|
|
4451
|
-
/* @__PURE__ */ e(
|
|
4677
|
+
/* @__PURE__ */ e(Jt, { data: p.data, color: p.color, height: 26 })
|
|
4452
4678
|
]
|
|
4453
4679
|
},
|
|
4454
4680
|
p.id
|
|
@@ -4457,43 +4683,43 @@ function ii({
|
|
|
4457
4683
|
}
|
|
4458
4684
|
);
|
|
4459
4685
|
}
|
|
4460
|
-
function
|
|
4686
|
+
function ti(t, n) {
|
|
4461
4687
|
if (t === "server") {
|
|
4462
4688
|
const o = n.cpuLoad ?? 50, i = n.memLoad ?? 60;
|
|
4463
4689
|
return [
|
|
4464
|
-
{ id: "cpu", label: "CPU-0", unit: "%", color: "#00e5ff", data:
|
|
4465
|
-
{ id: "cpu1", label: "CPU-1", unit: "%", color: "#00e5ff", data:
|
|
4466
|
-
{ id: "heap0", label: "HEAP-0", unit: "%", color: "#8855ee", data:
|
|
4467
|
-
{ id: "heap1", label: "HEAP-1", unit: "%", color: "#8855ee", data:
|
|
4468
|
-
{ id: "drive1", label: "DRIVE-1 I/O", unit: "%", color: "#ff8c00", data:
|
|
4469
|
-
{ id: "drive2", label: "DRIVE-2 I/O", unit: "%", color: "#ff8c00", data:
|
|
4470
|
-
{ id: "drive3", label: "DRIVE-3 I/O", unit: "%", color: "#ff8c00", data:
|
|
4471
|
-
{ id: "thread", label: "THREAD-POOL", unit: "%", color: "#22aaff", data:
|
|
4690
|
+
{ id: "cpu", label: "CPU-0", unit: "%", color: "#00e5ff", data: E(o, 15) },
|
|
4691
|
+
{ id: "cpu1", label: "CPU-1", unit: "%", color: "#00e5ff", data: E(o * 0.7, 12) },
|
|
4692
|
+
{ id: "heap0", label: "HEAP-0", unit: "%", color: "#8855ee", data: E(i, 18) },
|
|
4693
|
+
{ id: "heap1", label: "HEAP-1", unit: "%", color: "#8855ee", data: E(i * 0.85, 14) },
|
|
4694
|
+
{ id: "drive1", label: "DRIVE-1 I/O", unit: "%", color: "#ff8c00", data: E(40, 25) },
|
|
4695
|
+
{ id: "drive2", label: "DRIVE-2 I/O", unit: "%", color: "#ff8c00", data: E(35, 20) },
|
|
4696
|
+
{ id: "drive3", label: "DRIVE-3 I/O", unit: "%", color: "#ff8c00", data: E(30, 22) },
|
|
4697
|
+
{ id: "thread", label: "THREAD-POOL", unit: "%", color: "#22aaff", data: E(55, 20) }
|
|
4472
4698
|
];
|
|
4473
4699
|
}
|
|
4474
4700
|
if (t === "dispatcher" || t === "messageServer") {
|
|
4475
4701
|
const o = n.traffic ?? n.queueDepth ?? 50;
|
|
4476
4702
|
return [
|
|
4477
|
-
{ id: "traffic", label: "TRAFFIC", unit: "%", color: "#00e5ff", data:
|
|
4478
|
-
{ id: "port1", label: "PORT-1", unit: "kbps", color: "#22aaff", data:
|
|
4479
|
-
{ id: "port2", label: "PORT-2", unit: "kbps", color: "#22aaff", data:
|
|
4480
|
-
{ id: "port3", label: "PORT-3", unit: "kbps", color: "#22aaff", data:
|
|
4481
|
-
{ id: "worker", label: "WORKER", unit: "%", color: "#bb55ff", data:
|
|
4703
|
+
{ id: "traffic", label: "TRAFFIC", unit: "%", color: "#00e5ff", data: E(o, 20) },
|
|
4704
|
+
{ id: "port1", label: "PORT-1", unit: "kbps", color: "#22aaff", data: E(60, 25) },
|
|
4705
|
+
{ id: "port2", label: "PORT-2", unit: "kbps", color: "#22aaff", data: E(45, 20) },
|
|
4706
|
+
{ id: "port3", label: "PORT-3", unit: "kbps", color: "#22aaff", data: E(70, 30) },
|
|
4707
|
+
{ id: "worker", label: "WORKER", unit: "%", color: "#bb55ff", data: E(o * 0.9, 15) }
|
|
4482
4708
|
];
|
|
4483
4709
|
}
|
|
4484
4710
|
if (t === "database") {
|
|
4485
4711
|
const o = n.capacity ?? 70;
|
|
4486
4712
|
return [
|
|
4487
|
-
{ id: "platter0", label: "PLATTER-0 I/O", unit: "%", color: "#ff8c00", data:
|
|
4488
|
-
{ id: "platter1", label: "PLATTER-1 I/O", unit: "%", color: "#ff8c00", data:
|
|
4489
|
-
{ id: "platter2", label: "PLATTER-2 I/O", unit: "%", color: "#ff8c00", data:
|
|
4490
|
-
{ id: "connpool", label: "CONN-POOL", unit: "%", color: "#00e5ff", data:
|
|
4491
|
-
{ id: "cache", label: "QUERY-CACHE", unit: "%", color: "#00ff88", data:
|
|
4713
|
+
{ id: "platter0", label: "PLATTER-0 I/O", unit: "%", color: "#ff8c00", data: E(40, 20) },
|
|
4714
|
+
{ id: "platter1", label: "PLATTER-1 I/O", unit: "%", color: "#ff8c00", data: E(55, 25) },
|
|
4715
|
+
{ id: "platter2", label: "PLATTER-2 I/O", unit: "%", color: "#ff8c00", data: E(35, 18) },
|
|
4716
|
+
{ id: "connpool", label: "CONN-POOL", unit: "%", color: "#00e5ff", data: E(o, 15) },
|
|
4717
|
+
{ id: "cache", label: "QUERY-CACHE", unit: "%", color: "#00ff88", data: E(75, 12) }
|
|
4492
4718
|
];
|
|
4493
4719
|
}
|
|
4494
4720
|
return [];
|
|
4495
4721
|
}
|
|
4496
|
-
function
|
|
4722
|
+
function ut({
|
|
4497
4723
|
w: t,
|
|
4498
4724
|
h: n,
|
|
4499
4725
|
color: o,
|
|
@@ -4509,7 +4735,7 @@ function yt({
|
|
|
4509
4735
|
style: {
|
|
4510
4736
|
width: t,
|
|
4511
4737
|
height: n,
|
|
4512
|
-
background:
|
|
4738
|
+
background: Se,
|
|
4513
4739
|
position: "relative",
|
|
4514
4740
|
overflow: "hidden",
|
|
4515
4741
|
borderRadius: 2,
|
|
@@ -4586,7 +4812,7 @@ function yt({
|
|
|
4586
4812
|
}
|
|
4587
4813
|
);
|
|
4588
4814
|
}
|
|
4589
|
-
function
|
|
4815
|
+
function De({
|
|
4590
4816
|
color: t = "#00e5ff",
|
|
4591
4817
|
label: n = "CPU-0",
|
|
4592
4818
|
status: o = "online",
|
|
@@ -4599,7 +4825,7 @@ function We({
|
|
|
4599
4825
|
style: {
|
|
4600
4826
|
width: 52,
|
|
4601
4827
|
height: 36,
|
|
4602
|
-
background:
|
|
4828
|
+
background: Se,
|
|
4603
4829
|
position: "relative",
|
|
4604
4830
|
borderRadius: 2,
|
|
4605
4831
|
border: `1px solid ${t}55`,
|
|
@@ -4697,7 +4923,7 @@ function We({
|
|
|
4697
4923
|
)
|
|
4698
4924
|
] });
|
|
4699
4925
|
}
|
|
4700
|
-
function
|
|
4926
|
+
function We({
|
|
4701
4927
|
color: t = "#00e5ff",
|
|
4702
4928
|
label: n = "HEAP-0",
|
|
4703
4929
|
status: o = "online",
|
|
@@ -4800,7 +5026,7 @@ function ye({
|
|
|
4800
5026
|
status: o = "online",
|
|
4801
5027
|
activity: i = !1
|
|
4802
5028
|
}) {
|
|
4803
|
-
return /* @__PURE__ */ d(
|
|
5029
|
+
return /* @__PURE__ */ d(ut, { w: 56, h: 22, color: t, label: n, status: o, children: [
|
|
4804
5030
|
/* @__PURE__ */ e(
|
|
4805
5031
|
"div",
|
|
4806
5032
|
{
|
|
@@ -4833,7 +5059,7 @@ function ye({
|
|
|
4833
5059
|
)
|
|
4834
5060
|
] });
|
|
4835
5061
|
}
|
|
4836
|
-
function
|
|
5062
|
+
function bt({
|
|
4837
5063
|
color: t = "#00e5ff",
|
|
4838
5064
|
label: n = "NET",
|
|
4839
5065
|
status: o = "online"
|
|
@@ -4844,7 +5070,7 @@ function mt({
|
|
|
4844
5070
|
style: {
|
|
4845
5071
|
width: 48,
|
|
4846
5072
|
height: 28,
|
|
4847
|
-
background:
|
|
5073
|
+
background: Se,
|
|
4848
5074
|
position: "relative",
|
|
4849
5075
|
borderRadius: 2,
|
|
4850
5076
|
border: `1px solid ${t}44`,
|
|
@@ -4897,12 +5123,12 @@ function mt({
|
|
|
4897
5123
|
}
|
|
4898
5124
|
);
|
|
4899
5125
|
}
|
|
4900
|
-
function
|
|
5126
|
+
function O({
|
|
4901
5127
|
color: t = "#00e5ff",
|
|
4902
5128
|
label: n = "THREAD",
|
|
4903
5129
|
status: o = "online"
|
|
4904
5130
|
}) {
|
|
4905
|
-
return /* @__PURE__ */ e(
|
|
5131
|
+
return /* @__PURE__ */ e(ut, { w: 44, h: 28, color: t, label: n, status: o });
|
|
4906
5132
|
}
|
|
4907
5133
|
function Oe({
|
|
4908
5134
|
color: t = "#ff8c00",
|
|
@@ -5058,7 +5284,7 @@ function B({
|
|
|
5058
5284
|
}
|
|
5059
5285
|
);
|
|
5060
5286
|
}
|
|
5061
|
-
function
|
|
5287
|
+
function ii(t, n, o, i) {
|
|
5062
5288
|
const r = o === "online" ? "online" : o;
|
|
5063
5289
|
return t === "server" ? [
|
|
5064
5290
|
{
|
|
@@ -5162,8 +5388,8 @@ function oi(t, n, o, i) {
|
|
|
5162
5388
|
}
|
|
5163
5389
|
] : [];
|
|
5164
5390
|
}
|
|
5165
|
-
const A = "cubic-bezier(0.34, 1.56, 0.64, 1)",
|
|
5166
|
-
function
|
|
5391
|
+
const A = "cubic-bezier(0.34, 1.56, 0.64, 1)", ni = "cubic-bezier(0.16, 1, 0.3, 1)";
|
|
5392
|
+
function oi({ items: t, revealPhase: n }) {
|
|
5167
5393
|
return /* @__PURE__ */ e(
|
|
5168
5394
|
"div",
|
|
5169
5395
|
{
|
|
@@ -5190,7 +5416,7 @@ function ai({ items: t, revealPhase: n }) {
|
|
|
5190
5416
|
}
|
|
5191
5417
|
);
|
|
5192
5418
|
}
|
|
5193
|
-
function
|
|
5419
|
+
function ri({
|
|
5194
5420
|
type: t,
|
|
5195
5421
|
status: n,
|
|
5196
5422
|
context: o,
|
|
@@ -5199,12 +5425,12 @@ function li({
|
|
|
5199
5425
|
}) {
|
|
5200
5426
|
const a = w[n]?.color ?? w.online.color, s = "#ff8c00";
|
|
5201
5427
|
if (t === "server") {
|
|
5202
|
-
const l = o.cpuLoad ?? 50,
|
|
5428
|
+
const l = o.cpuLoad ?? 50, h = o.memLoad ?? 60, c = [
|
|
5203
5429
|
{
|
|
5204
5430
|
key: "cpu0",
|
|
5205
5431
|
delay: 0,
|
|
5206
5432
|
el: /* @__PURE__ */ e(
|
|
5207
|
-
|
|
5433
|
+
De,
|
|
5208
5434
|
{
|
|
5209
5435
|
color: a,
|
|
5210
5436
|
label: "CPU-0",
|
|
@@ -5218,7 +5444,7 @@ function li({
|
|
|
5218
5444
|
key: "cpu1",
|
|
5219
5445
|
delay: 1,
|
|
5220
5446
|
el: /* @__PURE__ */ e(
|
|
5221
|
-
|
|
5447
|
+
De,
|
|
5222
5448
|
{
|
|
5223
5449
|
color: a,
|
|
5224
5450
|
label: "CPU-1",
|
|
@@ -5232,12 +5458,12 @@ function li({
|
|
|
5232
5458
|
key: "heap0",
|
|
5233
5459
|
delay: 2,
|
|
5234
5460
|
el: /* @__PURE__ */ e(
|
|
5235
|
-
|
|
5461
|
+
We,
|
|
5236
5462
|
{
|
|
5237
5463
|
color: "#8855ee",
|
|
5238
5464
|
label: "HEAP-0",
|
|
5239
5465
|
status: i[2]?.status,
|
|
5240
|
-
usedPercent:
|
|
5466
|
+
usedPercent: h,
|
|
5241
5467
|
delay: "0.1s"
|
|
5242
5468
|
}
|
|
5243
5469
|
)
|
|
@@ -5246,12 +5472,12 @@ function li({
|
|
|
5246
5472
|
key: "heap1",
|
|
5247
5473
|
delay: 3,
|
|
5248
5474
|
el: /* @__PURE__ */ e(
|
|
5249
|
-
|
|
5475
|
+
We,
|
|
5250
5476
|
{
|
|
5251
5477
|
color: "#8855ee",
|
|
5252
5478
|
label: "HEAP-1",
|
|
5253
5479
|
status: i[3]?.status,
|
|
5254
|
-
usedPercent:
|
|
5480
|
+
usedPercent: h * 0.85,
|
|
5255
5481
|
delay: "0.3s"
|
|
5256
5482
|
}
|
|
5257
5483
|
)
|
|
@@ -5290,12 +5516,12 @@ function li({
|
|
|
5290
5516
|
{
|
|
5291
5517
|
key: "thread",
|
|
5292
5518
|
delay: 7,
|
|
5293
|
-
el: /* @__PURE__ */ e(
|
|
5519
|
+
el: /* @__PURE__ */ e(O, { color: a, label: "THREAD-POOL", status: i[7]?.status })
|
|
5294
5520
|
},
|
|
5295
5521
|
{
|
|
5296
5522
|
key: "net",
|
|
5297
5523
|
delay: 8,
|
|
5298
|
-
el: /* @__PURE__ */ e(
|
|
5524
|
+
el: /* @__PURE__ */ e(bt, { color: a, label: "NET", status: i[8]?.status })
|
|
5299
5525
|
}
|
|
5300
5526
|
];
|
|
5301
5527
|
return /* @__PURE__ */ e(
|
|
@@ -5309,15 +5535,15 @@ function li({
|
|
|
5309
5535
|
alignItems: "center",
|
|
5310
5536
|
padding: 24
|
|
5311
5537
|
},
|
|
5312
|
-
children: c.map(({ key: p, delay:
|
|
5538
|
+
children: c.map(({ key: p, delay: f, el: g }) => /* @__PURE__ */ e(
|
|
5313
5539
|
"div",
|
|
5314
5540
|
{
|
|
5315
5541
|
style: {
|
|
5316
|
-
opacity: r >= 0.2 +
|
|
5317
|
-
transform: `scale(${r >= 0.2 +
|
|
5318
|
-
transition: `opacity 0.4s ${A} ${
|
|
5542
|
+
opacity: r >= 0.2 + f * 0.08 ? 1 : 0,
|
|
5543
|
+
transform: `scale(${r >= 0.2 + f * 0.08 ? 1 : 0.6})`,
|
|
5544
|
+
transition: `opacity 0.4s ${A} ${f * 0.06}s, transform 0.45s ${A} ${f * 0.06}s`
|
|
5319
5545
|
},
|
|
5320
|
-
children:
|
|
5546
|
+
children: g
|
|
5321
5547
|
},
|
|
5322
5548
|
p
|
|
5323
5549
|
))
|
|
@@ -5325,7 +5551,7 @@ function li({
|
|
|
5325
5551
|
);
|
|
5326
5552
|
}
|
|
5327
5553
|
if (t === "dispatcher") {
|
|
5328
|
-
const l = Array.from({ length: 8 }, (
|
|
5554
|
+
const l = Array.from({ length: 8 }, (h, c) => {
|
|
5329
5555
|
const p = i[c];
|
|
5330
5556
|
return /* @__PURE__ */ e(
|
|
5331
5557
|
"div",
|
|
@@ -5361,7 +5587,7 @@ function li({
|
|
|
5361
5587
|
transform: `scale(${r >= 0.7 ? 1 : 0.6})`,
|
|
5362
5588
|
transition: `all 0.4s ${A} 0.3s`
|
|
5363
5589
|
},
|
|
5364
|
-
children: /* @__PURE__ */ e(
|
|
5590
|
+
children: /* @__PURE__ */ e(O, { color: a, label: "HTTP-WORKER", status: i[8]?.status })
|
|
5365
5591
|
}
|
|
5366
5592
|
),
|
|
5367
5593
|
/* @__PURE__ */ e(
|
|
@@ -5372,7 +5598,7 @@ function li({
|
|
|
5372
5598
|
transform: `scale(${r >= 0.8 ? 1 : 0.6})`,
|
|
5373
5599
|
transition: `all 0.4s ${A} 0.4s`
|
|
5374
5600
|
},
|
|
5375
|
-
children: /* @__PURE__ */ e(
|
|
5601
|
+
children: /* @__PURE__ */ e(O, { color: "#bb55ff", label: "HTTPS-WORKER", status: i[9]?.status })
|
|
5376
5602
|
}
|
|
5377
5603
|
)
|
|
5378
5604
|
] })
|
|
@@ -5413,7 +5639,7 @@ function li({
|
|
|
5413
5639
|
transform: `scale(${r >= 0.6 ? 1 : 0.6})`,
|
|
5414
5640
|
transition: `all 0.4s ${A} 0.25s`
|
|
5415
5641
|
},
|
|
5416
|
-
children: /* @__PURE__ */ e(
|
|
5642
|
+
children: /* @__PURE__ */ e(O, { color: "#bb55ff", label: "QUEUE-0", status: i[3]?.status })
|
|
5417
5643
|
}
|
|
5418
5644
|
),
|
|
5419
5645
|
[4, 5, 6].map((l) => /* @__PURE__ */ e(
|
|
@@ -5425,7 +5651,7 @@ function li({
|
|
|
5425
5651
|
transition: `all 0.4s ${A} ${0.35 + (l - 4) * 0.05}s`
|
|
5426
5652
|
},
|
|
5427
5653
|
children: /* @__PURE__ */ e(
|
|
5428
|
-
|
|
5654
|
+
O,
|
|
5429
5655
|
{
|
|
5430
5656
|
color: "#bb55ff",
|
|
5431
5657
|
label: `WORKER-${l - 3}`,
|
|
@@ -5452,25 +5678,25 @@ function li({
|
|
|
5452
5678
|
padding: 24
|
|
5453
5679
|
},
|
|
5454
5680
|
children: [
|
|
5455
|
-
[0, 1, 2].map((
|
|
5681
|
+
[0, 1, 2].map((h) => /* @__PURE__ */ e(
|
|
5456
5682
|
"div",
|
|
5457
5683
|
{
|
|
5458
5684
|
style: {
|
|
5459
|
-
opacity: r >= 0.2 +
|
|
5460
|
-
transform: `scale(${r >= 0.2 +
|
|
5461
|
-
transition: `all 0.45s ${A} ${
|
|
5685
|
+
opacity: r >= 0.2 + h * 0.12 ? 1 : 0,
|
|
5686
|
+
transform: `scale(${r >= 0.2 + h * 0.12 ? 1 : 0.5})`,
|
|
5687
|
+
transition: `all 0.45s ${A} ${h * 0.1}s`
|
|
5462
5688
|
},
|
|
5463
5689
|
children: /* @__PURE__ */ e(
|
|
5464
5690
|
Oe,
|
|
5465
5691
|
{
|
|
5466
5692
|
color: s,
|
|
5467
|
-
label: `PLATTER-${
|
|
5468
|
-
status: i[
|
|
5693
|
+
label: `PLATTER-${h}`,
|
|
5694
|
+
status: i[h]?.status,
|
|
5469
5695
|
capacityPercent: l
|
|
5470
5696
|
}
|
|
5471
5697
|
)
|
|
5472
5698
|
},
|
|
5473
|
-
|
|
5699
|
+
h
|
|
5474
5700
|
)),
|
|
5475
5701
|
/* @__PURE__ */ e(
|
|
5476
5702
|
"div",
|
|
@@ -5480,7 +5706,7 @@ function li({
|
|
|
5480
5706
|
transform: `scale(${r >= 0.6 ? 1 : 0.6})`,
|
|
5481
5707
|
transition: `all 0.4s ${A} 0.3s`
|
|
5482
5708
|
},
|
|
5483
|
-
children: /* @__PURE__ */ e(
|
|
5709
|
+
children: /* @__PURE__ */ e(O, { color: s, label: "CONN-POOL", status: i[3]?.status })
|
|
5484
5710
|
}
|
|
5485
5711
|
),
|
|
5486
5712
|
/* @__PURE__ */ e(
|
|
@@ -5491,7 +5717,7 @@ function li({
|
|
|
5491
5717
|
transform: `scale(${r >= 0.75 ? 1 : 0.6})`,
|
|
5492
5718
|
transition: `all 0.4s ${A} 0.4s`
|
|
5493
5719
|
},
|
|
5494
|
-
children: /* @__PURE__ */ e(
|
|
5720
|
+
children: /* @__PURE__ */ e(O, { color: "#00ff88", label: "QUERY-CACHE", status: i[4]?.status })
|
|
5495
5721
|
}
|
|
5496
5722
|
)
|
|
5497
5723
|
]
|
|
@@ -5500,7 +5726,7 @@ function li({
|
|
|
5500
5726
|
}
|
|
5501
5727
|
return null;
|
|
5502
5728
|
}
|
|
5503
|
-
function
|
|
5729
|
+
function Pi({
|
|
5504
5730
|
type: t,
|
|
5505
5731
|
name: n,
|
|
5506
5732
|
status: o,
|
|
@@ -5510,7 +5736,7 @@ function Ei({
|
|
|
5510
5736
|
subComponents: s,
|
|
5511
5737
|
graphSeries: l
|
|
5512
5738
|
}) {
|
|
5513
|
-
const
|
|
5739
|
+
const h = ii(t, n, o, a), c = w[o]?.color ?? w.online.color, p = r >= 0.1 ? 1 : r * 10, f = r >= 0.2 ? "-50%" : "0%", g = r >= 0.2 ? "50%" : "0%", u = r >= 0.25 ? Math.min(1, (r - 0.25) * 1.5) : 0;
|
|
5514
5740
|
return /* @__PURE__ */ d(
|
|
5515
5741
|
"div",
|
|
5516
5742
|
{
|
|
@@ -5522,7 +5748,7 @@ function Ei({
|
|
|
5522
5748
|
flexDirection: "row",
|
|
5523
5749
|
pointerEvents: "auto"
|
|
5524
5750
|
},
|
|
5525
|
-
onClick: (
|
|
5751
|
+
onClick: (y) => y.stopPropagation(),
|
|
5526
5752
|
children: [
|
|
5527
5753
|
/* @__PURE__ */ e(
|
|
5528
5754
|
"div",
|
|
@@ -5534,13 +5760,13 @@ function Ei({
|
|
|
5534
5760
|
backdropFilter: "blur(10px)",
|
|
5535
5761
|
WebkitBackdropFilter: "blur(10px)",
|
|
5536
5762
|
opacity: p,
|
|
5537
|
-
transition: `opacity 0.4s ${
|
|
5763
|
+
transition: `opacity 0.4s ${ni}`
|
|
5538
5764
|
},
|
|
5539
5765
|
onClick: i
|
|
5540
5766
|
}
|
|
5541
5767
|
),
|
|
5542
5768
|
/* @__PURE__ */ e(
|
|
5543
|
-
|
|
5769
|
+
ei,
|
|
5544
5770
|
{
|
|
5545
5771
|
type: t,
|
|
5546
5772
|
name: n,
|
|
@@ -5583,7 +5809,7 @@ function Ei({
|
|
|
5583
5809
|
background: "linear-gradient(90deg, rgba(2, 8, 20, 0.98) 0%, rgba(2, 12, 28, 0.95) 100%)",
|
|
5584
5810
|
borderRight: `2px solid ${c}44`,
|
|
5585
5811
|
boxShadow: "4px 0 32px rgba(0,0,0,0.6)",
|
|
5586
|
-
transform: `translateX(${
|
|
5812
|
+
transform: `translateX(${f})`,
|
|
5587
5813
|
transition: `transform 0.7s ${A}`
|
|
5588
5814
|
}
|
|
5589
5815
|
}
|
|
@@ -5598,7 +5824,7 @@ function Ei({
|
|
|
5598
5824
|
background: "linear-gradient(90deg, rgba(2, 12, 28, 0.95) 0%, rgba(2, 8, 20, 0.98) 100%)",
|
|
5599
5825
|
borderLeft: `2px solid ${c}44`,
|
|
5600
5826
|
boxShadow: "-4px 0 32px rgba(0,0,0,0.6)",
|
|
5601
|
-
transform: `translateX(${
|
|
5827
|
+
transform: `translateX(${g})`,
|
|
5602
5828
|
transition: `transform 0.7s ${A}`
|
|
5603
5829
|
}
|
|
5604
5830
|
}
|
|
@@ -5710,14 +5936,14 @@ function Ei({
|
|
|
5710
5936
|
}
|
|
5711
5937
|
}
|
|
5712
5938
|
),
|
|
5713
|
-
/* @__PURE__ */ e("div", { style: { flex: 1, padding: "8px 0 24px" }, children: s ? /* @__PURE__ */ e(
|
|
5714
|
-
|
|
5939
|
+
/* @__PURE__ */ e("div", { style: { flex: 1, padding: "8px 0 24px" }, children: s ? /* @__PURE__ */ e(oi, { items: s, revealPhase: u }) : /* @__PURE__ */ e(
|
|
5940
|
+
ri,
|
|
5715
5941
|
{
|
|
5716
5942
|
type: t,
|
|
5717
5943
|
name: n,
|
|
5718
5944
|
status: o,
|
|
5719
5945
|
context: a,
|
|
5720
|
-
internal:
|
|
5946
|
+
internal: h,
|
|
5721
5947
|
revealPhase: u
|
|
5722
5948
|
}
|
|
5723
5949
|
) })
|
|
@@ -5731,102 +5957,7 @@ function Ei({
|
|
|
5731
5957
|
}
|
|
5732
5958
|
);
|
|
5733
5959
|
}
|
|
5734
|
-
|
|
5735
|
-
function di(t) {
|
|
5736
|
-
if (t === 1) return [{ ex: De, compactX: 0 }];
|
|
5737
|
-
const n = Math.min(260, 520 / t), o = n * (t - 1), i = De - o / 2;
|
|
5738
|
-
return Array.from({ length: t }, (r, a) => {
|
|
5739
|
-
const s = i + a * n, l = (s - De) / o * si * 2;
|
|
5740
|
-
return { ex: s, compactX: l };
|
|
5741
|
-
});
|
|
5742
|
-
}
|
|
5743
|
-
function ci(t, n) {
|
|
5744
|
-
switch (t.type) {
|
|
5745
|
-
case "server":
|
|
5746
|
-
return /* @__PURE__ */ e(
|
|
5747
|
-
J,
|
|
5748
|
-
{
|
|
5749
|
-
status: n,
|
|
5750
|
-
cpuLoad: t.context?.cpuLoad,
|
|
5751
|
-
memLoad: t.context?.memLoad,
|
|
5752
|
-
brandLabel: t.brandLabel
|
|
5753
|
-
}
|
|
5754
|
-
);
|
|
5755
|
-
case "database":
|
|
5756
|
-
return /* @__PURE__ */ e(Ee, { status: n, capacity: t.context?.capacity });
|
|
5757
|
-
case "dispatcher":
|
|
5758
|
-
return /* @__PURE__ */ e(nt, { status: n, traffic: t.context?.traffic });
|
|
5759
|
-
case "messageServer":
|
|
5760
|
-
return /* @__PURE__ */ e(bt, { status: n, queueDepth: t.context?.queueDepth });
|
|
5761
|
-
default:
|
|
5762
|
-
return /* @__PURE__ */ e(J, { status: n, brandLabel: t.brandLabel });
|
|
5763
|
-
}
|
|
5764
|
-
}
|
|
5765
|
-
const pi = {
|
|
5766
|
-
server: "APP SERVER",
|
|
5767
|
-
database: "DATABASE",
|
|
5768
|
-
dispatcher: "WEB DISPATCHER",
|
|
5769
|
-
messageServer: "MSG SERVER"
|
|
5770
|
-
};
|
|
5771
|
-
function fi(t, n) {
|
|
5772
|
-
return t < n / 2 ? { offsetX: -160, align: "left" } : { offsetX: 160, align: "right" };
|
|
5773
|
-
}
|
|
5774
|
-
function Ai({ name: t, status: n = "online", components: o }) {
|
|
5775
|
-
const i = Xe(() => di(o.length), [o.length]), r = Xe(
|
|
5776
|
-
() => i.map(({ ex: a }) => ({
|
|
5777
|
-
from: [De, 200],
|
|
5778
|
-
to: [a, _e],
|
|
5779
|
-
visibleAtPhase: 3
|
|
5780
|
-
})),
|
|
5781
|
-
[i]
|
|
5782
|
-
);
|
|
5783
|
-
return /* @__PURE__ */ d(tt, { name: t, status: n, connections: r, children: [
|
|
5784
|
-
o.map((a, s) => {
|
|
5785
|
-
const { ex: l, compactX: f } = i[s], c = a.status ?? "online";
|
|
5786
|
-
return /* @__PURE__ */ e(
|
|
5787
|
-
C,
|
|
5788
|
-
{
|
|
5789
|
-
ex: l,
|
|
5790
|
-
ey: _e,
|
|
5791
|
-
compactOffset: { x: f, y: -20 },
|
|
5792
|
-
zIndex: 8 - s,
|
|
5793
|
-
label: a.name,
|
|
5794
|
-
subLabel: a.subLabel ?? pi[a.type] ?? a.type.toUpperCase(),
|
|
5795
|
-
componentInfo: {
|
|
5796
|
-
type: a.type,
|
|
5797
|
-
name: a.name,
|
|
5798
|
-
status: c,
|
|
5799
|
-
context: a.context,
|
|
5800
|
-
dialogMetrics: a.dialogMetrics
|
|
5801
|
-
},
|
|
5802
|
-
children: ci(a, c)
|
|
5803
|
-
},
|
|
5804
|
-
a.name
|
|
5805
|
-
);
|
|
5806
|
-
}),
|
|
5807
|
-
o.map((a, s) => {
|
|
5808
|
-
if (!a.alert) return null;
|
|
5809
|
-
const { ex: l } = i[s], f = a.status ?? "online", { offsetX: c, align: p } = fi(s, o.length);
|
|
5810
|
-
return /* @__PURE__ */ e(
|
|
5811
|
-
O,
|
|
5812
|
-
{
|
|
5813
|
-
ex: l,
|
|
5814
|
-
ey: _e,
|
|
5815
|
-
status: f,
|
|
5816
|
-
title: a.name,
|
|
5817
|
-
msg: a.alert.msg,
|
|
5818
|
-
internalRef: a.alert.internalRef,
|
|
5819
|
-
offsetX: c,
|
|
5820
|
-
offsetY: -60,
|
|
5821
|
-
align: p,
|
|
5822
|
-
isVisible: !0
|
|
5823
|
-
},
|
|
5824
|
-
`alert-${a.name}`
|
|
5825
|
-
);
|
|
5826
|
-
})
|
|
5827
|
-
] });
|
|
5828
|
-
}
|
|
5829
|
-
function Ti({
|
|
5960
|
+
function Ci({
|
|
5830
5961
|
brandName: t = "BUSAUD AIOps",
|
|
5831
5962
|
brandTag: n = "3D MONITOR",
|
|
5832
5963
|
services: o = [],
|
|
@@ -5836,28 +5967,28 @@ function Ti({
|
|
|
5836
5967
|
fontFamily: s,
|
|
5837
5968
|
children: l
|
|
5838
5969
|
}) {
|
|
5839
|
-
const [
|
|
5840
|
-
u === "compact" && ($(
|
|
5841
|
-
x(6),
|
|
5970
|
+
const [h] = I(20), [c] = I(!1), [p] = I(!0), [f] = I(0.45), [g] = I(3.3), [u, y] = I("compact"), [m, x] = I(0), [v, $] = I(null), [b, R] = I(null), [D, C] = I(0), T = (P) => {
|
|
5971
|
+
u === "compact" && ($(P), y("expanding"), x(0), setTimeout(() => x(1), 50), setTimeout(() => x(2), 800), setTimeout(() => x(3), 1200), setTimeout(() => x(4), 1600), setTimeout(() => x(5), 2e3), setTimeout(() => {
|
|
5972
|
+
x(6), y("expanded");
|
|
5842
5973
|
}, 2400));
|
|
5843
|
-
},
|
|
5844
|
-
b ? (
|
|
5845
|
-
|
|
5974
|
+
}, W = () => {
|
|
5975
|
+
b ? (R(null), C(0)) : u === "expanded" && (y("collapsing"), x(0), $(null), setTimeout(() => {
|
|
5976
|
+
y((P) => P === "collapsing" ? "compact" : P);
|
|
5846
5977
|
}, 1e3));
|
|
5847
|
-
},
|
|
5848
|
-
|
|
5978
|
+
}, X = (P) => {
|
|
5979
|
+
R(P), C(0);
|
|
5849
5980
|
};
|
|
5850
|
-
|
|
5981
|
+
J.useEffect(() => {
|
|
5851
5982
|
if (!b) return;
|
|
5852
|
-
const
|
|
5853
|
-
const
|
|
5854
|
-
|
|
5855
|
-
}, se = requestAnimationFrame(
|
|
5983
|
+
const P = performance.now(), Re = 1200, oe = () => {
|
|
5984
|
+
const Ne = performance.now() - P, Ae = Math.min(1, Ne / Re);
|
|
5985
|
+
C(Ae), Ae < 1 && requestAnimationFrame(oe);
|
|
5986
|
+
}, se = requestAnimationFrame(oe);
|
|
5856
5987
|
return () => cancelAnimationFrame(se);
|
|
5857
5988
|
}, [b]);
|
|
5858
5989
|
const j = () => {
|
|
5859
|
-
|
|
5860
|
-
},
|
|
5990
|
+
R(null), C(0);
|
|
5991
|
+
}, N = o.find((P) => P.name === v), te = N?.status ?? "online", ie = N?.dbSync ?? !0, z = N?.metrics, F = N?.alerts, ne = 330, $e = 340, ke = b ? 1.15 : 1, V = b ? -(b.ex - ne) * 0.06 : 0, M = b ? -(b.ey - $e) * 0.06 : 0;
|
|
5861
5992
|
return /* @__PURE__ */ d("div", { className: "app", style: s ? { fontFamily: s } : void 0, children: [
|
|
5862
5993
|
/* @__PURE__ */ e(
|
|
5863
5994
|
"div",
|
|
@@ -5872,7 +6003,7 @@ function Ti({
|
|
|
5872
6003
|
backgroundPosition: "center center",
|
|
5873
6004
|
backgroundRepeat: "no-repeat",
|
|
5874
6005
|
transition: "transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1)",
|
|
5875
|
-
transform: `translate(${
|
|
6006
|
+
transform: `translate(${V}px, ${M}px) scale(${ke})`,
|
|
5876
6007
|
willChange: "transform"
|
|
5877
6008
|
}
|
|
5878
6009
|
}
|
|
@@ -5891,30 +6022,30 @@ function Ti({
|
|
|
5891
6022
|
style: {
|
|
5892
6023
|
cursor: u === "expanded" ? "zoom-out" : "default"
|
|
5893
6024
|
},
|
|
5894
|
-
onClick:
|
|
6025
|
+
onClick: W,
|
|
5895
6026
|
children: /* @__PURE__ */ e(
|
|
5896
|
-
|
|
6027
|
+
zt,
|
|
5897
6028
|
{
|
|
5898
6029
|
viewState: u,
|
|
5899
6030
|
animPhase: m,
|
|
5900
6031
|
selectedSystem: v,
|
|
5901
6032
|
selectedComponent: b,
|
|
5902
|
-
drillAnimPhase:
|
|
5903
|
-
rotateY:
|
|
6033
|
+
drillAnimPhase: D,
|
|
6034
|
+
rotateY: h,
|
|
5904
6035
|
autoRotateComponents: c,
|
|
5905
|
-
componentScale:
|
|
5906
|
-
drillZoom:
|
|
6036
|
+
componentScale: f,
|
|
6037
|
+
drillZoom: g,
|
|
5907
6038
|
autoRotateCarousel: p,
|
|
5908
6039
|
carouselSpeed: a,
|
|
5909
6040
|
logoUrl: r,
|
|
5910
|
-
onSelectSystem:
|
|
5911
|
-
onBackgroundClick:
|
|
5912
|
-
onComponentClick:
|
|
6041
|
+
onSelectSystem: T,
|
|
6042
|
+
onBackgroundClick: W,
|
|
6043
|
+
onComponentClick: X,
|
|
5913
6044
|
onCloseDrill: j,
|
|
5914
|
-
selectedSystemStatus:
|
|
5915
|
-
selectedSystemDbSync:
|
|
5916
|
-
selectedSystemMetrics:
|
|
5917
|
-
selectedSystemAlerts:
|
|
6045
|
+
selectedSystemStatus: te,
|
|
6046
|
+
selectedSystemDbSync: ie,
|
|
6047
|
+
selectedSystemMetrics: z,
|
|
6048
|
+
selectedSystemAlerts: F,
|
|
5918
6049
|
children: l
|
|
5919
6050
|
}
|
|
5920
6051
|
)
|
|
@@ -5928,21 +6059,21 @@ function S(t, n, o = 24) {
|
|
|
5928
6059
|
return Math.min(100, Math.max(0, t + Math.sin(a * Math.PI * 2) * n + (Math.random() - 0.5) * 10));
|
|
5929
6060
|
});
|
|
5930
6061
|
}
|
|
5931
|
-
function
|
|
6062
|
+
function gt(t) {
|
|
5932
6063
|
return t === "critical" || t === "offline" ? "#ff2255" : t === "warning" ? "#ff8c00" : "#00e5ff";
|
|
5933
6064
|
}
|
|
5934
6065
|
function me(t, n, o) {
|
|
5935
|
-
const i = t === "online" ? "online" : t, r =
|
|
6066
|
+
const i = t === "online" ? "online" : t, r = gt(t), a = o?.cpuLoad ?? 50, s = o?.memLoad ?? 60, l = i === "critical" || i === "warning" && a > 80 ? i : "online", h = i === "warning" && s > 85 ? "warning" : i === "critical" ? "critical" : "online", c = i === "critical" && n === "APP-03" ? "critical" : "online", p = i === "offline" ? "offline" : "online";
|
|
5936
6067
|
return [
|
|
5937
|
-
{ id: "cpu-0", label: "CPU-0", status: l, detail: i === "critical" ? "Core overload" : i === "warning" ? "Load spike" : void 0, element: /* @__PURE__ */ e(
|
|
5938
|
-
{ id: "cpu-1", label: "CPU-1", status: "online", element: /* @__PURE__ */ e(
|
|
5939
|
-
{ id: "heap-0", label: "HEAP-0", status:
|
|
5940
|
-
{ id: "heap-1", label: "HEAP-1", status: "online", element: /* @__PURE__ */ e(
|
|
6068
|
+
{ id: "cpu-0", label: "CPU-0", status: l, detail: i === "critical" ? "Core overload" : i === "warning" ? "Load spike" : void 0, element: /* @__PURE__ */ e(De, { color: r, label: "CPU-0", status: l, load: a }) },
|
|
6069
|
+
{ id: "cpu-1", label: "CPU-1", status: "online", element: /* @__PURE__ */ e(De, { color: r, label: "CPU-1", status: "online", load: a * 0.7 }) },
|
|
6070
|
+
{ id: "heap-0", label: "HEAP-0", status: h, detail: h === "warning" ? "Memory heap usage" : h === "critical" ? "OOM risk" : void 0, element: /* @__PURE__ */ e(We, { color: "#8855ee", label: "HEAP-0", status: h, usedPercent: s }) },
|
|
6071
|
+
{ id: "heap-1", label: "HEAP-1", status: "online", element: /* @__PURE__ */ e(We, { color: "#8855ee", label: "HEAP-1", status: "online", usedPercent: s * 0.85 }) },
|
|
5941
6072
|
{ id: "drive-1", label: "DRIVE-1", status: "online", element: /* @__PURE__ */ e(ye, { color: r, label: "DRIVE-1", status: "online", activity: !0 }) },
|
|
5942
6073
|
{ id: "drive-2", label: "DRIVE-2", status: "online", element: /* @__PURE__ */ e(ye, { color: r, label: "DRIVE-2", status: "online", activity: a > 30 }) },
|
|
5943
6074
|
{ id: "drive-3", label: "DRIVE-3", status: "online", element: /* @__PURE__ */ e(ye, { color: r, label: "DRIVE-3", status: "online", activity: a > 50 }) },
|
|
5944
|
-
{ id: "thread-pool", label: "THREAD-POOL", status: c, detail: c === "critical" ? "Thread exhaustion" : void 0, element: /* @__PURE__ */ e(
|
|
5945
|
-
{ id: "network", label: "NET", status: p, element: /* @__PURE__ */ e(
|
|
6075
|
+
{ id: "thread-pool", label: "THREAD-POOL", status: c, detail: c === "critical" ? "Thread exhaustion" : void 0, element: /* @__PURE__ */ e(O, { color: r, label: "THREAD-POOL", status: c }) },
|
|
6076
|
+
{ id: "network", label: "NET", status: p, element: /* @__PURE__ */ e(bt, { color: r, label: "NET", status: p }) }
|
|
5946
6077
|
];
|
|
5947
6078
|
}
|
|
5948
6079
|
function xe(t) {
|
|
@@ -5958,8 +6089,8 @@ function xe(t) {
|
|
|
5958
6089
|
{ id: "thread", label: "THREAD-POOL", unit: "%", color: "#22aaff", data: S(55, 20) }
|
|
5959
6090
|
];
|
|
5960
6091
|
}
|
|
5961
|
-
function
|
|
5962
|
-
const i = t === "online" ? "online" : t, r =
|
|
6092
|
+
function yt(t, n, o) {
|
|
6093
|
+
const i = t === "online" ? "online" : t, r = gt(t), a = i === "critical" || i === "offline" ? i : "online", s = i === "warning" ? "warning" : "online", l = i === "critical" ? "critical" : "online";
|
|
5963
6094
|
return [
|
|
5964
6095
|
{ id: "port-1", label: "PORT-1", status: "online", element: /* @__PURE__ */ e(B, { color: r, label: "PORT-1", status: "online" }) },
|
|
5965
6096
|
{ id: "port-2", label: "PORT-2", status: "online", element: /* @__PURE__ */ e(B, { color: r, label: "PORT-2", status: "online" }) },
|
|
@@ -5969,11 +6100,11 @@ function vt(t, n, o) {
|
|
|
5969
6100
|
{ id: "port-6", label: "PORT-6", status: "online", element: /* @__PURE__ */ e(B, { color: r, label: "PORT-6", status: "online" }) },
|
|
5970
6101
|
{ id: "port-7", label: "PORT-7", status: "online", element: /* @__PURE__ */ e(B, { color: r, label: "PORT-7", status: "online" }) },
|
|
5971
6102
|
{ id: "port-8", label: "PORT-8", status: "online", element: /* @__PURE__ */ e(B, { color: r, label: "PORT-8", status: "online" }) },
|
|
5972
|
-
{ id: "http-worker", label: "HTTP-WORKER", status: l, detail: l === "critical" ? "Worker timeout" : void 0, element: /* @__PURE__ */ e(
|
|
5973
|
-
{ id: "https-worker", label: "HTTPS-WORKER", status: "online", element: /* @__PURE__ */ e(
|
|
6103
|
+
{ id: "http-worker", label: "HTTP-WORKER", status: l, detail: l === "critical" ? "Worker timeout" : void 0, element: /* @__PURE__ */ e(O, { color: r, label: "HTTP-WORKER", status: l }) },
|
|
6104
|
+
{ id: "https-worker", label: "HTTPS-WORKER", status: "online", element: /* @__PURE__ */ e(O, { color: "#bb55ff", label: "HTTPS-WORKER", status: "online" }) }
|
|
5974
6105
|
];
|
|
5975
6106
|
}
|
|
5976
|
-
function
|
|
6107
|
+
function mt(t) {
|
|
5977
6108
|
const n = t?.traffic ?? 50;
|
|
5978
6109
|
return [
|
|
5979
6110
|
{ id: "traffic", label: "TRAFFIC", unit: "%", color: "#00e5ff", data: S(n, 20) },
|
|
@@ -5983,19 +6114,19 @@ function wt(t) {
|
|
|
5983
6114
|
{ id: "worker", label: "WORKER", unit: "%", color: "#bb55ff", data: S(n * 0.9, 15) }
|
|
5984
6115
|
];
|
|
5985
6116
|
}
|
|
5986
|
-
function
|
|
6117
|
+
function ai(t, n, o) {
|
|
5987
6118
|
const i = t === "online" ? "online" : t, r = i === "critical" ? "critical" : "online", a = i === "critical" || i === "offline" ? i : i === "warning" ? "warning" : "online", s = i === "critical" ? "critical" : "online";
|
|
5988
6119
|
return [
|
|
5989
6120
|
{ id: "inst-0", label: "INST-0", status: "online", element: /* @__PURE__ */ e(B, { color: "#bb55ff", label: "INST-0", status: "online" }) },
|
|
5990
6121
|
{ id: "inst-1", label: "INST-1", status: "online", element: /* @__PURE__ */ e(B, { color: "#bb55ff", label: "INST-1", status: "online" }) },
|
|
5991
6122
|
{ id: "inst-2", label: "INST-2", status: r, detail: r === "critical" ? "Instance unreachable" : void 0, element: /* @__PURE__ */ e(B, { color: "#bb55ff", label: "INST-2", status: r }) },
|
|
5992
|
-
{ id: "queue-0", label: "QUEUE-0", status: a, detail: i === "critical" ? "Queue full" : i === "offline" ? "Unreachable" : i === "warning" ? "Queue depth warning" : void 0, element: /* @__PURE__ */ e(
|
|
5993
|
-
{ id: "worker-1", label: "WORKER-1", status: "online", element: /* @__PURE__ */ e(
|
|
5994
|
-
{ id: "worker-2", label: "WORKER-2", status: "online", element: /* @__PURE__ */ e(
|
|
5995
|
-
{ id: "worker-3", label: "WORKER-3", status: s, detail: s === "critical" ? "Worker timeout" : void 0, element: /* @__PURE__ */ e(
|
|
6123
|
+
{ id: "queue-0", label: "QUEUE-0", status: a, detail: i === "critical" ? "Queue full" : i === "offline" ? "Unreachable" : i === "warning" ? "Queue depth warning" : void 0, element: /* @__PURE__ */ e(O, { color: "#bb55ff", label: "QUEUE-0", status: a }) },
|
|
6124
|
+
{ id: "worker-1", label: "WORKER-1", status: "online", element: /* @__PURE__ */ e(O, { color: "#bb55ff", label: "WORKER-1", status: "online" }) },
|
|
6125
|
+
{ id: "worker-2", label: "WORKER-2", status: "online", element: /* @__PURE__ */ e(O, { color: "#bb55ff", label: "WORKER-2", status: "online" }) },
|
|
6126
|
+
{ id: "worker-3", label: "WORKER-3", status: s, detail: s === "critical" ? "Worker timeout" : void 0, element: /* @__PURE__ */ e(O, { color: "#bb55ff", label: "WORKER-3", status: s }) }
|
|
5996
6127
|
];
|
|
5997
6128
|
}
|
|
5998
|
-
function
|
|
6129
|
+
function li(t) {
|
|
5999
6130
|
const n = t?.queueDepth ?? 50;
|
|
6000
6131
|
return [
|
|
6001
6132
|
{ id: "traffic", label: "TRAFFIC", unit: "%", color: "#00e5ff", data: S(n, 20) },
|
|
@@ -6005,17 +6136,17 @@ function ui(t) {
|
|
|
6005
6136
|
{ id: "worker", label: "WORKER", unit: "%", color: "#bb55ff", data: S(n * 0.9, 15) }
|
|
6006
6137
|
];
|
|
6007
6138
|
}
|
|
6008
|
-
function
|
|
6009
|
-
const i = t === "online" ? "online" : t, r = "#ff8c00", a = o?.capacity ?? 72, s = i === "critical" || i === "offline" ? i : i === "warning" ? "warning" : "online", l = i === "warning" && n === "DB-STB" ? "warning" : "online",
|
|
6139
|
+
function ze(t, n, o) {
|
|
6140
|
+
const i = t === "online" ? "online" : t, r = "#ff8c00", a = o?.capacity ?? 72, s = i === "critical" || i === "offline" ? i : i === "warning" ? "warning" : "online", l = i === "warning" && n === "DB-STB" ? "warning" : "online", h = i === "critical" ? "critical" : "online", c = i === "warning" ? "warning" : "online";
|
|
6010
6141
|
return [
|
|
6011
6142
|
{ id: "platter-0", label: "PLATTER-0", status: "online", element: /* @__PURE__ */ e(Oe, { color: r, label: "PLATTER-0", status: "online", capacityPercent: a }) },
|
|
6012
6143
|
{ id: "platter-1", label: "PLATTER-1", status: s, detail: i === "critical" ? "I/O failure" : i === "offline" ? "Connection lost" : i === "warning" ? "Slow queries" : void 0, element: /* @__PURE__ */ e(Oe, { color: r, label: "PLATTER-1", status: s, capacityPercent: a }) },
|
|
6013
6144
|
{ id: "platter-2", label: "PLATTER-2", status: l, detail: l === "warning" ? "Replication lag" : void 0, element: /* @__PURE__ */ e(Oe, { color: r, label: "PLATTER-2", status: l, capacityPercent: a }) },
|
|
6014
|
-
{ id: "conn-pool", label: "CONN-POOL", status:
|
|
6015
|
-
{ id: "query-cache", label: "QUERY-CACHE", status: c, detail: c === "warning" ? "Cache miss rate" : void 0, element: /* @__PURE__ */ e(
|
|
6145
|
+
{ id: "conn-pool", label: "CONN-POOL", status: h, detail: h === "critical" ? "Pool exhausted" : void 0, element: /* @__PURE__ */ e(O, { color: r, label: "CONN-POOL", status: h }) },
|
|
6146
|
+
{ id: "query-cache", label: "QUERY-CACHE", status: c, detail: c === "warning" ? "Cache miss rate" : void 0, element: /* @__PURE__ */ e(O, { color: "#00ff88", label: "QUERY-CACHE", status: c }) }
|
|
6016
6147
|
];
|
|
6017
6148
|
}
|
|
6018
|
-
function
|
|
6149
|
+
function Me(t) {
|
|
6019
6150
|
const n = t?.capacity ?? 70;
|
|
6020
6151
|
return [
|
|
6021
6152
|
{ id: "platter0", label: "PLATTER-0 I/O", unit: "%", color: "#ff8c00", data: S(40, 20) },
|
|
@@ -6025,7 +6156,7 @@ function Ne(t) {
|
|
|
6025
6156
|
{ id: "cache", label: "QUERY-CACHE", unit: "%", color: "#00ff88", data: S(75, 12) }
|
|
6026
6157
|
];
|
|
6027
6158
|
}
|
|
6028
|
-
function
|
|
6159
|
+
function tt(t) {
|
|
6029
6160
|
const n = [
|
|
6030
6161
|
t.wdStatus,
|
|
6031
6162
|
t.msStatus,
|
|
@@ -6037,8 +6168,8 @@ function ot(t) {
|
|
|
6037
6168
|
];
|
|
6038
6169
|
return n.includes("critical") ? "critical" : n.includes("warning") ? "warning" : n.includes("offline") ? "offline" : "online";
|
|
6039
6170
|
}
|
|
6040
|
-
function
|
|
6041
|
-
const n =
|
|
6171
|
+
function Ei(t) {
|
|
6172
|
+
const n = tt(t), o = n === "critical" || n === "offline", i = n === "warning";
|
|
6042
6173
|
return [
|
|
6043
6174
|
{
|
|
6044
6175
|
label: "Uptime",
|
|
@@ -6059,8 +6190,8 @@ function Li(t) {
|
|
|
6059
6190
|
}
|
|
6060
6191
|
];
|
|
6061
6192
|
}
|
|
6062
|
-
function
|
|
6063
|
-
const n =
|
|
6193
|
+
function Ti(t) {
|
|
6194
|
+
const n = tt(t), o = n === "critical" || n === "offline", i = n === "warning";
|
|
6064
6195
|
return [
|
|
6065
6196
|
...t.dbSync ? [] : [{ level: "warning", message: "DB Replication Lag Detected" }],
|
|
6066
6197
|
...o ? [{ level: "critical", message: "Critical Component Failure" }] : [],
|
|
@@ -6068,7 +6199,7 @@ function Ii(t) {
|
|
|
6068
6199
|
...!o && !i && t.dbSync ? [{ level: "info", message: "All Systems Nominal" }] : []
|
|
6069
6200
|
];
|
|
6070
6201
|
}
|
|
6071
|
-
const
|
|
6202
|
+
const si = [
|
|
6072
6203
|
{ from: [330, 120], to: [220, 260], visibleAtPhase: 3 },
|
|
6073
6204
|
{ from: [330, 120], to: [440, 260], visibleAtPhase: 3 },
|
|
6074
6205
|
{ from: [220, 260], to: [165, 390], visibleAtPhase: 4 },
|
|
@@ -6081,11 +6212,11 @@ const bi = [
|
|
|
6081
6212
|
{ from: [330, 390], to: [200, 520], visibleAtPhase: 5, color: "#ff8c00" },
|
|
6082
6213
|
{ from: [495, 390], to: [200, 520], visibleAtPhase: 5, color: "#ff8c00" }
|
|
6083
6214
|
];
|
|
6084
|
-
function
|
|
6085
|
-
const n =
|
|
6086
|
-
return /* @__PURE__ */ d(
|
|
6215
|
+
function di({ config: t }) {
|
|
6216
|
+
const n = J.useContext(le), o = n?.rotateY ?? 20, i = n?.autoRotateComponents ?? !0, { wdStatus: r, msStatus: a, srv1Status: s, srv2Status: l, srv3Status: h, pdbStatus: c, sdbStatus: p, dbSync: f } = t;
|
|
6217
|
+
return /* @__PURE__ */ d(ve, { children: [
|
|
6087
6218
|
/* @__PURE__ */ e(
|
|
6088
|
-
|
|
6219
|
+
k,
|
|
6089
6220
|
{
|
|
6090
6221
|
ex: 330,
|
|
6091
6222
|
ey: 120,
|
|
@@ -6093,11 +6224,11 @@ function gi({ config: t }) {
|
|
|
6093
6224
|
zIndex: 10,
|
|
6094
6225
|
visibleAtPhase: 2,
|
|
6095
6226
|
color: "#00e5ff",
|
|
6096
|
-
children: /* @__PURE__ */ e(
|
|
6227
|
+
children: /* @__PURE__ */ e(Je, { status: "online", scale: 1.5 })
|
|
6097
6228
|
}
|
|
6098
6229
|
),
|
|
6099
6230
|
/* @__PURE__ */ e(
|
|
6100
|
-
|
|
6231
|
+
k,
|
|
6101
6232
|
{
|
|
6102
6233
|
ex: 220,
|
|
6103
6234
|
ey: 260,
|
|
@@ -6112,11 +6243,11 @@ function gi({ config: t }) {
|
|
|
6112
6243
|
name: "WEB-DISP",
|
|
6113
6244
|
status: r,
|
|
6114
6245
|
context: { traffic: 78 },
|
|
6115
|
-
subComponents:
|
|
6116
|
-
graphSeries:
|
|
6246
|
+
subComponents: yt(r),
|
|
6247
|
+
graphSeries: mt({ traffic: 78 })
|
|
6117
6248
|
},
|
|
6118
6249
|
children: /* @__PURE__ */ e(
|
|
6119
|
-
|
|
6250
|
+
et,
|
|
6120
6251
|
{
|
|
6121
6252
|
rotateY: o,
|
|
6122
6253
|
autoRotate: i,
|
|
@@ -6130,7 +6261,7 @@ function gi({ config: t }) {
|
|
|
6130
6261
|
}
|
|
6131
6262
|
),
|
|
6132
6263
|
/* @__PURE__ */ e(
|
|
6133
|
-
|
|
6264
|
+
k,
|
|
6134
6265
|
{
|
|
6135
6266
|
ex: 440,
|
|
6136
6267
|
ey: 260,
|
|
@@ -6145,11 +6276,11 @@ function gi({ config: t }) {
|
|
|
6145
6276
|
name: "MSG-SRV",
|
|
6146
6277
|
status: a,
|
|
6147
6278
|
context: { queueDepth: 45 },
|
|
6148
|
-
subComponents:
|
|
6149
|
-
graphSeries:
|
|
6279
|
+
subComponents: ai(a),
|
|
6280
|
+
graphSeries: li({ queueDepth: 45 })
|
|
6150
6281
|
},
|
|
6151
6282
|
children: /* @__PURE__ */ e(
|
|
6152
|
-
|
|
6283
|
+
ht,
|
|
6153
6284
|
{
|
|
6154
6285
|
rotateY: -o,
|
|
6155
6286
|
autoRotate: i,
|
|
@@ -6164,7 +6295,7 @@ function gi({ config: t }) {
|
|
|
6164
6295
|
}
|
|
6165
6296
|
),
|
|
6166
6297
|
/* @__PURE__ */ e(
|
|
6167
|
-
|
|
6298
|
+
k,
|
|
6168
6299
|
{
|
|
6169
6300
|
ex: 165,
|
|
6170
6301
|
ey: 390,
|
|
@@ -6183,7 +6314,7 @@ function gi({ config: t }) {
|
|
|
6183
6314
|
graphSeries: xe({ cpuLoad: 67, memLoad: 72 })
|
|
6184
6315
|
},
|
|
6185
6316
|
children: /* @__PURE__ */ e(
|
|
6186
|
-
|
|
6317
|
+
ae,
|
|
6187
6318
|
{
|
|
6188
6319
|
rotateY: o,
|
|
6189
6320
|
autoRotate: i,
|
|
@@ -6197,7 +6328,7 @@ function gi({ config: t }) {
|
|
|
6197
6328
|
}
|
|
6198
6329
|
),
|
|
6199
6330
|
/* @__PURE__ */ e(
|
|
6200
|
-
|
|
6331
|
+
k,
|
|
6201
6332
|
{
|
|
6202
6333
|
ex: 330,
|
|
6203
6334
|
ey: 390,
|
|
@@ -6216,7 +6347,7 @@ function gi({ config: t }) {
|
|
|
6216
6347
|
graphSeries: xe({ cpuLoad: 89, memLoad: 91 })
|
|
6217
6348
|
},
|
|
6218
6349
|
children: /* @__PURE__ */ e(
|
|
6219
|
-
|
|
6350
|
+
ae,
|
|
6220
6351
|
{
|
|
6221
6352
|
rotateY: o,
|
|
6222
6353
|
autoRotate: i,
|
|
@@ -6230,7 +6361,7 @@ function gi({ config: t }) {
|
|
|
6230
6361
|
}
|
|
6231
6362
|
),
|
|
6232
6363
|
/* @__PURE__ */ e(
|
|
6233
|
-
|
|
6364
|
+
k,
|
|
6234
6365
|
{
|
|
6235
6366
|
ex: 495,
|
|
6236
6367
|
ey: 390,
|
|
@@ -6243,17 +6374,17 @@ function gi({ config: t }) {
|
|
|
6243
6374
|
componentInfo: {
|
|
6244
6375
|
type: "server",
|
|
6245
6376
|
name: "APP-03",
|
|
6246
|
-
status:
|
|
6377
|
+
status: h,
|
|
6247
6378
|
context: { cpuLoad: 45, memLoad: 63 },
|
|
6248
|
-
subComponents: me(
|
|
6379
|
+
subComponents: me(h, "APP-03", { cpuLoad: 45, memLoad: 63 }),
|
|
6249
6380
|
graphSeries: xe({ cpuLoad: 45, memLoad: 63 })
|
|
6250
6381
|
},
|
|
6251
6382
|
children: /* @__PURE__ */ e(
|
|
6252
|
-
|
|
6383
|
+
ae,
|
|
6253
6384
|
{
|
|
6254
6385
|
rotateY: o,
|
|
6255
6386
|
autoRotate: i,
|
|
6256
|
-
status:
|
|
6387
|
+
status: h,
|
|
6257
6388
|
name: "APP-03",
|
|
6258
6389
|
cpuLoad: 45,
|
|
6259
6390
|
memLoad: 63,
|
|
@@ -6263,7 +6394,7 @@ function gi({ config: t }) {
|
|
|
6263
6394
|
}
|
|
6264
6395
|
),
|
|
6265
6396
|
/* @__PURE__ */ e(
|
|
6266
|
-
|
|
6397
|
+
k,
|
|
6267
6398
|
{
|
|
6268
6399
|
ex: 200,
|
|
6269
6400
|
ey: 520,
|
|
@@ -6278,8 +6409,8 @@ function gi({ config: t }) {
|
|
|
6278
6409
|
name: "DB-PRI",
|
|
6279
6410
|
status: c,
|
|
6280
6411
|
context: { capacity: 72 },
|
|
6281
|
-
subComponents:
|
|
6282
|
-
graphSeries:
|
|
6412
|
+
subComponents: ze(c, "DB-PRI", { capacity: 72 }),
|
|
6413
|
+
graphSeries: Me({ capacity: 72 })
|
|
6283
6414
|
},
|
|
6284
6415
|
children: /* @__PURE__ */ e(
|
|
6285
6416
|
Ee,
|
|
@@ -6296,7 +6427,7 @@ function gi({ config: t }) {
|
|
|
6296
6427
|
}
|
|
6297
6428
|
),
|
|
6298
6429
|
/* @__PURE__ */ e(
|
|
6299
|
-
|
|
6430
|
+
k,
|
|
6300
6431
|
{
|
|
6301
6432
|
ex: 460,
|
|
6302
6433
|
ey: 520,
|
|
@@ -6311,8 +6442,8 @@ function gi({ config: t }) {
|
|
|
6311
6442
|
name: "DB-STB",
|
|
6312
6443
|
status: p,
|
|
6313
6444
|
context: { capacity: 72 },
|
|
6314
|
-
subComponents:
|
|
6315
|
-
graphSeries:
|
|
6445
|
+
subComponents: ze(p, "DB-STB", { capacity: 72 }),
|
|
6446
|
+
graphSeries: Me({ capacity: 72 })
|
|
6316
6447
|
},
|
|
6317
6448
|
children: /* @__PURE__ */ e(
|
|
6318
6449
|
Ee,
|
|
@@ -6329,7 +6460,7 @@ function gi({ config: t }) {
|
|
|
6329
6460
|
}
|
|
6330
6461
|
),
|
|
6331
6462
|
/* @__PURE__ */ e(
|
|
6332
|
-
|
|
6463
|
+
k,
|
|
6333
6464
|
{
|
|
6334
6465
|
ex: 330,
|
|
6335
6466
|
ey: 520,
|
|
@@ -6338,17 +6469,17 @@ function gi({ config: t }) {
|
|
|
6338
6469
|
visibleAtPhase: 6,
|
|
6339
6470
|
fixedScale: 1,
|
|
6340
6471
|
bare: !0,
|
|
6341
|
-
children: /* @__PURE__ */ e(
|
|
6472
|
+
children: /* @__PURE__ */ e(ft, { synced: f, latencyMs: f ? 8 : 342 })
|
|
6342
6473
|
}
|
|
6343
6474
|
),
|
|
6344
|
-
/* @__PURE__ */ e(
|
|
6475
|
+
/* @__PURE__ */ e(ci, { config: t })
|
|
6345
6476
|
] });
|
|
6346
6477
|
}
|
|
6347
|
-
function
|
|
6348
|
-
const n =
|
|
6478
|
+
function ci({ config: t }) {
|
|
6479
|
+
const n = J.useContext(le), { wdStatus: o, msStatus: i, srv1Status: r, srv2Status: a, srv3Status: s, pdbStatus: l, sdbStatus: h, dbSync: c } = t, p = n?.isSelected && n?.isExpandedPos;
|
|
6349
6480
|
return n?.isSelected ? /* @__PURE__ */ d("div", { style: { pointerEvents: "none" }, children: [
|
|
6350
6481
|
/* @__PURE__ */ e(
|
|
6351
|
-
|
|
6482
|
+
L,
|
|
6352
6483
|
{
|
|
6353
6484
|
ex: 220,
|
|
6354
6485
|
ey: 260,
|
|
@@ -6363,7 +6494,7 @@ function yi({ config: t }) {
|
|
|
6363
6494
|
}
|
|
6364
6495
|
),
|
|
6365
6496
|
/* @__PURE__ */ e(
|
|
6366
|
-
|
|
6497
|
+
L,
|
|
6367
6498
|
{
|
|
6368
6499
|
ex: 440,
|
|
6369
6500
|
ey: 260,
|
|
@@ -6378,7 +6509,7 @@ function yi({ config: t }) {
|
|
|
6378
6509
|
}
|
|
6379
6510
|
),
|
|
6380
6511
|
/* @__PURE__ */ e(
|
|
6381
|
-
|
|
6512
|
+
L,
|
|
6382
6513
|
{
|
|
6383
6514
|
ex: 165,
|
|
6384
6515
|
ey: 390,
|
|
@@ -6393,7 +6524,7 @@ function yi({ config: t }) {
|
|
|
6393
6524
|
}
|
|
6394
6525
|
),
|
|
6395
6526
|
/* @__PURE__ */ e(
|
|
6396
|
-
|
|
6527
|
+
L,
|
|
6397
6528
|
{
|
|
6398
6529
|
ex: 330,
|
|
6399
6530
|
ey: 390,
|
|
@@ -6408,7 +6539,7 @@ function yi({ config: t }) {
|
|
|
6408
6539
|
}
|
|
6409
6540
|
),
|
|
6410
6541
|
/* @__PURE__ */ e(
|
|
6411
|
-
|
|
6542
|
+
L,
|
|
6412
6543
|
{
|
|
6413
6544
|
ex: 495,
|
|
6414
6545
|
ey: 390,
|
|
@@ -6423,7 +6554,7 @@ function yi({ config: t }) {
|
|
|
6423
6554
|
}
|
|
6424
6555
|
),
|
|
6425
6556
|
/* @__PURE__ */ e(
|
|
6426
|
-
|
|
6557
|
+
L,
|
|
6427
6558
|
{
|
|
6428
6559
|
ex: 200,
|
|
6429
6560
|
ey: 520,
|
|
@@ -6438,22 +6569,22 @@ function yi({ config: t }) {
|
|
|
6438
6569
|
}
|
|
6439
6570
|
),
|
|
6440
6571
|
/* @__PURE__ */ e(
|
|
6441
|
-
|
|
6572
|
+
L,
|
|
6442
6573
|
{
|
|
6443
6574
|
ex: 460,
|
|
6444
6575
|
ey: 520,
|
|
6445
|
-
status:
|
|
6576
|
+
status: h,
|
|
6446
6577
|
title: "DB-STB",
|
|
6447
|
-
msg:
|
|
6578
|
+
msg: h === "critical" || h === "offline" ? "Sync failure." : "Replication lag.",
|
|
6448
6579
|
offsetX: 110,
|
|
6449
6580
|
offsetY: 30,
|
|
6450
6581
|
align: "right",
|
|
6451
6582
|
isVisible: !!p,
|
|
6452
|
-
internalRef:
|
|
6583
|
+
internalRef: h !== "online" ? "PLATTER-2" : void 0
|
|
6453
6584
|
}
|
|
6454
6585
|
),
|
|
6455
6586
|
!c && /* @__PURE__ */ e(
|
|
6456
|
-
|
|
6587
|
+
L,
|
|
6457
6588
|
{
|
|
6458
6589
|
ex: 330,
|
|
6459
6590
|
ey: 520,
|
|
@@ -6469,19 +6600,19 @@ function yi({ config: t }) {
|
|
|
6469
6600
|
)
|
|
6470
6601
|
] }) : null;
|
|
6471
6602
|
}
|
|
6472
|
-
function
|
|
6603
|
+
function Ai({ config: t, ...n }) {
|
|
6473
6604
|
return /* @__PURE__ */ e(
|
|
6474
|
-
|
|
6605
|
+
pt,
|
|
6475
6606
|
{
|
|
6476
6607
|
name: t.name,
|
|
6477
|
-
status:
|
|
6478
|
-
connections:
|
|
6608
|
+
status: tt(t),
|
|
6609
|
+
connections: si,
|
|
6479
6610
|
...n,
|
|
6480
|
-
children: /* @__PURE__ */ e(
|
|
6611
|
+
children: /* @__PURE__ */ e(di, { config: t })
|
|
6481
6612
|
}
|
|
6482
6613
|
);
|
|
6483
6614
|
}
|
|
6484
|
-
function
|
|
6615
|
+
function it(t) {
|
|
6485
6616
|
const n = [
|
|
6486
6617
|
t.dispStatus,
|
|
6487
6618
|
t.srv1Status,
|
|
@@ -6492,8 +6623,8 @@ function rt(t) {
|
|
|
6492
6623
|
];
|
|
6493
6624
|
return n.includes("critical") ? "critical" : n.includes("warning") ? "warning" : n.includes("offline") ? "offline" : "online";
|
|
6494
6625
|
}
|
|
6495
|
-
function
|
|
6496
|
-
const n =
|
|
6626
|
+
function Ii(t) {
|
|
6627
|
+
const n = it(t), o = n === "critical" || n === "offline", i = n === "warning";
|
|
6497
6628
|
return [
|
|
6498
6629
|
{
|
|
6499
6630
|
label: "Uptime",
|
|
@@ -6514,8 +6645,8 @@ function Di(t) {
|
|
|
6514
6645
|
}
|
|
6515
6646
|
];
|
|
6516
6647
|
}
|
|
6517
|
-
function
|
|
6518
|
-
const n =
|
|
6648
|
+
function Li(t) {
|
|
6649
|
+
const n = it(t), o = n === "critical" || n === "offline", i = n === "warning";
|
|
6519
6650
|
return [
|
|
6520
6651
|
...t.dbSync ? [] : [{ level: "warning", message: "DB Replication Lag Detected" }],
|
|
6521
6652
|
...o ? [{ level: "critical", message: "Critical Component Failure" }] : [],
|
|
@@ -6523,7 +6654,7 @@ function Wi(t) {
|
|
|
6523
6654
|
...!o && !i && t.dbSync ? [{ level: "info", message: "All Systems Nominal" }] : []
|
|
6524
6655
|
];
|
|
6525
6656
|
}
|
|
6526
|
-
const
|
|
6657
|
+
const pi = [
|
|
6527
6658
|
{ from: [330, 120], to: [330, 260], visibleAtPhase: 3 },
|
|
6528
6659
|
{ from: [330, 260], to: [165, 390], visibleAtPhase: 4 },
|
|
6529
6660
|
{ from: [330, 260], to: [330, 390], visibleAtPhase: 4 },
|
|
@@ -6532,11 +6663,11 @@ const mi = [
|
|
|
6532
6663
|
{ from: [330, 390], to: [200, 520], visibleAtPhase: 5, color: "#ff8c00" },
|
|
6533
6664
|
{ from: [495, 390], to: [200, 520], visibleAtPhase: 5, color: "#ff8c00" }
|
|
6534
6665
|
];
|
|
6535
|
-
function
|
|
6536
|
-
const n =
|
|
6537
|
-
return /* @__PURE__ */ d(
|
|
6666
|
+
function fi({ config: t }) {
|
|
6667
|
+
const n = J.useContext(le), o = n?.rotateY ?? 20, i = n?.autoRotateComponents ?? !0, { dispStatus: r, srv1Status: a, srv2Status: s, srv3Status: l, pdbStatus: h, sdbStatus: c, dbSync: p } = t;
|
|
6668
|
+
return /* @__PURE__ */ d(ve, { children: [
|
|
6538
6669
|
/* @__PURE__ */ e(
|
|
6539
|
-
|
|
6670
|
+
k,
|
|
6540
6671
|
{
|
|
6541
6672
|
ex: 330,
|
|
6542
6673
|
ey: 120,
|
|
@@ -6544,11 +6675,11 @@ function xi({ config: t }) {
|
|
|
6544
6675
|
zIndex: 10,
|
|
6545
6676
|
visibleAtPhase: 2,
|
|
6546
6677
|
color: "#00e5ff",
|
|
6547
|
-
children: /* @__PURE__ */ e(
|
|
6678
|
+
children: /* @__PURE__ */ e(Je, { status: "online", scale: 1.5 })
|
|
6548
6679
|
}
|
|
6549
6680
|
),
|
|
6550
6681
|
/* @__PURE__ */ e(
|
|
6551
|
-
|
|
6682
|
+
k,
|
|
6552
6683
|
{
|
|
6553
6684
|
ex: 330,
|
|
6554
6685
|
ey: 260,
|
|
@@ -6563,11 +6694,11 @@ function xi({ config: t }) {
|
|
|
6563
6694
|
name: "DISP-01",
|
|
6564
6695
|
status: r,
|
|
6565
6696
|
context: { traffic: 78 },
|
|
6566
|
-
subComponents:
|
|
6567
|
-
graphSeries:
|
|
6697
|
+
subComponents: yt(r),
|
|
6698
|
+
graphSeries: mt({ traffic: 78 })
|
|
6568
6699
|
},
|
|
6569
6700
|
children: /* @__PURE__ */ e(
|
|
6570
|
-
|
|
6701
|
+
et,
|
|
6571
6702
|
{
|
|
6572
6703
|
rotateY: o,
|
|
6573
6704
|
autoRotate: i,
|
|
@@ -6581,7 +6712,7 @@ function xi({ config: t }) {
|
|
|
6581
6712
|
}
|
|
6582
6713
|
),
|
|
6583
6714
|
/* @__PURE__ */ e(
|
|
6584
|
-
|
|
6715
|
+
k,
|
|
6585
6716
|
{
|
|
6586
6717
|
ex: 165,
|
|
6587
6718
|
ey: 390,
|
|
@@ -6600,7 +6731,7 @@ function xi({ config: t }) {
|
|
|
6600
6731
|
graphSeries: xe({ cpuLoad: 67, memLoad: 72 })
|
|
6601
6732
|
},
|
|
6602
6733
|
children: /* @__PURE__ */ e(
|
|
6603
|
-
|
|
6734
|
+
ae,
|
|
6604
6735
|
{
|
|
6605
6736
|
rotateY: o,
|
|
6606
6737
|
autoRotate: i,
|
|
@@ -6614,7 +6745,7 @@ function xi({ config: t }) {
|
|
|
6614
6745
|
}
|
|
6615
6746
|
),
|
|
6616
6747
|
/* @__PURE__ */ e(
|
|
6617
|
-
|
|
6748
|
+
k,
|
|
6618
6749
|
{
|
|
6619
6750
|
ex: 330,
|
|
6620
6751
|
ey: 390,
|
|
@@ -6633,7 +6764,7 @@ function xi({ config: t }) {
|
|
|
6633
6764
|
graphSeries: xe({ cpuLoad: 89, memLoad: 91 })
|
|
6634
6765
|
},
|
|
6635
6766
|
children: /* @__PURE__ */ e(
|
|
6636
|
-
|
|
6767
|
+
ae,
|
|
6637
6768
|
{
|
|
6638
6769
|
rotateY: o,
|
|
6639
6770
|
autoRotate: i,
|
|
@@ -6647,7 +6778,7 @@ function xi({ config: t }) {
|
|
|
6647
6778
|
}
|
|
6648
6779
|
),
|
|
6649
6780
|
/* @__PURE__ */ e(
|
|
6650
|
-
|
|
6781
|
+
k,
|
|
6651
6782
|
{
|
|
6652
6783
|
ex: 495,
|
|
6653
6784
|
ey: 390,
|
|
@@ -6666,7 +6797,7 @@ function xi({ config: t }) {
|
|
|
6666
6797
|
graphSeries: xe({ cpuLoad: 45, memLoad: 63 })
|
|
6667
6798
|
},
|
|
6668
6799
|
children: /* @__PURE__ */ e(
|
|
6669
|
-
|
|
6800
|
+
ae,
|
|
6670
6801
|
{
|
|
6671
6802
|
rotateY: o,
|
|
6672
6803
|
autoRotate: i,
|
|
@@ -6680,7 +6811,7 @@ function xi({ config: t }) {
|
|
|
6680
6811
|
}
|
|
6681
6812
|
),
|
|
6682
6813
|
/* @__PURE__ */ e(
|
|
6683
|
-
|
|
6814
|
+
k,
|
|
6684
6815
|
{
|
|
6685
6816
|
ex: 200,
|
|
6686
6817
|
ey: 520,
|
|
@@ -6693,17 +6824,17 @@ function xi({ config: t }) {
|
|
|
6693
6824
|
componentInfo: {
|
|
6694
6825
|
type: "database",
|
|
6695
6826
|
name: "DB-PRI",
|
|
6696
|
-
status:
|
|
6827
|
+
status: h,
|
|
6697
6828
|
context: { capacity: 72 },
|
|
6698
|
-
subComponents:
|
|
6699
|
-
graphSeries:
|
|
6829
|
+
subComponents: ze(h, "DB-PRI", { capacity: 72 }),
|
|
6830
|
+
graphSeries: Me({ capacity: 72 })
|
|
6700
6831
|
},
|
|
6701
6832
|
children: /* @__PURE__ */ e(
|
|
6702
6833
|
Ee,
|
|
6703
6834
|
{
|
|
6704
6835
|
rotateY: -o,
|
|
6705
6836
|
autoRotate: i,
|
|
6706
|
-
status:
|
|
6837
|
+
status: h,
|
|
6707
6838
|
name: "DB-PRI",
|
|
6708
6839
|
capacity: 72,
|
|
6709
6840
|
connections: 284,
|
|
@@ -6713,7 +6844,7 @@ function xi({ config: t }) {
|
|
|
6713
6844
|
}
|
|
6714
6845
|
),
|
|
6715
6846
|
/* @__PURE__ */ e(
|
|
6716
|
-
|
|
6847
|
+
k,
|
|
6717
6848
|
{
|
|
6718
6849
|
ex: 460,
|
|
6719
6850
|
ey: 520,
|
|
@@ -6728,8 +6859,8 @@ function xi({ config: t }) {
|
|
|
6728
6859
|
name: "DB-STB",
|
|
6729
6860
|
status: c,
|
|
6730
6861
|
context: { capacity: 72 },
|
|
6731
|
-
subComponents:
|
|
6732
|
-
graphSeries:
|
|
6862
|
+
subComponents: ze(c, "DB-STB", { capacity: 72 }),
|
|
6863
|
+
graphSeries: Me({ capacity: 72 })
|
|
6733
6864
|
},
|
|
6734
6865
|
children: /* @__PURE__ */ e(
|
|
6735
6866
|
Ee,
|
|
@@ -6746,7 +6877,7 @@ function xi({ config: t }) {
|
|
|
6746
6877
|
}
|
|
6747
6878
|
),
|
|
6748
6879
|
/* @__PURE__ */ e(
|
|
6749
|
-
|
|
6880
|
+
k,
|
|
6750
6881
|
{
|
|
6751
6882
|
ex: 330,
|
|
6752
6883
|
ey: 520,
|
|
@@ -6755,17 +6886,17 @@ function xi({ config: t }) {
|
|
|
6755
6886
|
visibleAtPhase: 6,
|
|
6756
6887
|
fixedScale: 1,
|
|
6757
6888
|
bare: !0,
|
|
6758
|
-
children: /* @__PURE__ */ e(
|
|
6889
|
+
children: /* @__PURE__ */ e(ft, { synced: p, latencyMs: p ? 8 : 342 })
|
|
6759
6890
|
}
|
|
6760
6891
|
),
|
|
6761
|
-
/* @__PURE__ */ e(
|
|
6892
|
+
/* @__PURE__ */ e(hi, { config: t })
|
|
6762
6893
|
] });
|
|
6763
6894
|
}
|
|
6764
|
-
function
|
|
6765
|
-
const n =
|
|
6895
|
+
function hi({ config: t }) {
|
|
6896
|
+
const n = J.useContext(le), { dispStatus: o, srv1Status: i, srv2Status: r, srv3Status: a, pdbStatus: s, sdbStatus: l, dbSync: h } = t, c = n?.isSelected && n?.isExpandedPos;
|
|
6766
6897
|
return n?.isSelected ? /* @__PURE__ */ d("div", { style: { pointerEvents: "none" }, children: [
|
|
6767
6898
|
/* @__PURE__ */ e(
|
|
6768
|
-
|
|
6899
|
+
L,
|
|
6769
6900
|
{
|
|
6770
6901
|
ex: 330,
|
|
6771
6902
|
ey: 260,
|
|
@@ -6780,7 +6911,7 @@ function vi({ config: t }) {
|
|
|
6780
6911
|
}
|
|
6781
6912
|
),
|
|
6782
6913
|
/* @__PURE__ */ e(
|
|
6783
|
-
|
|
6914
|
+
L,
|
|
6784
6915
|
{
|
|
6785
6916
|
ex: 165,
|
|
6786
6917
|
ey: 390,
|
|
@@ -6795,7 +6926,7 @@ function vi({ config: t }) {
|
|
|
6795
6926
|
}
|
|
6796
6927
|
),
|
|
6797
6928
|
/* @__PURE__ */ e(
|
|
6798
|
-
|
|
6929
|
+
L,
|
|
6799
6930
|
{
|
|
6800
6931
|
ex: 330,
|
|
6801
6932
|
ey: 390,
|
|
@@ -6810,7 +6941,7 @@ function vi({ config: t }) {
|
|
|
6810
6941
|
}
|
|
6811
6942
|
),
|
|
6812
6943
|
/* @__PURE__ */ e(
|
|
6813
|
-
|
|
6944
|
+
L,
|
|
6814
6945
|
{
|
|
6815
6946
|
ex: 495,
|
|
6816
6947
|
ey: 390,
|
|
@@ -6825,7 +6956,7 @@ function vi({ config: t }) {
|
|
|
6825
6956
|
}
|
|
6826
6957
|
),
|
|
6827
6958
|
/* @__PURE__ */ e(
|
|
6828
|
-
|
|
6959
|
+
L,
|
|
6829
6960
|
{
|
|
6830
6961
|
ex: 200,
|
|
6831
6962
|
ey: 520,
|
|
@@ -6840,7 +6971,7 @@ function vi({ config: t }) {
|
|
|
6840
6971
|
}
|
|
6841
6972
|
),
|
|
6842
6973
|
/* @__PURE__ */ e(
|
|
6843
|
-
|
|
6974
|
+
L,
|
|
6844
6975
|
{
|
|
6845
6976
|
ex: 460,
|
|
6846
6977
|
ey: 520,
|
|
@@ -6854,8 +6985,8 @@ function vi({ config: t }) {
|
|
|
6854
6985
|
internalRef: l !== "online" ? "PLATTER-2" : void 0
|
|
6855
6986
|
}
|
|
6856
6987
|
),
|
|
6857
|
-
!
|
|
6858
|
-
|
|
6988
|
+
!h && /* @__PURE__ */ e(
|
|
6989
|
+
L,
|
|
6859
6990
|
{
|
|
6860
6991
|
ex: 330,
|
|
6861
6992
|
ey: 520,
|
|
@@ -6871,71 +7002,75 @@ function vi({ config: t }) {
|
|
|
6871
7002
|
)
|
|
6872
7003
|
] }) : null;
|
|
6873
7004
|
}
|
|
6874
|
-
function
|
|
7005
|
+
function Oi({ config: t, ...n }) {
|
|
6875
7006
|
return /* @__PURE__ */ e(
|
|
6876
|
-
|
|
7007
|
+
pt,
|
|
6877
7008
|
{
|
|
6878
7009
|
name: t.name,
|
|
6879
|
-
status:
|
|
6880
|
-
connections:
|
|
7010
|
+
status: it(t),
|
|
7011
|
+
connections: pi,
|
|
6881
7012
|
...n,
|
|
6882
|
-
children: /* @__PURE__ */ e(
|
|
7013
|
+
children: /* @__PURE__ */ e(fi, { config: t })
|
|
6883
7014
|
}
|
|
6884
7015
|
);
|
|
6885
7016
|
}
|
|
6886
7017
|
export {
|
|
6887
|
-
|
|
6888
|
-
|
|
6889
|
-
|
|
6890
|
-
|
|
6891
|
-
|
|
6892
|
-
|
|
6893
|
-
|
|
7018
|
+
Ci as AIOPsDashboard,
|
|
7019
|
+
De as CPU3D,
|
|
7020
|
+
zt as Carousel,
|
|
7021
|
+
qe as CarouselContext,
|
|
7022
|
+
Ke as CarouselItemContext,
|
|
7023
|
+
Ot as ComponentDialog,
|
|
7024
|
+
Pi as ComponentDrillView,
|
|
6894
7025
|
Ee as Database3D,
|
|
7026
|
+
Si as DatabaseNode,
|
|
6895
7027
|
ye as DriveBay3D,
|
|
6896
|
-
|
|
6897
|
-
|
|
6898
|
-
|
|
6899
|
-
|
|
6900
|
-
|
|
6901
|
-
|
|
6902
|
-
|
|
6903
|
-
|
|
6904
|
-
|
|
6905
|
-
|
|
6906
|
-
|
|
6907
|
-
|
|
6908
|
-
|
|
7028
|
+
pi as EXCHANGE_CONNECTIONS,
|
|
7029
|
+
Oi as ExchangeService,
|
|
7030
|
+
mi as HOLO_BLUE,
|
|
7031
|
+
yi as HOLO_CYAN,
|
|
7032
|
+
Qe as HOLO_GLASS,
|
|
7033
|
+
Se as HOLO_SURFACE,
|
|
7034
|
+
ei as HistoricalGraphPanel,
|
|
7035
|
+
Bt as HoloBase,
|
|
7036
|
+
Je as Human3D,
|
|
7037
|
+
$i as HumanNode,
|
|
7038
|
+
We as Memory3D,
|
|
7039
|
+
ht as MessageServer3D,
|
|
7040
|
+
Ri as MessageServerNode,
|
|
7041
|
+
bt as NetworkBlock3D,
|
|
7042
|
+
L as NodeCallout,
|
|
6909
7043
|
Oe as Platter3D,
|
|
6910
7044
|
B as Port3D,
|
|
6911
|
-
|
|
6912
|
-
|
|
7045
|
+
Ai as SAPService,
|
|
7046
|
+
si as SAP_CONNECTIONS,
|
|
6913
7047
|
w as STATUS_CFG,
|
|
6914
|
-
|
|
6915
|
-
|
|
7048
|
+
ae as Server3D,
|
|
7049
|
+
wi as ServerNode,
|
|
7050
|
+
pt as Service,
|
|
6916
7051
|
le as ServiceContext,
|
|
6917
|
-
|
|
6918
|
-
|
|
6919
|
-
|
|
6920
|
-
|
|
6921
|
-
|
|
6922
|
-
|
|
6923
|
-
|
|
6924
|
-
|
|
6925
|
-
|
|
6926
|
-
|
|
6927
|
-
|
|
6928
|
-
|
|
6929
|
-
|
|
6930
|
-
|
|
6931
|
-
|
|
6932
|
-
|
|
6933
|
-
|
|
6934
|
-
|
|
6935
|
-
|
|
7052
|
+
It as ServiceDialog,
|
|
7053
|
+
k as ServiceNode,
|
|
7054
|
+
Mt as SvgConnection,
|
|
7055
|
+
ft as SyncBridge,
|
|
7056
|
+
O as ThreadPool3D,
|
|
7057
|
+
et as WebDispatcher3D,
|
|
7058
|
+
ki as WebDispatcherNode,
|
|
7059
|
+
Li as computeExchangeDialogAlerts,
|
|
7060
|
+
Ii as computeExchangeDialogMetrics,
|
|
7061
|
+
it as computeExchangeServiceStatus,
|
|
7062
|
+
Ti as computeSAPDialogAlerts,
|
|
7063
|
+
Ei as computeSAPDialogMetrics,
|
|
7064
|
+
tt as computeSAPServiceStatus,
|
|
7065
|
+
Me as getDatabaseGraphSeries,
|
|
7066
|
+
ze as getDatabaseSubComponents,
|
|
7067
|
+
mt as getDispatcherGraphSeries,
|
|
7068
|
+
yt as getDispatcherSubComponents,
|
|
7069
|
+
li as getMessageServerGraphSeries,
|
|
7070
|
+
ai as getMessageServerSubComponents,
|
|
6936
7071
|
xe as getServerGraphSeries,
|
|
6937
7072
|
me as getServerSubComponents,
|
|
6938
|
-
|
|
6939
|
-
|
|
6940
|
-
|
|
7073
|
+
Ge as makeFaceStyles,
|
|
7074
|
+
xi as useCarouselContext,
|
|
7075
|
+
vi as useCarouselItemContext
|
|
6941
7076
|
};
|