react-aiops 0.1.4 → 0.1.5
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/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsxs as d, jsx as e, Fragment as Ce } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
const
|
|
2
|
+
import ee, { createContext as Ge, useContext as ve, useState as I, useEffect as Ae, useMemo as Xe, useRef as te } from "react";
|
|
3
|
+
const It = {
|
|
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 Ot({
|
|
9
9
|
name: t,
|
|
10
10
|
status: n,
|
|
11
11
|
dbSync: o = !0,
|
|
@@ -13,7 +13,7 @@ function At({
|
|
|
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", f = r ?? [
|
|
17
17
|
{
|
|
18
18
|
label: "Uptime",
|
|
19
19
|
value: s ? "92.14%" : "99.98%",
|
|
@@ -115,10 +115,10 @@ function At({
|
|
|
115
115
|
fontSize: 13,
|
|
116
116
|
color: "#a0b0c0"
|
|
117
117
|
},
|
|
118
|
-
children:
|
|
118
|
+
children: f.map((p, h) => /* @__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
|
+
] }, h))
|
|
122
122
|
}
|
|
123
123
|
),
|
|
124
124
|
/* @__PURE__ */ d(
|
|
@@ -145,8 +145,8 @@ function At({
|
|
|
145
145
|
children: "SYSTEM ALERTS"
|
|
146
146
|
}
|
|
147
147
|
),
|
|
148
|
-
c.map((p,
|
|
149
|
-
const y =
|
|
148
|
+
c.map((p, h) => {
|
|
149
|
+
const y = It[p.level];
|
|
150
150
|
return /* @__PURE__ */ d(
|
|
151
151
|
"div",
|
|
152
152
|
{
|
|
@@ -167,7 +167,7 @@ function At({
|
|
|
167
167
|
/* @__PURE__ */ e("span", { children: p.message })
|
|
168
168
|
]
|
|
169
169
|
},
|
|
170
|
-
|
|
170
|
+
h
|
|
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
|
+
}, ki = "#00e5ff", Ri = "#0055cc", we = "linear-gradient(180deg, #071428 0%, #040c1c 60%, #030810 100%)", Ke = "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 Ze(t, n, o) {
|
|
187
187
|
const i = {
|
|
188
188
|
position: "absolute",
|
|
189
189
|
overflow: "hidden",
|
|
@@ -233,24 +233,24 @@ function qe(t, n, o) {
|
|
|
233
233
|
}
|
|
234
234
|
};
|
|
235
235
|
}
|
|
236
|
-
const
|
|
237
|
-
function
|
|
236
|
+
const je = "cubic-bezier(0.34, 1.56, 0.64, 1)", Qe = "cubic-bezier(0.16, 1, 0.3, 1)";
|
|
237
|
+
function ht(t) {
|
|
238
238
|
return w[t]?.color ?? w.online.color;
|
|
239
239
|
}
|
|
240
|
-
function
|
|
240
|
+
function Dt(t, n, o) {
|
|
241
241
|
return t >= o ? "#ff2255" : t >= n ? "#ff8c00" : "#00e5ff";
|
|
242
242
|
}
|
|
243
|
-
function
|
|
243
|
+
function Ie(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 Wt({
|
|
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: f, ey: c, context: p = {} } = t, h = ht(l), y = f >= i / 2, u = c >= r / 2, g = {
|
|
254
254
|
position: "fixed",
|
|
255
255
|
...y ? { right: 28 } : { left: 28 },
|
|
256
256
|
...u ? { bottom: 110 } : { top: 72 }
|
|
@@ -258,23 +258,23 @@ function It({
|
|
|
258
258
|
let $;
|
|
259
259
|
if (v && v.length > 0)
|
|
260
260
|
$ = v.map((b, k) => {
|
|
261
|
-
const
|
|
261
|
+
const T = b.warnAt ?? 70, R = 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: Ie(l, b.value, T, R),
|
|
269
269
|
icon: b.icon ?? "cpu",
|
|
270
270
|
delay: k,
|
|
271
271
|
colorOverride: b.color,
|
|
272
|
-
warnAt:
|
|
272
|
+
warnAt: T,
|
|
273
273
|
critAt: R
|
|
274
274
|
};
|
|
275
275
|
});
|
|
276
276
|
else {
|
|
277
|
-
const b = p.cpuLoad ?? p.traffic ?? 50, k = p.memLoad ?? p.queueDepth ?? 60,
|
|
277
|
+
const b = p.cpuLoad ?? p.traffic ?? 50, k = p.memLoad ?? p.queueDepth ?? 60, T = p.capacity ?? 72, R = Ie(l, b, 70, 85), L = Ie(l, k, 75, 88), z = Ie(l, T, 75, 90);
|
|
278
278
|
$ = [
|
|
279
279
|
{
|
|
280
280
|
id: "cpu",
|
|
@@ -300,7 +300,7 @@ function It({
|
|
|
300
300
|
id: "storage",
|
|
301
301
|
label: "STORAGE",
|
|
302
302
|
sublabel: a === "database" ? "TABLESPACE" : "DISK I/O",
|
|
303
|
-
value:
|
|
303
|
+
value: T,
|
|
304
304
|
unit: "%",
|
|
305
305
|
status: z,
|
|
306
306
|
icon: "disk",
|
|
@@ -317,17 +317,17 @@ function It({
|
|
|
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 ${h}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 ${Qe}, transform 0.55s ${je}`,
|
|
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": h
|
|
331
331
|
},
|
|
332
332
|
onClick: (b) => b.stopPropagation(),
|
|
333
333
|
children: [
|
|
@@ -340,8 +340,8 @@ function It({
|
|
|
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%, ${h}aa 30%, #fff 50%, ${h}aa 70%, transparent 98%)`,
|
|
344
|
+
boxShadow: `0 0 12px ${h}, 0 0 24px ${h}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 It({
|
|
|
355
355
|
position: "absolute",
|
|
356
356
|
inset: 0,
|
|
357
357
|
backgroundImage: `
|
|
358
|
-
linear-gradient(${
|
|
359
|
-
linear-gradient(90deg, ${
|
|
358
|
+
linear-gradient(${h}06 1px, transparent 1px),
|
|
359
|
+
linear-gradient(90deg, ${h}06 1px, transparent 1px)
|
|
360
360
|
`,
|
|
361
361
|
backgroundSize: "20px 20px",
|
|
362
362
|
pointerEvents: "none",
|
|
@@ -368,29 +368,29 @@ function It({
|
|
|
368
368
|
{
|
|
369
369
|
top: 0,
|
|
370
370
|
left: 0,
|
|
371
|
-
borderTop: `2px solid ${
|
|
372
|
-
borderLeft: `2px solid ${
|
|
371
|
+
borderTop: `2px solid ${h}66`,
|
|
372
|
+
borderLeft: `2px solid ${h}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 ${h}66`,
|
|
379
|
+
borderRight: `2px solid ${h}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 ${h}66`,
|
|
386
|
+
borderLeft: `2px solid ${h}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 ${h}66`,
|
|
393
|
+
borderRight: `2px solid ${h}66`,
|
|
394
394
|
borderRadius: "0 0 14px 0"
|
|
395
395
|
}
|
|
396
396
|
].map((b, k) => /* @__PURE__ */ e(
|
|
@@ -408,8 +408,8 @@ function It({
|
|
|
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 ${h}22`,
|
|
412
|
+
background: `linear-gradient(180deg, ${h}12 0%, transparent 100%)`,
|
|
413
413
|
position: "relative",
|
|
414
414
|
zIndex: 2
|
|
415
415
|
},
|
|
@@ -423,8 +423,8 @@ function It({
|
|
|
423
423
|
width: 10,
|
|
424
424
|
height: 10,
|
|
425
425
|
borderRadius: "50%",
|
|
426
|
-
background:
|
|
427
|
-
boxShadow: `0 0 12px ${
|
|
426
|
+
background: h,
|
|
427
|
+
boxShadow: `0 0 12px ${h}, 0 0 24px ${h}66`,
|
|
428
428
|
animation: l === "warning" || l === "critical" ? "holo-led-blink 1.5s infinite" : "none"
|
|
429
429
|
}
|
|
430
430
|
}
|
|
@@ -436,7 +436,7 @@ function It({
|
|
|
436
436
|
position: "absolute",
|
|
437
437
|
inset: -4,
|
|
438
438
|
borderRadius: "50%",
|
|
439
|
-
border: `1px solid ${
|
|
439
|
+
border: `1px solid ${h}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 It({
|
|
|
449
449
|
style: {
|
|
450
450
|
fontSize: 16,
|
|
451
451
|
fontWeight: 700,
|
|
452
|
-
color:
|
|
452
|
+
color: h,
|
|
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 ${h}88, 0 0 20px ${h}44`
|
|
459
459
|
},
|
|
460
460
|
children: s
|
|
461
461
|
}
|
|
@@ -465,7 +465,7 @@ function It({
|
|
|
465
465
|
{
|
|
466
466
|
style: {
|
|
467
467
|
fontSize: 9,
|
|
468
|
-
color: `${
|
|
468
|
+
color: `${h}88`,
|
|
469
469
|
letterSpacing: "0.2em",
|
|
470
470
|
textTransform: "uppercase"
|
|
471
471
|
},
|
|
@@ -484,9 +484,9 @@ function It({
|
|
|
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 ${h}44`,
|
|
488
|
+
background: `linear-gradient(135deg, rgba(0,0,0,0.5) 0%, ${h}08 100%)`,
|
|
489
|
+
color: h,
|
|
490
490
|
fontSize: 18,
|
|
491
491
|
cursor: "pointer",
|
|
492
492
|
display: "flex",
|
|
@@ -497,10 +497,10 @@ function It({
|
|
|
497
497
|
flexShrink: 0
|
|
498
498
|
},
|
|
499
499
|
onMouseEnter: (b) => {
|
|
500
|
-
b.currentTarget.style.background = `${
|
|
500
|
+
b.currentTarget.style.background = `${h}22`, b.currentTarget.style.boxShadow = `0 0 12px ${h}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%, ${h}08 100%)`, b.currentTarget.style.boxShadow = "none";
|
|
504
504
|
},
|
|
505
505
|
children: "×"
|
|
506
506
|
}
|
|
@@ -519,7 +519,7 @@ function It({
|
|
|
519
519
|
position: "relative",
|
|
520
520
|
zIndex: 2
|
|
521
521
|
},
|
|
522
|
-
children: $.map((b) => /* @__PURE__ */ e(
|
|
522
|
+
children: $.map((b) => /* @__PURE__ */ e(zt, { metric: b, visible: o, accentColor: h }, b.id))
|
|
523
523
|
}
|
|
524
524
|
),
|
|
525
525
|
/* @__PURE__ */ d(
|
|
@@ -527,14 +527,14 @@ function It({
|
|
|
527
527
|
{
|
|
528
528
|
style: {
|
|
529
529
|
padding: "12px 22px",
|
|
530
|
-
borderTop: `1px solid ${
|
|
531
|
-
background: `${
|
|
530
|
+
borderTop: `1px solid ${h}18`,
|
|
531
|
+
background: `${h}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: `${h}66`,
|
|
538
538
|
textTransform: "uppercase",
|
|
539
539
|
position: "relative",
|
|
540
540
|
zIndex: 2
|
|
@@ -553,8 +553,8 @@ function It({
|
|
|
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" : h,
|
|
557
|
+
boxShadow: `0 0 6px ${l === "online" ? "#00ff88" : h}`,
|
|
558
558
|
animation: l === "warning" || l === "critical" ? "holo-led-blink 1.5s infinite" : "none"
|
|
559
559
|
}
|
|
560
560
|
}
|
|
@@ -568,7 +568,7 @@ function It({
|
|
|
568
568
|
}
|
|
569
569
|
);
|
|
570
570
|
}
|
|
571
|
-
function
|
|
571
|
+
function zt({
|
|
572
572
|
metric: t,
|
|
573
573
|
visible: n,
|
|
574
574
|
accentColor: o
|
|
@@ -579,12 +579,12 @@ function Ot({
|
|
|
579
579
|
value: a,
|
|
580
580
|
unit: s,
|
|
581
581
|
status: l,
|
|
582
|
-
icon:
|
|
582
|
+
icon: f,
|
|
583
583
|
delay: c,
|
|
584
584
|
colorOverride: p,
|
|
585
|
-
warnAt:
|
|
585
|
+
warnAt: h = 70,
|
|
586
586
|
critAt: y = 85
|
|
587
|
-
} = t, u = p ??
|
|
587
|
+
} = t, u = p ?? Dt(a, h, y), g = p ?? ht(l);
|
|
588
588
|
return /* @__PURE__ */ d(
|
|
589
589
|
"div",
|
|
590
590
|
{
|
|
@@ -594,7 +594,7 @@ function Ot({
|
|
|
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 ${Qe} ${0.3 + c * 0.12}s, transform 0.5s ${je} ${0.3 + c * 0.12}s`
|
|
598
598
|
},
|
|
599
599
|
children: [
|
|
600
600
|
/* @__PURE__ */ d(
|
|
@@ -612,10 +612,10 @@ function Ot({
|
|
|
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 ${je} ${0.35 + c * 0.12}s both` : "none"
|
|
616
616
|
},
|
|
617
617
|
children: [
|
|
618
|
-
/* @__PURE__ */ e(
|
|
618
|
+
/* @__PURE__ */ e(Mt, { type: f, color: g }),
|
|
619
619
|
(l === "warning" || l === "critical") && /* @__PURE__ */ e(
|
|
620
620
|
"div",
|
|
621
621
|
{
|
|
@@ -714,7 +714,7 @@ function Ot({
|
|
|
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 ${Qe} ${0.4 + c * 0.12}s both` : "none"
|
|
718
718
|
}
|
|
719
719
|
}
|
|
720
720
|
),
|
|
@@ -723,7 +723,7 @@ function Ot({
|
|
|
723
723
|
{
|
|
724
724
|
style: {
|
|
725
725
|
position: "absolute",
|
|
726
|
-
left: `${
|
|
726
|
+
left: `${h}%`,
|
|
727
727
|
top: 0,
|
|
728
728
|
bottom: 0,
|
|
729
729
|
width: 1,
|
|
@@ -766,7 +766,7 @@ function Ot({
|
|
|
766
766
|
{
|
|
767
767
|
style: {
|
|
768
768
|
position: "absolute",
|
|
769
|
-
left: `${
|
|
769
|
+
left: `${h}%`,
|
|
770
770
|
transform: "translateX(-50%)",
|
|
771
771
|
fontSize: 6,
|
|
772
772
|
color: "rgba(255,140,0,0.3)",
|
|
@@ -808,7 +808,7 @@ function Ot({
|
|
|
808
808
|
}
|
|
809
809
|
);
|
|
810
810
|
}
|
|
811
|
-
function
|
|
811
|
+
function Mt({ 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 Dt({ 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 ve(
|
|
896
|
+
const Je = Ge(null), et = Ge({ index: 0 });
|
|
897
|
+
function Pi() {
|
|
898
|
+
return ve(Je);
|
|
899
899
|
}
|
|
900
|
-
function
|
|
901
|
-
return ve(
|
|
900
|
+
function Ci() {
|
|
901
|
+
return ve(et);
|
|
902
902
|
}
|
|
903
|
-
function
|
|
903
|
+
function Nt({
|
|
904
904
|
children: t,
|
|
905
905
|
logoUrl: n,
|
|
906
906
|
viewState: o,
|
|
@@ -909,10 +909,10 @@ function Wt({
|
|
|
909
909
|
selectedComponent: a,
|
|
910
910
|
drillAnimPhase: s,
|
|
911
911
|
rotateY: l = 20,
|
|
912
|
-
autoRotateComponents:
|
|
912
|
+
autoRotateComponents: f = !0,
|
|
913
913
|
componentScale: c = 0.35,
|
|
914
914
|
drillZoom: p = 3.3,
|
|
915
|
-
autoRotateCarousel:
|
|
915
|
+
autoRotateCarousel: h = !0,
|
|
916
916
|
carouselSpeed: y = 6e-3,
|
|
917
917
|
width: u = 950,
|
|
918
918
|
height: g = 790,
|
|
@@ -922,50 +922,50 @@ function Wt({
|
|
|
922
922
|
onCloseDrill: $,
|
|
923
923
|
selectedSystemStatus: b = "online",
|
|
924
924
|
selectedSystemDbSync: k = !0,
|
|
925
|
-
selectedSystemMetrics:
|
|
925
|
+
selectedSystemMetrics: T,
|
|
926
926
|
selectedSystemAlerts: R
|
|
927
927
|
}) {
|
|
928
928
|
const [L, z] = I(0);
|
|
929
|
-
|
|
930
|
-
let
|
|
931
|
-
if ((o === "compact" || o === "collapsing") &&
|
|
929
|
+
Ae(() => {
|
|
930
|
+
let W;
|
|
931
|
+
if ((o === "compact" || o === "collapsing") && h) {
|
|
932
932
|
const H = () => {
|
|
933
|
-
z((
|
|
933
|
+
z((oe) => oe + y), W = requestAnimationFrame(H);
|
|
934
934
|
};
|
|
935
|
-
|
|
935
|
+
W = requestAnimationFrame(H);
|
|
936
936
|
}
|
|
937
|
-
return () => cancelAnimationFrame(
|
|
938
|
-
}, [o,
|
|
939
|
-
const F =
|
|
940
|
-
totalSystems:
|
|
937
|
+
return () => cancelAnimationFrame(W);
|
|
938
|
+
}, [o, h, y]);
|
|
939
|
+
const F = ee.Children.toArray(t), j = F.length, M = Xe(() => ({
|
|
940
|
+
totalSystems: j,
|
|
941
941
|
carouselRotation: L,
|
|
942
942
|
viewState: o,
|
|
943
943
|
animPhase: i,
|
|
944
944
|
selectedSystem: r,
|
|
945
945
|
selectedComponent: a,
|
|
946
946
|
rotateY: l,
|
|
947
|
-
autoRotateComponents:
|
|
947
|
+
autoRotateComponents: f,
|
|
948
948
|
componentScale: c,
|
|
949
949
|
drillZoom: p,
|
|
950
950
|
onSelectSystem: m,
|
|
951
951
|
onComponentClick: v,
|
|
952
952
|
containerWidth: u
|
|
953
953
|
}), [
|
|
954
|
-
|
|
954
|
+
j,
|
|
955
955
|
L,
|
|
956
956
|
o,
|
|
957
957
|
i,
|
|
958
958
|
r,
|
|
959
959
|
a,
|
|
960
960
|
l,
|
|
961
|
-
|
|
961
|
+
f,
|
|
962
962
|
c,
|
|
963
963
|
p,
|
|
964
964
|
m,
|
|
965
965
|
v,
|
|
966
966
|
u
|
|
967
|
-
]),
|
|
968
|
-
return /* @__PURE__ */ d(
|
|
967
|
+
]), ie = F.map((W, H) => /* @__PURE__ */ e(et.Provider, { value: { index: H }, children: W }, H)), ne = o === "expanded" || o === "expanding" && i >= 4;
|
|
968
|
+
return /* @__PURE__ */ d(Je.Provider, { value: M, children: [
|
|
969
969
|
/* @__PURE__ */ d("div", { style: { position: "relative", width: u, height: g, margin: "0 auto", flexShrink: 0 }, children: [
|
|
970
970
|
n && (o === "compact" || o === "collapsing") && /* @__PURE__ */ e(
|
|
971
971
|
"img",
|
|
@@ -987,21 +987,21 @@ function Wt({
|
|
|
987
987
|
}
|
|
988
988
|
}
|
|
989
989
|
),
|
|
990
|
-
|
|
990
|
+
ie
|
|
991
991
|
] }),
|
|
992
|
-
r && /* @__PURE__ */ e("div", { onClick: (
|
|
993
|
-
|
|
992
|
+
r && /* @__PURE__ */ e("div", { onClick: (W) => W.stopPropagation(), children: /* @__PURE__ */ e(
|
|
993
|
+
Ot,
|
|
994
994
|
{
|
|
995
995
|
name: r,
|
|
996
996
|
status: b,
|
|
997
997
|
dbSync: k,
|
|
998
|
-
visible:
|
|
999
|
-
metrics:
|
|
998
|
+
visible: ne && !a,
|
|
999
|
+
metrics: T,
|
|
1000
1000
|
alerts: R
|
|
1001
1001
|
}
|
|
1002
1002
|
) }),
|
|
1003
|
-
a && /* @__PURE__ */ e("div", { onClick: (
|
|
1004
|
-
|
|
1003
|
+
a && /* @__PURE__ */ e("div", { onClick: (W) => W.stopPropagation(), children: /* @__PURE__ */ e(
|
|
1004
|
+
Wt,
|
|
1005
1005
|
{
|
|
1006
1006
|
component: a,
|
|
1007
1007
|
onClose: $,
|
|
@@ -1012,7 +1012,7 @@ function Wt({
|
|
|
1012
1012
|
) })
|
|
1013
1013
|
] });
|
|
1014
1014
|
}
|
|
1015
|
-
function
|
|
1015
|
+
function Bt({
|
|
1016
1016
|
x1: t,
|
|
1017
1017
|
y1: n,
|
|
1018
1018
|
x2: o,
|
|
@@ -1079,14 +1079,14 @@ function zt({
|
|
|
1079
1079
|
] })
|
|
1080
1080
|
] });
|
|
1081
1081
|
}
|
|
1082
|
-
const
|
|
1082
|
+
const Ft = [
|
|
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 Ht({
|
|
1090
1090
|
children: t,
|
|
1091
1091
|
size: n = 230,
|
|
1092
1092
|
widthRatio: o = 1,
|
|
@@ -1252,7 +1252,7 @@ function Nt({
|
|
|
1252
1252
|
background: `radial-gradient(ellipse, ${i}88 0%, ${i}33 40%, transparent 72%)`,
|
|
1253
1253
|
filter: "blur(12px)"
|
|
1254
1254
|
} }),
|
|
1255
|
-
|
|
1255
|
+
Ft.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 Nt({
|
|
|
1295
1295
|
}, children: r })
|
|
1296
1296
|
] });
|
|
1297
1297
|
}
|
|
1298
|
-
const
|
|
1299
|
-
function
|
|
1298
|
+
const le = Ge(null), Ut = "cubic-bezier(0.34, 1.56, 0.64, 1)", lt = 330, st = 340, Yt = 660;
|
|
1299
|
+
function tt({
|
|
1300
1300
|
name: t,
|
|
1301
1301
|
status: n = "online",
|
|
1302
1302
|
connections: o = [],
|
|
@@ -1305,10 +1305,10 @@ function dt({
|
|
|
1305
1305
|
_index: a,
|
|
1306
1306
|
_totalSystems: s,
|
|
1307
1307
|
_carouselRotation: l,
|
|
1308
|
-
_viewState:
|
|
1308
|
+
_viewState: f,
|
|
1309
1309
|
_animPhase: c,
|
|
1310
1310
|
_selectedSystem: p,
|
|
1311
|
-
_selectedComponent:
|
|
1311
|
+
_selectedComponent: h,
|
|
1312
1312
|
_rotateY: y,
|
|
1313
1313
|
_autoRotateComponents: u,
|
|
1314
1314
|
_componentScale: g,
|
|
@@ -1317,24 +1317,24 @@ function dt({
|
|
|
1317
1317
|
_onComponentClick: v,
|
|
1318
1318
|
_containerWidth: $
|
|
1319
1319
|
}) {
|
|
1320
|
-
const b = ve(
|
|
1320
|
+
const b = ve(Je), k = ve(et), T = a ?? k.index, R = s ?? b?.totalSystems ?? 1, L = l ?? b?.carouselRotation ?? 0, z = f ?? b?.viewState ?? "compact", F = c ?? b?.animPhase ?? 0, j = p ?? b?.selectedSystem ?? null, M = h ?? b?.selectedComponent ?? null, ie = y ?? b?.rotateY ?? 20, ne = u ?? b?.autoRotateComponents ?? !0, W = g ?? b?.componentScale ?? 0.35, H = m ?? b?.drillZoom ?? 3.3, oe = x ?? b?.onSelectSystem, Se = v ?? b?.onComponentClick, $e = $ ?? b?.containerWidth ?? 950, Q = j === t, N = Q && (z === "expanded" || z === "expanding" && F >= 1), E = !N, ke = ($e - Yt) / 2, re = lt + ke, se = T / R * Math.PI * 2 + L, Be = 420, Te = 160, Re = re + Math.cos(se) * Be, de = 450 + Math.sin(se) * Te, St = Math.round(de), Fe = !Q && (z === "expanding" || z === "expanded"), $t = Fe ? 0 : 1, Pe = E ? 0.3 + (Math.sin(se) + 1) * 0.1 : 1, kt = E ? Pe : W, Le = z === "compact" || z === "collapsing" ? "none" : "all 1s cubic-bezier(0.34, 1.56, 0.64, 1)", at = Q && M, He = at ? H : 1, Rt = M?.ex ?? 330, Pt = M?.ey ?? 300, { size: Ct = 90, color: Et = "#00e5ff", widthRatio: At = 3 } = i ?? {}, Tt = {
|
|
1321
1321
|
name: t,
|
|
1322
1322
|
isSelected: Q,
|
|
1323
1323
|
isExpandedPos: N,
|
|
1324
|
-
isCompact:
|
|
1324
|
+
isCompact: E,
|
|
1325
1325
|
animPhase: F,
|
|
1326
1326
|
compactCx: Re,
|
|
1327
|
-
compactCy:
|
|
1327
|
+
compactCy: de,
|
|
1328
1328
|
groupScale: Pe,
|
|
1329
|
-
effectiveScale:
|
|
1330
|
-
transitionValue:
|
|
1331
|
-
rotateY:
|
|
1332
|
-
autoRotateComponents:
|
|
1329
|
+
effectiveScale: kt,
|
|
1330
|
+
transitionValue: Le,
|
|
1331
|
+
rotateY: ie,
|
|
1332
|
+
autoRotateComponents: ne,
|
|
1333
1333
|
onComponentClick: Se,
|
|
1334
1334
|
selectedComponentName: M?.name ?? null,
|
|
1335
1335
|
expandedOffsetX: ke
|
|
1336
1336
|
};
|
|
1337
|
-
return /* @__PURE__ */ e(
|
|
1337
|
+
return /* @__PURE__ */ e(le.Provider, { value: Tt, children: /* @__PURE__ */ d(
|
|
1338
1338
|
"div",
|
|
1339
1339
|
{
|
|
1340
1340
|
style: {
|
|
@@ -1344,21 +1344,21 @@ function dt({
|
|
|
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: Q ? 500 :
|
|
1351
|
-
transformOrigin: `${
|
|
1352
|
-
transform:
|
|
1347
|
+
opacity: $t,
|
|
1348
|
+
transition: `opacity 0.8s ease, filter 0.5s ease, transform 0.6s ${Ut}`,
|
|
1349
|
+
filter: E && Math.sin(se) < -0.5 ? "brightness(0.5) blur(2px)" : "none",
|
|
1350
|
+
zIndex: Q ? 500 : Fe ? 0 : St,
|
|
1351
|
+
transformOrigin: `${re}px ${st}px`,
|
|
1352
|
+
transform: at ? `translate(${-(Rt - lt) * He}px, ${-(Pt - st) * He}px) scale(${He})` : "none"
|
|
1353
1353
|
},
|
|
1354
1354
|
children: [
|
|
1355
|
-
|
|
1355
|
+
E && !Fe && /* @__PURE__ */ e(
|
|
1356
1356
|
"div",
|
|
1357
1357
|
{
|
|
1358
1358
|
style: {
|
|
1359
1359
|
position: "absolute",
|
|
1360
1360
|
left: Re,
|
|
1361
|
-
top:
|
|
1361
|
+
top: de,
|
|
1362
1362
|
width: 160,
|
|
1363
1363
|
height: 180,
|
|
1364
1364
|
transform: "translate(-50%, -80%)",
|
|
@@ -1366,18 +1366,18 @@ function dt({
|
|
|
1366
1366
|
cursor: "pointer",
|
|
1367
1367
|
zIndex: 101
|
|
1368
1368
|
},
|
|
1369
|
-
onClick: (
|
|
1370
|
-
|
|
1369
|
+
onClick: (X) => {
|
|
1370
|
+
X.stopPropagation(), oe?.(t);
|
|
1371
1371
|
}
|
|
1372
1372
|
}
|
|
1373
1373
|
),
|
|
1374
|
-
|
|
1374
|
+
E && (n === "warning" || n === "critical") && /* @__PURE__ */ e(
|
|
1375
1375
|
"div",
|
|
1376
1376
|
{
|
|
1377
1377
|
style: {
|
|
1378
1378
|
position: "absolute",
|
|
1379
1379
|
left: Re,
|
|
1380
|
-
top:
|
|
1380
|
+
top: de - 200,
|
|
1381
1381
|
transform: `translate(-50%, -50%) scale(${Pe})`,
|
|
1382
1382
|
zIndex: 110,
|
|
1383
1383
|
pointerEvents: "none",
|
|
@@ -1424,13 +1424,13 @@ function dt({
|
|
|
1424
1424
|
{
|
|
1425
1425
|
style: {
|
|
1426
1426
|
position: "absolute",
|
|
1427
|
-
left: N ?
|
|
1428
|
-
top: N ? 48 :
|
|
1427
|
+
left: N ? re : Re,
|
|
1428
|
+
top: N ? 48 : de - 180,
|
|
1429
1429
|
transform: `translate(-50%, -50%) scale(${N ? 1.2 : Pe * 1.5})`,
|
|
1430
1430
|
opacity: 1,
|
|
1431
1431
|
pointerEvents: "none",
|
|
1432
1432
|
zIndex: 100,
|
|
1433
|
-
transition:
|
|
1433
|
+
transition: Le,
|
|
1434
1434
|
fontSize: 36,
|
|
1435
1435
|
fontWeight: 700,
|
|
1436
1436
|
letterSpacing: "0.18em",
|
|
@@ -1455,20 +1455,20 @@ function dt({
|
|
|
1455
1455
|
height: 640,
|
|
1456
1456
|
pointerEvents: "none",
|
|
1457
1457
|
zIndex: 0,
|
|
1458
|
-
transition:
|
|
1458
|
+
transition: Le
|
|
1459
1459
|
},
|
|
1460
|
-
children: o.map((
|
|
1461
|
-
|
|
1460
|
+
children: o.map((X, Lt) => /* @__PURE__ */ e(
|
|
1461
|
+
Bt,
|
|
1462
1462
|
{
|
|
1463
|
-
x1:
|
|
1464
|
-
y1:
|
|
1465
|
-
x2:
|
|
1466
|
-
y2:
|
|
1467
|
-
show: Q && F >= (
|
|
1468
|
-
color:
|
|
1469
|
-
dur:
|
|
1463
|
+
x1: X.from[0],
|
|
1464
|
+
y1: X.from[1],
|
|
1465
|
+
x2: X.to[0],
|
|
1466
|
+
y2: X.to[1],
|
|
1467
|
+
show: Q && F >= (X.visibleAtPhase ?? 0),
|
|
1468
|
+
color: X.color,
|
|
1469
|
+
dur: X.duration
|
|
1470
1470
|
},
|
|
1471
|
-
|
|
1471
|
+
Lt
|
|
1472
1472
|
))
|
|
1473
1473
|
}
|
|
1474
1474
|
),
|
|
@@ -1477,13 +1477,13 @@ function dt({
|
|
|
1477
1477
|
{
|
|
1478
1478
|
style: {
|
|
1479
1479
|
position: "absolute",
|
|
1480
|
-
left: N ?
|
|
1481
|
-
top: N ? 570 :
|
|
1480
|
+
left: N ? re : Re,
|
|
1481
|
+
top: N ? 570 : de + 70,
|
|
1482
1482
|
transform: `translate(-50%, -50%) scaleX(${N ? 1 : 0.4}) scaleY(${N ? 1 : 0.6}) scale(${N ? 1 : Pe})`,
|
|
1483
|
-
transition:
|
|
1483
|
+
transition: Le,
|
|
1484
1484
|
zIndex: 1
|
|
1485
1485
|
},
|
|
1486
|
-
children: /* @__PURE__ */ e(
|
|
1486
|
+
children: /* @__PURE__ */ e(Ht, { size: Ct, color: Et, widthRatio: At, children: /* @__PURE__ */ e("div", { className: "base-hotspot" }) })
|
|
1487
1487
|
}
|
|
1488
1488
|
),
|
|
1489
1489
|
r
|
|
@@ -1491,7 +1491,7 @@ function dt({
|
|
|
1491
1491
|
}
|
|
1492
1492
|
) });
|
|
1493
1493
|
}
|
|
1494
|
-
function
|
|
1494
|
+
function C({
|
|
1495
1495
|
ex: t,
|
|
1496
1496
|
ey: n,
|
|
1497
1497
|
compactOffset: o,
|
|
@@ -1500,13 +1500,13 @@ function T({
|
|
|
1500
1500
|
color: a = "#00e5ff",
|
|
1501
1501
|
label: s,
|
|
1502
1502
|
subLabel: l,
|
|
1503
|
-
delay:
|
|
1503
|
+
delay: f = "0s",
|
|
1504
1504
|
componentInfo: c,
|
|
1505
1505
|
visibleAtPhase: p = 0,
|
|
1506
|
-
fixedScale:
|
|
1506
|
+
fixedScale: h,
|
|
1507
1507
|
bare: y = !1
|
|
1508
1508
|
}) {
|
|
1509
|
-
const u = ve(
|
|
1509
|
+
const u = ve(le);
|
|
1510
1510
|
if (!u)
|
|
1511
1511
|
throw new Error("ServiceNode must be used inside a <Service> component.");
|
|
1512
1512
|
const {
|
|
@@ -1517,10 +1517,10 @@ function T({
|
|
|
1517
1517
|
groupScale: $,
|
|
1518
1518
|
effectiveScale: b,
|
|
1519
1519
|
transitionValue: k,
|
|
1520
|
-
onComponentClick:
|
|
1520
|
+
onComponentClick: T,
|
|
1521
1521
|
selectedComponentName: R,
|
|
1522
1522
|
expandedOffsetX: L
|
|
1523
|
-
} = u, F = p === 0 || u.isSelected && m >= p ? 1 : 0,
|
|
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
1524
|
type: c.type,
|
|
1525
1525
|
name: c.name,
|
|
1526
1526
|
status: c.status,
|
|
@@ -1536,21 +1536,21 @@ function T({
|
|
|
1536
1536
|
{
|
|
1537
1537
|
style: {
|
|
1538
1538
|
position: "absolute",
|
|
1539
|
-
left:
|
|
1540
|
-
top:
|
|
1541
|
-
transform: `translate(-50%, -50%) scale(${
|
|
1539
|
+
left: ie,
|
|
1540
|
+
top: ne,
|
|
1541
|
+
transform: `translate(-50%, -50%) scale(${W})`,
|
|
1542
1542
|
opacity: F,
|
|
1543
1543
|
zIndex: i,
|
|
1544
1544
|
transition: k || "all 1s cubic-bezier(0.34, 1.56, 0.64, 1)",
|
|
1545
1545
|
pointerEvents: g && F >= 0.5 ? "auto" : "none"
|
|
1546
1546
|
},
|
|
1547
1547
|
children: y ? r : /* @__PURE__ */ e(
|
|
1548
|
-
|
|
1548
|
+
Vt,
|
|
1549
1549
|
{
|
|
1550
1550
|
statusColor: Se,
|
|
1551
1551
|
label: s,
|
|
1552
1552
|
subLabel: l,
|
|
1553
|
-
delay:
|
|
1553
|
+
delay: f,
|
|
1554
1554
|
showLabels: g,
|
|
1555
1555
|
isCompact: u.isCompact,
|
|
1556
1556
|
onClick: $e,
|
|
@@ -1561,7 +1561,7 @@ function T({
|
|
|
1561
1561
|
}
|
|
1562
1562
|
);
|
|
1563
1563
|
}
|
|
1564
|
-
function
|
|
1564
|
+
function Vt({
|
|
1565
1565
|
children: t,
|
|
1566
1566
|
statusColor: n,
|
|
1567
1567
|
label: o,
|
|
@@ -1570,9 +1570,9 @@ function Ht({
|
|
|
1570
1570
|
showLabels: a = !0,
|
|
1571
1571
|
isCompact: s = !1,
|
|
1572
1572
|
onClick: l,
|
|
1573
|
-
isSelected:
|
|
1573
|
+
isSelected: f = !1
|
|
1574
1574
|
}) {
|
|
1575
|
-
const [c, p] = I(!1),
|
|
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
1576
|
return /* @__PURE__ */ d(
|
|
1577
1577
|
"div",
|
|
1578
1578
|
{
|
|
@@ -1583,7 +1583,7 @@ function Ht({
|
|
|
1583
1583
|
style: {
|
|
1584
1584
|
cursor: l ? "pointer" : void 0,
|
|
1585
1585
|
transition: "filter 0.3s ease",
|
|
1586
|
-
filter:
|
|
1586
|
+
filter: h
|
|
1587
1587
|
},
|
|
1588
1588
|
onMouseEnter: () => p(!0),
|
|
1589
1589
|
onMouseLeave: () => p(!1),
|
|
@@ -1601,7 +1601,7 @@ function Ht({
|
|
|
1601
1601
|
}
|
|
1602
1602
|
}
|
|
1603
1603
|
),
|
|
1604
|
-
/* @__PURE__ */ e("div", { style: s ? { background: "#040c1a", borderRadius: 2 } : void 0, children: s &&
|
|
1604
|
+
/* @__PURE__ */ e("div", { style: s ? { background: "#040c1a", borderRadius: 2 } : void 0, children: s && ee.isValidElement(t) ? ee.cloneElement(t, {
|
|
1605
1605
|
_compact: !0
|
|
1606
1606
|
}) : t })
|
|
1607
1607
|
] }),
|
|
@@ -1622,7 +1622,7 @@ function Ht({
|
|
|
1622
1622
|
}
|
|
1623
1623
|
);
|
|
1624
1624
|
}
|
|
1625
|
-
function
|
|
1625
|
+
function ut({ synced: t, latencyMs: n }) {
|
|
1626
1626
|
const o = t ? "#00ff88" : "#ff8c00";
|
|
1627
1627
|
return /* @__PURE__ */ d("div", { className: "sync-bridge", children: [
|
|
1628
1628
|
/* @__PURE__ */ d("div", { className: "sync-arrows", children: [
|
|
@@ -1657,7 +1657,7 @@ function ct({ synced: t, latencyMs: n }) {
|
|
|
1657
1657
|
] })
|
|
1658
1658
|
] });
|
|
1659
1659
|
}
|
|
1660
|
-
function
|
|
1660
|
+
function O({
|
|
1661
1661
|
ex: t,
|
|
1662
1662
|
ey: n,
|
|
1663
1663
|
status: o,
|
|
@@ -1666,12 +1666,12 @@ function W({
|
|
|
1666
1666
|
offsetX: a,
|
|
1667
1667
|
offsetY: s,
|
|
1668
1668
|
isVisible: l,
|
|
1669
|
-
align:
|
|
1669
|
+
align: f = "right",
|
|
1670
1670
|
internalRef: c
|
|
1671
1671
|
}) {
|
|
1672
|
-
const p = ve(
|
|
1672
|
+
const p = ve(le), h = p?.expandedOffsetX ?? 0;
|
|
1673
1673
|
if (o === "online") return null;
|
|
1674
|
-
const y = l && !!p?.isExpandedPos, u = w[o]?.color ?? w.warning.color, g = Math.abs(a) > Math.abs(s), m = t +
|
|
1674
|
+
const y = l && !!p?.isExpandedPos, u = w[o]?.color ?? w.warning.color, g = Math.abs(a) > Math.abs(s), m = t + h + (g ? Math.sign(a) * 45 : 0), x = n + (g ? 0 : Math.sign(s) * 40), v = t + h + a, $ = n + s;
|
|
1675
1675
|
let b = "";
|
|
1676
1676
|
if (g) {
|
|
1677
1677
|
const L = m + (v - m) / 2;
|
|
@@ -1681,8 +1681,8 @@ function W({
|
|
|
1681
1681
|
b = `M ${m} ${x} L ${m} ${L} L ${v} ${L} L ${v} ${$}`;
|
|
1682
1682
|
}
|
|
1683
1683
|
let k = "translate(0, -50%)";
|
|
1684
|
-
|
|
1685
|
-
const
|
|
1684
|
+
f === "left" && (k = "translate(-100%, -50%)"), f === "top" && (k = "translate(-50%, -100%)"), f === "bottom" && (k = "translate(-50%, 0)");
|
|
1685
|
+
const T = f === "left" ? -8 : f === "right" ? 8 : 0, R = f === "top" ? -8 : f === "bottom" ? 8 : 0;
|
|
1686
1686
|
return /* @__PURE__ */ d(
|
|
1687
1687
|
"div",
|
|
1688
1688
|
{
|
|
@@ -1731,7 +1731,7 @@ function W({
|
|
|
1731
1731
|
left: v,
|
|
1732
1732
|
top: $,
|
|
1733
1733
|
transform: k,
|
|
1734
|
-
marginLeft:
|
|
1734
|
+
marginLeft: T,
|
|
1735
1735
|
marginTop: R,
|
|
1736
1736
|
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
1737
|
border: `1px solid ${u}55`,
|
|
@@ -1804,8 +1804,8 @@ function W({
|
|
|
1804
1804
|
}
|
|
1805
1805
|
);
|
|
1806
1806
|
}
|
|
1807
|
-
const q = 140, U = 240, Z = 160,
|
|
1808
|
-
function
|
|
1807
|
+
const q = 140, U = 240, Z = 160, ce = Ze(q, U, Z);
|
|
1808
|
+
function _t({
|
|
1809
1809
|
cfg: t,
|
|
1810
1810
|
name: n,
|
|
1811
1811
|
cpuLoad: o,
|
|
@@ -1814,7 +1814,7 @@ function Ut({
|
|
|
1814
1814
|
compact: a,
|
|
1815
1815
|
brandLabel: s
|
|
1816
1816
|
}) {
|
|
1817
|
-
const l = Math.ceil(o / 100 * 3),
|
|
1817
|
+
const l = Math.ceil(o / 100 * 3), f = r === "offline" ? "#4a6a8a" : t.color, c = [
|
|
1818
1818
|
{ color: t.color, on: r !== "offline", label: "PWR" },
|
|
1819
1819
|
{ color: t.color, on: r === "online" || r === "warning", label: "NET" },
|
|
1820
1820
|
{ color: t.color, on: o > 15, label: "DSK" },
|
|
@@ -1826,7 +1826,7 @@ function Ut({
|
|
|
1826
1826
|
style: {
|
|
1827
1827
|
width: q,
|
|
1828
1828
|
height: U,
|
|
1829
|
-
background: a ? we :
|
|
1829
|
+
background: a ? we : Ke,
|
|
1830
1830
|
position: "relative",
|
|
1831
1831
|
overflow: "hidden",
|
|
1832
1832
|
fontFamily: "'Courier New', monospace",
|
|
@@ -1900,14 +1900,14 @@ function Ut({
|
|
|
1900
1900
|
{
|
|
1901
1901
|
style: {
|
|
1902
1902
|
fontSize: 7,
|
|
1903
|
-
color:
|
|
1903
|
+
color: f,
|
|
1904
1904
|
letterSpacing: "0.08em",
|
|
1905
|
-
textShadow: `0 0 4px ${
|
|
1905
|
+
textShadow: `0 0 4px ${f}66`
|
|
1906
1906
|
},
|
|
1907
1907
|
children: n
|
|
1908
1908
|
}
|
|
1909
1909
|
),
|
|
1910
|
-
/* @__PURE__ */ e("div", { style: { display: "flex", gap: 5 }, children: c.map((p,
|
|
1910
|
+
/* @__PURE__ */ e("div", { style: { display: "flex", gap: 5 }, children: c.map((p, h) => /* @__PURE__ */ e(
|
|
1911
1911
|
"div",
|
|
1912
1912
|
{
|
|
1913
1913
|
style: {
|
|
@@ -1916,10 +1916,10 @@ function Ut({
|
|
|
1916
1916
|
borderRadius: "50%",
|
|
1917
1917
|
background: p.on ? p.color : "#0a1830",
|
|
1918
1918
|
boxShadow: p.on ? `0 0 6px ${p.color}, 0 0 12px ${p.color}88` : "none",
|
|
1919
|
-
animation: p.on &&
|
|
1919
|
+
animation: p.on && h === 1 ? "holo-led-blink 2.5s linear infinite" : "none"
|
|
1920
1920
|
}
|
|
1921
1921
|
},
|
|
1922
|
-
|
|
1922
|
+
h
|
|
1923
1923
|
)) })
|
|
1924
1924
|
] })
|
|
1925
1925
|
]
|
|
@@ -1986,8 +1986,8 @@ function Ut({
|
|
|
1986
1986
|
}
|
|
1987
1987
|
}
|
|
1988
1988
|
),
|
|
1989
|
-
Array.from({ length: 3 }, (p,
|
|
1990
|
-
const y =
|
|
1989
|
+
Array.from({ length: 3 }, (p, h) => {
|
|
1990
|
+
const y = h < l;
|
|
1991
1991
|
return /* @__PURE__ */ d(
|
|
1992
1992
|
"div",
|
|
1993
1993
|
{
|
|
@@ -1995,7 +1995,7 @@ function Ut({
|
|
|
1995
1995
|
position: "absolute",
|
|
1996
1996
|
left: 8,
|
|
1997
1997
|
right: 8,
|
|
1998
|
-
top: 75 +
|
|
1998
|
+
top: 75 + h * 31,
|
|
1999
1999
|
height: 27,
|
|
2000
2000
|
background: "linear-gradient(90deg, #040a16, #030710, #040a16)",
|
|
2001
2001
|
border: "1px solid #1a2d40",
|
|
@@ -2039,7 +2039,7 @@ function Ut({
|
|
|
2039
2039
|
top: 0,
|
|
2040
2040
|
left: 0,
|
|
2041
2041
|
bottom: 0,
|
|
2042
|
-
width: `${30 + o / 100 * 45 +
|
|
2042
|
+
width: `${30 + o / 100 * 45 + h * 8}%`,
|
|
2043
2043
|
background: `linear-gradient(90deg, ${t.color}22, transparent)`
|
|
2044
2044
|
}
|
|
2045
2045
|
}
|
|
@@ -2062,7 +2062,7 @@ function Ut({
|
|
|
2062
2062
|
)
|
|
2063
2063
|
]
|
|
2064
2064
|
},
|
|
2065
|
-
|
|
2065
|
+
h
|
|
2066
2066
|
);
|
|
2067
2067
|
}),
|
|
2068
2068
|
/* @__PURE__ */ e(
|
|
@@ -2132,7 +2132,7 @@ function Ut({
|
|
|
2132
2132
|
/* @__PURE__ */ e("div", { style: { flex: 1, display: "flex", flexDirection: "column", gap: 4 }, children: [
|
|
2133
2133
|
{ val: o, color: t.color },
|
|
2134
2134
|
{ val: i, color: t.color + "bb" }
|
|
2135
|
-
].map((p,
|
|
2135
|
+
].map((p, h) => /* @__PURE__ */ e(
|
|
2136
2136
|
"div",
|
|
2137
2137
|
{
|
|
2138
2138
|
style: {
|
|
@@ -2153,7 +2153,7 @@ function Ut({
|
|
|
2153
2153
|
}
|
|
2154
2154
|
)
|
|
2155
2155
|
},
|
|
2156
|
-
|
|
2156
|
+
h
|
|
2157
2157
|
)) })
|
|
2158
2158
|
]
|
|
2159
2159
|
}
|
|
@@ -2186,7 +2186,7 @@ function Ut({
|
|
|
2186
2186
|
overflow: "hidden",
|
|
2187
2187
|
opacity: 0.22
|
|
2188
2188
|
},
|
|
2189
|
-
children: Array.from({ length: 100 }).map((p,
|
|
2189
|
+
children: Array.from({ length: 100 }).map((p, h) => /* @__PURE__ */ e(
|
|
2190
2190
|
"div",
|
|
2191
2191
|
{
|
|
2192
2192
|
style: {
|
|
@@ -2196,7 +2196,7 @@ function Ut({
|
|
|
2196
2196
|
background: "#2a6090"
|
|
2197
2197
|
}
|
|
2198
2198
|
},
|
|
2199
|
-
|
|
2199
|
+
h
|
|
2200
2200
|
))
|
|
2201
2201
|
}
|
|
2202
2202
|
),
|
|
@@ -2217,7 +2217,7 @@ function Ut({
|
|
|
2217
2217
|
}
|
|
2218
2218
|
);
|
|
2219
2219
|
}
|
|
2220
|
-
function
|
|
2220
|
+
function Xt() {
|
|
2221
2221
|
return /* @__PURE__ */ d(
|
|
2222
2222
|
"div",
|
|
2223
2223
|
{
|
|
@@ -2331,7 +2331,11 @@ function Yt() {
|
|
|
2331
2331
|
}
|
|
2332
2332
|
);
|
|
2333
2333
|
}
|
|
2334
|
-
function
|
|
2334
|
+
function dt({
|
|
2335
|
+
side: t,
|
|
2336
|
+
color: n,
|
|
2337
|
+
brandLabel: o
|
|
2338
|
+
}) {
|
|
2335
2339
|
const i = t === "right";
|
|
2336
2340
|
return /* @__PURE__ */ d(
|
|
2337
2341
|
"div",
|
|
@@ -2427,7 +2431,7 @@ function ot({ side: t, color: n, brandLabel: o }) {
|
|
|
2427
2431
|
}
|
|
2428
2432
|
);
|
|
2429
2433
|
}
|
|
2430
|
-
function
|
|
2434
|
+
function jt({ cpuLoad: t }) {
|
|
2431
2435
|
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);
|
|
2432
2436
|
return /* @__PURE__ */ d(
|
|
2433
2437
|
"div",
|
|
@@ -2507,7 +2511,7 @@ function Vt({ cpuLoad: t }) {
|
|
|
2507
2511
|
}
|
|
2508
2512
|
);
|
|
2509
2513
|
}
|
|
2510
|
-
function
|
|
2514
|
+
function J({
|
|
2511
2515
|
rotateX: t = -22,
|
|
2512
2516
|
rotateY: n = 20,
|
|
2513
2517
|
rotateZ: o = 0,
|
|
@@ -2516,12 +2520,12 @@ function ue({
|
|
|
2516
2520
|
status: a = "online",
|
|
2517
2521
|
name: s = "SRV-001",
|
|
2518
2522
|
cpuLoad: l = 67,
|
|
2519
|
-
memLoad:
|
|
2523
|
+
memLoad: f = 82,
|
|
2520
2524
|
brandLabel: c = "BUSAUD",
|
|
2521
2525
|
_compact: p
|
|
2522
2526
|
}) {
|
|
2523
|
-
const [
|
|
2524
|
-
|
|
2527
|
+
const [h, y] = I(n), u = te(0), g = te(0);
|
|
2528
|
+
Ae(() => {
|
|
2525
2529
|
if (!r) {
|
|
2526
2530
|
y(n);
|
|
2527
2531
|
return;
|
|
@@ -2619,27 +2623,27 @@ function ue({
|
|
|
2619
2623
|
height: U,
|
|
2620
2624
|
position: "relative",
|
|
2621
2625
|
transformStyle: "preserve-3d",
|
|
2622
|
-
transform: `rotateX(${t}deg) rotateY(${
|
|
2626
|
+
transform: `rotateX(${t}deg) rotateY(${h}deg) rotateZ(${o}deg)`,
|
|
2623
2627
|
transition: r ? "none" : "transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94)"
|
|
2624
2628
|
},
|
|
2625
2629
|
children: [
|
|
2626
|
-
/* @__PURE__ */ e("div", { style:
|
|
2627
|
-
|
|
2630
|
+
/* @__PURE__ */ e("div", { style: ce.front, children: /* @__PURE__ */ e(
|
|
2631
|
+
_t,
|
|
2628
2632
|
{
|
|
2629
2633
|
cfg: m,
|
|
2630
2634
|
name: s,
|
|
2631
2635
|
cpuLoad: l,
|
|
2632
|
-
memLoad:
|
|
2636
|
+
memLoad: f,
|
|
2633
2637
|
status: a,
|
|
2634
2638
|
compact: p,
|
|
2635
2639
|
brandLabel: c
|
|
2636
2640
|
}
|
|
2637
2641
|
) }),
|
|
2638
|
-
/* @__PURE__ */ e("div", { style:
|
|
2639
|
-
/* @__PURE__ */ e("div", { style:
|
|
2640
|
-
/* @__PURE__ */ e("div", { style:
|
|
2641
|
-
/* @__PURE__ */ e("div", { style:
|
|
2642
|
-
/* @__PURE__ */ e("div", { style:
|
|
2642
|
+
/* @__PURE__ */ e("div", { style: ce.back, children: /* @__PURE__ */ e(Xt, {}) }),
|
|
2643
|
+
/* @__PURE__ */ e("div", { style: ce.left, children: /* @__PURE__ */ e(dt, { side: "left", color: m.color, brandLabel: c }) }),
|
|
2644
|
+
/* @__PURE__ */ e("div", { style: ce.right, children: /* @__PURE__ */ e(dt, { side: "right", color: m.color, brandLabel: c }) }),
|
|
2645
|
+
/* @__PURE__ */ e("div", { style: ce.top, children: /* @__PURE__ */ e(jt, { cpuLoad: l }) }),
|
|
2646
|
+
/* @__PURE__ */ e("div", { style: ce.bottom, children: /* @__PURE__ */ e(
|
|
2643
2647
|
"div",
|
|
2644
2648
|
{
|
|
2645
2649
|
style: {
|
|
@@ -2658,11 +2662,11 @@ function ue({
|
|
|
2658
2662
|
}
|
|
2659
2663
|
);
|
|
2660
2664
|
}
|
|
2661
|
-
const
|
|
2662
|
-
function
|
|
2665
|
+
const qe = 12, ae = 55, _ = ae * 2, ue = 52, it = 10, Ue = 3 * ue + 2 * it, pe = 2 * Math.PI * ae / qe, Ye = Array.from({ length: qe }, (t, n) => n / qe * 360);
|
|
2666
|
+
function Ve(t) {
|
|
2663
2667
|
return Math.cos(t * Math.PI / 180) * 0.42 + 0.58;
|
|
2664
2668
|
}
|
|
2665
|
-
function
|
|
2669
|
+
function Qt({
|
|
2666
2670
|
diskY: t,
|
|
2667
2671
|
diskIdx: n,
|
|
2668
2672
|
cfg: o,
|
|
@@ -2671,20 +2675,20 @@ function _t({
|
|
|
2671
2675
|
compact: a
|
|
2672
2676
|
}) {
|
|
2673
2677
|
return /* @__PURE__ */ d(Ce, { children: [
|
|
2674
|
-
|
|
2675
|
-
const
|
|
2678
|
+
Ye.map((s, l) => {
|
|
2679
|
+
const f = Ve(s), c = l === 0, p = Math.round(4 + f * 9), h = Math.round(12 + f * 22), y = Math.round(28 + f * 44), u = Math.round(f * 0.55 * 255).toString(16).padStart(2, "0");
|
|
2676
2680
|
return /* @__PURE__ */ e(
|
|
2677
2681
|
"div",
|
|
2678
2682
|
{
|
|
2679
2683
|
style: {
|
|
2680
2684
|
position: "absolute",
|
|
2681
|
-
width:
|
|
2682
|
-
height:
|
|
2683
|
-
left: (_ -
|
|
2685
|
+
width: pe,
|
|
2686
|
+
height: ue,
|
|
2687
|
+
left: (_ - pe) / 2,
|
|
2684
2688
|
top: t,
|
|
2685
|
-
transform: `rotateY(${s}deg) translateZ(${
|
|
2689
|
+
transform: `rotateY(${s}deg) translateZ(${ae}px)`,
|
|
2686
2690
|
backfaceVisibility: "hidden",
|
|
2687
|
-
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},${
|
|
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},${h},${y})`,
|
|
2688
2692
|
borderLeft: `1px solid ${o.color}${u}`,
|
|
2689
2693
|
boxShadow: c ? `inset 0 0 18px ${o.color}28` : "none"
|
|
2690
2694
|
},
|
|
@@ -2744,7 +2748,7 @@ function _t({
|
|
|
2744
2748
|
width: _ + 4,
|
|
2745
2749
|
height: _ + 4,
|
|
2746
2750
|
left: -2,
|
|
2747
|
-
top: t -
|
|
2751
|
+
top: t - ae,
|
|
2748
2752
|
borderRadius: "50%",
|
|
2749
2753
|
transform: "rotateX(90deg)",
|
|
2750
2754
|
backfaceVisibility: "hidden",
|
|
@@ -2805,7 +2809,7 @@ function _t({
|
|
|
2805
2809
|
width: _ + 4,
|
|
2806
2810
|
height: _ + 4,
|
|
2807
2811
|
left: -2,
|
|
2808
|
-
top: t +
|
|
2812
|
+
top: t + ue - ae,
|
|
2809
2813
|
borderRadius: "50%",
|
|
2810
2814
|
transform: "rotateX(-90deg)",
|
|
2811
2815
|
backfaceVisibility: "hidden",
|
|
@@ -2829,41 +2833,41 @@ function _t({
|
|
|
2829
2833
|
)
|
|
2830
2834
|
}
|
|
2831
2835
|
),
|
|
2832
|
-
i &&
|
|
2833
|
-
const
|
|
2836
|
+
i && Ye.map((s, l) => {
|
|
2837
|
+
const f = Ve(s);
|
|
2834
2838
|
return /* @__PURE__ */ e(
|
|
2835
2839
|
"div",
|
|
2836
2840
|
{
|
|
2837
2841
|
style: {
|
|
2838
2842
|
position: "absolute",
|
|
2839
|
-
width:
|
|
2843
|
+
width: pe + 1.5,
|
|
2840
2844
|
height: 6,
|
|
2841
|
-
left: (_ -
|
|
2842
|
-
top: t +
|
|
2843
|
-
transform: `rotateY(${s}deg) translateZ(${
|
|
2845
|
+
left: (_ - pe - 1.5) / 2,
|
|
2846
|
+
top: t + ue - 3,
|
|
2847
|
+
transform: `rotateY(${s}deg) translateZ(${ae + 1.5}px)`,
|
|
2844
2848
|
backfaceVisibility: "hidden",
|
|
2845
2849
|
background: o.color,
|
|
2846
2850
|
boxShadow: `0 0 8px ${o.color}, 0 0 18px ${o.color}aa, 0 0 30px ${o.glow}`,
|
|
2847
|
-
opacity:
|
|
2851
|
+
opacity: f * 0.9
|
|
2848
2852
|
}
|
|
2849
2853
|
},
|
|
2850
2854
|
`rng${n}${l}`
|
|
2851
2855
|
);
|
|
2852
2856
|
}),
|
|
2853
|
-
i &&
|
|
2854
|
-
const
|
|
2857
|
+
i && Ye.map((s, l) => {
|
|
2858
|
+
const f = Ve(s), c = Math.round(2 + f * 4), p = Math.round(5 + f * 10), h = Math.round(12 + f * 20);
|
|
2855
2859
|
return /* @__PURE__ */ e(
|
|
2856
2860
|
"div",
|
|
2857
2861
|
{
|
|
2858
2862
|
style: {
|
|
2859
2863
|
position: "absolute",
|
|
2860
|
-
width:
|
|
2861
|
-
height:
|
|
2862
|
-
left: (_ -
|
|
2863
|
-
top: t +
|
|
2864
|
-
transform: `rotateY(${s}deg) translateZ(${
|
|
2864
|
+
width: pe,
|
|
2865
|
+
height: it,
|
|
2866
|
+
left: (_ - pe) / 2,
|
|
2867
|
+
top: t + ue,
|
|
2868
|
+
transform: `rotateY(${s}deg) translateZ(${ae}px)`,
|
|
2865
2869
|
backfaceVisibility: "hidden",
|
|
2866
|
-
background: `rgb(${c},${p},${
|
|
2870
|
+
background: `rgb(${c},${p},${h})`
|
|
2867
2871
|
}
|
|
2868
2872
|
},
|
|
2869
2873
|
`gap${n}${l}`
|
|
@@ -2871,7 +2875,7 @@ function _t({
|
|
|
2871
2875
|
})
|
|
2872
2876
|
] });
|
|
2873
2877
|
}
|
|
2874
|
-
function
|
|
2878
|
+
function Ee({
|
|
2875
2879
|
rotateX: t = -22,
|
|
2876
2880
|
rotateY: n = -15,
|
|
2877
2881
|
rotateZ: o = 0,
|
|
@@ -2883,17 +2887,17 @@ function Oe({
|
|
|
2883
2887
|
// connections = 284,
|
|
2884
2888
|
_compact: l
|
|
2885
2889
|
}) {
|
|
2886
|
-
const [
|
|
2887
|
-
|
|
2890
|
+
const [f, c] = I(n), p = te(0), h = te(0);
|
|
2891
|
+
Ae(() => {
|
|
2888
2892
|
if (!r) {
|
|
2889
2893
|
c(n);
|
|
2890
2894
|
return;
|
|
2891
2895
|
}
|
|
2892
2896
|
const u = (g) => {
|
|
2893
|
-
|
|
2897
|
+
h.current && c((m) => m + (g - h.current) * 0.027), h.current = g, p.current = requestAnimationFrame(u);
|
|
2894
2898
|
};
|
|
2895
2899
|
return p.current = requestAnimationFrame(u), () => {
|
|
2896
|
-
cancelAnimationFrame(p.current),
|
|
2900
|
+
cancelAnimationFrame(p.current), h.current = 0;
|
|
2897
2901
|
};
|
|
2898
2902
|
}, [r, n]);
|
|
2899
2903
|
const y = w[a] ?? w.online;
|
|
@@ -2902,7 +2906,7 @@ function Oe({
|
|
|
2902
2906
|
{
|
|
2903
2907
|
style: {
|
|
2904
2908
|
width: _ * i,
|
|
2905
|
-
height:
|
|
2909
|
+
height: Ue * i,
|
|
2906
2910
|
position: "relative",
|
|
2907
2911
|
display: "flex",
|
|
2908
2912
|
alignItems: "center",
|
|
@@ -2963,7 +2967,7 @@ function Oe({
|
|
|
2963
2967
|
style: {
|
|
2964
2968
|
position: "absolute",
|
|
2965
2969
|
width: _ * 2.8 * i,
|
|
2966
|
-
height:
|
|
2970
|
+
height: Ue * 0.85 * i,
|
|
2967
2971
|
background: `radial-gradient(ellipse, ${y.glow} 0%, transparent 65%)`,
|
|
2968
2972
|
filter: `blur(${Math.round(50 * i)}px)`,
|
|
2969
2973
|
pointerEvents: "none",
|
|
@@ -2987,16 +2991,16 @@ function Oe({
|
|
|
2987
2991
|
{
|
|
2988
2992
|
style: {
|
|
2989
2993
|
width: _,
|
|
2990
|
-
height:
|
|
2994
|
+
height: Ue,
|
|
2991
2995
|
position: "relative",
|
|
2992
2996
|
transformStyle: "preserve-3d",
|
|
2993
|
-
transform: `rotateX(${t}deg) rotateY(${
|
|
2997
|
+
transform: `rotateX(${t}deg) rotateY(${f}deg) rotateZ(${o}deg)`,
|
|
2994
2998
|
transition: r ? "none" : "transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94)"
|
|
2995
2999
|
},
|
|
2996
3000
|
children: [0, 1, 2].map((u) => /* @__PURE__ */ e(
|
|
2997
|
-
|
|
3001
|
+
Qt,
|
|
2998
3002
|
{
|
|
2999
|
-
diskY: u * (
|
|
3003
|
+
diskY: u * (ue + it),
|
|
3000
3004
|
diskIdx: u,
|
|
3001
3005
|
cfg: y,
|
|
3002
3006
|
hasRingBelow: u < 2,
|
|
@@ -3013,8 +3017,8 @@ function Oe({
|
|
|
3013
3017
|
}
|
|
3014
3018
|
);
|
|
3015
3019
|
}
|
|
3016
|
-
const G = 190, Y = 72, be = 120,
|
|
3017
|
-
function
|
|
3020
|
+
const G = 190, Y = 72, be = 120, fe = Ze(G, Y, be);
|
|
3021
|
+
function qt({
|
|
3018
3022
|
cfg: t,
|
|
3019
3023
|
name: n,
|
|
3020
3024
|
traffic: o,
|
|
@@ -3028,7 +3032,7 @@ function jt({
|
|
|
3028
3032
|
style: {
|
|
3029
3033
|
width: G,
|
|
3030
3034
|
height: Y,
|
|
3031
|
-
background: r ? we :
|
|
3035
|
+
background: r ? we : Ke,
|
|
3032
3036
|
position: "relative",
|
|
3033
3037
|
overflow: "hidden",
|
|
3034
3038
|
fontFamily: "'Courier New', monospace",
|
|
@@ -3113,8 +3117,8 @@ function jt({
|
|
|
3113
3117
|
gap: 10
|
|
3114
3118
|
},
|
|
3115
3119
|
children: [
|
|
3116
|
-
/* @__PURE__ */ e("div", { style: { display: "flex", gap: 3, alignItems: "center" }, children: Array.from({ length: 8 }, (l,
|
|
3117
|
-
const c =
|
|
3120
|
+
/* @__PURE__ */ e("div", { style: { display: "flex", gap: 3, alignItems: "center" }, children: Array.from({ length: 8 }, (l, f) => {
|
|
3121
|
+
const c = f < a, p = s[f];
|
|
3118
3122
|
return /* @__PURE__ */ d(
|
|
3119
3123
|
"div",
|
|
3120
3124
|
{
|
|
@@ -3166,13 +3170,13 @@ function jt({
|
|
|
3166
3170
|
background: c ? t.color : "#0a1830",
|
|
3167
3171
|
boxShadow: c ? `0 0 5px ${t.color}` : "none",
|
|
3168
3172
|
animation: c ? "holo-led-blink 1.8s linear infinite" : "none",
|
|
3169
|
-
animationDelay: `${
|
|
3173
|
+
animationDelay: `${f * 0.2}s`
|
|
3170
3174
|
}
|
|
3171
3175
|
}
|
|
3172
3176
|
)
|
|
3173
3177
|
]
|
|
3174
3178
|
},
|
|
3175
|
-
|
|
3179
|
+
f
|
|
3176
3180
|
);
|
|
3177
3181
|
}) }),
|
|
3178
3182
|
/* @__PURE__ */ e(
|
|
@@ -3276,7 +3280,7 @@ function jt({
|
|
|
3276
3280
|
}
|
|
3277
3281
|
);
|
|
3278
3282
|
}
|
|
3279
|
-
function
|
|
3283
|
+
function Gt() {
|
|
3280
3284
|
return /* @__PURE__ */ d(
|
|
3281
3285
|
"div",
|
|
3282
3286
|
{
|
|
@@ -3364,7 +3368,7 @@ function Xt() {
|
|
|
3364
3368
|
}
|
|
3365
3369
|
);
|
|
3366
3370
|
}
|
|
3367
|
-
function
|
|
3371
|
+
function ct({ side: t, color: n }) {
|
|
3368
3372
|
return /* @__PURE__ */ d(
|
|
3369
3373
|
"div",
|
|
3370
3374
|
{
|
|
@@ -3421,7 +3425,7 @@ function rt({ side: t, color: n }) {
|
|
|
3421
3425
|
}
|
|
3422
3426
|
);
|
|
3423
3427
|
}
|
|
3424
|
-
function
|
|
3428
|
+
function Kt({ traffic: t }) {
|
|
3425
3429
|
const n = Math.floor((be - 14) / 7);
|
|
3426
3430
|
return /* @__PURE__ */ d(
|
|
3427
3431
|
"div",
|
|
@@ -3480,7 +3484,7 @@ function Qt({ traffic: t }) {
|
|
|
3480
3484
|
}
|
|
3481
3485
|
);
|
|
3482
3486
|
}
|
|
3483
|
-
function
|
|
3487
|
+
function nt({
|
|
3484
3488
|
rotateX: t = -20,
|
|
3485
3489
|
rotateY: n = 20,
|
|
3486
3490
|
rotateZ: o = 0,
|
|
@@ -3489,17 +3493,17 @@ function pt({
|
|
|
3489
3493
|
status: a = "online",
|
|
3490
3494
|
name: s = "WEB-DISP-01",
|
|
3491
3495
|
traffic: l = 78,
|
|
3492
|
-
activeRoutes:
|
|
3496
|
+
activeRoutes: f = 12,
|
|
3493
3497
|
_compact: c
|
|
3494
3498
|
}) {
|
|
3495
|
-
const [p,
|
|
3496
|
-
|
|
3499
|
+
const [p, h] = I(n), y = te(0), u = te(0);
|
|
3500
|
+
Ae(() => {
|
|
3497
3501
|
if (!r) {
|
|
3498
|
-
|
|
3502
|
+
h(n);
|
|
3499
3503
|
return;
|
|
3500
3504
|
}
|
|
3501
3505
|
const m = (x) => {
|
|
3502
|
-
u.current &&
|
|
3506
|
+
u.current && h((v) => v + (x - u.current) * 0.027), u.current = x, y.current = requestAnimationFrame(m);
|
|
3503
3507
|
};
|
|
3504
3508
|
return y.current = requestAnimationFrame(m), () => {
|
|
3505
3509
|
cancelAnimationFrame(y.current), u.current = 0;
|
|
@@ -3603,21 +3607,21 @@ function pt({
|
|
|
3603
3607
|
transition: r ? "none" : "transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94)"
|
|
3604
3608
|
},
|
|
3605
3609
|
children: [
|
|
3606
|
-
/* @__PURE__ */ e("div", { style:
|
|
3607
|
-
|
|
3610
|
+
/* @__PURE__ */ e("div", { style: fe.front, children: /* @__PURE__ */ e(
|
|
3611
|
+
qt,
|
|
3608
3612
|
{
|
|
3609
3613
|
cfg: g,
|
|
3610
3614
|
name: s,
|
|
3611
3615
|
traffic: l,
|
|
3612
|
-
activeRoutes:
|
|
3616
|
+
activeRoutes: f,
|
|
3613
3617
|
compact: c
|
|
3614
3618
|
}
|
|
3615
3619
|
) }),
|
|
3616
|
-
/* @__PURE__ */ e("div", { style:
|
|
3617
|
-
/* @__PURE__ */ e("div", { style:
|
|
3618
|
-
/* @__PURE__ */ e("div", { style:
|
|
3619
|
-
/* @__PURE__ */ e("div", { style:
|
|
3620
|
-
/* @__PURE__ */ e("div", { style:
|
|
3620
|
+
/* @__PURE__ */ e("div", { style: fe.back, children: /* @__PURE__ */ e(Gt, {}) }),
|
|
3621
|
+
/* @__PURE__ */ e("div", { style: fe.left, children: /* @__PURE__ */ e(ct, { side: "left", color: g.color }) }),
|
|
3622
|
+
/* @__PURE__ */ e("div", { style: fe.right, children: /* @__PURE__ */ e(ct, { side: "right", color: g.color }) }),
|
|
3623
|
+
/* @__PURE__ */ e("div", { style: fe.top, children: /* @__PURE__ */ e(Kt, { traffic: l }) }),
|
|
3624
|
+
/* @__PURE__ */ e("div", { style: fe.bottom, children: /* @__PURE__ */ e("div", { style: { width: G, height: be, background: "#020508" } }) })
|
|
3621
3625
|
]
|
|
3622
3626
|
}
|
|
3623
3627
|
)
|
|
@@ -3627,13 +3631,13 @@ function pt({
|
|
|
3627
3631
|
}
|
|
3628
3632
|
);
|
|
3629
3633
|
}
|
|
3630
|
-
const K = 190, V = 72, ge = 120,
|
|
3634
|
+
const K = 190, V = 72, ge = 120, he = Ze(K, V, ge), pt = {
|
|
3631
3635
|
online: { color: "#bb55ff", glow: "rgba(187,85,255,0.50)" },
|
|
3632
3636
|
warning: { color: "#ff8c00", glow: "rgba(255,140,0,0.50)" },
|
|
3633
3637
|
critical: { color: "#ff2255", glow: "rgba(255,34,85,0.50)" },
|
|
3634
3638
|
offline: { color: "#1e3a5a", glow: "rgba(30,58,90,0.25)" }
|
|
3635
3639
|
};
|
|
3636
|
-
function
|
|
3640
|
+
function Zt({
|
|
3637
3641
|
cfg: t,
|
|
3638
3642
|
name: n,
|
|
3639
3643
|
queueDepth: o,
|
|
@@ -3648,7 +3652,7 @@ function qt({
|
|
|
3648
3652
|
style: {
|
|
3649
3653
|
width: K,
|
|
3650
3654
|
height: V,
|
|
3651
|
-
background: a ? we :
|
|
3655
|
+
background: a ? we : Ke,
|
|
3652
3656
|
position: "relative",
|
|
3653
3657
|
overflow: "hidden",
|
|
3654
3658
|
fontFamily: "'Courier New', monospace",
|
|
@@ -3733,7 +3737,7 @@ function qt({
|
|
|
3733
3737
|
gap: 10
|
|
3734
3738
|
},
|
|
3735
3739
|
children: [
|
|
3736
|
-
/* @__PURE__ */ e("div", { style: { display: "flex", gap: 3, alignItems: "center" }, children: Array.from({ length: 5 }, (
|
|
3740
|
+
/* @__PURE__ */ e("div", { style: { display: "flex", gap: 3, alignItems: "center" }, children: Array.from({ length: 5 }, (f, c) => {
|
|
3737
3741
|
const p = c < r;
|
|
3738
3742
|
return /* @__PURE__ */ d(
|
|
3739
3743
|
"div",
|
|
@@ -3865,14 +3869,14 @@ function qt({
|
|
|
3865
3869
|
{ label: "INST", val: r, unit: "conn" },
|
|
3866
3870
|
{ label: "ENQUEUE", val: Math.round(o * 2.4), unit: "msgs" },
|
|
3867
3871
|
{ label: "DISP", val: Math.round(i * 0.1), unit: "/s" }
|
|
3868
|
-
].map((
|
|
3869
|
-
/* @__PURE__ */ e("span", { style: { fontSize: 6, color: "#1e3a5a", letterSpacing: "0.08em" }, children:
|
|
3872
|
+
].map((f) => /* @__PURE__ */ d("div", { style: { display: "flex", gap: 3 }, children: [
|
|
3873
|
+
/* @__PURE__ */ e("span", { style: { fontSize: 6, color: "#1e3a5a", letterSpacing: "0.08em" }, children: f.label }),
|
|
3870
3874
|
/* @__PURE__ */ d("span", { style: { fontSize: 6, color: s + "88" }, children: [
|
|
3871
|
-
|
|
3875
|
+
f.val,
|
|
3872
3876
|
" ",
|
|
3873
|
-
|
|
3877
|
+
f.unit
|
|
3874
3878
|
] })
|
|
3875
|
-
] },
|
|
3879
|
+
] }, f.label))
|
|
3876
3880
|
}
|
|
3877
3881
|
),
|
|
3878
3882
|
/* @__PURE__ */ e(
|
|
@@ -3892,7 +3896,7 @@ function qt({
|
|
|
3892
3896
|
}
|
|
3893
3897
|
);
|
|
3894
3898
|
}
|
|
3895
|
-
function
|
|
3899
|
+
function Jt() {
|
|
3896
3900
|
return /* @__PURE__ */ d(
|
|
3897
3901
|
"div",
|
|
3898
3902
|
{
|
|
@@ -3980,7 +3984,7 @@ function Gt() {
|
|
|
3980
3984
|
}
|
|
3981
3985
|
);
|
|
3982
3986
|
}
|
|
3983
|
-
function
|
|
3987
|
+
function ft({ side: t, color: n }) {
|
|
3984
3988
|
return /* @__PURE__ */ d(
|
|
3985
3989
|
"div",
|
|
3986
3990
|
{
|
|
@@ -4037,7 +4041,7 @@ function lt({ side: t, color: n }) {
|
|
|
4037
4041
|
}
|
|
4038
4042
|
);
|
|
4039
4043
|
}
|
|
4040
|
-
function
|
|
4044
|
+
function ei({ queueDepth: t, color: n }) {
|
|
4041
4045
|
const o = Math.floor((ge - 14) / 7);
|
|
4042
4046
|
return /* @__PURE__ */ d(
|
|
4043
4047
|
"div",
|
|
@@ -4096,7 +4100,7 @@ function Kt({ queueDepth: t, color: n }) {
|
|
|
4096
4100
|
}
|
|
4097
4101
|
);
|
|
4098
4102
|
}
|
|
4099
|
-
function
|
|
4103
|
+
function bt({
|
|
4100
4104
|
rotateX: t = -20,
|
|
4101
4105
|
rotateY: n = 20,
|
|
4102
4106
|
rotateZ: o = 0,
|
|
@@ -4105,12 +4109,12 @@ function Zt({
|
|
|
4105
4109
|
status: a = "online",
|
|
4106
4110
|
name: s = "MSG-SRV-01",
|
|
4107
4111
|
queueDepth: l = 45,
|
|
4108
|
-
msgsPerSec:
|
|
4112
|
+
msgsPerSec: f = 230,
|
|
4109
4113
|
instances: c = 3,
|
|
4110
4114
|
_compact: p
|
|
4111
4115
|
}) {
|
|
4112
|
-
const [
|
|
4113
|
-
|
|
4116
|
+
const [h, y] = I(n), u = te(0), g = te(0);
|
|
4117
|
+
Ae(() => {
|
|
4114
4118
|
if (!r) {
|
|
4115
4119
|
y(n);
|
|
4116
4120
|
return;
|
|
@@ -4122,7 +4126,7 @@ function Zt({
|
|
|
4122
4126
|
cancelAnimationFrame(u.current), g.current = 0;
|
|
4123
4127
|
};
|
|
4124
4128
|
}, [r, n]);
|
|
4125
|
-
const m =
|
|
4129
|
+
const m = pt[a] ?? pt.online;
|
|
4126
4130
|
return /* @__PURE__ */ d(
|
|
4127
4131
|
"div",
|
|
4128
4132
|
{
|
|
@@ -4216,26 +4220,26 @@ function Zt({
|
|
|
4216
4220
|
height: V,
|
|
4217
4221
|
position: "relative",
|
|
4218
4222
|
transformStyle: "preserve-3d",
|
|
4219
|
-
transform: `rotateX(${t}deg) rotateY(${
|
|
4223
|
+
transform: `rotateX(${t}deg) rotateY(${h}deg) rotateZ(${o}deg)`,
|
|
4220
4224
|
transition: r ? "none" : "transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94)"
|
|
4221
4225
|
},
|
|
4222
4226
|
children: [
|
|
4223
|
-
/* @__PURE__ */ e("div", { style:
|
|
4224
|
-
|
|
4227
|
+
/* @__PURE__ */ e("div", { style: he.front, children: /* @__PURE__ */ e(
|
|
4228
|
+
Zt,
|
|
4225
4229
|
{
|
|
4226
4230
|
cfg: m,
|
|
4227
4231
|
name: s,
|
|
4228
4232
|
queueDepth: l,
|
|
4229
|
-
msgsPerSec:
|
|
4233
|
+
msgsPerSec: f,
|
|
4230
4234
|
instances: c,
|
|
4231
4235
|
compact: p
|
|
4232
4236
|
}
|
|
4233
4237
|
) }),
|
|
4234
|
-
/* @__PURE__ */ e("div", { style:
|
|
4235
|
-
/* @__PURE__ */ e("div", { style:
|
|
4236
|
-
/* @__PURE__ */ e("div", { style:
|
|
4237
|
-
/* @__PURE__ */ e("div", { style:
|
|
4238
|
-
/* @__PURE__ */ e("div", { style:
|
|
4238
|
+
/* @__PURE__ */ e("div", { style: he.back, children: /* @__PURE__ */ e(Jt, {}) }),
|
|
4239
|
+
/* @__PURE__ */ e("div", { style: he.left, children: /* @__PURE__ */ e(ft, { side: "left", color: m.color }) }),
|
|
4240
|
+
/* @__PURE__ */ e("div", { style: he.right, children: /* @__PURE__ */ e(ft, { side: "right", color: m.color }) }),
|
|
4241
|
+
/* @__PURE__ */ e("div", { style: he.top, children: /* @__PURE__ */ e(ei, { queueDepth: l, color: m.color }) }),
|
|
4242
|
+
/* @__PURE__ */ e("div", { style: he.bottom, children: /* @__PURE__ */ e("div", { style: { width: K, height: ge, background: "#020508" } }) })
|
|
4239
4243
|
]
|
|
4240
4244
|
}
|
|
4241
4245
|
)
|
|
@@ -4245,7 +4249,7 @@ function Zt({
|
|
|
4245
4249
|
}
|
|
4246
4250
|
);
|
|
4247
4251
|
}
|
|
4248
|
-
function
|
|
4252
|
+
function gt({ status: t = "online", scale: n = 1 }) {
|
|
4249
4253
|
const i = (w[t] ?? w.online).color;
|
|
4250
4254
|
return /* @__PURE__ */ e(
|
|
4251
4255
|
"div",
|
|
@@ -4363,9 +4367,9 @@ function P(t, n, o = 24) {
|
|
|
4363
4367
|
return Math.min(100, Math.max(0, t + Math.sin(a * Math.PI * 2) * n + (Math.random() - 0.5) * 10));
|
|
4364
4368
|
});
|
|
4365
4369
|
}
|
|
4366
|
-
function
|
|
4367
|
-
const r = o, a = Math.max(...t, 1), s = t.map((l,
|
|
4368
|
-
const c =
|
|
4370
|
+
function ti({ data: t, color: n, height: o = 28 }) {
|
|
4371
|
+
const r = o, a = Math.max(...t, 1), s = t.map((l, f) => {
|
|
4372
|
+
const c = f / (t.length - 1) * 120, p = r - l / a * (r - 4) - 2;
|
|
4369
4373
|
return `${c},${p}`;
|
|
4370
4374
|
}).join(" ");
|
|
4371
4375
|
return /* @__PURE__ */ e("svg", { width: 120, height: r, style: { display: "block", overflow: "visible" }, children: /* @__PURE__ */ e(
|
|
@@ -4381,7 +4385,7 @@ function Jt({ data: t, color: n, height: o = 28 }) {
|
|
|
4381
4385
|
}
|
|
4382
4386
|
) });
|
|
4383
4387
|
}
|
|
4384
|
-
function
|
|
4388
|
+
function ii({
|
|
4385
4389
|
type: t,
|
|
4386
4390
|
name: n,
|
|
4387
4391
|
context: o = {},
|
|
@@ -4389,7 +4393,7 @@ function ei({
|
|
|
4389
4393
|
animPhase: r,
|
|
4390
4394
|
series: a
|
|
4391
4395
|
}) {
|
|
4392
|
-
const s = i === "critical" || i === "offline" ? "#ff2255" : i === "warning" ? "#ff8c00" : "#00e5ff", l = a ? a.map((p) => ({ ...p })) :
|
|
4396
|
+
const s = i === "critical" || i === "offline" ? "#ff2255" : i === "warning" ? "#ff8c00" : "#00e5ff", l = a ? a.map((p) => ({ ...p })) : ni(t, o), f = r >= 0.3 ? 0 : -280, c = r >= 0.2 ? 1 : 0;
|
|
4393
4397
|
return /* @__PURE__ */ d(
|
|
4394
4398
|
"div",
|
|
4395
4399
|
{
|
|
@@ -4403,7 +4407,7 @@ function ei({
|
|
|
4403
4407
|
display: "flex",
|
|
4404
4408
|
flexDirection: "column",
|
|
4405
4409
|
overflow: "hidden",
|
|
4406
|
-
transform: `translateX(${
|
|
4410
|
+
transform: `translateX(${f}px)`,
|
|
4407
4411
|
opacity: c,
|
|
4408
4412
|
transition: "transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease"
|
|
4409
4413
|
},
|
|
@@ -4425,7 +4429,7 @@ function ei({
|
|
|
4425
4429
|
]
|
|
4426
4430
|
}
|
|
4427
4431
|
),
|
|
4428
|
-
/* @__PURE__ */ e("div", { style: { flex: 1, overflowY: "auto", padding: "12px 10px", display: "flex", flexDirection: "column", gap: 16 }, children: l.map((p,
|
|
4432
|
+
/* @__PURE__ */ e("div", { style: { flex: 1, overflowY: "auto", padding: "12px 10px", display: "flex", flexDirection: "column", gap: 16 }, children: l.map((p, h) => /* @__PURE__ */ d(
|
|
4429
4433
|
"div",
|
|
4430
4434
|
{
|
|
4431
4435
|
style: {
|
|
@@ -4433,7 +4437,7 @@ function ei({
|
|
|
4433
4437
|
background: "rgba(0, 20, 40, 0.35)",
|
|
4434
4438
|
border: `1px solid ${p.color}22`,
|
|
4435
4439
|
borderRadius: 6,
|
|
4436
|
-
transition: `opacity 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) ${
|
|
4440
|
+
transition: `opacity 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) ${h * 0.04}s`,
|
|
4437
4441
|
opacity: r >= 0.5 ? 1 : 0
|
|
4438
4442
|
},
|
|
4439
4443
|
children: [
|
|
@@ -4444,7 +4448,7 @@ function ei({
|
|
|
4444
4448
|
p.unit
|
|
4445
4449
|
] })
|
|
4446
4450
|
] }),
|
|
4447
|
-
/* @__PURE__ */ e(
|
|
4451
|
+
/* @__PURE__ */ e(ti, { data: p.data, color: p.color, height: 26 })
|
|
4448
4452
|
]
|
|
4449
4453
|
},
|
|
4450
4454
|
p.id
|
|
@@ -4453,7 +4457,7 @@ function ei({
|
|
|
4453
4457
|
}
|
|
4454
4458
|
);
|
|
4455
4459
|
}
|
|
4456
|
-
function
|
|
4460
|
+
function ni(t, n) {
|
|
4457
4461
|
if (t === "server") {
|
|
4458
4462
|
const o = n.cpuLoad ?? 50, i = n.memLoad ?? 60;
|
|
4459
4463
|
return [
|
|
@@ -4489,7 +4493,7 @@ function ti(t, n) {
|
|
|
4489
4493
|
}
|
|
4490
4494
|
return [];
|
|
4491
4495
|
}
|
|
4492
|
-
function
|
|
4496
|
+
function yt({
|
|
4493
4497
|
w: t,
|
|
4494
4498
|
h: n,
|
|
4495
4499
|
color: o,
|
|
@@ -4582,7 +4586,7 @@ function ht({
|
|
|
4582
4586
|
}
|
|
4583
4587
|
);
|
|
4584
4588
|
}
|
|
4585
|
-
function
|
|
4589
|
+
function We({
|
|
4586
4590
|
color: t = "#00e5ff",
|
|
4587
4591
|
label: n = "CPU-0",
|
|
4588
4592
|
status: o = "online",
|
|
@@ -4693,7 +4697,7 @@ function De({
|
|
|
4693
4697
|
)
|
|
4694
4698
|
] });
|
|
4695
4699
|
}
|
|
4696
|
-
function
|
|
4700
|
+
function ze({
|
|
4697
4701
|
color: t = "#00e5ff",
|
|
4698
4702
|
label: n = "HEAP-0",
|
|
4699
4703
|
status: o = "online",
|
|
@@ -4796,7 +4800,7 @@ function ye({
|
|
|
4796
4800
|
status: o = "online",
|
|
4797
4801
|
activity: i = !1
|
|
4798
4802
|
}) {
|
|
4799
|
-
return /* @__PURE__ */ d(
|
|
4803
|
+
return /* @__PURE__ */ d(yt, { w: 56, h: 22, color: t, label: n, status: o, children: [
|
|
4800
4804
|
/* @__PURE__ */ e(
|
|
4801
4805
|
"div",
|
|
4802
4806
|
{
|
|
@@ -4829,7 +4833,7 @@ function ye({
|
|
|
4829
4833
|
)
|
|
4830
4834
|
] });
|
|
4831
4835
|
}
|
|
4832
|
-
function
|
|
4836
|
+
function mt({
|
|
4833
4837
|
color: t = "#00e5ff",
|
|
4834
4838
|
label: n = "NET",
|
|
4835
4839
|
status: o = "online"
|
|
@@ -4893,14 +4897,14 @@ function ut({
|
|
|
4893
4897
|
}
|
|
4894
4898
|
);
|
|
4895
4899
|
}
|
|
4896
|
-
function
|
|
4900
|
+
function D({
|
|
4897
4901
|
color: t = "#00e5ff",
|
|
4898
4902
|
label: n = "THREAD",
|
|
4899
4903
|
status: o = "online"
|
|
4900
4904
|
}) {
|
|
4901
|
-
return /* @__PURE__ */ e(
|
|
4905
|
+
return /* @__PURE__ */ e(yt, { w: 44, h: 28, color: t, label: n, status: o });
|
|
4902
4906
|
}
|
|
4903
|
-
function
|
|
4907
|
+
function Oe({
|
|
4904
4908
|
color: t = "#ff8c00",
|
|
4905
4909
|
label: n = "PLATTER-0",
|
|
4906
4910
|
status: o = "online",
|
|
@@ -5054,7 +5058,7 @@ function B({
|
|
|
5054
5058
|
}
|
|
5055
5059
|
);
|
|
5056
5060
|
}
|
|
5057
|
-
function
|
|
5061
|
+
function oi(t, n, o, i) {
|
|
5058
5062
|
const r = o === "online" ? "online" : o;
|
|
5059
5063
|
return t === "server" ? [
|
|
5060
5064
|
{
|
|
@@ -5158,8 +5162,8 @@ function ii(t, n, o, i) {
|
|
|
5158
5162
|
}
|
|
5159
5163
|
] : [];
|
|
5160
5164
|
}
|
|
5161
|
-
const
|
|
5162
|
-
function
|
|
5165
|
+
const A = "cubic-bezier(0.34, 1.56, 0.64, 1)", ri = "cubic-bezier(0.16, 1, 0.3, 1)";
|
|
5166
|
+
function ai({ items: t, revealPhase: n }) {
|
|
5163
5167
|
return /* @__PURE__ */ e(
|
|
5164
5168
|
"div",
|
|
5165
5169
|
{
|
|
@@ -5177,7 +5181,7 @@ function oi({ items: t, revealPhase: n }) {
|
|
|
5177
5181
|
style: {
|
|
5178
5182
|
opacity: n >= 0.2 + i * 0.06 ? 1 : 0,
|
|
5179
5183
|
transform: `scale(${n >= 0.2 + i * 0.06 ? 1 : 0.6})`,
|
|
5180
|
-
transition: `opacity 0.4s ${
|
|
5184
|
+
transition: `opacity 0.4s ${A} ${i * 0.06}s, transform 0.45s ${A} ${i * 0.06}s`
|
|
5181
5185
|
},
|
|
5182
5186
|
children: o.element
|
|
5183
5187
|
},
|
|
@@ -5186,7 +5190,7 @@ function oi({ items: t, revealPhase: n }) {
|
|
|
5186
5190
|
}
|
|
5187
5191
|
);
|
|
5188
5192
|
}
|
|
5189
|
-
function
|
|
5193
|
+
function li({
|
|
5190
5194
|
type: t,
|
|
5191
5195
|
status: n,
|
|
5192
5196
|
context: o,
|
|
@@ -5195,12 +5199,12 @@ function ri({
|
|
|
5195
5199
|
}) {
|
|
5196
5200
|
const a = w[n]?.color ?? w.online.color, s = "#ff8c00";
|
|
5197
5201
|
if (t === "server") {
|
|
5198
|
-
const l = o.cpuLoad ?? 50,
|
|
5202
|
+
const l = o.cpuLoad ?? 50, f = o.memLoad ?? 60, c = [
|
|
5199
5203
|
{
|
|
5200
5204
|
key: "cpu0",
|
|
5201
5205
|
delay: 0,
|
|
5202
5206
|
el: /* @__PURE__ */ e(
|
|
5203
|
-
|
|
5207
|
+
We,
|
|
5204
5208
|
{
|
|
5205
5209
|
color: a,
|
|
5206
5210
|
label: "CPU-0",
|
|
@@ -5214,7 +5218,7 @@ function ri({
|
|
|
5214
5218
|
key: "cpu1",
|
|
5215
5219
|
delay: 1,
|
|
5216
5220
|
el: /* @__PURE__ */ e(
|
|
5217
|
-
|
|
5221
|
+
We,
|
|
5218
5222
|
{
|
|
5219
5223
|
color: a,
|
|
5220
5224
|
label: "CPU-1",
|
|
@@ -5228,12 +5232,12 @@ function ri({
|
|
|
5228
5232
|
key: "heap0",
|
|
5229
5233
|
delay: 2,
|
|
5230
5234
|
el: /* @__PURE__ */ e(
|
|
5231
|
-
|
|
5235
|
+
ze,
|
|
5232
5236
|
{
|
|
5233
5237
|
color: "#8855ee",
|
|
5234
5238
|
label: "HEAP-0",
|
|
5235
5239
|
status: i[2]?.status,
|
|
5236
|
-
usedPercent:
|
|
5240
|
+
usedPercent: f,
|
|
5237
5241
|
delay: "0.1s"
|
|
5238
5242
|
}
|
|
5239
5243
|
)
|
|
@@ -5242,12 +5246,12 @@ function ri({
|
|
|
5242
5246
|
key: "heap1",
|
|
5243
5247
|
delay: 3,
|
|
5244
5248
|
el: /* @__PURE__ */ e(
|
|
5245
|
-
|
|
5249
|
+
ze,
|
|
5246
5250
|
{
|
|
5247
5251
|
color: "#8855ee",
|
|
5248
5252
|
label: "HEAP-1",
|
|
5249
5253
|
status: i[3]?.status,
|
|
5250
|
-
usedPercent:
|
|
5254
|
+
usedPercent: f * 0.85,
|
|
5251
5255
|
delay: "0.3s"
|
|
5252
5256
|
}
|
|
5253
5257
|
)
|
|
@@ -5286,12 +5290,12 @@ function ri({
|
|
|
5286
5290
|
{
|
|
5287
5291
|
key: "thread",
|
|
5288
5292
|
delay: 7,
|
|
5289
|
-
el: /* @__PURE__ */ e(
|
|
5293
|
+
el: /* @__PURE__ */ e(D, { color: a, label: "THREAD-POOL", status: i[7]?.status })
|
|
5290
5294
|
},
|
|
5291
5295
|
{
|
|
5292
5296
|
key: "net",
|
|
5293
5297
|
delay: 8,
|
|
5294
|
-
el: /* @__PURE__ */ e(
|
|
5298
|
+
el: /* @__PURE__ */ e(mt, { color: a, label: "NET", status: i[8]?.status })
|
|
5295
5299
|
}
|
|
5296
5300
|
];
|
|
5297
5301
|
return /* @__PURE__ */ e(
|
|
@@ -5305,13 +5309,13 @@ function ri({
|
|
|
5305
5309
|
alignItems: "center",
|
|
5306
5310
|
padding: 24
|
|
5307
5311
|
},
|
|
5308
|
-
children: c.map(({ key: p, delay:
|
|
5312
|
+
children: c.map(({ key: p, delay: h, el: y }) => /* @__PURE__ */ e(
|
|
5309
5313
|
"div",
|
|
5310
5314
|
{
|
|
5311
5315
|
style: {
|
|
5312
|
-
opacity: r >= 0.2 +
|
|
5313
|
-
transform: `scale(${r >= 0.2 +
|
|
5314
|
-
transition: `opacity 0.4s ${
|
|
5316
|
+
opacity: r >= 0.2 + h * 0.08 ? 1 : 0,
|
|
5317
|
+
transform: `scale(${r >= 0.2 + h * 0.08 ? 1 : 0.6})`,
|
|
5318
|
+
transition: `opacity 0.4s ${A} ${h * 0.06}s, transform 0.45s ${A} ${h * 0.06}s`
|
|
5315
5319
|
},
|
|
5316
5320
|
children: y
|
|
5317
5321
|
},
|
|
@@ -5321,7 +5325,7 @@ function ri({
|
|
|
5321
5325
|
);
|
|
5322
5326
|
}
|
|
5323
5327
|
if (t === "dispatcher") {
|
|
5324
|
-
const l = Array.from({ length: 8 }, (
|
|
5328
|
+
const l = Array.from({ length: 8 }, (f, c) => {
|
|
5325
5329
|
const p = i[c];
|
|
5326
5330
|
return /* @__PURE__ */ e(
|
|
5327
5331
|
"div",
|
|
@@ -5329,7 +5333,7 @@ function ri({
|
|
|
5329
5333
|
style: {
|
|
5330
5334
|
opacity: r >= 0.25 + c * 0.04 ? 1 : 0,
|
|
5331
5335
|
transform: `scale(${r >= 0.25 + c * 0.04 ? 1 : 0.5})`,
|
|
5332
|
-
transition: `opacity 0.35s ${
|
|
5336
|
+
transition: `opacity 0.35s ${A} ${c * 0.04}s, transform 0.4s ${A} ${c * 0.04}s`
|
|
5333
5337
|
},
|
|
5334
5338
|
children: /* @__PURE__ */ e(B, { color: a, label: `PORT-${c + 1}`, status: p?.status })
|
|
5335
5339
|
},
|
|
@@ -5355,9 +5359,9 @@ function ri({
|
|
|
5355
5359
|
style: {
|
|
5356
5360
|
opacity: r >= 0.7 ? 1 : 0,
|
|
5357
5361
|
transform: `scale(${r >= 0.7 ? 1 : 0.6})`,
|
|
5358
|
-
transition: `all 0.4s ${
|
|
5362
|
+
transition: `all 0.4s ${A} 0.3s`
|
|
5359
5363
|
},
|
|
5360
|
-
children: /* @__PURE__ */ e(
|
|
5364
|
+
children: /* @__PURE__ */ e(D, { color: a, label: "HTTP-WORKER", status: i[8]?.status })
|
|
5361
5365
|
}
|
|
5362
5366
|
),
|
|
5363
5367
|
/* @__PURE__ */ e(
|
|
@@ -5366,9 +5370,9 @@ function ri({
|
|
|
5366
5370
|
style: {
|
|
5367
5371
|
opacity: r >= 0.8 ? 1 : 0,
|
|
5368
5372
|
transform: `scale(${r >= 0.8 ? 1 : 0.6})`,
|
|
5369
|
-
transition: `all 0.4s ${
|
|
5373
|
+
transition: `all 0.4s ${A} 0.4s`
|
|
5370
5374
|
},
|
|
5371
|
-
children: /* @__PURE__ */ e(
|
|
5375
|
+
children: /* @__PURE__ */ e(D, { color: "#bb55ff", label: "HTTPS-WORKER", status: i[9]?.status })
|
|
5372
5376
|
}
|
|
5373
5377
|
)
|
|
5374
5378
|
] })
|
|
@@ -5395,7 +5399,7 @@ function ri({
|
|
|
5395
5399
|
style: {
|
|
5396
5400
|
opacity: r >= 0.25 + l * 0.1 ? 1 : 0,
|
|
5397
5401
|
transform: `scale(${r >= 0.25 + l * 0.1 ? 1 : 0.6})`,
|
|
5398
|
-
transition: `all 0.4s ${
|
|
5402
|
+
transition: `all 0.4s ${A} ${l * 0.08}s`
|
|
5399
5403
|
},
|
|
5400
5404
|
children: /* @__PURE__ */ e(B, { color: "#bb55ff", label: `INST-${l}`, status: i[l]?.status })
|
|
5401
5405
|
},
|
|
@@ -5407,9 +5411,9 @@ function ri({
|
|
|
5407
5411
|
style: {
|
|
5408
5412
|
opacity: r >= 0.6 ? 1 : 0,
|
|
5409
5413
|
transform: `scale(${r >= 0.6 ? 1 : 0.6})`,
|
|
5410
|
-
transition: `all 0.4s ${
|
|
5414
|
+
transition: `all 0.4s ${A} 0.25s`
|
|
5411
5415
|
},
|
|
5412
|
-
children: /* @__PURE__ */ e(
|
|
5416
|
+
children: /* @__PURE__ */ e(D, { color: "#bb55ff", label: "QUEUE-0", status: i[3]?.status })
|
|
5413
5417
|
}
|
|
5414
5418
|
),
|
|
5415
5419
|
[4, 5, 6].map((l) => /* @__PURE__ */ e(
|
|
@@ -5418,10 +5422,10 @@ function ri({
|
|
|
5418
5422
|
style: {
|
|
5419
5423
|
opacity: r >= 0.7 + (l - 4) * 0.08 ? 1 : 0,
|
|
5420
5424
|
transform: `scale(${r >= 0.7 ? 1 : 0.6})`,
|
|
5421
|
-
transition: `all 0.4s ${
|
|
5425
|
+
transition: `all 0.4s ${A} ${0.35 + (l - 4) * 0.05}s`
|
|
5422
5426
|
},
|
|
5423
5427
|
children: /* @__PURE__ */ e(
|
|
5424
|
-
|
|
5428
|
+
D,
|
|
5425
5429
|
{
|
|
5426
5430
|
color: "#bb55ff",
|
|
5427
5431
|
label: `WORKER-${l - 3}`,
|
|
@@ -5448,25 +5452,25 @@ function ri({
|
|
|
5448
5452
|
padding: 24
|
|
5449
5453
|
},
|
|
5450
5454
|
children: [
|
|
5451
|
-
[0, 1, 2].map((
|
|
5455
|
+
[0, 1, 2].map((f) => /* @__PURE__ */ e(
|
|
5452
5456
|
"div",
|
|
5453
5457
|
{
|
|
5454
5458
|
style: {
|
|
5455
|
-
opacity: r >= 0.2 +
|
|
5456
|
-
transform: `scale(${r >= 0.2 +
|
|
5457
|
-
transition: `all 0.45s ${
|
|
5459
|
+
opacity: r >= 0.2 + f * 0.12 ? 1 : 0,
|
|
5460
|
+
transform: `scale(${r >= 0.2 + f * 0.12 ? 1 : 0.5})`,
|
|
5461
|
+
transition: `all 0.45s ${A} ${f * 0.1}s`
|
|
5458
5462
|
},
|
|
5459
5463
|
children: /* @__PURE__ */ e(
|
|
5460
|
-
|
|
5464
|
+
Oe,
|
|
5461
5465
|
{
|
|
5462
5466
|
color: s,
|
|
5463
|
-
label: `PLATTER-${
|
|
5464
|
-
status: i[
|
|
5467
|
+
label: `PLATTER-${f}`,
|
|
5468
|
+
status: i[f]?.status,
|
|
5465
5469
|
capacityPercent: l
|
|
5466
5470
|
}
|
|
5467
5471
|
)
|
|
5468
5472
|
},
|
|
5469
|
-
|
|
5473
|
+
f
|
|
5470
5474
|
)),
|
|
5471
5475
|
/* @__PURE__ */ e(
|
|
5472
5476
|
"div",
|
|
@@ -5474,9 +5478,9 @@ function ri({
|
|
|
5474
5478
|
style: {
|
|
5475
5479
|
opacity: r >= 0.6 ? 1 : 0,
|
|
5476
5480
|
transform: `scale(${r >= 0.6 ? 1 : 0.6})`,
|
|
5477
|
-
transition: `all 0.4s ${
|
|
5481
|
+
transition: `all 0.4s ${A} 0.3s`
|
|
5478
5482
|
},
|
|
5479
|
-
children: /* @__PURE__ */ e(
|
|
5483
|
+
children: /* @__PURE__ */ e(D, { color: s, label: "CONN-POOL", status: i[3]?.status })
|
|
5480
5484
|
}
|
|
5481
5485
|
),
|
|
5482
5486
|
/* @__PURE__ */ e(
|
|
@@ -5485,9 +5489,9 @@ function ri({
|
|
|
5485
5489
|
style: {
|
|
5486
5490
|
opacity: r >= 0.75 ? 1 : 0,
|
|
5487
5491
|
transform: `scale(${r >= 0.75 ? 1 : 0.6})`,
|
|
5488
|
-
transition: `all 0.4s ${
|
|
5492
|
+
transition: `all 0.4s ${A} 0.4s`
|
|
5489
5493
|
},
|
|
5490
|
-
children: /* @__PURE__ */ e(
|
|
5494
|
+
children: /* @__PURE__ */ e(D, { color: "#00ff88", label: "QUERY-CACHE", status: i[4]?.status })
|
|
5491
5495
|
}
|
|
5492
5496
|
)
|
|
5493
5497
|
]
|
|
@@ -5496,7 +5500,7 @@ function ri({
|
|
|
5496
5500
|
}
|
|
5497
5501
|
return null;
|
|
5498
5502
|
}
|
|
5499
|
-
function
|
|
5503
|
+
function Ei({
|
|
5500
5504
|
type: t,
|
|
5501
5505
|
name: n,
|
|
5502
5506
|
status: o,
|
|
@@ -5506,7 +5510,7 @@ function wi({
|
|
|
5506
5510
|
subComponents: s,
|
|
5507
5511
|
graphSeries: l
|
|
5508
5512
|
}) {
|
|
5509
|
-
const
|
|
5513
|
+
const f = oi(t, n, o, a), c = w[o]?.color ?? w.online.color, p = r >= 0.1 ? 1 : r * 10, h = r >= 0.2 ? "-50%" : "0%", y = r >= 0.2 ? "50%" : "0%", u = r >= 0.25 ? Math.min(1, (r - 0.25) * 1.5) : 0;
|
|
5510
5514
|
return /* @__PURE__ */ d(
|
|
5511
5515
|
"div",
|
|
5512
5516
|
{
|
|
@@ -5530,13 +5534,13 @@ function wi({
|
|
|
5530
5534
|
backdropFilter: "blur(10px)",
|
|
5531
5535
|
WebkitBackdropFilter: "blur(10px)",
|
|
5532
5536
|
opacity: p,
|
|
5533
|
-
transition: `opacity 0.4s ${
|
|
5537
|
+
transition: `opacity 0.4s ${ri}`
|
|
5534
5538
|
},
|
|
5535
5539
|
onClick: i
|
|
5536
5540
|
}
|
|
5537
5541
|
),
|
|
5538
5542
|
/* @__PURE__ */ e(
|
|
5539
|
-
|
|
5543
|
+
ii,
|
|
5540
5544
|
{
|
|
5541
5545
|
type: t,
|
|
5542
5546
|
name: n,
|
|
@@ -5579,8 +5583,8 @@ function wi({
|
|
|
5579
5583
|
background: "linear-gradient(90deg, rgba(2, 8, 20, 0.98) 0%, rgba(2, 12, 28, 0.95) 100%)",
|
|
5580
5584
|
borderRight: `2px solid ${c}44`,
|
|
5581
5585
|
boxShadow: "4px 0 32px rgba(0,0,0,0.6)",
|
|
5582
|
-
transform: `translateX(${
|
|
5583
|
-
transition: `transform 0.7s ${
|
|
5586
|
+
transform: `translateX(${h})`,
|
|
5587
|
+
transition: `transform 0.7s ${A}`
|
|
5584
5588
|
}
|
|
5585
5589
|
}
|
|
5586
5590
|
),
|
|
@@ -5595,7 +5599,7 @@ function wi({
|
|
|
5595
5599
|
borderLeft: `2px solid ${c}44`,
|
|
5596
5600
|
boxShadow: "-4px 0 32px rgba(0,0,0,0.6)",
|
|
5597
5601
|
transform: `translateX(${y})`,
|
|
5598
|
-
transition: `transform 0.7s ${
|
|
5602
|
+
transition: `transform 0.7s ${A}`
|
|
5599
5603
|
}
|
|
5600
5604
|
}
|
|
5601
5605
|
)
|
|
@@ -5618,7 +5622,7 @@ function wi({
|
|
|
5618
5622
|
display: "flex",
|
|
5619
5623
|
flexDirection: "column",
|
|
5620
5624
|
opacity: u >= 0.1 ? 1 : 0,
|
|
5621
|
-
transition: `opacity 0.5s ${
|
|
5625
|
+
transition: `opacity 0.5s ${A} 0.2s`
|
|
5622
5626
|
},
|
|
5623
5627
|
children: [
|
|
5624
5628
|
/* @__PURE__ */ d(
|
|
@@ -5706,14 +5710,14 @@ function wi({
|
|
|
5706
5710
|
}
|
|
5707
5711
|
}
|
|
5708
5712
|
),
|
|
5709
|
-
/* @__PURE__ */ e("div", { style: { flex: 1, padding: "8px 0 24px" }, children: s ? /* @__PURE__ */ e(
|
|
5710
|
-
|
|
5713
|
+
/* @__PURE__ */ e("div", { style: { flex: 1, padding: "8px 0 24px" }, children: s ? /* @__PURE__ */ e(ai, { items: s, revealPhase: u }) : /* @__PURE__ */ e(
|
|
5714
|
+
li,
|
|
5711
5715
|
{
|
|
5712
5716
|
type: t,
|
|
5713
5717
|
name: n,
|
|
5714
5718
|
status: o,
|
|
5715
5719
|
context: a,
|
|
5716
|
-
internal:
|
|
5720
|
+
internal: f,
|
|
5717
5721
|
revealPhase: u
|
|
5718
5722
|
}
|
|
5719
5723
|
) })
|
|
@@ -5727,7 +5731,102 @@ function wi({
|
|
|
5727
5731
|
}
|
|
5728
5732
|
);
|
|
5729
5733
|
}
|
|
5730
|
-
|
|
5734
|
+
const De = 330, _e = 350, si = 30;
|
|
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({
|
|
5731
5830
|
brandName: t = "BUSAUD AIOps",
|
|
5732
5831
|
brandTag: n = "3D MONITOR",
|
|
5733
5832
|
services: o = [],
|
|
@@ -5737,28 +5836,28 @@ function Si({
|
|
|
5737
5836
|
fontFamily: s,
|
|
5738
5837
|
children: l
|
|
5739
5838
|
}) {
|
|
5740
|
-
const [
|
|
5741
|
-
u === "compact" && ($(
|
|
5839
|
+
const [f] = I(20), [c] = I(!1), [p] = I(!0), [h] = I(0.45), [y] = I(3.3), [u, g] = I("compact"), [m, x] = I(0), [v, $] = I(null), [b, k] = I(null), [T, R] = I(0), L = (E) => {
|
|
5840
|
+
u === "compact" && ($(E), g("expanding"), x(0), setTimeout(() => x(1), 50), setTimeout(() => x(2), 800), setTimeout(() => x(3), 1200), setTimeout(() => x(4), 1600), setTimeout(() => x(5), 2e3), setTimeout(() => {
|
|
5742
5841
|
x(6), g("expanded");
|
|
5743
5842
|
}, 2400));
|
|
5744
5843
|
}, z = () => {
|
|
5745
5844
|
b ? (k(null), R(0)) : u === "expanded" && (g("collapsing"), x(0), $(null), setTimeout(() => {
|
|
5746
|
-
g((
|
|
5845
|
+
g((E) => E === "collapsing" ? "compact" : E);
|
|
5747
5846
|
}, 1e3));
|
|
5748
|
-
}, F = (
|
|
5749
|
-
k(
|
|
5847
|
+
}, F = (E) => {
|
|
5848
|
+
k(E), R(0);
|
|
5750
5849
|
};
|
|
5751
|
-
|
|
5850
|
+
ee.useEffect(() => {
|
|
5752
5851
|
if (!b) return;
|
|
5753
|
-
const
|
|
5754
|
-
const
|
|
5755
|
-
R(Te), Te < 1 && requestAnimationFrame(
|
|
5756
|
-
},
|
|
5757
|
-
return () => cancelAnimationFrame(
|
|
5852
|
+
const E = performance.now(), ke = 1200, re = () => {
|
|
5853
|
+
const Be = performance.now() - E, Te = Math.min(1, Be / ke);
|
|
5854
|
+
R(Te), Te < 1 && requestAnimationFrame(re);
|
|
5855
|
+
}, se = requestAnimationFrame(re);
|
|
5856
|
+
return () => cancelAnimationFrame(se);
|
|
5758
5857
|
}, [b]);
|
|
5759
|
-
const
|
|
5858
|
+
const j = () => {
|
|
5760
5859
|
k(null), R(0);
|
|
5761
|
-
}, M = o.find((
|
|
5860
|
+
}, M = o.find((E) => E.name === v), ie = M?.status ?? "online", ne = M?.dbSync ?? !0, W = M?.metrics, H = M?.alerts, oe = 330, Se = 340, $e = b ? 1.15 : 1, Q = b ? -(b.ex - oe) * 0.06 : 0, N = b ? -(b.ey - Se) * 0.06 : 0;
|
|
5762
5861
|
return /* @__PURE__ */ d("div", { className: "app", style: s ? { fontFamily: s } : void 0, children: [
|
|
5763
5862
|
/* @__PURE__ */ e(
|
|
5764
5863
|
"div",
|
|
@@ -5794,16 +5893,16 @@ function Si({
|
|
|
5794
5893
|
},
|
|
5795
5894
|
onClick: z,
|
|
5796
5895
|
children: /* @__PURE__ */ e(
|
|
5797
|
-
|
|
5896
|
+
Nt,
|
|
5798
5897
|
{
|
|
5799
5898
|
viewState: u,
|
|
5800
5899
|
animPhase: m,
|
|
5801
5900
|
selectedSystem: v,
|
|
5802
5901
|
selectedComponent: b,
|
|
5803
|
-
drillAnimPhase:
|
|
5804
|
-
rotateY:
|
|
5902
|
+
drillAnimPhase: T,
|
|
5903
|
+
rotateY: f,
|
|
5805
5904
|
autoRotateComponents: c,
|
|
5806
|
-
componentScale:
|
|
5905
|
+
componentScale: h,
|
|
5807
5906
|
drillZoom: y,
|
|
5808
5907
|
autoRotateCarousel: p,
|
|
5809
5908
|
carouselSpeed: a,
|
|
@@ -5811,10 +5910,10 @@ function Si({
|
|
|
5811
5910
|
onSelectSystem: L,
|
|
5812
5911
|
onBackgroundClick: z,
|
|
5813
5912
|
onComponentClick: F,
|
|
5814
|
-
onCloseDrill:
|
|
5815
|
-
selectedSystemStatus:
|
|
5816
|
-
selectedSystemDbSync:
|
|
5817
|
-
selectedSystemMetrics:
|
|
5913
|
+
onCloseDrill: j,
|
|
5914
|
+
selectedSystemStatus: ie,
|
|
5915
|
+
selectedSystemDbSync: ne,
|
|
5916
|
+
selectedSystemMetrics: W,
|
|
5818
5917
|
selectedSystemAlerts: H,
|
|
5819
5918
|
children: l
|
|
5820
5919
|
}
|
|
@@ -5829,21 +5928,21 @@ function S(t, n, o = 24) {
|
|
|
5829
5928
|
return Math.min(100, Math.max(0, t + Math.sin(a * Math.PI * 2) * n + (Math.random() - 0.5) * 10));
|
|
5830
5929
|
});
|
|
5831
5930
|
}
|
|
5832
|
-
function
|
|
5931
|
+
function xt(t) {
|
|
5833
5932
|
return t === "critical" || t === "offline" ? "#ff2255" : t === "warning" ? "#ff8c00" : "#00e5ff";
|
|
5834
5933
|
}
|
|
5835
5934
|
function me(t, n, o) {
|
|
5836
|
-
const i = t === "online" ? "online" : t, r =
|
|
5935
|
+
const i = t === "online" ? "online" : t, r = xt(t), a = o?.cpuLoad ?? 50, s = o?.memLoad ?? 60, l = i === "critical" || i === "warning" && a > 80 ? i : "online", f = i === "warning" && s > 85 ? "warning" : i === "critical" ? "critical" : "online", c = i === "critical" && n === "APP-03" ? "critical" : "online", p = i === "offline" ? "offline" : "online";
|
|
5837
5936
|
return [
|
|
5838
|
-
{ id: "cpu-0", label: "CPU-0", status: l, detail: i === "critical" ? "Core overload" : i === "warning" ? "Load spike" : void 0, element: /* @__PURE__ */ e(
|
|
5839
|
-
{ id: "cpu-1", label: "CPU-1", status: "online", element: /* @__PURE__ */ e(
|
|
5840
|
-
{ id: "heap-0", label: "HEAP-0", status:
|
|
5841
|
-
{ id: "heap-1", label: "HEAP-1", status: "online", element: /* @__PURE__ */ e(
|
|
5937
|
+
{ id: "cpu-0", label: "CPU-0", status: l, detail: i === "critical" ? "Core overload" : i === "warning" ? "Load spike" : void 0, element: /* @__PURE__ */ e(We, { color: r, label: "CPU-0", status: l, load: a }) },
|
|
5938
|
+
{ id: "cpu-1", label: "CPU-1", status: "online", element: /* @__PURE__ */ e(We, { color: r, label: "CPU-1", status: "online", load: a * 0.7 }) },
|
|
5939
|
+
{ id: "heap-0", label: "HEAP-0", status: f, detail: f === "warning" ? "Memory heap usage" : f === "critical" ? "OOM risk" : void 0, element: /* @__PURE__ */ e(ze, { color: "#8855ee", label: "HEAP-0", status: f, usedPercent: s }) },
|
|
5940
|
+
{ id: "heap-1", label: "HEAP-1", status: "online", element: /* @__PURE__ */ e(ze, { color: "#8855ee", label: "HEAP-1", status: "online", usedPercent: s * 0.85 }) },
|
|
5842
5941
|
{ id: "drive-1", label: "DRIVE-1", status: "online", element: /* @__PURE__ */ e(ye, { color: r, label: "DRIVE-1", status: "online", activity: !0 }) },
|
|
5843
5942
|
{ id: "drive-2", label: "DRIVE-2", status: "online", element: /* @__PURE__ */ e(ye, { color: r, label: "DRIVE-2", status: "online", activity: a > 30 }) },
|
|
5844
5943
|
{ id: "drive-3", label: "DRIVE-3", status: "online", element: /* @__PURE__ */ e(ye, { color: r, label: "DRIVE-3", status: "online", activity: a > 50 }) },
|
|
5845
|
-
{ id: "thread-pool", label: "THREAD-POOL", status: c, detail: c === "critical" ? "Thread exhaustion" : void 0, element: /* @__PURE__ */ e(
|
|
5846
|
-
{ id: "network", label: "NET", status: p, element: /* @__PURE__ */ e(
|
|
5944
|
+
{ id: "thread-pool", label: "THREAD-POOL", status: c, detail: c === "critical" ? "Thread exhaustion" : void 0, element: /* @__PURE__ */ e(D, { color: r, label: "THREAD-POOL", status: c }) },
|
|
5945
|
+
{ id: "network", label: "NET", status: p, element: /* @__PURE__ */ e(mt, { color: r, label: "NET", status: p }) }
|
|
5847
5946
|
];
|
|
5848
5947
|
}
|
|
5849
5948
|
function xe(t) {
|
|
@@ -5859,8 +5958,8 @@ function xe(t) {
|
|
|
5859
5958
|
{ id: "thread", label: "THREAD-POOL", unit: "%", color: "#22aaff", data: S(55, 20) }
|
|
5860
5959
|
];
|
|
5861
5960
|
}
|
|
5862
|
-
function
|
|
5863
|
-
const i = t === "online" ? "online" : t, r =
|
|
5961
|
+
function vt(t, n, o) {
|
|
5962
|
+
const i = t === "online" ? "online" : t, r = xt(t), a = i === "critical" || i === "offline" ? i : "online", s = i === "warning" ? "warning" : "online", l = i === "critical" ? "critical" : "online";
|
|
5864
5963
|
return [
|
|
5865
5964
|
{ id: "port-1", label: "PORT-1", status: "online", element: /* @__PURE__ */ e(B, { color: r, label: "PORT-1", status: "online" }) },
|
|
5866
5965
|
{ id: "port-2", label: "PORT-2", status: "online", element: /* @__PURE__ */ e(B, { color: r, label: "PORT-2", status: "online" }) },
|
|
@@ -5870,11 +5969,11 @@ function gt(t, n, o) {
|
|
|
5870
5969
|
{ id: "port-6", label: "PORT-6", status: "online", element: /* @__PURE__ */ e(B, { color: r, label: "PORT-6", status: "online" }) },
|
|
5871
5970
|
{ id: "port-7", label: "PORT-7", status: "online", element: /* @__PURE__ */ e(B, { color: r, label: "PORT-7", status: "online" }) },
|
|
5872
5971
|
{ id: "port-8", label: "PORT-8", status: "online", element: /* @__PURE__ */ e(B, { color: r, label: "PORT-8", status: "online" }) },
|
|
5873
|
-
{ id: "http-worker", label: "HTTP-WORKER", status: l, detail: l === "critical" ? "Worker timeout" : void 0, element: /* @__PURE__ */ e(
|
|
5874
|
-
{ id: "https-worker", label: "HTTPS-WORKER", status: "online", element: /* @__PURE__ */ e(
|
|
5972
|
+
{ id: "http-worker", label: "HTTP-WORKER", status: l, detail: l === "critical" ? "Worker timeout" : void 0, element: /* @__PURE__ */ e(D, { color: r, label: "HTTP-WORKER", status: l }) },
|
|
5973
|
+
{ id: "https-worker", label: "HTTPS-WORKER", status: "online", element: /* @__PURE__ */ e(D, { color: "#bb55ff", label: "HTTPS-WORKER", status: "online" }) }
|
|
5875
5974
|
];
|
|
5876
5975
|
}
|
|
5877
|
-
function
|
|
5976
|
+
function wt(t) {
|
|
5878
5977
|
const n = t?.traffic ?? 50;
|
|
5879
5978
|
return [
|
|
5880
5979
|
{ id: "traffic", label: "TRAFFIC", unit: "%", color: "#00e5ff", data: S(n, 20) },
|
|
@@ -5884,19 +5983,19 @@ function yt(t) {
|
|
|
5884
5983
|
{ id: "worker", label: "WORKER", unit: "%", color: "#bb55ff", data: S(n * 0.9, 15) }
|
|
5885
5984
|
];
|
|
5886
5985
|
}
|
|
5887
|
-
function
|
|
5986
|
+
function hi(t, n, o) {
|
|
5888
5987
|
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";
|
|
5889
5988
|
return [
|
|
5890
5989
|
{ id: "inst-0", label: "INST-0", status: "online", element: /* @__PURE__ */ e(B, { color: "#bb55ff", label: "INST-0", status: "online" }) },
|
|
5891
5990
|
{ id: "inst-1", label: "INST-1", status: "online", element: /* @__PURE__ */ e(B, { color: "#bb55ff", label: "INST-1", status: "online" }) },
|
|
5892
5991
|
{ 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 }) },
|
|
5893
|
-
{ 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(
|
|
5894
|
-
{ id: "worker-1", label: "WORKER-1", status: "online", element: /* @__PURE__ */ e(
|
|
5895
|
-
{ id: "worker-2", label: "WORKER-2", status: "online", element: /* @__PURE__ */ e(
|
|
5896
|
-
{ id: "worker-3", label: "WORKER-3", status: s, detail: s === "critical" ? "Worker timeout" : void 0, element: /* @__PURE__ */ e(
|
|
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(D, { color: "#bb55ff", label: "QUEUE-0", status: a }) },
|
|
5993
|
+
{ id: "worker-1", label: "WORKER-1", status: "online", element: /* @__PURE__ */ e(D, { color: "#bb55ff", label: "WORKER-1", status: "online" }) },
|
|
5994
|
+
{ id: "worker-2", label: "WORKER-2", status: "online", element: /* @__PURE__ */ e(D, { color: "#bb55ff", label: "WORKER-2", status: "online" }) },
|
|
5995
|
+
{ id: "worker-3", label: "WORKER-3", status: s, detail: s === "critical" ? "Worker timeout" : void 0, element: /* @__PURE__ */ e(D, { color: "#bb55ff", label: "WORKER-3", status: s }) }
|
|
5897
5996
|
];
|
|
5898
5997
|
}
|
|
5899
|
-
function
|
|
5998
|
+
function ui(t) {
|
|
5900
5999
|
const n = t?.queueDepth ?? 50;
|
|
5901
6000
|
return [
|
|
5902
6001
|
{ id: "traffic", label: "TRAFFIC", unit: "%", color: "#00e5ff", data: S(n, 20) },
|
|
@@ -5906,17 +6005,17 @@ function li(t) {
|
|
|
5906
6005
|
{ id: "worker", label: "WORKER", unit: "%", color: "#bb55ff", data: S(n * 0.9, 15) }
|
|
5907
6006
|
];
|
|
5908
6007
|
}
|
|
5909
|
-
function
|
|
5910
|
-
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",
|
|
6008
|
+
function Me(t, n, o) {
|
|
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", f = i === "critical" ? "critical" : "online", c = i === "warning" ? "warning" : "online";
|
|
5911
6010
|
return [
|
|
5912
|
-
{ id: "platter-0", label: "PLATTER-0", status: "online", element: /* @__PURE__ */ e(
|
|
5913
|
-
{ 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(
|
|
5914
|
-
{ id: "platter-2", label: "PLATTER-2", status: l, detail: l === "warning" ? "Replication lag" : void 0, element: /* @__PURE__ */ e(
|
|
5915
|
-
{ id: "conn-pool", label: "CONN-POOL", status:
|
|
5916
|
-
{ id: "query-cache", label: "QUERY-CACHE", status: c, detail: c === "warning" ? "Cache miss rate" : void 0, element: /* @__PURE__ */ e(
|
|
6011
|
+
{ id: "platter-0", label: "PLATTER-0", status: "online", element: /* @__PURE__ */ e(Oe, { color: r, label: "PLATTER-0", status: "online", capacityPercent: a }) },
|
|
6012
|
+
{ 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
|
+
{ 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: f, detail: f === "critical" ? "Pool exhausted" : void 0, element: /* @__PURE__ */ e(D, { color: r, label: "CONN-POOL", status: f }) },
|
|
6015
|
+
{ id: "query-cache", label: "QUERY-CACHE", status: c, detail: c === "warning" ? "Cache miss rate" : void 0, element: /* @__PURE__ */ e(D, { color: "#00ff88", label: "QUERY-CACHE", status: c }) }
|
|
5917
6016
|
];
|
|
5918
6017
|
}
|
|
5919
|
-
function
|
|
6018
|
+
function Ne(t) {
|
|
5920
6019
|
const n = t?.capacity ?? 70;
|
|
5921
6020
|
return [
|
|
5922
6021
|
{ id: "platter0", label: "PLATTER-0 I/O", unit: "%", color: "#ff8c00", data: S(40, 20) },
|
|
@@ -5926,7 +6025,7 @@ function Me(t) {
|
|
|
5926
6025
|
{ id: "cache", label: "QUERY-CACHE", unit: "%", color: "#00ff88", data: S(75, 12) }
|
|
5927
6026
|
];
|
|
5928
6027
|
}
|
|
5929
|
-
function
|
|
6028
|
+
function ot(t) {
|
|
5930
6029
|
const n = [
|
|
5931
6030
|
t.wdStatus,
|
|
5932
6031
|
t.msStatus,
|
|
@@ -5938,8 +6037,8 @@ function Je(t) {
|
|
|
5938
6037
|
];
|
|
5939
6038
|
return n.includes("critical") ? "critical" : n.includes("warning") ? "warning" : n.includes("offline") ? "offline" : "online";
|
|
5940
6039
|
}
|
|
5941
|
-
function
|
|
5942
|
-
const n =
|
|
6040
|
+
function Li(t) {
|
|
6041
|
+
const n = ot(t), o = n === "critical" || n === "offline", i = n === "warning";
|
|
5943
6042
|
return [
|
|
5944
6043
|
{
|
|
5945
6044
|
label: "Uptime",
|
|
@@ -5960,8 +6059,8 @@ function $i(t) {
|
|
|
5960
6059
|
}
|
|
5961
6060
|
];
|
|
5962
6061
|
}
|
|
5963
|
-
function
|
|
5964
|
-
const n =
|
|
6062
|
+
function Ii(t) {
|
|
6063
|
+
const n = ot(t), o = n === "critical" || n === "offline", i = n === "warning";
|
|
5965
6064
|
return [
|
|
5966
6065
|
...t.dbSync ? [] : [{ level: "warning", message: "DB Replication Lag Detected" }],
|
|
5967
6066
|
...o ? [{ level: "critical", message: "Critical Component Failure" }] : [],
|
|
@@ -5969,7 +6068,7 @@ function ki(t) {
|
|
|
5969
6068
|
...!o && !i && t.dbSync ? [{ level: "info", message: "All Systems Nominal" }] : []
|
|
5970
6069
|
];
|
|
5971
6070
|
}
|
|
5972
|
-
const
|
|
6071
|
+
const bi = [
|
|
5973
6072
|
{ from: [330, 120], to: [220, 260], visibleAtPhase: 3 },
|
|
5974
6073
|
{ from: [330, 120], to: [440, 260], visibleAtPhase: 3 },
|
|
5975
6074
|
{ from: [220, 260], to: [165, 390], visibleAtPhase: 4 },
|
|
@@ -5982,11 +6081,11 @@ const si = [
|
|
|
5982
6081
|
{ from: [330, 390], to: [200, 520], visibleAtPhase: 5, color: "#ff8c00" },
|
|
5983
6082
|
{ from: [495, 390], to: [200, 520], visibleAtPhase: 5, color: "#ff8c00" }
|
|
5984
6083
|
];
|
|
5985
|
-
function
|
|
5986
|
-
const n =
|
|
6084
|
+
function gi({ config: t }) {
|
|
6085
|
+
const n = ee.useContext(le), o = n?.rotateY ?? 20, i = n?.autoRotateComponents ?? !0, { wdStatus: r, msStatus: a, srv1Status: s, srv2Status: l, srv3Status: f, pdbStatus: c, sdbStatus: p, dbSync: h } = t;
|
|
5987
6086
|
return /* @__PURE__ */ d(Ce, { children: [
|
|
5988
6087
|
/* @__PURE__ */ e(
|
|
5989
|
-
|
|
6088
|
+
C,
|
|
5990
6089
|
{
|
|
5991
6090
|
ex: 330,
|
|
5992
6091
|
ey: 120,
|
|
@@ -5994,11 +6093,11 @@ function di({ config: t }) {
|
|
|
5994
6093
|
zIndex: 10,
|
|
5995
6094
|
visibleAtPhase: 2,
|
|
5996
6095
|
color: "#00e5ff",
|
|
5997
|
-
children: /* @__PURE__ */ e(
|
|
6096
|
+
children: /* @__PURE__ */ e(gt, { status: "online", scale: 1.5 })
|
|
5998
6097
|
}
|
|
5999
6098
|
),
|
|
6000
6099
|
/* @__PURE__ */ e(
|
|
6001
|
-
|
|
6100
|
+
C,
|
|
6002
6101
|
{
|
|
6003
6102
|
ex: 220,
|
|
6004
6103
|
ey: 260,
|
|
@@ -6013,11 +6112,11 @@ function di({ config: t }) {
|
|
|
6013
6112
|
name: "WEB-DISP",
|
|
6014
6113
|
status: r,
|
|
6015
6114
|
context: { traffic: 78 },
|
|
6016
|
-
subComponents:
|
|
6017
|
-
graphSeries:
|
|
6115
|
+
subComponents: vt(r),
|
|
6116
|
+
graphSeries: wt({ traffic: 78 })
|
|
6018
6117
|
},
|
|
6019
6118
|
children: /* @__PURE__ */ e(
|
|
6020
|
-
|
|
6119
|
+
nt,
|
|
6021
6120
|
{
|
|
6022
6121
|
rotateY: o,
|
|
6023
6122
|
autoRotate: i,
|
|
@@ -6031,7 +6130,7 @@ function di({ config: t }) {
|
|
|
6031
6130
|
}
|
|
6032
6131
|
),
|
|
6033
6132
|
/* @__PURE__ */ e(
|
|
6034
|
-
|
|
6133
|
+
C,
|
|
6035
6134
|
{
|
|
6036
6135
|
ex: 440,
|
|
6037
6136
|
ey: 260,
|
|
@@ -6046,11 +6145,11 @@ function di({ config: t }) {
|
|
|
6046
6145
|
name: "MSG-SRV",
|
|
6047
6146
|
status: a,
|
|
6048
6147
|
context: { queueDepth: 45 },
|
|
6049
|
-
subComponents:
|
|
6050
|
-
graphSeries:
|
|
6148
|
+
subComponents: hi(a),
|
|
6149
|
+
graphSeries: ui({ queueDepth: 45 })
|
|
6051
6150
|
},
|
|
6052
6151
|
children: /* @__PURE__ */ e(
|
|
6053
|
-
|
|
6152
|
+
bt,
|
|
6054
6153
|
{
|
|
6055
6154
|
rotateY: -o,
|
|
6056
6155
|
autoRotate: i,
|
|
@@ -6065,7 +6164,7 @@ function di({ config: t }) {
|
|
|
6065
6164
|
}
|
|
6066
6165
|
),
|
|
6067
6166
|
/* @__PURE__ */ e(
|
|
6068
|
-
|
|
6167
|
+
C,
|
|
6069
6168
|
{
|
|
6070
6169
|
ex: 165,
|
|
6071
6170
|
ey: 390,
|
|
@@ -6084,7 +6183,7 @@ function di({ config: t }) {
|
|
|
6084
6183
|
graphSeries: xe({ cpuLoad: 67, memLoad: 72 })
|
|
6085
6184
|
},
|
|
6086
6185
|
children: /* @__PURE__ */ e(
|
|
6087
|
-
|
|
6186
|
+
J,
|
|
6088
6187
|
{
|
|
6089
6188
|
rotateY: o,
|
|
6090
6189
|
autoRotate: i,
|
|
@@ -6098,7 +6197,7 @@ function di({ config: t }) {
|
|
|
6098
6197
|
}
|
|
6099
6198
|
),
|
|
6100
6199
|
/* @__PURE__ */ e(
|
|
6101
|
-
|
|
6200
|
+
C,
|
|
6102
6201
|
{
|
|
6103
6202
|
ex: 330,
|
|
6104
6203
|
ey: 390,
|
|
@@ -6117,7 +6216,7 @@ function di({ config: t }) {
|
|
|
6117
6216
|
graphSeries: xe({ cpuLoad: 89, memLoad: 91 })
|
|
6118
6217
|
},
|
|
6119
6218
|
children: /* @__PURE__ */ e(
|
|
6120
|
-
|
|
6219
|
+
J,
|
|
6121
6220
|
{
|
|
6122
6221
|
rotateY: o,
|
|
6123
6222
|
autoRotate: i,
|
|
@@ -6131,7 +6230,7 @@ function di({ config: t }) {
|
|
|
6131
6230
|
}
|
|
6132
6231
|
),
|
|
6133
6232
|
/* @__PURE__ */ e(
|
|
6134
|
-
|
|
6233
|
+
C,
|
|
6135
6234
|
{
|
|
6136
6235
|
ex: 495,
|
|
6137
6236
|
ey: 390,
|
|
@@ -6144,17 +6243,17 @@ function di({ config: t }) {
|
|
|
6144
6243
|
componentInfo: {
|
|
6145
6244
|
type: "server",
|
|
6146
6245
|
name: "APP-03",
|
|
6147
|
-
status:
|
|
6246
|
+
status: f,
|
|
6148
6247
|
context: { cpuLoad: 45, memLoad: 63 },
|
|
6149
|
-
subComponents: me(
|
|
6248
|
+
subComponents: me(f, "APP-03", { cpuLoad: 45, memLoad: 63 }),
|
|
6150
6249
|
graphSeries: xe({ cpuLoad: 45, memLoad: 63 })
|
|
6151
6250
|
},
|
|
6152
6251
|
children: /* @__PURE__ */ e(
|
|
6153
|
-
|
|
6252
|
+
J,
|
|
6154
6253
|
{
|
|
6155
6254
|
rotateY: o,
|
|
6156
6255
|
autoRotate: i,
|
|
6157
|
-
status:
|
|
6256
|
+
status: f,
|
|
6158
6257
|
name: "APP-03",
|
|
6159
6258
|
cpuLoad: 45,
|
|
6160
6259
|
memLoad: 63,
|
|
@@ -6164,7 +6263,7 @@ function di({ config: t }) {
|
|
|
6164
6263
|
}
|
|
6165
6264
|
),
|
|
6166
6265
|
/* @__PURE__ */ e(
|
|
6167
|
-
|
|
6266
|
+
C,
|
|
6168
6267
|
{
|
|
6169
6268
|
ex: 200,
|
|
6170
6269
|
ey: 520,
|
|
@@ -6179,11 +6278,11 @@ function di({ config: t }) {
|
|
|
6179
6278
|
name: "DB-PRI",
|
|
6180
6279
|
status: c,
|
|
6181
6280
|
context: { capacity: 72 },
|
|
6182
|
-
subComponents:
|
|
6183
|
-
graphSeries:
|
|
6281
|
+
subComponents: Me(c, "DB-PRI", { capacity: 72 }),
|
|
6282
|
+
graphSeries: Ne({ capacity: 72 })
|
|
6184
6283
|
},
|
|
6185
6284
|
children: /* @__PURE__ */ e(
|
|
6186
|
-
|
|
6285
|
+
Ee,
|
|
6187
6286
|
{
|
|
6188
6287
|
rotateY: -o,
|
|
6189
6288
|
autoRotate: i,
|
|
@@ -6197,7 +6296,7 @@ function di({ config: t }) {
|
|
|
6197
6296
|
}
|
|
6198
6297
|
),
|
|
6199
6298
|
/* @__PURE__ */ e(
|
|
6200
|
-
|
|
6299
|
+
C,
|
|
6201
6300
|
{
|
|
6202
6301
|
ex: 460,
|
|
6203
6302
|
ey: 520,
|
|
@@ -6212,11 +6311,11 @@ function di({ config: t }) {
|
|
|
6212
6311
|
name: "DB-STB",
|
|
6213
6312
|
status: p,
|
|
6214
6313
|
context: { capacity: 72 },
|
|
6215
|
-
subComponents:
|
|
6216
|
-
graphSeries:
|
|
6314
|
+
subComponents: Me(p, "DB-STB", { capacity: 72 }),
|
|
6315
|
+
graphSeries: Ne({ capacity: 72 })
|
|
6217
6316
|
},
|
|
6218
6317
|
children: /* @__PURE__ */ e(
|
|
6219
|
-
|
|
6318
|
+
Ee,
|
|
6220
6319
|
{
|
|
6221
6320
|
rotateY: o,
|
|
6222
6321
|
autoRotate: i,
|
|
@@ -6230,7 +6329,7 @@ function di({ config: t }) {
|
|
|
6230
6329
|
}
|
|
6231
6330
|
),
|
|
6232
6331
|
/* @__PURE__ */ e(
|
|
6233
|
-
|
|
6332
|
+
C,
|
|
6234
6333
|
{
|
|
6235
6334
|
ex: 330,
|
|
6236
6335
|
ey: 520,
|
|
@@ -6239,17 +6338,17 @@ function di({ config: t }) {
|
|
|
6239
6338
|
visibleAtPhase: 6,
|
|
6240
6339
|
fixedScale: 1,
|
|
6241
6340
|
bare: !0,
|
|
6242
|
-
children: /* @__PURE__ */ e(
|
|
6341
|
+
children: /* @__PURE__ */ e(ut, { synced: h, latencyMs: h ? 8 : 342 })
|
|
6243
6342
|
}
|
|
6244
6343
|
),
|
|
6245
|
-
/* @__PURE__ */ e(
|
|
6344
|
+
/* @__PURE__ */ e(yi, { config: t })
|
|
6246
6345
|
] });
|
|
6247
6346
|
}
|
|
6248
|
-
function
|
|
6249
|
-
const n =
|
|
6347
|
+
function yi({ config: t }) {
|
|
6348
|
+
const n = ee.useContext(le), { wdStatus: o, msStatus: i, srv1Status: r, srv2Status: a, srv3Status: s, pdbStatus: l, sdbStatus: f, dbSync: c } = t, p = n?.isSelected && n?.isExpandedPos;
|
|
6250
6349
|
return n?.isSelected ? /* @__PURE__ */ d("div", { style: { pointerEvents: "none" }, children: [
|
|
6251
6350
|
/* @__PURE__ */ e(
|
|
6252
|
-
|
|
6351
|
+
O,
|
|
6253
6352
|
{
|
|
6254
6353
|
ex: 220,
|
|
6255
6354
|
ey: 260,
|
|
@@ -6264,7 +6363,7 @@ function ci({ config: t }) {
|
|
|
6264
6363
|
}
|
|
6265
6364
|
),
|
|
6266
6365
|
/* @__PURE__ */ e(
|
|
6267
|
-
|
|
6366
|
+
O,
|
|
6268
6367
|
{
|
|
6269
6368
|
ex: 440,
|
|
6270
6369
|
ey: 260,
|
|
@@ -6279,7 +6378,7 @@ function ci({ config: t }) {
|
|
|
6279
6378
|
}
|
|
6280
6379
|
),
|
|
6281
6380
|
/* @__PURE__ */ e(
|
|
6282
|
-
|
|
6381
|
+
O,
|
|
6283
6382
|
{
|
|
6284
6383
|
ex: 165,
|
|
6285
6384
|
ey: 390,
|
|
@@ -6294,7 +6393,7 @@ function ci({ config: t }) {
|
|
|
6294
6393
|
}
|
|
6295
6394
|
),
|
|
6296
6395
|
/* @__PURE__ */ e(
|
|
6297
|
-
|
|
6396
|
+
O,
|
|
6298
6397
|
{
|
|
6299
6398
|
ex: 330,
|
|
6300
6399
|
ey: 390,
|
|
@@ -6309,7 +6408,7 @@ function ci({ config: t }) {
|
|
|
6309
6408
|
}
|
|
6310
6409
|
),
|
|
6311
6410
|
/* @__PURE__ */ e(
|
|
6312
|
-
|
|
6411
|
+
O,
|
|
6313
6412
|
{
|
|
6314
6413
|
ex: 495,
|
|
6315
6414
|
ey: 390,
|
|
@@ -6324,7 +6423,7 @@ function ci({ config: t }) {
|
|
|
6324
6423
|
}
|
|
6325
6424
|
),
|
|
6326
6425
|
/* @__PURE__ */ e(
|
|
6327
|
-
|
|
6426
|
+
O,
|
|
6328
6427
|
{
|
|
6329
6428
|
ex: 200,
|
|
6330
6429
|
ey: 520,
|
|
@@ -6339,22 +6438,22 @@ function ci({ config: t }) {
|
|
|
6339
6438
|
}
|
|
6340
6439
|
),
|
|
6341
6440
|
/* @__PURE__ */ e(
|
|
6342
|
-
|
|
6441
|
+
O,
|
|
6343
6442
|
{
|
|
6344
6443
|
ex: 460,
|
|
6345
6444
|
ey: 520,
|
|
6346
|
-
status:
|
|
6445
|
+
status: f,
|
|
6347
6446
|
title: "DB-STB",
|
|
6348
|
-
msg:
|
|
6447
|
+
msg: f === "critical" || f === "offline" ? "Sync failure." : "Replication lag.",
|
|
6349
6448
|
offsetX: 110,
|
|
6350
6449
|
offsetY: 30,
|
|
6351
6450
|
align: "right",
|
|
6352
6451
|
isVisible: !!p,
|
|
6353
|
-
internalRef:
|
|
6452
|
+
internalRef: f !== "online" ? "PLATTER-2" : void 0
|
|
6354
6453
|
}
|
|
6355
6454
|
),
|
|
6356
6455
|
!c && /* @__PURE__ */ e(
|
|
6357
|
-
|
|
6456
|
+
O,
|
|
6358
6457
|
{
|
|
6359
6458
|
ex: 330,
|
|
6360
6459
|
ey: 520,
|
|
@@ -6370,19 +6469,19 @@ function ci({ config: t }) {
|
|
|
6370
6469
|
)
|
|
6371
6470
|
] }) : null;
|
|
6372
6471
|
}
|
|
6373
|
-
function
|
|
6472
|
+
function Oi({ config: t, ...n }) {
|
|
6374
6473
|
return /* @__PURE__ */ e(
|
|
6375
|
-
|
|
6474
|
+
tt,
|
|
6376
6475
|
{
|
|
6377
6476
|
name: t.name,
|
|
6378
|
-
status:
|
|
6379
|
-
connections:
|
|
6477
|
+
status: ot(t),
|
|
6478
|
+
connections: bi,
|
|
6380
6479
|
...n,
|
|
6381
|
-
children: /* @__PURE__ */ e(
|
|
6480
|
+
children: /* @__PURE__ */ e(gi, { config: t })
|
|
6382
6481
|
}
|
|
6383
6482
|
);
|
|
6384
6483
|
}
|
|
6385
|
-
function
|
|
6484
|
+
function rt(t) {
|
|
6386
6485
|
const n = [
|
|
6387
6486
|
t.dispStatus,
|
|
6388
6487
|
t.srv1Status,
|
|
@@ -6393,8 +6492,8 @@ function et(t) {
|
|
|
6393
6492
|
];
|
|
6394
6493
|
return n.includes("critical") ? "critical" : n.includes("warning") ? "warning" : n.includes("offline") ? "offline" : "online";
|
|
6395
6494
|
}
|
|
6396
|
-
function
|
|
6397
|
-
const n =
|
|
6495
|
+
function Di(t) {
|
|
6496
|
+
const n = rt(t), o = n === "critical" || n === "offline", i = n === "warning";
|
|
6398
6497
|
return [
|
|
6399
6498
|
{
|
|
6400
6499
|
label: "Uptime",
|
|
@@ -6415,8 +6514,8 @@ function Pi(t) {
|
|
|
6415
6514
|
}
|
|
6416
6515
|
];
|
|
6417
6516
|
}
|
|
6418
|
-
function
|
|
6419
|
-
const n =
|
|
6517
|
+
function Wi(t) {
|
|
6518
|
+
const n = rt(t), o = n === "critical" || n === "offline", i = n === "warning";
|
|
6420
6519
|
return [
|
|
6421
6520
|
...t.dbSync ? [] : [{ level: "warning", message: "DB Replication Lag Detected" }],
|
|
6422
6521
|
...o ? [{ level: "critical", message: "Critical Component Failure" }] : [],
|
|
@@ -6424,7 +6523,7 @@ function Ci(t) {
|
|
|
6424
6523
|
...!o && !i && t.dbSync ? [{ level: "info", message: "All Systems Nominal" }] : []
|
|
6425
6524
|
];
|
|
6426
6525
|
}
|
|
6427
|
-
const
|
|
6526
|
+
const mi = [
|
|
6428
6527
|
{ from: [330, 120], to: [330, 260], visibleAtPhase: 3 },
|
|
6429
6528
|
{ from: [330, 260], to: [165, 390], visibleAtPhase: 4 },
|
|
6430
6529
|
{ from: [330, 260], to: [330, 390], visibleAtPhase: 4 },
|
|
@@ -6433,11 +6532,11 @@ const pi = [
|
|
|
6433
6532
|
{ from: [330, 390], to: [200, 520], visibleAtPhase: 5, color: "#ff8c00" },
|
|
6434
6533
|
{ from: [495, 390], to: [200, 520], visibleAtPhase: 5, color: "#ff8c00" }
|
|
6435
6534
|
];
|
|
6436
|
-
function
|
|
6437
|
-
const n =
|
|
6535
|
+
function xi({ config: t }) {
|
|
6536
|
+
const n = ee.useContext(le), o = n?.rotateY ?? 20, i = n?.autoRotateComponents ?? !0, { dispStatus: r, srv1Status: a, srv2Status: s, srv3Status: l, pdbStatus: f, sdbStatus: c, dbSync: p } = t;
|
|
6438
6537
|
return /* @__PURE__ */ d(Ce, { children: [
|
|
6439
6538
|
/* @__PURE__ */ e(
|
|
6440
|
-
|
|
6539
|
+
C,
|
|
6441
6540
|
{
|
|
6442
6541
|
ex: 330,
|
|
6443
6542
|
ey: 120,
|
|
@@ -6445,11 +6544,11 @@ function fi({ config: t }) {
|
|
|
6445
6544
|
zIndex: 10,
|
|
6446
6545
|
visibleAtPhase: 2,
|
|
6447
6546
|
color: "#00e5ff",
|
|
6448
|
-
children: /* @__PURE__ */ e(
|
|
6547
|
+
children: /* @__PURE__ */ e(gt, { status: "online", scale: 1.5 })
|
|
6449
6548
|
}
|
|
6450
6549
|
),
|
|
6451
6550
|
/* @__PURE__ */ e(
|
|
6452
|
-
|
|
6551
|
+
C,
|
|
6453
6552
|
{
|
|
6454
6553
|
ex: 330,
|
|
6455
6554
|
ey: 260,
|
|
@@ -6464,11 +6563,11 @@ function fi({ config: t }) {
|
|
|
6464
6563
|
name: "DISP-01",
|
|
6465
6564
|
status: r,
|
|
6466
6565
|
context: { traffic: 78 },
|
|
6467
|
-
subComponents:
|
|
6468
|
-
graphSeries:
|
|
6566
|
+
subComponents: vt(r),
|
|
6567
|
+
graphSeries: wt({ traffic: 78 })
|
|
6469
6568
|
},
|
|
6470
6569
|
children: /* @__PURE__ */ e(
|
|
6471
|
-
|
|
6570
|
+
nt,
|
|
6472
6571
|
{
|
|
6473
6572
|
rotateY: o,
|
|
6474
6573
|
autoRotate: i,
|
|
@@ -6482,7 +6581,7 @@ function fi({ config: t }) {
|
|
|
6482
6581
|
}
|
|
6483
6582
|
),
|
|
6484
6583
|
/* @__PURE__ */ e(
|
|
6485
|
-
|
|
6584
|
+
C,
|
|
6486
6585
|
{
|
|
6487
6586
|
ex: 165,
|
|
6488
6587
|
ey: 390,
|
|
@@ -6501,7 +6600,7 @@ function fi({ config: t }) {
|
|
|
6501
6600
|
graphSeries: xe({ cpuLoad: 67, memLoad: 72 })
|
|
6502
6601
|
},
|
|
6503
6602
|
children: /* @__PURE__ */ e(
|
|
6504
|
-
|
|
6603
|
+
J,
|
|
6505
6604
|
{
|
|
6506
6605
|
rotateY: o,
|
|
6507
6606
|
autoRotate: i,
|
|
@@ -6515,7 +6614,7 @@ function fi({ config: t }) {
|
|
|
6515
6614
|
}
|
|
6516
6615
|
),
|
|
6517
6616
|
/* @__PURE__ */ e(
|
|
6518
|
-
|
|
6617
|
+
C,
|
|
6519
6618
|
{
|
|
6520
6619
|
ex: 330,
|
|
6521
6620
|
ey: 390,
|
|
@@ -6534,7 +6633,7 @@ function fi({ config: t }) {
|
|
|
6534
6633
|
graphSeries: xe({ cpuLoad: 89, memLoad: 91 })
|
|
6535
6634
|
},
|
|
6536
6635
|
children: /* @__PURE__ */ e(
|
|
6537
|
-
|
|
6636
|
+
J,
|
|
6538
6637
|
{
|
|
6539
6638
|
rotateY: o,
|
|
6540
6639
|
autoRotate: i,
|
|
@@ -6548,7 +6647,7 @@ function fi({ config: t }) {
|
|
|
6548
6647
|
}
|
|
6549
6648
|
),
|
|
6550
6649
|
/* @__PURE__ */ e(
|
|
6551
|
-
|
|
6650
|
+
C,
|
|
6552
6651
|
{
|
|
6553
6652
|
ex: 495,
|
|
6554
6653
|
ey: 390,
|
|
@@ -6567,7 +6666,7 @@ function fi({ config: t }) {
|
|
|
6567
6666
|
graphSeries: xe({ cpuLoad: 45, memLoad: 63 })
|
|
6568
6667
|
},
|
|
6569
6668
|
children: /* @__PURE__ */ e(
|
|
6570
|
-
|
|
6669
|
+
J,
|
|
6571
6670
|
{
|
|
6572
6671
|
rotateY: o,
|
|
6573
6672
|
autoRotate: i,
|
|
@@ -6581,7 +6680,7 @@ function fi({ config: t }) {
|
|
|
6581
6680
|
}
|
|
6582
6681
|
),
|
|
6583
6682
|
/* @__PURE__ */ e(
|
|
6584
|
-
|
|
6683
|
+
C,
|
|
6585
6684
|
{
|
|
6586
6685
|
ex: 200,
|
|
6587
6686
|
ey: 520,
|
|
@@ -6594,17 +6693,17 @@ function fi({ config: t }) {
|
|
|
6594
6693
|
componentInfo: {
|
|
6595
6694
|
type: "database",
|
|
6596
6695
|
name: "DB-PRI",
|
|
6597
|
-
status:
|
|
6696
|
+
status: f,
|
|
6598
6697
|
context: { capacity: 72 },
|
|
6599
|
-
subComponents:
|
|
6600
|
-
graphSeries:
|
|
6698
|
+
subComponents: Me(f, "DB-PRI", { capacity: 72 }),
|
|
6699
|
+
graphSeries: Ne({ capacity: 72 })
|
|
6601
6700
|
},
|
|
6602
6701
|
children: /* @__PURE__ */ e(
|
|
6603
|
-
|
|
6702
|
+
Ee,
|
|
6604
6703
|
{
|
|
6605
6704
|
rotateY: -o,
|
|
6606
6705
|
autoRotate: i,
|
|
6607
|
-
status:
|
|
6706
|
+
status: f,
|
|
6608
6707
|
name: "DB-PRI",
|
|
6609
6708
|
capacity: 72,
|
|
6610
6709
|
connections: 284,
|
|
@@ -6614,7 +6713,7 @@ function fi({ config: t }) {
|
|
|
6614
6713
|
}
|
|
6615
6714
|
),
|
|
6616
6715
|
/* @__PURE__ */ e(
|
|
6617
|
-
|
|
6716
|
+
C,
|
|
6618
6717
|
{
|
|
6619
6718
|
ex: 460,
|
|
6620
6719
|
ey: 520,
|
|
@@ -6629,11 +6728,11 @@ function fi({ config: t }) {
|
|
|
6629
6728
|
name: "DB-STB",
|
|
6630
6729
|
status: c,
|
|
6631
6730
|
context: { capacity: 72 },
|
|
6632
|
-
subComponents:
|
|
6633
|
-
graphSeries:
|
|
6731
|
+
subComponents: Me(c, "DB-STB", { capacity: 72 }),
|
|
6732
|
+
graphSeries: Ne({ capacity: 72 })
|
|
6634
6733
|
},
|
|
6635
6734
|
children: /* @__PURE__ */ e(
|
|
6636
|
-
|
|
6735
|
+
Ee,
|
|
6637
6736
|
{
|
|
6638
6737
|
rotateY: o,
|
|
6639
6738
|
autoRotate: i,
|
|
@@ -6647,7 +6746,7 @@ function fi({ config: t }) {
|
|
|
6647
6746
|
}
|
|
6648
6747
|
),
|
|
6649
6748
|
/* @__PURE__ */ e(
|
|
6650
|
-
|
|
6749
|
+
C,
|
|
6651
6750
|
{
|
|
6652
6751
|
ex: 330,
|
|
6653
6752
|
ey: 520,
|
|
@@ -6656,17 +6755,17 @@ function fi({ config: t }) {
|
|
|
6656
6755
|
visibleAtPhase: 6,
|
|
6657
6756
|
fixedScale: 1,
|
|
6658
6757
|
bare: !0,
|
|
6659
|
-
children: /* @__PURE__ */ e(
|
|
6758
|
+
children: /* @__PURE__ */ e(ut, { synced: p, latencyMs: p ? 8 : 342 })
|
|
6660
6759
|
}
|
|
6661
6760
|
),
|
|
6662
|
-
/* @__PURE__ */ e(
|
|
6761
|
+
/* @__PURE__ */ e(vi, { config: t })
|
|
6663
6762
|
] });
|
|
6664
6763
|
}
|
|
6665
|
-
function
|
|
6666
|
-
const n =
|
|
6764
|
+
function vi({ config: t }) {
|
|
6765
|
+
const n = ee.useContext(le), { dispStatus: o, srv1Status: i, srv2Status: r, srv3Status: a, pdbStatus: s, sdbStatus: l, dbSync: f } = t, c = n?.isSelected && n?.isExpandedPos;
|
|
6667
6766
|
return n?.isSelected ? /* @__PURE__ */ d("div", { style: { pointerEvents: "none" }, children: [
|
|
6668
6767
|
/* @__PURE__ */ e(
|
|
6669
|
-
|
|
6768
|
+
O,
|
|
6670
6769
|
{
|
|
6671
6770
|
ex: 330,
|
|
6672
6771
|
ey: 260,
|
|
@@ -6681,7 +6780,7 @@ function hi({ config: t }) {
|
|
|
6681
6780
|
}
|
|
6682
6781
|
),
|
|
6683
6782
|
/* @__PURE__ */ e(
|
|
6684
|
-
|
|
6783
|
+
O,
|
|
6685
6784
|
{
|
|
6686
6785
|
ex: 165,
|
|
6687
6786
|
ey: 390,
|
|
@@ -6696,7 +6795,7 @@ function hi({ config: t }) {
|
|
|
6696
6795
|
}
|
|
6697
6796
|
),
|
|
6698
6797
|
/* @__PURE__ */ e(
|
|
6699
|
-
|
|
6798
|
+
O,
|
|
6700
6799
|
{
|
|
6701
6800
|
ex: 330,
|
|
6702
6801
|
ey: 390,
|
|
@@ -6711,7 +6810,7 @@ function hi({ config: t }) {
|
|
|
6711
6810
|
}
|
|
6712
6811
|
),
|
|
6713
6812
|
/* @__PURE__ */ e(
|
|
6714
|
-
|
|
6813
|
+
O,
|
|
6715
6814
|
{
|
|
6716
6815
|
ex: 495,
|
|
6717
6816
|
ey: 390,
|
|
@@ -6726,7 +6825,7 @@ function hi({ config: t }) {
|
|
|
6726
6825
|
}
|
|
6727
6826
|
),
|
|
6728
6827
|
/* @__PURE__ */ e(
|
|
6729
|
-
|
|
6828
|
+
O,
|
|
6730
6829
|
{
|
|
6731
6830
|
ex: 200,
|
|
6732
6831
|
ey: 520,
|
|
@@ -6741,7 +6840,7 @@ function hi({ config: t }) {
|
|
|
6741
6840
|
}
|
|
6742
6841
|
),
|
|
6743
6842
|
/* @__PURE__ */ e(
|
|
6744
|
-
|
|
6843
|
+
O,
|
|
6745
6844
|
{
|
|
6746
6845
|
ex: 460,
|
|
6747
6846
|
ey: 520,
|
|
@@ -6755,8 +6854,8 @@ function hi({ config: t }) {
|
|
|
6755
6854
|
internalRef: l !== "online" ? "PLATTER-2" : void 0
|
|
6756
6855
|
}
|
|
6757
6856
|
),
|
|
6758
|
-
!
|
|
6759
|
-
|
|
6857
|
+
!f && /* @__PURE__ */ e(
|
|
6858
|
+
O,
|
|
6760
6859
|
{
|
|
6761
6860
|
ex: 330,
|
|
6762
6861
|
ey: 520,
|
|
@@ -6772,70 +6871,71 @@ function hi({ config: t }) {
|
|
|
6772
6871
|
)
|
|
6773
6872
|
] }) : null;
|
|
6774
6873
|
}
|
|
6775
|
-
function
|
|
6874
|
+
function zi({ config: t, ...n }) {
|
|
6776
6875
|
return /* @__PURE__ */ e(
|
|
6777
|
-
|
|
6876
|
+
tt,
|
|
6778
6877
|
{
|
|
6779
6878
|
name: t.name,
|
|
6780
|
-
status:
|
|
6781
|
-
connections:
|
|
6879
|
+
status: rt(t),
|
|
6880
|
+
connections: mi,
|
|
6782
6881
|
...n,
|
|
6783
|
-
children: /* @__PURE__ */ e(
|
|
6882
|
+
children: /* @__PURE__ */ e(xi, { config: t })
|
|
6784
6883
|
}
|
|
6785
6884
|
);
|
|
6786
6885
|
}
|
|
6787
6886
|
export {
|
|
6788
|
-
|
|
6789
|
-
|
|
6790
|
-
|
|
6791
|
-
|
|
6792
|
-
|
|
6793
|
-
|
|
6794
|
-
|
|
6795
|
-
|
|
6887
|
+
Ti as AIOPsDashboard,
|
|
6888
|
+
We as CPU3D,
|
|
6889
|
+
Nt as Carousel,
|
|
6890
|
+
Je as CarouselContext,
|
|
6891
|
+
et as CarouselItemContext,
|
|
6892
|
+
Wt as ComponentDialog,
|
|
6893
|
+
Ei as ComponentDrillView,
|
|
6894
|
+
Ee as Database3D,
|
|
6796
6895
|
ye as DriveBay3D,
|
|
6797
|
-
|
|
6798
|
-
|
|
6799
|
-
|
|
6800
|
-
|
|
6801
|
-
|
|
6896
|
+
mi as EXCHANGE_CONNECTIONS,
|
|
6897
|
+
zi as ExchangeService,
|
|
6898
|
+
Ri as HOLO_BLUE,
|
|
6899
|
+
ki as HOLO_CYAN,
|
|
6900
|
+
Ke as HOLO_GLASS,
|
|
6802
6901
|
we as HOLO_SURFACE,
|
|
6803
|
-
|
|
6804
|
-
|
|
6805
|
-
|
|
6806
|
-
|
|
6807
|
-
|
|
6808
|
-
|
|
6809
|
-
|
|
6810
|
-
|
|
6902
|
+
ii as HistoricalGraphPanel,
|
|
6903
|
+
Ht as HoloBase,
|
|
6904
|
+
gt as Human3D,
|
|
6905
|
+
ze as Memory3D,
|
|
6906
|
+
bt as MessageServer3D,
|
|
6907
|
+
mt as NetworkBlock3D,
|
|
6908
|
+
O as NodeCallout,
|
|
6909
|
+
Oe as Platter3D,
|
|
6811
6910
|
B as Port3D,
|
|
6812
|
-
|
|
6813
|
-
|
|
6911
|
+
Oi as SAPService,
|
|
6912
|
+
bi as SAP_CONNECTIONS,
|
|
6814
6913
|
w as STATUS_CFG,
|
|
6815
|
-
|
|
6816
|
-
|
|
6817
|
-
|
|
6818
|
-
|
|
6819
|
-
|
|
6820
|
-
|
|
6821
|
-
|
|
6822
|
-
|
|
6823
|
-
|
|
6824
|
-
|
|
6825
|
-
|
|
6826
|
-
|
|
6827
|
-
|
|
6828
|
-
|
|
6829
|
-
|
|
6830
|
-
|
|
6831
|
-
|
|
6832
|
-
|
|
6833
|
-
|
|
6834
|
-
|
|
6835
|
-
|
|
6914
|
+
J as Server3D,
|
|
6915
|
+
tt as Service,
|
|
6916
|
+
le as ServiceContext,
|
|
6917
|
+
Ot as ServiceDialog,
|
|
6918
|
+
C as ServiceNode,
|
|
6919
|
+
Ai as SimpleService,
|
|
6920
|
+
Bt as SvgConnection,
|
|
6921
|
+
ut as SyncBridge,
|
|
6922
|
+
D as ThreadPool3D,
|
|
6923
|
+
nt as WebDispatcher3D,
|
|
6924
|
+
Wi as computeExchangeDialogAlerts,
|
|
6925
|
+
Di as computeExchangeDialogMetrics,
|
|
6926
|
+
rt as computeExchangeServiceStatus,
|
|
6927
|
+
Ii as computeSAPDialogAlerts,
|
|
6928
|
+
Li as computeSAPDialogMetrics,
|
|
6929
|
+
ot as computeSAPServiceStatus,
|
|
6930
|
+
Ne as getDatabaseGraphSeries,
|
|
6931
|
+
Me as getDatabaseSubComponents,
|
|
6932
|
+
wt as getDispatcherGraphSeries,
|
|
6933
|
+
vt as getDispatcherSubComponents,
|
|
6934
|
+
ui as getMessageServerGraphSeries,
|
|
6935
|
+
hi as getMessageServerSubComponents,
|
|
6836
6936
|
xe as getServerGraphSeries,
|
|
6837
6937
|
me as getServerSubComponents,
|
|
6838
|
-
|
|
6839
|
-
|
|
6840
|
-
|
|
6938
|
+
Ze as makeFaceStyles,
|
|
6939
|
+
Pi as useCarouselContext,
|
|
6940
|
+
Ci as useCarouselItemContext
|
|
6841
6941
|
};
|