react-aiops 0.1.11 → 0.1.13
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/AIOPsDashboard.d.ts.map +1 -1
- package/dist/components/Carousel.d.ts +3 -1
- package/dist/components/Carousel.d.ts.map +1 -1
- package/dist/components/CarouselContext.d.ts +1 -0
- package/dist/components/CarouselContext.d.ts.map +1 -1
- package/dist/components/NodeCallout.d.ts +3 -1
- package/dist/components/NodeCallout.d.ts.map +1 -1
- package/dist/components/Service.d.ts +5 -1
- package/dist/components/Service.d.ts.map +1 -1
- package/dist/components/ServiceNode.d.ts.map +1 -1
- package/dist/data/DataProvider.d.ts +18 -1
- package/dist/data/DataProvider.d.ts.map +1 -1
- package/dist/data/index.d.ts +1 -1
- package/dist/data/index.d.ts.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1088 -1013
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
const
|
|
1
|
+
import { jsxs as c, jsx as e, Fragment as Me } from "react/jsx-runtime";
|
|
2
|
+
import q, { createContext as tt, useContext as ge, useState as R, useEffect as ke, useMemo as Tt, useRef as ie, useCallback as Ge } from "react";
|
|
3
|
+
const Ht = {
|
|
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 Ut({
|
|
9
9
|
name: t,
|
|
10
10
|
status: n,
|
|
11
11
|
dbSync: o = !0,
|
|
@@ -31,13 +31,13 @@ function Nt({
|
|
|
31
31
|
value: s ? "5.42%" : l ? "1.20%" : "0.01%",
|
|
32
32
|
color: s ? "#ff2255" : l ? "#ff8c00" : "#00ff88"
|
|
33
33
|
}
|
|
34
|
-
],
|
|
34
|
+
], d = a ?? [
|
|
35
35
|
...o ? [] : [{ level: "warning", message: "DB Replication Lag Detected" }],
|
|
36
36
|
...s ? [{ level: "critical", message: "Critical Component Failure" }] : [],
|
|
37
37
|
...l && !s ? [{ level: "warning", message: "Component Warning State" }] : [],
|
|
38
38
|
...!s && !l && o ? [{ level: "info", message: "All Systems Nominal" }] : []
|
|
39
39
|
];
|
|
40
|
-
return /* @__PURE__ */
|
|
40
|
+
return /* @__PURE__ */ c(
|
|
41
41
|
"div",
|
|
42
42
|
{
|
|
43
43
|
style: {
|
|
@@ -64,7 +64,7 @@ function Nt({
|
|
|
64
64
|
gap: 16
|
|
65
65
|
},
|
|
66
66
|
children: [
|
|
67
|
-
/* @__PURE__ */
|
|
67
|
+
/* @__PURE__ */ c(
|
|
68
68
|
"div",
|
|
69
69
|
{
|
|
70
70
|
style: {
|
|
@@ -115,13 +115,13 @@ function Nt({
|
|
|
115
115
|
fontSize: 13,
|
|
116
116
|
color: "#a0b0c0"
|
|
117
117
|
},
|
|
118
|
-
children: h.map((p, f) => /* @__PURE__ */
|
|
118
|
+
children: h.map((p, f) => /* @__PURE__ */ c("div", { style: { display: "flex", justifyContent: "space-between" }, children: [
|
|
119
119
|
/* @__PURE__ */ e("span", { children: p.label }),
|
|
120
120
|
/* @__PURE__ */ e("span", { style: { color: p.color }, children: p.value })
|
|
121
121
|
] }, f))
|
|
122
122
|
}
|
|
123
123
|
),
|
|
124
|
-
/* @__PURE__ */
|
|
124
|
+
/* @__PURE__ */ c(
|
|
125
125
|
"div",
|
|
126
126
|
{
|
|
127
127
|
style: {
|
|
@@ -145,9 +145,9 @@ function Nt({
|
|
|
145
145
|
children: "SYSTEM ALERTS"
|
|
146
146
|
}
|
|
147
147
|
),
|
|
148
|
-
|
|
149
|
-
const g =
|
|
150
|
-
return /* @__PURE__ */
|
|
148
|
+
d.map((p, f) => {
|
|
149
|
+
const g = Ht[p.level];
|
|
150
|
+
return /* @__PURE__ */ c(
|
|
151
151
|
"div",
|
|
152
152
|
{
|
|
153
153
|
style: {
|
|
@@ -177,13 +177,13 @@ function Nt({
|
|
|
177
177
|
}
|
|
178
178
|
);
|
|
179
179
|
}
|
|
180
|
-
const
|
|
180
|
+
const $ = {
|
|
181
181
|
online: { color: "#00e5ff", glow: "rgba(0,229,255,0.55)" },
|
|
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
|
+
}, Ii = "#00e5ff", Di = "#0055cc", ze = "linear-gradient(180deg, #071428 0%, #040c1c 60%, #030810 100%)", ft = "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 ht(t, n, o) {
|
|
187
187
|
const i = {
|
|
188
188
|
position: "absolute",
|
|
189
189
|
overflow: "hidden",
|
|
@@ -233,56 +233,56 @@ function Je(t, n, o) {
|
|
|
233
233
|
}
|
|
234
234
|
};
|
|
235
235
|
}
|
|
236
|
-
const
|
|
237
|
-
function
|
|
238
|
-
return
|
|
236
|
+
const ct = "cubic-bezier(0.34, 1.56, 0.64, 1)", qe = "cubic-bezier(0.16, 1, 0.3, 1)";
|
|
237
|
+
function Ot(t) {
|
|
238
|
+
return $[t]?.color ?? $.online.color;
|
|
239
239
|
}
|
|
240
|
-
function
|
|
240
|
+
function Yt(t, n, o) {
|
|
241
241
|
return t >= o ? "#ff2255" : t >= n ? "#ff8c00" : "#00e5ff";
|
|
242
242
|
}
|
|
243
|
-
function
|
|
243
|
+
function Xe(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 Vt({
|
|
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: h, ey:
|
|
253
|
+
const { type: a, name: s, status: l, ex: h, ey: d, context: p = {} } = t, f = Ot(l), g = h >= i / 2, u = d >= r / 2, b = {
|
|
254
254
|
position: "fixed",
|
|
255
255
|
...g ? { right: 28 } : { left: 28 },
|
|
256
256
|
...u ? { bottom: 110 } : { top: 72 }
|
|
257
|
-
}, m = g ? 40 : -40,
|
|
258
|
-
let
|
|
259
|
-
if (
|
|
260
|
-
|
|
261
|
-
const
|
|
257
|
+
}, m = g ? 40 : -40, w = u ? 30 : -30, v = t.dialogMetrics ?? p.dialogMetrics;
|
|
258
|
+
let S;
|
|
259
|
+
if (v && v.length > 0)
|
|
260
|
+
S = v.map((y, x) => {
|
|
261
|
+
const C = y.warnAt ?? 70, k = y.critAt ?? 85;
|
|
262
262
|
return {
|
|
263
|
-
id:
|
|
264
|
-
label:
|
|
265
|
-
sublabel:
|
|
266
|
-
value:
|
|
267
|
-
unit:
|
|
268
|
-
status:
|
|
269
|
-
icon:
|
|
270
|
-
delay:
|
|
271
|
-
colorOverride:
|
|
272
|
-
warnAt:
|
|
273
|
-
critAt:
|
|
263
|
+
id: y.id,
|
|
264
|
+
label: y.label,
|
|
265
|
+
sublabel: y.sublabel,
|
|
266
|
+
value: y.value,
|
|
267
|
+
unit: y.unit ?? "%",
|
|
268
|
+
status: Xe(l, y.value, C, k),
|
|
269
|
+
icon: y.icon ?? "cpu",
|
|
270
|
+
delay: x,
|
|
271
|
+
colorOverride: y.color,
|
|
272
|
+
warnAt: C,
|
|
273
|
+
critAt: k
|
|
274
274
|
};
|
|
275
275
|
});
|
|
276
276
|
else {
|
|
277
|
-
const
|
|
278
|
-
|
|
277
|
+
const y = p.cpuLoad ?? p.traffic ?? 50, x = p.memLoad ?? p.queueDepth ?? 60, C = p.capacity ?? 72, k = Xe(l, y, 70, 85), P = Xe(l, x, 75, 88), O = Xe(l, C, 75, 90);
|
|
278
|
+
S = [
|
|
279
279
|
{
|
|
280
280
|
id: "cpu",
|
|
281
281
|
label: a === "dispatcher" ? "TRAFFIC" : a === "messageServer" ? "QUEUE" : "CPU",
|
|
282
282
|
sublabel: a === "dispatcher" ? "PORT LOAD" : a === "messageServer" ? "QUEUE DEPTH" : "PROCESSOR",
|
|
283
|
-
value:
|
|
283
|
+
value: y,
|
|
284
284
|
unit: "%",
|
|
285
|
-
status:
|
|
285
|
+
status: k,
|
|
286
286
|
icon: "cpu",
|
|
287
287
|
delay: 0
|
|
288
288
|
},
|
|
@@ -290,9 +290,9 @@ function Mt({
|
|
|
290
290
|
id: "mem",
|
|
291
291
|
label: "MEMORY",
|
|
292
292
|
sublabel: a === "database" ? "BUFFER POOL" : "HEAP USAGE",
|
|
293
|
-
value:
|
|
293
|
+
value: x,
|
|
294
294
|
unit: "%",
|
|
295
|
-
status:
|
|
295
|
+
status: P,
|
|
296
296
|
icon: "mem",
|
|
297
297
|
delay: 1
|
|
298
298
|
},
|
|
@@ -300,19 +300,19 @@ function Mt({
|
|
|
300
300
|
id: "storage",
|
|
301
301
|
label: "STORAGE",
|
|
302
302
|
sublabel: a === "database" ? "TABLESPACE" : "DISK I/O",
|
|
303
|
-
value:
|
|
303
|
+
value: C,
|
|
304
304
|
unit: "%",
|
|
305
|
-
status:
|
|
305
|
+
status: O,
|
|
306
306
|
icon: "disk",
|
|
307
307
|
delay: 2
|
|
308
308
|
}
|
|
309
309
|
];
|
|
310
310
|
}
|
|
311
|
-
return /* @__PURE__ */
|
|
311
|
+
return /* @__PURE__ */ c(
|
|
312
312
|
"div",
|
|
313
313
|
{
|
|
314
314
|
style: {
|
|
315
|
-
...
|
|
315
|
+
...b,
|
|
316
316
|
width: 420,
|
|
317
317
|
background: "linear-gradient(170deg, rgba(2, 10, 22, 0.96) 0%, rgba(2, 6, 14, 0.98) 100%)",
|
|
318
318
|
backdropFilter: "blur(20px)",
|
|
@@ -322,14 +322,14 @@ function Mt({
|
|
|
322
322
|
fontFamily: "'Courier New', monospace",
|
|
323
323
|
overflow: "hidden",
|
|
324
324
|
opacity: o ? 1 : 0,
|
|
325
|
-
transform: o ? "scale(1) translate(0, 0)" : `scale(0.7) translate(${m}px, ${
|
|
326
|
-
transition: `opacity 0.45s ${
|
|
325
|
+
transform: o ? "scale(1) translate(0, 0)" : `scale(0.7) translate(${m}px, ${w}px)`,
|
|
326
|
+
transition: `opacity 0.45s ${qe}, transform 0.55s ${ct}`,
|
|
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
330
|
"--dialog-color": f
|
|
331
331
|
},
|
|
332
|
-
onClick: (
|
|
332
|
+
onClick: (y) => y.stopPropagation(),
|
|
333
333
|
children: [
|
|
334
334
|
/* @__PURE__ */ e(
|
|
335
335
|
"div",
|
|
@@ -393,14 +393,14 @@ function Mt({
|
|
|
393
393
|
borderRight: `2px solid ${f}66`,
|
|
394
394
|
borderRadius: "0 0 14px 0"
|
|
395
395
|
}
|
|
396
|
-
].map((
|
|
396
|
+
].map((y, x) => /* @__PURE__ */ e(
|
|
397
397
|
"div",
|
|
398
398
|
{
|
|
399
|
-
style: { position: "absolute", width: 18, height: 18, pointerEvents: "none", ...
|
|
399
|
+
style: { position: "absolute", width: 18, height: 18, pointerEvents: "none", ...y }
|
|
400
400
|
},
|
|
401
|
-
|
|
401
|
+
x
|
|
402
402
|
)),
|
|
403
|
-
/* @__PURE__ */
|
|
403
|
+
/* @__PURE__ */ c(
|
|
404
404
|
"div",
|
|
405
405
|
{
|
|
406
406
|
style: {
|
|
@@ -414,8 +414,8 @@ function Mt({
|
|
|
414
414
|
zIndex: 2
|
|
415
415
|
},
|
|
416
416
|
children: [
|
|
417
|
-
/* @__PURE__ */
|
|
418
|
-
/* @__PURE__ */
|
|
417
|
+
/* @__PURE__ */ c("div", { style: { display: "flex", alignItems: "center", gap: 10, minWidth: 0 }, children: [
|
|
418
|
+
/* @__PURE__ */ c("div", { style: { position: "relative" }, children: [
|
|
419
419
|
/* @__PURE__ */ e(
|
|
420
420
|
"div",
|
|
421
421
|
{
|
|
@@ -442,7 +442,7 @@ function Mt({
|
|
|
442
442
|
}
|
|
443
443
|
)
|
|
444
444
|
] }),
|
|
445
|
-
/* @__PURE__ */
|
|
445
|
+
/* @__PURE__ */ c("div", { style: { display: "flex", flexDirection: "column", gap: 2, minWidth: 0 }, children: [
|
|
446
446
|
/* @__PURE__ */ e(
|
|
447
447
|
"span",
|
|
448
448
|
{
|
|
@@ -477,8 +477,8 @@ function Mt({
|
|
|
477
477
|
/* @__PURE__ */ e(
|
|
478
478
|
"button",
|
|
479
479
|
{
|
|
480
|
-
onClick: (
|
|
481
|
-
|
|
480
|
+
onClick: (y) => {
|
|
481
|
+
y.stopPropagation(), n();
|
|
482
482
|
},
|
|
483
483
|
style: {
|
|
484
484
|
width: 34,
|
|
@@ -496,11 +496,11 @@ function Mt({
|
|
|
496
496
|
lineHeight: 1,
|
|
497
497
|
flexShrink: 0
|
|
498
498
|
},
|
|
499
|
-
onMouseEnter: (
|
|
500
|
-
|
|
499
|
+
onMouseEnter: (y) => {
|
|
500
|
+
y.currentTarget.style.background = `${f}22`, y.currentTarget.style.boxShadow = `0 0 12px ${f}44`;
|
|
501
501
|
},
|
|
502
|
-
onMouseLeave: (
|
|
503
|
-
|
|
502
|
+
onMouseLeave: (y) => {
|
|
503
|
+
y.currentTarget.style.background = `linear-gradient(135deg, rgba(0,0,0,0.5) 0%, ${f}08 100%)`, y.currentTarget.style.boxShadow = "none";
|
|
504
504
|
},
|
|
505
505
|
children: "×"
|
|
506
506
|
}
|
|
@@ -519,10 +519,10 @@ function Mt({
|
|
|
519
519
|
position: "relative",
|
|
520
520
|
zIndex: 2
|
|
521
521
|
},
|
|
522
|
-
children:
|
|
522
|
+
children: S.map((y) => /* @__PURE__ */ e(_t, { metric: y, visible: o, accentColor: f }, y.id))
|
|
523
523
|
}
|
|
524
524
|
),
|
|
525
|
-
/* @__PURE__ */
|
|
525
|
+
/* @__PURE__ */ c(
|
|
526
526
|
"div",
|
|
527
527
|
{
|
|
528
528
|
style: {
|
|
@@ -540,12 +540,12 @@ function Mt({
|
|
|
540
540
|
zIndex: 2
|
|
541
541
|
},
|
|
542
542
|
children: [
|
|
543
|
-
/* @__PURE__ */
|
|
543
|
+
/* @__PURE__ */ c("span", { children: [
|
|
544
544
|
a.toUpperCase(),
|
|
545
545
|
" · ",
|
|
546
546
|
l.toUpperCase()
|
|
547
547
|
] }),
|
|
548
|
-
/* @__PURE__ */
|
|
548
|
+
/* @__PURE__ */ c("span", { style: { display: "flex", alignItems: "center", gap: 6 }, children: [
|
|
549
549
|
/* @__PURE__ */ e(
|
|
550
550
|
"span",
|
|
551
551
|
{
|
|
@@ -568,7 +568,7 @@ function Mt({
|
|
|
568
568
|
}
|
|
569
569
|
);
|
|
570
570
|
}
|
|
571
|
-
function
|
|
571
|
+
function _t({
|
|
572
572
|
metric: t,
|
|
573
573
|
visible: n,
|
|
574
574
|
accentColor: o
|
|
@@ -580,12 +580,12 @@ function zt({
|
|
|
580
580
|
unit: s,
|
|
581
581
|
status: l,
|
|
582
582
|
icon: h,
|
|
583
|
-
delay:
|
|
583
|
+
delay: d,
|
|
584
584
|
colorOverride: p,
|
|
585
585
|
warnAt: f = 70,
|
|
586
586
|
critAt: g = 85
|
|
587
|
-
} = t, u = p ??
|
|
588
|
-
return /* @__PURE__ */
|
|
587
|
+
} = t, u = p ?? Yt(a, f, g), b = p ?? Ot(l);
|
|
588
|
+
return /* @__PURE__ */ c(
|
|
589
589
|
"div",
|
|
590
590
|
{
|
|
591
591
|
style: {
|
|
@@ -594,28 +594,28 @@ function zt({
|
|
|
594
594
|
gap: 16,
|
|
595
595
|
opacity: n ? 1 : 0,
|
|
596
596
|
transform: n ? "translateY(0)" : "translateY(12px)",
|
|
597
|
-
transition: `opacity 0.4s ${
|
|
597
|
+
transition: `opacity 0.4s ${qe} ${0.3 + d * 0.12}s, transform 0.5s ${ct} ${0.3 + d * 0.12}s`
|
|
598
598
|
},
|
|
599
599
|
children: [
|
|
600
|
-
/* @__PURE__ */
|
|
600
|
+
/* @__PURE__ */ c(
|
|
601
601
|
"div",
|
|
602
602
|
{
|
|
603
603
|
style: {
|
|
604
604
|
width: 52,
|
|
605
605
|
height: 52,
|
|
606
606
|
borderRadius: 12,
|
|
607
|
-
border: `1px solid ${
|
|
608
|
-
background: `linear-gradient(135deg, ${
|
|
607
|
+
border: `1px solid ${b}44`,
|
|
608
|
+
background: `linear-gradient(135deg, ${b}0c 0%, ${b}04 100%)`,
|
|
609
609
|
display: "flex",
|
|
610
610
|
alignItems: "center",
|
|
611
611
|
justifyContent: "center",
|
|
612
612
|
flexShrink: 0,
|
|
613
613
|
position: "relative",
|
|
614
614
|
overflow: "hidden",
|
|
615
|
-
animation: n ? `comp-dialog-icon-pop 0.5s ${
|
|
615
|
+
animation: n ? `comp-dialog-icon-pop 0.5s ${ct} ${0.35 + d * 0.12}s both` : "none"
|
|
616
616
|
},
|
|
617
617
|
children: [
|
|
618
|
-
/* @__PURE__ */ e(
|
|
618
|
+
/* @__PURE__ */ e(jt, { type: h, color: b }),
|
|
619
619
|
(l === "warning" || l === "critical") && /* @__PURE__ */ e(
|
|
620
620
|
"div",
|
|
621
621
|
{
|
|
@@ -626,8 +626,8 @@ function zt({
|
|
|
626
626
|
width: 5,
|
|
627
627
|
height: 5,
|
|
628
628
|
borderRadius: "50%",
|
|
629
|
-
background:
|
|
630
|
-
boxShadow: `0 0 6px ${
|
|
629
|
+
background: b,
|
|
630
|
+
boxShadow: `0 0 6px ${b}`,
|
|
631
631
|
animation: "holo-led-blink 1.2s infinite"
|
|
632
632
|
}
|
|
633
633
|
}
|
|
@@ -635,8 +635,8 @@ function zt({
|
|
|
635
635
|
]
|
|
636
636
|
}
|
|
637
637
|
),
|
|
638
|
-
/* @__PURE__ */
|
|
639
|
-
/* @__PURE__ */
|
|
638
|
+
/* @__PURE__ */ c("div", { style: { flex: 1, minWidth: 0 }, children: [
|
|
639
|
+
/* @__PURE__ */ c(
|
|
640
640
|
"div",
|
|
641
641
|
{
|
|
642
642
|
style: {
|
|
@@ -646,7 +646,7 @@ function zt({
|
|
|
646
646
|
marginBottom: 6
|
|
647
647
|
},
|
|
648
648
|
children: [
|
|
649
|
-
/* @__PURE__ */
|
|
649
|
+
/* @__PURE__ */ c("div", { style: { display: "flex", flexDirection: "column", gap: 2 }, children: [
|
|
650
650
|
/* @__PURE__ */ e(
|
|
651
651
|
"span",
|
|
652
652
|
{
|
|
@@ -672,7 +672,7 @@ function zt({
|
|
|
672
672
|
}
|
|
673
673
|
)
|
|
674
674
|
] }),
|
|
675
|
-
/* @__PURE__ */
|
|
675
|
+
/* @__PURE__ */ c(
|
|
676
676
|
"span",
|
|
677
677
|
{
|
|
678
678
|
style: {
|
|
@@ -691,7 +691,7 @@ function zt({
|
|
|
691
691
|
]
|
|
692
692
|
}
|
|
693
693
|
),
|
|
694
|
-
/* @__PURE__ */
|
|
694
|
+
/* @__PURE__ */ c(
|
|
695
695
|
"div",
|
|
696
696
|
{
|
|
697
697
|
style: {
|
|
@@ -714,7 +714,8 @@ function zt({
|
|
|
714
714
|
background: `linear-gradient(90deg, ${u}66, ${u})`,
|
|
715
715
|
boxShadow: `0 0 8px ${u}44`,
|
|
716
716
|
transformOrigin: "left center",
|
|
717
|
-
animation: n ? `comp-dialog-metric-fill 0.8s ${
|
|
717
|
+
animation: n ? `comp-dialog-metric-fill 0.8s ${qe} ${0.4 + d * 0.12}s both` : "none",
|
|
718
|
+
transition: `width 0.6s ${qe}, background 0.4s ease, box-shadow 0.4s ease`
|
|
718
719
|
}
|
|
719
720
|
}
|
|
720
721
|
),
|
|
@@ -747,7 +748,7 @@ function zt({
|
|
|
747
748
|
]
|
|
748
749
|
}
|
|
749
750
|
),
|
|
750
|
-
/* @__PURE__ */
|
|
751
|
+
/* @__PURE__ */ c("div", { style: { position: "relative", height: 10, marginTop: 2 }, children: [
|
|
751
752
|
/* @__PURE__ */ e(
|
|
752
753
|
"span",
|
|
753
754
|
{
|
|
@@ -808,8 +809,8 @@ function zt({
|
|
|
808
809
|
}
|
|
809
810
|
);
|
|
810
811
|
}
|
|
811
|
-
function
|
|
812
|
-
return t === "cpu" ? /* @__PURE__ */
|
|
812
|
+
function jt({ type: t, color: n }) {
|
|
813
|
+
return t === "cpu" ? /* @__PURE__ */ c("svg", { width: 28, height: 28, viewBox: "0 0 24 24", fill: "none", children: [
|
|
813
814
|
/* @__PURE__ */ e("rect", { x: "6", y: "6", width: "12", height: "12", rx: "2", stroke: n, strokeWidth: "1.5" }),
|
|
814
815
|
/* @__PURE__ */ e(
|
|
815
816
|
"rect",
|
|
@@ -836,7 +837,7 @@ function Bt({ type: t, color: n }) {
|
|
|
836
837
|
/* @__PURE__ */ e("line", { x1: "9", y1: "18", x2: "9", y2: "20", stroke: n, strokeWidth: "1" }),
|
|
837
838
|
/* @__PURE__ */ e("line", { x1: "12", y1: "18", x2: "12", y2: "20", stroke: n, strokeWidth: "1" }),
|
|
838
839
|
/* @__PURE__ */ e("line", { x1: "15", y1: "18", x2: "15", y2: "20", stroke: n, strokeWidth: "1" })
|
|
839
|
-
] }) : t === "mem" ? /* @__PURE__ */
|
|
840
|
+
] }) : t === "mem" ? /* @__PURE__ */ c("svg", { width: 28, height: 28, viewBox: "0 0 24 24", fill: "none", children: [
|
|
840
841
|
/* @__PURE__ */ e("rect", { x: "7", y: "3", width: "10", height: "18", rx: "1.5", stroke: n, strokeWidth: "1.5" }),
|
|
841
842
|
/* @__PURE__ */ e(
|
|
842
843
|
"rect",
|
|
@@ -883,7 +884,7 @@ function Bt({ type: t, color: n }) {
|
|
|
883
884
|
/* @__PURE__ */ e("line", { x1: "17", y1: "7", x2: "19", y2: "7", stroke: n, strokeWidth: "0.8" }),
|
|
884
885
|
/* @__PURE__ */ e("line", { x1: "17", y1: "11", x2: "19", y2: "11", stroke: n, strokeWidth: "0.8" }),
|
|
885
886
|
/* @__PURE__ */ e("line", { x1: "17", y1: "15", x2: "19", y2: "15", stroke: n, strokeWidth: "0.8" })
|
|
886
|
-
] }) : /* @__PURE__ */
|
|
887
|
+
] }) : /* @__PURE__ */ c("svg", { width: 28, height: 28, viewBox: "0 0 24 24", fill: "none", children: [
|
|
887
888
|
/* @__PURE__ */ e("circle", { cx: "12", cy: "12", r: "8.5", stroke: n, strokeWidth: "1.5" }),
|
|
888
889
|
/* @__PURE__ */ e("circle", { cx: "12", cy: "12", r: "5.5", stroke: n, strokeWidth: "0.5", strokeDasharray: "2 2" }),
|
|
889
890
|
/* @__PURE__ */ e("circle", { cx: "12", cy: "12", r: "2", fill: `${n}55` }),
|
|
@@ -893,14 +894,14 @@ function Bt({ type: t, color: n }) {
|
|
|
893
894
|
/* @__PURE__ */ e("line", { x1: "18", y1: "12", x2: "21", y2: "12", stroke: n, strokeWidth: "0.8" })
|
|
894
895
|
] });
|
|
895
896
|
}
|
|
896
|
-
const
|
|
897
|
-
function
|
|
898
|
-
return
|
|
897
|
+
const ut = tt(null), bt = tt({ index: 0 });
|
|
898
|
+
function Ni() {
|
|
899
|
+
return ge(ut);
|
|
899
900
|
}
|
|
900
|
-
function
|
|
901
|
-
return
|
|
901
|
+
function Wi() {
|
|
902
|
+
return ge(bt);
|
|
902
903
|
}
|
|
903
|
-
function
|
|
904
|
+
function Xt({
|
|
904
905
|
children: t,
|
|
905
906
|
logoUrl: n,
|
|
906
907
|
viewState: o,
|
|
@@ -910,63 +911,69 @@ function Ft({
|
|
|
910
911
|
drillAnimPhase: s,
|
|
911
912
|
rotateY: l = 20,
|
|
912
913
|
autoRotateComponents: h = !0,
|
|
913
|
-
componentScale:
|
|
914
|
+
componentScale: d = 0.35,
|
|
914
915
|
drillZoom: p = 3.3,
|
|
915
916
|
autoRotateCarousel: f = !0,
|
|
916
917
|
carouselSpeed: g = 6e-3,
|
|
917
918
|
width: u = 950,
|
|
918
|
-
height:
|
|
919
|
+
height: b = 790,
|
|
919
920
|
onSelectSystem: m,
|
|
920
|
-
onBackgroundClick:
|
|
921
|
-
onComponentClick:
|
|
922
|
-
onCloseDrill:
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
921
|
+
onBackgroundClick: w,
|
|
922
|
+
onComponentClick: v,
|
|
923
|
+
onCloseDrill: S,
|
|
924
|
+
onComponentUpdate: y,
|
|
925
|
+
selectedSystemStatus: x = "online",
|
|
926
|
+
selectedSystemDbSync: C = !0,
|
|
927
|
+
selectedSystemMetrics: k,
|
|
928
|
+
selectedSystemAlerts: P
|
|
927
929
|
}) {
|
|
928
|
-
const [
|
|
929
|
-
|
|
930
|
-
let
|
|
930
|
+
const [O, I] = R(0);
|
|
931
|
+
ke(() => {
|
|
932
|
+
let N;
|
|
931
933
|
if ((o === "compact" || o === "collapsing") && f) {
|
|
932
934
|
const U = () => {
|
|
933
|
-
|
|
935
|
+
I((ne) => ne + g), N = requestAnimationFrame(U);
|
|
934
936
|
};
|
|
935
|
-
|
|
937
|
+
N = requestAnimationFrame(U);
|
|
936
938
|
}
|
|
937
|
-
return () => cancelAnimationFrame(
|
|
939
|
+
return () => cancelAnimationFrame(N);
|
|
938
940
|
}, [o, f, g]);
|
|
939
|
-
const
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
941
|
+
const z = q.Children.toArray(t), K = z.length, Z = Tt(
|
|
942
|
+
() => ({
|
|
943
|
+
totalSystems: K,
|
|
944
|
+
carouselRotation: O,
|
|
945
|
+
viewState: o,
|
|
946
|
+
animPhase: i,
|
|
947
|
+
selectedSystem: r,
|
|
948
|
+
selectedComponent: a,
|
|
949
|
+
rotateY: l,
|
|
950
|
+
autoRotateComponents: h,
|
|
951
|
+
componentScale: d,
|
|
952
|
+
drillZoom: p,
|
|
953
|
+
onSelectSystem: m,
|
|
954
|
+
onComponentClick: v,
|
|
955
|
+
onComponentUpdate: y,
|
|
956
|
+
containerWidth: u
|
|
957
|
+
}),
|
|
958
|
+
[
|
|
959
|
+
K,
|
|
960
|
+
O,
|
|
961
|
+
o,
|
|
962
|
+
i,
|
|
963
|
+
r,
|
|
964
|
+
a,
|
|
965
|
+
l,
|
|
966
|
+
h,
|
|
967
|
+
d,
|
|
968
|
+
p,
|
|
969
|
+
m,
|
|
970
|
+
v,
|
|
971
|
+
y,
|
|
972
|
+
u
|
|
973
|
+
]
|
|
974
|
+
), ye = z.map((N, U) => /* @__PURE__ */ e(bt.Provider, { value: { index: U }, children: N }, U)), me = o === "expanded" || o === "expanding" && i >= 4;
|
|
975
|
+
return /* @__PURE__ */ c(ut.Provider, { value: Z, children: [
|
|
976
|
+
/* @__PURE__ */ c("div", { style: { position: "relative", width: u, height: b, margin: "0 auto", flexShrink: 0 }, children: [
|
|
970
977
|
n && (o === "compact" || o === "collapsing") && /* @__PURE__ */ e(
|
|
971
978
|
"img",
|
|
972
979
|
{
|
|
@@ -987,32 +994,32 @@ function Ft({
|
|
|
987
994
|
}
|
|
988
995
|
}
|
|
989
996
|
),
|
|
990
|
-
|
|
997
|
+
ye
|
|
991
998
|
] }),
|
|
992
|
-
r && /* @__PURE__ */ e("div", { onClick: (
|
|
993
|
-
|
|
999
|
+
r && /* @__PURE__ */ e("div", { onClick: (N) => N.stopPropagation(), children: /* @__PURE__ */ e(
|
|
1000
|
+
Ut,
|
|
994
1001
|
{
|
|
995
1002
|
name: r,
|
|
996
|
-
status:
|
|
997
|
-
dbSync:
|
|
998
|
-
visible:
|
|
999
|
-
metrics:
|
|
1000
|
-
alerts:
|
|
1003
|
+
status: x,
|
|
1004
|
+
dbSync: C,
|
|
1005
|
+
visible: me && !a,
|
|
1006
|
+
metrics: k,
|
|
1007
|
+
alerts: P
|
|
1001
1008
|
}
|
|
1002
1009
|
) }),
|
|
1003
|
-
a && /* @__PURE__ */ e("div", { onClick: (
|
|
1004
|
-
|
|
1010
|
+
a && /* @__PURE__ */ e("div", { onClick: (N) => N.stopPropagation(), children: /* @__PURE__ */ e(
|
|
1011
|
+
Vt,
|
|
1005
1012
|
{
|
|
1006
1013
|
component: a,
|
|
1007
|
-
onClose:
|
|
1014
|
+
onClose: S,
|
|
1008
1015
|
visible: s >= 0.3,
|
|
1009
1016
|
sceneWidth: u,
|
|
1010
|
-
sceneHeight:
|
|
1017
|
+
sceneHeight: b
|
|
1011
1018
|
}
|
|
1012
1019
|
) })
|
|
1013
1020
|
] });
|
|
1014
1021
|
}
|
|
1015
|
-
function
|
|
1022
|
+
function qt({
|
|
1016
1023
|
x1: t,
|
|
1017
1024
|
y1: n,
|
|
1018
1025
|
x2: o,
|
|
@@ -1021,7 +1028,7 @@ function Ht({
|
|
|
1021
1028
|
color: a = "#00e5ff",
|
|
1022
1029
|
dur: s = "3s"
|
|
1023
1030
|
}) {
|
|
1024
|
-
return /* @__PURE__ */
|
|
1031
|
+
return /* @__PURE__ */ c("g", { opacity: r ? 1 : 0, style: { transition: "opacity 0.6s ease" }, children: [
|
|
1025
1032
|
/* @__PURE__ */ e(
|
|
1026
1033
|
"line",
|
|
1027
1034
|
{
|
|
@@ -1059,7 +1066,7 @@ function Ht({
|
|
|
1059
1066
|
)
|
|
1060
1067
|
}
|
|
1061
1068
|
),
|
|
1062
|
-
r && /* @__PURE__ */
|
|
1069
|
+
r && /* @__PURE__ */ c(Me, { children: [
|
|
1063
1070
|
/* @__PURE__ */ e("circle", { r: "3", fill: a, opacity: 0.85, children: /* @__PURE__ */ e(
|
|
1064
1071
|
"animateMotion",
|
|
1065
1072
|
{
|
|
@@ -1079,14 +1086,14 @@ function Ht({
|
|
|
1079
1086
|
] })
|
|
1080
1087
|
] });
|
|
1081
1088
|
}
|
|
1082
|
-
const
|
|
1089
|
+
const Qt = [
|
|
1083
1090
|
{ scale: 1, op: 1, delay: "0.0s", bw: "2px", glow: 1 },
|
|
1084
1091
|
{ scale: 0.82, op: 0.88, delay: "0.5s", bw: "1.5px", glow: 0.7 },
|
|
1085
1092
|
{ scale: 0.64, op: 0.72, delay: "1.0s", bw: "1px", glow: 0.5 },
|
|
1086
1093
|
{ scale: 0.47, op: 0.58, delay: "1.5s", bw: "1px", glow: 0.35 },
|
|
1087
1094
|
{ scale: 0.3, op: 0.45, delay: "2.0s", bw: "1px", glow: 0.25 }
|
|
1088
1095
|
];
|
|
1089
|
-
function
|
|
1096
|
+
function Gt({
|
|
1090
1097
|
children: t,
|
|
1091
1098
|
size: n = 230,
|
|
1092
1099
|
widthRatio: o = 1,
|
|
@@ -1094,13 +1101,13 @@ function Yt({
|
|
|
1094
1101
|
label: r
|
|
1095
1102
|
}) {
|
|
1096
1103
|
const a = n * o;
|
|
1097
|
-
return /* @__PURE__ */
|
|
1104
|
+
return /* @__PURE__ */ c("div", { style: {
|
|
1098
1105
|
display: "flex",
|
|
1099
1106
|
flexDirection: "column",
|
|
1100
1107
|
alignItems: "center",
|
|
1101
1108
|
position: "relative"
|
|
1102
1109
|
}, children: [
|
|
1103
|
-
/* @__PURE__ */
|
|
1110
|
+
/* @__PURE__ */ c("div", { style: {
|
|
1104
1111
|
position: "relative",
|
|
1105
1112
|
animation: "holo-float 4s ease-in-out infinite"
|
|
1106
1113
|
}, children: [
|
|
@@ -1123,7 +1130,7 @@ function Yt({
|
|
|
1123
1130
|
} }),
|
|
1124
1131
|
t
|
|
1125
1132
|
] }),
|
|
1126
|
-
/* @__PURE__ */
|
|
1133
|
+
/* @__PURE__ */ c("div", { style: {
|
|
1127
1134
|
position: "relative",
|
|
1128
1135
|
width: a,
|
|
1129
1136
|
height: 88,
|
|
@@ -1195,7 +1202,7 @@ function Yt({
|
|
|
1195
1202
|
animationDelay: "0.06s"
|
|
1196
1203
|
} })
|
|
1197
1204
|
] }),
|
|
1198
|
-
/* @__PURE__ */
|
|
1205
|
+
/* @__PURE__ */ c("div", { style: {
|
|
1199
1206
|
position: "relative",
|
|
1200
1207
|
width: a,
|
|
1201
1208
|
height: n * 0.34,
|
|
@@ -1252,7 +1259,7 @@ function Yt({
|
|
|
1252
1259
|
background: `radial-gradient(ellipse, ${i}88 0%, ${i}33 40%, transparent 72%)`,
|
|
1253
1260
|
filter: "blur(12px)"
|
|
1254
1261
|
} }),
|
|
1255
|
-
|
|
1262
|
+
Qt.map((s, l) => /* @__PURE__ */ e("div", { style: {
|
|
1256
1263
|
position: "absolute",
|
|
1257
1264
|
width: a * s.scale,
|
|
1258
1265
|
height: n * s.scale,
|
|
@@ -1295,8 +1302,8 @@ function Yt({
|
|
|
1295
1302
|
}, children: r })
|
|
1296
1303
|
] });
|
|
1297
1304
|
}
|
|
1298
|
-
const
|
|
1299
|
-
function
|
|
1305
|
+
const Re = tt(null), Kt = "cubic-bezier(0.34, 1.56, 0.64, 1)", $t = 330, kt = 340, Zt = 660;
|
|
1306
|
+
function Lt({
|
|
1300
1307
|
name: t,
|
|
1301
1308
|
status: n = "online",
|
|
1302
1309
|
connections: o = [],
|
|
@@ -1306,35 +1313,37 @@ function xt({
|
|
|
1306
1313
|
_totalSystems: s,
|
|
1307
1314
|
_carouselRotation: l,
|
|
1308
1315
|
_viewState: h,
|
|
1309
|
-
_animPhase:
|
|
1316
|
+
_animPhase: d,
|
|
1310
1317
|
_selectedSystem: p,
|
|
1311
1318
|
_selectedComponent: f,
|
|
1312
1319
|
_rotateY: g,
|
|
1313
1320
|
_autoRotateComponents: u,
|
|
1314
|
-
_componentScale:
|
|
1321
|
+
_componentScale: b,
|
|
1315
1322
|
_drillZoom: m,
|
|
1316
|
-
_onSelectSystem:
|
|
1317
|
-
_onComponentClick:
|
|
1318
|
-
|
|
1323
|
+
_onSelectSystem: w,
|
|
1324
|
+
_onComponentClick: v,
|
|
1325
|
+
_onComponentUpdate: S,
|
|
1326
|
+
_containerWidth: y
|
|
1319
1327
|
}) {
|
|
1320
|
-
const
|
|
1328
|
+
const x = ge(ut), C = ge(bt), k = a ?? C.index, P = s ?? x?.totalSystems ?? 1, O = l ?? x?.carouselRotation ?? 0, I = h ?? x?.viewState ?? "compact", z = d ?? x?.animPhase ?? 0, K = p ?? x?.selectedSystem ?? null, Z = f ?? x?.selectedComponent ?? null, ye = g ?? x?.rotateY ?? 20, me = u ?? x?.autoRotateComponents ?? !0, N = b ?? x?.componentScale ?? 0.35, U = m ?? x?.drillZoom ?? 3.3, ne = w ?? x?.onSelectSystem, Be = v ?? x?.onComponentClick, oe = S ?? x?.onComponentUpdate, Fe = y ?? x?.containerWidth ?? 950, J = K === t, B = J && (I === "expanded" || I === "expanding" && z >= 1), _ = !B, se = (Fe - Zt) / 2, de = $t + se, Ce = k / P * Math.PI * 2 + O, it = 420, nt = 160, xe = de + Math.cos(Ce) * it, ce = 450 + Math.sin(Ce) * nt, ot = Math.round(ce), T = !J && (I === "expanding" || I === "expanded"), j = T ? 0 : 1, re = _ ? 0.3 + (Math.sin(Ce) + 1) * 0.1 : 1, ee = _ ? re : N, ae = I === "compact" || I === "collapsing" ? "none" : "all 1s cubic-bezier(0.34, 1.56, 0.64, 1)", ve = J && Z, le = ve ? U : 1, pe = Z?.ex ?? 330, F = Z?.ey ?? 300, { size: rt = 90, color: at = "#00e5ff", widthRatio: Ye = 3 } = i ?? {}, we = {
|
|
1321
1329
|
name: t,
|
|
1322
|
-
isSelected:
|
|
1323
|
-
isExpandedPos:
|
|
1324
|
-
isCompact:
|
|
1325
|
-
animPhase:
|
|
1326
|
-
compactCx:
|
|
1327
|
-
compactCy:
|
|
1328
|
-
groupScale:
|
|
1329
|
-
effectiveScale:
|
|
1330
|
-
transitionValue:
|
|
1331
|
-
rotateY:
|
|
1332
|
-
autoRotateComponents:
|
|
1333
|
-
onComponentClick:
|
|
1334
|
-
|
|
1335
|
-
|
|
1330
|
+
isSelected: J,
|
|
1331
|
+
isExpandedPos: B,
|
|
1332
|
+
isCompact: _,
|
|
1333
|
+
animPhase: z,
|
|
1334
|
+
compactCx: xe,
|
|
1335
|
+
compactCy: ce,
|
|
1336
|
+
groupScale: re,
|
|
1337
|
+
effectiveScale: ee,
|
|
1338
|
+
transitionValue: ae,
|
|
1339
|
+
rotateY: ye,
|
|
1340
|
+
autoRotateComponents: me,
|
|
1341
|
+
onComponentClick: Be,
|
|
1342
|
+
onComponentUpdate: oe,
|
|
1343
|
+
selectedComponentName: Z?.name ?? null,
|
|
1344
|
+
expandedOffsetX: se
|
|
1336
1345
|
};
|
|
1337
|
-
return /* @__PURE__ */ e(
|
|
1346
|
+
return /* @__PURE__ */ e(Re.Provider, { value: we, children: /* @__PURE__ */ c(
|
|
1338
1347
|
"div",
|
|
1339
1348
|
{
|
|
1340
1349
|
style: {
|
|
@@ -1344,21 +1353,21 @@ function xt({
|
|
|
1344
1353
|
width: "100%",
|
|
1345
1354
|
height: "100%",
|
|
1346
1355
|
pointerEvents: "none",
|
|
1347
|
-
opacity:
|
|
1348
|
-
transition: `opacity 0.8s ease, filter 0.5s ease, transform 0.6s ${
|
|
1349
|
-
filter:
|
|
1350
|
-
zIndex:
|
|
1351
|
-
transformOrigin: `${
|
|
1352
|
-
transform:
|
|
1356
|
+
opacity: j,
|
|
1357
|
+
transition: `opacity 0.8s ease, filter 0.5s ease, transform 0.6s ${Kt}`,
|
|
1358
|
+
filter: _ && Math.sin(Ce) < -0.5 ? "brightness(0.5) blur(2px)" : "none",
|
|
1359
|
+
zIndex: J ? 500 : T ? 0 : ot,
|
|
1360
|
+
transformOrigin: `${de}px ${kt}px`,
|
|
1361
|
+
transform: ve ? `translate(${-(pe - $t) * le}px, ${-(F - kt) * le}px) scale(${le})` : "none"
|
|
1353
1362
|
},
|
|
1354
1363
|
children: [
|
|
1355
|
-
|
|
1364
|
+
_ && !T && /* @__PURE__ */ e(
|
|
1356
1365
|
"div",
|
|
1357
1366
|
{
|
|
1358
1367
|
style: {
|
|
1359
1368
|
position: "absolute",
|
|
1360
|
-
left:
|
|
1361
|
-
top:
|
|
1369
|
+
left: xe,
|
|
1370
|
+
top: ce,
|
|
1362
1371
|
width: 160,
|
|
1363
1372
|
height: 180,
|
|
1364
1373
|
transform: "translate(-50%, -80%)",
|
|
@@ -1366,25 +1375,25 @@ function xt({
|
|
|
1366
1375
|
cursor: "pointer",
|
|
1367
1376
|
zIndex: 101
|
|
1368
1377
|
},
|
|
1369
|
-
onClick: (
|
|
1370
|
-
|
|
1378
|
+
onClick: (H) => {
|
|
1379
|
+
H.stopPropagation(), ne?.(t);
|
|
1371
1380
|
}
|
|
1372
1381
|
}
|
|
1373
1382
|
),
|
|
1374
|
-
|
|
1383
|
+
_ && (n === "warning" || n === "critical") && /* @__PURE__ */ e(
|
|
1375
1384
|
"div",
|
|
1376
1385
|
{
|
|
1377
1386
|
style: {
|
|
1378
1387
|
position: "absolute",
|
|
1379
|
-
left:
|
|
1380
|
-
top:
|
|
1381
|
-
transform: `translate(-50%, -50%) scale(${
|
|
1388
|
+
left: xe,
|
|
1389
|
+
top: ce - 200,
|
|
1390
|
+
transform: `translate(-50%, -50%) scale(${re})`,
|
|
1382
1391
|
zIndex: 110,
|
|
1383
1392
|
pointerEvents: "none",
|
|
1384
1393
|
animation: "holo-led-blink 1.5s infinite",
|
|
1385
1394
|
filter: `drop-shadow(0 0 10px ${n === "critical" ? "#ff2255" : "#ff8c00"})`
|
|
1386
1395
|
},
|
|
1387
|
-
children: /* @__PURE__ */
|
|
1396
|
+
children: /* @__PURE__ */ c("svg", { width: "48", height: "48", viewBox: "0 0 28 28", fill: "none", children: [
|
|
1388
1397
|
/* @__PURE__ */ e(
|
|
1389
1398
|
"path",
|
|
1390
1399
|
{
|
|
@@ -1424,13 +1433,13 @@ function xt({
|
|
|
1424
1433
|
{
|
|
1425
1434
|
style: {
|
|
1426
1435
|
position: "absolute",
|
|
1427
|
-
left:
|
|
1428
|
-
top:
|
|
1429
|
-
transform: `translate(-50%, -50%) scale(${
|
|
1436
|
+
left: B ? de : xe,
|
|
1437
|
+
top: B ? 48 : ce - 180,
|
|
1438
|
+
transform: `translate(-50%, -50%) scale(${B ? 1.2 : re * 1.5})`,
|
|
1430
1439
|
opacity: 1,
|
|
1431
1440
|
pointerEvents: "none",
|
|
1432
1441
|
zIndex: 100,
|
|
1433
|
-
transition:
|
|
1442
|
+
transition: ae,
|
|
1434
1443
|
fontSize: 36,
|
|
1435
1444
|
fontWeight: 700,
|
|
1436
1445
|
letterSpacing: "0.18em",
|
|
@@ -1450,25 +1459,25 @@ function xt({
|
|
|
1450
1459
|
style: {
|
|
1451
1460
|
position: "absolute",
|
|
1452
1461
|
top: 0,
|
|
1453
|
-
left:
|
|
1462
|
+
left: B ? se : 0,
|
|
1454
1463
|
width: 660,
|
|
1455
1464
|
height: 640,
|
|
1456
1465
|
pointerEvents: "none",
|
|
1457
1466
|
zIndex: 0,
|
|
1458
|
-
transition:
|
|
1467
|
+
transition: ae
|
|
1459
1468
|
},
|
|
1460
|
-
children: o.map((
|
|
1461
|
-
|
|
1469
|
+
children: o.map((H, Ve) => /* @__PURE__ */ e(
|
|
1470
|
+
qt,
|
|
1462
1471
|
{
|
|
1463
|
-
x1:
|
|
1464
|
-
y1:
|
|
1465
|
-
x2:
|
|
1466
|
-
y2:
|
|
1467
|
-
show:
|
|
1468
|
-
color:
|
|
1469
|
-
dur:
|
|
1472
|
+
x1: H.from[0],
|
|
1473
|
+
y1: H.from[1],
|
|
1474
|
+
x2: H.to[0],
|
|
1475
|
+
y2: H.to[1],
|
|
1476
|
+
show: J && z >= (H.visibleAtPhase ?? 0),
|
|
1477
|
+
color: H.color,
|
|
1478
|
+
dur: H.duration
|
|
1470
1479
|
},
|
|
1471
|
-
|
|
1480
|
+
Ve
|
|
1472
1481
|
))
|
|
1473
1482
|
}
|
|
1474
1483
|
),
|
|
@@ -1477,13 +1486,13 @@ function xt({
|
|
|
1477
1486
|
{
|
|
1478
1487
|
style: {
|
|
1479
1488
|
position: "absolute",
|
|
1480
|
-
left:
|
|
1481
|
-
top:
|
|
1482
|
-
transform: `translate(-50%, -50%) scaleX(${
|
|
1483
|
-
transition:
|
|
1489
|
+
left: B ? de : xe,
|
|
1490
|
+
top: B ? 570 : ce + 70,
|
|
1491
|
+
transform: `translate(-50%, -50%) scaleX(${B ? 1 : 0.4}) scaleY(${B ? 1 : 0.6}) scale(${B ? 1 : re})`,
|
|
1492
|
+
transition: ae,
|
|
1484
1493
|
zIndex: 1
|
|
1485
1494
|
},
|
|
1486
|
-
children: /* @__PURE__ */ e(
|
|
1495
|
+
children: /* @__PURE__ */ e(Gt, { size: rt, color: at, widthRatio: Ye, children: /* @__PURE__ */ e("div", { className: "base-hotspot" }) })
|
|
1487
1496
|
}
|
|
1488
1497
|
),
|
|
1489
1498
|
r
|
|
@@ -1501,23 +1510,24 @@ function W({
|
|
|
1501
1510
|
offsetY: s,
|
|
1502
1511
|
isVisible: l,
|
|
1503
1512
|
align: h = "right",
|
|
1504
|
-
internalRef:
|
|
1513
|
+
internalRef: d,
|
|
1514
|
+
forceShow: p = !1
|
|
1505
1515
|
}) {
|
|
1506
|
-
const
|
|
1507
|
-
if (o === "online") return null;
|
|
1508
|
-
const
|
|
1509
|
-
let
|
|
1510
|
-
if (
|
|
1511
|
-
const
|
|
1512
|
-
|
|
1516
|
+
const f = ge(Re), g = f?.expandedOffsetX ?? 0;
|
|
1517
|
+
if (o === "online" && !p) return null;
|
|
1518
|
+
const u = l && !!f?.isExpandedPos, b = o === "online" ? $.warning.color : $[o]?.color ?? $.warning.color, m = Math.abs(a) > Math.abs(s), w = t + g + (m ? Math.sign(a) * 45 : 0), v = n + (m ? 0 : Math.sign(s) * 40), S = t + g + a, y = n + s;
|
|
1519
|
+
let x = "";
|
|
1520
|
+
if (m) {
|
|
1521
|
+
const O = w + (S - w) / 2;
|
|
1522
|
+
x = `M ${w} ${v} L ${O} ${v} L ${O} ${y} L ${S} ${y}`;
|
|
1513
1523
|
} else {
|
|
1514
|
-
const
|
|
1515
|
-
|
|
1524
|
+
const O = v + (y - v) / 2;
|
|
1525
|
+
x = `M ${w} ${v} L ${w} ${O} L ${S} ${O} L ${S} ${y}`;
|
|
1516
1526
|
}
|
|
1517
|
-
let
|
|
1518
|
-
h === "left" && (
|
|
1519
|
-
const
|
|
1520
|
-
return /* @__PURE__ */
|
|
1527
|
+
let C = "translate(0, -50%)";
|
|
1528
|
+
h === "left" && (C = "translate(-100%, -50%)"), h === "top" && (C = "translate(-50%, -100%)"), h === "bottom" && (C = "translate(-50%, 0)");
|
|
1529
|
+
const k = h === "left" ? -8 : h === "right" ? 8 : 0, P = h === "top" ? -8 : h === "bottom" ? 8 : 0;
|
|
1530
|
+
return /* @__PURE__ */ c(
|
|
1521
1531
|
"div",
|
|
1522
1532
|
{
|
|
1523
1533
|
style: {
|
|
@@ -1527,7 +1537,7 @@ function W({
|
|
|
1527
1537
|
width: "100%",
|
|
1528
1538
|
height: "100%",
|
|
1529
1539
|
pointerEvents: "none",
|
|
1530
|
-
opacity:
|
|
1540
|
+
opacity: u ? 1 : 0,
|
|
1531
1541
|
transition: "opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.8s",
|
|
1532
1542
|
zIndex: 150
|
|
1533
1543
|
},
|
|
@@ -1547,29 +1557,29 @@ function W({
|
|
|
1547
1557
|
children: /* @__PURE__ */ e(
|
|
1548
1558
|
"path",
|
|
1549
1559
|
{
|
|
1550
|
-
d:
|
|
1560
|
+
d: x,
|
|
1551
1561
|
fill: "none",
|
|
1552
|
-
stroke:
|
|
1562
|
+
stroke: b,
|
|
1553
1563
|
strokeWidth: "1.5",
|
|
1554
1564
|
strokeDasharray: "5 4",
|
|
1555
|
-
style: { filter: `drop-shadow(0 0 4px ${
|
|
1565
|
+
style: { filter: `drop-shadow(0 0 4px ${b})`, opacity: 0.55 }
|
|
1556
1566
|
}
|
|
1557
1567
|
)
|
|
1558
1568
|
}
|
|
1559
1569
|
),
|
|
1560
|
-
/* @__PURE__ */
|
|
1570
|
+
/* @__PURE__ */ c(
|
|
1561
1571
|
"div",
|
|
1562
1572
|
{
|
|
1563
1573
|
style: {
|
|
1564
1574
|
position: "absolute",
|
|
1565
|
-
left:
|
|
1566
|
-
top:
|
|
1567
|
-
transform:
|
|
1568
|
-
marginLeft:
|
|
1569
|
-
marginTop:
|
|
1575
|
+
left: S,
|
|
1576
|
+
top: y,
|
|
1577
|
+
transform: C,
|
|
1578
|
+
marginLeft: k,
|
|
1579
|
+
marginTop: P,
|
|
1570
1580
|
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)",
|
|
1571
|
-
border: `1px solid ${
|
|
1572
|
-
borderLeft: `2px solid ${
|
|
1581
|
+
border: `1px solid ${b}55`,
|
|
1582
|
+
borderLeft: `2px solid ${b}`,
|
|
1573
1583
|
backdropFilter: "blur(8px)",
|
|
1574
1584
|
WebkitBackdropFilter: "blur(8px)",
|
|
1575
1585
|
padding: "6px 10px",
|
|
@@ -1577,10 +1587,10 @@ function W({
|
|
|
1577
1587
|
color: "#fff",
|
|
1578
1588
|
fontFamily: "'Courier New', monospace",
|
|
1579
1589
|
width: 140,
|
|
1580
|
-
boxShadow: `0 4px 12px rgba(0,0,0,0.4), 0 0 8px ${
|
|
1590
|
+
boxShadow: `0 4px 12px rgba(0,0,0,0.4), 0 0 8px ${b}22 inset`
|
|
1581
1591
|
},
|
|
1582
1592
|
children: [
|
|
1583
|
-
/* @__PURE__ */
|
|
1593
|
+
/* @__PURE__ */ c(
|
|
1584
1594
|
"div",
|
|
1585
1595
|
{
|
|
1586
1596
|
style: {
|
|
@@ -1597,8 +1607,8 @@ function W({
|
|
|
1597
1607
|
width: 4,
|
|
1598
1608
|
height: 4,
|
|
1599
1609
|
borderRadius: "50%",
|
|
1600
|
-
background:
|
|
1601
|
-
boxShadow: `0 0 6px ${
|
|
1610
|
+
background: b,
|
|
1611
|
+
boxShadow: `0 0 6px ${b}`,
|
|
1602
1612
|
animation: "holo-led-blink 1.5s infinite"
|
|
1603
1613
|
}
|
|
1604
1614
|
}
|
|
@@ -1607,14 +1617,14 @@ function W({
|
|
|
1607
1617
|
"div",
|
|
1608
1618
|
{
|
|
1609
1619
|
style: {
|
|
1610
|
-
color:
|
|
1620
|
+
color: b,
|
|
1611
1621
|
fontWeight: "600",
|
|
1612
1622
|
fontSize: 10,
|
|
1613
1623
|
letterSpacing: "1px",
|
|
1614
1624
|
textTransform: "uppercase",
|
|
1615
|
-
textShadow: `0 0 4px ${
|
|
1625
|
+
textShadow: `0 0 4px ${b}88`
|
|
1616
1626
|
},
|
|
1617
|
-
children:
|
|
1627
|
+
children: d ? `${i} · ${d}` : i
|
|
1618
1628
|
}
|
|
1619
1629
|
)
|
|
1620
1630
|
]
|
|
@@ -1648,62 +1658,80 @@ function A({
|
|
|
1648
1658
|
label: s,
|
|
1649
1659
|
subLabel: l,
|
|
1650
1660
|
delay: h = "0s",
|
|
1651
|
-
componentInfo:
|
|
1661
|
+
componentInfo: d,
|
|
1652
1662
|
visibleAtPhase: p = 0,
|
|
1653
1663
|
fixedScale: f,
|
|
1654
1664
|
bare: g = !1,
|
|
1655
1665
|
alert: u
|
|
1656
1666
|
}) {
|
|
1657
|
-
const
|
|
1658
|
-
if (!
|
|
1667
|
+
const b = ge(Re);
|
|
1668
|
+
if (!b)
|
|
1659
1669
|
throw new Error("ServiceNode must be used inside a <Service> component.");
|
|
1660
1670
|
const {
|
|
1661
1671
|
isExpandedPos: m,
|
|
1662
|
-
animPhase:
|
|
1663
|
-
compactCx:
|
|
1664
|
-
compactCy:
|
|
1665
|
-
groupScale:
|
|
1666
|
-
effectiveScale:
|
|
1667
|
-
transitionValue:
|
|
1668
|
-
onComponentClick:
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1672
|
+
animPhase: w,
|
|
1673
|
+
compactCx: v,
|
|
1674
|
+
compactCy: S,
|
|
1675
|
+
groupScale: y,
|
|
1676
|
+
effectiveScale: x,
|
|
1677
|
+
transitionValue: C,
|
|
1678
|
+
onComponentClick: k,
|
|
1679
|
+
onComponentUpdate: P,
|
|
1680
|
+
selectedComponentName: O,
|
|
1681
|
+
expandedOffsetX: I
|
|
1682
|
+
} = b, K = p === 0 || b.isSelected && w >= p ? 1 : 0, Z = v + o.x, ye = S + o.y, me = m ? t + I : Z, N = m ? n : ye, U = f !== void 0 ? f : b.isCompact ? y : x, ne = !!d && !!O && d.name === O, Be = d?.status ? $[d.status]?.color ?? a : a, oe = d?.status === "offline" ? "#4a6a8a" : Be, Fe = d && m && k ? () => k({
|
|
1683
|
+
type: d.type,
|
|
1684
|
+
name: d.name,
|
|
1685
|
+
status: d.status,
|
|
1686
|
+
ex: d.ex ?? t,
|
|
1687
|
+
ey: d.ey ?? n,
|
|
1688
|
+
context: d.context,
|
|
1689
|
+
dialogMetrics: d.dialogMetrics,
|
|
1690
|
+
subComponents: d.subComponents,
|
|
1691
|
+
graphSeries: d.graphSeries
|
|
1692
|
+
}) : void 0, J = JSON.stringify(d?.context ?? {}), B = JSON.stringify(d?.dialogMetrics ?? []);
|
|
1693
|
+
ke(() => {
|
|
1694
|
+
!ne || !d || !P || P({
|
|
1695
|
+
type: d.type,
|
|
1696
|
+
name: d.name,
|
|
1697
|
+
status: d.status,
|
|
1698
|
+
ex: d.ex ?? t,
|
|
1699
|
+
ey: d.ey ?? n,
|
|
1700
|
+
context: d.context,
|
|
1701
|
+
dialogMetrics: d.dialogMetrics,
|
|
1702
|
+
subComponents: d.subComponents,
|
|
1703
|
+
graphSeries: d.graphSeries
|
|
1704
|
+
});
|
|
1705
|
+
}, [ne, d?.status, J, B]);
|
|
1706
|
+
const _ = d?.status === "warning" || d?.status === "critical" || !!u;
|
|
1707
|
+
u && d?.status === "online" && $.warning.color;
|
|
1708
|
+
const se = d?.status ?? "online", de = d?.name ?? s ?? "";
|
|
1709
|
+
return /* @__PURE__ */ c(Me, { children: [
|
|
1683
1710
|
/* @__PURE__ */ e(
|
|
1684
1711
|
"div",
|
|
1685
1712
|
{
|
|
1686
1713
|
style: {
|
|
1687
1714
|
position: "absolute",
|
|
1688
|
-
left:
|
|
1689
|
-
top:
|
|
1715
|
+
left: me,
|
|
1716
|
+
top: N,
|
|
1690
1717
|
transform: `translate(-50%, -50%) scale(${U})`,
|
|
1691
|
-
opacity:
|
|
1718
|
+
opacity: K,
|
|
1692
1719
|
zIndex: i,
|
|
1693
|
-
transition:
|
|
1694
|
-
pointerEvents: m &&
|
|
1720
|
+
transition: C || "all 1s cubic-bezier(0.34, 1.56, 0.64, 1)",
|
|
1721
|
+
pointerEvents: m && K >= 0.5 ? "auto" : "none"
|
|
1695
1722
|
},
|
|
1696
1723
|
children: g ? r : /* @__PURE__ */ e(
|
|
1697
|
-
|
|
1724
|
+
Jt,
|
|
1698
1725
|
{
|
|
1699
|
-
statusColor:
|
|
1726
|
+
statusColor: oe,
|
|
1700
1727
|
label: s,
|
|
1701
1728
|
subLabel: l,
|
|
1702
1729
|
delay: h,
|
|
1703
1730
|
showLabels: m,
|
|
1704
|
-
isCompact:
|
|
1705
|
-
onClick:
|
|
1706
|
-
isSelected:
|
|
1731
|
+
isCompact: b.isCompact,
|
|
1732
|
+
onClick: Fe,
|
|
1733
|
+
isSelected: ne,
|
|
1734
|
+
isAlerting: _,
|
|
1707
1735
|
children: r
|
|
1708
1736
|
}
|
|
1709
1737
|
)
|
|
@@ -1714,19 +1742,20 @@ function A({
|
|
|
1714
1742
|
{
|
|
1715
1743
|
ex: t,
|
|
1716
1744
|
ey: n,
|
|
1717
|
-
status:
|
|
1718
|
-
title:
|
|
1745
|
+
status: se,
|
|
1746
|
+
title: de,
|
|
1719
1747
|
msg: u.msg,
|
|
1720
1748
|
offsetX: u.offsetX ?? 110,
|
|
1721
1749
|
offsetY: u.offsetY ?? -30,
|
|
1722
1750
|
align: u.align ?? "right",
|
|
1723
1751
|
internalRef: u.internalRef,
|
|
1724
|
-
isVisible: !0
|
|
1752
|
+
isVisible: !0,
|
|
1753
|
+
forceShow: !0
|
|
1725
1754
|
}
|
|
1726
1755
|
)
|
|
1727
1756
|
] });
|
|
1728
1757
|
}
|
|
1729
|
-
function
|
|
1758
|
+
function Jt({
|
|
1730
1759
|
children: t,
|
|
1731
1760
|
statusColor: n,
|
|
1732
1761
|
label: o,
|
|
@@ -1735,27 +1764,38 @@ function jt({
|
|
|
1735
1764
|
showLabels: a = !0,
|
|
1736
1765
|
isCompact: s = !1,
|
|
1737
1766
|
onClick: l,
|
|
1738
|
-
isSelected: h = !1
|
|
1767
|
+
isSelected: h = !1,
|
|
1768
|
+
isAlerting: d = !1
|
|
1739
1769
|
}) {
|
|
1740
|
-
const [
|
|
1741
|
-
return /* @__PURE__ */
|
|
1770
|
+
const [p, f] = R(!1), g = h ? `brightness(1.5) drop-shadow(0 0 24px ${n}cc) drop-shadow(0 0 8px ${n}88)` : p && l ? `brightness(1.2) drop-shadow(0 0 12px ${n}77)` : "";
|
|
1771
|
+
return /* @__PURE__ */ c(
|
|
1742
1772
|
"div",
|
|
1743
1773
|
{
|
|
1744
1774
|
className: `float-node${l ? " float-node--interactive" : ""}`,
|
|
1745
|
-
onClick: (
|
|
1746
|
-
l && (
|
|
1775
|
+
onClick: (u) => {
|
|
1776
|
+
l && (u.stopPropagation(), l());
|
|
1747
1777
|
},
|
|
1748
1778
|
style: {
|
|
1749
1779
|
cursor: l ? "pointer" : void 0,
|
|
1750
1780
|
transition: "filter 0.3s ease",
|
|
1751
|
-
filter:
|
|
1781
|
+
filter: g
|
|
1752
1782
|
},
|
|
1753
|
-
onMouseEnter: () =>
|
|
1754
|
-
onMouseLeave: () =>
|
|
1783
|
+
onMouseEnter: () => f(!0),
|
|
1784
|
+
onMouseLeave: () => f(!1),
|
|
1755
1785
|
role: l ? "button" : void 0,
|
|
1756
1786
|
title: l ? "Click to inspect internal components" : void 0,
|
|
1757
1787
|
children: [
|
|
1758
|
-
/* @__PURE__ */
|
|
1788
|
+
d && /* @__PURE__ */ e(
|
|
1789
|
+
"div",
|
|
1790
|
+
{
|
|
1791
|
+
className: "node-alert-glow",
|
|
1792
|
+
style: {
|
|
1793
|
+
"--pulse-color": alertGlowColor,
|
|
1794
|
+
boxShadow: `0 0 20px ${alertGlowColor}, 0 0 40px ${alertGlowColor}66`
|
|
1795
|
+
}
|
|
1796
|
+
}
|
|
1797
|
+
),
|
|
1798
|
+
/* @__PURE__ */ c("div", { className: "float-body", style: { animationDelay: r }, children: [
|
|
1759
1799
|
/* @__PURE__ */ e(
|
|
1760
1800
|
"div",
|
|
1761
1801
|
{
|
|
@@ -1766,11 +1806,11 @@ function jt({
|
|
|
1766
1806
|
}
|
|
1767
1807
|
}
|
|
1768
1808
|
),
|
|
1769
|
-
/* @__PURE__ */ e("div", { style: s ? { background: "#040c1a", borderRadius: 2 } : void 0, children: s &&
|
|
1809
|
+
/* @__PURE__ */ e("div", { style: s ? { background: "#040c1a", borderRadius: 2 } : void 0, children: s && q.isValidElement(t) ? q.cloneElement(t, {
|
|
1770
1810
|
_compact: !0
|
|
1771
1811
|
}) : t })
|
|
1772
1812
|
] }),
|
|
1773
|
-
/* @__PURE__ */
|
|
1813
|
+
/* @__PURE__ */ c(
|
|
1774
1814
|
"div",
|
|
1775
1815
|
{
|
|
1776
1816
|
style: {
|
|
@@ -1787,10 +1827,10 @@ function jt({
|
|
|
1787
1827
|
}
|
|
1788
1828
|
);
|
|
1789
1829
|
}
|
|
1790
|
-
function
|
|
1830
|
+
function It({ synced: t, latencyMs: n }) {
|
|
1791
1831
|
const o = t ? "#00ff88" : "#ff8c00";
|
|
1792
|
-
return /* @__PURE__ */
|
|
1793
|
-
/* @__PURE__ */
|
|
1832
|
+
return /* @__PURE__ */ c("div", { className: "sync-bridge", children: [
|
|
1833
|
+
/* @__PURE__ */ c("div", { className: "sync-arrows", children: [
|
|
1794
1834
|
/* @__PURE__ */ e("span", { style: { color: o, fontSize: 10, lineHeight: 1 }, children: "◄" }),
|
|
1795
1835
|
/* @__PURE__ */ e(
|
|
1796
1836
|
"div",
|
|
@@ -1815,15 +1855,15 @@ function vt({ synced: t, latencyMs: n }) {
|
|
|
1815
1855
|
children: t ? "SYNCED" : "LAG"
|
|
1816
1856
|
}
|
|
1817
1857
|
),
|
|
1818
|
-
/* @__PURE__ */
|
|
1858
|
+
/* @__PURE__ */ c("div", { className: "sync-latency", style: { color: o + "88" }, children: [
|
|
1819
1859
|
n,
|
|
1820
1860
|
"ms ",
|
|
1821
1861
|
t ? "replication" : "behind"
|
|
1822
1862
|
] })
|
|
1823
1863
|
] });
|
|
1824
1864
|
}
|
|
1825
|
-
const
|
|
1826
|
-
function
|
|
1865
|
+
const fe = 140, X = 240, be = 160, Pe = ht(fe, X, be);
|
|
1866
|
+
function ei({
|
|
1827
1867
|
cfg: t,
|
|
1828
1868
|
name: n,
|
|
1829
1869
|
cpuLoad: o,
|
|
@@ -1832,19 +1872,19 @@ function Xt({
|
|
|
1832
1872
|
compact: a,
|
|
1833
1873
|
brandLabel: s
|
|
1834
1874
|
}) {
|
|
1835
|
-
const l = Math.ceil(o / 100 * 3), h = r === "offline" ? "#4a6a8a" : t.color,
|
|
1875
|
+
const l = Math.ceil(o / 100 * 3), h = r === "offline" ? "#4a6a8a" : t.color, d = [
|
|
1836
1876
|
{ color: t.color, on: r !== "offline", label: "PWR" },
|
|
1837
1877
|
{ color: t.color, on: r === "online" || r === "warning", label: "NET" },
|
|
1838
1878
|
{ color: t.color, on: o > 15, label: "DSK" },
|
|
1839
1879
|
{ color: r === "critical" ? "#ff2255" : t.color, on: r === "critical", label: "FLT" }
|
|
1840
1880
|
];
|
|
1841
|
-
return /* @__PURE__ */
|
|
1881
|
+
return /* @__PURE__ */ c(
|
|
1842
1882
|
"div",
|
|
1843
1883
|
{
|
|
1844
1884
|
style: {
|
|
1845
|
-
width:
|
|
1846
|
-
height:
|
|
1847
|
-
background: a ?
|
|
1885
|
+
width: fe,
|
|
1886
|
+
height: X,
|
|
1887
|
+
background: a ? ze : ft,
|
|
1848
1888
|
position: "relative",
|
|
1849
1889
|
overflow: "hidden",
|
|
1850
1890
|
fontFamily: "'Courier New', monospace",
|
|
@@ -1866,7 +1906,7 @@ function Xt({
|
|
|
1866
1906
|
}
|
|
1867
1907
|
}
|
|
1868
1908
|
),
|
|
1869
|
-
/* @__PURE__ */
|
|
1909
|
+
/* @__PURE__ */ c(
|
|
1870
1910
|
"div",
|
|
1871
1911
|
{
|
|
1872
1912
|
style: {
|
|
@@ -1881,7 +1921,7 @@ function Xt({
|
|
|
1881
1921
|
gap: 7
|
|
1882
1922
|
},
|
|
1883
1923
|
children: [
|
|
1884
|
-
/* @__PURE__ */
|
|
1924
|
+
/* @__PURE__ */ c("div", { style: { display: "flex", justifyContent: "space-between", alignItems: "center" }, children: [
|
|
1885
1925
|
/* @__PURE__ */ e("span", { style: { fontSize: 7, color: t.color + "55", letterSpacing: "0.22em" }, children: s }),
|
|
1886
1926
|
/* @__PURE__ */ e(
|
|
1887
1927
|
"div",
|
|
@@ -1897,7 +1937,7 @@ function Xt({
|
|
|
1897
1937
|
alignItems: "center",
|
|
1898
1938
|
justifyContent: "center"
|
|
1899
1939
|
},
|
|
1900
|
-
children: /* @__PURE__ */
|
|
1940
|
+
children: /* @__PURE__ */ c("svg", { width: "9", height: "9", viewBox: "0 0 10 10", fill: "none", children: [
|
|
1901
1941
|
/* @__PURE__ */ e("path", { d: "M5 1.5v3", stroke: t.color, strokeWidth: "1.4", strokeLinecap: "round" }),
|
|
1902
1942
|
/* @__PURE__ */ e(
|
|
1903
1943
|
"path",
|
|
@@ -1912,7 +1952,7 @@ function Xt({
|
|
|
1912
1952
|
}
|
|
1913
1953
|
)
|
|
1914
1954
|
] }),
|
|
1915
|
-
/* @__PURE__ */
|
|
1955
|
+
/* @__PURE__ */ c("div", { style: { display: "flex", justifyContent: "space-between", alignItems: "center" }, children: [
|
|
1916
1956
|
/* @__PURE__ */ e(
|
|
1917
1957
|
"span",
|
|
1918
1958
|
{
|
|
@@ -1925,7 +1965,7 @@ function Xt({
|
|
|
1925
1965
|
children: n
|
|
1926
1966
|
}
|
|
1927
1967
|
),
|
|
1928
|
-
/* @__PURE__ */ e("div", { style: { display: "flex", gap: 5 }, children:
|
|
1968
|
+
/* @__PURE__ */ e("div", { style: { display: "flex", gap: 5 }, children: d.map((p, f) => /* @__PURE__ */ e(
|
|
1929
1969
|
"div",
|
|
1930
1970
|
{
|
|
1931
1971
|
style: {
|
|
@@ -1956,7 +1996,7 @@ function Xt({
|
|
|
1956
1996
|
}
|
|
1957
1997
|
}
|
|
1958
1998
|
),
|
|
1959
|
-
/* @__PURE__ */
|
|
1999
|
+
/* @__PURE__ */ c(
|
|
1960
2000
|
"div",
|
|
1961
2001
|
{
|
|
1962
2002
|
style: {
|
|
@@ -2006,7 +2046,7 @@ function Xt({
|
|
|
2006
2046
|
),
|
|
2007
2047
|
Array.from({ length: 3 }, (p, f) => {
|
|
2008
2048
|
const g = f < l;
|
|
2009
|
-
return /* @__PURE__ */
|
|
2049
|
+
return /* @__PURE__ */ c(
|
|
2010
2050
|
"div",
|
|
2011
2051
|
{
|
|
2012
2052
|
style: {
|
|
@@ -2096,7 +2136,7 @@ function Xt({
|
|
|
2096
2136
|
}
|
|
2097
2137
|
}
|
|
2098
2138
|
),
|
|
2099
|
-
/* @__PURE__ */
|
|
2139
|
+
/* @__PURE__ */ c(
|
|
2100
2140
|
"div",
|
|
2101
2141
|
{
|
|
2102
2142
|
style: {
|
|
@@ -2235,13 +2275,13 @@ function Xt({
|
|
|
2235
2275
|
}
|
|
2236
2276
|
);
|
|
2237
2277
|
}
|
|
2238
|
-
function
|
|
2239
|
-
return /* @__PURE__ */
|
|
2278
|
+
function ti() {
|
|
2279
|
+
return /* @__PURE__ */ c(
|
|
2240
2280
|
"div",
|
|
2241
2281
|
{
|
|
2242
2282
|
style: {
|
|
2243
|
-
width:
|
|
2244
|
-
height:
|
|
2283
|
+
width: fe,
|
|
2284
|
+
height: X,
|
|
2245
2285
|
background: "linear-gradient(180deg, #040c1a 0%, #030810 100%)",
|
|
2246
2286
|
position: "relative",
|
|
2247
2287
|
overflow: "hidden",
|
|
@@ -2349,18 +2389,18 @@ function qt() {
|
|
|
2349
2389
|
}
|
|
2350
2390
|
);
|
|
2351
2391
|
}
|
|
2352
|
-
function
|
|
2392
|
+
function Rt({
|
|
2353
2393
|
side: t,
|
|
2354
2394
|
color: n,
|
|
2355
2395
|
brandLabel: o
|
|
2356
2396
|
}) {
|
|
2357
2397
|
const i = t === "right";
|
|
2358
|
-
return /* @__PURE__ */
|
|
2398
|
+
return /* @__PURE__ */ c(
|
|
2359
2399
|
"div",
|
|
2360
2400
|
{
|
|
2361
2401
|
style: {
|
|
2362
|
-
width:
|
|
2363
|
-
height:
|
|
2402
|
+
width: be,
|
|
2403
|
+
height: X,
|
|
2364
2404
|
background: i ? "linear-gradient(90deg, #040c1c 0%, #071428 60%, #040c1c 100%)" : "linear-gradient(90deg, #040c1c 0%, #071428 40%, #040c1c 100%)",
|
|
2365
2405
|
position: "relative",
|
|
2366
2406
|
overflow: "hidden"
|
|
@@ -2379,13 +2419,13 @@ function ft({
|
|
|
2379
2419
|
}
|
|
2380
2420
|
}
|
|
2381
2421
|
),
|
|
2382
|
-
[8,
|
|
2422
|
+
[8, X - 20].map((r) => /* @__PURE__ */ e(
|
|
2383
2423
|
"div",
|
|
2384
2424
|
{
|
|
2385
2425
|
style: {
|
|
2386
2426
|
position: "absolute",
|
|
2387
2427
|
top: r,
|
|
2388
|
-
left: i ? 10 :
|
|
2428
|
+
left: i ? 10 : be - 18,
|
|
2389
2429
|
width: 8,
|
|
2390
2430
|
height: 8,
|
|
2391
2431
|
borderRadius: 1,
|
|
@@ -2401,8 +2441,8 @@ function ft({
|
|
|
2401
2441
|
{
|
|
2402
2442
|
style: {
|
|
2403
2443
|
position: "absolute",
|
|
2404
|
-
top:
|
|
2405
|
-
bottom:
|
|
2444
|
+
top: X * 0.35,
|
|
2445
|
+
bottom: X * 0.15,
|
|
2406
2446
|
left: i ? 22 : 18,
|
|
2407
2447
|
right: i ? 18 : 22,
|
|
2408
2448
|
display: "flex",
|
|
@@ -2425,13 +2465,13 @@ function ft({
|
|
|
2425
2465
|
))
|
|
2426
2466
|
}
|
|
2427
2467
|
),
|
|
2428
|
-
/* @__PURE__ */
|
|
2468
|
+
/* @__PURE__ */ c(
|
|
2429
2469
|
"div",
|
|
2430
2470
|
{
|
|
2431
2471
|
style: {
|
|
2432
2472
|
position: "absolute",
|
|
2433
|
-
top:
|
|
2434
|
-
left: i ? 12 :
|
|
2473
|
+
top: X * 0.18,
|
|
2474
|
+
left: i ? 12 : be - 78,
|
|
2435
2475
|
fontSize: 7,
|
|
2436
2476
|
color: "#1a3050",
|
|
2437
2477
|
letterSpacing: "0.2em",
|
|
@@ -2449,14 +2489,14 @@ function ft({
|
|
|
2449
2489
|
}
|
|
2450
2490
|
);
|
|
2451
2491
|
}
|
|
2452
|
-
function
|
|
2453
|
-
const n = t / 100, o = n > 0.75 ? "rgba(255,34,85,0.16)" : n > 0.45 ? "rgba(255,140,0,0.12)" : "rgba(0,229,255,0.08)", i = Math.floor((
|
|
2454
|
-
return /* @__PURE__ */
|
|
2492
|
+
function ii({ cpuLoad: t }) {
|
|
2493
|
+
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((be - 18) / 7);
|
|
2494
|
+
return /* @__PURE__ */ c(
|
|
2455
2495
|
"div",
|
|
2456
2496
|
{
|
|
2457
2497
|
style: {
|
|
2458
|
-
width:
|
|
2459
|
-
height:
|
|
2498
|
+
width: fe,
|
|
2499
|
+
height: be,
|
|
2460
2500
|
background: "linear-gradient(180deg, #0c1c30 0%, #070f1e 40%, #040c1a 100%)",
|
|
2461
2501
|
position: "relative",
|
|
2462
2502
|
overflow: "hidden"
|
|
@@ -2470,7 +2510,7 @@ function Qt({ cpuLoad: t }) {
|
|
|
2470
2510
|
top: 0,
|
|
2471
2511
|
left: 0,
|
|
2472
2512
|
right: 0,
|
|
2473
|
-
height:
|
|
2513
|
+
height: be * 0.4,
|
|
2474
2514
|
background: `radial-gradient(ellipse at 50% 0%, ${o} 0%, transparent 70%)`
|
|
2475
2515
|
}
|
|
2476
2516
|
}
|
|
@@ -2529,7 +2569,7 @@ function Qt({ cpuLoad: t }) {
|
|
|
2529
2569
|
}
|
|
2530
2570
|
);
|
|
2531
2571
|
}
|
|
2532
|
-
function
|
|
2572
|
+
function $e({
|
|
2533
2573
|
rotateX: t = -22,
|
|
2534
2574
|
rotateY: n = 20,
|
|
2535
2575
|
rotateZ: o = 0,
|
|
@@ -2539,29 +2579,29 @@ function he({
|
|
|
2539
2579
|
name: s = "SRV-001",
|
|
2540
2580
|
cpuLoad: l = 67,
|
|
2541
2581
|
memLoad: h = 82,
|
|
2542
|
-
brandLabel:
|
|
2582
|
+
brandLabel: d = "BUSAUD",
|
|
2543
2583
|
_compact: p
|
|
2544
2584
|
}) {
|
|
2545
|
-
const [f, g] = R(n), u =
|
|
2546
|
-
|
|
2585
|
+
const [f, g] = R(n), u = ie(0), b = ie(0);
|
|
2586
|
+
ke(() => {
|
|
2547
2587
|
if (!r) {
|
|
2548
2588
|
g(n);
|
|
2549
2589
|
return;
|
|
2550
2590
|
}
|
|
2551
|
-
const
|
|
2552
|
-
|
|
2591
|
+
const w = (v) => {
|
|
2592
|
+
b.current && g((S) => S + (v - b.current) * 0.027), b.current = v, u.current = requestAnimationFrame(w);
|
|
2553
2593
|
};
|
|
2554
|
-
return u.current = requestAnimationFrame(
|
|
2555
|
-
cancelAnimationFrame(u.current),
|
|
2594
|
+
return u.current = requestAnimationFrame(w), () => {
|
|
2595
|
+
cancelAnimationFrame(u.current), b.current = 0;
|
|
2556
2596
|
};
|
|
2557
2597
|
}, [r, n]);
|
|
2558
|
-
const m =
|
|
2559
|
-
return /* @__PURE__ */
|
|
2598
|
+
const m = $[a] ?? $.online;
|
|
2599
|
+
return /* @__PURE__ */ c(
|
|
2560
2600
|
"div",
|
|
2561
2601
|
{
|
|
2562
2602
|
style: {
|
|
2563
|
-
width:
|
|
2564
|
-
height:
|
|
2603
|
+
width: fe * i,
|
|
2604
|
+
height: X * i,
|
|
2565
2605
|
position: "relative",
|
|
2566
2606
|
display: "flex",
|
|
2567
2607
|
alignItems: "center",
|
|
@@ -2581,7 +2621,7 @@ function he({
|
|
|
2581
2621
|
animation: "holo-led-blink 1.5s infinite",
|
|
2582
2622
|
filter: `drop-shadow(0 0 10px ${m.color})`
|
|
2583
2623
|
},
|
|
2584
|
-
children: /* @__PURE__ */
|
|
2624
|
+
children: /* @__PURE__ */ c("svg", { width: "44", height: "44", viewBox: "0 0 28 28", fill: "none", children: [
|
|
2585
2625
|
/* @__PURE__ */ e(
|
|
2586
2626
|
"path",
|
|
2587
2627
|
{
|
|
@@ -2613,8 +2653,8 @@ function he({
|
|
|
2613
2653
|
{
|
|
2614
2654
|
style: {
|
|
2615
2655
|
position: "absolute",
|
|
2616
|
-
width:
|
|
2617
|
-
height:
|
|
2656
|
+
width: fe * 1.4 * i,
|
|
2657
|
+
height: X * 0.8 * i,
|
|
2618
2658
|
background: `radial-gradient(ellipse, ${m.glow} 0%, transparent 65%)`,
|
|
2619
2659
|
filter: `blur(${Math.round(45 * i)}px)`,
|
|
2620
2660
|
pointerEvents: "none",
|
|
@@ -2633,20 +2673,20 @@ function he({
|
|
|
2633
2673
|
transform: `scale(${i})`,
|
|
2634
2674
|
transformOrigin: "center center"
|
|
2635
2675
|
},
|
|
2636
|
-
children: /* @__PURE__ */
|
|
2676
|
+
children: /* @__PURE__ */ c(
|
|
2637
2677
|
"div",
|
|
2638
2678
|
{
|
|
2639
2679
|
style: {
|
|
2640
|
-
width:
|
|
2641
|
-
height:
|
|
2680
|
+
width: fe,
|
|
2681
|
+
height: X,
|
|
2642
2682
|
position: "relative",
|
|
2643
2683
|
transformStyle: "preserve-3d",
|
|
2644
2684
|
transform: `rotateX(${t}deg) rotateY(${f}deg) rotateZ(${o}deg)`,
|
|
2645
2685
|
transition: r ? "none" : "transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94)"
|
|
2646
2686
|
},
|
|
2647
2687
|
children: [
|
|
2648
|
-
/* @__PURE__ */ e("div", { style:
|
|
2649
|
-
|
|
2688
|
+
/* @__PURE__ */ e("div", { style: Pe.front, children: /* @__PURE__ */ e(
|
|
2689
|
+
ei,
|
|
2650
2690
|
{
|
|
2651
2691
|
cfg: m,
|
|
2652
2692
|
name: s,
|
|
@@ -2654,19 +2694,19 @@ function he({
|
|
|
2654
2694
|
memLoad: h,
|
|
2655
2695
|
status: a,
|
|
2656
2696
|
compact: p,
|
|
2657
|
-
brandLabel:
|
|
2697
|
+
brandLabel: d
|
|
2658
2698
|
}
|
|
2659
2699
|
) }),
|
|
2660
|
-
/* @__PURE__ */ e("div", { style:
|
|
2661
|
-
/* @__PURE__ */ e("div", { style:
|
|
2662
|
-
/* @__PURE__ */ e("div", { style:
|
|
2663
|
-
/* @__PURE__ */ e("div", { style:
|
|
2664
|
-
/* @__PURE__ */ e("div", { style:
|
|
2700
|
+
/* @__PURE__ */ e("div", { style: Pe.back, children: /* @__PURE__ */ e(ti, {}) }),
|
|
2701
|
+
/* @__PURE__ */ e("div", { style: Pe.left, children: /* @__PURE__ */ e(Rt, { side: "left", color: m.color, brandLabel: d }) }),
|
|
2702
|
+
/* @__PURE__ */ e("div", { style: Pe.right, children: /* @__PURE__ */ e(Rt, { side: "right", color: m.color, brandLabel: d }) }),
|
|
2703
|
+
/* @__PURE__ */ e("div", { style: Pe.top, children: /* @__PURE__ */ e(ii, { cpuLoad: l }) }),
|
|
2704
|
+
/* @__PURE__ */ e("div", { style: Pe.bottom, children: /* @__PURE__ */ e(
|
|
2665
2705
|
"div",
|
|
2666
2706
|
{
|
|
2667
2707
|
style: {
|
|
2668
|
-
width:
|
|
2669
|
-
height:
|
|
2708
|
+
width: fe,
|
|
2709
|
+
height: be,
|
|
2670
2710
|
background: "linear-gradient(180deg, #030710, #020508)"
|
|
2671
2711
|
}
|
|
2672
2712
|
}
|
|
@@ -2680,7 +2720,7 @@ function he({
|
|
|
2680
2720
|
}
|
|
2681
2721
|
);
|
|
2682
2722
|
}
|
|
2683
|
-
function
|
|
2723
|
+
function Mi({
|
|
2684
2724
|
ex: t,
|
|
2685
2725
|
ey: n,
|
|
2686
2726
|
compactOffset: o,
|
|
@@ -2690,14 +2730,14 @@ function Ti({
|
|
|
2690
2730
|
subLabel: s,
|
|
2691
2731
|
color: l,
|
|
2692
2732
|
delay: h,
|
|
2693
|
-
visibleAtPhase:
|
|
2733
|
+
visibleAtPhase: d,
|
|
2694
2734
|
cpuLoad: p,
|
|
2695
2735
|
memLoad: f,
|
|
2696
2736
|
brandLabel: g,
|
|
2697
2737
|
dialogMetrics: u,
|
|
2698
|
-
subComponents:
|
|
2738
|
+
subComponents: b,
|
|
2699
2739
|
graphSeries: m,
|
|
2700
|
-
alert:
|
|
2740
|
+
alert: w
|
|
2701
2741
|
}) {
|
|
2702
2742
|
return /* @__PURE__ */ e(
|
|
2703
2743
|
A,
|
|
@@ -2710,26 +2750,26 @@ function Ti({
|
|
|
2710
2750
|
subLabel: s,
|
|
2711
2751
|
color: l,
|
|
2712
2752
|
delay: h,
|
|
2713
|
-
visibleAtPhase:
|
|
2753
|
+
visibleAtPhase: d,
|
|
2714
2754
|
componentInfo: {
|
|
2715
2755
|
type: "server",
|
|
2716
2756
|
name: r,
|
|
2717
2757
|
status: a,
|
|
2718
2758
|
context: { cpuLoad: p, memLoad: f },
|
|
2719
2759
|
dialogMetrics: u,
|
|
2720
|
-
subComponents:
|
|
2760
|
+
subComponents: b,
|
|
2721
2761
|
graphSeries: m
|
|
2722
2762
|
},
|
|
2723
|
-
alert:
|
|
2724
|
-
children: /* @__PURE__ */ e(
|
|
2763
|
+
alert: w,
|
|
2764
|
+
children: /* @__PURE__ */ e($e, { status: a, cpuLoad: p, memLoad: f, brandLabel: g })
|
|
2725
2765
|
}
|
|
2726
2766
|
);
|
|
2727
2767
|
}
|
|
2728
|
-
const
|
|
2729
|
-
function
|
|
2768
|
+
const pt = 12, Se = 55, te = Se * 2, Oe = 52, gt = 10, lt = 3 * Oe + 2 * gt, Ee = 2 * Math.PI * Se / pt, st = Array.from({ length: pt }, (t, n) => n / pt * 360);
|
|
2769
|
+
function dt(t) {
|
|
2730
2770
|
return Math.cos(t * Math.PI / 180) * 0.42 + 0.58;
|
|
2731
2771
|
}
|
|
2732
|
-
function
|
|
2772
|
+
function ni({
|
|
2733
2773
|
diskY: t,
|
|
2734
2774
|
diskIdx: n,
|
|
2735
2775
|
cfg: o,
|
|
@@ -2737,25 +2777,25 @@ function Gt({
|
|
|
2737
2777
|
capacity: r,
|
|
2738
2778
|
compact: a
|
|
2739
2779
|
}) {
|
|
2740
|
-
return /* @__PURE__ */
|
|
2741
|
-
|
|
2742
|
-
const h =
|
|
2780
|
+
return /* @__PURE__ */ c(Me, { children: [
|
|
2781
|
+
st.map((s, l) => {
|
|
2782
|
+
const h = dt(s), d = l === 0, p = Math.round(4 + h * 9), f = Math.round(12 + h * 22), g = Math.round(28 + h * 44), u = Math.round(h * 0.55 * 255).toString(16).padStart(2, "0");
|
|
2743
2783
|
return /* @__PURE__ */ e(
|
|
2744
2784
|
"div",
|
|
2745
2785
|
{
|
|
2746
2786
|
style: {
|
|
2747
2787
|
position: "absolute",
|
|
2748
|
-
width:
|
|
2749
|
-
height:
|
|
2750
|
-
left: (
|
|
2788
|
+
width: Ee,
|
|
2789
|
+
height: Oe,
|
|
2790
|
+
left: (te - Ee) / 2,
|
|
2751
2791
|
top: t,
|
|
2752
|
-
transform: `rotateY(${s}deg) translateZ(${
|
|
2792
|
+
transform: `rotateY(${s}deg) translateZ(${Se}px)`,
|
|
2753
2793
|
backfaceVisibility: "hidden",
|
|
2754
|
-
background:
|
|
2794
|
+
background: d ? a ? "linear-gradient(180deg, rgb(0,28,62), rgb(0,18,44))" : "linear-gradient(180deg, rgba(0,28,62,0.70), rgba(0,18,44,0.76))" : `rgb(${p},${f},${g})`,
|
|
2755
2795
|
borderLeft: `1px solid ${o.color}${u}`,
|
|
2756
|
-
boxShadow:
|
|
2796
|
+
boxShadow: d ? `inset 0 0 18px ${o.color}28` : "none"
|
|
2757
2797
|
},
|
|
2758
|
-
children:
|
|
2798
|
+
children: d && /* @__PURE__ */ c(Me, { children: [
|
|
2759
2799
|
/* @__PURE__ */ e(
|
|
2760
2800
|
"div",
|
|
2761
2801
|
{
|
|
@@ -2803,15 +2843,15 @@ function Gt({
|
|
|
2803
2843
|
`p${n}${l}`
|
|
2804
2844
|
);
|
|
2805
2845
|
}),
|
|
2806
|
-
/* @__PURE__ */
|
|
2846
|
+
/* @__PURE__ */ c(
|
|
2807
2847
|
"div",
|
|
2808
2848
|
{
|
|
2809
2849
|
style: {
|
|
2810
2850
|
position: "absolute",
|
|
2811
|
-
width:
|
|
2812
|
-
height:
|
|
2851
|
+
width: te + 4,
|
|
2852
|
+
height: te + 4,
|
|
2813
2853
|
left: -2,
|
|
2814
|
-
top: t -
|
|
2854
|
+
top: t - Se,
|
|
2815
2855
|
borderRadius: "50%",
|
|
2816
2856
|
transform: "rotateX(90deg)",
|
|
2817
2857
|
backfaceVisibility: "hidden",
|
|
@@ -2869,10 +2909,10 @@ function Gt({
|
|
|
2869
2909
|
{
|
|
2870
2910
|
style: {
|
|
2871
2911
|
position: "absolute",
|
|
2872
|
-
width:
|
|
2873
|
-
height:
|
|
2912
|
+
width: te + 4,
|
|
2913
|
+
height: te + 4,
|
|
2874
2914
|
left: -2,
|
|
2875
|
-
top: t +
|
|
2915
|
+
top: t + Oe - Se,
|
|
2876
2916
|
borderRadius: "50%",
|
|
2877
2917
|
transform: "rotateX(-90deg)",
|
|
2878
2918
|
backfaceVisibility: "hidden",
|
|
@@ -2896,18 +2936,18 @@ function Gt({
|
|
|
2896
2936
|
)
|
|
2897
2937
|
}
|
|
2898
2938
|
),
|
|
2899
|
-
i &&
|
|
2900
|
-
const h =
|
|
2939
|
+
i && st.map((s, l) => {
|
|
2940
|
+
const h = dt(s);
|
|
2901
2941
|
return /* @__PURE__ */ e(
|
|
2902
2942
|
"div",
|
|
2903
2943
|
{
|
|
2904
2944
|
style: {
|
|
2905
2945
|
position: "absolute",
|
|
2906
|
-
width:
|
|
2946
|
+
width: Ee + 1.5,
|
|
2907
2947
|
height: 6,
|
|
2908
|
-
left: (
|
|
2909
|
-
top: t +
|
|
2910
|
-
transform: `rotateY(${s}deg) translateZ(${
|
|
2948
|
+
left: (te - Ee - 1.5) / 2,
|
|
2949
|
+
top: t + Oe - 3,
|
|
2950
|
+
transform: `rotateY(${s}deg) translateZ(${Se + 1.5}px)`,
|
|
2911
2951
|
backfaceVisibility: "hidden",
|
|
2912
2952
|
background: o.color,
|
|
2913
2953
|
boxShadow: `0 0 8px ${o.color}, 0 0 18px ${o.color}aa, 0 0 30px ${o.glow}`,
|
|
@@ -2917,20 +2957,20 @@ function Gt({
|
|
|
2917
2957
|
`rng${n}${l}`
|
|
2918
2958
|
);
|
|
2919
2959
|
}),
|
|
2920
|
-
i &&
|
|
2921
|
-
const h =
|
|
2960
|
+
i && st.map((s, l) => {
|
|
2961
|
+
const h = dt(s), d = Math.round(2 + h * 4), p = Math.round(5 + h * 10), f = Math.round(12 + h * 20);
|
|
2922
2962
|
return /* @__PURE__ */ e(
|
|
2923
2963
|
"div",
|
|
2924
2964
|
{
|
|
2925
2965
|
style: {
|
|
2926
2966
|
position: "absolute",
|
|
2927
|
-
width:
|
|
2928
|
-
height:
|
|
2929
|
-
left: (
|
|
2930
|
-
top: t +
|
|
2931
|
-
transform: `rotateY(${s}deg) translateZ(${
|
|
2967
|
+
width: Ee,
|
|
2968
|
+
height: gt,
|
|
2969
|
+
left: (te - Ee) / 2,
|
|
2970
|
+
top: t + Oe,
|
|
2971
|
+
transform: `rotateY(${s}deg) translateZ(${Se}px)`,
|
|
2932
2972
|
backfaceVisibility: "hidden",
|
|
2933
|
-
background: `rgb(${
|
|
2973
|
+
background: `rgb(${d},${p},${f})`
|
|
2934
2974
|
}
|
|
2935
2975
|
},
|
|
2936
2976
|
`gap${n}${l}`
|
|
@@ -2938,7 +2978,7 @@ function Gt({
|
|
|
2938
2978
|
})
|
|
2939
2979
|
] });
|
|
2940
2980
|
}
|
|
2941
|
-
function
|
|
2981
|
+
function Ue({
|
|
2942
2982
|
rotateX: t = -22,
|
|
2943
2983
|
rotateY: n = -15,
|
|
2944
2984
|
rotateZ: o = 0,
|
|
@@ -2950,26 +2990,26 @@ function Ne({
|
|
|
2950
2990
|
// connections = 284,
|
|
2951
2991
|
_compact: l
|
|
2952
2992
|
}) {
|
|
2953
|
-
const [h,
|
|
2954
|
-
|
|
2993
|
+
const [h, d] = R(n), p = ie(0), f = ie(0);
|
|
2994
|
+
ke(() => {
|
|
2955
2995
|
if (!r) {
|
|
2956
|
-
|
|
2996
|
+
d(n);
|
|
2957
2997
|
return;
|
|
2958
2998
|
}
|
|
2959
|
-
const u = (
|
|
2960
|
-
f.current &&
|
|
2999
|
+
const u = (b) => {
|
|
3000
|
+
f.current && d((m) => m + (b - f.current) * 0.027), f.current = b, p.current = requestAnimationFrame(u);
|
|
2961
3001
|
};
|
|
2962
3002
|
return p.current = requestAnimationFrame(u), () => {
|
|
2963
3003
|
cancelAnimationFrame(p.current), f.current = 0;
|
|
2964
3004
|
};
|
|
2965
3005
|
}, [r, n]);
|
|
2966
|
-
const g =
|
|
2967
|
-
return /* @__PURE__ */
|
|
3006
|
+
const g = $[a] ?? $.online;
|
|
3007
|
+
return /* @__PURE__ */ c(
|
|
2968
3008
|
"div",
|
|
2969
3009
|
{
|
|
2970
3010
|
style: {
|
|
2971
|
-
width:
|
|
2972
|
-
height:
|
|
3011
|
+
width: te * i,
|
|
3012
|
+
height: lt * i,
|
|
2973
3013
|
position: "relative",
|
|
2974
3014
|
display: "flex",
|
|
2975
3015
|
alignItems: "center",
|
|
@@ -2989,7 +3029,7 @@ function Ne({
|
|
|
2989
3029
|
animation: "holo-led-blink 1.5s infinite",
|
|
2990
3030
|
filter: `drop-shadow(0 0 10px ${a === "critical" ? "#ff2255" : "#ff8c00"})`
|
|
2991
3031
|
},
|
|
2992
|
-
children: /* @__PURE__ */
|
|
3032
|
+
children: /* @__PURE__ */ c("svg", { width: "44", height: "44", viewBox: "0 0 28 28", fill: "none", children: [
|
|
2993
3033
|
/* @__PURE__ */ e(
|
|
2994
3034
|
"path",
|
|
2995
3035
|
{
|
|
@@ -3029,8 +3069,8 @@ function Ne({
|
|
|
3029
3069
|
{
|
|
3030
3070
|
style: {
|
|
3031
3071
|
position: "absolute",
|
|
3032
|
-
width:
|
|
3033
|
-
height:
|
|
3072
|
+
width: te * 2.8 * i,
|
|
3073
|
+
height: lt * 0.85 * i,
|
|
3034
3074
|
background: `radial-gradient(ellipse, ${g.glow} 0%, transparent 65%)`,
|
|
3035
3075
|
filter: `blur(${Math.round(50 * i)}px)`,
|
|
3036
3076
|
pointerEvents: "none",
|
|
@@ -3053,17 +3093,17 @@ function Ne({
|
|
|
3053
3093
|
"div",
|
|
3054
3094
|
{
|
|
3055
3095
|
style: {
|
|
3056
|
-
width:
|
|
3057
|
-
height:
|
|
3096
|
+
width: te,
|
|
3097
|
+
height: lt,
|
|
3058
3098
|
position: "relative",
|
|
3059
3099
|
transformStyle: "preserve-3d",
|
|
3060
3100
|
transform: `rotateX(${t}deg) rotateY(${h}deg) rotateZ(${o}deg)`,
|
|
3061
3101
|
transition: r ? "none" : "transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94)"
|
|
3062
3102
|
},
|
|
3063
3103
|
children: [0, 1, 2].map((u) => /* @__PURE__ */ e(
|
|
3064
|
-
|
|
3104
|
+
ni,
|
|
3065
3105
|
{
|
|
3066
|
-
diskY: u * (
|
|
3106
|
+
diskY: u * (Oe + gt),
|
|
3067
3107
|
diskIdx: u,
|
|
3068
3108
|
cfg: g,
|
|
3069
3109
|
hasRingBelow: u < 2,
|
|
@@ -3080,7 +3120,7 @@ function Ne({
|
|
|
3080
3120
|
}
|
|
3081
3121
|
);
|
|
3082
3122
|
}
|
|
3083
|
-
function
|
|
3123
|
+
function zi({
|
|
3084
3124
|
ex: t,
|
|
3085
3125
|
ey: n,
|
|
3086
3126
|
compactOffset: o,
|
|
@@ -3090,12 +3130,12 @@ function Ii({
|
|
|
3090
3130
|
subLabel: s,
|
|
3091
3131
|
color: l,
|
|
3092
3132
|
delay: h,
|
|
3093
|
-
visibleAtPhase:
|
|
3133
|
+
visibleAtPhase: d,
|
|
3094
3134
|
capacity: p,
|
|
3095
3135
|
dialogMetrics: f,
|
|
3096
3136
|
subComponents: g,
|
|
3097
3137
|
graphSeries: u,
|
|
3098
|
-
alert:
|
|
3138
|
+
alert: b
|
|
3099
3139
|
}) {
|
|
3100
3140
|
return /* @__PURE__ */ e(
|
|
3101
3141
|
A,
|
|
@@ -3108,7 +3148,7 @@ function Ii({
|
|
|
3108
3148
|
subLabel: s,
|
|
3109
3149
|
color: l,
|
|
3110
3150
|
delay: h,
|
|
3111
|
-
visibleAtPhase:
|
|
3151
|
+
visibleAtPhase: d,
|
|
3112
3152
|
componentInfo: {
|
|
3113
3153
|
type: "database",
|
|
3114
3154
|
name: r,
|
|
@@ -3118,13 +3158,13 @@ function Ii({
|
|
|
3118
3158
|
subComponents: g,
|
|
3119
3159
|
graphSeries: u
|
|
3120
3160
|
},
|
|
3121
|
-
alert:
|
|
3122
|
-
children: /* @__PURE__ */ e(
|
|
3161
|
+
alert: b,
|
|
3162
|
+
children: /* @__PURE__ */ e(Ue, { status: a, capacity: p })
|
|
3123
3163
|
}
|
|
3124
3164
|
);
|
|
3125
3165
|
}
|
|
3126
|
-
function
|
|
3127
|
-
const i = (
|
|
3166
|
+
function yt({ status: t = "online", scale: n = 1 }) {
|
|
3167
|
+
const i = ($[t] ?? $.online).color;
|
|
3128
3168
|
return /* @__PURE__ */ e(
|
|
3129
3169
|
"div",
|
|
3130
3170
|
{
|
|
@@ -3135,7 +3175,7 @@ function nt({ status: t = "online", scale: n = 1 }) {
|
|
|
3135
3175
|
alignItems: "center",
|
|
3136
3176
|
justifyContent: "center"
|
|
3137
3177
|
},
|
|
3138
|
-
children: /* @__PURE__ */
|
|
3178
|
+
children: /* @__PURE__ */ c(
|
|
3139
3179
|
"div",
|
|
3140
3180
|
{
|
|
3141
3181
|
style: {
|
|
@@ -3148,7 +3188,7 @@ function nt({ status: t = "online", scale: n = 1 }) {
|
|
|
3148
3188
|
transformOrigin: "center center"
|
|
3149
3189
|
},
|
|
3150
3190
|
children: [
|
|
3151
|
-
/* @__PURE__ */
|
|
3191
|
+
/* @__PURE__ */ c("div", { style: { position: "relative", animation: "holo-float 4s ease-in-out infinite" }, children: [
|
|
3152
3192
|
/* @__PURE__ */ e(
|
|
3153
3193
|
"div",
|
|
3154
3194
|
{
|
|
@@ -3166,7 +3206,7 @@ function nt({ status: t = "online", scale: n = 1 }) {
|
|
|
3166
3206
|
}
|
|
3167
3207
|
}
|
|
3168
3208
|
),
|
|
3169
|
-
/* @__PURE__ */
|
|
3209
|
+
/* @__PURE__ */ c(
|
|
3170
3210
|
"svg",
|
|
3171
3211
|
{
|
|
3172
3212
|
width: "70",
|
|
@@ -3174,7 +3214,7 @@ function nt({ status: t = "online", scale: n = 1 }) {
|
|
|
3174
3214
|
viewBox: "0 0 70 75",
|
|
3175
3215
|
style: { display: "block", overflow: "visible" },
|
|
3176
3216
|
children: [
|
|
3177
|
-
/* @__PURE__ */ e("defs", { children: /* @__PURE__ */
|
|
3217
|
+
/* @__PURE__ */ e("defs", { children: /* @__PURE__ */ c("radialGradient", { id: `usr-glow-${t}`, cx: "50%", cy: "45%", r: "55%", children: [
|
|
3178
3218
|
/* @__PURE__ */ e("stop", { offset: "0%", stopColor: i, stopOpacity: "0.12" }),
|
|
3179
3219
|
/* @__PURE__ */ e("stop", { offset: "100%", stopColor: i, stopOpacity: "0" })
|
|
3180
3220
|
] }) }),
|
|
@@ -3235,7 +3275,7 @@ function nt({ status: t = "online", scale: n = 1 }) {
|
|
|
3235
3275
|
}
|
|
3236
3276
|
);
|
|
3237
3277
|
}
|
|
3238
|
-
function
|
|
3278
|
+
function Bi({
|
|
3239
3279
|
ex: t,
|
|
3240
3280
|
ey: n,
|
|
3241
3281
|
compactOffset: o,
|
|
@@ -3254,12 +3294,12 @@ function Oi({
|
|
|
3254
3294
|
zIndex: i,
|
|
3255
3295
|
color: s,
|
|
3256
3296
|
visibleAtPhase: l,
|
|
3257
|
-
children: /* @__PURE__ */ e(
|
|
3297
|
+
children: /* @__PURE__ */ e(yt, { status: r, scale: a })
|
|
3258
3298
|
}
|
|
3259
3299
|
);
|
|
3260
3300
|
}
|
|
3261
|
-
const
|
|
3262
|
-
function
|
|
3301
|
+
const he = 190, Q = 72, Le = 120, Ae = ht(he, Q, Le);
|
|
3302
|
+
function oi({
|
|
3263
3303
|
cfg: t,
|
|
3264
3304
|
name: n,
|
|
3265
3305
|
traffic: o,
|
|
@@ -3267,13 +3307,13 @@ function Kt({
|
|
|
3267
3307
|
compact: r
|
|
3268
3308
|
}) {
|
|
3269
3309
|
const a = Math.ceil(o / 100 * 8), s = Array(8).fill(t.color);
|
|
3270
|
-
return /* @__PURE__ */
|
|
3310
|
+
return /* @__PURE__ */ c(
|
|
3271
3311
|
"div",
|
|
3272
3312
|
{
|
|
3273
3313
|
style: {
|
|
3274
|
-
width:
|
|
3275
|
-
height:
|
|
3276
|
-
background: r ?
|
|
3314
|
+
width: he,
|
|
3315
|
+
height: Q,
|
|
3316
|
+
background: r ? ze : ft,
|
|
3277
3317
|
position: "relative",
|
|
3278
3318
|
overflow: "hidden",
|
|
3279
3319
|
fontFamily: "'Courier New', monospace",
|
|
@@ -3295,7 +3335,7 @@ function Kt({
|
|
|
3295
3335
|
}
|
|
3296
3336
|
}
|
|
3297
3337
|
),
|
|
3298
|
-
/* @__PURE__ */
|
|
3338
|
+
/* @__PURE__ */ c(
|
|
3299
3339
|
"div",
|
|
3300
3340
|
{
|
|
3301
3341
|
style: {
|
|
@@ -3344,7 +3384,7 @@ function Kt({
|
|
|
3344
3384
|
]
|
|
3345
3385
|
}
|
|
3346
3386
|
),
|
|
3347
|
-
/* @__PURE__ */
|
|
3387
|
+
/* @__PURE__ */ c(
|
|
3348
3388
|
"div",
|
|
3349
3389
|
{
|
|
3350
3390
|
style: {
|
|
@@ -3359,15 +3399,15 @@ function Kt({
|
|
|
3359
3399
|
},
|
|
3360
3400
|
children: [
|
|
3361
3401
|
/* @__PURE__ */ e("div", { style: { display: "flex", gap: 3, alignItems: "center" }, children: Array.from({ length: 8 }, (l, h) => {
|
|
3362
|
-
const
|
|
3363
|
-
return /* @__PURE__ */
|
|
3402
|
+
const d = h < a, p = s[h];
|
|
3403
|
+
return /* @__PURE__ */ c(
|
|
3364
3404
|
"div",
|
|
3365
3405
|
{
|
|
3366
3406
|
style: {
|
|
3367
3407
|
width: 14,
|
|
3368
3408
|
height: 24,
|
|
3369
3409
|
background: "#03070f",
|
|
3370
|
-
border: `1px solid ${
|
|
3410
|
+
border: `1px solid ${d ? p + "66" : "#1a2d40"}`,
|
|
3371
3411
|
borderRadius: 1.5,
|
|
3372
3412
|
display: "flex",
|
|
3373
3413
|
flexDirection: "column",
|
|
@@ -3384,8 +3424,8 @@ function Kt({
|
|
|
3384
3424
|
width: 4,
|
|
3385
3425
|
height: 4,
|
|
3386
3426
|
borderRadius: "50%",
|
|
3387
|
-
background:
|
|
3388
|
-
boxShadow:
|
|
3427
|
+
background: d ? p : "#0a1830",
|
|
3428
|
+
boxShadow: d ? `0 0 5px ${p}, 0 0 10px ${p}88` : "none"
|
|
3389
3429
|
}
|
|
3390
3430
|
}
|
|
3391
3431
|
),
|
|
@@ -3408,9 +3448,9 @@ function Kt({
|
|
|
3408
3448
|
width: 4,
|
|
3409
3449
|
height: 4,
|
|
3410
3450
|
borderRadius: "50%",
|
|
3411
|
-
background:
|
|
3412
|
-
boxShadow:
|
|
3413
|
-
animation:
|
|
3451
|
+
background: d ? t.color : "#0a1830",
|
|
3452
|
+
boxShadow: d ? `0 0 5px ${t.color}` : "none",
|
|
3453
|
+
animation: d ? "holo-led-blink 1.8s linear infinite" : "none",
|
|
3414
3454
|
animationDelay: `${h * 0.2}s`
|
|
3415
3455
|
}
|
|
3416
3456
|
}
|
|
@@ -3430,11 +3470,11 @@ function Kt({
|
|
|
3430
3470
|
}
|
|
3431
3471
|
}
|
|
3432
3472
|
),
|
|
3433
|
-
/* @__PURE__ */
|
|
3434
|
-
/* @__PURE__ */
|
|
3435
|
-
/* @__PURE__ */
|
|
3473
|
+
/* @__PURE__ */ c("div", { style: { flex: 1, display: "flex", flexDirection: "column", gap: 5 }, children: [
|
|
3474
|
+
/* @__PURE__ */ c("div", { children: [
|
|
3475
|
+
/* @__PURE__ */ c("div", { style: { display: "flex", justifyContent: "space-between", marginBottom: 2 }, children: [
|
|
3436
3476
|
/* @__PURE__ */ e("span", { style: { fontSize: 6, color: "#2a5070", letterSpacing: "0.1em" }, children: "TRAFFIC" }),
|
|
3437
|
-
/* @__PURE__ */
|
|
3477
|
+
/* @__PURE__ */ c("span", { style: { fontSize: 6, color: t.color }, children: [
|
|
3438
3478
|
o,
|
|
3439
3479
|
"%"
|
|
3440
3480
|
] })
|
|
@@ -3464,9 +3504,9 @@ function Kt({
|
|
|
3464
3504
|
}
|
|
3465
3505
|
)
|
|
3466
3506
|
] }),
|
|
3467
|
-
/* @__PURE__ */
|
|
3507
|
+
/* @__PURE__ */ c("div", { style: { display: "flex", justifyContent: "space-between" }, children: [
|
|
3468
3508
|
/* @__PURE__ */ e("span", { style: { fontSize: 6, color: "#2a5070", letterSpacing: "0.1em" }, children: "ROUTES" }),
|
|
3469
|
-
/* @__PURE__ */
|
|
3509
|
+
/* @__PURE__ */ c("span", { style: { fontSize: 6, color: t.color }, children: [
|
|
3470
3510
|
i,
|
|
3471
3511
|
" active"
|
|
3472
3512
|
] })
|
|
@@ -3494,9 +3534,9 @@ function Kt({
|
|
|
3494
3534
|
{ label: "HTTP", val: Math.round(o * 12.4), unit: "req/s" },
|
|
3495
3535
|
{ label: "HTTPS", val: Math.round(o * 8.6), unit: "req/s" },
|
|
3496
3536
|
{ label: "WS", val: Math.round(i * 3), unit: "conn" }
|
|
3497
|
-
].map((l) => /* @__PURE__ */
|
|
3537
|
+
].map((l) => /* @__PURE__ */ c("div", { style: { display: "flex", gap: 3 }, children: [
|
|
3498
3538
|
/* @__PURE__ */ e("span", { style: { fontSize: 6, color: "#1e3a5a", letterSpacing: "0.08em" }, children: l.label }),
|
|
3499
|
-
/* @__PURE__ */
|
|
3539
|
+
/* @__PURE__ */ c("span", { style: { fontSize: 6, color: t.color + "88" }, children: [
|
|
3500
3540
|
l.val,
|
|
3501
3541
|
" ",
|
|
3502
3542
|
l.unit
|
|
@@ -3521,13 +3561,13 @@ function Kt({
|
|
|
3521
3561
|
}
|
|
3522
3562
|
);
|
|
3523
3563
|
}
|
|
3524
|
-
function
|
|
3525
|
-
return /* @__PURE__ */
|
|
3564
|
+
function ri() {
|
|
3565
|
+
return /* @__PURE__ */ c(
|
|
3526
3566
|
"div",
|
|
3527
3567
|
{
|
|
3528
3568
|
style: {
|
|
3529
|
-
width:
|
|
3530
|
-
height:
|
|
3569
|
+
width: he,
|
|
3570
|
+
height: Q,
|
|
3531
3571
|
background: "linear-gradient(180deg, #040c1a, #030810)",
|
|
3532
3572
|
position: "relative",
|
|
3533
3573
|
overflow: "hidden",
|
|
@@ -3542,7 +3582,7 @@ function Zt() {
|
|
|
3542
3582
|
{
|
|
3543
3583
|
style: {
|
|
3544
3584
|
width: 40,
|
|
3545
|
-
height:
|
|
3585
|
+
height: Q - 16,
|
|
3546
3586
|
background: "#020710",
|
|
3547
3587
|
border: "1px solid #1a2d40",
|
|
3548
3588
|
borderRadius: 2,
|
|
@@ -3598,7 +3638,7 @@ function Zt() {
|
|
|
3598
3638
|
style: {
|
|
3599
3639
|
marginLeft: "auto",
|
|
3600
3640
|
width: 12,
|
|
3601
|
-
height:
|
|
3641
|
+
height: Q - 16,
|
|
3602
3642
|
background: "#020710",
|
|
3603
3643
|
border: "1px solid #1a3050",
|
|
3604
3644
|
borderRadius: 1
|
|
@@ -3609,13 +3649,13 @@ function Zt() {
|
|
|
3609
3649
|
}
|
|
3610
3650
|
);
|
|
3611
3651
|
}
|
|
3612
|
-
function
|
|
3613
|
-
return /* @__PURE__ */
|
|
3652
|
+
function Ct({ side: t, color: n }) {
|
|
3653
|
+
return /* @__PURE__ */ c(
|
|
3614
3654
|
"div",
|
|
3615
3655
|
{
|
|
3616
3656
|
style: {
|
|
3617
|
-
width:
|
|
3618
|
-
height:
|
|
3657
|
+
width: Le,
|
|
3658
|
+
height: Q,
|
|
3619
3659
|
background: t === "right" ? "linear-gradient(90deg, #04091a 0%, #071428 60%, #040c1c 100%)" : "linear-gradient(90deg, #040c1c 0%, #071428 40%, #04091a 100%)",
|
|
3620
3660
|
position: "relative",
|
|
3621
3661
|
overflow: "hidden"
|
|
@@ -3639,8 +3679,8 @@ function ht({ side: t, color: n }) {
|
|
|
3639
3679
|
{
|
|
3640
3680
|
style: {
|
|
3641
3681
|
position: "absolute",
|
|
3642
|
-
top:
|
|
3643
|
-
bottom:
|
|
3682
|
+
top: Q * 0.25,
|
|
3683
|
+
bottom: Q * 0.25,
|
|
3644
3684
|
left: 14,
|
|
3645
3685
|
right: 14,
|
|
3646
3686
|
display: "flex",
|
|
@@ -3666,14 +3706,14 @@ function ht({ side: t, color: n }) {
|
|
|
3666
3706
|
}
|
|
3667
3707
|
);
|
|
3668
3708
|
}
|
|
3669
|
-
function
|
|
3670
|
-
const n = Math.floor((
|
|
3671
|
-
return /* @__PURE__ */
|
|
3709
|
+
function ai({ traffic: t }) {
|
|
3710
|
+
const n = Math.floor((Le - 14) / 7);
|
|
3711
|
+
return /* @__PURE__ */ c(
|
|
3672
3712
|
"div",
|
|
3673
3713
|
{
|
|
3674
3714
|
style: {
|
|
3675
|
-
width:
|
|
3676
|
-
height:
|
|
3715
|
+
width: he,
|
|
3716
|
+
height: Le,
|
|
3677
3717
|
background: "linear-gradient(180deg, #0c1c30 0%, #07101e 40%, #040c1a 100%)",
|
|
3678
3718
|
position: "relative",
|
|
3679
3719
|
overflow: "hidden"
|
|
@@ -3687,7 +3727,7 @@ function Jt({ traffic: t }) {
|
|
|
3687
3727
|
top: 0,
|
|
3688
3728
|
left: 0,
|
|
3689
3729
|
right: 0,
|
|
3690
|
-
height:
|
|
3730
|
+
height: Le * 0.35,
|
|
3691
3731
|
background: `radial-gradient(ellipse at 50% 0%,
|
|
3692
3732
|
${t > 70 ? "rgba(255,34,85,0.14)" : "rgba(0,229,255,0.08)"} 0%,
|
|
3693
3733
|
transparent 70%)`
|
|
@@ -3725,7 +3765,7 @@ function Jt({ traffic: t }) {
|
|
|
3725
3765
|
}
|
|
3726
3766
|
);
|
|
3727
3767
|
}
|
|
3728
|
-
function
|
|
3768
|
+
function mt({
|
|
3729
3769
|
rotateX: t = -20,
|
|
3730
3770
|
rotateY: n = 20,
|
|
3731
3771
|
rotateZ: o = 0,
|
|
@@ -3735,28 +3775,28 @@ function ot({
|
|
|
3735
3775
|
name: s = "WEB-DISP-01",
|
|
3736
3776
|
traffic: l = 78,
|
|
3737
3777
|
activeRoutes: h = 12,
|
|
3738
|
-
_compact:
|
|
3778
|
+
_compact: d
|
|
3739
3779
|
}) {
|
|
3740
|
-
const [p, f] = R(n), g =
|
|
3741
|
-
|
|
3780
|
+
const [p, f] = R(n), g = ie(0), u = ie(0);
|
|
3781
|
+
ke(() => {
|
|
3742
3782
|
if (!r) {
|
|
3743
3783
|
f(n);
|
|
3744
3784
|
return;
|
|
3745
3785
|
}
|
|
3746
|
-
const m = (
|
|
3747
|
-
u.current && f((
|
|
3786
|
+
const m = (w) => {
|
|
3787
|
+
u.current && f((v) => v + (w - u.current) * 0.027), u.current = w, g.current = requestAnimationFrame(m);
|
|
3748
3788
|
};
|
|
3749
3789
|
return g.current = requestAnimationFrame(m), () => {
|
|
3750
3790
|
cancelAnimationFrame(g.current), u.current = 0;
|
|
3751
3791
|
};
|
|
3752
3792
|
}, [r, n]);
|
|
3753
|
-
const
|
|
3754
|
-
return /* @__PURE__ */
|
|
3793
|
+
const b = $[a] ?? $.online;
|
|
3794
|
+
return /* @__PURE__ */ c(
|
|
3755
3795
|
"div",
|
|
3756
3796
|
{
|
|
3757
3797
|
style: {
|
|
3758
|
-
width:
|
|
3759
|
-
height:
|
|
3798
|
+
width: he * i,
|
|
3799
|
+
height: Q * i,
|
|
3760
3800
|
position: "relative",
|
|
3761
3801
|
display: "flex",
|
|
3762
3802
|
alignItems: "center",
|
|
@@ -3776,7 +3816,7 @@ function ot({
|
|
|
3776
3816
|
animation: "holo-led-blink 1.5s infinite",
|
|
3777
3817
|
filter: `drop-shadow(0 0 10px ${a === "critical" ? "#ff2255" : "#ff8c00"})`
|
|
3778
3818
|
},
|
|
3779
|
-
children: /* @__PURE__ */
|
|
3819
|
+
children: /* @__PURE__ */ c("svg", { width: "44", height: "44", viewBox: "0 0 28 28", fill: "none", children: [
|
|
3780
3820
|
/* @__PURE__ */ e(
|
|
3781
3821
|
"path",
|
|
3782
3822
|
{
|
|
@@ -3816,9 +3856,9 @@ function ot({
|
|
|
3816
3856
|
{
|
|
3817
3857
|
style: {
|
|
3818
3858
|
position: "absolute",
|
|
3819
|
-
width:
|
|
3820
|
-
height:
|
|
3821
|
-
background: `radial-gradient(ellipse, ${
|
|
3859
|
+
width: he * 1.3 * i,
|
|
3860
|
+
height: Q * 2 * i,
|
|
3861
|
+
background: `radial-gradient(ellipse, ${b.glow} 0%, transparent 65%)`,
|
|
3822
3862
|
filter: `blur(${Math.round(40 * i)}px)`,
|
|
3823
3863
|
pointerEvents: "none",
|
|
3824
3864
|
top: "40%",
|
|
@@ -3836,33 +3876,33 @@ function ot({
|
|
|
3836
3876
|
transform: `scale(${i})`,
|
|
3837
3877
|
transformOrigin: "center center"
|
|
3838
3878
|
},
|
|
3839
|
-
children: /* @__PURE__ */
|
|
3879
|
+
children: /* @__PURE__ */ c(
|
|
3840
3880
|
"div",
|
|
3841
3881
|
{
|
|
3842
3882
|
style: {
|
|
3843
|
-
width:
|
|
3844
|
-
height:
|
|
3883
|
+
width: he,
|
|
3884
|
+
height: Q,
|
|
3845
3885
|
position: "relative",
|
|
3846
3886
|
transformStyle: "preserve-3d",
|
|
3847
3887
|
transform: `rotateX(${t}deg) rotateY(${p}deg) rotateZ(${o}deg)`,
|
|
3848
3888
|
transition: r ? "none" : "transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94)"
|
|
3849
3889
|
},
|
|
3850
3890
|
children: [
|
|
3851
|
-
/* @__PURE__ */ e("div", { style:
|
|
3852
|
-
|
|
3891
|
+
/* @__PURE__ */ e("div", { style: Ae.front, children: /* @__PURE__ */ e(
|
|
3892
|
+
oi,
|
|
3853
3893
|
{
|
|
3854
|
-
cfg:
|
|
3894
|
+
cfg: b,
|
|
3855
3895
|
name: s,
|
|
3856
3896
|
traffic: l,
|
|
3857
3897
|
activeRoutes: h,
|
|
3858
|
-
compact:
|
|
3898
|
+
compact: d
|
|
3859
3899
|
}
|
|
3860
3900
|
) }),
|
|
3861
|
-
/* @__PURE__ */ e("div", { style:
|
|
3862
|
-
/* @__PURE__ */ e("div", { style:
|
|
3863
|
-
/* @__PURE__ */ e("div", { style:
|
|
3864
|
-
/* @__PURE__ */ e("div", { style:
|
|
3865
|
-
/* @__PURE__ */ e("div", { style:
|
|
3901
|
+
/* @__PURE__ */ e("div", { style: Ae.back, children: /* @__PURE__ */ e(ri, {}) }),
|
|
3902
|
+
/* @__PURE__ */ e("div", { style: Ae.left, children: /* @__PURE__ */ e(Ct, { side: "left", color: b.color }) }),
|
|
3903
|
+
/* @__PURE__ */ e("div", { style: Ae.right, children: /* @__PURE__ */ e(Ct, { side: "right", color: b.color }) }),
|
|
3904
|
+
/* @__PURE__ */ e("div", { style: Ae.top, children: /* @__PURE__ */ e(ai, { traffic: l }) }),
|
|
3905
|
+
/* @__PURE__ */ e("div", { style: Ae.bottom, children: /* @__PURE__ */ e("div", { style: { width: he, height: Le, background: "#020508" } }) })
|
|
3866
3906
|
]
|
|
3867
3907
|
}
|
|
3868
3908
|
)
|
|
@@ -3872,7 +3912,7 @@ function ot({
|
|
|
3872
3912
|
}
|
|
3873
3913
|
);
|
|
3874
3914
|
}
|
|
3875
|
-
function
|
|
3915
|
+
function Fi({
|
|
3876
3916
|
ex: t,
|
|
3877
3917
|
ey: n,
|
|
3878
3918
|
compactOffset: o,
|
|
@@ -3882,12 +3922,12 @@ function Li({
|
|
|
3882
3922
|
subLabel: s,
|
|
3883
3923
|
color: l,
|
|
3884
3924
|
delay: h,
|
|
3885
|
-
visibleAtPhase:
|
|
3925
|
+
visibleAtPhase: d,
|
|
3886
3926
|
traffic: p,
|
|
3887
3927
|
activeRoutes: f,
|
|
3888
3928
|
dialogMetrics: g,
|
|
3889
3929
|
subComponents: u,
|
|
3890
|
-
graphSeries:
|
|
3930
|
+
graphSeries: b,
|
|
3891
3931
|
alert: m
|
|
3892
3932
|
}) {
|
|
3893
3933
|
return /* @__PURE__ */ e(
|
|
@@ -3901,7 +3941,7 @@ function Li({
|
|
|
3901
3941
|
subLabel: s,
|
|
3902
3942
|
color: l,
|
|
3903
3943
|
delay: h,
|
|
3904
|
-
visibleAtPhase:
|
|
3944
|
+
visibleAtPhase: d,
|
|
3905
3945
|
componentInfo: {
|
|
3906
3946
|
type: "dispatcher",
|
|
3907
3947
|
name: r,
|
|
@@ -3909,20 +3949,20 @@ function Li({
|
|
|
3909
3949
|
context: { traffic: p, activeRoutes: f },
|
|
3910
3950
|
dialogMetrics: g,
|
|
3911
3951
|
subComponents: u,
|
|
3912
|
-
graphSeries:
|
|
3952
|
+
graphSeries: b
|
|
3913
3953
|
},
|
|
3914
3954
|
alert: m,
|
|
3915
|
-
children: /* @__PURE__ */ e(
|
|
3955
|
+
children: /* @__PURE__ */ e(mt, { status: a, traffic: p, activeRoutes: f })
|
|
3916
3956
|
}
|
|
3917
3957
|
);
|
|
3918
3958
|
}
|
|
3919
|
-
const
|
|
3959
|
+
const ue = 190, G = 72, Ie = 120, Te = ht(ue, G, Ie), Pt = {
|
|
3920
3960
|
online: { color: "#bb55ff", glow: "rgba(187,85,255,0.50)" },
|
|
3921
3961
|
warning: { color: "#ff8c00", glow: "rgba(255,140,0,0.50)" },
|
|
3922
3962
|
critical: { color: "#ff2255", glow: "rgba(255,34,85,0.50)" },
|
|
3923
3963
|
offline: { color: "#1e3a5a", glow: "rgba(30,58,90,0.25)" }
|
|
3924
3964
|
};
|
|
3925
|
-
function
|
|
3965
|
+
function li({
|
|
3926
3966
|
cfg: t,
|
|
3927
3967
|
name: n,
|
|
3928
3968
|
queueDepth: o,
|
|
@@ -3931,13 +3971,13 @@ function ei({
|
|
|
3931
3971
|
compact: a
|
|
3932
3972
|
}) {
|
|
3933
3973
|
const { color: s, glow: l } = t;
|
|
3934
|
-
return /* @__PURE__ */
|
|
3974
|
+
return /* @__PURE__ */ c(
|
|
3935
3975
|
"div",
|
|
3936
3976
|
{
|
|
3937
3977
|
style: {
|
|
3938
|
-
width:
|
|
3939
|
-
height:
|
|
3940
|
-
background: a ?
|
|
3978
|
+
width: ue,
|
|
3979
|
+
height: G,
|
|
3980
|
+
background: a ? ze : ft,
|
|
3941
3981
|
position: "relative",
|
|
3942
3982
|
overflow: "hidden",
|
|
3943
3983
|
fontFamily: "'Courier New', monospace",
|
|
@@ -3959,7 +3999,7 @@ function ei({
|
|
|
3959
3999
|
}
|
|
3960
4000
|
}
|
|
3961
4001
|
),
|
|
3962
|
-
/* @__PURE__ */
|
|
4002
|
+
/* @__PURE__ */ c(
|
|
3963
4003
|
"div",
|
|
3964
4004
|
{
|
|
3965
4005
|
style: {
|
|
@@ -4008,7 +4048,7 @@ function ei({
|
|
|
4008
4048
|
]
|
|
4009
4049
|
}
|
|
4010
4050
|
),
|
|
4011
|
-
/* @__PURE__ */
|
|
4051
|
+
/* @__PURE__ */ c(
|
|
4012
4052
|
"div",
|
|
4013
4053
|
{
|
|
4014
4054
|
style: {
|
|
@@ -4022,9 +4062,9 @@ function ei({
|
|
|
4022
4062
|
gap: 10
|
|
4023
4063
|
},
|
|
4024
4064
|
children: [
|
|
4025
|
-
/* @__PURE__ */ e("div", { style: { display: "flex", gap: 3, alignItems: "center" }, children: Array.from({ length: 5 }, (h,
|
|
4026
|
-
const p =
|
|
4027
|
-
return /* @__PURE__ */
|
|
4065
|
+
/* @__PURE__ */ e("div", { style: { display: "flex", gap: 3, alignItems: "center" }, children: Array.from({ length: 5 }, (h, d) => {
|
|
4066
|
+
const p = d < r;
|
|
4067
|
+
return /* @__PURE__ */ c(
|
|
4028
4068
|
"div",
|
|
4029
4069
|
{
|
|
4030
4070
|
style: {
|
|
@@ -4074,13 +4114,13 @@ function ei({
|
|
|
4074
4114
|
background: p ? s : "#0a1830",
|
|
4075
4115
|
boxShadow: p ? `0 0 5px ${s}` : "none",
|
|
4076
4116
|
animation: p ? "holo-led-blink 2.2s linear infinite" : "none",
|
|
4077
|
-
animationDelay: `${
|
|
4117
|
+
animationDelay: `${d * 0.28}s`
|
|
4078
4118
|
}
|
|
4079
4119
|
}
|
|
4080
4120
|
)
|
|
4081
4121
|
]
|
|
4082
4122
|
},
|
|
4083
|
-
|
|
4123
|
+
d
|
|
4084
4124
|
);
|
|
4085
4125
|
}) }),
|
|
4086
4126
|
/* @__PURE__ */ e(
|
|
@@ -4093,11 +4133,11 @@ function ei({
|
|
|
4093
4133
|
}
|
|
4094
4134
|
}
|
|
4095
4135
|
),
|
|
4096
|
-
/* @__PURE__ */
|
|
4097
|
-
/* @__PURE__ */
|
|
4098
|
-
/* @__PURE__ */
|
|
4136
|
+
/* @__PURE__ */ c("div", { style: { flex: 1, display: "flex", flexDirection: "column", gap: 5 }, children: [
|
|
4137
|
+
/* @__PURE__ */ c("div", { children: [
|
|
4138
|
+
/* @__PURE__ */ c("div", { style: { display: "flex", justifyContent: "space-between", marginBottom: 2 }, children: [
|
|
4099
4139
|
/* @__PURE__ */ e("span", { style: { fontSize: 6, color: "#2a5070", letterSpacing: "0.1em" }, children: "QUEUE" }),
|
|
4100
|
-
/* @__PURE__ */
|
|
4140
|
+
/* @__PURE__ */ c("span", { style: { fontSize: 6, color: s }, children: [
|
|
4101
4141
|
o,
|
|
4102
4142
|
"%"
|
|
4103
4143
|
] })
|
|
@@ -4127,7 +4167,7 @@ function ei({
|
|
|
4127
4167
|
}
|
|
4128
4168
|
)
|
|
4129
4169
|
] }),
|
|
4130
|
-
/* @__PURE__ */
|
|
4170
|
+
/* @__PURE__ */ c("div", { style: { display: "flex", justifyContent: "space-between" }, children: [
|
|
4131
4171
|
/* @__PURE__ */ e("span", { style: { fontSize: 6, color: "#2a5070", letterSpacing: "0.1em" }, children: "MSG/S" }),
|
|
4132
4172
|
/* @__PURE__ */ e("span", { style: { fontSize: 6, color: s }, children: i })
|
|
4133
4173
|
] })
|
|
@@ -4154,9 +4194,9 @@ function ei({
|
|
|
4154
4194
|
{ label: "INST", val: r, unit: "conn" },
|
|
4155
4195
|
{ label: "ENQUEUE", val: Math.round(o * 2.4), unit: "msgs" },
|
|
4156
4196
|
{ label: "DISP", val: Math.round(i * 0.1), unit: "/s" }
|
|
4157
|
-
].map((h) => /* @__PURE__ */
|
|
4197
|
+
].map((h) => /* @__PURE__ */ c("div", { style: { display: "flex", gap: 3 }, children: [
|
|
4158
4198
|
/* @__PURE__ */ e("span", { style: { fontSize: 6, color: "#1e3a5a", letterSpacing: "0.08em" }, children: h.label }),
|
|
4159
|
-
/* @__PURE__ */
|
|
4199
|
+
/* @__PURE__ */ c("span", { style: { fontSize: 6, color: s + "88" }, children: [
|
|
4160
4200
|
h.val,
|
|
4161
4201
|
" ",
|
|
4162
4202
|
h.unit
|
|
@@ -4181,13 +4221,13 @@ function ei({
|
|
|
4181
4221
|
}
|
|
4182
4222
|
);
|
|
4183
4223
|
}
|
|
4184
|
-
function
|
|
4185
|
-
return /* @__PURE__ */
|
|
4224
|
+
function si() {
|
|
4225
|
+
return /* @__PURE__ */ c(
|
|
4186
4226
|
"div",
|
|
4187
4227
|
{
|
|
4188
4228
|
style: {
|
|
4189
|
-
width:
|
|
4190
|
-
height:
|
|
4229
|
+
width: ue,
|
|
4230
|
+
height: G,
|
|
4191
4231
|
background: "linear-gradient(180deg, #040c1a, #030810)",
|
|
4192
4232
|
position: "relative",
|
|
4193
4233
|
overflow: "hidden",
|
|
@@ -4202,7 +4242,7 @@ function ti() {
|
|
|
4202
4242
|
{
|
|
4203
4243
|
style: {
|
|
4204
4244
|
width: 40,
|
|
4205
|
-
height:
|
|
4245
|
+
height: G - 16,
|
|
4206
4246
|
background: "#020710",
|
|
4207
4247
|
border: "1px solid #1a2d40",
|
|
4208
4248
|
borderRadius: 2,
|
|
@@ -4258,7 +4298,7 @@ function ti() {
|
|
|
4258
4298
|
style: {
|
|
4259
4299
|
marginLeft: "auto",
|
|
4260
4300
|
width: 12,
|
|
4261
|
-
height:
|
|
4301
|
+
height: G - 16,
|
|
4262
4302
|
background: "#020710",
|
|
4263
4303
|
border: "1px solid #1a3050",
|
|
4264
4304
|
borderRadius: 1
|
|
@@ -4269,13 +4309,13 @@ function ti() {
|
|
|
4269
4309
|
}
|
|
4270
4310
|
);
|
|
4271
4311
|
}
|
|
4272
|
-
function
|
|
4273
|
-
return /* @__PURE__ */
|
|
4312
|
+
function Et({ side: t, color: n }) {
|
|
4313
|
+
return /* @__PURE__ */ c(
|
|
4274
4314
|
"div",
|
|
4275
4315
|
{
|
|
4276
4316
|
style: {
|
|
4277
|
-
width:
|
|
4278
|
-
height:
|
|
4317
|
+
width: Ie,
|
|
4318
|
+
height: G,
|
|
4279
4319
|
background: t === "right" ? "linear-gradient(90deg, #04091a 0%, #071428 60%, #040c1c 100%)" : "linear-gradient(90deg, #040c1c 0%, #071428 40%, #04091a 100%)",
|
|
4280
4320
|
position: "relative",
|
|
4281
4321
|
overflow: "hidden"
|
|
@@ -4299,8 +4339,8 @@ function bt({ side: t, color: n }) {
|
|
|
4299
4339
|
{
|
|
4300
4340
|
style: {
|
|
4301
4341
|
position: "absolute",
|
|
4302
|
-
top:
|
|
4303
|
-
bottom:
|
|
4342
|
+
top: G * 0.25,
|
|
4343
|
+
bottom: G * 0.25,
|
|
4304
4344
|
left: 14,
|
|
4305
4345
|
right: 14,
|
|
4306
4346
|
display: "flex",
|
|
@@ -4326,14 +4366,14 @@ function bt({ side: t, color: n }) {
|
|
|
4326
4366
|
}
|
|
4327
4367
|
);
|
|
4328
4368
|
}
|
|
4329
|
-
function
|
|
4330
|
-
const o = Math.floor((
|
|
4331
|
-
return /* @__PURE__ */
|
|
4369
|
+
function di({ queueDepth: t, color: n }) {
|
|
4370
|
+
const o = Math.floor((Ie - 14) / 7);
|
|
4371
|
+
return /* @__PURE__ */ c(
|
|
4332
4372
|
"div",
|
|
4333
4373
|
{
|
|
4334
4374
|
style: {
|
|
4335
|
-
width:
|
|
4336
|
-
height:
|
|
4375
|
+
width: ue,
|
|
4376
|
+
height: Ie,
|
|
4337
4377
|
background: "linear-gradient(180deg, #0c1c30 0%, #07101e 40%, #040c1a 100%)",
|
|
4338
4378
|
position: "relative",
|
|
4339
4379
|
overflow: "hidden"
|
|
@@ -4347,7 +4387,7 @@ function ii({ queueDepth: t, color: n }) {
|
|
|
4347
4387
|
top: 0,
|
|
4348
4388
|
left: 0,
|
|
4349
4389
|
right: 0,
|
|
4350
|
-
height:
|
|
4390
|
+
height: Ie * 0.35,
|
|
4351
4391
|
background: `radial-gradient(ellipse at 50% 0%,
|
|
4352
4392
|
${t > 70 ? "rgba(255,34,85,0.14)" : `${n}15`} 0%,
|
|
4353
4393
|
transparent 70%)`
|
|
@@ -4385,7 +4425,7 @@ function ii({ queueDepth: t, color: n }) {
|
|
|
4385
4425
|
}
|
|
4386
4426
|
);
|
|
4387
4427
|
}
|
|
4388
|
-
function
|
|
4428
|
+
function Dt({
|
|
4389
4429
|
rotateX: t = -20,
|
|
4390
4430
|
rotateY: n = 20,
|
|
4391
4431
|
rotateZ: o = 0,
|
|
@@ -4395,29 +4435,29 @@ function wt({
|
|
|
4395
4435
|
name: s = "MSG-SRV-01",
|
|
4396
4436
|
queueDepth: l = 45,
|
|
4397
4437
|
msgsPerSec: h = 230,
|
|
4398
|
-
instances:
|
|
4438
|
+
instances: d = 3,
|
|
4399
4439
|
_compact: p
|
|
4400
4440
|
}) {
|
|
4401
|
-
const [f, g] = R(n), u =
|
|
4402
|
-
|
|
4441
|
+
const [f, g] = R(n), u = ie(0), b = ie(0);
|
|
4442
|
+
ke(() => {
|
|
4403
4443
|
if (!r) {
|
|
4404
4444
|
g(n);
|
|
4405
4445
|
return;
|
|
4406
4446
|
}
|
|
4407
|
-
const
|
|
4408
|
-
|
|
4447
|
+
const w = (v) => {
|
|
4448
|
+
b.current && g((S) => S + (v - b.current) * 0.027), b.current = v, u.current = requestAnimationFrame(w);
|
|
4409
4449
|
};
|
|
4410
|
-
return u.current = requestAnimationFrame(
|
|
4411
|
-
cancelAnimationFrame(u.current),
|
|
4450
|
+
return u.current = requestAnimationFrame(w), () => {
|
|
4451
|
+
cancelAnimationFrame(u.current), b.current = 0;
|
|
4412
4452
|
};
|
|
4413
4453
|
}, [r, n]);
|
|
4414
|
-
const m =
|
|
4415
|
-
return /* @__PURE__ */
|
|
4454
|
+
const m = Pt[a] ?? Pt.online;
|
|
4455
|
+
return /* @__PURE__ */ c(
|
|
4416
4456
|
"div",
|
|
4417
4457
|
{
|
|
4418
4458
|
style: {
|
|
4419
|
-
width:
|
|
4420
|
-
height:
|
|
4459
|
+
width: ue * i,
|
|
4460
|
+
height: G * i,
|
|
4421
4461
|
position: "relative",
|
|
4422
4462
|
display: "flex",
|
|
4423
4463
|
alignItems: "center",
|
|
@@ -4437,7 +4477,7 @@ function wt({
|
|
|
4437
4477
|
animation: "holo-led-blink 1.5s infinite",
|
|
4438
4478
|
filter: `drop-shadow(0 0 10px ${a === "critical" ? "#ff2255" : "#ff8c00"})`
|
|
4439
4479
|
},
|
|
4440
|
-
children: /* @__PURE__ */
|
|
4480
|
+
children: /* @__PURE__ */ c("svg", { width: "44", height: "44", viewBox: "0 0 28 28", fill: "none", children: [
|
|
4441
4481
|
/* @__PURE__ */ e(
|
|
4442
4482
|
"path",
|
|
4443
4483
|
{
|
|
@@ -4477,8 +4517,8 @@ function wt({
|
|
|
4477
4517
|
{
|
|
4478
4518
|
style: {
|
|
4479
4519
|
position: "absolute",
|
|
4480
|
-
width:
|
|
4481
|
-
height:
|
|
4520
|
+
width: ue * 1.3 * i,
|
|
4521
|
+
height: G * 2 * i,
|
|
4482
4522
|
background: `radial-gradient(ellipse, ${m.glow} 0%, transparent 65%)`,
|
|
4483
4523
|
filter: `blur(${Math.round(40 * i)}px)`,
|
|
4484
4524
|
pointerEvents: "none",
|
|
@@ -4497,34 +4537,34 @@ function wt({
|
|
|
4497
4537
|
transform: `scale(${i})`,
|
|
4498
4538
|
transformOrigin: "center center"
|
|
4499
4539
|
},
|
|
4500
|
-
children: /* @__PURE__ */
|
|
4540
|
+
children: /* @__PURE__ */ c(
|
|
4501
4541
|
"div",
|
|
4502
4542
|
{
|
|
4503
4543
|
style: {
|
|
4504
|
-
width:
|
|
4505
|
-
height:
|
|
4544
|
+
width: ue,
|
|
4545
|
+
height: G,
|
|
4506
4546
|
position: "relative",
|
|
4507
4547
|
transformStyle: "preserve-3d",
|
|
4508
4548
|
transform: `rotateX(${t}deg) rotateY(${f}deg) rotateZ(${o}deg)`,
|
|
4509
4549
|
transition: r ? "none" : "transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94)"
|
|
4510
4550
|
},
|
|
4511
4551
|
children: [
|
|
4512
|
-
/* @__PURE__ */ e("div", { style:
|
|
4513
|
-
|
|
4552
|
+
/* @__PURE__ */ e("div", { style: Te.front, children: /* @__PURE__ */ e(
|
|
4553
|
+
li,
|
|
4514
4554
|
{
|
|
4515
4555
|
cfg: m,
|
|
4516
4556
|
name: s,
|
|
4517
4557
|
queueDepth: l,
|
|
4518
4558
|
msgsPerSec: h,
|
|
4519
|
-
instances:
|
|
4559
|
+
instances: d,
|
|
4520
4560
|
compact: p
|
|
4521
4561
|
}
|
|
4522
4562
|
) }),
|
|
4523
|
-
/* @__PURE__ */ e("div", { style:
|
|
4524
|
-
/* @__PURE__ */ e("div", { style:
|
|
4525
|
-
/* @__PURE__ */ e("div", { style:
|
|
4526
|
-
/* @__PURE__ */ e("div", { style:
|
|
4527
|
-
/* @__PURE__ */ e("div", { style:
|
|
4563
|
+
/* @__PURE__ */ e("div", { style: Te.back, children: /* @__PURE__ */ e(si, {}) }),
|
|
4564
|
+
/* @__PURE__ */ e("div", { style: Te.left, children: /* @__PURE__ */ e(Et, { side: "left", color: m.color }) }),
|
|
4565
|
+
/* @__PURE__ */ e("div", { style: Te.right, children: /* @__PURE__ */ e(Et, { side: "right", color: m.color }) }),
|
|
4566
|
+
/* @__PURE__ */ e("div", { style: Te.top, children: /* @__PURE__ */ e(di, { queueDepth: l, color: m.color }) }),
|
|
4567
|
+
/* @__PURE__ */ e("div", { style: Te.bottom, children: /* @__PURE__ */ e("div", { style: { width: ue, height: Ie, background: "#020508" } }) })
|
|
4528
4568
|
]
|
|
4529
4569
|
}
|
|
4530
4570
|
)
|
|
@@ -4534,7 +4574,7 @@ function wt({
|
|
|
4534
4574
|
}
|
|
4535
4575
|
);
|
|
4536
4576
|
}
|
|
4537
|
-
function
|
|
4577
|
+
function Hi({
|
|
4538
4578
|
ex: t,
|
|
4539
4579
|
ey: n,
|
|
4540
4580
|
compactOffset: o,
|
|
@@ -4544,14 +4584,14 @@ function Di({
|
|
|
4544
4584
|
subLabel: s,
|
|
4545
4585
|
color: l,
|
|
4546
4586
|
delay: h,
|
|
4547
|
-
visibleAtPhase:
|
|
4587
|
+
visibleAtPhase: d,
|
|
4548
4588
|
queueDepth: p,
|
|
4549
4589
|
msgsPerSec: f,
|
|
4550
4590
|
instances: g,
|
|
4551
4591
|
dialogMetrics: u,
|
|
4552
|
-
subComponents:
|
|
4592
|
+
subComponents: b,
|
|
4553
4593
|
graphSeries: m,
|
|
4554
|
-
alert:
|
|
4594
|
+
alert: w
|
|
4555
4595
|
}) {
|
|
4556
4596
|
return /* @__PURE__ */ e(
|
|
4557
4597
|
A,
|
|
@@ -4564,19 +4604,19 @@ function Di({
|
|
|
4564
4604
|
subLabel: s,
|
|
4565
4605
|
color: l,
|
|
4566
4606
|
delay: h,
|
|
4567
|
-
visibleAtPhase:
|
|
4607
|
+
visibleAtPhase: d,
|
|
4568
4608
|
componentInfo: {
|
|
4569
4609
|
type: "messageServer",
|
|
4570
4610
|
name: r,
|
|
4571
4611
|
status: a,
|
|
4572
4612
|
context: { queueDepth: p, msgsPerSec: f, instances: g },
|
|
4573
4613
|
dialogMetrics: u,
|
|
4574
|
-
subComponents:
|
|
4614
|
+
subComponents: b,
|
|
4575
4615
|
graphSeries: m
|
|
4576
4616
|
},
|
|
4577
|
-
alert:
|
|
4617
|
+
alert: w,
|
|
4578
4618
|
children: /* @__PURE__ */ e(
|
|
4579
|
-
|
|
4619
|
+
Dt,
|
|
4580
4620
|
{
|
|
4581
4621
|
status: a,
|
|
4582
4622
|
queueDepth: p,
|
|
@@ -4587,16 +4627,16 @@ function Di({
|
|
|
4587
4627
|
}
|
|
4588
4628
|
);
|
|
4589
4629
|
}
|
|
4590
|
-
function
|
|
4630
|
+
function L(t, n, o = 24) {
|
|
4591
4631
|
return Array.from({ length: o }, (i, r) => {
|
|
4592
4632
|
const a = r / o;
|
|
4593
4633
|
return Math.min(100, Math.max(0, t + Math.sin(a * Math.PI * 2) * n + (Math.random() - 0.5) * 10));
|
|
4594
4634
|
});
|
|
4595
4635
|
}
|
|
4596
|
-
function
|
|
4636
|
+
function ci({ data: t, color: n, height: o = 28 }) {
|
|
4597
4637
|
const r = o, a = Math.max(...t, 1), s = t.map((l, h) => {
|
|
4598
|
-
const
|
|
4599
|
-
return `${
|
|
4638
|
+
const d = h / (t.length - 1) * 120, p = r - l / a * (r - 4) - 2;
|
|
4639
|
+
return `${d},${p}`;
|
|
4600
4640
|
}).join(" ");
|
|
4601
4641
|
return /* @__PURE__ */ e("svg", { width: 120, height: r, style: { display: "block", overflow: "visible" }, children: /* @__PURE__ */ e(
|
|
4602
4642
|
"polyline",
|
|
@@ -4611,7 +4651,7 @@ function ni({ data: t, color: n, height: o = 28 }) {
|
|
|
4611
4651
|
}
|
|
4612
4652
|
) });
|
|
4613
4653
|
}
|
|
4614
|
-
function
|
|
4654
|
+
function pi({
|
|
4615
4655
|
type: t,
|
|
4616
4656
|
name: n,
|
|
4617
4657
|
context: o = {},
|
|
@@ -4619,8 +4659,8 @@ function oi({
|
|
|
4619
4659
|
animPhase: r,
|
|
4620
4660
|
series: a
|
|
4621
4661
|
}) {
|
|
4622
|
-
const s = i === "critical" || i === "offline" ? "#ff2255" : i === "warning" ? "#ff8c00" : "#00e5ff", l = a ? a.map((p) => ({ ...p })) :
|
|
4623
|
-
return /* @__PURE__ */
|
|
4662
|
+
const s = i === "critical" || i === "offline" ? "#ff2255" : i === "warning" ? "#ff8c00" : "#00e5ff", l = a ? a.map((p) => ({ ...p })) : fi(t, o), h = r >= 0.3 ? 0 : -280, d = r >= 0.2 ? 1 : 0;
|
|
4663
|
+
return /* @__PURE__ */ c(
|
|
4624
4664
|
"div",
|
|
4625
4665
|
{
|
|
4626
4666
|
style: {
|
|
@@ -4634,11 +4674,11 @@ function oi({
|
|
|
4634
4674
|
flexDirection: "column",
|
|
4635
4675
|
overflow: "hidden",
|
|
4636
4676
|
transform: `translateX(${h}px)`,
|
|
4637
|
-
opacity:
|
|
4677
|
+
opacity: d,
|
|
4638
4678
|
transition: "transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease"
|
|
4639
4679
|
},
|
|
4640
4680
|
children: [
|
|
4641
|
-
/* @__PURE__ */
|
|
4681
|
+
/* @__PURE__ */ c(
|
|
4642
4682
|
"div",
|
|
4643
4683
|
{
|
|
4644
4684
|
style: {
|
|
@@ -4648,14 +4688,14 @@ function oi({
|
|
|
4648
4688
|
},
|
|
4649
4689
|
children: [
|
|
4650
4690
|
/* @__PURE__ */ e("div", { style: { fontSize: 10, color: s + "cc", letterSpacing: "0.12em", fontFamily: "'Courier New', monospace" }, children: "HISTORICAL" }),
|
|
4651
|
-
/* @__PURE__ */
|
|
4691
|
+
/* @__PURE__ */ c("div", { style: { fontSize: 12, fontWeight: 700, color: "#fff", letterSpacing: "0.06em", marginTop: 2, fontFamily: "'Courier New', monospace" }, children: [
|
|
4652
4692
|
n,
|
|
4653
4693
|
" · Sub-components"
|
|
4654
4694
|
] })
|
|
4655
4695
|
]
|
|
4656
4696
|
}
|
|
4657
4697
|
),
|
|
4658
|
-
/* @__PURE__ */ e("div", { style: { flex: 1, overflowY: "auto", padding: "12px 10px", display: "flex", flexDirection: "column", gap: 16 }, children: l.map((p, f) => /* @__PURE__ */
|
|
4698
|
+
/* @__PURE__ */ e("div", { style: { flex: 1, overflowY: "auto", padding: "12px 10px", display: "flex", flexDirection: "column", gap: 16 }, children: l.map((p, f) => /* @__PURE__ */ c(
|
|
4659
4699
|
"div",
|
|
4660
4700
|
{
|
|
4661
4701
|
style: {
|
|
@@ -4667,14 +4707,14 @@ function oi({
|
|
|
4667
4707
|
opacity: r >= 0.5 ? 1 : 0
|
|
4668
4708
|
},
|
|
4669
4709
|
children: [
|
|
4670
|
-
/* @__PURE__ */
|
|
4710
|
+
/* @__PURE__ */ c("div", { style: { display: "flex", justifyContent: "space-between", alignItems: "center", marginBottom: 6 }, children: [
|
|
4671
4711
|
/* @__PURE__ */ e("span", { style: { fontSize: 9, fontWeight: 600, color: p.color, letterSpacing: "0.08em", fontFamily: "'Courier New', monospace" }, children: p.label }),
|
|
4672
|
-
/* @__PURE__ */
|
|
4712
|
+
/* @__PURE__ */ c("span", { style: { fontSize: 8, color: p.color + "99", fontFamily: "'Courier New', monospace" }, children: [
|
|
4673
4713
|
Math.round(p.data[p.data.length - 1] ?? 0),
|
|
4674
4714
|
p.unit
|
|
4675
4715
|
] })
|
|
4676
4716
|
] }),
|
|
4677
|
-
/* @__PURE__ */ e(
|
|
4717
|
+
/* @__PURE__ */ e(ci, { data: p.data, color: p.color, height: 26 })
|
|
4678
4718
|
]
|
|
4679
4719
|
},
|
|
4680
4720
|
p.id
|
|
@@ -4683,43 +4723,43 @@ function oi({
|
|
|
4683
4723
|
}
|
|
4684
4724
|
);
|
|
4685
4725
|
}
|
|
4686
|
-
function
|
|
4726
|
+
function fi(t, n) {
|
|
4687
4727
|
if (t === "server") {
|
|
4688
4728
|
const o = n.cpuLoad ?? 50, i = n.memLoad ?? 60;
|
|
4689
4729
|
return [
|
|
4690
|
-
{ id: "cpu", label: "CPU-0", unit: "%", color: "#00e5ff", data:
|
|
4691
|
-
{ id: "cpu1", label: "CPU-1", unit: "%", color: "#00e5ff", data:
|
|
4692
|
-
{ id: "heap0", label: "HEAP-0", unit: "%", color: "#8855ee", data:
|
|
4693
|
-
{ id: "heap1", label: "HEAP-1", unit: "%", color: "#8855ee", data:
|
|
4694
|
-
{ id: "drive1", label: "DRIVE-1 I/O", unit: "%", color: "#ff8c00", data:
|
|
4695
|
-
{ id: "drive2", label: "DRIVE-2 I/O", unit: "%", color: "#ff8c00", data:
|
|
4696
|
-
{ id: "drive3", label: "DRIVE-3 I/O", unit: "%", color: "#ff8c00", data:
|
|
4697
|
-
{ id: "thread", label: "THREAD-POOL", unit: "%", color: "#22aaff", data:
|
|
4730
|
+
{ id: "cpu", label: "CPU-0", unit: "%", color: "#00e5ff", data: L(o, 15) },
|
|
4731
|
+
{ id: "cpu1", label: "CPU-1", unit: "%", color: "#00e5ff", data: L(o * 0.7, 12) },
|
|
4732
|
+
{ id: "heap0", label: "HEAP-0", unit: "%", color: "#8855ee", data: L(i, 18) },
|
|
4733
|
+
{ id: "heap1", label: "HEAP-1", unit: "%", color: "#8855ee", data: L(i * 0.85, 14) },
|
|
4734
|
+
{ id: "drive1", label: "DRIVE-1 I/O", unit: "%", color: "#ff8c00", data: L(40, 25) },
|
|
4735
|
+
{ id: "drive2", label: "DRIVE-2 I/O", unit: "%", color: "#ff8c00", data: L(35, 20) },
|
|
4736
|
+
{ id: "drive3", label: "DRIVE-3 I/O", unit: "%", color: "#ff8c00", data: L(30, 22) },
|
|
4737
|
+
{ id: "thread", label: "THREAD-POOL", unit: "%", color: "#22aaff", data: L(55, 20) }
|
|
4698
4738
|
];
|
|
4699
4739
|
}
|
|
4700
4740
|
if (t === "dispatcher" || t === "messageServer") {
|
|
4701
4741
|
const o = n.traffic ?? n.queueDepth ?? 50;
|
|
4702
4742
|
return [
|
|
4703
|
-
{ id: "traffic", label: "TRAFFIC", unit: "%", color: "#00e5ff", data:
|
|
4704
|
-
{ id: "port1", label: "PORT-1", unit: "kbps", color: "#22aaff", data:
|
|
4705
|
-
{ id: "port2", label: "PORT-2", unit: "kbps", color: "#22aaff", data:
|
|
4706
|
-
{ id: "port3", label: "PORT-3", unit: "kbps", color: "#22aaff", data:
|
|
4707
|
-
{ id: "worker", label: "WORKER", unit: "%", color: "#bb55ff", data:
|
|
4743
|
+
{ id: "traffic", label: "TRAFFIC", unit: "%", color: "#00e5ff", data: L(o, 20) },
|
|
4744
|
+
{ id: "port1", label: "PORT-1", unit: "kbps", color: "#22aaff", data: L(60, 25) },
|
|
4745
|
+
{ id: "port2", label: "PORT-2", unit: "kbps", color: "#22aaff", data: L(45, 20) },
|
|
4746
|
+
{ id: "port3", label: "PORT-3", unit: "kbps", color: "#22aaff", data: L(70, 30) },
|
|
4747
|
+
{ id: "worker", label: "WORKER", unit: "%", color: "#bb55ff", data: L(o * 0.9, 15) }
|
|
4708
4748
|
];
|
|
4709
4749
|
}
|
|
4710
4750
|
if (t === "database") {
|
|
4711
4751
|
const o = n.capacity ?? 70;
|
|
4712
4752
|
return [
|
|
4713
|
-
{ id: "platter0", label: "PLATTER-0 I/O", unit: "%", color: "#ff8c00", data:
|
|
4714
|
-
{ id: "platter1", label: "PLATTER-1 I/O", unit: "%", color: "#ff8c00", data:
|
|
4715
|
-
{ id: "platter2", label: "PLATTER-2 I/O", unit: "%", color: "#ff8c00", data:
|
|
4716
|
-
{ id: "connpool", label: "CONN-POOL", unit: "%", color: "#00e5ff", data:
|
|
4717
|
-
{ id: "cache", label: "QUERY-CACHE", unit: "%", color: "#00ff88", data:
|
|
4753
|
+
{ id: "platter0", label: "PLATTER-0 I/O", unit: "%", color: "#ff8c00", data: L(40, 20) },
|
|
4754
|
+
{ id: "platter1", label: "PLATTER-1 I/O", unit: "%", color: "#ff8c00", data: L(55, 25) },
|
|
4755
|
+
{ id: "platter2", label: "PLATTER-2 I/O", unit: "%", color: "#ff8c00", data: L(35, 18) },
|
|
4756
|
+
{ id: "connpool", label: "CONN-POOL", unit: "%", color: "#00e5ff", data: L(o, 15) },
|
|
4757
|
+
{ id: "cache", label: "QUERY-CACHE", unit: "%", color: "#00ff88", data: L(75, 12) }
|
|
4718
4758
|
];
|
|
4719
4759
|
}
|
|
4720
4760
|
return [];
|
|
4721
4761
|
}
|
|
4722
|
-
function
|
|
4762
|
+
function Nt({
|
|
4723
4763
|
w: t,
|
|
4724
4764
|
h: n,
|
|
4725
4765
|
color: o,
|
|
@@ -4728,14 +4768,14 @@ function St({
|
|
|
4728
4768
|
delay: a = "0s",
|
|
4729
4769
|
children: s
|
|
4730
4770
|
}) {
|
|
4731
|
-
const l = r ?
|
|
4732
|
-
return /* @__PURE__ */
|
|
4771
|
+
const l = r ? $[r]?.glow ?? "rgba(0,229,255,0.4)" : "rgba(0,229,255,0.4)";
|
|
4772
|
+
return /* @__PURE__ */ c(
|
|
4733
4773
|
"div",
|
|
4734
4774
|
{
|
|
4735
4775
|
style: {
|
|
4736
4776
|
width: t,
|
|
4737
4777
|
height: n,
|
|
4738
|
-
background:
|
|
4778
|
+
background: ze,
|
|
4739
4779
|
position: "relative",
|
|
4740
4780
|
overflow: "hidden",
|
|
4741
4781
|
borderRadius: 2,
|
|
@@ -4769,8 +4809,8 @@ function St({
|
|
|
4769
4809
|
width: 4,
|
|
4770
4810
|
height: 4,
|
|
4771
4811
|
borderRadius: "50%",
|
|
4772
|
-
background:
|
|
4773
|
-
boxShadow: `0 0 6px ${
|
|
4812
|
+
background: $[r]?.color,
|
|
4813
|
+
boxShadow: `0 0 6px ${$[r]?.color}`,
|
|
4774
4814
|
animation: "holo-led-blink 1.2s infinite"
|
|
4775
4815
|
}
|
|
4776
4816
|
}
|
|
@@ -4812,20 +4852,20 @@ function St({
|
|
|
4812
4852
|
}
|
|
4813
4853
|
);
|
|
4814
4854
|
}
|
|
4815
|
-
function
|
|
4855
|
+
function Ke({
|
|
4816
4856
|
color: t = "#00e5ff",
|
|
4817
4857
|
label: n = "CPU-0",
|
|
4818
4858
|
status: o = "online",
|
|
4819
4859
|
load: i = 0
|
|
4820
4860
|
}) {
|
|
4821
|
-
return /* @__PURE__ */
|
|
4822
|
-
/* @__PURE__ */
|
|
4861
|
+
return /* @__PURE__ */ c("div", { style: { position: "relative", width: 52, height: 36 }, children: [
|
|
4862
|
+
/* @__PURE__ */ c(
|
|
4823
4863
|
"div",
|
|
4824
4864
|
{
|
|
4825
4865
|
style: {
|
|
4826
4866
|
width: 52,
|
|
4827
4867
|
height: 36,
|
|
4828
|
-
background:
|
|
4868
|
+
background: ze,
|
|
4829
4869
|
position: "relative",
|
|
4830
4870
|
borderRadius: 2,
|
|
4831
4871
|
border: `1px solid ${t}55`,
|
|
@@ -4896,8 +4936,8 @@ function ze({
|
|
|
4896
4936
|
width: 4,
|
|
4897
4937
|
height: 4,
|
|
4898
4938
|
borderRadius: "50%",
|
|
4899
|
-
background:
|
|
4900
|
-
boxShadow: `0 0 6px ${
|
|
4939
|
+
background: $[o]?.color,
|
|
4940
|
+
boxShadow: `0 0 6px ${$[o]?.color}`,
|
|
4901
4941
|
animation: "holo-led-blink 1.2s infinite"
|
|
4902
4942
|
}
|
|
4903
4943
|
}
|
|
@@ -4923,14 +4963,14 @@ function ze({
|
|
|
4923
4963
|
)
|
|
4924
4964
|
] });
|
|
4925
4965
|
}
|
|
4926
|
-
function
|
|
4966
|
+
function Ze({
|
|
4927
4967
|
color: t = "#00e5ff",
|
|
4928
4968
|
label: n = "HEAP-0",
|
|
4929
4969
|
status: o = "online",
|
|
4930
4970
|
usedPercent: i = 0
|
|
4931
4971
|
}) {
|
|
4932
|
-
return /* @__PURE__ */
|
|
4933
|
-
/* @__PURE__ */
|
|
4972
|
+
return /* @__PURE__ */ c("div", { style: { position: "relative", width: 28, height: 48 }, children: [
|
|
4973
|
+
/* @__PURE__ */ c(
|
|
4934
4974
|
"div",
|
|
4935
4975
|
{
|
|
4936
4976
|
style: {
|
|
@@ -4994,7 +5034,7 @@ function Be({
|
|
|
4994
5034
|
width: 3,
|
|
4995
5035
|
height: 3,
|
|
4996
5036
|
borderRadius: "50%",
|
|
4997
|
-
background:
|
|
5037
|
+
background: $[o]?.color,
|
|
4998
5038
|
animation: "holo-led-blink 1.2s infinite"
|
|
4999
5039
|
}
|
|
5000
5040
|
}
|
|
@@ -5020,13 +5060,13 @@ function Be({
|
|
|
5020
5060
|
)
|
|
5021
5061
|
] });
|
|
5022
5062
|
}
|
|
5023
|
-
function
|
|
5063
|
+
function De({
|
|
5024
5064
|
color: t = "#00e5ff",
|
|
5025
5065
|
label: n = "DRIVE-1",
|
|
5026
5066
|
status: o = "online",
|
|
5027
5067
|
activity: i = !1
|
|
5028
5068
|
}) {
|
|
5029
|
-
return /* @__PURE__ */
|
|
5069
|
+
return /* @__PURE__ */ c(Nt, { w: 56, h: 22, color: t, label: n, status: o, children: [
|
|
5030
5070
|
/* @__PURE__ */ e(
|
|
5031
5071
|
"div",
|
|
5032
5072
|
{
|
|
@@ -5059,18 +5099,18 @@ function Re({
|
|
|
5059
5099
|
)
|
|
5060
5100
|
] });
|
|
5061
5101
|
}
|
|
5062
|
-
function
|
|
5102
|
+
function Wt({
|
|
5063
5103
|
color: t = "#00e5ff",
|
|
5064
5104
|
label: n = "NET",
|
|
5065
5105
|
status: o = "online"
|
|
5066
5106
|
}) {
|
|
5067
|
-
return /* @__PURE__ */
|
|
5107
|
+
return /* @__PURE__ */ c(
|
|
5068
5108
|
"div",
|
|
5069
5109
|
{
|
|
5070
5110
|
style: {
|
|
5071
5111
|
width: 48,
|
|
5072
5112
|
height: 28,
|
|
5073
|
-
background:
|
|
5113
|
+
background: ze,
|
|
5074
5114
|
position: "relative",
|
|
5075
5115
|
borderRadius: 2,
|
|
5076
5116
|
border: `1px solid ${t}44`,
|
|
@@ -5128,16 +5168,16 @@ function M({
|
|
|
5128
5168
|
label: n = "THREAD",
|
|
5129
5169
|
status: o = "online"
|
|
5130
5170
|
}) {
|
|
5131
|
-
return /* @__PURE__ */ e(
|
|
5171
|
+
return /* @__PURE__ */ e(Nt, { w: 44, h: 28, color: t, label: n, status: o });
|
|
5132
5172
|
}
|
|
5133
|
-
function
|
|
5173
|
+
function Qe({
|
|
5134
5174
|
color: t = "#ff8c00",
|
|
5135
5175
|
label: n = "PLATTER-0",
|
|
5136
5176
|
status: o = "online",
|
|
5137
5177
|
capacityPercent: i = 0
|
|
5138
5178
|
}) {
|
|
5139
|
-
return /* @__PURE__ */
|
|
5140
|
-
/* @__PURE__ */
|
|
5179
|
+
return /* @__PURE__ */ c("div", { style: { position: "relative", width: 48, height: 62 }, children: [
|
|
5180
|
+
/* @__PURE__ */ c(
|
|
5141
5181
|
"div",
|
|
5142
5182
|
{
|
|
5143
5183
|
style: {
|
|
@@ -5188,7 +5228,7 @@ function Me({
|
|
|
5188
5228
|
width: 4,
|
|
5189
5229
|
height: 4,
|
|
5190
5230
|
borderRadius: "50%",
|
|
5191
|
-
background:
|
|
5231
|
+
background: $[o]?.color,
|
|
5192
5232
|
animation: "holo-led-blink 1.2s infinite"
|
|
5193
5233
|
}
|
|
5194
5234
|
}
|
|
@@ -5214,12 +5254,12 @@ function Me({
|
|
|
5214
5254
|
)
|
|
5215
5255
|
] });
|
|
5216
5256
|
}
|
|
5217
|
-
function
|
|
5257
|
+
function Y({
|
|
5218
5258
|
color: t = "#00e5ff",
|
|
5219
5259
|
label: n = "PORT-1",
|
|
5220
5260
|
status: o = "online"
|
|
5221
5261
|
}) {
|
|
5222
|
-
return /* @__PURE__ */
|
|
5262
|
+
return /* @__PURE__ */ c(
|
|
5223
5263
|
"div",
|
|
5224
5264
|
{
|
|
5225
5265
|
style: {
|
|
@@ -5243,7 +5283,7 @@ function F({
|
|
|
5243
5283
|
width: 4,
|
|
5244
5284
|
height: 4,
|
|
5245
5285
|
borderRadius: "50%",
|
|
5246
|
-
background: o && o !== "online" ?
|
|
5286
|
+
background: o && o !== "online" ? $[o]?.color ?? t : t,
|
|
5247
5287
|
boxShadow: `0 0 4px ${t}`,
|
|
5248
5288
|
animation: o && o !== "online" && o !== "offline" ? "holo-led-blink 1s infinite" : "none"
|
|
5249
5289
|
}
|
|
@@ -5284,7 +5324,7 @@ function F({
|
|
|
5284
5324
|
}
|
|
5285
5325
|
);
|
|
5286
5326
|
}
|
|
5287
|
-
function
|
|
5327
|
+
function hi(t, n, o, i) {
|
|
5288
5328
|
const r = o === "online" ? "online" : o;
|
|
5289
5329
|
return t === "server" ? [
|
|
5290
5330
|
{
|
|
@@ -5388,8 +5428,8 @@ function ai(t, n, o, i) {
|
|
|
5388
5428
|
}
|
|
5389
5429
|
] : [];
|
|
5390
5430
|
}
|
|
5391
|
-
const D = "cubic-bezier(0.34, 1.56, 0.64, 1)",
|
|
5392
|
-
function
|
|
5431
|
+
const D = "cubic-bezier(0.34, 1.56, 0.64, 1)", ui = "cubic-bezier(0.16, 1, 0.3, 1)";
|
|
5432
|
+
function bi({ items: t, revealPhase: n }) {
|
|
5393
5433
|
return /* @__PURE__ */ e(
|
|
5394
5434
|
"div",
|
|
5395
5435
|
{
|
|
@@ -5416,21 +5456,21 @@ function si({ items: t, revealPhase: n }) {
|
|
|
5416
5456
|
}
|
|
5417
5457
|
);
|
|
5418
5458
|
}
|
|
5419
|
-
function
|
|
5459
|
+
function gi({
|
|
5420
5460
|
type: t,
|
|
5421
5461
|
status: n,
|
|
5422
5462
|
context: o,
|
|
5423
5463
|
internal: i,
|
|
5424
5464
|
revealPhase: r
|
|
5425
5465
|
}) {
|
|
5426
|
-
const a =
|
|
5466
|
+
const a = $[n]?.color ?? $.online.color, s = "#ff8c00";
|
|
5427
5467
|
if (t === "server") {
|
|
5428
|
-
const l = o.cpuLoad ?? 50, h = o.memLoad ?? 60,
|
|
5468
|
+
const l = o.cpuLoad ?? 50, h = o.memLoad ?? 60, d = [
|
|
5429
5469
|
{
|
|
5430
5470
|
key: "cpu0",
|
|
5431
5471
|
delay: 0,
|
|
5432
5472
|
el: /* @__PURE__ */ e(
|
|
5433
|
-
|
|
5473
|
+
Ke,
|
|
5434
5474
|
{
|
|
5435
5475
|
color: a,
|
|
5436
5476
|
label: "CPU-0",
|
|
@@ -5444,7 +5484,7 @@ function di({
|
|
|
5444
5484
|
key: "cpu1",
|
|
5445
5485
|
delay: 1,
|
|
5446
5486
|
el: /* @__PURE__ */ e(
|
|
5447
|
-
|
|
5487
|
+
Ke,
|
|
5448
5488
|
{
|
|
5449
5489
|
color: a,
|
|
5450
5490
|
label: "CPU-1",
|
|
@@ -5458,7 +5498,7 @@ function di({
|
|
|
5458
5498
|
key: "heap0",
|
|
5459
5499
|
delay: 2,
|
|
5460
5500
|
el: /* @__PURE__ */ e(
|
|
5461
|
-
|
|
5501
|
+
Ze,
|
|
5462
5502
|
{
|
|
5463
5503
|
color: "#8855ee",
|
|
5464
5504
|
label: "HEAP-0",
|
|
@@ -5472,7 +5512,7 @@ function di({
|
|
|
5472
5512
|
key: "heap1",
|
|
5473
5513
|
delay: 3,
|
|
5474
5514
|
el: /* @__PURE__ */ e(
|
|
5475
|
-
|
|
5515
|
+
Ze,
|
|
5476
5516
|
{
|
|
5477
5517
|
color: "#8855ee",
|
|
5478
5518
|
label: "HEAP-1",
|
|
@@ -5485,13 +5525,13 @@ function di({
|
|
|
5485
5525
|
{
|
|
5486
5526
|
key: "d1",
|
|
5487
5527
|
delay: 4,
|
|
5488
|
-
el: /* @__PURE__ */ e(
|
|
5528
|
+
el: /* @__PURE__ */ e(De, { color: a, label: "DRIVE-1", status: i[4]?.status, activity: !0 })
|
|
5489
5529
|
},
|
|
5490
5530
|
{
|
|
5491
5531
|
key: "d2",
|
|
5492
5532
|
delay: 5,
|
|
5493
5533
|
el: /* @__PURE__ */ e(
|
|
5494
|
-
|
|
5534
|
+
De,
|
|
5495
5535
|
{
|
|
5496
5536
|
color: a,
|
|
5497
5537
|
label: "DRIVE-2",
|
|
@@ -5504,7 +5544,7 @@ function di({
|
|
|
5504
5544
|
key: "d3",
|
|
5505
5545
|
delay: 6,
|
|
5506
5546
|
el: /* @__PURE__ */ e(
|
|
5507
|
-
|
|
5547
|
+
De,
|
|
5508
5548
|
{
|
|
5509
5549
|
color: a,
|
|
5510
5550
|
label: "DRIVE-3",
|
|
@@ -5521,7 +5561,7 @@ function di({
|
|
|
5521
5561
|
{
|
|
5522
5562
|
key: "net",
|
|
5523
5563
|
delay: 8,
|
|
5524
|
-
el: /* @__PURE__ */ e(
|
|
5564
|
+
el: /* @__PURE__ */ e(Wt, { color: a, label: "NET", status: i[8]?.status })
|
|
5525
5565
|
}
|
|
5526
5566
|
];
|
|
5527
5567
|
return /* @__PURE__ */ e(
|
|
@@ -5535,7 +5575,7 @@ function di({
|
|
|
5535
5575
|
alignItems: "center",
|
|
5536
5576
|
padding: 24
|
|
5537
5577
|
},
|
|
5538
|
-
children:
|
|
5578
|
+
children: d.map(({ key: p, delay: f, el: g }) => /* @__PURE__ */ e(
|
|
5539
5579
|
"div",
|
|
5540
5580
|
{
|
|
5541
5581
|
style: {
|
|
@@ -5551,22 +5591,22 @@ function di({
|
|
|
5551
5591
|
);
|
|
5552
5592
|
}
|
|
5553
5593
|
if (t === "dispatcher") {
|
|
5554
|
-
const l = Array.from({ length: 8 }, (h,
|
|
5555
|
-
const p = i[
|
|
5594
|
+
const l = Array.from({ length: 8 }, (h, d) => {
|
|
5595
|
+
const p = i[d];
|
|
5556
5596
|
return /* @__PURE__ */ e(
|
|
5557
5597
|
"div",
|
|
5558
5598
|
{
|
|
5559
5599
|
style: {
|
|
5560
|
-
opacity: r >= 0.25 +
|
|
5561
|
-
transform: `scale(${r >= 0.25 +
|
|
5562
|
-
transition: `opacity 0.35s ${D} ${
|
|
5600
|
+
opacity: r >= 0.25 + d * 0.04 ? 1 : 0,
|
|
5601
|
+
transform: `scale(${r >= 0.25 + d * 0.04 ? 1 : 0.5})`,
|
|
5602
|
+
transition: `opacity 0.35s ${D} ${d * 0.04}s, transform 0.4s ${D} ${d * 0.04}s`
|
|
5563
5603
|
},
|
|
5564
|
-
children: /* @__PURE__ */ e(
|
|
5604
|
+
children: /* @__PURE__ */ e(Y, { color: a, label: `PORT-${d + 1}`, status: p?.status })
|
|
5565
5605
|
},
|
|
5566
|
-
`p${
|
|
5606
|
+
`p${d}`
|
|
5567
5607
|
);
|
|
5568
5608
|
});
|
|
5569
|
-
return /* @__PURE__ */
|
|
5609
|
+
return /* @__PURE__ */ c(
|
|
5570
5610
|
"div",
|
|
5571
5611
|
{
|
|
5572
5612
|
style: {
|
|
@@ -5578,7 +5618,7 @@ function di({
|
|
|
5578
5618
|
},
|
|
5579
5619
|
children: [
|
|
5580
5620
|
/* @__PURE__ */ e("div", { style: { display: "flex", gap: 10, flexWrap: "wrap", justifyContent: "center" }, children: l }),
|
|
5581
|
-
/* @__PURE__ */
|
|
5621
|
+
/* @__PURE__ */ c("div", { style: { display: "flex", gap: 16 }, children: [
|
|
5582
5622
|
/* @__PURE__ */ e(
|
|
5583
5623
|
"div",
|
|
5584
5624
|
{
|
|
@@ -5607,7 +5647,7 @@ function di({
|
|
|
5607
5647
|
);
|
|
5608
5648
|
}
|
|
5609
5649
|
if (t === "messageServer")
|
|
5610
|
-
return /* @__PURE__ */
|
|
5650
|
+
return /* @__PURE__ */ c(
|
|
5611
5651
|
"div",
|
|
5612
5652
|
{
|
|
5613
5653
|
style: {
|
|
@@ -5627,7 +5667,7 @@ function di({
|
|
|
5627
5667
|
transform: `scale(${r >= 0.25 + l * 0.1 ? 1 : 0.6})`,
|
|
5628
5668
|
transition: `all 0.4s ${D} ${l * 0.08}s`
|
|
5629
5669
|
},
|
|
5630
|
-
children: /* @__PURE__ */ e(
|
|
5670
|
+
children: /* @__PURE__ */ e(Y, { color: "#bb55ff", label: `INST-${l}`, status: i[l]?.status })
|
|
5631
5671
|
},
|
|
5632
5672
|
l
|
|
5633
5673
|
)),
|
|
@@ -5666,7 +5706,7 @@ function di({
|
|
|
5666
5706
|
);
|
|
5667
5707
|
if (t === "database") {
|
|
5668
5708
|
const l = o.capacity ?? 72;
|
|
5669
|
-
return /* @__PURE__ */
|
|
5709
|
+
return /* @__PURE__ */ c(
|
|
5670
5710
|
"div",
|
|
5671
5711
|
{
|
|
5672
5712
|
style: {
|
|
@@ -5687,7 +5727,7 @@ function di({
|
|
|
5687
5727
|
transition: `all 0.45s ${D} ${h * 0.1}s`
|
|
5688
5728
|
},
|
|
5689
5729
|
children: /* @__PURE__ */ e(
|
|
5690
|
-
|
|
5730
|
+
Qe,
|
|
5691
5731
|
{
|
|
5692
5732
|
color: s,
|
|
5693
5733
|
label: `PLATTER-${h}`,
|
|
@@ -5726,7 +5766,7 @@ function di({
|
|
|
5726
5766
|
}
|
|
5727
5767
|
return null;
|
|
5728
5768
|
}
|
|
5729
|
-
function
|
|
5769
|
+
function Ui({
|
|
5730
5770
|
type: t,
|
|
5731
5771
|
name: n,
|
|
5732
5772
|
status: o,
|
|
@@ -5736,8 +5776,8 @@ function Ni({
|
|
|
5736
5776
|
subComponents: s,
|
|
5737
5777
|
graphSeries: l
|
|
5738
5778
|
}) {
|
|
5739
|
-
const h =
|
|
5740
|
-
return /* @__PURE__ */
|
|
5779
|
+
const h = hi(t, n, o, a), d = $[o]?.color ?? $.online.color, p = r >= 0.1 ? 1 : r * 10, f = r >= 0.2 ? "-50%" : "0%", g = r >= 0.2 ? "50%" : "0%", u = r >= 0.25 ? Math.min(1, (r - 0.25) * 1.5) : 0;
|
|
5780
|
+
return /* @__PURE__ */ c(
|
|
5741
5781
|
"div",
|
|
5742
5782
|
{
|
|
5743
5783
|
style: {
|
|
@@ -5748,7 +5788,7 @@ function Ni({
|
|
|
5748
5788
|
flexDirection: "row",
|
|
5749
5789
|
pointerEvents: "auto"
|
|
5750
5790
|
},
|
|
5751
|
-
onClick: (
|
|
5791
|
+
onClick: (b) => b.stopPropagation(),
|
|
5752
5792
|
children: [
|
|
5753
5793
|
/* @__PURE__ */ e(
|
|
5754
5794
|
"div",
|
|
@@ -5760,13 +5800,13 @@ function Ni({
|
|
|
5760
5800
|
backdropFilter: "blur(10px)",
|
|
5761
5801
|
WebkitBackdropFilter: "blur(10px)",
|
|
5762
5802
|
opacity: p,
|
|
5763
|
-
transition: `opacity 0.4s ${
|
|
5803
|
+
transition: `opacity 0.4s ${ui}`
|
|
5764
5804
|
},
|
|
5765
5805
|
onClick: i
|
|
5766
5806
|
}
|
|
5767
5807
|
),
|
|
5768
5808
|
/* @__PURE__ */ e(
|
|
5769
|
-
|
|
5809
|
+
pi,
|
|
5770
5810
|
{
|
|
5771
5811
|
type: t,
|
|
5772
5812
|
name: n,
|
|
@@ -5776,7 +5816,7 @@ function Ni({
|
|
|
5776
5816
|
series: l
|
|
5777
5817
|
}
|
|
5778
5818
|
),
|
|
5779
|
-
/* @__PURE__ */
|
|
5819
|
+
/* @__PURE__ */ c(
|
|
5780
5820
|
"div",
|
|
5781
5821
|
{
|
|
5782
5822
|
style: {
|
|
@@ -5789,7 +5829,7 @@ function Ni({
|
|
|
5789
5829
|
minWidth: 0
|
|
5790
5830
|
},
|
|
5791
5831
|
children: [
|
|
5792
|
-
/* @__PURE__ */
|
|
5832
|
+
/* @__PURE__ */ c(
|
|
5793
5833
|
"div",
|
|
5794
5834
|
{
|
|
5795
5835
|
style: {
|
|
@@ -5807,7 +5847,7 @@ function Ni({
|
|
|
5807
5847
|
width: "50%",
|
|
5808
5848
|
height: "100%",
|
|
5809
5849
|
background: "linear-gradient(90deg, rgba(2, 8, 20, 0.98) 0%, rgba(2, 12, 28, 0.95) 100%)",
|
|
5810
|
-
borderRight: `2px solid ${
|
|
5850
|
+
borderRight: `2px solid ${d}44`,
|
|
5811
5851
|
boxShadow: "4px 0 32px rgba(0,0,0,0.6)",
|
|
5812
5852
|
transform: `translateX(${f})`,
|
|
5813
5853
|
transition: `transform 0.7s ${D}`
|
|
@@ -5822,7 +5862,7 @@ function Ni({
|
|
|
5822
5862
|
height: "100%",
|
|
5823
5863
|
marginLeft: "auto",
|
|
5824
5864
|
background: "linear-gradient(90deg, rgba(2, 12, 28, 0.95) 0%, rgba(2, 8, 20, 0.98) 100%)",
|
|
5825
|
-
borderLeft: `2px solid ${
|
|
5865
|
+
borderLeft: `2px solid ${d}44`,
|
|
5826
5866
|
boxShadow: "-4px 0 32px rgba(0,0,0,0.6)",
|
|
5827
5867
|
transform: `translateX(${g})`,
|
|
5828
5868
|
transition: `transform 0.7s ${D}`
|
|
@@ -5832,7 +5872,7 @@ function Ni({
|
|
|
5832
5872
|
]
|
|
5833
5873
|
}
|
|
5834
5874
|
),
|
|
5835
|
-
/* @__PURE__ */
|
|
5875
|
+
/* @__PURE__ */ c(
|
|
5836
5876
|
"div",
|
|
5837
5877
|
{
|
|
5838
5878
|
style: {
|
|
@@ -5842,29 +5882,29 @@ function Ni({
|
|
|
5842
5882
|
maxWidth: 520,
|
|
5843
5883
|
minHeight: 320,
|
|
5844
5884
|
background: "linear-gradient(180deg, rgba(4, 14, 28, 0.6) 0%, rgba(2, 8, 18, 0.85) 100%)",
|
|
5845
|
-
border: `1px solid ${
|
|
5885
|
+
border: `1px solid ${d}33`,
|
|
5846
5886
|
borderRadius: 12,
|
|
5847
|
-
boxShadow: `0 0 40px ${
|
|
5887
|
+
boxShadow: `0 0 40px ${d}18, inset 0 0 60px rgba(0,0,0,0.4)`,
|
|
5848
5888
|
display: "flex",
|
|
5849
5889
|
flexDirection: "column",
|
|
5850
5890
|
opacity: u >= 0.1 ? 1 : 0,
|
|
5851
5891
|
transition: `opacity 0.5s ${D} 0.2s`
|
|
5852
5892
|
},
|
|
5853
5893
|
children: [
|
|
5854
|
-
/* @__PURE__ */
|
|
5894
|
+
/* @__PURE__ */ c(
|
|
5855
5895
|
"div",
|
|
5856
5896
|
{
|
|
5857
5897
|
style: {
|
|
5858
5898
|
padding: "12px 20px",
|
|
5859
|
-
borderBottom: `1px solid ${
|
|
5899
|
+
borderBottom: `1px solid ${d}22`,
|
|
5860
5900
|
display: "flex",
|
|
5861
5901
|
alignItems: "center",
|
|
5862
5902
|
justifyContent: "space-between",
|
|
5863
|
-
background: `linear-gradient(180deg, ${
|
|
5903
|
+
background: `linear-gradient(180deg, ${d}11 0%, transparent 100%)`,
|
|
5864
5904
|
borderRadius: "12px 12px 0 0"
|
|
5865
5905
|
},
|
|
5866
5906
|
children: [
|
|
5867
|
-
/* @__PURE__ */
|
|
5907
|
+
/* @__PURE__ */ c("div", { style: { display: "flex", alignItems: "center", gap: 10 }, children: [
|
|
5868
5908
|
/* @__PURE__ */ e(
|
|
5869
5909
|
"div",
|
|
5870
5910
|
{
|
|
@@ -5872,13 +5912,13 @@ function Ni({
|
|
|
5872
5912
|
width: 8,
|
|
5873
5913
|
height: 8,
|
|
5874
5914
|
borderRadius: "50%",
|
|
5875
|
-
background:
|
|
5876
|
-
boxShadow: `0 0 10px ${
|
|
5915
|
+
background: d,
|
|
5916
|
+
boxShadow: `0 0 10px ${d}`,
|
|
5877
5917
|
animation: o === "warning" || o === "critical" ? "holo-led-blink 1.5s infinite" : "none"
|
|
5878
5918
|
}
|
|
5879
5919
|
}
|
|
5880
5920
|
),
|
|
5881
|
-
/* @__PURE__ */
|
|
5921
|
+
/* @__PURE__ */ c(
|
|
5882
5922
|
"span",
|
|
5883
5923
|
{
|
|
5884
5924
|
style: {
|
|
@@ -5903,9 +5943,9 @@ function Ni({
|
|
|
5903
5943
|
width: 32,
|
|
5904
5944
|
height: 32,
|
|
5905
5945
|
borderRadius: 6,
|
|
5906
|
-
border: `1px solid ${
|
|
5946
|
+
border: `1px solid ${d}44`,
|
|
5907
5947
|
background: "rgba(0,0,0,0.4)",
|
|
5908
|
-
color:
|
|
5948
|
+
color: d,
|
|
5909
5949
|
fontSize: 18,
|
|
5910
5950
|
cursor: "pointer",
|
|
5911
5951
|
display: "flex",
|
|
@@ -5929,15 +5969,15 @@ function Ni({
|
|
|
5929
5969
|
left: 0,
|
|
5930
5970
|
right: 0,
|
|
5931
5971
|
height: 1,
|
|
5932
|
-
background: `linear-gradient(90deg, transparent 5%, ${
|
|
5933
|
-
boxShadow: `0 0 8px ${
|
|
5972
|
+
background: `linear-gradient(90deg, transparent 5%, ${d}88 50%, transparent 95%)`,
|
|
5973
|
+
boxShadow: `0 0 8px ${d}`,
|
|
5934
5974
|
animation: "holo-scan 3s linear infinite",
|
|
5935
5975
|
pointerEvents: "none"
|
|
5936
5976
|
}
|
|
5937
5977
|
}
|
|
5938
5978
|
),
|
|
5939
|
-
/* @__PURE__ */ e("div", { style: { flex: 1, padding: "8px 0 24px" }, children: s ? /* @__PURE__ */ e(
|
|
5940
|
-
|
|
5979
|
+
/* @__PURE__ */ e("div", { style: { flex: 1, padding: "8px 0 24px" }, children: s ? /* @__PURE__ */ e(bi, { items: s, revealPhase: u }) : /* @__PURE__ */ e(
|
|
5980
|
+
gi,
|
|
5941
5981
|
{
|
|
5942
5982
|
type: t,
|
|
5943
5983
|
name: n,
|
|
@@ -5957,17 +5997,17 @@ function Ni({
|
|
|
5957
5997
|
}
|
|
5958
5998
|
);
|
|
5959
5999
|
}
|
|
5960
|
-
function
|
|
5961
|
-
const [n, o] = R(""), [i, r] = R(""), [a, s] = R(null), [l, h] = R(!1),
|
|
5962
|
-
return /* @__PURE__ */ e("div", { className: "cred-overlay", children: /* @__PURE__ */
|
|
5963
|
-
f.preventDefault(),
|
|
6000
|
+
function yi({ onSubmit: t }) {
|
|
6001
|
+
const [n, o] = R(""), [i, r] = R(""), [a, s] = R(null), [l, h] = R(!1), d = n.trim().length > 0 && i.trim().length > 0;
|
|
6002
|
+
return /* @__PURE__ */ e("div", { className: "cred-overlay", children: /* @__PURE__ */ c("form", { className: "cred-panel", onSubmit: (f) => {
|
|
6003
|
+
f.preventDefault(), d && t({ accessKey: n.trim(), secretKey: i.trim() });
|
|
5964
6004
|
}, onClick: (f) => f.stopPropagation(), children: [
|
|
5965
6005
|
/* @__PURE__ */ e("div", { className: "cred-scanline" }),
|
|
5966
6006
|
/* @__PURE__ */ e("span", { className: "cred-corner cred-corner--tl" }),
|
|
5967
6007
|
/* @__PURE__ */ e("span", { className: "cred-corner cred-corner--tr" }),
|
|
5968
6008
|
/* @__PURE__ */ e("span", { className: "cred-corner cred-corner--bl" }),
|
|
5969
6009
|
/* @__PURE__ */ e("span", { className: "cred-corner cred-corner--br" }),
|
|
5970
|
-
/* @__PURE__ */ e("div", { className: "cred-icon", children: /* @__PURE__ */
|
|
6010
|
+
/* @__PURE__ */ e("div", { className: "cred-icon", children: /* @__PURE__ */ c(
|
|
5971
6011
|
"svg",
|
|
5972
6012
|
{
|
|
5973
6013
|
width: "32",
|
|
@@ -5984,7 +6024,7 @@ function ci({ onSubmit: t }) {
|
|
|
5984
6024
|
) }),
|
|
5985
6025
|
/* @__PURE__ */ e("div", { className: "cred-title", children: "DATA SOURCE ACCESS" }),
|
|
5986
6026
|
/* @__PURE__ */ e("div", { className: "cred-subtitle", children: "AUTHENTICATION REQUIRED" }),
|
|
5987
|
-
/* @__PURE__ */
|
|
6027
|
+
/* @__PURE__ */ c("div", { className: "cred-field", children: [
|
|
5988
6028
|
/* @__PURE__ */ e("label", { className: "cred-label", children: "ACCESS KEY" }),
|
|
5989
6029
|
/* @__PURE__ */ e(
|
|
5990
6030
|
"input",
|
|
@@ -6004,7 +6044,7 @@ function ci({ onSubmit: t }) {
|
|
|
6004
6044
|
}
|
|
6005
6045
|
)
|
|
6006
6046
|
] }),
|
|
6007
|
-
/* @__PURE__ */
|
|
6047
|
+
/* @__PURE__ */ c("div", { className: "cred-field", children: [
|
|
6008
6048
|
/* @__PURE__ */ e("label", { className: "cred-label", children: "SECRET KEY" }),
|
|
6009
6049
|
/* @__PURE__ */ e(
|
|
6010
6050
|
"input",
|
|
@@ -6023,18 +6063,18 @@ function ci({ onSubmit: t }) {
|
|
|
6023
6063
|
}
|
|
6024
6064
|
)
|
|
6025
6065
|
] }),
|
|
6026
|
-
/* @__PURE__ */
|
|
6066
|
+
/* @__PURE__ */ c(
|
|
6027
6067
|
"button",
|
|
6028
6068
|
{
|
|
6029
6069
|
className: "cred-btn",
|
|
6030
6070
|
type: "submit",
|
|
6031
|
-
disabled: !
|
|
6071
|
+
disabled: !d,
|
|
6032
6072
|
onMouseEnter: () => h(!0),
|
|
6033
6073
|
onMouseLeave: () => h(!1),
|
|
6034
6074
|
style: {
|
|
6035
|
-
opacity:
|
|
6036
|
-
cursor:
|
|
6037
|
-
...l &&
|
|
6075
|
+
opacity: d ? 1 : 0.35,
|
|
6076
|
+
cursor: d ? "pointer" : "not-allowed",
|
|
6077
|
+
...l && d ? {
|
|
6038
6078
|
background: "rgba(0,229,255,0.12)",
|
|
6039
6079
|
boxShadow: "0 0 20px rgba(0,229,255,0.3), inset 0 0 12px rgba(0,229,255,0.08)"
|
|
6040
6080
|
} : {}
|
|
@@ -6048,28 +6088,28 @@ function ci({ onSubmit: t }) {
|
|
|
6048
6088
|
/* @__PURE__ */ e("div", { className: "cred-footer", children: "CREDENTIALS ARE STORED IN MEMORY ONLY" })
|
|
6049
6089
|
] }) });
|
|
6050
6090
|
}
|
|
6051
|
-
const
|
|
6052
|
-
function
|
|
6053
|
-
const t =
|
|
6091
|
+
const xt = tt(null);
|
|
6092
|
+
function mi() {
|
|
6093
|
+
const t = ge(xt);
|
|
6054
6094
|
if (!t)
|
|
6055
6095
|
throw new Error("useAIOpsData must be used within an AIOPsDashboard with dataEndpoint configured");
|
|
6056
6096
|
return t;
|
|
6057
6097
|
}
|
|
6058
|
-
function
|
|
6059
|
-
return
|
|
6098
|
+
function xi() {
|
|
6099
|
+
return ge(xt);
|
|
6060
6100
|
}
|
|
6061
|
-
function
|
|
6062
|
-
const { data: n } =
|
|
6101
|
+
function Yi(t) {
|
|
6102
|
+
const { data: n } = mi();
|
|
6063
6103
|
return n[t] ?? null;
|
|
6064
6104
|
}
|
|
6065
|
-
function
|
|
6105
|
+
function vi(t) {
|
|
6066
6106
|
const n = /* @__PURE__ */ new Set();
|
|
6067
6107
|
for (const o of Object.values(t))
|
|
6068
6108
|
for (const i of Object.values(o))
|
|
6069
6109
|
n.add(typeof i == "string" ? i : i.query);
|
|
6070
6110
|
return Array.from(n);
|
|
6071
6111
|
}
|
|
6072
|
-
function
|
|
6112
|
+
function wi(t) {
|
|
6073
6113
|
if (typeof t == "number") return t;
|
|
6074
6114
|
if (typeof t == "string") {
|
|
6075
6115
|
const n = Number(t);
|
|
@@ -6077,56 +6117,56 @@ function ui(t) {
|
|
|
6077
6117
|
}
|
|
6078
6118
|
return t;
|
|
6079
6119
|
}
|
|
6080
|
-
function
|
|
6081
|
-
const [o, i] = R({}), [r, a] = R(null), [s, l] = R(!1), [h,
|
|
6120
|
+
function Si({ config: t, children: n }) {
|
|
6121
|
+
const [o, i] = R({}), [r, a] = R(null), [s, l] = R(!1), [h, d] = R(null), [p, f] = R(null), g = ie(t);
|
|
6082
6122
|
g.current = t;
|
|
6083
|
-
const u =
|
|
6123
|
+
const u = ie(r);
|
|
6084
6124
|
u.current = r;
|
|
6085
|
-
const
|
|
6086
|
-
const
|
|
6087
|
-
if (
|
|
6125
|
+
const b = Ge(async () => {
|
|
6126
|
+
const v = u.current, S = g.current;
|
|
6127
|
+
if (v) {
|
|
6088
6128
|
l(!0);
|
|
6089
6129
|
try {
|
|
6090
|
-
const
|
|
6091
|
-
|
|
6092
|
-
const
|
|
6093
|
-
return fetch(
|
|
6130
|
+
const y = await Promise.allSettled(
|
|
6131
|
+
S.queries.map((P) => {
|
|
6132
|
+
const O = S.endpoint.includes("?") ? "&" : "?", I = `${S.endpoint}${O}query=${encodeURIComponent(P)}`;
|
|
6133
|
+
return fetch(I, {
|
|
6094
6134
|
method: "GET",
|
|
6095
6135
|
headers: {
|
|
6096
|
-
"access-key":
|
|
6097
|
-
"access-secret-key":
|
|
6136
|
+
"access-key": v.accessKey,
|
|
6137
|
+
"access-secret-key": v.secretKey
|
|
6098
6138
|
}
|
|
6099
6139
|
}).then((z) => {
|
|
6100
6140
|
if (!z.ok) throw new Error(`HTTP ${z.status}`);
|
|
6101
6141
|
return z.text();
|
|
6102
|
-
}).then((z) => ({ query:
|
|
6142
|
+
}).then((z) => ({ query: P, data: z.trim() }));
|
|
6103
6143
|
})
|
|
6104
|
-
),
|
|
6105
|
-
let
|
|
6106
|
-
for (const
|
|
6107
|
-
|
|
6108
|
-
i((
|
|
6109
|
-
const
|
|
6110
|
-
|
|
6111
|
-
|
|
6112
|
-
),
|
|
6113
|
-
} catch (
|
|
6114
|
-
const
|
|
6115
|
-
|
|
6144
|
+
), x = {};
|
|
6145
|
+
let C = 0;
|
|
6146
|
+
for (const P of y)
|
|
6147
|
+
P.status === "fulfilled" ? x[P.value.query] = P.value.data : C++;
|
|
6148
|
+
i((P) => ({ ...P, ...x }));
|
|
6149
|
+
const k = S.queries.length;
|
|
6150
|
+
d(
|
|
6151
|
+
C > 0 ? `${C} of ${k} queries failed to refresh` : null
|
|
6152
|
+
), C < k && f(/* @__PURE__ */ new Date());
|
|
6153
|
+
} catch (y) {
|
|
6154
|
+
const x = y instanceof Error ? y.message : "Refresh failed";
|
|
6155
|
+
d(x);
|
|
6116
6156
|
} finally {
|
|
6117
6157
|
l(!1);
|
|
6118
6158
|
}
|
|
6119
6159
|
}
|
|
6120
6160
|
}, []);
|
|
6121
|
-
|
|
6161
|
+
ke(() => {
|
|
6122
6162
|
if (!r) return;
|
|
6123
|
-
|
|
6124
|
-
const
|
|
6125
|
-
return () => clearInterval(
|
|
6126
|
-
}, [r,
|
|
6127
|
-
const m =
|
|
6128
|
-
a(
|
|
6129
|
-
}, []),
|
|
6163
|
+
b();
|
|
6164
|
+
const v = g.current.refreshInterval ?? 6e4, S = window.setInterval(b, v);
|
|
6165
|
+
return () => clearInterval(S);
|
|
6166
|
+
}, [r, b]);
|
|
6167
|
+
const m = Ge((v) => {
|
|
6168
|
+
a(v);
|
|
6169
|
+
}, []), w = {
|
|
6130
6170
|
data: o,
|
|
6131
6171
|
isRefreshing: s,
|
|
6132
6172
|
lastRefreshError: h,
|
|
@@ -6134,30 +6174,30 @@ function bi({ config: t, children: n }) {
|
|
|
6134
6174
|
credentialsSet: !!r,
|
|
6135
6175
|
setCredentials: m
|
|
6136
6176
|
};
|
|
6137
|
-
return /* @__PURE__ */
|
|
6177
|
+
return /* @__PURE__ */ c(xt.Provider, { value: w, children: [
|
|
6138
6178
|
n,
|
|
6139
|
-
!r && /* @__PURE__ */ e(
|
|
6179
|
+
!r && /* @__PURE__ */ e(yi, { onSubmit: m })
|
|
6140
6180
|
] });
|
|
6141
6181
|
}
|
|
6142
|
-
function
|
|
6182
|
+
function Vi(t) {
|
|
6143
6183
|
const { dataEndpoint: n, dataBindings: o, dataRefreshInterval: i } = t;
|
|
6144
6184
|
if (n && o) {
|
|
6145
|
-
const r =
|
|
6185
|
+
const r = vi(o);
|
|
6146
6186
|
return /* @__PURE__ */ e(
|
|
6147
|
-
|
|
6187
|
+
Si,
|
|
6148
6188
|
{
|
|
6149
6189
|
config: {
|
|
6150
6190
|
endpoint: n,
|
|
6151
6191
|
queries: r,
|
|
6152
6192
|
refreshInterval: i
|
|
6153
6193
|
},
|
|
6154
|
-
children: /* @__PURE__ */ e(
|
|
6194
|
+
children: /* @__PURE__ */ e(At, { ...t })
|
|
6155
6195
|
}
|
|
6156
6196
|
);
|
|
6157
6197
|
}
|
|
6158
|
-
return /* @__PURE__ */ e(
|
|
6198
|
+
return /* @__PURE__ */ e(At, { ...t });
|
|
6159
6199
|
}
|
|
6160
|
-
function
|
|
6200
|
+
function At({
|
|
6161
6201
|
brandName: t = "BUSAUD AIOps",
|
|
6162
6202
|
brandTag: n = "3D MONITOR",
|
|
6163
6203
|
services: o = [],
|
|
@@ -6167,41 +6207,75 @@ function gt({
|
|
|
6167
6207
|
fontFamily: s,
|
|
6168
6208
|
dataBindings: l,
|
|
6169
6209
|
dataTransform: h,
|
|
6170
|
-
children:
|
|
6210
|
+
children: d
|
|
6171
6211
|
}) {
|
|
6172
|
-
const p =
|
|
6173
|
-
|
|
6174
|
-
|
|
6212
|
+
const p = xi(), [f] = R(20), [g] = R(!1), [u] = R(!0), [b] = R(0.45), [m] = R(3.3), [w, v] = R("compact"), [S, y] = R(0), [x, C] = R(null), [k, P] = R(null), [O, I] = R(0), z = (T) => {
|
|
6213
|
+
w === "compact" && (C(T), v("expanding"), y(0), setTimeout(() => y(1), 50), setTimeout(() => y(2), 800), setTimeout(() => y(3), 1200), setTimeout(() => y(4), 1600), setTimeout(() => y(5), 2e3), setTimeout(() => {
|
|
6214
|
+
y(6), v("expanded");
|
|
6175
6215
|
}, 2400));
|
|
6176
|
-
},
|
|
6177
|
-
|
|
6178
|
-
|
|
6216
|
+
}, K = () => {
|
|
6217
|
+
k ? (P(null), I(0)) : w === "expanded" && (v("collapsing"), y(0), C(null), setTimeout(() => {
|
|
6218
|
+
v((T) => T === "collapsing" ? "compact" : T);
|
|
6179
6219
|
}, 1e3));
|
|
6180
|
-
},
|
|
6181
|
-
|
|
6182
|
-
}
|
|
6183
|
-
|
|
6184
|
-
|
|
6185
|
-
|
|
6186
|
-
|
|
6187
|
-
|
|
6188
|
-
|
|
6189
|
-
|
|
6190
|
-
|
|
6191
|
-
|
|
6192
|
-
|
|
6193
|
-
|
|
6194
|
-
|
|
6195
|
-
|
|
6196
|
-
|
|
6197
|
-
|
|
6198
|
-
|
|
6199
|
-
|
|
6200
|
-
|
|
6201
|
-
|
|
6202
|
-
|
|
6203
|
-
|
|
6204
|
-
|
|
6220
|
+
}, Z = Ge((T) => {
|
|
6221
|
+
P(T), I(0);
|
|
6222
|
+
}, []), ye = Ge((T) => {
|
|
6223
|
+
P(T);
|
|
6224
|
+
}, []);
|
|
6225
|
+
q.useEffect(() => {
|
|
6226
|
+
if (!k) return;
|
|
6227
|
+
const T = performance.now(), j = 1200, re = () => {
|
|
6228
|
+
const V = performance.now() - T, ae = Math.min(1, V / j);
|
|
6229
|
+
I(ae), ae < 1 && requestAnimationFrame(re);
|
|
6230
|
+
}, ee = requestAnimationFrame(re);
|
|
6231
|
+
return () => cancelAnimationFrame(ee);
|
|
6232
|
+
}, [k]);
|
|
6233
|
+
const me = () => {
|
|
6234
|
+
P(null), I(0);
|
|
6235
|
+
}, N = h ?? wi, U = p?.data, { enhancedChildren: ne, liveAlerts: Be } = Tt(() => {
|
|
6236
|
+
const T = {};
|
|
6237
|
+
if (!U || !l) return { enhancedChildren: d, liveAlerts: T };
|
|
6238
|
+
const j = {};
|
|
6239
|
+
return { enhancedChildren: q.Children.map(d, (ee) => {
|
|
6240
|
+
if (!q.isValidElement(ee)) return ee;
|
|
6241
|
+
const V = ee.props.name;
|
|
6242
|
+
if (!V || !l[V]) return ee;
|
|
6243
|
+
const ae = l[V], ve = {}, le = {};
|
|
6244
|
+
for (const [pe, F] of Object.entries(ae)) {
|
|
6245
|
+
const rt = typeof F == "string" ? F : F.query, at = typeof F == "object" && F.transform ? F.transform : N, Ye = U[rt];
|
|
6246
|
+
if (Ye === void 0) continue;
|
|
6247
|
+
const we = at(Ye);
|
|
6248
|
+
if (ve[pe] = we, typeof F == "object" && F.alert && typeof we == "number") {
|
|
6249
|
+
const { prop: H, warnAt: Ve = 70, critAt: St = 85, label: Ft } = F.alert, _e = Ft ?? pe, je = Math.round(we);
|
|
6250
|
+
if (we >= St) {
|
|
6251
|
+
const He = le[H];
|
|
6252
|
+
(!He || He.severity < 2) && (le[H] = {
|
|
6253
|
+
msg: `${_e} critical — ${je}%`,
|
|
6254
|
+
internalRef: pe,
|
|
6255
|
+
severity: 2
|
|
6256
|
+
}), j[V] || (j[V] = []), j[V].push({
|
|
6257
|
+
level: "critical",
|
|
6258
|
+
message: `${_e} at ${je}% — exceeds critical threshold (${St}%)`
|
|
6259
|
+
});
|
|
6260
|
+
} else if (we >= Ve) {
|
|
6261
|
+
const He = le[H];
|
|
6262
|
+
(!He || He.severity < 1) && (le[H] = {
|
|
6263
|
+
msg: `${_e} elevated — ${je}%`,
|
|
6264
|
+
internalRef: pe,
|
|
6265
|
+
severity: 1
|
|
6266
|
+
}), j[V] || (j[V] = []), j[V].push({
|
|
6267
|
+
level: "warning",
|
|
6268
|
+
message: `${_e} at ${je}% — exceeds warning threshold (${Ve}%)`
|
|
6269
|
+
});
|
|
6270
|
+
}
|
|
6271
|
+
}
|
|
6272
|
+
}
|
|
6273
|
+
for (const [pe, F] of Object.entries(le))
|
|
6274
|
+
ve[pe] = { msg: F.msg, internalRef: F.internalRef };
|
|
6275
|
+
return Object.keys(ve).length > 0 ? q.cloneElement(ee, ve) : ee;
|
|
6276
|
+
}), liveAlerts: j };
|
|
6277
|
+
}, [d, U, l, N]), oe = o.find((T) => T.name === x), Fe = oe?.status ?? "online", J = oe?.dbSync ?? !0, B = oe?.metrics, _ = Be[x ?? ""] ?? [], se = oe?.alerts ?? [], de = _.length > 0 ? [..._, ...se.filter((T) => T.level !== "info")] : se, Ce = p?.lastRefreshError ?? null, it = 330, nt = 340, xe = k ? 1.15 : 1, ce = k ? -(k.ex - it) * 0.06 : 0, ot = k ? -(k.ey - nt) * 0.06 : 0;
|
|
6278
|
+
return /* @__PURE__ */ c("div", { className: "app", style: s ? { fontFamily: s } : void 0, children: [
|
|
6205
6279
|
/* @__PURE__ */ e(
|
|
6206
6280
|
"div",
|
|
6207
6281
|
{
|
|
@@ -6215,18 +6289,18 @@ function gt({
|
|
|
6215
6289
|
backgroundPosition: "center center",
|
|
6216
6290
|
backgroundRepeat: "no-repeat",
|
|
6217
6291
|
transition: "transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1)",
|
|
6218
|
-
transform: `translate(${
|
|
6292
|
+
transform: `translate(${ce}px, ${ot}px) scale(${xe})`,
|
|
6219
6293
|
willChange: "transform"
|
|
6220
6294
|
}
|
|
6221
6295
|
}
|
|
6222
6296
|
),
|
|
6223
|
-
/* @__PURE__ */
|
|
6224
|
-
/* @__PURE__ */
|
|
6297
|
+
/* @__PURE__ */ c("header", { className: "app-header", children: [
|
|
6298
|
+
/* @__PURE__ */ c("div", { className: "hdr-brand", children: [
|
|
6225
6299
|
/* @__PURE__ */ e("span", { className: "brand-pulse" }),
|
|
6226
6300
|
/* @__PURE__ */ e("span", { className: "brand-text", children: t })
|
|
6227
6301
|
] }),
|
|
6228
|
-
/* @__PURE__ */
|
|
6229
|
-
|
|
6302
|
+
/* @__PURE__ */ c("div", { className: "hdr-right", children: [
|
|
6303
|
+
Ce && /* @__PURE__ */ c("div", { className: "hdr-refresh-error", children: [
|
|
6230
6304
|
/* @__PURE__ */ e("span", { className: "refresh-error-dot" }),
|
|
6231
6305
|
/* @__PURE__ */ e("span", { className: "refresh-error-text", children: "DATA REFRESH FAILED" })
|
|
6232
6306
|
] }),
|
|
@@ -6238,33 +6312,34 @@ function gt({
|
|
|
6238
6312
|
{
|
|
6239
6313
|
className: "scene",
|
|
6240
6314
|
style: {
|
|
6241
|
-
cursor:
|
|
6315
|
+
cursor: w === "expanded" ? "zoom-out" : "default"
|
|
6242
6316
|
},
|
|
6243
|
-
onClick:
|
|
6317
|
+
onClick: K,
|
|
6244
6318
|
children: /* @__PURE__ */ e(
|
|
6245
|
-
|
|
6319
|
+
Xt,
|
|
6246
6320
|
{
|
|
6247
|
-
viewState:
|
|
6248
|
-
animPhase:
|
|
6249
|
-
selectedSystem:
|
|
6250
|
-
selectedComponent:
|
|
6251
|
-
drillAnimPhase:
|
|
6321
|
+
viewState: w,
|
|
6322
|
+
animPhase: S,
|
|
6323
|
+
selectedSystem: x,
|
|
6324
|
+
selectedComponent: k,
|
|
6325
|
+
drillAnimPhase: O,
|
|
6252
6326
|
rotateY: f,
|
|
6253
6327
|
autoRotateComponents: g,
|
|
6254
|
-
componentScale:
|
|
6328
|
+
componentScale: b,
|
|
6255
6329
|
drillZoom: m,
|
|
6256
6330
|
autoRotateCarousel: u,
|
|
6257
6331
|
carouselSpeed: a,
|
|
6258
6332
|
logoUrl: r,
|
|
6259
6333
|
onSelectSystem: z,
|
|
6260
|
-
onBackgroundClick:
|
|
6261
|
-
onComponentClick:
|
|
6262
|
-
|
|
6263
|
-
|
|
6264
|
-
|
|
6265
|
-
|
|
6266
|
-
|
|
6267
|
-
|
|
6334
|
+
onBackgroundClick: K,
|
|
6335
|
+
onComponentClick: Z,
|
|
6336
|
+
onComponentUpdate: ye,
|
|
6337
|
+
onCloseDrill: me,
|
|
6338
|
+
selectedSystemStatus: Fe,
|
|
6339
|
+
selectedSystemDbSync: J,
|
|
6340
|
+
selectedSystemMetrics: B,
|
|
6341
|
+
selectedSystemAlerts: de,
|
|
6342
|
+
children: ne
|
|
6268
6343
|
}
|
|
6269
6344
|
)
|
|
6270
6345
|
}
|
|
@@ -6277,24 +6352,24 @@ function E(t, n, o = 24) {
|
|
|
6277
6352
|
return Math.min(100, Math.max(0, t + Math.sin(a * Math.PI * 2) * n + (Math.random() - 0.5) * 10));
|
|
6278
6353
|
});
|
|
6279
6354
|
}
|
|
6280
|
-
function
|
|
6355
|
+
function Mt(t) {
|
|
6281
6356
|
return t === "critical" || t === "offline" ? "#ff2255" : t === "warning" ? "#ff8c00" : "#00e5ff";
|
|
6282
6357
|
}
|
|
6283
|
-
function
|
|
6284
|
-
const i = t === "online" ? "online" : t, r =
|
|
6358
|
+
function Ne(t, n, o) {
|
|
6359
|
+
const i = t === "online" ? "online" : t, r = Mt(t), a = o?.cpuLoad ?? 50, s = o?.memLoad ?? 60, l = i === "critical" || i === "warning" && a > 80 ? i : "online", h = i === "warning" && s > 85 ? "warning" : i === "critical" ? "critical" : "online", d = i === "critical" && n === "APP-03" ? "critical" : "online", p = i === "offline" ? "offline" : "online";
|
|
6285
6360
|
return [
|
|
6286
|
-
{ id: "cpu-0", label: "CPU-0", status: l, detail: i === "critical" ? "Core overload" : i === "warning" ? "Load spike" : void 0, element: /* @__PURE__ */ e(
|
|
6287
|
-
{ id: "cpu-1", label: "CPU-1", status: "online", element: /* @__PURE__ */ e(
|
|
6288
|
-
{ id: "heap-0", label: "HEAP-0", status: h, detail: h === "warning" ? "Memory heap usage" : h === "critical" ? "OOM risk" : void 0, element: /* @__PURE__ */ e(
|
|
6289
|
-
{ id: "heap-1", label: "HEAP-1", status: "online", element: /* @__PURE__ */ e(
|
|
6290
|
-
{ id: "drive-1", label: "DRIVE-1", status: "online", element: /* @__PURE__ */ e(
|
|
6291
|
-
{ id: "drive-2", label: "DRIVE-2", status: "online", element: /* @__PURE__ */ e(
|
|
6292
|
-
{ id: "drive-3", label: "DRIVE-3", status: "online", element: /* @__PURE__ */ e(
|
|
6293
|
-
{ id: "thread-pool", label: "THREAD-POOL", status:
|
|
6294
|
-
{ id: "network", label: "NET", status: p, element: /* @__PURE__ */ e(
|
|
6361
|
+
{ id: "cpu-0", label: "CPU-0", status: l, detail: i === "critical" ? "Core overload" : i === "warning" ? "Load spike" : void 0, element: /* @__PURE__ */ e(Ke, { color: r, label: "CPU-0", status: l, load: a }) },
|
|
6362
|
+
{ id: "cpu-1", label: "CPU-1", status: "online", element: /* @__PURE__ */ e(Ke, { color: r, label: "CPU-1", status: "online", load: a * 0.7 }) },
|
|
6363
|
+
{ id: "heap-0", label: "HEAP-0", status: h, detail: h === "warning" ? "Memory heap usage" : h === "critical" ? "OOM risk" : void 0, element: /* @__PURE__ */ e(Ze, { color: "#8855ee", label: "HEAP-0", status: h, usedPercent: s }) },
|
|
6364
|
+
{ id: "heap-1", label: "HEAP-1", status: "online", element: /* @__PURE__ */ e(Ze, { color: "#8855ee", label: "HEAP-1", status: "online", usedPercent: s * 0.85 }) },
|
|
6365
|
+
{ id: "drive-1", label: "DRIVE-1", status: "online", element: /* @__PURE__ */ e(De, { color: r, label: "DRIVE-1", status: "online", activity: !0 }) },
|
|
6366
|
+
{ id: "drive-2", label: "DRIVE-2", status: "online", element: /* @__PURE__ */ e(De, { color: r, label: "DRIVE-2", status: "online", activity: a > 30 }) },
|
|
6367
|
+
{ id: "drive-3", label: "DRIVE-3", status: "online", element: /* @__PURE__ */ e(De, { color: r, label: "DRIVE-3", status: "online", activity: a > 50 }) },
|
|
6368
|
+
{ id: "thread-pool", label: "THREAD-POOL", status: d, detail: d === "critical" ? "Thread exhaustion" : void 0, element: /* @__PURE__ */ e(M, { color: r, label: "THREAD-POOL", status: d }) },
|
|
6369
|
+
{ id: "network", label: "NET", status: p, element: /* @__PURE__ */ e(Wt, { color: r, label: "NET", status: p }) }
|
|
6295
6370
|
];
|
|
6296
6371
|
}
|
|
6297
|
-
function
|
|
6372
|
+
function We(t) {
|
|
6298
6373
|
const n = t?.cpuLoad ?? 50, o = t?.memLoad ?? 60;
|
|
6299
6374
|
return [
|
|
6300
6375
|
{ id: "cpu", label: "CPU-0", unit: "%", color: "#00e5ff", data: E(n, 15) },
|
|
@@ -6307,22 +6382,22 @@ function Ce(t) {
|
|
|
6307
6382
|
{ id: "thread", label: "THREAD-POOL", unit: "%", color: "#22aaff", data: E(55, 20) }
|
|
6308
6383
|
];
|
|
6309
6384
|
}
|
|
6310
|
-
function
|
|
6311
|
-
const i = t === "online" ? "online" : t, r =
|
|
6385
|
+
function zt(t, n, o) {
|
|
6386
|
+
const i = t === "online" ? "online" : t, r = Mt(t), a = i === "critical" || i === "offline" ? i : "online", s = i === "warning" ? "warning" : "online", l = i === "critical" ? "critical" : "online";
|
|
6312
6387
|
return [
|
|
6313
|
-
{ id: "port-1", label: "PORT-1", status: "online", element: /* @__PURE__ */ e(
|
|
6314
|
-
{ id: "port-2", label: "PORT-2", status: "online", element: /* @__PURE__ */ e(
|
|
6315
|
-
{ id: "port-3", label: "PORT-3", status: a, detail: i === "critical" ? "Gateway timeout" : i === "offline" ? "Unreachable" : void 0, element: /* @__PURE__ */ e(
|
|
6316
|
-
{ id: "port-4", label: "PORT-4", status: "online", element: /* @__PURE__ */ e(
|
|
6317
|
-
{ id: "port-5", label: "PORT-5", status: s, detail: s === "warning" ? "Latency spike" : void 0, element: /* @__PURE__ */ e(
|
|
6318
|
-
{ id: "port-6", label: "PORT-6", status: "online", element: /* @__PURE__ */ e(
|
|
6319
|
-
{ id: "port-7", label: "PORT-7", status: "online", element: /* @__PURE__ */ e(
|
|
6320
|
-
{ id: "port-8", label: "PORT-8", status: "online", element: /* @__PURE__ */ e(
|
|
6388
|
+
{ id: "port-1", label: "PORT-1", status: "online", element: /* @__PURE__ */ e(Y, { color: r, label: "PORT-1", status: "online" }) },
|
|
6389
|
+
{ id: "port-2", label: "PORT-2", status: "online", element: /* @__PURE__ */ e(Y, { color: r, label: "PORT-2", status: "online" }) },
|
|
6390
|
+
{ id: "port-3", label: "PORT-3", status: a, detail: i === "critical" ? "Gateway timeout" : i === "offline" ? "Unreachable" : void 0, element: /* @__PURE__ */ e(Y, { color: r, label: "PORT-3", status: a }) },
|
|
6391
|
+
{ id: "port-4", label: "PORT-4", status: "online", element: /* @__PURE__ */ e(Y, { color: r, label: "PORT-4", status: "online" }) },
|
|
6392
|
+
{ id: "port-5", label: "PORT-5", status: s, detail: s === "warning" ? "Latency spike" : void 0, element: /* @__PURE__ */ e(Y, { color: r, label: "PORT-5", status: s }) },
|
|
6393
|
+
{ id: "port-6", label: "PORT-6", status: "online", element: /* @__PURE__ */ e(Y, { color: r, label: "PORT-6", status: "online" }) },
|
|
6394
|
+
{ id: "port-7", label: "PORT-7", status: "online", element: /* @__PURE__ */ e(Y, { color: r, label: "PORT-7", status: "online" }) },
|
|
6395
|
+
{ id: "port-8", label: "PORT-8", status: "online", element: /* @__PURE__ */ e(Y, { color: r, label: "PORT-8", status: "online" }) },
|
|
6321
6396
|
{ id: "http-worker", label: "HTTP-WORKER", status: l, detail: l === "critical" ? "Worker timeout" : void 0, element: /* @__PURE__ */ e(M, { color: r, label: "HTTP-WORKER", status: l }) },
|
|
6322
6397
|
{ id: "https-worker", label: "HTTPS-WORKER", status: "online", element: /* @__PURE__ */ e(M, { color: "#bb55ff", label: "HTTPS-WORKER", status: "online" }) }
|
|
6323
6398
|
];
|
|
6324
6399
|
}
|
|
6325
|
-
function
|
|
6400
|
+
function Bt(t) {
|
|
6326
6401
|
const n = t?.traffic ?? 50;
|
|
6327
6402
|
return [
|
|
6328
6403
|
{ id: "traffic", label: "TRAFFIC", unit: "%", color: "#00e5ff", data: E(n, 20) },
|
|
@@ -6332,19 +6407,19 @@ function Pt(t) {
|
|
|
6332
6407
|
{ id: "worker", label: "WORKER", unit: "%", color: "#bb55ff", data: E(n * 0.9, 15) }
|
|
6333
6408
|
];
|
|
6334
6409
|
}
|
|
6335
|
-
function
|
|
6410
|
+
function $i(t, n, o) {
|
|
6336
6411
|
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";
|
|
6337
6412
|
return [
|
|
6338
|
-
{ id: "inst-0", label: "INST-0", status: "online", element: /* @__PURE__ */ e(
|
|
6339
|
-
{ id: "inst-1", label: "INST-1", status: "online", element: /* @__PURE__ */ e(
|
|
6340
|
-
{ id: "inst-2", label: "INST-2", status: r, detail: r === "critical" ? "Instance unreachable" : void 0, element: /* @__PURE__ */ e(
|
|
6413
|
+
{ id: "inst-0", label: "INST-0", status: "online", element: /* @__PURE__ */ e(Y, { color: "#bb55ff", label: "INST-0", status: "online" }) },
|
|
6414
|
+
{ id: "inst-1", label: "INST-1", status: "online", element: /* @__PURE__ */ e(Y, { color: "#bb55ff", label: "INST-1", status: "online" }) },
|
|
6415
|
+
{ id: "inst-2", label: "INST-2", status: r, detail: r === "critical" ? "Instance unreachable" : void 0, element: /* @__PURE__ */ e(Y, { color: "#bb55ff", label: "INST-2", status: r }) },
|
|
6341
6416
|
{ 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(M, { color: "#bb55ff", label: "QUEUE-0", status: a }) },
|
|
6342
6417
|
{ id: "worker-1", label: "WORKER-1", status: "online", element: /* @__PURE__ */ e(M, { color: "#bb55ff", label: "WORKER-1", status: "online" }) },
|
|
6343
6418
|
{ id: "worker-2", label: "WORKER-2", status: "online", element: /* @__PURE__ */ e(M, { color: "#bb55ff", label: "WORKER-2", status: "online" }) },
|
|
6344
6419
|
{ id: "worker-3", label: "WORKER-3", status: s, detail: s === "critical" ? "Worker timeout" : void 0, element: /* @__PURE__ */ e(M, { color: "#bb55ff", label: "WORKER-3", status: s }) }
|
|
6345
6420
|
];
|
|
6346
6421
|
}
|
|
6347
|
-
function
|
|
6422
|
+
function ki(t) {
|
|
6348
6423
|
const n = t?.queueDepth ?? 50;
|
|
6349
6424
|
return [
|
|
6350
6425
|
{ id: "traffic", label: "TRAFFIC", unit: "%", color: "#00e5ff", data: E(n, 20) },
|
|
@@ -6354,17 +6429,17 @@ function yi(t) {
|
|
|
6354
6429
|
{ id: "worker", label: "WORKER", unit: "%", color: "#bb55ff", data: E(n * 0.9, 15) }
|
|
6355
6430
|
];
|
|
6356
6431
|
}
|
|
6357
|
-
function
|
|
6358
|
-
const i = t === "online" ? "online" : t, r = "#ff8c00", a = o?.capacity ?? 72, s = i === "critical" || i === "offline" ? i : i === "warning" ? "warning" : "online", l = i === "warning" && n === "DB-STB" ? "warning" : "online", h = i === "critical" ? "critical" : "online",
|
|
6432
|
+
function Je(t, n, o) {
|
|
6433
|
+
const i = t === "online" ? "online" : t, r = "#ff8c00", a = o?.capacity ?? 72, s = i === "critical" || i === "offline" ? i : i === "warning" ? "warning" : "online", l = i === "warning" && n === "DB-STB" ? "warning" : "online", h = i === "critical" ? "critical" : "online", d = i === "warning" ? "warning" : "online";
|
|
6359
6434
|
return [
|
|
6360
|
-
{ id: "platter-0", label: "PLATTER-0", status: "online", element: /* @__PURE__ */ e(
|
|
6361
|
-
{ 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(
|
|
6362
|
-
{ id: "platter-2", label: "PLATTER-2", status: l, detail: l === "warning" ? "Replication lag" : void 0, element: /* @__PURE__ */ e(
|
|
6435
|
+
{ id: "platter-0", label: "PLATTER-0", status: "online", element: /* @__PURE__ */ e(Qe, { color: r, label: "PLATTER-0", status: "online", capacityPercent: a }) },
|
|
6436
|
+
{ 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(Qe, { color: r, label: "PLATTER-1", status: s, capacityPercent: a }) },
|
|
6437
|
+
{ id: "platter-2", label: "PLATTER-2", status: l, detail: l === "warning" ? "Replication lag" : void 0, element: /* @__PURE__ */ e(Qe, { color: r, label: "PLATTER-2", status: l, capacityPercent: a }) },
|
|
6363
6438
|
{ id: "conn-pool", label: "CONN-POOL", status: h, detail: h === "critical" ? "Pool exhausted" : void 0, element: /* @__PURE__ */ e(M, { color: r, label: "CONN-POOL", status: h }) },
|
|
6364
|
-
{ id: "query-cache", label: "QUERY-CACHE", status:
|
|
6439
|
+
{ id: "query-cache", label: "QUERY-CACHE", status: d, detail: d === "warning" ? "Cache miss rate" : void 0, element: /* @__PURE__ */ e(M, { color: "#00ff88", label: "QUERY-CACHE", status: d }) }
|
|
6365
6440
|
];
|
|
6366
6441
|
}
|
|
6367
|
-
function
|
|
6442
|
+
function et(t) {
|
|
6368
6443
|
const n = t?.capacity ?? 70;
|
|
6369
6444
|
return [
|
|
6370
6445
|
{ id: "platter0", label: "PLATTER-0 I/O", unit: "%", color: "#ff8c00", data: E(40, 20) },
|
|
@@ -6374,7 +6449,7 @@ function He(t) {
|
|
|
6374
6449
|
{ id: "cache", label: "QUERY-CACHE", unit: "%", color: "#00ff88", data: E(75, 12) }
|
|
6375
6450
|
];
|
|
6376
6451
|
}
|
|
6377
|
-
function
|
|
6452
|
+
function vt(t) {
|
|
6378
6453
|
const n = [
|
|
6379
6454
|
t.wdStatus,
|
|
6380
6455
|
t.msStatus,
|
|
@@ -6386,8 +6461,8 @@ function at(t) {
|
|
|
6386
6461
|
];
|
|
6387
6462
|
return n.includes("critical") ? "critical" : n.includes("warning") ? "warning" : n.includes("offline") ? "offline" : "online";
|
|
6388
6463
|
}
|
|
6389
|
-
function
|
|
6390
|
-
const n =
|
|
6464
|
+
function _i(t) {
|
|
6465
|
+
const n = vt(t), o = n === "critical" || n === "offline", i = n === "warning";
|
|
6391
6466
|
return [
|
|
6392
6467
|
{
|
|
6393
6468
|
label: "Uptime",
|
|
@@ -6408,8 +6483,8 @@ function zi(t) {
|
|
|
6408
6483
|
}
|
|
6409
6484
|
];
|
|
6410
6485
|
}
|
|
6411
|
-
function
|
|
6412
|
-
const n =
|
|
6486
|
+
function ji(t) {
|
|
6487
|
+
const n = vt(t), o = n === "critical" || n === "offline", i = n === "warning";
|
|
6413
6488
|
return [
|
|
6414
6489
|
...t.dbSync ? [] : [{ level: "warning", message: "DB Replication Lag Detected" }],
|
|
6415
6490
|
...o ? [{ level: "critical", message: "Critical Component Failure" }] : [],
|
|
@@ -6417,7 +6492,7 @@ function Bi(t) {
|
|
|
6417
6492
|
...!o && !i && t.dbSync ? [{ level: "info", message: "All Systems Nominal" }] : []
|
|
6418
6493
|
];
|
|
6419
6494
|
}
|
|
6420
|
-
const
|
|
6495
|
+
const Ri = [
|
|
6421
6496
|
{ from: [330, 120], to: [220, 260], visibleAtPhase: 3 },
|
|
6422
6497
|
{ from: [330, 120], to: [440, 260], visibleAtPhase: 3 },
|
|
6423
6498
|
{ from: [220, 260], to: [165, 390], visibleAtPhase: 4 },
|
|
@@ -6430,9 +6505,9 @@ const mi = [
|
|
|
6430
6505
|
{ from: [330, 390], to: [200, 520], visibleAtPhase: 5, color: "#ff8c00" },
|
|
6431
6506
|
{ from: [495, 390], to: [200, 520], visibleAtPhase: 5, color: "#ff8c00" }
|
|
6432
6507
|
];
|
|
6433
|
-
function
|
|
6434
|
-
const n =
|
|
6435
|
-
return /* @__PURE__ */
|
|
6508
|
+
function Ci({ config: t }) {
|
|
6509
|
+
const n = q.useContext(Re), o = n?.rotateY ?? 20, i = n?.autoRotateComponents ?? !0, { wdStatus: r, msStatus: a, srv1Status: s, srv2Status: l, srv3Status: h, pdbStatus: d, sdbStatus: p, dbSync: f } = t;
|
|
6510
|
+
return /* @__PURE__ */ c(Me, { children: [
|
|
6436
6511
|
/* @__PURE__ */ e(
|
|
6437
6512
|
A,
|
|
6438
6513
|
{
|
|
@@ -6442,7 +6517,7 @@ function xi({ config: t }) {
|
|
|
6442
6517
|
zIndex: 10,
|
|
6443
6518
|
visibleAtPhase: 2,
|
|
6444
6519
|
color: "#00e5ff",
|
|
6445
|
-
children: /* @__PURE__ */ e(
|
|
6520
|
+
children: /* @__PURE__ */ e(yt, { status: "online", scale: 1.5 })
|
|
6446
6521
|
}
|
|
6447
6522
|
),
|
|
6448
6523
|
/* @__PURE__ */ e(
|
|
@@ -6461,11 +6536,11 @@ function xi({ config: t }) {
|
|
|
6461
6536
|
name: "WEB-DISP",
|
|
6462
6537
|
status: r,
|
|
6463
6538
|
context: { traffic: 78 },
|
|
6464
|
-
subComponents:
|
|
6465
|
-
graphSeries:
|
|
6539
|
+
subComponents: zt(r),
|
|
6540
|
+
graphSeries: Bt({ traffic: 78 })
|
|
6466
6541
|
},
|
|
6467
6542
|
children: /* @__PURE__ */ e(
|
|
6468
|
-
|
|
6543
|
+
mt,
|
|
6469
6544
|
{
|
|
6470
6545
|
rotateY: o,
|
|
6471
6546
|
autoRotate: i,
|
|
@@ -6494,11 +6569,11 @@ function xi({ config: t }) {
|
|
|
6494
6569
|
name: "MSG-SRV",
|
|
6495
6570
|
status: a,
|
|
6496
6571
|
context: { queueDepth: 45 },
|
|
6497
|
-
subComponents:
|
|
6498
|
-
graphSeries:
|
|
6572
|
+
subComponents: $i(a),
|
|
6573
|
+
graphSeries: ki({ queueDepth: 45 })
|
|
6499
6574
|
},
|
|
6500
6575
|
children: /* @__PURE__ */ e(
|
|
6501
|
-
|
|
6576
|
+
Dt,
|
|
6502
6577
|
{
|
|
6503
6578
|
rotateY: -o,
|
|
6504
6579
|
autoRotate: i,
|
|
@@ -6528,11 +6603,11 @@ function xi({ config: t }) {
|
|
|
6528
6603
|
name: "APP-01",
|
|
6529
6604
|
status: s,
|
|
6530
6605
|
context: { cpuLoad: 67, memLoad: 72 },
|
|
6531
|
-
subComponents:
|
|
6532
|
-
graphSeries:
|
|
6606
|
+
subComponents: Ne(s, "APP-01", { cpuLoad: 67, memLoad: 72 }),
|
|
6607
|
+
graphSeries: We({ cpuLoad: 67, memLoad: 72 })
|
|
6533
6608
|
},
|
|
6534
6609
|
children: /* @__PURE__ */ e(
|
|
6535
|
-
|
|
6610
|
+
$e,
|
|
6536
6611
|
{
|
|
6537
6612
|
rotateY: o,
|
|
6538
6613
|
autoRotate: i,
|
|
@@ -6561,11 +6636,11 @@ function xi({ config: t }) {
|
|
|
6561
6636
|
name: "APP-02",
|
|
6562
6637
|
status: l,
|
|
6563
6638
|
context: { cpuLoad: 89, memLoad: 91 },
|
|
6564
|
-
subComponents:
|
|
6565
|
-
graphSeries:
|
|
6639
|
+
subComponents: Ne(l, "APP-02", { cpuLoad: 89, memLoad: 91 }),
|
|
6640
|
+
graphSeries: We({ cpuLoad: 89, memLoad: 91 })
|
|
6566
6641
|
},
|
|
6567
6642
|
children: /* @__PURE__ */ e(
|
|
6568
|
-
|
|
6643
|
+
$e,
|
|
6569
6644
|
{
|
|
6570
6645
|
rotateY: o,
|
|
6571
6646
|
autoRotate: i,
|
|
@@ -6594,11 +6669,11 @@ function xi({ config: t }) {
|
|
|
6594
6669
|
name: "APP-03",
|
|
6595
6670
|
status: h,
|
|
6596
6671
|
context: { cpuLoad: 45, memLoad: 63 },
|
|
6597
|
-
subComponents:
|
|
6598
|
-
graphSeries:
|
|
6672
|
+
subComponents: Ne(h, "APP-03", { cpuLoad: 45, memLoad: 63 }),
|
|
6673
|
+
graphSeries: We({ cpuLoad: 45, memLoad: 63 })
|
|
6599
6674
|
},
|
|
6600
6675
|
children: /* @__PURE__ */ e(
|
|
6601
|
-
|
|
6676
|
+
$e,
|
|
6602
6677
|
{
|
|
6603
6678
|
rotateY: o,
|
|
6604
6679
|
autoRotate: i,
|
|
@@ -6625,17 +6700,17 @@ function xi({ config: t }) {
|
|
|
6625
6700
|
componentInfo: {
|
|
6626
6701
|
type: "database",
|
|
6627
6702
|
name: "DB-PRI",
|
|
6628
|
-
status:
|
|
6703
|
+
status: d,
|
|
6629
6704
|
context: { capacity: 72 },
|
|
6630
|
-
subComponents:
|
|
6631
|
-
graphSeries:
|
|
6705
|
+
subComponents: Je(d, "DB-PRI", { capacity: 72 }),
|
|
6706
|
+
graphSeries: et({ capacity: 72 })
|
|
6632
6707
|
},
|
|
6633
6708
|
children: /* @__PURE__ */ e(
|
|
6634
|
-
|
|
6709
|
+
Ue,
|
|
6635
6710
|
{
|
|
6636
6711
|
rotateY: -o,
|
|
6637
6712
|
autoRotate: i,
|
|
6638
|
-
status:
|
|
6713
|
+
status: d,
|
|
6639
6714
|
name: "DB-PRI",
|
|
6640
6715
|
capacity: 72,
|
|
6641
6716
|
connections: 284,
|
|
@@ -6660,11 +6735,11 @@ function xi({ config: t }) {
|
|
|
6660
6735
|
name: "DB-STB",
|
|
6661
6736
|
status: p,
|
|
6662
6737
|
context: { capacity: 72 },
|
|
6663
|
-
subComponents:
|
|
6664
|
-
graphSeries:
|
|
6738
|
+
subComponents: Je(p, "DB-STB", { capacity: 72 }),
|
|
6739
|
+
graphSeries: et({ capacity: 72 })
|
|
6665
6740
|
},
|
|
6666
6741
|
children: /* @__PURE__ */ e(
|
|
6667
|
-
|
|
6742
|
+
Ue,
|
|
6668
6743
|
{
|
|
6669
6744
|
rotateY: o,
|
|
6670
6745
|
autoRotate: i,
|
|
@@ -6687,15 +6762,15 @@ function xi({ config: t }) {
|
|
|
6687
6762
|
visibleAtPhase: 6,
|
|
6688
6763
|
fixedScale: 1,
|
|
6689
6764
|
bare: !0,
|
|
6690
|
-
children: /* @__PURE__ */ e(
|
|
6765
|
+
children: /* @__PURE__ */ e(It, { synced: f, latencyMs: f ? 8 : 342 })
|
|
6691
6766
|
}
|
|
6692
6767
|
),
|
|
6693
|
-
/* @__PURE__ */ e(
|
|
6768
|
+
/* @__PURE__ */ e(Pi, { config: t })
|
|
6694
6769
|
] });
|
|
6695
6770
|
}
|
|
6696
|
-
function
|
|
6697
|
-
const n =
|
|
6698
|
-
return n?.isSelected ? /* @__PURE__ */
|
|
6771
|
+
function Pi({ config: t }) {
|
|
6772
|
+
const n = q.useContext(Re), { wdStatus: o, msStatus: i, srv1Status: r, srv2Status: a, srv3Status: s, pdbStatus: l, sdbStatus: h, dbSync: d } = t, p = n?.isSelected && n?.isExpandedPos;
|
|
6773
|
+
return n?.isSelected ? /* @__PURE__ */ c("div", { style: { pointerEvents: "none" }, children: [
|
|
6699
6774
|
/* @__PURE__ */ e(
|
|
6700
6775
|
W,
|
|
6701
6776
|
{
|
|
@@ -6801,7 +6876,7 @@ function vi({ config: t }) {
|
|
|
6801
6876
|
internalRef: h !== "online" ? "PLATTER-2" : void 0
|
|
6802
6877
|
}
|
|
6803
6878
|
),
|
|
6804
|
-
!
|
|
6879
|
+
!d && /* @__PURE__ */ e(
|
|
6805
6880
|
W,
|
|
6806
6881
|
{
|
|
6807
6882
|
ex: 330,
|
|
@@ -6818,19 +6893,19 @@ function vi({ config: t }) {
|
|
|
6818
6893
|
)
|
|
6819
6894
|
] }) : null;
|
|
6820
6895
|
}
|
|
6821
|
-
function
|
|
6896
|
+
function Xi({ config: t, ...n }) {
|
|
6822
6897
|
return /* @__PURE__ */ e(
|
|
6823
|
-
|
|
6898
|
+
Lt,
|
|
6824
6899
|
{
|
|
6825
6900
|
name: t.name,
|
|
6826
|
-
status:
|
|
6827
|
-
connections:
|
|
6901
|
+
status: vt(t),
|
|
6902
|
+
connections: Ri,
|
|
6828
6903
|
...n,
|
|
6829
|
-
children: /* @__PURE__ */ e(
|
|
6904
|
+
children: /* @__PURE__ */ e(Ci, { config: t })
|
|
6830
6905
|
}
|
|
6831
6906
|
);
|
|
6832
6907
|
}
|
|
6833
|
-
function
|
|
6908
|
+
function wt(t) {
|
|
6834
6909
|
const n = [
|
|
6835
6910
|
t.dispStatus,
|
|
6836
6911
|
t.srv1Status,
|
|
@@ -6841,8 +6916,8 @@ function lt(t) {
|
|
|
6841
6916
|
];
|
|
6842
6917
|
return n.includes("critical") ? "critical" : n.includes("warning") ? "warning" : n.includes("offline") ? "offline" : "online";
|
|
6843
6918
|
}
|
|
6844
|
-
function
|
|
6845
|
-
const n =
|
|
6919
|
+
function qi(t) {
|
|
6920
|
+
const n = wt(t), o = n === "critical" || n === "offline", i = n === "warning";
|
|
6846
6921
|
return [
|
|
6847
6922
|
{
|
|
6848
6923
|
label: "Uptime",
|
|
@@ -6863,8 +6938,8 @@ function Hi(t) {
|
|
|
6863
6938
|
}
|
|
6864
6939
|
];
|
|
6865
6940
|
}
|
|
6866
|
-
function
|
|
6867
|
-
const n =
|
|
6941
|
+
function Qi(t) {
|
|
6942
|
+
const n = wt(t), o = n === "critical" || n === "offline", i = n === "warning";
|
|
6868
6943
|
return [
|
|
6869
6944
|
...t.dbSync ? [] : [{ level: "warning", message: "DB Replication Lag Detected" }],
|
|
6870
6945
|
...o ? [{ level: "critical", message: "Critical Component Failure" }] : [],
|
|
@@ -6872,7 +6947,7 @@ function Ui(t) {
|
|
|
6872
6947
|
...!o && !i && t.dbSync ? [{ level: "info", message: "All Systems Nominal" }] : []
|
|
6873
6948
|
];
|
|
6874
6949
|
}
|
|
6875
|
-
const
|
|
6950
|
+
const Ei = [
|
|
6876
6951
|
{ from: [330, 120], to: [330, 260], visibleAtPhase: 3 },
|
|
6877
6952
|
{ from: [330, 260], to: [165, 390], visibleAtPhase: 4 },
|
|
6878
6953
|
{ from: [330, 260], to: [330, 390], visibleAtPhase: 4 },
|
|
@@ -6881,9 +6956,9 @@ const wi = [
|
|
|
6881
6956
|
{ from: [330, 390], to: [200, 520], visibleAtPhase: 5, color: "#ff8c00" },
|
|
6882
6957
|
{ from: [495, 390], to: [200, 520], visibleAtPhase: 5, color: "#ff8c00" }
|
|
6883
6958
|
];
|
|
6884
|
-
function
|
|
6885
|
-
const n =
|
|
6886
|
-
return /* @__PURE__ */
|
|
6959
|
+
function Ai({ config: t }) {
|
|
6960
|
+
const n = q.useContext(Re), o = n?.rotateY ?? 20, i = n?.autoRotateComponents ?? !0, { dispStatus: r, srv1Status: a, srv2Status: s, srv3Status: l, pdbStatus: h, sdbStatus: d, dbSync: p } = t;
|
|
6961
|
+
return /* @__PURE__ */ c(Me, { children: [
|
|
6887
6962
|
/* @__PURE__ */ e(
|
|
6888
6963
|
A,
|
|
6889
6964
|
{
|
|
@@ -6893,7 +6968,7 @@ function Si({ config: t }) {
|
|
|
6893
6968
|
zIndex: 10,
|
|
6894
6969
|
visibleAtPhase: 2,
|
|
6895
6970
|
color: "#00e5ff",
|
|
6896
|
-
children: /* @__PURE__ */ e(
|
|
6971
|
+
children: /* @__PURE__ */ e(yt, { status: "online", scale: 1.5 })
|
|
6897
6972
|
}
|
|
6898
6973
|
),
|
|
6899
6974
|
/* @__PURE__ */ e(
|
|
@@ -6912,11 +6987,11 @@ function Si({ config: t }) {
|
|
|
6912
6987
|
name: "DISP-01",
|
|
6913
6988
|
status: r,
|
|
6914
6989
|
context: { traffic: 78 },
|
|
6915
|
-
subComponents:
|
|
6916
|
-
graphSeries:
|
|
6990
|
+
subComponents: zt(r),
|
|
6991
|
+
graphSeries: Bt({ traffic: 78 })
|
|
6917
6992
|
},
|
|
6918
6993
|
children: /* @__PURE__ */ e(
|
|
6919
|
-
|
|
6994
|
+
mt,
|
|
6920
6995
|
{
|
|
6921
6996
|
rotateY: o,
|
|
6922
6997
|
autoRotate: i,
|
|
@@ -6945,11 +7020,11 @@ function Si({ config: t }) {
|
|
|
6945
7020
|
name: "APP-01",
|
|
6946
7021
|
status: a,
|
|
6947
7022
|
context: { cpuLoad: 67, memLoad: 72 },
|
|
6948
|
-
subComponents:
|
|
6949
|
-
graphSeries:
|
|
7023
|
+
subComponents: Ne(a, "APP-01", { cpuLoad: 67, memLoad: 72 }),
|
|
7024
|
+
graphSeries: We({ cpuLoad: 67, memLoad: 72 })
|
|
6950
7025
|
},
|
|
6951
7026
|
children: /* @__PURE__ */ e(
|
|
6952
|
-
|
|
7027
|
+
$e,
|
|
6953
7028
|
{
|
|
6954
7029
|
rotateY: o,
|
|
6955
7030
|
autoRotate: i,
|
|
@@ -6978,11 +7053,11 @@ function Si({ config: t }) {
|
|
|
6978
7053
|
name: "APP-02",
|
|
6979
7054
|
status: s,
|
|
6980
7055
|
context: { cpuLoad: 89, memLoad: 91 },
|
|
6981
|
-
subComponents:
|
|
6982
|
-
graphSeries:
|
|
7056
|
+
subComponents: Ne(s, "APP-02", { cpuLoad: 89, memLoad: 91 }),
|
|
7057
|
+
graphSeries: We({ cpuLoad: 89, memLoad: 91 })
|
|
6983
7058
|
},
|
|
6984
7059
|
children: /* @__PURE__ */ e(
|
|
6985
|
-
|
|
7060
|
+
$e,
|
|
6986
7061
|
{
|
|
6987
7062
|
rotateY: o,
|
|
6988
7063
|
autoRotate: i,
|
|
@@ -7011,11 +7086,11 @@ function Si({ config: t }) {
|
|
|
7011
7086
|
name: "APP-03",
|
|
7012
7087
|
status: l,
|
|
7013
7088
|
context: { cpuLoad: 45, memLoad: 63 },
|
|
7014
|
-
subComponents:
|
|
7015
|
-
graphSeries:
|
|
7089
|
+
subComponents: Ne(l, "APP-03", { cpuLoad: 45, memLoad: 63 }),
|
|
7090
|
+
graphSeries: We({ cpuLoad: 45, memLoad: 63 })
|
|
7016
7091
|
},
|
|
7017
7092
|
children: /* @__PURE__ */ e(
|
|
7018
|
-
|
|
7093
|
+
$e,
|
|
7019
7094
|
{
|
|
7020
7095
|
rotateY: o,
|
|
7021
7096
|
autoRotate: i,
|
|
@@ -7044,11 +7119,11 @@ function Si({ config: t }) {
|
|
|
7044
7119
|
name: "DB-PRI",
|
|
7045
7120
|
status: h,
|
|
7046
7121
|
context: { capacity: 72 },
|
|
7047
|
-
subComponents:
|
|
7048
|
-
graphSeries:
|
|
7122
|
+
subComponents: Je(h, "DB-PRI", { capacity: 72 }),
|
|
7123
|
+
graphSeries: et({ capacity: 72 })
|
|
7049
7124
|
},
|
|
7050
7125
|
children: /* @__PURE__ */ e(
|
|
7051
|
-
|
|
7126
|
+
Ue,
|
|
7052
7127
|
{
|
|
7053
7128
|
rotateY: -o,
|
|
7054
7129
|
autoRotate: i,
|
|
@@ -7075,17 +7150,17 @@ function Si({ config: t }) {
|
|
|
7075
7150
|
componentInfo: {
|
|
7076
7151
|
type: "database",
|
|
7077
7152
|
name: "DB-STB",
|
|
7078
|
-
status:
|
|
7153
|
+
status: d,
|
|
7079
7154
|
context: { capacity: 72 },
|
|
7080
|
-
subComponents:
|
|
7081
|
-
graphSeries:
|
|
7155
|
+
subComponents: Je(d, "DB-STB", { capacity: 72 }),
|
|
7156
|
+
graphSeries: et({ capacity: 72 })
|
|
7082
7157
|
},
|
|
7083
7158
|
children: /* @__PURE__ */ e(
|
|
7084
|
-
|
|
7159
|
+
Ue,
|
|
7085
7160
|
{
|
|
7086
7161
|
rotateY: o,
|
|
7087
7162
|
autoRotate: i,
|
|
7088
|
-
status:
|
|
7163
|
+
status: d,
|
|
7089
7164
|
name: "DB-STB",
|
|
7090
7165
|
capacity: 72,
|
|
7091
7166
|
connections: 0,
|
|
@@ -7104,15 +7179,15 @@ function Si({ config: t }) {
|
|
|
7104
7179
|
visibleAtPhase: 6,
|
|
7105
7180
|
fixedScale: 1,
|
|
7106
7181
|
bare: !0,
|
|
7107
|
-
children: /* @__PURE__ */ e(
|
|
7182
|
+
children: /* @__PURE__ */ e(It, { synced: p, latencyMs: p ? 8 : 342 })
|
|
7108
7183
|
}
|
|
7109
7184
|
),
|
|
7110
|
-
/* @__PURE__ */ e(
|
|
7185
|
+
/* @__PURE__ */ e(Ti, { config: t })
|
|
7111
7186
|
] });
|
|
7112
7187
|
}
|
|
7113
|
-
function
|
|
7114
|
-
const n =
|
|
7115
|
-
return n?.isSelected ? /* @__PURE__ */
|
|
7188
|
+
function Ti({ config: t }) {
|
|
7189
|
+
const n = q.useContext(Re), { dispStatus: o, srv1Status: i, srv2Status: r, srv3Status: a, pdbStatus: s, sdbStatus: l, dbSync: h } = t, d = n?.isSelected && n?.isExpandedPos;
|
|
7190
|
+
return n?.isSelected ? /* @__PURE__ */ c("div", { style: { pointerEvents: "none" }, children: [
|
|
7116
7191
|
/* @__PURE__ */ e(
|
|
7117
7192
|
W,
|
|
7118
7193
|
{
|
|
@@ -7124,7 +7199,7 @@ function $i({ config: t }) {
|
|
|
7124
7199
|
offsetX: -90,
|
|
7125
7200
|
offsetY: -40,
|
|
7126
7201
|
align: "left",
|
|
7127
|
-
isVisible: !!
|
|
7202
|
+
isVisible: !!d,
|
|
7128
7203
|
internalRef: o !== "online" ? "PORT-3" : void 0
|
|
7129
7204
|
}
|
|
7130
7205
|
),
|
|
@@ -7139,7 +7214,7 @@ function $i({ config: t }) {
|
|
|
7139
7214
|
offsetX: -110,
|
|
7140
7215
|
offsetY: -30,
|
|
7141
7216
|
align: "left",
|
|
7142
|
-
isVisible: !!
|
|
7217
|
+
isVisible: !!d,
|
|
7143
7218
|
internalRef: i !== "online" ? "CPU-0" : void 0
|
|
7144
7219
|
}
|
|
7145
7220
|
),
|
|
@@ -7154,7 +7229,7 @@ function $i({ config: t }) {
|
|
|
7154
7229
|
offsetX: 100,
|
|
7155
7230
|
offsetY: -80,
|
|
7156
7231
|
align: "right",
|
|
7157
|
-
isVisible: !!
|
|
7232
|
+
isVisible: !!d,
|
|
7158
7233
|
internalRef: r !== "online" ? "HEAP-0" : void 0
|
|
7159
7234
|
}
|
|
7160
7235
|
),
|
|
@@ -7169,7 +7244,7 @@ function $i({ config: t }) {
|
|
|
7169
7244
|
offsetX: 110,
|
|
7170
7245
|
offsetY: -30,
|
|
7171
7246
|
align: "right",
|
|
7172
|
-
isVisible: !!
|
|
7247
|
+
isVisible: !!d,
|
|
7173
7248
|
internalRef: a !== "online" ? "THREAD-POOL" : void 0
|
|
7174
7249
|
}
|
|
7175
7250
|
),
|
|
@@ -7184,7 +7259,7 @@ function $i({ config: t }) {
|
|
|
7184
7259
|
offsetX: -110,
|
|
7185
7260
|
offsetY: 30,
|
|
7186
7261
|
align: "left",
|
|
7187
|
-
isVisible: !!
|
|
7262
|
+
isVisible: !!d,
|
|
7188
7263
|
internalRef: s !== "online" ? s === "critical" ? "CONN-POOL" : "QUERY-CACHE" : void 0
|
|
7189
7264
|
}
|
|
7190
7265
|
),
|
|
@@ -7199,7 +7274,7 @@ function $i({ config: t }) {
|
|
|
7199
7274
|
offsetX: 110,
|
|
7200
7275
|
offsetY: 30,
|
|
7201
7276
|
align: "right",
|
|
7202
|
-
isVisible: !!
|
|
7277
|
+
isVisible: !!d,
|
|
7203
7278
|
internalRef: l !== "online" ? "PLATTER-2" : void 0
|
|
7204
7279
|
}
|
|
7205
7280
|
),
|
|
@@ -7214,86 +7289,86 @@ function $i({ config: t }) {
|
|
|
7214
7289
|
offsetX: 0,
|
|
7215
7290
|
offsetY: 60,
|
|
7216
7291
|
align: "bottom",
|
|
7217
|
-
isVisible: !!
|
|
7292
|
+
isVisible: !!d,
|
|
7218
7293
|
internalRef: "PLATTER-2"
|
|
7219
7294
|
}
|
|
7220
7295
|
)
|
|
7221
7296
|
] }) : null;
|
|
7222
7297
|
}
|
|
7223
|
-
function
|
|
7298
|
+
function Gi({ config: t, ...n }) {
|
|
7224
7299
|
return /* @__PURE__ */ e(
|
|
7225
|
-
|
|
7300
|
+
Lt,
|
|
7226
7301
|
{
|
|
7227
7302
|
name: t.name,
|
|
7228
|
-
status:
|
|
7229
|
-
connections:
|
|
7303
|
+
status: wt(t),
|
|
7304
|
+
connections: Ei,
|
|
7230
7305
|
...n,
|
|
7231
|
-
children: /* @__PURE__ */ e(
|
|
7306
|
+
children: /* @__PURE__ */ e(Ai, { config: t })
|
|
7232
7307
|
}
|
|
7233
7308
|
);
|
|
7234
7309
|
}
|
|
7235
7310
|
export {
|
|
7236
|
-
|
|
7237
|
-
|
|
7238
|
-
|
|
7239
|
-
|
|
7240
|
-
|
|
7241
|
-
|
|
7242
|
-
|
|
7243
|
-
|
|
7244
|
-
|
|
7245
|
-
|
|
7246
|
-
|
|
7247
|
-
|
|
7248
|
-
|
|
7249
|
-
|
|
7250
|
-
|
|
7251
|
-
|
|
7252
|
-
|
|
7253
|
-
|
|
7254
|
-
|
|
7255
|
-
|
|
7256
|
-
|
|
7257
|
-
|
|
7258
|
-
|
|
7259
|
-
|
|
7260
|
-
|
|
7311
|
+
Vi as AIOPsDashboard,
|
|
7312
|
+
Ke as CPU3D,
|
|
7313
|
+
Xt as Carousel,
|
|
7314
|
+
ut as CarouselContext,
|
|
7315
|
+
bt as CarouselItemContext,
|
|
7316
|
+
Vt as ComponentDialog,
|
|
7317
|
+
Ui as ComponentDrillView,
|
|
7318
|
+
Si as DataProvider,
|
|
7319
|
+
Ue as Database3D,
|
|
7320
|
+
zi as DatabaseNode,
|
|
7321
|
+
De as DriveBay3D,
|
|
7322
|
+
Ei as EXCHANGE_CONNECTIONS,
|
|
7323
|
+
Gi as ExchangeService,
|
|
7324
|
+
Di as HOLO_BLUE,
|
|
7325
|
+
Ii as HOLO_CYAN,
|
|
7326
|
+
ft as HOLO_GLASS,
|
|
7327
|
+
ze as HOLO_SURFACE,
|
|
7328
|
+
pi as HistoricalGraphPanel,
|
|
7329
|
+
Gt as HoloBase,
|
|
7330
|
+
yt as Human3D,
|
|
7331
|
+
Bi as HumanNode,
|
|
7332
|
+
Ze as Memory3D,
|
|
7333
|
+
Dt as MessageServer3D,
|
|
7334
|
+
Hi as MessageServerNode,
|
|
7335
|
+
Wt as NetworkBlock3D,
|
|
7261
7336
|
W as NodeCallout,
|
|
7262
|
-
|
|
7263
|
-
|
|
7264
|
-
|
|
7265
|
-
|
|
7266
|
-
|
|
7267
|
-
|
|
7268
|
-
|
|
7269
|
-
|
|
7270
|
-
|
|
7271
|
-
|
|
7337
|
+
Qe as Platter3D,
|
|
7338
|
+
Y as Port3D,
|
|
7339
|
+
Xi as SAPService,
|
|
7340
|
+
Ri as SAP_CONNECTIONS,
|
|
7341
|
+
$ as STATUS_CFG,
|
|
7342
|
+
$e as Server3D,
|
|
7343
|
+
Mi as ServerNode,
|
|
7344
|
+
Lt as Service,
|
|
7345
|
+
Re as ServiceContext,
|
|
7346
|
+
Ut as ServiceDialog,
|
|
7272
7347
|
A as ServiceNode,
|
|
7273
|
-
|
|
7274
|
-
|
|
7348
|
+
qt as SvgConnection,
|
|
7349
|
+
It as SyncBridge,
|
|
7275
7350
|
M as ThreadPool3D,
|
|
7276
|
-
|
|
7277
|
-
|
|
7278
|
-
|
|
7279
|
-
|
|
7280
|
-
|
|
7281
|
-
|
|
7282
|
-
|
|
7283
|
-
|
|
7284
|
-
|
|
7285
|
-
|
|
7286
|
-
|
|
7287
|
-
|
|
7288
|
-
|
|
7289
|
-
|
|
7290
|
-
|
|
7291
|
-
|
|
7292
|
-
|
|
7293
|
-
|
|
7294
|
-
|
|
7295
|
-
|
|
7296
|
-
|
|
7297
|
-
|
|
7298
|
-
|
|
7351
|
+
mt as WebDispatcher3D,
|
|
7352
|
+
Fi as WebDispatcherNode,
|
|
7353
|
+
Qi as computeExchangeDialogAlerts,
|
|
7354
|
+
qi as computeExchangeDialogMetrics,
|
|
7355
|
+
wt as computeExchangeServiceStatus,
|
|
7356
|
+
ji as computeSAPDialogAlerts,
|
|
7357
|
+
_i as computeSAPDialogMetrics,
|
|
7358
|
+
vt as computeSAPServiceStatus,
|
|
7359
|
+
wi as defaultDataTransform,
|
|
7360
|
+
et as getDatabaseGraphSeries,
|
|
7361
|
+
Je as getDatabaseSubComponents,
|
|
7362
|
+
Bt as getDispatcherGraphSeries,
|
|
7363
|
+
zt as getDispatcherSubComponents,
|
|
7364
|
+
ki as getMessageServerGraphSeries,
|
|
7365
|
+
$i as getMessageServerSubComponents,
|
|
7366
|
+
We as getServerGraphSeries,
|
|
7367
|
+
Ne as getServerSubComponents,
|
|
7368
|
+
ht as makeFaceStyles,
|
|
7369
|
+
mi as useAIOpsData,
|
|
7370
|
+
xi as useAIOpsDataOptional,
|
|
7371
|
+
Ni as useCarouselContext,
|
|
7372
|
+
Wi as useCarouselItemContext,
|
|
7373
|
+
Yi as useQueryResult
|
|
7299
7374
|
};
|