react-aiops 0.1.11 → 0.1.12
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/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 +1164 -1096
- 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,24 +145,24 @@ function Nt({
|
|
|
145
145
|
children: "SYSTEM ALERTS"
|
|
146
146
|
}
|
|
147
147
|
),
|
|
148
|
-
|
|
149
|
-
const
|
|
150
|
-
return /* @__PURE__ */
|
|
148
|
+
d.map((p, f) => {
|
|
149
|
+
const b = Ht[p.level];
|
|
150
|
+
return /* @__PURE__ */ c(
|
|
151
151
|
"div",
|
|
152
152
|
{
|
|
153
153
|
style: {
|
|
154
154
|
display: "flex",
|
|
155
155
|
gap: 8,
|
|
156
156
|
alignItems: "flex-start",
|
|
157
|
-
color:
|
|
157
|
+
color: b.color,
|
|
158
158
|
fontSize: 12,
|
|
159
|
-
background:
|
|
159
|
+
background: b.bg,
|
|
160
160
|
padding: "6px 10px",
|
|
161
161
|
borderRadius: 4,
|
|
162
|
-
borderLeft: `2px solid ${
|
|
162
|
+
borderLeft: `2px solid ${b.border}`
|
|
163
163
|
},
|
|
164
164
|
children: [
|
|
165
|
-
/* @__PURE__ */ e("span", { children:
|
|
165
|
+
/* @__PURE__ */ e("span", { children: b.icon }),
|
|
166
166
|
" ",
|
|
167
167
|
/* @__PURE__ */ e("span", { children: p.message })
|
|
168
168
|
]
|
|
@@ -177,13 +177,13 @@ function Nt({
|
|
|
177
177
|
}
|
|
178
178
|
);
|
|
179
179
|
}
|
|
180
|
-
const
|
|
180
|
+
const C = {
|
|
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 C[t]?.color ?? C.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), b = h >= i / 2, u = d >= r / 2, g = {
|
|
254
254
|
position: "fixed",
|
|
255
|
-
...
|
|
255
|
+
...b ? { right: 28 } : { left: 28 },
|
|
256
256
|
...u ? { bottom: 110 } : { top: 72 }
|
|
257
|
-
}, m =
|
|
258
|
-
let
|
|
259
|
-
if (
|
|
260
|
-
|
|
261
|
-
const
|
|
257
|
+
}, m = b ? 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 A = 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, A, k),
|
|
269
|
+
icon: y.icon ?? "cpu",
|
|
270
|
+
delay: x,
|
|
271
|
+
colorOverride: y.color,
|
|
272
|
+
warnAt: A,
|
|
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, A = p.capacity ?? 72, k = Xe(l, y, 70, 85), $ = Xe(l, x, 75, 88), H = Xe(l, A, 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: $,
|
|
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: A,
|
|
304
304
|
unit: "%",
|
|
305
|
-
status:
|
|
305
|
+
status: H,
|
|
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
|
+
...g,
|
|
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
|
-
critAt:
|
|
587
|
-
} = t, u = p ??
|
|
588
|
-
return /* @__PURE__ */
|
|
586
|
+
critAt: b = 85
|
|
587
|
+
} = t, u = p ?? Yt(a, f, b), g = 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 ${g}44`,
|
|
608
|
+
background: `linear-gradient(135deg, ${g}0c 0%, ${g}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: g }),
|
|
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: g,
|
|
630
|
+
boxShadow: `0 0 6px ${g}`,
|
|
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
|
),
|
|
@@ -736,7 +737,7 @@ function zt({
|
|
|
736
737
|
{
|
|
737
738
|
style: {
|
|
738
739
|
position: "absolute",
|
|
739
|
-
left: `${
|
|
740
|
+
left: `${b}%`,
|
|
740
741
|
top: 0,
|
|
741
742
|
bottom: 0,
|
|
742
743
|
width: 1,
|
|
@@ -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
|
{
|
|
@@ -780,7 +781,7 @@ function zt({
|
|
|
780
781
|
{
|
|
781
782
|
style: {
|
|
782
783
|
position: "absolute",
|
|
783
|
-
left: `${
|
|
784
|
+
left: `${b}%`,
|
|
784
785
|
transform: "translateX(-50%)",
|
|
785
786
|
fontSize: 6,
|
|
786
787
|
color: "rgba(255,34,85,0.3)",
|
|
@@ -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,66 @@ 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
|
-
carouselSpeed:
|
|
917
|
+
carouselSpeed: b = 6e-3,
|
|
917
918
|
width: u = 950,
|
|
918
|
-
height:
|
|
919
|
+
height: g = 790,
|
|
919
920
|
onSelectSystem: m,
|
|
920
|
-
onBackgroundClick:
|
|
921
|
-
onComponentClick:
|
|
922
|
-
onCloseDrill:
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
921
|
+
onBackgroundClick: w,
|
|
922
|
+
onComponentClick: v,
|
|
923
|
+
onCloseDrill: S,
|
|
924
|
+
onComponentUpdate: y,
|
|
925
|
+
selectedSystemStatus: x = "online",
|
|
926
|
+
selectedSystemDbSync: A = !0,
|
|
927
|
+
selectedSystemMetrics: k,
|
|
926
928
|
selectedSystemAlerts: $
|
|
927
929
|
}) {
|
|
928
|
-
const [
|
|
929
|
-
|
|
930
|
-
let
|
|
930
|
+
const [H, L] = R(0);
|
|
931
|
+
ke(() => {
|
|
932
|
+
let D;
|
|
931
933
|
if ((o === "compact" || o === "collapsing") && f) {
|
|
932
934
|
const U = () => {
|
|
933
|
-
|
|
935
|
+
L((ne) => ne + b), D = requestAnimationFrame(U);
|
|
934
936
|
};
|
|
935
|
-
|
|
937
|
+
D = requestAnimationFrame(U);
|
|
936
938
|
}
|
|
937
|
-
return () => cancelAnimationFrame(
|
|
938
|
-
}, [o, f,
|
|
939
|
-
const
|
|
940
|
-
totalSystems:
|
|
941
|
-
carouselRotation:
|
|
939
|
+
return () => cancelAnimationFrame(D);
|
|
940
|
+
}, [o, f, b]);
|
|
941
|
+
const M = q.Children.toArray(t), K = M.length, Z = Tt(() => ({
|
|
942
|
+
totalSystems: K,
|
|
943
|
+
carouselRotation: H,
|
|
942
944
|
viewState: o,
|
|
943
945
|
animPhase: i,
|
|
944
946
|
selectedSystem: r,
|
|
945
947
|
selectedComponent: a,
|
|
946
948
|
rotateY: l,
|
|
947
949
|
autoRotateComponents: h,
|
|
948
|
-
componentScale:
|
|
950
|
+
componentScale: d,
|
|
949
951
|
drillZoom: p,
|
|
950
952
|
onSelectSystem: m,
|
|
951
|
-
onComponentClick:
|
|
953
|
+
onComponentClick: v,
|
|
954
|
+
onComponentUpdate: y,
|
|
952
955
|
containerWidth: u
|
|
953
956
|
}), [
|
|
954
|
-
|
|
955
|
-
|
|
957
|
+
K,
|
|
958
|
+
H,
|
|
956
959
|
o,
|
|
957
960
|
i,
|
|
958
961
|
r,
|
|
959
962
|
a,
|
|
960
963
|
l,
|
|
961
964
|
h,
|
|
962
|
-
|
|
965
|
+
d,
|
|
963
966
|
p,
|
|
964
967
|
m,
|
|
965
|
-
|
|
968
|
+
v,
|
|
969
|
+
y,
|
|
966
970
|
u
|
|
967
|
-
]),
|
|
968
|
-
return /* @__PURE__ */
|
|
969
|
-
/* @__PURE__ */
|
|
971
|
+
]), ye = M.map((D, U) => /* @__PURE__ */ e(bt.Provider, { value: { index: U }, children: D }, U)), me = o === "expanded" || o === "expanding" && i >= 4;
|
|
972
|
+
return /* @__PURE__ */ c(ut.Provider, { value: Z, children: [
|
|
973
|
+
/* @__PURE__ */ c("div", { style: { position: "relative", width: u, height: g, margin: "0 auto", flexShrink: 0 }, children: [
|
|
970
974
|
n && (o === "compact" || o === "collapsing") && /* @__PURE__ */ e(
|
|
971
975
|
"img",
|
|
972
976
|
{
|
|
@@ -987,32 +991,32 @@ function Ft({
|
|
|
987
991
|
}
|
|
988
992
|
}
|
|
989
993
|
),
|
|
990
|
-
|
|
994
|
+
ye
|
|
991
995
|
] }),
|
|
992
|
-
r && /* @__PURE__ */ e("div", { onClick: (
|
|
993
|
-
|
|
996
|
+
r && /* @__PURE__ */ e("div", { onClick: (D) => D.stopPropagation(), children: /* @__PURE__ */ e(
|
|
997
|
+
Ut,
|
|
994
998
|
{
|
|
995
999
|
name: r,
|
|
996
|
-
status:
|
|
997
|
-
dbSync:
|
|
998
|
-
visible:
|
|
999
|
-
metrics:
|
|
1000
|
+
status: x,
|
|
1001
|
+
dbSync: A,
|
|
1002
|
+
visible: me && !a,
|
|
1003
|
+
metrics: k,
|
|
1000
1004
|
alerts: $
|
|
1001
1005
|
}
|
|
1002
1006
|
) }),
|
|
1003
|
-
a && /* @__PURE__ */ e("div", { onClick: (
|
|
1004
|
-
|
|
1007
|
+
a && /* @__PURE__ */ e("div", { onClick: (D) => D.stopPropagation(), children: /* @__PURE__ */ e(
|
|
1008
|
+
Vt,
|
|
1005
1009
|
{
|
|
1006
1010
|
component: a,
|
|
1007
|
-
onClose:
|
|
1011
|
+
onClose: S,
|
|
1008
1012
|
visible: s >= 0.3,
|
|
1009
1013
|
sceneWidth: u,
|
|
1010
|
-
sceneHeight:
|
|
1014
|
+
sceneHeight: g
|
|
1011
1015
|
}
|
|
1012
1016
|
) })
|
|
1013
1017
|
] });
|
|
1014
1018
|
}
|
|
1015
|
-
function
|
|
1019
|
+
function qt({
|
|
1016
1020
|
x1: t,
|
|
1017
1021
|
y1: n,
|
|
1018
1022
|
x2: o,
|
|
@@ -1021,7 +1025,7 @@ function Ht({
|
|
|
1021
1025
|
color: a = "#00e5ff",
|
|
1022
1026
|
dur: s = "3s"
|
|
1023
1027
|
}) {
|
|
1024
|
-
return /* @__PURE__ */
|
|
1028
|
+
return /* @__PURE__ */ c("g", { opacity: r ? 1 : 0, style: { transition: "opacity 0.6s ease" }, children: [
|
|
1025
1029
|
/* @__PURE__ */ e(
|
|
1026
1030
|
"line",
|
|
1027
1031
|
{
|
|
@@ -1059,7 +1063,7 @@ function Ht({
|
|
|
1059
1063
|
)
|
|
1060
1064
|
}
|
|
1061
1065
|
),
|
|
1062
|
-
r && /* @__PURE__ */
|
|
1066
|
+
r && /* @__PURE__ */ c(Me, { children: [
|
|
1063
1067
|
/* @__PURE__ */ e("circle", { r: "3", fill: a, opacity: 0.85, children: /* @__PURE__ */ e(
|
|
1064
1068
|
"animateMotion",
|
|
1065
1069
|
{
|
|
@@ -1079,14 +1083,14 @@ function Ht({
|
|
|
1079
1083
|
] })
|
|
1080
1084
|
] });
|
|
1081
1085
|
}
|
|
1082
|
-
const
|
|
1086
|
+
const Qt = [
|
|
1083
1087
|
{ scale: 1, op: 1, delay: "0.0s", bw: "2px", glow: 1 },
|
|
1084
1088
|
{ scale: 0.82, op: 0.88, delay: "0.5s", bw: "1.5px", glow: 0.7 },
|
|
1085
1089
|
{ scale: 0.64, op: 0.72, delay: "1.0s", bw: "1px", glow: 0.5 },
|
|
1086
1090
|
{ scale: 0.47, op: 0.58, delay: "1.5s", bw: "1px", glow: 0.35 },
|
|
1087
1091
|
{ scale: 0.3, op: 0.45, delay: "2.0s", bw: "1px", glow: 0.25 }
|
|
1088
1092
|
];
|
|
1089
|
-
function
|
|
1093
|
+
function Gt({
|
|
1090
1094
|
children: t,
|
|
1091
1095
|
size: n = 230,
|
|
1092
1096
|
widthRatio: o = 1,
|
|
@@ -1094,13 +1098,13 @@ function Yt({
|
|
|
1094
1098
|
label: r
|
|
1095
1099
|
}) {
|
|
1096
1100
|
const a = n * o;
|
|
1097
|
-
return /* @__PURE__ */
|
|
1101
|
+
return /* @__PURE__ */ c("div", { style: {
|
|
1098
1102
|
display: "flex",
|
|
1099
1103
|
flexDirection: "column",
|
|
1100
1104
|
alignItems: "center",
|
|
1101
1105
|
position: "relative"
|
|
1102
1106
|
}, children: [
|
|
1103
|
-
/* @__PURE__ */
|
|
1107
|
+
/* @__PURE__ */ c("div", { style: {
|
|
1104
1108
|
position: "relative",
|
|
1105
1109
|
animation: "holo-float 4s ease-in-out infinite"
|
|
1106
1110
|
}, children: [
|
|
@@ -1123,7 +1127,7 @@ function Yt({
|
|
|
1123
1127
|
} }),
|
|
1124
1128
|
t
|
|
1125
1129
|
] }),
|
|
1126
|
-
/* @__PURE__ */
|
|
1130
|
+
/* @__PURE__ */ c("div", { style: {
|
|
1127
1131
|
position: "relative",
|
|
1128
1132
|
width: a,
|
|
1129
1133
|
height: 88,
|
|
@@ -1195,7 +1199,7 @@ function Yt({
|
|
|
1195
1199
|
animationDelay: "0.06s"
|
|
1196
1200
|
} })
|
|
1197
1201
|
] }),
|
|
1198
|
-
/* @__PURE__ */
|
|
1202
|
+
/* @__PURE__ */ c("div", { style: {
|
|
1199
1203
|
position: "relative",
|
|
1200
1204
|
width: a,
|
|
1201
1205
|
height: n * 0.34,
|
|
@@ -1252,7 +1256,7 @@ function Yt({
|
|
|
1252
1256
|
background: `radial-gradient(ellipse, ${i}88 0%, ${i}33 40%, transparent 72%)`,
|
|
1253
1257
|
filter: "blur(12px)"
|
|
1254
1258
|
} }),
|
|
1255
|
-
|
|
1259
|
+
Qt.map((s, l) => /* @__PURE__ */ e("div", { style: {
|
|
1256
1260
|
position: "absolute",
|
|
1257
1261
|
width: a * s.scale,
|
|
1258
1262
|
height: n * s.scale,
|
|
@@ -1295,8 +1299,8 @@ function Yt({
|
|
|
1295
1299
|
}, children: r })
|
|
1296
1300
|
] });
|
|
1297
1301
|
}
|
|
1298
|
-
const
|
|
1299
|
-
function
|
|
1302
|
+
const Re = tt(null), Kt = "cubic-bezier(0.34, 1.56, 0.64, 1)", $t = 330, kt = 340, Zt = 660;
|
|
1303
|
+
function Lt({
|
|
1300
1304
|
name: t,
|
|
1301
1305
|
status: n = "online",
|
|
1302
1306
|
connections: o = [],
|
|
@@ -1306,35 +1310,37 @@ function xt({
|
|
|
1306
1310
|
_totalSystems: s,
|
|
1307
1311
|
_carouselRotation: l,
|
|
1308
1312
|
_viewState: h,
|
|
1309
|
-
_animPhase:
|
|
1313
|
+
_animPhase: d,
|
|
1310
1314
|
_selectedSystem: p,
|
|
1311
1315
|
_selectedComponent: f,
|
|
1312
|
-
_rotateY:
|
|
1316
|
+
_rotateY: b,
|
|
1313
1317
|
_autoRotateComponents: u,
|
|
1314
|
-
_componentScale:
|
|
1318
|
+
_componentScale: g,
|
|
1315
1319
|
_drillZoom: m,
|
|
1316
|
-
_onSelectSystem:
|
|
1317
|
-
_onComponentClick:
|
|
1318
|
-
|
|
1320
|
+
_onSelectSystem: w,
|
|
1321
|
+
_onComponentClick: v,
|
|
1322
|
+
_onComponentUpdate: S,
|
|
1323
|
+
_containerWidth: y
|
|
1319
1324
|
}) {
|
|
1320
|
-
const
|
|
1325
|
+
const x = ge(ut), A = ge(bt), k = a ?? A.index, $ = s ?? x?.totalSystems ?? 1, H = l ?? x?.carouselRotation ?? 0, L = h ?? x?.viewState ?? "compact", M = d ?? x?.animPhase ?? 0, K = p ?? x?.selectedSystem ?? null, Z = f ?? x?.selectedComponent ?? null, ye = b ?? x?.rotateY ?? 20, me = u ?? x?.autoRotateComponents ?? !0, D = g ?? x?.componentScale ?? 0.35, U = m ?? x?.drillZoom ?? 3.3, ne = w ?? x?.onSelectSystem, Be = v ?? x?.onComponentClick, le = S ?? x?.onComponentUpdate, Fe = y ?? x?.containerWidth ?? 950, J = K === t, z = J && (L === "expanded" || L === "expanding" && M >= 1), _ = !z, se = (Fe - Zt) / 2, de = $t + se, Ce = k / $ * Math.PI * 2 + H, it = 420, nt = 160, xe = de + Math.cos(Ce) * it, ce = 450 + Math.sin(Ce) * nt, ot = Math.round(ce), T = !J && (L === "expanding" || L === "expanded"), j = T ? 0 : 1, oe = _ ? 0.3 + (Math.sin(Ce) + 1) * 0.1 : 1, ee = _ ? oe : D, re = L === "compact" || L === "collapsing" ? "none" : "all 1s cubic-bezier(0.34, 1.56, 0.64, 1)", ve = J && Z, ae = ve ? U : 1, pe = Z?.ex ?? 330, B = Z?.ey ?? 300, { size: rt = 90, color: at = "#00e5ff", widthRatio: Ye = 3 } = i ?? {}, we = {
|
|
1321
1326
|
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
|
-
|
|
1327
|
+
isSelected: J,
|
|
1328
|
+
isExpandedPos: z,
|
|
1329
|
+
isCompact: _,
|
|
1330
|
+
animPhase: M,
|
|
1331
|
+
compactCx: xe,
|
|
1332
|
+
compactCy: ce,
|
|
1333
|
+
groupScale: oe,
|
|
1334
|
+
effectiveScale: ee,
|
|
1335
|
+
transitionValue: re,
|
|
1336
|
+
rotateY: ye,
|
|
1337
|
+
autoRotateComponents: me,
|
|
1338
|
+
onComponentClick: Be,
|
|
1339
|
+
onComponentUpdate: le,
|
|
1340
|
+
selectedComponentName: Z?.name ?? null,
|
|
1341
|
+
expandedOffsetX: se
|
|
1336
1342
|
};
|
|
1337
|
-
return /* @__PURE__ */ e(
|
|
1343
|
+
return /* @__PURE__ */ e(Re.Provider, { value: we, children: /* @__PURE__ */ c(
|
|
1338
1344
|
"div",
|
|
1339
1345
|
{
|
|
1340
1346
|
style: {
|
|
@@ -1344,21 +1350,21 @@ function xt({
|
|
|
1344
1350
|
width: "100%",
|
|
1345
1351
|
height: "100%",
|
|
1346
1352
|
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:
|
|
1353
|
+
opacity: j,
|
|
1354
|
+
transition: `opacity 0.8s ease, filter 0.5s ease, transform 0.6s ${Kt}`,
|
|
1355
|
+
filter: _ && Math.sin(Ce) < -0.5 ? "brightness(0.5) blur(2px)" : "none",
|
|
1356
|
+
zIndex: J ? 500 : T ? 0 : ot,
|
|
1357
|
+
transformOrigin: `${de}px ${kt}px`,
|
|
1358
|
+
transform: ve ? `translate(${-(pe - $t) * ae}px, ${-(B - kt) * ae}px) scale(${ae})` : "none"
|
|
1353
1359
|
},
|
|
1354
1360
|
children: [
|
|
1355
|
-
|
|
1361
|
+
_ && !T && /* @__PURE__ */ e(
|
|
1356
1362
|
"div",
|
|
1357
1363
|
{
|
|
1358
1364
|
style: {
|
|
1359
1365
|
position: "absolute",
|
|
1360
|
-
left:
|
|
1361
|
-
top:
|
|
1366
|
+
left: xe,
|
|
1367
|
+
top: ce,
|
|
1362
1368
|
width: 160,
|
|
1363
1369
|
height: 180,
|
|
1364
1370
|
transform: "translate(-50%, -80%)",
|
|
@@ -1366,25 +1372,25 @@ function xt({
|
|
|
1366
1372
|
cursor: "pointer",
|
|
1367
1373
|
zIndex: 101
|
|
1368
1374
|
},
|
|
1369
|
-
onClick: (
|
|
1370
|
-
|
|
1375
|
+
onClick: (F) => {
|
|
1376
|
+
F.stopPropagation(), ne?.(t);
|
|
1371
1377
|
}
|
|
1372
1378
|
}
|
|
1373
1379
|
),
|
|
1374
|
-
|
|
1380
|
+
_ && (n === "warning" || n === "critical") && /* @__PURE__ */ e(
|
|
1375
1381
|
"div",
|
|
1376
1382
|
{
|
|
1377
1383
|
style: {
|
|
1378
1384
|
position: "absolute",
|
|
1379
|
-
left:
|
|
1380
|
-
top:
|
|
1381
|
-
transform: `translate(-50%, -50%) scale(${
|
|
1385
|
+
left: xe,
|
|
1386
|
+
top: ce - 200,
|
|
1387
|
+
transform: `translate(-50%, -50%) scale(${oe})`,
|
|
1382
1388
|
zIndex: 110,
|
|
1383
1389
|
pointerEvents: "none",
|
|
1384
1390
|
animation: "holo-led-blink 1.5s infinite",
|
|
1385
1391
|
filter: `drop-shadow(0 0 10px ${n === "critical" ? "#ff2255" : "#ff8c00"})`
|
|
1386
1392
|
},
|
|
1387
|
-
children: /* @__PURE__ */
|
|
1393
|
+
children: /* @__PURE__ */ c("svg", { width: "48", height: "48", viewBox: "0 0 28 28", fill: "none", children: [
|
|
1388
1394
|
/* @__PURE__ */ e(
|
|
1389
1395
|
"path",
|
|
1390
1396
|
{
|
|
@@ -1424,13 +1430,13 @@ function xt({
|
|
|
1424
1430
|
{
|
|
1425
1431
|
style: {
|
|
1426
1432
|
position: "absolute",
|
|
1427
|
-
left:
|
|
1428
|
-
top:
|
|
1429
|
-
transform: `translate(-50%, -50%) scale(${
|
|
1433
|
+
left: z ? de : xe,
|
|
1434
|
+
top: z ? 48 : ce - 180,
|
|
1435
|
+
transform: `translate(-50%, -50%) scale(${z ? 1.2 : oe * 1.5})`,
|
|
1430
1436
|
opacity: 1,
|
|
1431
1437
|
pointerEvents: "none",
|
|
1432
1438
|
zIndex: 100,
|
|
1433
|
-
transition:
|
|
1439
|
+
transition: re,
|
|
1434
1440
|
fontSize: 36,
|
|
1435
1441
|
fontWeight: 700,
|
|
1436
1442
|
letterSpacing: "0.18em",
|
|
@@ -1450,25 +1456,25 @@ function xt({
|
|
|
1450
1456
|
style: {
|
|
1451
1457
|
position: "absolute",
|
|
1452
1458
|
top: 0,
|
|
1453
|
-
left:
|
|
1459
|
+
left: z ? se : 0,
|
|
1454
1460
|
width: 660,
|
|
1455
1461
|
height: 640,
|
|
1456
1462
|
pointerEvents: "none",
|
|
1457
1463
|
zIndex: 0,
|
|
1458
|
-
transition:
|
|
1464
|
+
transition: re
|
|
1459
1465
|
},
|
|
1460
|
-
children: o.map((
|
|
1461
|
-
|
|
1466
|
+
children: o.map((F, Ve) => /* @__PURE__ */ e(
|
|
1467
|
+
qt,
|
|
1462
1468
|
{
|
|
1463
|
-
x1:
|
|
1464
|
-
y1:
|
|
1465
|
-
x2:
|
|
1466
|
-
y2:
|
|
1467
|
-
show:
|
|
1468
|
-
color:
|
|
1469
|
-
dur:
|
|
1469
|
+
x1: F.from[0],
|
|
1470
|
+
y1: F.from[1],
|
|
1471
|
+
x2: F.to[0],
|
|
1472
|
+
y2: F.to[1],
|
|
1473
|
+
show: J && M >= (F.visibleAtPhase ?? 0),
|
|
1474
|
+
color: F.color,
|
|
1475
|
+
dur: F.duration
|
|
1470
1476
|
},
|
|
1471
|
-
|
|
1477
|
+
Ve
|
|
1472
1478
|
))
|
|
1473
1479
|
}
|
|
1474
1480
|
),
|
|
@@ -1477,13 +1483,13 @@ function xt({
|
|
|
1477
1483
|
{
|
|
1478
1484
|
style: {
|
|
1479
1485
|
position: "absolute",
|
|
1480
|
-
left:
|
|
1481
|
-
top:
|
|
1482
|
-
transform: `translate(-50%, -50%) scaleX(${
|
|
1483
|
-
transition:
|
|
1486
|
+
left: z ? de : xe,
|
|
1487
|
+
top: z ? 570 : ce + 70,
|
|
1488
|
+
transform: `translate(-50%, -50%) scaleX(${z ? 1 : 0.4}) scaleY(${z ? 1 : 0.6}) scale(${z ? 1 : oe})`,
|
|
1489
|
+
transition: re,
|
|
1484
1490
|
zIndex: 1
|
|
1485
1491
|
},
|
|
1486
|
-
children: /* @__PURE__ */ e(
|
|
1492
|
+
children: /* @__PURE__ */ e(Gt, { size: rt, color: at, widthRatio: Ye, children: /* @__PURE__ */ e("div", { className: "base-hotspot" }) })
|
|
1487
1493
|
}
|
|
1488
1494
|
),
|
|
1489
1495
|
r
|
|
@@ -1491,7 +1497,7 @@ function xt({
|
|
|
1491
1497
|
}
|
|
1492
1498
|
) });
|
|
1493
1499
|
}
|
|
1494
|
-
function
|
|
1500
|
+
function N({
|
|
1495
1501
|
ex: t,
|
|
1496
1502
|
ey: n,
|
|
1497
1503
|
status: o,
|
|
@@ -1501,23 +1507,23 @@ function W({
|
|
|
1501
1507
|
offsetY: s,
|
|
1502
1508
|
isVisible: l,
|
|
1503
1509
|
align: h = "right",
|
|
1504
|
-
internalRef:
|
|
1510
|
+
internalRef: d
|
|
1505
1511
|
}) {
|
|
1506
|
-
const p =
|
|
1512
|
+
const p = ge(Re), f = p?.expandedOffsetX ?? 0;
|
|
1507
1513
|
if (o === "online") return null;
|
|
1508
|
-
const
|
|
1509
|
-
let
|
|
1510
|
-
if (
|
|
1511
|
-
const
|
|
1512
|
-
|
|
1514
|
+
const b = l && !!p?.isExpandedPos, u = C[o]?.color ?? C.warning.color, g = Math.abs(a) > Math.abs(s), m = t + f + (g ? Math.sign(a) * 45 : 0), w = n + (g ? 0 : Math.sign(s) * 40), v = t + f + a, S = n + s;
|
|
1515
|
+
let y = "";
|
|
1516
|
+
if (g) {
|
|
1517
|
+
const $ = m + (v - m) / 2;
|
|
1518
|
+
y = `M ${m} ${w} L ${$} ${w} L ${$} ${S} L ${v} ${S}`;
|
|
1513
1519
|
} else {
|
|
1514
|
-
const
|
|
1515
|
-
|
|
1520
|
+
const $ = w + (S - w) / 2;
|
|
1521
|
+
y = `M ${m} ${w} L ${m} ${$} L ${v} ${$} L ${v} ${S}`;
|
|
1516
1522
|
}
|
|
1517
|
-
let
|
|
1518
|
-
h === "left" && (
|
|
1519
|
-
const
|
|
1520
|
-
return /* @__PURE__ */
|
|
1523
|
+
let x = "translate(0, -50%)";
|
|
1524
|
+
h === "left" && (x = "translate(-100%, -50%)"), h === "top" && (x = "translate(-50%, -100%)"), h === "bottom" && (x = "translate(-50%, 0)");
|
|
1525
|
+
const A = h === "left" ? -8 : h === "right" ? 8 : 0, k = h === "top" ? -8 : h === "bottom" ? 8 : 0;
|
|
1526
|
+
return /* @__PURE__ */ c(
|
|
1521
1527
|
"div",
|
|
1522
1528
|
{
|
|
1523
1529
|
style: {
|
|
@@ -1527,7 +1533,7 @@ function W({
|
|
|
1527
1533
|
width: "100%",
|
|
1528
1534
|
height: "100%",
|
|
1529
1535
|
pointerEvents: "none",
|
|
1530
|
-
opacity:
|
|
1536
|
+
opacity: b ? 1 : 0,
|
|
1531
1537
|
transition: "opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.8s",
|
|
1532
1538
|
zIndex: 150
|
|
1533
1539
|
},
|
|
@@ -1547,7 +1553,7 @@ function W({
|
|
|
1547
1553
|
children: /* @__PURE__ */ e(
|
|
1548
1554
|
"path",
|
|
1549
1555
|
{
|
|
1550
|
-
d:
|
|
1556
|
+
d: y,
|
|
1551
1557
|
fill: "none",
|
|
1552
1558
|
stroke: u,
|
|
1553
1559
|
strokeWidth: "1.5",
|
|
@@ -1557,16 +1563,16 @@ function W({
|
|
|
1557
1563
|
)
|
|
1558
1564
|
}
|
|
1559
1565
|
),
|
|
1560
|
-
/* @__PURE__ */
|
|
1566
|
+
/* @__PURE__ */ c(
|
|
1561
1567
|
"div",
|
|
1562
1568
|
{
|
|
1563
1569
|
style: {
|
|
1564
1570
|
position: "absolute",
|
|
1565
|
-
left:
|
|
1566
|
-
top:
|
|
1567
|
-
transform:
|
|
1568
|
-
marginLeft:
|
|
1569
|
-
marginTop:
|
|
1571
|
+
left: v,
|
|
1572
|
+
top: S,
|
|
1573
|
+
transform: x,
|
|
1574
|
+
marginLeft: A,
|
|
1575
|
+
marginTop: k,
|
|
1570
1576
|
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
1577
|
border: `1px solid ${u}55`,
|
|
1572
1578
|
borderLeft: `2px solid ${u}`,
|
|
@@ -1580,7 +1586,7 @@ function W({
|
|
|
1580
1586
|
boxShadow: `0 4px 12px rgba(0,0,0,0.4), 0 0 8px ${u}22 inset`
|
|
1581
1587
|
},
|
|
1582
1588
|
children: [
|
|
1583
|
-
/* @__PURE__ */
|
|
1589
|
+
/* @__PURE__ */ c(
|
|
1584
1590
|
"div",
|
|
1585
1591
|
{
|
|
1586
1592
|
style: {
|
|
@@ -1614,7 +1620,7 @@ function W({
|
|
|
1614
1620
|
textTransform: "uppercase",
|
|
1615
1621
|
textShadow: `0 0 4px ${u}88`
|
|
1616
1622
|
},
|
|
1617
|
-
children:
|
|
1623
|
+
children: d ? `${i} · ${d}` : i
|
|
1618
1624
|
}
|
|
1619
1625
|
)
|
|
1620
1626
|
]
|
|
@@ -1638,7 +1644,7 @@ function W({
|
|
|
1638
1644
|
}
|
|
1639
1645
|
);
|
|
1640
1646
|
}
|
|
1641
|
-
function
|
|
1647
|
+
function E({
|
|
1642
1648
|
ex: t,
|
|
1643
1649
|
ey: n,
|
|
1644
1650
|
compactOffset: o,
|
|
@@ -1648,74 +1654,90 @@ function A({
|
|
|
1648
1654
|
label: s,
|
|
1649
1655
|
subLabel: l,
|
|
1650
1656
|
delay: h = "0s",
|
|
1651
|
-
componentInfo:
|
|
1657
|
+
componentInfo: d,
|
|
1652
1658
|
visibleAtPhase: p = 0,
|
|
1653
1659
|
fixedScale: f,
|
|
1654
|
-
bare:
|
|
1660
|
+
bare: b = !1,
|
|
1655
1661
|
alert: u
|
|
1656
1662
|
}) {
|
|
1657
|
-
const
|
|
1658
|
-
if (!
|
|
1663
|
+
const g = ge(Re);
|
|
1664
|
+
if (!g)
|
|
1659
1665
|
throw new Error("ServiceNode must be used inside a <Service> component.");
|
|
1660
1666
|
const {
|
|
1661
1667
|
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
|
-
|
|
1668
|
+
animPhase: w,
|
|
1669
|
+
compactCx: v,
|
|
1670
|
+
compactCy: S,
|
|
1671
|
+
groupScale: y,
|
|
1672
|
+
effectiveScale: x,
|
|
1673
|
+
transitionValue: A,
|
|
1674
|
+
onComponentClick: k,
|
|
1675
|
+
onComponentUpdate: $,
|
|
1676
|
+
selectedComponentName: H,
|
|
1677
|
+
expandedOffsetX: L
|
|
1678
|
+
} = g, K = p === 0 || g.isSelected && w >= p ? 1 : 0, Z = v + o.x, ye = S + o.y, me = m ? t + L : Z, D = m ? n : ye, U = f !== void 0 ? f : g.isCompact ? y : x, ne = !!d && !!H && d.name === H, Be = d?.status ? C[d.status]?.color ?? a : a, le = d?.status === "offline" ? "#4a6a8a" : Be, Fe = d && m && k ? () => k({
|
|
1679
|
+
type: d.type,
|
|
1680
|
+
name: d.name,
|
|
1681
|
+
status: d.status,
|
|
1682
|
+
ex: d.ex ?? t,
|
|
1683
|
+
ey: d.ey ?? n,
|
|
1684
|
+
context: d.context,
|
|
1685
|
+
dialogMetrics: d.dialogMetrics,
|
|
1686
|
+
subComponents: d.subComponents,
|
|
1687
|
+
graphSeries: d.graphSeries
|
|
1688
|
+
}) : void 0, J = JSON.stringify(d?.context ?? {}), z = JSON.stringify(d?.dialogMetrics ?? []);
|
|
1689
|
+
ke(() => {
|
|
1690
|
+
!ne || !d || !$ || $({
|
|
1691
|
+
type: d.type,
|
|
1692
|
+
name: d.name,
|
|
1693
|
+
status: d.status,
|
|
1694
|
+
ex: d.ex ?? t,
|
|
1695
|
+
ey: d.ey ?? n,
|
|
1696
|
+
context: d.context,
|
|
1697
|
+
dialogMetrics: d.dialogMetrics,
|
|
1698
|
+
subComponents: d.subComponents,
|
|
1699
|
+
graphSeries: d.graphSeries
|
|
1700
|
+
});
|
|
1701
|
+
}, [ne, d?.status, J, z]);
|
|
1702
|
+
const _ = d?.status === "warning" || d?.status === "critical", se = d?.status ?? "online", de = d?.name ?? s ?? "";
|
|
1703
|
+
return /* @__PURE__ */ c(Me, { children: [
|
|
1683
1704
|
/* @__PURE__ */ e(
|
|
1684
1705
|
"div",
|
|
1685
1706
|
{
|
|
1686
1707
|
style: {
|
|
1687
1708
|
position: "absolute",
|
|
1688
|
-
left:
|
|
1689
|
-
top:
|
|
1709
|
+
left: me,
|
|
1710
|
+
top: D,
|
|
1690
1711
|
transform: `translate(-50%, -50%) scale(${U})`,
|
|
1691
|
-
opacity:
|
|
1712
|
+
opacity: K,
|
|
1692
1713
|
zIndex: i,
|
|
1693
|
-
transition:
|
|
1694
|
-
pointerEvents: m &&
|
|
1714
|
+
transition: A || "all 1s cubic-bezier(0.34, 1.56, 0.64, 1)",
|
|
1715
|
+
pointerEvents: m && K >= 0.5 ? "auto" : "none"
|
|
1695
1716
|
},
|
|
1696
|
-
children:
|
|
1697
|
-
|
|
1717
|
+
children: b ? r : /* @__PURE__ */ e(
|
|
1718
|
+
Jt,
|
|
1698
1719
|
{
|
|
1699
|
-
statusColor:
|
|
1720
|
+
statusColor: le,
|
|
1700
1721
|
label: s,
|
|
1701
1722
|
subLabel: l,
|
|
1702
1723
|
delay: h,
|
|
1703
1724
|
showLabels: m,
|
|
1704
|
-
isCompact:
|
|
1705
|
-
onClick:
|
|
1706
|
-
isSelected:
|
|
1725
|
+
isCompact: g.isCompact,
|
|
1726
|
+
onClick: Fe,
|
|
1727
|
+
isSelected: ne,
|
|
1728
|
+
isAlerting: _,
|
|
1707
1729
|
children: r
|
|
1708
1730
|
}
|
|
1709
1731
|
)
|
|
1710
1732
|
}
|
|
1711
1733
|
),
|
|
1712
1734
|
u && /* @__PURE__ */ e(
|
|
1713
|
-
|
|
1735
|
+
N,
|
|
1714
1736
|
{
|
|
1715
1737
|
ex: t,
|
|
1716
1738
|
ey: n,
|
|
1717
|
-
status:
|
|
1718
|
-
title:
|
|
1739
|
+
status: se,
|
|
1740
|
+
title: de,
|
|
1719
1741
|
msg: u.msg,
|
|
1720
1742
|
offsetX: u.offsetX ?? 110,
|
|
1721
1743
|
offsetY: u.offsetY ?? -30,
|
|
@@ -1726,7 +1748,7 @@ function A({
|
|
|
1726
1748
|
)
|
|
1727
1749
|
] });
|
|
1728
1750
|
}
|
|
1729
|
-
function
|
|
1751
|
+
function Jt({
|
|
1730
1752
|
children: t,
|
|
1731
1753
|
statusColor: n,
|
|
1732
1754
|
label: o,
|
|
@@ -1735,27 +1757,38 @@ function jt({
|
|
|
1735
1757
|
showLabels: a = !0,
|
|
1736
1758
|
isCompact: s = !1,
|
|
1737
1759
|
onClick: l,
|
|
1738
|
-
isSelected: h = !1
|
|
1760
|
+
isSelected: h = !1,
|
|
1761
|
+
isAlerting: d = !1
|
|
1739
1762
|
}) {
|
|
1740
|
-
const [
|
|
1741
|
-
return /* @__PURE__ */
|
|
1763
|
+
const [p, f] = R(!1), b = 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)` : "";
|
|
1764
|
+
return /* @__PURE__ */ c(
|
|
1742
1765
|
"div",
|
|
1743
1766
|
{
|
|
1744
1767
|
className: `float-node${l ? " float-node--interactive" : ""}`,
|
|
1745
|
-
onClick: (
|
|
1746
|
-
l && (
|
|
1768
|
+
onClick: (u) => {
|
|
1769
|
+
l && (u.stopPropagation(), l());
|
|
1747
1770
|
},
|
|
1748
1771
|
style: {
|
|
1749
1772
|
cursor: l ? "pointer" : void 0,
|
|
1750
1773
|
transition: "filter 0.3s ease",
|
|
1751
|
-
filter:
|
|
1774
|
+
filter: b
|
|
1752
1775
|
},
|
|
1753
|
-
onMouseEnter: () =>
|
|
1754
|
-
onMouseLeave: () =>
|
|
1776
|
+
onMouseEnter: () => f(!0),
|
|
1777
|
+
onMouseLeave: () => f(!1),
|
|
1755
1778
|
role: l ? "button" : void 0,
|
|
1756
1779
|
title: l ? "Click to inspect internal components" : void 0,
|
|
1757
1780
|
children: [
|
|
1758
|
-
/* @__PURE__ */
|
|
1781
|
+
d && /* @__PURE__ */ e(
|
|
1782
|
+
"div",
|
|
1783
|
+
{
|
|
1784
|
+
className: "node-alert-glow",
|
|
1785
|
+
style: {
|
|
1786
|
+
"--pulse-color": n,
|
|
1787
|
+
boxShadow: `0 0 20px ${n}, 0 0 40px ${n}66`
|
|
1788
|
+
}
|
|
1789
|
+
}
|
|
1790
|
+
),
|
|
1791
|
+
/* @__PURE__ */ c("div", { className: "float-body", style: { animationDelay: r }, children: [
|
|
1759
1792
|
/* @__PURE__ */ e(
|
|
1760
1793
|
"div",
|
|
1761
1794
|
{
|
|
@@ -1766,11 +1799,11 @@ function jt({
|
|
|
1766
1799
|
}
|
|
1767
1800
|
}
|
|
1768
1801
|
),
|
|
1769
|
-
/* @__PURE__ */ e("div", { style: s ? { background: "#040c1a", borderRadius: 2 } : void 0, children: s &&
|
|
1802
|
+
/* @__PURE__ */ e("div", { style: s ? { background: "#040c1a", borderRadius: 2 } : void 0, children: s && q.isValidElement(t) ? q.cloneElement(t, {
|
|
1770
1803
|
_compact: !0
|
|
1771
1804
|
}) : t })
|
|
1772
1805
|
] }),
|
|
1773
|
-
/* @__PURE__ */
|
|
1806
|
+
/* @__PURE__ */ c(
|
|
1774
1807
|
"div",
|
|
1775
1808
|
{
|
|
1776
1809
|
style: {
|
|
@@ -1787,10 +1820,10 @@ function jt({
|
|
|
1787
1820
|
}
|
|
1788
1821
|
);
|
|
1789
1822
|
}
|
|
1790
|
-
function
|
|
1823
|
+
function It({ synced: t, latencyMs: n }) {
|
|
1791
1824
|
const o = t ? "#00ff88" : "#ff8c00";
|
|
1792
|
-
return /* @__PURE__ */
|
|
1793
|
-
/* @__PURE__ */
|
|
1825
|
+
return /* @__PURE__ */ c("div", { className: "sync-bridge", children: [
|
|
1826
|
+
/* @__PURE__ */ c("div", { className: "sync-arrows", children: [
|
|
1794
1827
|
/* @__PURE__ */ e("span", { style: { color: o, fontSize: 10, lineHeight: 1 }, children: "◄" }),
|
|
1795
1828
|
/* @__PURE__ */ e(
|
|
1796
1829
|
"div",
|
|
@@ -1815,15 +1848,15 @@ function vt({ synced: t, latencyMs: n }) {
|
|
|
1815
1848
|
children: t ? "SYNCED" : "LAG"
|
|
1816
1849
|
}
|
|
1817
1850
|
),
|
|
1818
|
-
/* @__PURE__ */
|
|
1851
|
+
/* @__PURE__ */ c("div", { className: "sync-latency", style: { color: o + "88" }, children: [
|
|
1819
1852
|
n,
|
|
1820
1853
|
"ms ",
|
|
1821
1854
|
t ? "replication" : "behind"
|
|
1822
1855
|
] })
|
|
1823
1856
|
] });
|
|
1824
1857
|
}
|
|
1825
|
-
const
|
|
1826
|
-
function
|
|
1858
|
+
const fe = 140, X = 240, be = 160, Pe = ht(fe, X, be);
|
|
1859
|
+
function ei({
|
|
1827
1860
|
cfg: t,
|
|
1828
1861
|
name: n,
|
|
1829
1862
|
cpuLoad: o,
|
|
@@ -1832,19 +1865,19 @@ function Xt({
|
|
|
1832
1865
|
compact: a,
|
|
1833
1866
|
brandLabel: s
|
|
1834
1867
|
}) {
|
|
1835
|
-
const l = Math.ceil(o / 100 * 3), h = r === "offline" ? "#4a6a8a" : t.color,
|
|
1868
|
+
const l = Math.ceil(o / 100 * 3), h = r === "offline" ? "#4a6a8a" : t.color, d = [
|
|
1836
1869
|
{ color: t.color, on: r !== "offline", label: "PWR" },
|
|
1837
1870
|
{ color: t.color, on: r === "online" || r === "warning", label: "NET" },
|
|
1838
1871
|
{ color: t.color, on: o > 15, label: "DSK" },
|
|
1839
1872
|
{ color: r === "critical" ? "#ff2255" : t.color, on: r === "critical", label: "FLT" }
|
|
1840
1873
|
];
|
|
1841
|
-
return /* @__PURE__ */
|
|
1874
|
+
return /* @__PURE__ */ c(
|
|
1842
1875
|
"div",
|
|
1843
1876
|
{
|
|
1844
1877
|
style: {
|
|
1845
|
-
width:
|
|
1846
|
-
height:
|
|
1847
|
-
background: a ?
|
|
1878
|
+
width: fe,
|
|
1879
|
+
height: X,
|
|
1880
|
+
background: a ? ze : ft,
|
|
1848
1881
|
position: "relative",
|
|
1849
1882
|
overflow: "hidden",
|
|
1850
1883
|
fontFamily: "'Courier New', monospace",
|
|
@@ -1866,7 +1899,7 @@ function Xt({
|
|
|
1866
1899
|
}
|
|
1867
1900
|
}
|
|
1868
1901
|
),
|
|
1869
|
-
/* @__PURE__ */
|
|
1902
|
+
/* @__PURE__ */ c(
|
|
1870
1903
|
"div",
|
|
1871
1904
|
{
|
|
1872
1905
|
style: {
|
|
@@ -1881,7 +1914,7 @@ function Xt({
|
|
|
1881
1914
|
gap: 7
|
|
1882
1915
|
},
|
|
1883
1916
|
children: [
|
|
1884
|
-
/* @__PURE__ */
|
|
1917
|
+
/* @__PURE__ */ c("div", { style: { display: "flex", justifyContent: "space-between", alignItems: "center" }, children: [
|
|
1885
1918
|
/* @__PURE__ */ e("span", { style: { fontSize: 7, color: t.color + "55", letterSpacing: "0.22em" }, children: s }),
|
|
1886
1919
|
/* @__PURE__ */ e(
|
|
1887
1920
|
"div",
|
|
@@ -1897,7 +1930,7 @@ function Xt({
|
|
|
1897
1930
|
alignItems: "center",
|
|
1898
1931
|
justifyContent: "center"
|
|
1899
1932
|
},
|
|
1900
|
-
children: /* @__PURE__ */
|
|
1933
|
+
children: /* @__PURE__ */ c("svg", { width: "9", height: "9", viewBox: "0 0 10 10", fill: "none", children: [
|
|
1901
1934
|
/* @__PURE__ */ e("path", { d: "M5 1.5v3", stroke: t.color, strokeWidth: "1.4", strokeLinecap: "round" }),
|
|
1902
1935
|
/* @__PURE__ */ e(
|
|
1903
1936
|
"path",
|
|
@@ -1912,7 +1945,7 @@ function Xt({
|
|
|
1912
1945
|
}
|
|
1913
1946
|
)
|
|
1914
1947
|
] }),
|
|
1915
|
-
/* @__PURE__ */
|
|
1948
|
+
/* @__PURE__ */ c("div", { style: { display: "flex", justifyContent: "space-between", alignItems: "center" }, children: [
|
|
1916
1949
|
/* @__PURE__ */ e(
|
|
1917
1950
|
"span",
|
|
1918
1951
|
{
|
|
@@ -1925,7 +1958,7 @@ function Xt({
|
|
|
1925
1958
|
children: n
|
|
1926
1959
|
}
|
|
1927
1960
|
),
|
|
1928
|
-
/* @__PURE__ */ e("div", { style: { display: "flex", gap: 5 }, children:
|
|
1961
|
+
/* @__PURE__ */ e("div", { style: { display: "flex", gap: 5 }, children: d.map((p, f) => /* @__PURE__ */ e(
|
|
1929
1962
|
"div",
|
|
1930
1963
|
{
|
|
1931
1964
|
style: {
|
|
@@ -1956,7 +1989,7 @@ function Xt({
|
|
|
1956
1989
|
}
|
|
1957
1990
|
}
|
|
1958
1991
|
),
|
|
1959
|
-
/* @__PURE__ */
|
|
1992
|
+
/* @__PURE__ */ c(
|
|
1960
1993
|
"div",
|
|
1961
1994
|
{
|
|
1962
1995
|
style: {
|
|
@@ -2005,8 +2038,8 @@ function Xt({
|
|
|
2005
2038
|
}
|
|
2006
2039
|
),
|
|
2007
2040
|
Array.from({ length: 3 }, (p, f) => {
|
|
2008
|
-
const
|
|
2009
|
-
return /* @__PURE__ */
|
|
2041
|
+
const b = f < l;
|
|
2042
|
+
return /* @__PURE__ */ c(
|
|
2010
2043
|
"div",
|
|
2011
2044
|
{
|
|
2012
2045
|
style: {
|
|
@@ -2032,8 +2065,8 @@ function Xt({
|
|
|
2032
2065
|
height: 5,
|
|
2033
2066
|
borderRadius: "50%",
|
|
2034
2067
|
flexShrink: 0,
|
|
2035
|
-
background:
|
|
2036
|
-
boxShadow:
|
|
2068
|
+
background: b ? t.color : "#08142a",
|
|
2069
|
+
boxShadow: b ? `0 0 6px ${t.color}, 0 0 12px ${t.color}66` : "none"
|
|
2037
2070
|
}
|
|
2038
2071
|
}
|
|
2039
2072
|
),
|
|
@@ -2049,7 +2082,7 @@ function Xt({
|
|
|
2049
2082
|
position: "relative",
|
|
2050
2083
|
overflow: "hidden"
|
|
2051
2084
|
},
|
|
2052
|
-
children:
|
|
2085
|
+
children: b && /* @__PURE__ */ e(
|
|
2053
2086
|
"div",
|
|
2054
2087
|
{
|
|
2055
2088
|
style: {
|
|
@@ -2096,7 +2129,7 @@ function Xt({
|
|
|
2096
2129
|
}
|
|
2097
2130
|
}
|
|
2098
2131
|
),
|
|
2099
|
-
/* @__PURE__ */
|
|
2132
|
+
/* @__PURE__ */ c(
|
|
2100
2133
|
"div",
|
|
2101
2134
|
{
|
|
2102
2135
|
style: {
|
|
@@ -2235,13 +2268,13 @@ function Xt({
|
|
|
2235
2268
|
}
|
|
2236
2269
|
);
|
|
2237
2270
|
}
|
|
2238
|
-
function
|
|
2239
|
-
return /* @__PURE__ */
|
|
2271
|
+
function ti() {
|
|
2272
|
+
return /* @__PURE__ */ c(
|
|
2240
2273
|
"div",
|
|
2241
2274
|
{
|
|
2242
2275
|
style: {
|
|
2243
|
-
width:
|
|
2244
|
-
height:
|
|
2276
|
+
width: fe,
|
|
2277
|
+
height: X,
|
|
2245
2278
|
background: "linear-gradient(180deg, #040c1a 0%, #030810 100%)",
|
|
2246
2279
|
position: "relative",
|
|
2247
2280
|
overflow: "hidden",
|
|
@@ -2349,18 +2382,18 @@ function qt() {
|
|
|
2349
2382
|
}
|
|
2350
2383
|
);
|
|
2351
2384
|
}
|
|
2352
|
-
function
|
|
2385
|
+
function Rt({
|
|
2353
2386
|
side: t,
|
|
2354
2387
|
color: n,
|
|
2355
2388
|
brandLabel: o
|
|
2356
2389
|
}) {
|
|
2357
2390
|
const i = t === "right";
|
|
2358
|
-
return /* @__PURE__ */
|
|
2391
|
+
return /* @__PURE__ */ c(
|
|
2359
2392
|
"div",
|
|
2360
2393
|
{
|
|
2361
2394
|
style: {
|
|
2362
|
-
width:
|
|
2363
|
-
height:
|
|
2395
|
+
width: be,
|
|
2396
|
+
height: X,
|
|
2364
2397
|
background: i ? "linear-gradient(90deg, #040c1c 0%, #071428 60%, #040c1c 100%)" : "linear-gradient(90deg, #040c1c 0%, #071428 40%, #040c1c 100%)",
|
|
2365
2398
|
position: "relative",
|
|
2366
2399
|
overflow: "hidden"
|
|
@@ -2379,13 +2412,13 @@ function ft({
|
|
|
2379
2412
|
}
|
|
2380
2413
|
}
|
|
2381
2414
|
),
|
|
2382
|
-
[8,
|
|
2415
|
+
[8, X - 20].map((r) => /* @__PURE__ */ e(
|
|
2383
2416
|
"div",
|
|
2384
2417
|
{
|
|
2385
2418
|
style: {
|
|
2386
2419
|
position: "absolute",
|
|
2387
2420
|
top: r,
|
|
2388
|
-
left: i ? 10 :
|
|
2421
|
+
left: i ? 10 : be - 18,
|
|
2389
2422
|
width: 8,
|
|
2390
2423
|
height: 8,
|
|
2391
2424
|
borderRadius: 1,
|
|
@@ -2401,8 +2434,8 @@ function ft({
|
|
|
2401
2434
|
{
|
|
2402
2435
|
style: {
|
|
2403
2436
|
position: "absolute",
|
|
2404
|
-
top:
|
|
2405
|
-
bottom:
|
|
2437
|
+
top: X * 0.35,
|
|
2438
|
+
bottom: X * 0.15,
|
|
2406
2439
|
left: i ? 22 : 18,
|
|
2407
2440
|
right: i ? 18 : 22,
|
|
2408
2441
|
display: "flex",
|
|
@@ -2425,13 +2458,13 @@ function ft({
|
|
|
2425
2458
|
))
|
|
2426
2459
|
}
|
|
2427
2460
|
),
|
|
2428
|
-
/* @__PURE__ */
|
|
2461
|
+
/* @__PURE__ */ c(
|
|
2429
2462
|
"div",
|
|
2430
2463
|
{
|
|
2431
2464
|
style: {
|
|
2432
2465
|
position: "absolute",
|
|
2433
|
-
top:
|
|
2434
|
-
left: i ? 12 :
|
|
2466
|
+
top: X * 0.18,
|
|
2467
|
+
left: i ? 12 : be - 78,
|
|
2435
2468
|
fontSize: 7,
|
|
2436
2469
|
color: "#1a3050",
|
|
2437
2470
|
letterSpacing: "0.2em",
|
|
@@ -2449,14 +2482,14 @@ function ft({
|
|
|
2449
2482
|
}
|
|
2450
2483
|
);
|
|
2451
2484
|
}
|
|
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__ */
|
|
2485
|
+
function ii({ cpuLoad: t }) {
|
|
2486
|
+
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);
|
|
2487
|
+
return /* @__PURE__ */ c(
|
|
2455
2488
|
"div",
|
|
2456
2489
|
{
|
|
2457
2490
|
style: {
|
|
2458
|
-
width:
|
|
2459
|
-
height:
|
|
2491
|
+
width: fe,
|
|
2492
|
+
height: be,
|
|
2460
2493
|
background: "linear-gradient(180deg, #0c1c30 0%, #070f1e 40%, #040c1a 100%)",
|
|
2461
2494
|
position: "relative",
|
|
2462
2495
|
overflow: "hidden"
|
|
@@ -2470,7 +2503,7 @@ function Qt({ cpuLoad: t }) {
|
|
|
2470
2503
|
top: 0,
|
|
2471
2504
|
left: 0,
|
|
2472
2505
|
right: 0,
|
|
2473
|
-
height:
|
|
2506
|
+
height: be * 0.4,
|
|
2474
2507
|
background: `radial-gradient(ellipse at 50% 0%, ${o} 0%, transparent 70%)`
|
|
2475
2508
|
}
|
|
2476
2509
|
}
|
|
@@ -2529,7 +2562,7 @@ function Qt({ cpuLoad: t }) {
|
|
|
2529
2562
|
}
|
|
2530
2563
|
);
|
|
2531
2564
|
}
|
|
2532
|
-
function
|
|
2565
|
+
function $e({
|
|
2533
2566
|
rotateX: t = -22,
|
|
2534
2567
|
rotateY: n = 20,
|
|
2535
2568
|
rotateZ: o = 0,
|
|
@@ -2539,29 +2572,29 @@ function he({
|
|
|
2539
2572
|
name: s = "SRV-001",
|
|
2540
2573
|
cpuLoad: l = 67,
|
|
2541
2574
|
memLoad: h = 82,
|
|
2542
|
-
brandLabel:
|
|
2575
|
+
brandLabel: d = "BUSAUD",
|
|
2543
2576
|
_compact: p
|
|
2544
2577
|
}) {
|
|
2545
|
-
const [f,
|
|
2546
|
-
|
|
2578
|
+
const [f, b] = R(n), u = ie(0), g = ie(0);
|
|
2579
|
+
ke(() => {
|
|
2547
2580
|
if (!r) {
|
|
2548
|
-
|
|
2581
|
+
b(n);
|
|
2549
2582
|
return;
|
|
2550
2583
|
}
|
|
2551
|
-
const
|
|
2552
|
-
|
|
2584
|
+
const w = (v) => {
|
|
2585
|
+
g.current && b((S) => S + (v - g.current) * 0.027), g.current = v, u.current = requestAnimationFrame(w);
|
|
2553
2586
|
};
|
|
2554
|
-
return u.current = requestAnimationFrame(
|
|
2555
|
-
cancelAnimationFrame(u.current),
|
|
2587
|
+
return u.current = requestAnimationFrame(w), () => {
|
|
2588
|
+
cancelAnimationFrame(u.current), g.current = 0;
|
|
2556
2589
|
};
|
|
2557
2590
|
}, [r, n]);
|
|
2558
|
-
const m =
|
|
2559
|
-
return /* @__PURE__ */
|
|
2591
|
+
const m = C[a] ?? C.online;
|
|
2592
|
+
return /* @__PURE__ */ c(
|
|
2560
2593
|
"div",
|
|
2561
2594
|
{
|
|
2562
2595
|
style: {
|
|
2563
|
-
width:
|
|
2564
|
-
height:
|
|
2596
|
+
width: fe * i,
|
|
2597
|
+
height: X * i,
|
|
2565
2598
|
position: "relative",
|
|
2566
2599
|
display: "flex",
|
|
2567
2600
|
alignItems: "center",
|
|
@@ -2581,7 +2614,7 @@ function he({
|
|
|
2581
2614
|
animation: "holo-led-blink 1.5s infinite",
|
|
2582
2615
|
filter: `drop-shadow(0 0 10px ${m.color})`
|
|
2583
2616
|
},
|
|
2584
|
-
children: /* @__PURE__ */
|
|
2617
|
+
children: /* @__PURE__ */ c("svg", { width: "44", height: "44", viewBox: "0 0 28 28", fill: "none", children: [
|
|
2585
2618
|
/* @__PURE__ */ e(
|
|
2586
2619
|
"path",
|
|
2587
2620
|
{
|
|
@@ -2613,8 +2646,8 @@ function he({
|
|
|
2613
2646
|
{
|
|
2614
2647
|
style: {
|
|
2615
2648
|
position: "absolute",
|
|
2616
|
-
width:
|
|
2617
|
-
height:
|
|
2649
|
+
width: fe * 1.4 * i,
|
|
2650
|
+
height: X * 0.8 * i,
|
|
2618
2651
|
background: `radial-gradient(ellipse, ${m.glow} 0%, transparent 65%)`,
|
|
2619
2652
|
filter: `blur(${Math.round(45 * i)}px)`,
|
|
2620
2653
|
pointerEvents: "none",
|
|
@@ -2633,20 +2666,20 @@ function he({
|
|
|
2633
2666
|
transform: `scale(${i})`,
|
|
2634
2667
|
transformOrigin: "center center"
|
|
2635
2668
|
},
|
|
2636
|
-
children: /* @__PURE__ */
|
|
2669
|
+
children: /* @__PURE__ */ c(
|
|
2637
2670
|
"div",
|
|
2638
2671
|
{
|
|
2639
2672
|
style: {
|
|
2640
|
-
width:
|
|
2641
|
-
height:
|
|
2673
|
+
width: fe,
|
|
2674
|
+
height: X,
|
|
2642
2675
|
position: "relative",
|
|
2643
2676
|
transformStyle: "preserve-3d",
|
|
2644
2677
|
transform: `rotateX(${t}deg) rotateY(${f}deg) rotateZ(${o}deg)`,
|
|
2645
2678
|
transition: r ? "none" : "transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94)"
|
|
2646
2679
|
},
|
|
2647
2680
|
children: [
|
|
2648
|
-
/* @__PURE__ */ e("div", { style:
|
|
2649
|
-
|
|
2681
|
+
/* @__PURE__ */ e("div", { style: Pe.front, children: /* @__PURE__ */ e(
|
|
2682
|
+
ei,
|
|
2650
2683
|
{
|
|
2651
2684
|
cfg: m,
|
|
2652
2685
|
name: s,
|
|
@@ -2654,19 +2687,19 @@ function he({
|
|
|
2654
2687
|
memLoad: h,
|
|
2655
2688
|
status: a,
|
|
2656
2689
|
compact: p,
|
|
2657
|
-
brandLabel:
|
|
2690
|
+
brandLabel: d
|
|
2658
2691
|
}
|
|
2659
2692
|
) }),
|
|
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:
|
|
2693
|
+
/* @__PURE__ */ e("div", { style: Pe.back, children: /* @__PURE__ */ e(ti, {}) }),
|
|
2694
|
+
/* @__PURE__ */ e("div", { style: Pe.left, children: /* @__PURE__ */ e(Rt, { side: "left", color: m.color, brandLabel: d }) }),
|
|
2695
|
+
/* @__PURE__ */ e("div", { style: Pe.right, children: /* @__PURE__ */ e(Rt, { side: "right", color: m.color, brandLabel: d }) }),
|
|
2696
|
+
/* @__PURE__ */ e("div", { style: Pe.top, children: /* @__PURE__ */ e(ii, { cpuLoad: l }) }),
|
|
2697
|
+
/* @__PURE__ */ e("div", { style: Pe.bottom, children: /* @__PURE__ */ e(
|
|
2665
2698
|
"div",
|
|
2666
2699
|
{
|
|
2667
2700
|
style: {
|
|
2668
|
-
width:
|
|
2669
|
-
height:
|
|
2701
|
+
width: fe,
|
|
2702
|
+
height: be,
|
|
2670
2703
|
background: "linear-gradient(180deg, #030710, #020508)"
|
|
2671
2704
|
}
|
|
2672
2705
|
}
|
|
@@ -2680,7 +2713,7 @@ function he({
|
|
|
2680
2713
|
}
|
|
2681
2714
|
);
|
|
2682
2715
|
}
|
|
2683
|
-
function
|
|
2716
|
+
function Mi({
|
|
2684
2717
|
ex: t,
|
|
2685
2718
|
ey: n,
|
|
2686
2719
|
compactOffset: o,
|
|
@@ -2690,17 +2723,17 @@ function Ti({
|
|
|
2690
2723
|
subLabel: s,
|
|
2691
2724
|
color: l,
|
|
2692
2725
|
delay: h,
|
|
2693
|
-
visibleAtPhase:
|
|
2726
|
+
visibleAtPhase: d,
|
|
2694
2727
|
cpuLoad: p,
|
|
2695
2728
|
memLoad: f,
|
|
2696
|
-
brandLabel:
|
|
2729
|
+
brandLabel: b,
|
|
2697
2730
|
dialogMetrics: u,
|
|
2698
|
-
subComponents:
|
|
2731
|
+
subComponents: g,
|
|
2699
2732
|
graphSeries: m,
|
|
2700
|
-
alert:
|
|
2733
|
+
alert: w
|
|
2701
2734
|
}) {
|
|
2702
2735
|
return /* @__PURE__ */ e(
|
|
2703
|
-
|
|
2736
|
+
E,
|
|
2704
2737
|
{
|
|
2705
2738
|
ex: t,
|
|
2706
2739
|
ey: n,
|
|
@@ -2710,26 +2743,26 @@ function Ti({
|
|
|
2710
2743
|
subLabel: s,
|
|
2711
2744
|
color: l,
|
|
2712
2745
|
delay: h,
|
|
2713
|
-
visibleAtPhase:
|
|
2746
|
+
visibleAtPhase: d,
|
|
2714
2747
|
componentInfo: {
|
|
2715
2748
|
type: "server",
|
|
2716
2749
|
name: r,
|
|
2717
2750
|
status: a,
|
|
2718
2751
|
context: { cpuLoad: p, memLoad: f },
|
|
2719
2752
|
dialogMetrics: u,
|
|
2720
|
-
subComponents:
|
|
2753
|
+
subComponents: g,
|
|
2721
2754
|
graphSeries: m
|
|
2722
2755
|
},
|
|
2723
|
-
alert:
|
|
2724
|
-
children: /* @__PURE__ */ e(
|
|
2756
|
+
alert: w,
|
|
2757
|
+
children: /* @__PURE__ */ e($e, { status: a, cpuLoad: p, memLoad: f, brandLabel: b })
|
|
2725
2758
|
}
|
|
2726
2759
|
);
|
|
2727
2760
|
}
|
|
2728
|
-
const
|
|
2729
|
-
function
|
|
2761
|
+
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);
|
|
2762
|
+
function dt(t) {
|
|
2730
2763
|
return Math.cos(t * Math.PI / 180) * 0.42 + 0.58;
|
|
2731
2764
|
}
|
|
2732
|
-
function
|
|
2765
|
+
function ni({
|
|
2733
2766
|
diskY: t,
|
|
2734
2767
|
diskIdx: n,
|
|
2735
2768
|
cfg: o,
|
|
@@ -2737,25 +2770,25 @@ function Gt({
|
|
|
2737
2770
|
capacity: r,
|
|
2738
2771
|
compact: a
|
|
2739
2772
|
}) {
|
|
2740
|
-
return /* @__PURE__ */
|
|
2741
|
-
|
|
2742
|
-
const h =
|
|
2773
|
+
return /* @__PURE__ */ c(Me, { children: [
|
|
2774
|
+
st.map((s, l) => {
|
|
2775
|
+
const h = dt(s), d = l === 0, p = Math.round(4 + h * 9), f = Math.round(12 + h * 22), b = Math.round(28 + h * 44), u = Math.round(h * 0.55 * 255).toString(16).padStart(2, "0");
|
|
2743
2776
|
return /* @__PURE__ */ e(
|
|
2744
2777
|
"div",
|
|
2745
2778
|
{
|
|
2746
2779
|
style: {
|
|
2747
2780
|
position: "absolute",
|
|
2748
|
-
width:
|
|
2749
|
-
height:
|
|
2750
|
-
left: (
|
|
2781
|
+
width: Ee,
|
|
2782
|
+
height: Oe,
|
|
2783
|
+
left: (te - Ee) / 2,
|
|
2751
2784
|
top: t,
|
|
2752
|
-
transform: `rotateY(${s}deg) translateZ(${
|
|
2785
|
+
transform: `rotateY(${s}deg) translateZ(${Se}px)`,
|
|
2753
2786
|
backfaceVisibility: "hidden",
|
|
2754
|
-
background:
|
|
2787
|
+
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},${b})`,
|
|
2755
2788
|
borderLeft: `1px solid ${o.color}${u}`,
|
|
2756
|
-
boxShadow:
|
|
2789
|
+
boxShadow: d ? `inset 0 0 18px ${o.color}28` : "none"
|
|
2757
2790
|
},
|
|
2758
|
-
children:
|
|
2791
|
+
children: d && /* @__PURE__ */ c(Me, { children: [
|
|
2759
2792
|
/* @__PURE__ */ e(
|
|
2760
2793
|
"div",
|
|
2761
2794
|
{
|
|
@@ -2803,15 +2836,15 @@ function Gt({
|
|
|
2803
2836
|
`p${n}${l}`
|
|
2804
2837
|
);
|
|
2805
2838
|
}),
|
|
2806
|
-
/* @__PURE__ */
|
|
2839
|
+
/* @__PURE__ */ c(
|
|
2807
2840
|
"div",
|
|
2808
2841
|
{
|
|
2809
2842
|
style: {
|
|
2810
2843
|
position: "absolute",
|
|
2811
|
-
width:
|
|
2812
|
-
height:
|
|
2844
|
+
width: te + 4,
|
|
2845
|
+
height: te + 4,
|
|
2813
2846
|
left: -2,
|
|
2814
|
-
top: t -
|
|
2847
|
+
top: t - Se,
|
|
2815
2848
|
borderRadius: "50%",
|
|
2816
2849
|
transform: "rotateX(90deg)",
|
|
2817
2850
|
backfaceVisibility: "hidden",
|
|
@@ -2869,10 +2902,10 @@ function Gt({
|
|
|
2869
2902
|
{
|
|
2870
2903
|
style: {
|
|
2871
2904
|
position: "absolute",
|
|
2872
|
-
width:
|
|
2873
|
-
height:
|
|
2905
|
+
width: te + 4,
|
|
2906
|
+
height: te + 4,
|
|
2874
2907
|
left: -2,
|
|
2875
|
-
top: t +
|
|
2908
|
+
top: t + Oe - Se,
|
|
2876
2909
|
borderRadius: "50%",
|
|
2877
2910
|
transform: "rotateX(-90deg)",
|
|
2878
2911
|
backfaceVisibility: "hidden",
|
|
@@ -2896,18 +2929,18 @@ function Gt({
|
|
|
2896
2929
|
)
|
|
2897
2930
|
}
|
|
2898
2931
|
),
|
|
2899
|
-
i &&
|
|
2900
|
-
const h =
|
|
2932
|
+
i && st.map((s, l) => {
|
|
2933
|
+
const h = dt(s);
|
|
2901
2934
|
return /* @__PURE__ */ e(
|
|
2902
2935
|
"div",
|
|
2903
2936
|
{
|
|
2904
2937
|
style: {
|
|
2905
2938
|
position: "absolute",
|
|
2906
|
-
width:
|
|
2939
|
+
width: Ee + 1.5,
|
|
2907
2940
|
height: 6,
|
|
2908
|
-
left: (
|
|
2909
|
-
top: t +
|
|
2910
|
-
transform: `rotateY(${s}deg) translateZ(${
|
|
2941
|
+
left: (te - Ee - 1.5) / 2,
|
|
2942
|
+
top: t + Oe - 3,
|
|
2943
|
+
transform: `rotateY(${s}deg) translateZ(${Se + 1.5}px)`,
|
|
2911
2944
|
backfaceVisibility: "hidden",
|
|
2912
2945
|
background: o.color,
|
|
2913
2946
|
boxShadow: `0 0 8px ${o.color}, 0 0 18px ${o.color}aa, 0 0 30px ${o.glow}`,
|
|
@@ -2917,20 +2950,20 @@ function Gt({
|
|
|
2917
2950
|
`rng${n}${l}`
|
|
2918
2951
|
);
|
|
2919
2952
|
}),
|
|
2920
|
-
i &&
|
|
2921
|
-
const h =
|
|
2953
|
+
i && st.map((s, l) => {
|
|
2954
|
+
const h = dt(s), d = Math.round(2 + h * 4), p = Math.round(5 + h * 10), f = Math.round(12 + h * 20);
|
|
2922
2955
|
return /* @__PURE__ */ e(
|
|
2923
2956
|
"div",
|
|
2924
2957
|
{
|
|
2925
2958
|
style: {
|
|
2926
2959
|
position: "absolute",
|
|
2927
|
-
width:
|
|
2928
|
-
height:
|
|
2929
|
-
left: (
|
|
2930
|
-
top: t +
|
|
2931
|
-
transform: `rotateY(${s}deg) translateZ(${
|
|
2960
|
+
width: Ee,
|
|
2961
|
+
height: gt,
|
|
2962
|
+
left: (te - Ee) / 2,
|
|
2963
|
+
top: t + Oe,
|
|
2964
|
+
transform: `rotateY(${s}deg) translateZ(${Se}px)`,
|
|
2932
2965
|
backfaceVisibility: "hidden",
|
|
2933
|
-
background: `rgb(${
|
|
2966
|
+
background: `rgb(${d},${p},${f})`
|
|
2934
2967
|
}
|
|
2935
2968
|
},
|
|
2936
2969
|
`gap${n}${l}`
|
|
@@ -2938,7 +2971,7 @@ function Gt({
|
|
|
2938
2971
|
})
|
|
2939
2972
|
] });
|
|
2940
2973
|
}
|
|
2941
|
-
function
|
|
2974
|
+
function Ue({
|
|
2942
2975
|
rotateX: t = -22,
|
|
2943
2976
|
rotateY: n = -15,
|
|
2944
2977
|
rotateZ: o = 0,
|
|
@@ -2950,26 +2983,26 @@ function Ne({
|
|
|
2950
2983
|
// connections = 284,
|
|
2951
2984
|
_compact: l
|
|
2952
2985
|
}) {
|
|
2953
|
-
const [h,
|
|
2954
|
-
|
|
2986
|
+
const [h, d] = R(n), p = ie(0), f = ie(0);
|
|
2987
|
+
ke(() => {
|
|
2955
2988
|
if (!r) {
|
|
2956
|
-
|
|
2989
|
+
d(n);
|
|
2957
2990
|
return;
|
|
2958
2991
|
}
|
|
2959
|
-
const u = (
|
|
2960
|
-
f.current &&
|
|
2992
|
+
const u = (g) => {
|
|
2993
|
+
f.current && d((m) => m + (g - f.current) * 0.027), f.current = g, p.current = requestAnimationFrame(u);
|
|
2961
2994
|
};
|
|
2962
2995
|
return p.current = requestAnimationFrame(u), () => {
|
|
2963
2996
|
cancelAnimationFrame(p.current), f.current = 0;
|
|
2964
2997
|
};
|
|
2965
2998
|
}, [r, n]);
|
|
2966
|
-
const
|
|
2967
|
-
return /* @__PURE__ */
|
|
2999
|
+
const b = C[a] ?? C.online;
|
|
3000
|
+
return /* @__PURE__ */ c(
|
|
2968
3001
|
"div",
|
|
2969
3002
|
{
|
|
2970
3003
|
style: {
|
|
2971
|
-
width:
|
|
2972
|
-
height:
|
|
3004
|
+
width: te * i,
|
|
3005
|
+
height: lt * i,
|
|
2973
3006
|
position: "relative",
|
|
2974
3007
|
display: "flex",
|
|
2975
3008
|
alignItems: "center",
|
|
@@ -2989,7 +3022,7 @@ function Ne({
|
|
|
2989
3022
|
animation: "holo-led-blink 1.5s infinite",
|
|
2990
3023
|
filter: `drop-shadow(0 0 10px ${a === "critical" ? "#ff2255" : "#ff8c00"})`
|
|
2991
3024
|
},
|
|
2992
|
-
children: /* @__PURE__ */
|
|
3025
|
+
children: /* @__PURE__ */ c("svg", { width: "44", height: "44", viewBox: "0 0 28 28", fill: "none", children: [
|
|
2993
3026
|
/* @__PURE__ */ e(
|
|
2994
3027
|
"path",
|
|
2995
3028
|
{
|
|
@@ -3029,9 +3062,9 @@ function Ne({
|
|
|
3029
3062
|
{
|
|
3030
3063
|
style: {
|
|
3031
3064
|
position: "absolute",
|
|
3032
|
-
width:
|
|
3033
|
-
height:
|
|
3034
|
-
background: `radial-gradient(ellipse, ${
|
|
3065
|
+
width: te * 2.8 * i,
|
|
3066
|
+
height: lt * 0.85 * i,
|
|
3067
|
+
background: `radial-gradient(ellipse, ${b.glow} 0%, transparent 65%)`,
|
|
3035
3068
|
filter: `blur(${Math.round(50 * i)}px)`,
|
|
3036
3069
|
pointerEvents: "none",
|
|
3037
3070
|
top: "45%",
|
|
@@ -3053,19 +3086,19 @@ function Ne({
|
|
|
3053
3086
|
"div",
|
|
3054
3087
|
{
|
|
3055
3088
|
style: {
|
|
3056
|
-
width:
|
|
3057
|
-
height:
|
|
3089
|
+
width: te,
|
|
3090
|
+
height: lt,
|
|
3058
3091
|
position: "relative",
|
|
3059
3092
|
transformStyle: "preserve-3d",
|
|
3060
3093
|
transform: `rotateX(${t}deg) rotateY(${h}deg) rotateZ(${o}deg)`,
|
|
3061
3094
|
transition: r ? "none" : "transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94)"
|
|
3062
3095
|
},
|
|
3063
3096
|
children: [0, 1, 2].map((u) => /* @__PURE__ */ e(
|
|
3064
|
-
|
|
3097
|
+
ni,
|
|
3065
3098
|
{
|
|
3066
|
-
diskY: u * (
|
|
3099
|
+
diskY: u * (Oe + gt),
|
|
3067
3100
|
diskIdx: u,
|
|
3068
|
-
cfg:
|
|
3101
|
+
cfg: b,
|
|
3069
3102
|
hasRingBelow: u < 2,
|
|
3070
3103
|
capacity: s,
|
|
3071
3104
|
compact: l
|
|
@@ -3080,7 +3113,7 @@ function Ne({
|
|
|
3080
3113
|
}
|
|
3081
3114
|
);
|
|
3082
3115
|
}
|
|
3083
|
-
function
|
|
3116
|
+
function zi({
|
|
3084
3117
|
ex: t,
|
|
3085
3118
|
ey: n,
|
|
3086
3119
|
compactOffset: o,
|
|
@@ -3090,15 +3123,15 @@ function Ii({
|
|
|
3090
3123
|
subLabel: s,
|
|
3091
3124
|
color: l,
|
|
3092
3125
|
delay: h,
|
|
3093
|
-
visibleAtPhase:
|
|
3126
|
+
visibleAtPhase: d,
|
|
3094
3127
|
capacity: p,
|
|
3095
3128
|
dialogMetrics: f,
|
|
3096
|
-
subComponents:
|
|
3129
|
+
subComponents: b,
|
|
3097
3130
|
graphSeries: u,
|
|
3098
|
-
alert:
|
|
3131
|
+
alert: g
|
|
3099
3132
|
}) {
|
|
3100
3133
|
return /* @__PURE__ */ e(
|
|
3101
|
-
|
|
3134
|
+
E,
|
|
3102
3135
|
{
|
|
3103
3136
|
ex: t,
|
|
3104
3137
|
ey: n,
|
|
@@ -3108,23 +3141,23 @@ function Ii({
|
|
|
3108
3141
|
subLabel: s,
|
|
3109
3142
|
color: l,
|
|
3110
3143
|
delay: h,
|
|
3111
|
-
visibleAtPhase:
|
|
3144
|
+
visibleAtPhase: d,
|
|
3112
3145
|
componentInfo: {
|
|
3113
3146
|
type: "database",
|
|
3114
3147
|
name: r,
|
|
3115
3148
|
status: a,
|
|
3116
3149
|
context: { capacity: p },
|
|
3117
3150
|
dialogMetrics: f,
|
|
3118
|
-
subComponents:
|
|
3151
|
+
subComponents: b,
|
|
3119
3152
|
graphSeries: u
|
|
3120
3153
|
},
|
|
3121
|
-
alert:
|
|
3122
|
-
children: /* @__PURE__ */ e(
|
|
3154
|
+
alert: g,
|
|
3155
|
+
children: /* @__PURE__ */ e(Ue, { status: a, capacity: p })
|
|
3123
3156
|
}
|
|
3124
3157
|
);
|
|
3125
3158
|
}
|
|
3126
|
-
function
|
|
3127
|
-
const i = (
|
|
3159
|
+
function yt({ status: t = "online", scale: n = 1 }) {
|
|
3160
|
+
const i = (C[t] ?? C.online).color;
|
|
3128
3161
|
return /* @__PURE__ */ e(
|
|
3129
3162
|
"div",
|
|
3130
3163
|
{
|
|
@@ -3135,7 +3168,7 @@ function nt({ status: t = "online", scale: n = 1 }) {
|
|
|
3135
3168
|
alignItems: "center",
|
|
3136
3169
|
justifyContent: "center"
|
|
3137
3170
|
},
|
|
3138
|
-
children: /* @__PURE__ */
|
|
3171
|
+
children: /* @__PURE__ */ c(
|
|
3139
3172
|
"div",
|
|
3140
3173
|
{
|
|
3141
3174
|
style: {
|
|
@@ -3148,7 +3181,7 @@ function nt({ status: t = "online", scale: n = 1 }) {
|
|
|
3148
3181
|
transformOrigin: "center center"
|
|
3149
3182
|
},
|
|
3150
3183
|
children: [
|
|
3151
|
-
/* @__PURE__ */
|
|
3184
|
+
/* @__PURE__ */ c("div", { style: { position: "relative", animation: "holo-float 4s ease-in-out infinite" }, children: [
|
|
3152
3185
|
/* @__PURE__ */ e(
|
|
3153
3186
|
"div",
|
|
3154
3187
|
{
|
|
@@ -3166,7 +3199,7 @@ function nt({ status: t = "online", scale: n = 1 }) {
|
|
|
3166
3199
|
}
|
|
3167
3200
|
}
|
|
3168
3201
|
),
|
|
3169
|
-
/* @__PURE__ */
|
|
3202
|
+
/* @__PURE__ */ c(
|
|
3170
3203
|
"svg",
|
|
3171
3204
|
{
|
|
3172
3205
|
width: "70",
|
|
@@ -3174,7 +3207,7 @@ function nt({ status: t = "online", scale: n = 1 }) {
|
|
|
3174
3207
|
viewBox: "0 0 70 75",
|
|
3175
3208
|
style: { display: "block", overflow: "visible" },
|
|
3176
3209
|
children: [
|
|
3177
|
-
/* @__PURE__ */ e("defs", { children: /* @__PURE__ */
|
|
3210
|
+
/* @__PURE__ */ e("defs", { children: /* @__PURE__ */ c("radialGradient", { id: `usr-glow-${t}`, cx: "50%", cy: "45%", r: "55%", children: [
|
|
3178
3211
|
/* @__PURE__ */ e("stop", { offset: "0%", stopColor: i, stopOpacity: "0.12" }),
|
|
3179
3212
|
/* @__PURE__ */ e("stop", { offset: "100%", stopColor: i, stopOpacity: "0" })
|
|
3180
3213
|
] }) }),
|
|
@@ -3235,7 +3268,7 @@ function nt({ status: t = "online", scale: n = 1 }) {
|
|
|
3235
3268
|
}
|
|
3236
3269
|
);
|
|
3237
3270
|
}
|
|
3238
|
-
function
|
|
3271
|
+
function Bi({
|
|
3239
3272
|
ex: t,
|
|
3240
3273
|
ey: n,
|
|
3241
3274
|
compactOffset: o,
|
|
@@ -3246,7 +3279,7 @@ function Oi({
|
|
|
3246
3279
|
visibleAtPhase: l
|
|
3247
3280
|
}) {
|
|
3248
3281
|
return /* @__PURE__ */ e(
|
|
3249
|
-
|
|
3282
|
+
E,
|
|
3250
3283
|
{
|
|
3251
3284
|
ex: t,
|
|
3252
3285
|
ey: n,
|
|
@@ -3254,12 +3287,12 @@ function Oi({
|
|
|
3254
3287
|
zIndex: i,
|
|
3255
3288
|
color: s,
|
|
3256
3289
|
visibleAtPhase: l,
|
|
3257
|
-
children: /* @__PURE__ */ e(
|
|
3290
|
+
children: /* @__PURE__ */ e(yt, { status: r, scale: a })
|
|
3258
3291
|
}
|
|
3259
3292
|
);
|
|
3260
3293
|
}
|
|
3261
|
-
const
|
|
3262
|
-
function
|
|
3294
|
+
const he = 190, Q = 72, Le = 120, Ae = ht(he, Q, Le);
|
|
3295
|
+
function oi({
|
|
3263
3296
|
cfg: t,
|
|
3264
3297
|
name: n,
|
|
3265
3298
|
traffic: o,
|
|
@@ -3267,13 +3300,13 @@ function Kt({
|
|
|
3267
3300
|
compact: r
|
|
3268
3301
|
}) {
|
|
3269
3302
|
const a = Math.ceil(o / 100 * 8), s = Array(8).fill(t.color);
|
|
3270
|
-
return /* @__PURE__ */
|
|
3303
|
+
return /* @__PURE__ */ c(
|
|
3271
3304
|
"div",
|
|
3272
3305
|
{
|
|
3273
3306
|
style: {
|
|
3274
|
-
width:
|
|
3275
|
-
height:
|
|
3276
|
-
background: r ?
|
|
3307
|
+
width: he,
|
|
3308
|
+
height: Q,
|
|
3309
|
+
background: r ? ze : ft,
|
|
3277
3310
|
position: "relative",
|
|
3278
3311
|
overflow: "hidden",
|
|
3279
3312
|
fontFamily: "'Courier New', monospace",
|
|
@@ -3295,7 +3328,7 @@ function Kt({
|
|
|
3295
3328
|
}
|
|
3296
3329
|
}
|
|
3297
3330
|
),
|
|
3298
|
-
/* @__PURE__ */
|
|
3331
|
+
/* @__PURE__ */ c(
|
|
3299
3332
|
"div",
|
|
3300
3333
|
{
|
|
3301
3334
|
style: {
|
|
@@ -3344,7 +3377,7 @@ function Kt({
|
|
|
3344
3377
|
]
|
|
3345
3378
|
}
|
|
3346
3379
|
),
|
|
3347
|
-
/* @__PURE__ */
|
|
3380
|
+
/* @__PURE__ */ c(
|
|
3348
3381
|
"div",
|
|
3349
3382
|
{
|
|
3350
3383
|
style: {
|
|
@@ -3359,15 +3392,15 @@ function Kt({
|
|
|
3359
3392
|
},
|
|
3360
3393
|
children: [
|
|
3361
3394
|
/* @__PURE__ */ e("div", { style: { display: "flex", gap: 3, alignItems: "center" }, children: Array.from({ length: 8 }, (l, h) => {
|
|
3362
|
-
const
|
|
3363
|
-
return /* @__PURE__ */
|
|
3395
|
+
const d = h < a, p = s[h];
|
|
3396
|
+
return /* @__PURE__ */ c(
|
|
3364
3397
|
"div",
|
|
3365
3398
|
{
|
|
3366
3399
|
style: {
|
|
3367
3400
|
width: 14,
|
|
3368
3401
|
height: 24,
|
|
3369
3402
|
background: "#03070f",
|
|
3370
|
-
border: `1px solid ${
|
|
3403
|
+
border: `1px solid ${d ? p + "66" : "#1a2d40"}`,
|
|
3371
3404
|
borderRadius: 1.5,
|
|
3372
3405
|
display: "flex",
|
|
3373
3406
|
flexDirection: "column",
|
|
@@ -3384,8 +3417,8 @@ function Kt({
|
|
|
3384
3417
|
width: 4,
|
|
3385
3418
|
height: 4,
|
|
3386
3419
|
borderRadius: "50%",
|
|
3387
|
-
background:
|
|
3388
|
-
boxShadow:
|
|
3420
|
+
background: d ? p : "#0a1830",
|
|
3421
|
+
boxShadow: d ? `0 0 5px ${p}, 0 0 10px ${p}88` : "none"
|
|
3389
3422
|
}
|
|
3390
3423
|
}
|
|
3391
3424
|
),
|
|
@@ -3408,9 +3441,9 @@ function Kt({
|
|
|
3408
3441
|
width: 4,
|
|
3409
3442
|
height: 4,
|
|
3410
3443
|
borderRadius: "50%",
|
|
3411
|
-
background:
|
|
3412
|
-
boxShadow:
|
|
3413
|
-
animation:
|
|
3444
|
+
background: d ? t.color : "#0a1830",
|
|
3445
|
+
boxShadow: d ? `0 0 5px ${t.color}` : "none",
|
|
3446
|
+
animation: d ? "holo-led-blink 1.8s linear infinite" : "none",
|
|
3414
3447
|
animationDelay: `${h * 0.2}s`
|
|
3415
3448
|
}
|
|
3416
3449
|
}
|
|
@@ -3430,11 +3463,11 @@ function Kt({
|
|
|
3430
3463
|
}
|
|
3431
3464
|
}
|
|
3432
3465
|
),
|
|
3433
|
-
/* @__PURE__ */
|
|
3434
|
-
/* @__PURE__ */
|
|
3435
|
-
/* @__PURE__ */
|
|
3466
|
+
/* @__PURE__ */ c("div", { style: { flex: 1, display: "flex", flexDirection: "column", gap: 5 }, children: [
|
|
3467
|
+
/* @__PURE__ */ c("div", { children: [
|
|
3468
|
+
/* @__PURE__ */ c("div", { style: { display: "flex", justifyContent: "space-between", marginBottom: 2 }, children: [
|
|
3436
3469
|
/* @__PURE__ */ e("span", { style: { fontSize: 6, color: "#2a5070", letterSpacing: "0.1em" }, children: "TRAFFIC" }),
|
|
3437
|
-
/* @__PURE__ */
|
|
3470
|
+
/* @__PURE__ */ c("span", { style: { fontSize: 6, color: t.color }, children: [
|
|
3438
3471
|
o,
|
|
3439
3472
|
"%"
|
|
3440
3473
|
] })
|
|
@@ -3464,9 +3497,9 @@ function Kt({
|
|
|
3464
3497
|
}
|
|
3465
3498
|
)
|
|
3466
3499
|
] }),
|
|
3467
|
-
/* @__PURE__ */
|
|
3500
|
+
/* @__PURE__ */ c("div", { style: { display: "flex", justifyContent: "space-between" }, children: [
|
|
3468
3501
|
/* @__PURE__ */ e("span", { style: { fontSize: 6, color: "#2a5070", letterSpacing: "0.1em" }, children: "ROUTES" }),
|
|
3469
|
-
/* @__PURE__ */
|
|
3502
|
+
/* @__PURE__ */ c("span", { style: { fontSize: 6, color: t.color }, children: [
|
|
3470
3503
|
i,
|
|
3471
3504
|
" active"
|
|
3472
3505
|
] })
|
|
@@ -3494,9 +3527,9 @@ function Kt({
|
|
|
3494
3527
|
{ label: "HTTP", val: Math.round(o * 12.4), unit: "req/s" },
|
|
3495
3528
|
{ label: "HTTPS", val: Math.round(o * 8.6), unit: "req/s" },
|
|
3496
3529
|
{ label: "WS", val: Math.round(i * 3), unit: "conn" }
|
|
3497
|
-
].map((l) => /* @__PURE__ */
|
|
3530
|
+
].map((l) => /* @__PURE__ */ c("div", { style: { display: "flex", gap: 3 }, children: [
|
|
3498
3531
|
/* @__PURE__ */ e("span", { style: { fontSize: 6, color: "#1e3a5a", letterSpacing: "0.08em" }, children: l.label }),
|
|
3499
|
-
/* @__PURE__ */
|
|
3532
|
+
/* @__PURE__ */ c("span", { style: { fontSize: 6, color: t.color + "88" }, children: [
|
|
3500
3533
|
l.val,
|
|
3501
3534
|
" ",
|
|
3502
3535
|
l.unit
|
|
@@ -3521,13 +3554,13 @@ function Kt({
|
|
|
3521
3554
|
}
|
|
3522
3555
|
);
|
|
3523
3556
|
}
|
|
3524
|
-
function
|
|
3525
|
-
return /* @__PURE__ */
|
|
3557
|
+
function ri() {
|
|
3558
|
+
return /* @__PURE__ */ c(
|
|
3526
3559
|
"div",
|
|
3527
3560
|
{
|
|
3528
3561
|
style: {
|
|
3529
|
-
width:
|
|
3530
|
-
height:
|
|
3562
|
+
width: he,
|
|
3563
|
+
height: Q,
|
|
3531
3564
|
background: "linear-gradient(180deg, #040c1a, #030810)",
|
|
3532
3565
|
position: "relative",
|
|
3533
3566
|
overflow: "hidden",
|
|
@@ -3542,7 +3575,7 @@ function Zt() {
|
|
|
3542
3575
|
{
|
|
3543
3576
|
style: {
|
|
3544
3577
|
width: 40,
|
|
3545
|
-
height:
|
|
3578
|
+
height: Q - 16,
|
|
3546
3579
|
background: "#020710",
|
|
3547
3580
|
border: "1px solid #1a2d40",
|
|
3548
3581
|
borderRadius: 2,
|
|
@@ -3598,7 +3631,7 @@ function Zt() {
|
|
|
3598
3631
|
style: {
|
|
3599
3632
|
marginLeft: "auto",
|
|
3600
3633
|
width: 12,
|
|
3601
|
-
height:
|
|
3634
|
+
height: Q - 16,
|
|
3602
3635
|
background: "#020710",
|
|
3603
3636
|
border: "1px solid #1a3050",
|
|
3604
3637
|
borderRadius: 1
|
|
@@ -3609,13 +3642,13 @@ function Zt() {
|
|
|
3609
3642
|
}
|
|
3610
3643
|
);
|
|
3611
3644
|
}
|
|
3612
|
-
function
|
|
3613
|
-
return /* @__PURE__ */
|
|
3645
|
+
function Ct({ side: t, color: n }) {
|
|
3646
|
+
return /* @__PURE__ */ c(
|
|
3614
3647
|
"div",
|
|
3615
3648
|
{
|
|
3616
3649
|
style: {
|
|
3617
|
-
width:
|
|
3618
|
-
height:
|
|
3650
|
+
width: Le,
|
|
3651
|
+
height: Q,
|
|
3619
3652
|
background: t === "right" ? "linear-gradient(90deg, #04091a 0%, #071428 60%, #040c1c 100%)" : "linear-gradient(90deg, #040c1c 0%, #071428 40%, #04091a 100%)",
|
|
3620
3653
|
position: "relative",
|
|
3621
3654
|
overflow: "hidden"
|
|
@@ -3639,8 +3672,8 @@ function ht({ side: t, color: n }) {
|
|
|
3639
3672
|
{
|
|
3640
3673
|
style: {
|
|
3641
3674
|
position: "absolute",
|
|
3642
|
-
top:
|
|
3643
|
-
bottom:
|
|
3675
|
+
top: Q * 0.25,
|
|
3676
|
+
bottom: Q * 0.25,
|
|
3644
3677
|
left: 14,
|
|
3645
3678
|
right: 14,
|
|
3646
3679
|
display: "flex",
|
|
@@ -3666,14 +3699,14 @@ function ht({ side: t, color: n }) {
|
|
|
3666
3699
|
}
|
|
3667
3700
|
);
|
|
3668
3701
|
}
|
|
3669
|
-
function
|
|
3670
|
-
const n = Math.floor((
|
|
3671
|
-
return /* @__PURE__ */
|
|
3702
|
+
function ai({ traffic: t }) {
|
|
3703
|
+
const n = Math.floor((Le - 14) / 7);
|
|
3704
|
+
return /* @__PURE__ */ c(
|
|
3672
3705
|
"div",
|
|
3673
3706
|
{
|
|
3674
3707
|
style: {
|
|
3675
|
-
width:
|
|
3676
|
-
height:
|
|
3708
|
+
width: he,
|
|
3709
|
+
height: Le,
|
|
3677
3710
|
background: "linear-gradient(180deg, #0c1c30 0%, #07101e 40%, #040c1a 100%)",
|
|
3678
3711
|
position: "relative",
|
|
3679
3712
|
overflow: "hidden"
|
|
@@ -3687,7 +3720,7 @@ function Jt({ traffic: t }) {
|
|
|
3687
3720
|
top: 0,
|
|
3688
3721
|
left: 0,
|
|
3689
3722
|
right: 0,
|
|
3690
|
-
height:
|
|
3723
|
+
height: Le * 0.35,
|
|
3691
3724
|
background: `radial-gradient(ellipse at 50% 0%,
|
|
3692
3725
|
${t > 70 ? "rgba(255,34,85,0.14)" : "rgba(0,229,255,0.08)"} 0%,
|
|
3693
3726
|
transparent 70%)`
|
|
@@ -3725,7 +3758,7 @@ function Jt({ traffic: t }) {
|
|
|
3725
3758
|
}
|
|
3726
3759
|
);
|
|
3727
3760
|
}
|
|
3728
|
-
function
|
|
3761
|
+
function mt({
|
|
3729
3762
|
rotateX: t = -20,
|
|
3730
3763
|
rotateY: n = 20,
|
|
3731
3764
|
rotateZ: o = 0,
|
|
@@ -3735,28 +3768,28 @@ function ot({
|
|
|
3735
3768
|
name: s = "WEB-DISP-01",
|
|
3736
3769
|
traffic: l = 78,
|
|
3737
3770
|
activeRoutes: h = 12,
|
|
3738
|
-
_compact:
|
|
3771
|
+
_compact: d
|
|
3739
3772
|
}) {
|
|
3740
|
-
const [p, f] = R(n),
|
|
3741
|
-
|
|
3773
|
+
const [p, f] = R(n), b = ie(0), u = ie(0);
|
|
3774
|
+
ke(() => {
|
|
3742
3775
|
if (!r) {
|
|
3743
3776
|
f(n);
|
|
3744
3777
|
return;
|
|
3745
3778
|
}
|
|
3746
|
-
const m = (
|
|
3747
|
-
u.current && f((
|
|
3779
|
+
const m = (w) => {
|
|
3780
|
+
u.current && f((v) => v + (w - u.current) * 0.027), u.current = w, b.current = requestAnimationFrame(m);
|
|
3748
3781
|
};
|
|
3749
|
-
return
|
|
3750
|
-
cancelAnimationFrame(
|
|
3782
|
+
return b.current = requestAnimationFrame(m), () => {
|
|
3783
|
+
cancelAnimationFrame(b.current), u.current = 0;
|
|
3751
3784
|
};
|
|
3752
3785
|
}, [r, n]);
|
|
3753
|
-
const
|
|
3754
|
-
return /* @__PURE__ */
|
|
3786
|
+
const g = C[a] ?? C.online;
|
|
3787
|
+
return /* @__PURE__ */ c(
|
|
3755
3788
|
"div",
|
|
3756
3789
|
{
|
|
3757
3790
|
style: {
|
|
3758
|
-
width:
|
|
3759
|
-
height:
|
|
3791
|
+
width: he * i,
|
|
3792
|
+
height: Q * i,
|
|
3760
3793
|
position: "relative",
|
|
3761
3794
|
display: "flex",
|
|
3762
3795
|
alignItems: "center",
|
|
@@ -3776,7 +3809,7 @@ function ot({
|
|
|
3776
3809
|
animation: "holo-led-blink 1.5s infinite",
|
|
3777
3810
|
filter: `drop-shadow(0 0 10px ${a === "critical" ? "#ff2255" : "#ff8c00"})`
|
|
3778
3811
|
},
|
|
3779
|
-
children: /* @__PURE__ */
|
|
3812
|
+
children: /* @__PURE__ */ c("svg", { width: "44", height: "44", viewBox: "0 0 28 28", fill: "none", children: [
|
|
3780
3813
|
/* @__PURE__ */ e(
|
|
3781
3814
|
"path",
|
|
3782
3815
|
{
|
|
@@ -3816,9 +3849,9 @@ function ot({
|
|
|
3816
3849
|
{
|
|
3817
3850
|
style: {
|
|
3818
3851
|
position: "absolute",
|
|
3819
|
-
width:
|
|
3820
|
-
height:
|
|
3821
|
-
background: `radial-gradient(ellipse, ${
|
|
3852
|
+
width: he * 1.3 * i,
|
|
3853
|
+
height: Q * 2 * i,
|
|
3854
|
+
background: `radial-gradient(ellipse, ${g.glow} 0%, transparent 65%)`,
|
|
3822
3855
|
filter: `blur(${Math.round(40 * i)}px)`,
|
|
3823
3856
|
pointerEvents: "none",
|
|
3824
3857
|
top: "40%",
|
|
@@ -3836,33 +3869,33 @@ function ot({
|
|
|
3836
3869
|
transform: `scale(${i})`,
|
|
3837
3870
|
transformOrigin: "center center"
|
|
3838
3871
|
},
|
|
3839
|
-
children: /* @__PURE__ */
|
|
3872
|
+
children: /* @__PURE__ */ c(
|
|
3840
3873
|
"div",
|
|
3841
3874
|
{
|
|
3842
3875
|
style: {
|
|
3843
|
-
width:
|
|
3844
|
-
height:
|
|
3876
|
+
width: he,
|
|
3877
|
+
height: Q,
|
|
3845
3878
|
position: "relative",
|
|
3846
3879
|
transformStyle: "preserve-3d",
|
|
3847
3880
|
transform: `rotateX(${t}deg) rotateY(${p}deg) rotateZ(${o}deg)`,
|
|
3848
3881
|
transition: r ? "none" : "transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94)"
|
|
3849
3882
|
},
|
|
3850
3883
|
children: [
|
|
3851
|
-
/* @__PURE__ */ e("div", { style:
|
|
3852
|
-
|
|
3884
|
+
/* @__PURE__ */ e("div", { style: Ae.front, children: /* @__PURE__ */ e(
|
|
3885
|
+
oi,
|
|
3853
3886
|
{
|
|
3854
|
-
cfg:
|
|
3887
|
+
cfg: g,
|
|
3855
3888
|
name: s,
|
|
3856
3889
|
traffic: l,
|
|
3857
3890
|
activeRoutes: h,
|
|
3858
|
-
compact:
|
|
3891
|
+
compact: d
|
|
3859
3892
|
}
|
|
3860
3893
|
) }),
|
|
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:
|
|
3894
|
+
/* @__PURE__ */ e("div", { style: Ae.back, children: /* @__PURE__ */ e(ri, {}) }),
|
|
3895
|
+
/* @__PURE__ */ e("div", { style: Ae.left, children: /* @__PURE__ */ e(Ct, { side: "left", color: g.color }) }),
|
|
3896
|
+
/* @__PURE__ */ e("div", { style: Ae.right, children: /* @__PURE__ */ e(Ct, { side: "right", color: g.color }) }),
|
|
3897
|
+
/* @__PURE__ */ e("div", { style: Ae.top, children: /* @__PURE__ */ e(ai, { traffic: l }) }),
|
|
3898
|
+
/* @__PURE__ */ e("div", { style: Ae.bottom, children: /* @__PURE__ */ e("div", { style: { width: he, height: Le, background: "#020508" } }) })
|
|
3866
3899
|
]
|
|
3867
3900
|
}
|
|
3868
3901
|
)
|
|
@@ -3872,7 +3905,7 @@ function ot({
|
|
|
3872
3905
|
}
|
|
3873
3906
|
);
|
|
3874
3907
|
}
|
|
3875
|
-
function
|
|
3908
|
+
function Fi({
|
|
3876
3909
|
ex: t,
|
|
3877
3910
|
ey: n,
|
|
3878
3911
|
compactOffset: o,
|
|
@@ -3882,16 +3915,16 @@ function Li({
|
|
|
3882
3915
|
subLabel: s,
|
|
3883
3916
|
color: l,
|
|
3884
3917
|
delay: h,
|
|
3885
|
-
visibleAtPhase:
|
|
3918
|
+
visibleAtPhase: d,
|
|
3886
3919
|
traffic: p,
|
|
3887
3920
|
activeRoutes: f,
|
|
3888
|
-
dialogMetrics:
|
|
3921
|
+
dialogMetrics: b,
|
|
3889
3922
|
subComponents: u,
|
|
3890
|
-
graphSeries:
|
|
3923
|
+
graphSeries: g,
|
|
3891
3924
|
alert: m
|
|
3892
3925
|
}) {
|
|
3893
3926
|
return /* @__PURE__ */ e(
|
|
3894
|
-
|
|
3927
|
+
E,
|
|
3895
3928
|
{
|
|
3896
3929
|
ex: t,
|
|
3897
3930
|
ey: n,
|
|
@@ -3901,28 +3934,28 @@ function Li({
|
|
|
3901
3934
|
subLabel: s,
|
|
3902
3935
|
color: l,
|
|
3903
3936
|
delay: h,
|
|
3904
|
-
visibleAtPhase:
|
|
3937
|
+
visibleAtPhase: d,
|
|
3905
3938
|
componentInfo: {
|
|
3906
3939
|
type: "dispatcher",
|
|
3907
3940
|
name: r,
|
|
3908
3941
|
status: a,
|
|
3909
3942
|
context: { traffic: p, activeRoutes: f },
|
|
3910
|
-
dialogMetrics:
|
|
3943
|
+
dialogMetrics: b,
|
|
3911
3944
|
subComponents: u,
|
|
3912
|
-
graphSeries:
|
|
3945
|
+
graphSeries: g
|
|
3913
3946
|
},
|
|
3914
3947
|
alert: m,
|
|
3915
|
-
children: /* @__PURE__ */ e(
|
|
3948
|
+
children: /* @__PURE__ */ e(mt, { status: a, traffic: p, activeRoutes: f })
|
|
3916
3949
|
}
|
|
3917
3950
|
);
|
|
3918
3951
|
}
|
|
3919
|
-
const
|
|
3952
|
+
const ue = 190, G = 72, Ie = 120, Te = ht(ue, G, Ie), Pt = {
|
|
3920
3953
|
online: { color: "#bb55ff", glow: "rgba(187,85,255,0.50)" },
|
|
3921
3954
|
warning: { color: "#ff8c00", glow: "rgba(255,140,0,0.50)" },
|
|
3922
3955
|
critical: { color: "#ff2255", glow: "rgba(255,34,85,0.50)" },
|
|
3923
3956
|
offline: { color: "#1e3a5a", glow: "rgba(30,58,90,0.25)" }
|
|
3924
3957
|
};
|
|
3925
|
-
function
|
|
3958
|
+
function li({
|
|
3926
3959
|
cfg: t,
|
|
3927
3960
|
name: n,
|
|
3928
3961
|
queueDepth: o,
|
|
@@ -3931,13 +3964,13 @@ function ei({
|
|
|
3931
3964
|
compact: a
|
|
3932
3965
|
}) {
|
|
3933
3966
|
const { color: s, glow: l } = t;
|
|
3934
|
-
return /* @__PURE__ */
|
|
3967
|
+
return /* @__PURE__ */ c(
|
|
3935
3968
|
"div",
|
|
3936
3969
|
{
|
|
3937
3970
|
style: {
|
|
3938
|
-
width:
|
|
3939
|
-
height:
|
|
3940
|
-
background: a ?
|
|
3971
|
+
width: ue,
|
|
3972
|
+
height: G,
|
|
3973
|
+
background: a ? ze : ft,
|
|
3941
3974
|
position: "relative",
|
|
3942
3975
|
overflow: "hidden",
|
|
3943
3976
|
fontFamily: "'Courier New', monospace",
|
|
@@ -3959,7 +3992,7 @@ function ei({
|
|
|
3959
3992
|
}
|
|
3960
3993
|
}
|
|
3961
3994
|
),
|
|
3962
|
-
/* @__PURE__ */
|
|
3995
|
+
/* @__PURE__ */ c(
|
|
3963
3996
|
"div",
|
|
3964
3997
|
{
|
|
3965
3998
|
style: {
|
|
@@ -4008,7 +4041,7 @@ function ei({
|
|
|
4008
4041
|
]
|
|
4009
4042
|
}
|
|
4010
4043
|
),
|
|
4011
|
-
/* @__PURE__ */
|
|
4044
|
+
/* @__PURE__ */ c(
|
|
4012
4045
|
"div",
|
|
4013
4046
|
{
|
|
4014
4047
|
style: {
|
|
@@ -4022,9 +4055,9 @@ function ei({
|
|
|
4022
4055
|
gap: 10
|
|
4023
4056
|
},
|
|
4024
4057
|
children: [
|
|
4025
|
-
/* @__PURE__ */ e("div", { style: { display: "flex", gap: 3, alignItems: "center" }, children: Array.from({ length: 5 }, (h,
|
|
4026
|
-
const p =
|
|
4027
|
-
return /* @__PURE__ */
|
|
4058
|
+
/* @__PURE__ */ e("div", { style: { display: "flex", gap: 3, alignItems: "center" }, children: Array.from({ length: 5 }, (h, d) => {
|
|
4059
|
+
const p = d < r;
|
|
4060
|
+
return /* @__PURE__ */ c(
|
|
4028
4061
|
"div",
|
|
4029
4062
|
{
|
|
4030
4063
|
style: {
|
|
@@ -4074,13 +4107,13 @@ function ei({
|
|
|
4074
4107
|
background: p ? s : "#0a1830",
|
|
4075
4108
|
boxShadow: p ? `0 0 5px ${s}` : "none",
|
|
4076
4109
|
animation: p ? "holo-led-blink 2.2s linear infinite" : "none",
|
|
4077
|
-
animationDelay: `${
|
|
4110
|
+
animationDelay: `${d * 0.28}s`
|
|
4078
4111
|
}
|
|
4079
4112
|
}
|
|
4080
4113
|
)
|
|
4081
4114
|
]
|
|
4082
4115
|
},
|
|
4083
|
-
|
|
4116
|
+
d
|
|
4084
4117
|
);
|
|
4085
4118
|
}) }),
|
|
4086
4119
|
/* @__PURE__ */ e(
|
|
@@ -4093,11 +4126,11 @@ function ei({
|
|
|
4093
4126
|
}
|
|
4094
4127
|
}
|
|
4095
4128
|
),
|
|
4096
|
-
/* @__PURE__ */
|
|
4097
|
-
/* @__PURE__ */
|
|
4098
|
-
/* @__PURE__ */
|
|
4129
|
+
/* @__PURE__ */ c("div", { style: { flex: 1, display: "flex", flexDirection: "column", gap: 5 }, children: [
|
|
4130
|
+
/* @__PURE__ */ c("div", { children: [
|
|
4131
|
+
/* @__PURE__ */ c("div", { style: { display: "flex", justifyContent: "space-between", marginBottom: 2 }, children: [
|
|
4099
4132
|
/* @__PURE__ */ e("span", { style: { fontSize: 6, color: "#2a5070", letterSpacing: "0.1em" }, children: "QUEUE" }),
|
|
4100
|
-
/* @__PURE__ */
|
|
4133
|
+
/* @__PURE__ */ c("span", { style: { fontSize: 6, color: s }, children: [
|
|
4101
4134
|
o,
|
|
4102
4135
|
"%"
|
|
4103
4136
|
] })
|
|
@@ -4127,7 +4160,7 @@ function ei({
|
|
|
4127
4160
|
}
|
|
4128
4161
|
)
|
|
4129
4162
|
] }),
|
|
4130
|
-
/* @__PURE__ */
|
|
4163
|
+
/* @__PURE__ */ c("div", { style: { display: "flex", justifyContent: "space-between" }, children: [
|
|
4131
4164
|
/* @__PURE__ */ e("span", { style: { fontSize: 6, color: "#2a5070", letterSpacing: "0.1em" }, children: "MSG/S" }),
|
|
4132
4165
|
/* @__PURE__ */ e("span", { style: { fontSize: 6, color: s }, children: i })
|
|
4133
4166
|
] })
|
|
@@ -4154,9 +4187,9 @@ function ei({
|
|
|
4154
4187
|
{ label: "INST", val: r, unit: "conn" },
|
|
4155
4188
|
{ label: "ENQUEUE", val: Math.round(o * 2.4), unit: "msgs" },
|
|
4156
4189
|
{ label: "DISP", val: Math.round(i * 0.1), unit: "/s" }
|
|
4157
|
-
].map((h) => /* @__PURE__ */
|
|
4190
|
+
].map((h) => /* @__PURE__ */ c("div", { style: { display: "flex", gap: 3 }, children: [
|
|
4158
4191
|
/* @__PURE__ */ e("span", { style: { fontSize: 6, color: "#1e3a5a", letterSpacing: "0.08em" }, children: h.label }),
|
|
4159
|
-
/* @__PURE__ */
|
|
4192
|
+
/* @__PURE__ */ c("span", { style: { fontSize: 6, color: s + "88" }, children: [
|
|
4160
4193
|
h.val,
|
|
4161
4194
|
" ",
|
|
4162
4195
|
h.unit
|
|
@@ -4181,13 +4214,13 @@ function ei({
|
|
|
4181
4214
|
}
|
|
4182
4215
|
);
|
|
4183
4216
|
}
|
|
4184
|
-
function
|
|
4185
|
-
return /* @__PURE__ */
|
|
4217
|
+
function si() {
|
|
4218
|
+
return /* @__PURE__ */ c(
|
|
4186
4219
|
"div",
|
|
4187
4220
|
{
|
|
4188
4221
|
style: {
|
|
4189
|
-
width:
|
|
4190
|
-
height:
|
|
4222
|
+
width: ue,
|
|
4223
|
+
height: G,
|
|
4191
4224
|
background: "linear-gradient(180deg, #040c1a, #030810)",
|
|
4192
4225
|
position: "relative",
|
|
4193
4226
|
overflow: "hidden",
|
|
@@ -4202,7 +4235,7 @@ function ti() {
|
|
|
4202
4235
|
{
|
|
4203
4236
|
style: {
|
|
4204
4237
|
width: 40,
|
|
4205
|
-
height:
|
|
4238
|
+
height: G - 16,
|
|
4206
4239
|
background: "#020710",
|
|
4207
4240
|
border: "1px solid #1a2d40",
|
|
4208
4241
|
borderRadius: 2,
|
|
@@ -4258,7 +4291,7 @@ function ti() {
|
|
|
4258
4291
|
style: {
|
|
4259
4292
|
marginLeft: "auto",
|
|
4260
4293
|
width: 12,
|
|
4261
|
-
height:
|
|
4294
|
+
height: G - 16,
|
|
4262
4295
|
background: "#020710",
|
|
4263
4296
|
border: "1px solid #1a3050",
|
|
4264
4297
|
borderRadius: 1
|
|
@@ -4269,13 +4302,13 @@ function ti() {
|
|
|
4269
4302
|
}
|
|
4270
4303
|
);
|
|
4271
4304
|
}
|
|
4272
|
-
function
|
|
4273
|
-
return /* @__PURE__ */
|
|
4305
|
+
function Et({ side: t, color: n }) {
|
|
4306
|
+
return /* @__PURE__ */ c(
|
|
4274
4307
|
"div",
|
|
4275
4308
|
{
|
|
4276
4309
|
style: {
|
|
4277
|
-
width:
|
|
4278
|
-
height:
|
|
4310
|
+
width: Ie,
|
|
4311
|
+
height: G,
|
|
4279
4312
|
background: t === "right" ? "linear-gradient(90deg, #04091a 0%, #071428 60%, #040c1c 100%)" : "linear-gradient(90deg, #040c1c 0%, #071428 40%, #04091a 100%)",
|
|
4280
4313
|
position: "relative",
|
|
4281
4314
|
overflow: "hidden"
|
|
@@ -4299,8 +4332,8 @@ function bt({ side: t, color: n }) {
|
|
|
4299
4332
|
{
|
|
4300
4333
|
style: {
|
|
4301
4334
|
position: "absolute",
|
|
4302
|
-
top:
|
|
4303
|
-
bottom:
|
|
4335
|
+
top: G * 0.25,
|
|
4336
|
+
bottom: G * 0.25,
|
|
4304
4337
|
left: 14,
|
|
4305
4338
|
right: 14,
|
|
4306
4339
|
display: "flex",
|
|
@@ -4326,14 +4359,14 @@ function bt({ side: t, color: n }) {
|
|
|
4326
4359
|
}
|
|
4327
4360
|
);
|
|
4328
4361
|
}
|
|
4329
|
-
function
|
|
4330
|
-
const o = Math.floor((
|
|
4331
|
-
return /* @__PURE__ */
|
|
4362
|
+
function di({ queueDepth: t, color: n }) {
|
|
4363
|
+
const o = Math.floor((Ie - 14) / 7);
|
|
4364
|
+
return /* @__PURE__ */ c(
|
|
4332
4365
|
"div",
|
|
4333
4366
|
{
|
|
4334
4367
|
style: {
|
|
4335
|
-
width:
|
|
4336
|
-
height:
|
|
4368
|
+
width: ue,
|
|
4369
|
+
height: Ie,
|
|
4337
4370
|
background: "linear-gradient(180deg, #0c1c30 0%, #07101e 40%, #040c1a 100%)",
|
|
4338
4371
|
position: "relative",
|
|
4339
4372
|
overflow: "hidden"
|
|
@@ -4347,7 +4380,7 @@ function ii({ queueDepth: t, color: n }) {
|
|
|
4347
4380
|
top: 0,
|
|
4348
4381
|
left: 0,
|
|
4349
4382
|
right: 0,
|
|
4350
|
-
height:
|
|
4383
|
+
height: Ie * 0.35,
|
|
4351
4384
|
background: `radial-gradient(ellipse at 50% 0%,
|
|
4352
4385
|
${t > 70 ? "rgba(255,34,85,0.14)" : `${n}15`} 0%,
|
|
4353
4386
|
transparent 70%)`
|
|
@@ -4385,7 +4418,7 @@ function ii({ queueDepth: t, color: n }) {
|
|
|
4385
4418
|
}
|
|
4386
4419
|
);
|
|
4387
4420
|
}
|
|
4388
|
-
function
|
|
4421
|
+
function Dt({
|
|
4389
4422
|
rotateX: t = -20,
|
|
4390
4423
|
rotateY: n = 20,
|
|
4391
4424
|
rotateZ: o = 0,
|
|
@@ -4395,29 +4428,29 @@ function wt({
|
|
|
4395
4428
|
name: s = "MSG-SRV-01",
|
|
4396
4429
|
queueDepth: l = 45,
|
|
4397
4430
|
msgsPerSec: h = 230,
|
|
4398
|
-
instances:
|
|
4431
|
+
instances: d = 3,
|
|
4399
4432
|
_compact: p
|
|
4400
4433
|
}) {
|
|
4401
|
-
const [f,
|
|
4402
|
-
|
|
4434
|
+
const [f, b] = R(n), u = ie(0), g = ie(0);
|
|
4435
|
+
ke(() => {
|
|
4403
4436
|
if (!r) {
|
|
4404
|
-
|
|
4437
|
+
b(n);
|
|
4405
4438
|
return;
|
|
4406
4439
|
}
|
|
4407
|
-
const
|
|
4408
|
-
|
|
4440
|
+
const w = (v) => {
|
|
4441
|
+
g.current && b((S) => S + (v - g.current) * 0.027), g.current = v, u.current = requestAnimationFrame(w);
|
|
4409
4442
|
};
|
|
4410
|
-
return u.current = requestAnimationFrame(
|
|
4411
|
-
cancelAnimationFrame(u.current),
|
|
4443
|
+
return u.current = requestAnimationFrame(w), () => {
|
|
4444
|
+
cancelAnimationFrame(u.current), g.current = 0;
|
|
4412
4445
|
};
|
|
4413
4446
|
}, [r, n]);
|
|
4414
|
-
const m =
|
|
4415
|
-
return /* @__PURE__ */
|
|
4447
|
+
const m = Pt[a] ?? Pt.online;
|
|
4448
|
+
return /* @__PURE__ */ c(
|
|
4416
4449
|
"div",
|
|
4417
4450
|
{
|
|
4418
4451
|
style: {
|
|
4419
|
-
width:
|
|
4420
|
-
height:
|
|
4452
|
+
width: ue * i,
|
|
4453
|
+
height: G * i,
|
|
4421
4454
|
position: "relative",
|
|
4422
4455
|
display: "flex",
|
|
4423
4456
|
alignItems: "center",
|
|
@@ -4437,7 +4470,7 @@ function wt({
|
|
|
4437
4470
|
animation: "holo-led-blink 1.5s infinite",
|
|
4438
4471
|
filter: `drop-shadow(0 0 10px ${a === "critical" ? "#ff2255" : "#ff8c00"})`
|
|
4439
4472
|
},
|
|
4440
|
-
children: /* @__PURE__ */
|
|
4473
|
+
children: /* @__PURE__ */ c("svg", { width: "44", height: "44", viewBox: "0 0 28 28", fill: "none", children: [
|
|
4441
4474
|
/* @__PURE__ */ e(
|
|
4442
4475
|
"path",
|
|
4443
4476
|
{
|
|
@@ -4477,8 +4510,8 @@ function wt({
|
|
|
4477
4510
|
{
|
|
4478
4511
|
style: {
|
|
4479
4512
|
position: "absolute",
|
|
4480
|
-
width:
|
|
4481
|
-
height:
|
|
4513
|
+
width: ue * 1.3 * i,
|
|
4514
|
+
height: G * 2 * i,
|
|
4482
4515
|
background: `radial-gradient(ellipse, ${m.glow} 0%, transparent 65%)`,
|
|
4483
4516
|
filter: `blur(${Math.round(40 * i)}px)`,
|
|
4484
4517
|
pointerEvents: "none",
|
|
@@ -4497,34 +4530,34 @@ function wt({
|
|
|
4497
4530
|
transform: `scale(${i})`,
|
|
4498
4531
|
transformOrigin: "center center"
|
|
4499
4532
|
},
|
|
4500
|
-
children: /* @__PURE__ */
|
|
4533
|
+
children: /* @__PURE__ */ c(
|
|
4501
4534
|
"div",
|
|
4502
4535
|
{
|
|
4503
4536
|
style: {
|
|
4504
|
-
width:
|
|
4505
|
-
height:
|
|
4537
|
+
width: ue,
|
|
4538
|
+
height: G,
|
|
4506
4539
|
position: "relative",
|
|
4507
4540
|
transformStyle: "preserve-3d",
|
|
4508
4541
|
transform: `rotateX(${t}deg) rotateY(${f}deg) rotateZ(${o}deg)`,
|
|
4509
4542
|
transition: r ? "none" : "transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94)"
|
|
4510
4543
|
},
|
|
4511
4544
|
children: [
|
|
4512
|
-
/* @__PURE__ */ e("div", { style:
|
|
4513
|
-
|
|
4545
|
+
/* @__PURE__ */ e("div", { style: Te.front, children: /* @__PURE__ */ e(
|
|
4546
|
+
li,
|
|
4514
4547
|
{
|
|
4515
4548
|
cfg: m,
|
|
4516
4549
|
name: s,
|
|
4517
4550
|
queueDepth: l,
|
|
4518
4551
|
msgsPerSec: h,
|
|
4519
|
-
instances:
|
|
4552
|
+
instances: d,
|
|
4520
4553
|
compact: p
|
|
4521
4554
|
}
|
|
4522
4555
|
) }),
|
|
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:
|
|
4556
|
+
/* @__PURE__ */ e("div", { style: Te.back, children: /* @__PURE__ */ e(si, {}) }),
|
|
4557
|
+
/* @__PURE__ */ e("div", { style: Te.left, children: /* @__PURE__ */ e(Et, { side: "left", color: m.color }) }),
|
|
4558
|
+
/* @__PURE__ */ e("div", { style: Te.right, children: /* @__PURE__ */ e(Et, { side: "right", color: m.color }) }),
|
|
4559
|
+
/* @__PURE__ */ e("div", { style: Te.top, children: /* @__PURE__ */ e(di, { queueDepth: l, color: m.color }) }),
|
|
4560
|
+
/* @__PURE__ */ e("div", { style: Te.bottom, children: /* @__PURE__ */ e("div", { style: { width: ue, height: Ie, background: "#020508" } }) })
|
|
4528
4561
|
]
|
|
4529
4562
|
}
|
|
4530
4563
|
)
|
|
@@ -4534,7 +4567,7 @@ function wt({
|
|
|
4534
4567
|
}
|
|
4535
4568
|
);
|
|
4536
4569
|
}
|
|
4537
|
-
function
|
|
4570
|
+
function Hi({
|
|
4538
4571
|
ex: t,
|
|
4539
4572
|
ey: n,
|
|
4540
4573
|
compactOffset: o,
|
|
@@ -4544,17 +4577,17 @@ function Di({
|
|
|
4544
4577
|
subLabel: s,
|
|
4545
4578
|
color: l,
|
|
4546
4579
|
delay: h,
|
|
4547
|
-
visibleAtPhase:
|
|
4580
|
+
visibleAtPhase: d,
|
|
4548
4581
|
queueDepth: p,
|
|
4549
4582
|
msgsPerSec: f,
|
|
4550
|
-
instances:
|
|
4583
|
+
instances: b,
|
|
4551
4584
|
dialogMetrics: u,
|
|
4552
|
-
subComponents:
|
|
4585
|
+
subComponents: g,
|
|
4553
4586
|
graphSeries: m,
|
|
4554
|
-
alert:
|
|
4587
|
+
alert: w
|
|
4555
4588
|
}) {
|
|
4556
4589
|
return /* @__PURE__ */ e(
|
|
4557
|
-
|
|
4590
|
+
E,
|
|
4558
4591
|
{
|
|
4559
4592
|
ex: t,
|
|
4560
4593
|
ey: n,
|
|
@@ -4564,24 +4597,24 @@ function Di({
|
|
|
4564
4597
|
subLabel: s,
|
|
4565
4598
|
color: l,
|
|
4566
4599
|
delay: h,
|
|
4567
|
-
visibleAtPhase:
|
|
4600
|
+
visibleAtPhase: d,
|
|
4568
4601
|
componentInfo: {
|
|
4569
4602
|
type: "messageServer",
|
|
4570
4603
|
name: r,
|
|
4571
4604
|
status: a,
|
|
4572
|
-
context: { queueDepth: p, msgsPerSec: f, instances:
|
|
4605
|
+
context: { queueDepth: p, msgsPerSec: f, instances: b },
|
|
4573
4606
|
dialogMetrics: u,
|
|
4574
|
-
subComponents:
|
|
4607
|
+
subComponents: g,
|
|
4575
4608
|
graphSeries: m
|
|
4576
4609
|
},
|
|
4577
|
-
alert:
|
|
4610
|
+
alert: w,
|
|
4578
4611
|
children: /* @__PURE__ */ e(
|
|
4579
|
-
|
|
4612
|
+
Dt,
|
|
4580
4613
|
{
|
|
4581
4614
|
status: a,
|
|
4582
4615
|
queueDepth: p,
|
|
4583
4616
|
msgsPerSec: f,
|
|
4584
|
-
instances:
|
|
4617
|
+
instances: b
|
|
4585
4618
|
}
|
|
4586
4619
|
)
|
|
4587
4620
|
}
|
|
@@ -4593,10 +4626,10 @@ function O(t, n, o = 24) {
|
|
|
4593
4626
|
return Math.min(100, Math.max(0, t + Math.sin(a * Math.PI * 2) * n + (Math.random() - 0.5) * 10));
|
|
4594
4627
|
});
|
|
4595
4628
|
}
|
|
4596
|
-
function
|
|
4629
|
+
function ci({ data: t, color: n, height: o = 28 }) {
|
|
4597
4630
|
const r = o, a = Math.max(...t, 1), s = t.map((l, h) => {
|
|
4598
|
-
const
|
|
4599
|
-
return `${
|
|
4631
|
+
const d = h / (t.length - 1) * 120, p = r - l / a * (r - 4) - 2;
|
|
4632
|
+
return `${d},${p}`;
|
|
4600
4633
|
}).join(" ");
|
|
4601
4634
|
return /* @__PURE__ */ e("svg", { width: 120, height: r, style: { display: "block", overflow: "visible" }, children: /* @__PURE__ */ e(
|
|
4602
4635
|
"polyline",
|
|
@@ -4611,7 +4644,7 @@ function ni({ data: t, color: n, height: o = 28 }) {
|
|
|
4611
4644
|
}
|
|
4612
4645
|
) });
|
|
4613
4646
|
}
|
|
4614
|
-
function
|
|
4647
|
+
function pi({
|
|
4615
4648
|
type: t,
|
|
4616
4649
|
name: n,
|
|
4617
4650
|
context: o = {},
|
|
@@ -4619,8 +4652,8 @@ function oi({
|
|
|
4619
4652
|
animPhase: r,
|
|
4620
4653
|
series: a
|
|
4621
4654
|
}) {
|
|
4622
|
-
const s = i === "critical" || i === "offline" ? "#ff2255" : i === "warning" ? "#ff8c00" : "#00e5ff", l = a ? a.map((p) => ({ ...p })) :
|
|
4623
|
-
return /* @__PURE__ */
|
|
4655
|
+
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;
|
|
4656
|
+
return /* @__PURE__ */ c(
|
|
4624
4657
|
"div",
|
|
4625
4658
|
{
|
|
4626
4659
|
style: {
|
|
@@ -4634,11 +4667,11 @@ function oi({
|
|
|
4634
4667
|
flexDirection: "column",
|
|
4635
4668
|
overflow: "hidden",
|
|
4636
4669
|
transform: `translateX(${h}px)`,
|
|
4637
|
-
opacity:
|
|
4670
|
+
opacity: d,
|
|
4638
4671
|
transition: "transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease"
|
|
4639
4672
|
},
|
|
4640
4673
|
children: [
|
|
4641
|
-
/* @__PURE__ */
|
|
4674
|
+
/* @__PURE__ */ c(
|
|
4642
4675
|
"div",
|
|
4643
4676
|
{
|
|
4644
4677
|
style: {
|
|
@@ -4648,14 +4681,14 @@ function oi({
|
|
|
4648
4681
|
},
|
|
4649
4682
|
children: [
|
|
4650
4683
|
/* @__PURE__ */ e("div", { style: { fontSize: 10, color: s + "cc", letterSpacing: "0.12em", fontFamily: "'Courier New', monospace" }, children: "HISTORICAL" }),
|
|
4651
|
-
/* @__PURE__ */
|
|
4684
|
+
/* @__PURE__ */ c("div", { style: { fontSize: 12, fontWeight: 700, color: "#fff", letterSpacing: "0.06em", marginTop: 2, fontFamily: "'Courier New', monospace" }, children: [
|
|
4652
4685
|
n,
|
|
4653
4686
|
" · Sub-components"
|
|
4654
4687
|
] })
|
|
4655
4688
|
]
|
|
4656
4689
|
}
|
|
4657
4690
|
),
|
|
4658
|
-
/* @__PURE__ */ e("div", { style: { flex: 1, overflowY: "auto", padding: "12px 10px", display: "flex", flexDirection: "column", gap: 16 }, children: l.map((p, f) => /* @__PURE__ */
|
|
4691
|
+
/* @__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
4692
|
"div",
|
|
4660
4693
|
{
|
|
4661
4694
|
style: {
|
|
@@ -4667,14 +4700,14 @@ function oi({
|
|
|
4667
4700
|
opacity: r >= 0.5 ? 1 : 0
|
|
4668
4701
|
},
|
|
4669
4702
|
children: [
|
|
4670
|
-
/* @__PURE__ */
|
|
4703
|
+
/* @__PURE__ */ c("div", { style: { display: "flex", justifyContent: "space-between", alignItems: "center", marginBottom: 6 }, children: [
|
|
4671
4704
|
/* @__PURE__ */ e("span", { style: { fontSize: 9, fontWeight: 600, color: p.color, letterSpacing: "0.08em", fontFamily: "'Courier New', monospace" }, children: p.label }),
|
|
4672
|
-
/* @__PURE__ */
|
|
4705
|
+
/* @__PURE__ */ c("span", { style: { fontSize: 8, color: p.color + "99", fontFamily: "'Courier New', monospace" }, children: [
|
|
4673
4706
|
Math.round(p.data[p.data.length - 1] ?? 0),
|
|
4674
4707
|
p.unit
|
|
4675
4708
|
] })
|
|
4676
4709
|
] }),
|
|
4677
|
-
/* @__PURE__ */ e(
|
|
4710
|
+
/* @__PURE__ */ e(ci, { data: p.data, color: p.color, height: 26 })
|
|
4678
4711
|
]
|
|
4679
4712
|
},
|
|
4680
4713
|
p.id
|
|
@@ -4683,7 +4716,7 @@ function oi({
|
|
|
4683
4716
|
}
|
|
4684
4717
|
);
|
|
4685
4718
|
}
|
|
4686
|
-
function
|
|
4719
|
+
function fi(t, n) {
|
|
4687
4720
|
if (t === "server") {
|
|
4688
4721
|
const o = n.cpuLoad ?? 50, i = n.memLoad ?? 60;
|
|
4689
4722
|
return [
|
|
@@ -4719,7 +4752,7 @@ function ri(t, n) {
|
|
|
4719
4752
|
}
|
|
4720
4753
|
return [];
|
|
4721
4754
|
}
|
|
4722
|
-
function
|
|
4755
|
+
function Nt({
|
|
4723
4756
|
w: t,
|
|
4724
4757
|
h: n,
|
|
4725
4758
|
color: o,
|
|
@@ -4728,14 +4761,14 @@ function St({
|
|
|
4728
4761
|
delay: a = "0s",
|
|
4729
4762
|
children: s
|
|
4730
4763
|
}) {
|
|
4731
|
-
const l = r ?
|
|
4732
|
-
return /* @__PURE__ */
|
|
4764
|
+
const l = r ? C[r]?.glow ?? "rgba(0,229,255,0.4)" : "rgba(0,229,255,0.4)";
|
|
4765
|
+
return /* @__PURE__ */ c(
|
|
4733
4766
|
"div",
|
|
4734
4767
|
{
|
|
4735
4768
|
style: {
|
|
4736
4769
|
width: t,
|
|
4737
4770
|
height: n,
|
|
4738
|
-
background:
|
|
4771
|
+
background: ze,
|
|
4739
4772
|
position: "relative",
|
|
4740
4773
|
overflow: "hidden",
|
|
4741
4774
|
borderRadius: 2,
|
|
@@ -4769,8 +4802,8 @@ function St({
|
|
|
4769
4802
|
width: 4,
|
|
4770
4803
|
height: 4,
|
|
4771
4804
|
borderRadius: "50%",
|
|
4772
|
-
background:
|
|
4773
|
-
boxShadow: `0 0 6px ${
|
|
4805
|
+
background: C[r]?.color,
|
|
4806
|
+
boxShadow: `0 0 6px ${C[r]?.color}`,
|
|
4774
4807
|
animation: "holo-led-blink 1.2s infinite"
|
|
4775
4808
|
}
|
|
4776
4809
|
}
|
|
@@ -4812,20 +4845,20 @@ function St({
|
|
|
4812
4845
|
}
|
|
4813
4846
|
);
|
|
4814
4847
|
}
|
|
4815
|
-
function
|
|
4848
|
+
function Ke({
|
|
4816
4849
|
color: t = "#00e5ff",
|
|
4817
4850
|
label: n = "CPU-0",
|
|
4818
4851
|
status: o = "online",
|
|
4819
4852
|
load: i = 0
|
|
4820
4853
|
}) {
|
|
4821
|
-
return /* @__PURE__ */
|
|
4822
|
-
/* @__PURE__ */
|
|
4854
|
+
return /* @__PURE__ */ c("div", { style: { position: "relative", width: 52, height: 36 }, children: [
|
|
4855
|
+
/* @__PURE__ */ c(
|
|
4823
4856
|
"div",
|
|
4824
4857
|
{
|
|
4825
4858
|
style: {
|
|
4826
4859
|
width: 52,
|
|
4827
4860
|
height: 36,
|
|
4828
|
-
background:
|
|
4861
|
+
background: ze,
|
|
4829
4862
|
position: "relative",
|
|
4830
4863
|
borderRadius: 2,
|
|
4831
4864
|
border: `1px solid ${t}55`,
|
|
@@ -4896,8 +4929,8 @@ function ze({
|
|
|
4896
4929
|
width: 4,
|
|
4897
4930
|
height: 4,
|
|
4898
4931
|
borderRadius: "50%",
|
|
4899
|
-
background:
|
|
4900
|
-
boxShadow: `0 0 6px ${
|
|
4932
|
+
background: C[o]?.color,
|
|
4933
|
+
boxShadow: `0 0 6px ${C[o]?.color}`,
|
|
4901
4934
|
animation: "holo-led-blink 1.2s infinite"
|
|
4902
4935
|
}
|
|
4903
4936
|
}
|
|
@@ -4923,14 +4956,14 @@ function ze({
|
|
|
4923
4956
|
)
|
|
4924
4957
|
] });
|
|
4925
4958
|
}
|
|
4926
|
-
function
|
|
4959
|
+
function Ze({
|
|
4927
4960
|
color: t = "#00e5ff",
|
|
4928
4961
|
label: n = "HEAP-0",
|
|
4929
4962
|
status: o = "online",
|
|
4930
4963
|
usedPercent: i = 0
|
|
4931
4964
|
}) {
|
|
4932
|
-
return /* @__PURE__ */
|
|
4933
|
-
/* @__PURE__ */
|
|
4965
|
+
return /* @__PURE__ */ c("div", { style: { position: "relative", width: 28, height: 48 }, children: [
|
|
4966
|
+
/* @__PURE__ */ c(
|
|
4934
4967
|
"div",
|
|
4935
4968
|
{
|
|
4936
4969
|
style: {
|
|
@@ -4994,7 +5027,7 @@ function Be({
|
|
|
4994
5027
|
width: 3,
|
|
4995
5028
|
height: 3,
|
|
4996
5029
|
borderRadius: "50%",
|
|
4997
|
-
background:
|
|
5030
|
+
background: C[o]?.color,
|
|
4998
5031
|
animation: "holo-led-blink 1.2s infinite"
|
|
4999
5032
|
}
|
|
5000
5033
|
}
|
|
@@ -5020,13 +5053,13 @@ function Be({
|
|
|
5020
5053
|
)
|
|
5021
5054
|
] });
|
|
5022
5055
|
}
|
|
5023
|
-
function
|
|
5056
|
+
function De({
|
|
5024
5057
|
color: t = "#00e5ff",
|
|
5025
5058
|
label: n = "DRIVE-1",
|
|
5026
5059
|
status: o = "online",
|
|
5027
5060
|
activity: i = !1
|
|
5028
5061
|
}) {
|
|
5029
|
-
return /* @__PURE__ */
|
|
5062
|
+
return /* @__PURE__ */ c(Nt, { w: 56, h: 22, color: t, label: n, status: o, children: [
|
|
5030
5063
|
/* @__PURE__ */ e(
|
|
5031
5064
|
"div",
|
|
5032
5065
|
{
|
|
@@ -5059,18 +5092,18 @@ function Re({
|
|
|
5059
5092
|
)
|
|
5060
5093
|
] });
|
|
5061
5094
|
}
|
|
5062
|
-
function
|
|
5095
|
+
function Wt({
|
|
5063
5096
|
color: t = "#00e5ff",
|
|
5064
5097
|
label: n = "NET",
|
|
5065
5098
|
status: o = "online"
|
|
5066
5099
|
}) {
|
|
5067
|
-
return /* @__PURE__ */
|
|
5100
|
+
return /* @__PURE__ */ c(
|
|
5068
5101
|
"div",
|
|
5069
5102
|
{
|
|
5070
5103
|
style: {
|
|
5071
5104
|
width: 48,
|
|
5072
5105
|
height: 28,
|
|
5073
|
-
background:
|
|
5106
|
+
background: ze,
|
|
5074
5107
|
position: "relative",
|
|
5075
5108
|
borderRadius: 2,
|
|
5076
5109
|
border: `1px solid ${t}44`,
|
|
@@ -5123,21 +5156,21 @@ function $t({
|
|
|
5123
5156
|
}
|
|
5124
5157
|
);
|
|
5125
5158
|
}
|
|
5126
|
-
function
|
|
5159
|
+
function W({
|
|
5127
5160
|
color: t = "#00e5ff",
|
|
5128
5161
|
label: n = "THREAD",
|
|
5129
5162
|
status: o = "online"
|
|
5130
5163
|
}) {
|
|
5131
|
-
return /* @__PURE__ */ e(
|
|
5164
|
+
return /* @__PURE__ */ e(Nt, { w: 44, h: 28, color: t, label: n, status: o });
|
|
5132
5165
|
}
|
|
5133
|
-
function
|
|
5166
|
+
function Qe({
|
|
5134
5167
|
color: t = "#ff8c00",
|
|
5135
5168
|
label: n = "PLATTER-0",
|
|
5136
5169
|
status: o = "online",
|
|
5137
5170
|
capacityPercent: i = 0
|
|
5138
5171
|
}) {
|
|
5139
|
-
return /* @__PURE__ */
|
|
5140
|
-
/* @__PURE__ */
|
|
5172
|
+
return /* @__PURE__ */ c("div", { style: { position: "relative", width: 48, height: 62 }, children: [
|
|
5173
|
+
/* @__PURE__ */ c(
|
|
5141
5174
|
"div",
|
|
5142
5175
|
{
|
|
5143
5176
|
style: {
|
|
@@ -5188,7 +5221,7 @@ function Me({
|
|
|
5188
5221
|
width: 4,
|
|
5189
5222
|
height: 4,
|
|
5190
5223
|
borderRadius: "50%",
|
|
5191
|
-
background:
|
|
5224
|
+
background: C[o]?.color,
|
|
5192
5225
|
animation: "holo-led-blink 1.2s infinite"
|
|
5193
5226
|
}
|
|
5194
5227
|
}
|
|
@@ -5214,12 +5247,12 @@ function Me({
|
|
|
5214
5247
|
)
|
|
5215
5248
|
] });
|
|
5216
5249
|
}
|
|
5217
|
-
function
|
|
5250
|
+
function Y({
|
|
5218
5251
|
color: t = "#00e5ff",
|
|
5219
5252
|
label: n = "PORT-1",
|
|
5220
5253
|
status: o = "online"
|
|
5221
5254
|
}) {
|
|
5222
|
-
return /* @__PURE__ */
|
|
5255
|
+
return /* @__PURE__ */ c(
|
|
5223
5256
|
"div",
|
|
5224
5257
|
{
|
|
5225
5258
|
style: {
|
|
@@ -5243,7 +5276,7 @@ function F({
|
|
|
5243
5276
|
width: 4,
|
|
5244
5277
|
height: 4,
|
|
5245
5278
|
borderRadius: "50%",
|
|
5246
|
-
background: o && o !== "online" ?
|
|
5279
|
+
background: o && o !== "online" ? C[o]?.color ?? t : t,
|
|
5247
5280
|
boxShadow: `0 0 4px ${t}`,
|
|
5248
5281
|
animation: o && o !== "online" && o !== "offline" ? "holo-led-blink 1s infinite" : "none"
|
|
5249
5282
|
}
|
|
@@ -5284,7 +5317,7 @@ function F({
|
|
|
5284
5317
|
}
|
|
5285
5318
|
);
|
|
5286
5319
|
}
|
|
5287
|
-
function
|
|
5320
|
+
function hi(t, n, o, i) {
|
|
5288
5321
|
const r = o === "online" ? "online" : o;
|
|
5289
5322
|
return t === "server" ? [
|
|
5290
5323
|
{
|
|
@@ -5388,8 +5421,8 @@ function ai(t, n, o, i) {
|
|
|
5388
5421
|
}
|
|
5389
5422
|
] : [];
|
|
5390
5423
|
}
|
|
5391
|
-
const
|
|
5392
|
-
function
|
|
5424
|
+
const I = "cubic-bezier(0.34, 1.56, 0.64, 1)", ui = "cubic-bezier(0.16, 1, 0.3, 1)";
|
|
5425
|
+
function bi({ items: t, revealPhase: n }) {
|
|
5393
5426
|
return /* @__PURE__ */ e(
|
|
5394
5427
|
"div",
|
|
5395
5428
|
{
|
|
@@ -5407,7 +5440,7 @@ function si({ items: t, revealPhase: n }) {
|
|
|
5407
5440
|
style: {
|
|
5408
5441
|
opacity: n >= 0.2 + i * 0.06 ? 1 : 0,
|
|
5409
5442
|
transform: `scale(${n >= 0.2 + i * 0.06 ? 1 : 0.6})`,
|
|
5410
|
-
transition: `opacity 0.4s ${
|
|
5443
|
+
transition: `opacity 0.4s ${I} ${i * 0.06}s, transform 0.45s ${I} ${i * 0.06}s`
|
|
5411
5444
|
},
|
|
5412
5445
|
children: o.element
|
|
5413
5446
|
},
|
|
@@ -5416,21 +5449,21 @@ function si({ items: t, revealPhase: n }) {
|
|
|
5416
5449
|
}
|
|
5417
5450
|
);
|
|
5418
5451
|
}
|
|
5419
|
-
function
|
|
5452
|
+
function gi({
|
|
5420
5453
|
type: t,
|
|
5421
5454
|
status: n,
|
|
5422
5455
|
context: o,
|
|
5423
5456
|
internal: i,
|
|
5424
5457
|
revealPhase: r
|
|
5425
5458
|
}) {
|
|
5426
|
-
const a =
|
|
5459
|
+
const a = C[n]?.color ?? C.online.color, s = "#ff8c00";
|
|
5427
5460
|
if (t === "server") {
|
|
5428
|
-
const l = o.cpuLoad ?? 50, h = o.memLoad ?? 60,
|
|
5461
|
+
const l = o.cpuLoad ?? 50, h = o.memLoad ?? 60, d = [
|
|
5429
5462
|
{
|
|
5430
5463
|
key: "cpu0",
|
|
5431
5464
|
delay: 0,
|
|
5432
5465
|
el: /* @__PURE__ */ e(
|
|
5433
|
-
|
|
5466
|
+
Ke,
|
|
5434
5467
|
{
|
|
5435
5468
|
color: a,
|
|
5436
5469
|
label: "CPU-0",
|
|
@@ -5444,7 +5477,7 @@ function di({
|
|
|
5444
5477
|
key: "cpu1",
|
|
5445
5478
|
delay: 1,
|
|
5446
5479
|
el: /* @__PURE__ */ e(
|
|
5447
|
-
|
|
5480
|
+
Ke,
|
|
5448
5481
|
{
|
|
5449
5482
|
color: a,
|
|
5450
5483
|
label: "CPU-1",
|
|
@@ -5458,7 +5491,7 @@ function di({
|
|
|
5458
5491
|
key: "heap0",
|
|
5459
5492
|
delay: 2,
|
|
5460
5493
|
el: /* @__PURE__ */ e(
|
|
5461
|
-
|
|
5494
|
+
Ze,
|
|
5462
5495
|
{
|
|
5463
5496
|
color: "#8855ee",
|
|
5464
5497
|
label: "HEAP-0",
|
|
@@ -5472,7 +5505,7 @@ function di({
|
|
|
5472
5505
|
key: "heap1",
|
|
5473
5506
|
delay: 3,
|
|
5474
5507
|
el: /* @__PURE__ */ e(
|
|
5475
|
-
|
|
5508
|
+
Ze,
|
|
5476
5509
|
{
|
|
5477
5510
|
color: "#8855ee",
|
|
5478
5511
|
label: "HEAP-1",
|
|
@@ -5485,13 +5518,13 @@ function di({
|
|
|
5485
5518
|
{
|
|
5486
5519
|
key: "d1",
|
|
5487
5520
|
delay: 4,
|
|
5488
|
-
el: /* @__PURE__ */ e(
|
|
5521
|
+
el: /* @__PURE__ */ e(De, { color: a, label: "DRIVE-1", status: i[4]?.status, activity: !0 })
|
|
5489
5522
|
},
|
|
5490
5523
|
{
|
|
5491
5524
|
key: "d2",
|
|
5492
5525
|
delay: 5,
|
|
5493
5526
|
el: /* @__PURE__ */ e(
|
|
5494
|
-
|
|
5527
|
+
De,
|
|
5495
5528
|
{
|
|
5496
5529
|
color: a,
|
|
5497
5530
|
label: "DRIVE-2",
|
|
@@ -5504,7 +5537,7 @@ function di({
|
|
|
5504
5537
|
key: "d3",
|
|
5505
5538
|
delay: 6,
|
|
5506
5539
|
el: /* @__PURE__ */ e(
|
|
5507
|
-
|
|
5540
|
+
De,
|
|
5508
5541
|
{
|
|
5509
5542
|
color: a,
|
|
5510
5543
|
label: "DRIVE-3",
|
|
@@ -5516,12 +5549,12 @@ function di({
|
|
|
5516
5549
|
{
|
|
5517
5550
|
key: "thread",
|
|
5518
5551
|
delay: 7,
|
|
5519
|
-
el: /* @__PURE__ */ e(
|
|
5552
|
+
el: /* @__PURE__ */ e(W, { color: a, label: "THREAD-POOL", status: i[7]?.status })
|
|
5520
5553
|
},
|
|
5521
5554
|
{
|
|
5522
5555
|
key: "net",
|
|
5523
5556
|
delay: 8,
|
|
5524
|
-
el: /* @__PURE__ */ e(
|
|
5557
|
+
el: /* @__PURE__ */ e(Wt, { color: a, label: "NET", status: i[8]?.status })
|
|
5525
5558
|
}
|
|
5526
5559
|
];
|
|
5527
5560
|
return /* @__PURE__ */ e(
|
|
@@ -5535,15 +5568,15 @@ function di({
|
|
|
5535
5568
|
alignItems: "center",
|
|
5536
5569
|
padding: 24
|
|
5537
5570
|
},
|
|
5538
|
-
children:
|
|
5571
|
+
children: d.map(({ key: p, delay: f, el: b }) => /* @__PURE__ */ e(
|
|
5539
5572
|
"div",
|
|
5540
5573
|
{
|
|
5541
5574
|
style: {
|
|
5542
5575
|
opacity: r >= 0.2 + f * 0.08 ? 1 : 0,
|
|
5543
5576
|
transform: `scale(${r >= 0.2 + f * 0.08 ? 1 : 0.6})`,
|
|
5544
|
-
transition: `opacity 0.4s ${
|
|
5577
|
+
transition: `opacity 0.4s ${I} ${f * 0.06}s, transform 0.45s ${I} ${f * 0.06}s`
|
|
5545
5578
|
},
|
|
5546
|
-
children:
|
|
5579
|
+
children: b
|
|
5547
5580
|
},
|
|
5548
5581
|
p
|
|
5549
5582
|
))
|
|
@@ -5551,22 +5584,22 @@ function di({
|
|
|
5551
5584
|
);
|
|
5552
5585
|
}
|
|
5553
5586
|
if (t === "dispatcher") {
|
|
5554
|
-
const l = Array.from({ length: 8 }, (h,
|
|
5555
|
-
const p = i[
|
|
5587
|
+
const l = Array.from({ length: 8 }, (h, d) => {
|
|
5588
|
+
const p = i[d];
|
|
5556
5589
|
return /* @__PURE__ */ e(
|
|
5557
5590
|
"div",
|
|
5558
5591
|
{
|
|
5559
5592
|
style: {
|
|
5560
|
-
opacity: r >= 0.25 +
|
|
5561
|
-
transform: `scale(${r >= 0.25 +
|
|
5562
|
-
transition: `opacity 0.35s ${
|
|
5593
|
+
opacity: r >= 0.25 + d * 0.04 ? 1 : 0,
|
|
5594
|
+
transform: `scale(${r >= 0.25 + d * 0.04 ? 1 : 0.5})`,
|
|
5595
|
+
transition: `opacity 0.35s ${I} ${d * 0.04}s, transform 0.4s ${I} ${d * 0.04}s`
|
|
5563
5596
|
},
|
|
5564
|
-
children: /* @__PURE__ */ e(
|
|
5597
|
+
children: /* @__PURE__ */ e(Y, { color: a, label: `PORT-${d + 1}`, status: p?.status })
|
|
5565
5598
|
},
|
|
5566
|
-
`p${
|
|
5599
|
+
`p${d}`
|
|
5567
5600
|
);
|
|
5568
5601
|
});
|
|
5569
|
-
return /* @__PURE__ */
|
|
5602
|
+
return /* @__PURE__ */ c(
|
|
5570
5603
|
"div",
|
|
5571
5604
|
{
|
|
5572
5605
|
style: {
|
|
@@ -5578,16 +5611,16 @@ function di({
|
|
|
5578
5611
|
},
|
|
5579
5612
|
children: [
|
|
5580
5613
|
/* @__PURE__ */ e("div", { style: { display: "flex", gap: 10, flexWrap: "wrap", justifyContent: "center" }, children: l }),
|
|
5581
|
-
/* @__PURE__ */
|
|
5614
|
+
/* @__PURE__ */ c("div", { style: { display: "flex", gap: 16 }, children: [
|
|
5582
5615
|
/* @__PURE__ */ e(
|
|
5583
5616
|
"div",
|
|
5584
5617
|
{
|
|
5585
5618
|
style: {
|
|
5586
5619
|
opacity: r >= 0.7 ? 1 : 0,
|
|
5587
5620
|
transform: `scale(${r >= 0.7 ? 1 : 0.6})`,
|
|
5588
|
-
transition: `all 0.4s ${
|
|
5621
|
+
transition: `all 0.4s ${I} 0.3s`
|
|
5589
5622
|
},
|
|
5590
|
-
children: /* @__PURE__ */ e(
|
|
5623
|
+
children: /* @__PURE__ */ e(W, { color: a, label: "HTTP-WORKER", status: i[8]?.status })
|
|
5591
5624
|
}
|
|
5592
5625
|
),
|
|
5593
5626
|
/* @__PURE__ */ e(
|
|
@@ -5596,9 +5629,9 @@ function di({
|
|
|
5596
5629
|
style: {
|
|
5597
5630
|
opacity: r >= 0.8 ? 1 : 0,
|
|
5598
5631
|
transform: `scale(${r >= 0.8 ? 1 : 0.6})`,
|
|
5599
|
-
transition: `all 0.4s ${
|
|
5632
|
+
transition: `all 0.4s ${I} 0.4s`
|
|
5600
5633
|
},
|
|
5601
|
-
children: /* @__PURE__ */ e(
|
|
5634
|
+
children: /* @__PURE__ */ e(W, { color: "#bb55ff", label: "HTTPS-WORKER", status: i[9]?.status })
|
|
5602
5635
|
}
|
|
5603
5636
|
)
|
|
5604
5637
|
] })
|
|
@@ -5607,7 +5640,7 @@ function di({
|
|
|
5607
5640
|
);
|
|
5608
5641
|
}
|
|
5609
5642
|
if (t === "messageServer")
|
|
5610
|
-
return /* @__PURE__ */
|
|
5643
|
+
return /* @__PURE__ */ c(
|
|
5611
5644
|
"div",
|
|
5612
5645
|
{
|
|
5613
5646
|
style: {
|
|
@@ -5625,9 +5658,9 @@ function di({
|
|
|
5625
5658
|
style: {
|
|
5626
5659
|
opacity: r >= 0.25 + l * 0.1 ? 1 : 0,
|
|
5627
5660
|
transform: `scale(${r >= 0.25 + l * 0.1 ? 1 : 0.6})`,
|
|
5628
|
-
transition: `all 0.4s ${
|
|
5661
|
+
transition: `all 0.4s ${I} ${l * 0.08}s`
|
|
5629
5662
|
},
|
|
5630
|
-
children: /* @__PURE__ */ e(
|
|
5663
|
+
children: /* @__PURE__ */ e(Y, { color: "#bb55ff", label: `INST-${l}`, status: i[l]?.status })
|
|
5631
5664
|
},
|
|
5632
5665
|
l
|
|
5633
5666
|
)),
|
|
@@ -5637,9 +5670,9 @@ function di({
|
|
|
5637
5670
|
style: {
|
|
5638
5671
|
opacity: r >= 0.6 ? 1 : 0,
|
|
5639
5672
|
transform: `scale(${r >= 0.6 ? 1 : 0.6})`,
|
|
5640
|
-
transition: `all 0.4s ${
|
|
5673
|
+
transition: `all 0.4s ${I} 0.25s`
|
|
5641
5674
|
},
|
|
5642
|
-
children: /* @__PURE__ */ e(
|
|
5675
|
+
children: /* @__PURE__ */ e(W, { color: "#bb55ff", label: "QUEUE-0", status: i[3]?.status })
|
|
5643
5676
|
}
|
|
5644
5677
|
),
|
|
5645
5678
|
[4, 5, 6].map((l) => /* @__PURE__ */ e(
|
|
@@ -5648,10 +5681,10 @@ function di({
|
|
|
5648
5681
|
style: {
|
|
5649
5682
|
opacity: r >= 0.7 + (l - 4) * 0.08 ? 1 : 0,
|
|
5650
5683
|
transform: `scale(${r >= 0.7 ? 1 : 0.6})`,
|
|
5651
|
-
transition: `all 0.4s ${
|
|
5684
|
+
transition: `all 0.4s ${I} ${0.35 + (l - 4) * 0.05}s`
|
|
5652
5685
|
},
|
|
5653
5686
|
children: /* @__PURE__ */ e(
|
|
5654
|
-
|
|
5687
|
+
W,
|
|
5655
5688
|
{
|
|
5656
5689
|
color: "#bb55ff",
|
|
5657
5690
|
label: `WORKER-${l - 3}`,
|
|
@@ -5666,7 +5699,7 @@ function di({
|
|
|
5666
5699
|
);
|
|
5667
5700
|
if (t === "database") {
|
|
5668
5701
|
const l = o.capacity ?? 72;
|
|
5669
|
-
return /* @__PURE__ */
|
|
5702
|
+
return /* @__PURE__ */ c(
|
|
5670
5703
|
"div",
|
|
5671
5704
|
{
|
|
5672
5705
|
style: {
|
|
@@ -5684,10 +5717,10 @@ function di({
|
|
|
5684
5717
|
style: {
|
|
5685
5718
|
opacity: r >= 0.2 + h * 0.12 ? 1 : 0,
|
|
5686
5719
|
transform: `scale(${r >= 0.2 + h * 0.12 ? 1 : 0.5})`,
|
|
5687
|
-
transition: `all 0.45s ${
|
|
5720
|
+
transition: `all 0.45s ${I} ${h * 0.1}s`
|
|
5688
5721
|
},
|
|
5689
5722
|
children: /* @__PURE__ */ e(
|
|
5690
|
-
|
|
5723
|
+
Qe,
|
|
5691
5724
|
{
|
|
5692
5725
|
color: s,
|
|
5693
5726
|
label: `PLATTER-${h}`,
|
|
@@ -5704,9 +5737,9 @@ function di({
|
|
|
5704
5737
|
style: {
|
|
5705
5738
|
opacity: r >= 0.6 ? 1 : 0,
|
|
5706
5739
|
transform: `scale(${r >= 0.6 ? 1 : 0.6})`,
|
|
5707
|
-
transition: `all 0.4s ${
|
|
5740
|
+
transition: `all 0.4s ${I} 0.3s`
|
|
5708
5741
|
},
|
|
5709
|
-
children: /* @__PURE__ */ e(
|
|
5742
|
+
children: /* @__PURE__ */ e(W, { color: s, label: "CONN-POOL", status: i[3]?.status })
|
|
5710
5743
|
}
|
|
5711
5744
|
),
|
|
5712
5745
|
/* @__PURE__ */ e(
|
|
@@ -5715,9 +5748,9 @@ function di({
|
|
|
5715
5748
|
style: {
|
|
5716
5749
|
opacity: r >= 0.75 ? 1 : 0,
|
|
5717
5750
|
transform: `scale(${r >= 0.75 ? 1 : 0.6})`,
|
|
5718
|
-
transition: `all 0.4s ${
|
|
5751
|
+
transition: `all 0.4s ${I} 0.4s`
|
|
5719
5752
|
},
|
|
5720
|
-
children: /* @__PURE__ */ e(
|
|
5753
|
+
children: /* @__PURE__ */ e(W, { color: "#00ff88", label: "QUERY-CACHE", status: i[4]?.status })
|
|
5721
5754
|
}
|
|
5722
5755
|
)
|
|
5723
5756
|
]
|
|
@@ -5726,7 +5759,7 @@ function di({
|
|
|
5726
5759
|
}
|
|
5727
5760
|
return null;
|
|
5728
5761
|
}
|
|
5729
|
-
function
|
|
5762
|
+
function Ui({
|
|
5730
5763
|
type: t,
|
|
5731
5764
|
name: n,
|
|
5732
5765
|
status: o,
|
|
@@ -5736,8 +5769,8 @@ function Ni({
|
|
|
5736
5769
|
subComponents: s,
|
|
5737
5770
|
graphSeries: l
|
|
5738
5771
|
}) {
|
|
5739
|
-
const h =
|
|
5740
|
-
return /* @__PURE__ */
|
|
5772
|
+
const h = hi(t, n, o, a), d = C[o]?.color ?? C.online.color, p = r >= 0.1 ? 1 : r * 10, f = r >= 0.2 ? "-50%" : "0%", b = r >= 0.2 ? "50%" : "0%", u = r >= 0.25 ? Math.min(1, (r - 0.25) * 1.5) : 0;
|
|
5773
|
+
return /* @__PURE__ */ c(
|
|
5741
5774
|
"div",
|
|
5742
5775
|
{
|
|
5743
5776
|
style: {
|
|
@@ -5748,7 +5781,7 @@ function Ni({
|
|
|
5748
5781
|
flexDirection: "row",
|
|
5749
5782
|
pointerEvents: "auto"
|
|
5750
5783
|
},
|
|
5751
|
-
onClick: (
|
|
5784
|
+
onClick: (g) => g.stopPropagation(),
|
|
5752
5785
|
children: [
|
|
5753
5786
|
/* @__PURE__ */ e(
|
|
5754
5787
|
"div",
|
|
@@ -5760,13 +5793,13 @@ function Ni({
|
|
|
5760
5793
|
backdropFilter: "blur(10px)",
|
|
5761
5794
|
WebkitBackdropFilter: "blur(10px)",
|
|
5762
5795
|
opacity: p,
|
|
5763
|
-
transition: `opacity 0.4s ${
|
|
5796
|
+
transition: `opacity 0.4s ${ui}`
|
|
5764
5797
|
},
|
|
5765
5798
|
onClick: i
|
|
5766
5799
|
}
|
|
5767
5800
|
),
|
|
5768
5801
|
/* @__PURE__ */ e(
|
|
5769
|
-
|
|
5802
|
+
pi,
|
|
5770
5803
|
{
|
|
5771
5804
|
type: t,
|
|
5772
5805
|
name: n,
|
|
@@ -5776,7 +5809,7 @@ function Ni({
|
|
|
5776
5809
|
series: l
|
|
5777
5810
|
}
|
|
5778
5811
|
),
|
|
5779
|
-
/* @__PURE__ */
|
|
5812
|
+
/* @__PURE__ */ c(
|
|
5780
5813
|
"div",
|
|
5781
5814
|
{
|
|
5782
5815
|
style: {
|
|
@@ -5789,7 +5822,7 @@ function Ni({
|
|
|
5789
5822
|
minWidth: 0
|
|
5790
5823
|
},
|
|
5791
5824
|
children: [
|
|
5792
|
-
/* @__PURE__ */
|
|
5825
|
+
/* @__PURE__ */ c(
|
|
5793
5826
|
"div",
|
|
5794
5827
|
{
|
|
5795
5828
|
style: {
|
|
@@ -5807,10 +5840,10 @@ function Ni({
|
|
|
5807
5840
|
width: "50%",
|
|
5808
5841
|
height: "100%",
|
|
5809
5842
|
background: "linear-gradient(90deg, rgba(2, 8, 20, 0.98) 0%, rgba(2, 12, 28, 0.95) 100%)",
|
|
5810
|
-
borderRight: `2px solid ${
|
|
5843
|
+
borderRight: `2px solid ${d}44`,
|
|
5811
5844
|
boxShadow: "4px 0 32px rgba(0,0,0,0.6)",
|
|
5812
5845
|
transform: `translateX(${f})`,
|
|
5813
|
-
transition: `transform 0.7s ${
|
|
5846
|
+
transition: `transform 0.7s ${I}`
|
|
5814
5847
|
}
|
|
5815
5848
|
}
|
|
5816
5849
|
),
|
|
@@ -5822,17 +5855,17 @@ function Ni({
|
|
|
5822
5855
|
height: "100%",
|
|
5823
5856
|
marginLeft: "auto",
|
|
5824
5857
|
background: "linear-gradient(90deg, rgba(2, 12, 28, 0.95) 0%, rgba(2, 8, 20, 0.98) 100%)",
|
|
5825
|
-
borderLeft: `2px solid ${
|
|
5858
|
+
borderLeft: `2px solid ${d}44`,
|
|
5826
5859
|
boxShadow: "-4px 0 32px rgba(0,0,0,0.6)",
|
|
5827
|
-
transform: `translateX(${
|
|
5828
|
-
transition: `transform 0.7s ${
|
|
5860
|
+
transform: `translateX(${b})`,
|
|
5861
|
+
transition: `transform 0.7s ${I}`
|
|
5829
5862
|
}
|
|
5830
5863
|
}
|
|
5831
5864
|
)
|
|
5832
5865
|
]
|
|
5833
5866
|
}
|
|
5834
5867
|
),
|
|
5835
|
-
/* @__PURE__ */
|
|
5868
|
+
/* @__PURE__ */ c(
|
|
5836
5869
|
"div",
|
|
5837
5870
|
{
|
|
5838
5871
|
style: {
|
|
@@ -5842,29 +5875,29 @@ function Ni({
|
|
|
5842
5875
|
maxWidth: 520,
|
|
5843
5876
|
minHeight: 320,
|
|
5844
5877
|
background: "linear-gradient(180deg, rgba(4, 14, 28, 0.6) 0%, rgba(2, 8, 18, 0.85) 100%)",
|
|
5845
|
-
border: `1px solid ${
|
|
5878
|
+
border: `1px solid ${d}33`,
|
|
5846
5879
|
borderRadius: 12,
|
|
5847
|
-
boxShadow: `0 0 40px ${
|
|
5880
|
+
boxShadow: `0 0 40px ${d}18, inset 0 0 60px rgba(0,0,0,0.4)`,
|
|
5848
5881
|
display: "flex",
|
|
5849
5882
|
flexDirection: "column",
|
|
5850
5883
|
opacity: u >= 0.1 ? 1 : 0,
|
|
5851
|
-
transition: `opacity 0.5s ${
|
|
5884
|
+
transition: `opacity 0.5s ${I} 0.2s`
|
|
5852
5885
|
},
|
|
5853
5886
|
children: [
|
|
5854
|
-
/* @__PURE__ */
|
|
5887
|
+
/* @__PURE__ */ c(
|
|
5855
5888
|
"div",
|
|
5856
5889
|
{
|
|
5857
5890
|
style: {
|
|
5858
5891
|
padding: "12px 20px",
|
|
5859
|
-
borderBottom: `1px solid ${
|
|
5892
|
+
borderBottom: `1px solid ${d}22`,
|
|
5860
5893
|
display: "flex",
|
|
5861
5894
|
alignItems: "center",
|
|
5862
5895
|
justifyContent: "space-between",
|
|
5863
|
-
background: `linear-gradient(180deg, ${
|
|
5896
|
+
background: `linear-gradient(180deg, ${d}11 0%, transparent 100%)`,
|
|
5864
5897
|
borderRadius: "12px 12px 0 0"
|
|
5865
5898
|
},
|
|
5866
5899
|
children: [
|
|
5867
|
-
/* @__PURE__ */
|
|
5900
|
+
/* @__PURE__ */ c("div", { style: { display: "flex", alignItems: "center", gap: 10 }, children: [
|
|
5868
5901
|
/* @__PURE__ */ e(
|
|
5869
5902
|
"div",
|
|
5870
5903
|
{
|
|
@@ -5872,13 +5905,13 @@ function Ni({
|
|
|
5872
5905
|
width: 8,
|
|
5873
5906
|
height: 8,
|
|
5874
5907
|
borderRadius: "50%",
|
|
5875
|
-
background:
|
|
5876
|
-
boxShadow: `0 0 10px ${
|
|
5908
|
+
background: d,
|
|
5909
|
+
boxShadow: `0 0 10px ${d}`,
|
|
5877
5910
|
animation: o === "warning" || o === "critical" ? "holo-led-blink 1.5s infinite" : "none"
|
|
5878
5911
|
}
|
|
5879
5912
|
}
|
|
5880
5913
|
),
|
|
5881
|
-
/* @__PURE__ */
|
|
5914
|
+
/* @__PURE__ */ c(
|
|
5882
5915
|
"span",
|
|
5883
5916
|
{
|
|
5884
5917
|
style: {
|
|
@@ -5903,9 +5936,9 @@ function Ni({
|
|
|
5903
5936
|
width: 32,
|
|
5904
5937
|
height: 32,
|
|
5905
5938
|
borderRadius: 6,
|
|
5906
|
-
border: `1px solid ${
|
|
5939
|
+
border: `1px solid ${d}44`,
|
|
5907
5940
|
background: "rgba(0,0,0,0.4)",
|
|
5908
|
-
color:
|
|
5941
|
+
color: d,
|
|
5909
5942
|
fontSize: 18,
|
|
5910
5943
|
cursor: "pointer",
|
|
5911
5944
|
display: "flex",
|
|
@@ -5929,15 +5962,15 @@ function Ni({
|
|
|
5929
5962
|
left: 0,
|
|
5930
5963
|
right: 0,
|
|
5931
5964
|
height: 1,
|
|
5932
|
-
background: `linear-gradient(90deg, transparent 5%, ${
|
|
5933
|
-
boxShadow: `0 0 8px ${
|
|
5965
|
+
background: `linear-gradient(90deg, transparent 5%, ${d}88 50%, transparent 95%)`,
|
|
5966
|
+
boxShadow: `0 0 8px ${d}`,
|
|
5934
5967
|
animation: "holo-scan 3s linear infinite",
|
|
5935
5968
|
pointerEvents: "none"
|
|
5936
5969
|
}
|
|
5937
5970
|
}
|
|
5938
5971
|
),
|
|
5939
|
-
/* @__PURE__ */ e("div", { style: { flex: 1, padding: "8px 0 24px" }, children: s ? /* @__PURE__ */ e(
|
|
5940
|
-
|
|
5972
|
+
/* @__PURE__ */ e("div", { style: { flex: 1, padding: "8px 0 24px" }, children: s ? /* @__PURE__ */ e(bi, { items: s, revealPhase: u }) : /* @__PURE__ */ e(
|
|
5973
|
+
gi,
|
|
5941
5974
|
{
|
|
5942
5975
|
type: t,
|
|
5943
5976
|
name: n,
|
|
@@ -5957,17 +5990,17 @@ function Ni({
|
|
|
5957
5990
|
}
|
|
5958
5991
|
);
|
|
5959
5992
|
}
|
|
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(),
|
|
5993
|
+
function yi({ onSubmit: t }) {
|
|
5994
|
+
const [n, o] = R(""), [i, r] = R(""), [a, s] = R(null), [l, h] = R(!1), d = n.trim().length > 0 && i.trim().length > 0;
|
|
5995
|
+
return /* @__PURE__ */ e("div", { className: "cred-overlay", children: /* @__PURE__ */ c("form", { className: "cred-panel", onSubmit: (f) => {
|
|
5996
|
+
f.preventDefault(), d && t({ accessKey: n.trim(), secretKey: i.trim() });
|
|
5964
5997
|
}, onClick: (f) => f.stopPropagation(), children: [
|
|
5965
5998
|
/* @__PURE__ */ e("div", { className: "cred-scanline" }),
|
|
5966
5999
|
/* @__PURE__ */ e("span", { className: "cred-corner cred-corner--tl" }),
|
|
5967
6000
|
/* @__PURE__ */ e("span", { className: "cred-corner cred-corner--tr" }),
|
|
5968
6001
|
/* @__PURE__ */ e("span", { className: "cred-corner cred-corner--bl" }),
|
|
5969
6002
|
/* @__PURE__ */ e("span", { className: "cred-corner cred-corner--br" }),
|
|
5970
|
-
/* @__PURE__ */ e("div", { className: "cred-icon", children: /* @__PURE__ */
|
|
6003
|
+
/* @__PURE__ */ e("div", { className: "cred-icon", children: /* @__PURE__ */ c(
|
|
5971
6004
|
"svg",
|
|
5972
6005
|
{
|
|
5973
6006
|
width: "32",
|
|
@@ -5984,7 +6017,7 @@ function ci({ onSubmit: t }) {
|
|
|
5984
6017
|
) }),
|
|
5985
6018
|
/* @__PURE__ */ e("div", { className: "cred-title", children: "DATA SOURCE ACCESS" }),
|
|
5986
6019
|
/* @__PURE__ */ e("div", { className: "cred-subtitle", children: "AUTHENTICATION REQUIRED" }),
|
|
5987
|
-
/* @__PURE__ */
|
|
6020
|
+
/* @__PURE__ */ c("div", { className: "cred-field", children: [
|
|
5988
6021
|
/* @__PURE__ */ e("label", { className: "cred-label", children: "ACCESS KEY" }),
|
|
5989
6022
|
/* @__PURE__ */ e(
|
|
5990
6023
|
"input",
|
|
@@ -6004,7 +6037,7 @@ function ci({ onSubmit: t }) {
|
|
|
6004
6037
|
}
|
|
6005
6038
|
)
|
|
6006
6039
|
] }),
|
|
6007
|
-
/* @__PURE__ */
|
|
6040
|
+
/* @__PURE__ */ c("div", { className: "cred-field", children: [
|
|
6008
6041
|
/* @__PURE__ */ e("label", { className: "cred-label", children: "SECRET KEY" }),
|
|
6009
6042
|
/* @__PURE__ */ e(
|
|
6010
6043
|
"input",
|
|
@@ -6023,18 +6056,18 @@ function ci({ onSubmit: t }) {
|
|
|
6023
6056
|
}
|
|
6024
6057
|
)
|
|
6025
6058
|
] }),
|
|
6026
|
-
/* @__PURE__ */
|
|
6059
|
+
/* @__PURE__ */ c(
|
|
6027
6060
|
"button",
|
|
6028
6061
|
{
|
|
6029
6062
|
className: "cred-btn",
|
|
6030
6063
|
type: "submit",
|
|
6031
|
-
disabled: !
|
|
6064
|
+
disabled: !d,
|
|
6032
6065
|
onMouseEnter: () => h(!0),
|
|
6033
6066
|
onMouseLeave: () => h(!1),
|
|
6034
6067
|
style: {
|
|
6035
|
-
opacity:
|
|
6036
|
-
cursor:
|
|
6037
|
-
...l &&
|
|
6068
|
+
opacity: d ? 1 : 0.35,
|
|
6069
|
+
cursor: d ? "pointer" : "not-allowed",
|
|
6070
|
+
...l && d ? {
|
|
6038
6071
|
background: "rgba(0,229,255,0.12)",
|
|
6039
6072
|
boxShadow: "0 0 20px rgba(0,229,255,0.3), inset 0 0 12px rgba(0,229,255,0.08)"
|
|
6040
6073
|
} : {}
|
|
@@ -6048,28 +6081,28 @@ function ci({ onSubmit: t }) {
|
|
|
6048
6081
|
/* @__PURE__ */ e("div", { className: "cred-footer", children: "CREDENTIALS ARE STORED IN MEMORY ONLY" })
|
|
6049
6082
|
] }) });
|
|
6050
6083
|
}
|
|
6051
|
-
const
|
|
6052
|
-
function
|
|
6053
|
-
const t =
|
|
6084
|
+
const xt = tt(null);
|
|
6085
|
+
function mi() {
|
|
6086
|
+
const t = ge(xt);
|
|
6054
6087
|
if (!t)
|
|
6055
6088
|
throw new Error("useAIOpsData must be used within an AIOPsDashboard with dataEndpoint configured");
|
|
6056
6089
|
return t;
|
|
6057
6090
|
}
|
|
6058
|
-
function
|
|
6059
|
-
return
|
|
6091
|
+
function xi() {
|
|
6092
|
+
return ge(xt);
|
|
6060
6093
|
}
|
|
6061
|
-
function
|
|
6062
|
-
const { data: n } =
|
|
6094
|
+
function Yi(t) {
|
|
6095
|
+
const { data: n } = mi();
|
|
6063
6096
|
return n[t] ?? null;
|
|
6064
6097
|
}
|
|
6065
|
-
function
|
|
6098
|
+
function vi(t) {
|
|
6066
6099
|
const n = /* @__PURE__ */ new Set();
|
|
6067
6100
|
for (const o of Object.values(t))
|
|
6068
6101
|
for (const i of Object.values(o))
|
|
6069
6102
|
n.add(typeof i == "string" ? i : i.query);
|
|
6070
6103
|
return Array.from(n);
|
|
6071
6104
|
}
|
|
6072
|
-
function
|
|
6105
|
+
function wi(t) {
|
|
6073
6106
|
if (typeof t == "number") return t;
|
|
6074
6107
|
if (typeof t == "string") {
|
|
6075
6108
|
const n = Number(t);
|
|
@@ -6077,56 +6110,56 @@ function ui(t) {
|
|
|
6077
6110
|
}
|
|
6078
6111
|
return t;
|
|
6079
6112
|
}
|
|
6080
|
-
function
|
|
6081
|
-
const [o, i] = R({}), [r, a] = R(null), [s, l] = R(!1), [h,
|
|
6082
|
-
|
|
6083
|
-
const u =
|
|
6113
|
+
function Si({ config: t, children: n }) {
|
|
6114
|
+
const [o, i] = R({}), [r, a] = R(null), [s, l] = R(!1), [h, d] = R(null), [p, f] = R(null), b = ie(t);
|
|
6115
|
+
b.current = t;
|
|
6116
|
+
const u = ie(r);
|
|
6084
6117
|
u.current = r;
|
|
6085
|
-
const
|
|
6086
|
-
const
|
|
6087
|
-
if (
|
|
6118
|
+
const g = Ge(async () => {
|
|
6119
|
+
const v = u.current, S = b.current;
|
|
6120
|
+
if (v) {
|
|
6088
6121
|
l(!0);
|
|
6089
6122
|
try {
|
|
6090
|
-
const
|
|
6091
|
-
|
|
6092
|
-
const
|
|
6093
|
-
return fetch(
|
|
6123
|
+
const y = await Promise.allSettled(
|
|
6124
|
+
S.queries.map(($) => {
|
|
6125
|
+
const H = S.endpoint.includes("?") ? "&" : "?", L = `${S.endpoint}${H}query=${encodeURIComponent($)}`;
|
|
6126
|
+
return fetch(L, {
|
|
6094
6127
|
method: "GET",
|
|
6095
6128
|
headers: {
|
|
6096
|
-
"access-key":
|
|
6097
|
-
"access-secret-key":
|
|
6129
|
+
"access-key": v.accessKey,
|
|
6130
|
+
"access-secret-key": v.secretKey
|
|
6098
6131
|
}
|
|
6099
|
-
}).then((
|
|
6100
|
-
if (!
|
|
6101
|
-
return
|
|
6102
|
-
}).then((
|
|
6132
|
+
}).then((M) => {
|
|
6133
|
+
if (!M.ok) throw new Error(`HTTP ${M.status}`);
|
|
6134
|
+
return M.text();
|
|
6135
|
+
}).then((M) => ({ query: $, data: M.trim() }));
|
|
6103
6136
|
})
|
|
6104
|
-
),
|
|
6105
|
-
let
|
|
6106
|
-
for (const
|
|
6107
|
-
|
|
6108
|
-
i((
|
|
6109
|
-
const
|
|
6110
|
-
|
|
6111
|
-
|
|
6112
|
-
),
|
|
6113
|
-
} catch (
|
|
6114
|
-
const
|
|
6115
|
-
|
|
6137
|
+
), x = {};
|
|
6138
|
+
let A = 0;
|
|
6139
|
+
for (const $ of y)
|
|
6140
|
+
$.status === "fulfilled" ? x[$.value.query] = $.value.data : A++;
|
|
6141
|
+
i(($) => ({ ...$, ...x }));
|
|
6142
|
+
const k = S.queries.length;
|
|
6143
|
+
d(
|
|
6144
|
+
A > 0 ? `${A} of ${k} queries failed to refresh` : null
|
|
6145
|
+
), A < k && f(/* @__PURE__ */ new Date());
|
|
6146
|
+
} catch (y) {
|
|
6147
|
+
const x = y instanceof Error ? y.message : "Refresh failed";
|
|
6148
|
+
d(x);
|
|
6116
6149
|
} finally {
|
|
6117
6150
|
l(!1);
|
|
6118
6151
|
}
|
|
6119
6152
|
}
|
|
6120
6153
|
}, []);
|
|
6121
|
-
|
|
6154
|
+
ke(() => {
|
|
6122
6155
|
if (!r) return;
|
|
6123
|
-
|
|
6124
|
-
const
|
|
6125
|
-
return () => clearInterval(
|
|
6126
|
-
}, [r,
|
|
6127
|
-
const m =
|
|
6128
|
-
a(
|
|
6129
|
-
}, []),
|
|
6156
|
+
g();
|
|
6157
|
+
const v = b.current.refreshInterval ?? 6e4, S = window.setInterval(g, v);
|
|
6158
|
+
return () => clearInterval(S);
|
|
6159
|
+
}, [r, g]);
|
|
6160
|
+
const m = Ge((v) => {
|
|
6161
|
+
a(v);
|
|
6162
|
+
}, []), w = {
|
|
6130
6163
|
data: o,
|
|
6131
6164
|
isRefreshing: s,
|
|
6132
6165
|
lastRefreshError: h,
|
|
@@ -6134,30 +6167,30 @@ function bi({ config: t, children: n }) {
|
|
|
6134
6167
|
credentialsSet: !!r,
|
|
6135
6168
|
setCredentials: m
|
|
6136
6169
|
};
|
|
6137
|
-
return /* @__PURE__ */
|
|
6170
|
+
return /* @__PURE__ */ c(xt.Provider, { value: w, children: [
|
|
6138
6171
|
n,
|
|
6139
|
-
!r && /* @__PURE__ */ e(
|
|
6172
|
+
!r && /* @__PURE__ */ e(yi, { onSubmit: m })
|
|
6140
6173
|
] });
|
|
6141
6174
|
}
|
|
6142
|
-
function
|
|
6175
|
+
function Vi(t) {
|
|
6143
6176
|
const { dataEndpoint: n, dataBindings: o, dataRefreshInterval: i } = t;
|
|
6144
6177
|
if (n && o) {
|
|
6145
|
-
const r =
|
|
6178
|
+
const r = vi(o);
|
|
6146
6179
|
return /* @__PURE__ */ e(
|
|
6147
|
-
|
|
6180
|
+
Si,
|
|
6148
6181
|
{
|
|
6149
6182
|
config: {
|
|
6150
6183
|
endpoint: n,
|
|
6151
6184
|
queries: r,
|
|
6152
6185
|
refreshInterval: i
|
|
6153
6186
|
},
|
|
6154
|
-
children: /* @__PURE__ */ e(
|
|
6187
|
+
children: /* @__PURE__ */ e(At, { ...t })
|
|
6155
6188
|
}
|
|
6156
6189
|
);
|
|
6157
6190
|
}
|
|
6158
|
-
return /* @__PURE__ */ e(
|
|
6191
|
+
return /* @__PURE__ */ e(At, { ...t });
|
|
6159
6192
|
}
|
|
6160
|
-
function
|
|
6193
|
+
function At({
|
|
6161
6194
|
brandName: t = "BUSAUD AIOps",
|
|
6162
6195
|
brandTag: n = "3D MONITOR",
|
|
6163
6196
|
services: o = [],
|
|
@@ -6167,41 +6200,75 @@ function gt({
|
|
|
6167
6200
|
fontFamily: s,
|
|
6168
6201
|
dataBindings: l,
|
|
6169
6202
|
dataTransform: h,
|
|
6170
|
-
children:
|
|
6203
|
+
children: d
|
|
6171
6204
|
}) {
|
|
6172
|
-
const p =
|
|
6173
|
-
|
|
6174
|
-
|
|
6205
|
+
const p = xi(), [f] = R(20), [b] = R(!1), [u] = R(!0), [g] = R(0.45), [m] = R(3.3), [w, v] = R("compact"), [S, y] = R(0), [x, A] = R(null), [k, $] = R(null), [H, L] = R(0), M = (T) => {
|
|
6206
|
+
w === "compact" && (A(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(() => {
|
|
6207
|
+
y(6), v("expanded");
|
|
6175
6208
|
}, 2400));
|
|
6176
|
-
},
|
|
6177
|
-
|
|
6178
|
-
|
|
6209
|
+
}, K = () => {
|
|
6210
|
+
k ? ($(null), L(0)) : w === "expanded" && (v("collapsing"), y(0), A(null), setTimeout(() => {
|
|
6211
|
+
v((T) => T === "collapsing" ? "compact" : T);
|
|
6179
6212
|
}, 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
|
-
|
|
6213
|
+
}, Z = Ge((T) => {
|
|
6214
|
+
$(T), L(0);
|
|
6215
|
+
}, []), ye = Ge((T) => {
|
|
6216
|
+
$(T);
|
|
6217
|
+
}, []);
|
|
6218
|
+
q.useEffect(() => {
|
|
6219
|
+
if (!k) return;
|
|
6220
|
+
const T = performance.now(), j = 1200, oe = () => {
|
|
6221
|
+
const V = performance.now() - T, re = Math.min(1, V / j);
|
|
6222
|
+
L(re), re < 1 && requestAnimationFrame(oe);
|
|
6223
|
+
}, ee = requestAnimationFrame(oe);
|
|
6224
|
+
return () => cancelAnimationFrame(ee);
|
|
6225
|
+
}, [k]);
|
|
6226
|
+
const me = () => {
|
|
6227
|
+
$(null), L(0);
|
|
6228
|
+
}, D = h ?? wi, U = p?.data, { enhancedChildren: ne, liveAlerts: Be } = Tt(() => {
|
|
6229
|
+
const T = {};
|
|
6230
|
+
if (!U || !l) return { enhancedChildren: d, liveAlerts: T };
|
|
6231
|
+
const j = {};
|
|
6232
|
+
return { enhancedChildren: q.Children.map(d, (ee) => {
|
|
6233
|
+
if (!q.isValidElement(ee)) return ee;
|
|
6234
|
+
const V = ee.props.name;
|
|
6235
|
+
if (!V || !l[V]) return ee;
|
|
6236
|
+
const re = l[V], ve = {}, ae = {};
|
|
6237
|
+
for (const [pe, B] of Object.entries(re)) {
|
|
6238
|
+
const rt = typeof B == "string" ? B : B.query, at = typeof B == "object" && B.transform ? B.transform : D, Ye = U[rt];
|
|
6239
|
+
if (Ye === void 0) continue;
|
|
6240
|
+
const we = at(Ye);
|
|
6241
|
+
if (ve[pe] = we, typeof B == "object" && B.alert && typeof we == "number") {
|
|
6242
|
+
const { prop: F, warnAt: Ve = 70, critAt: St = 85, label: Ft } = B.alert, _e = Ft ?? pe, je = Math.round(we);
|
|
6243
|
+
if (we >= St) {
|
|
6244
|
+
const He = ae[F];
|
|
6245
|
+
(!He || He.severity < 2) && (ae[F] = {
|
|
6246
|
+
msg: `${_e} critical — ${je}%`,
|
|
6247
|
+
internalRef: pe,
|
|
6248
|
+
severity: 2
|
|
6249
|
+
}), j[V] || (j[V] = []), j[V].push({
|
|
6250
|
+
level: "critical",
|
|
6251
|
+
message: `${_e} at ${je}% — exceeds critical threshold (${St}%)`
|
|
6252
|
+
});
|
|
6253
|
+
} else if (we >= Ve) {
|
|
6254
|
+
const He = ae[F];
|
|
6255
|
+
(!He || He.severity < 1) && (ae[F] = {
|
|
6256
|
+
msg: `${_e} elevated — ${je}%`,
|
|
6257
|
+
internalRef: pe,
|
|
6258
|
+
severity: 1
|
|
6259
|
+
}), j[V] || (j[V] = []), j[V].push({
|
|
6260
|
+
level: "warning",
|
|
6261
|
+
message: `${_e} at ${je}% — exceeds warning threshold (${Ve}%)`
|
|
6262
|
+
});
|
|
6263
|
+
}
|
|
6264
|
+
}
|
|
6265
|
+
}
|
|
6266
|
+
for (const [pe, B] of Object.entries(ae))
|
|
6267
|
+
ve[pe] = { msg: B.msg, internalRef: B.internalRef };
|
|
6268
|
+
return Object.keys(ve).length > 0 ? q.cloneElement(ee, ve) : ee;
|
|
6269
|
+
}), liveAlerts: j };
|
|
6270
|
+
}, [d, U, l, D]), le = o.find((T) => T.name === x), Fe = le?.status ?? "online", J = le?.dbSync ?? !0, z = le?.metrics, _ = Be[x ?? ""] ?? [], se = le?.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;
|
|
6271
|
+
return /* @__PURE__ */ c("div", { className: "app", style: s ? { fontFamily: s } : void 0, children: [
|
|
6205
6272
|
/* @__PURE__ */ e(
|
|
6206
6273
|
"div",
|
|
6207
6274
|
{
|
|
@@ -6215,18 +6282,18 @@ function gt({
|
|
|
6215
6282
|
backgroundPosition: "center center",
|
|
6216
6283
|
backgroundRepeat: "no-repeat",
|
|
6217
6284
|
transition: "transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1)",
|
|
6218
|
-
transform: `translate(${
|
|
6285
|
+
transform: `translate(${ce}px, ${ot}px) scale(${xe})`,
|
|
6219
6286
|
willChange: "transform"
|
|
6220
6287
|
}
|
|
6221
6288
|
}
|
|
6222
6289
|
),
|
|
6223
|
-
/* @__PURE__ */
|
|
6224
|
-
/* @__PURE__ */
|
|
6290
|
+
/* @__PURE__ */ c("header", { className: "app-header", children: [
|
|
6291
|
+
/* @__PURE__ */ c("div", { className: "hdr-brand", children: [
|
|
6225
6292
|
/* @__PURE__ */ e("span", { className: "brand-pulse" }),
|
|
6226
6293
|
/* @__PURE__ */ e("span", { className: "brand-text", children: t })
|
|
6227
6294
|
] }),
|
|
6228
|
-
/* @__PURE__ */
|
|
6229
|
-
|
|
6295
|
+
/* @__PURE__ */ c("div", { className: "hdr-right", children: [
|
|
6296
|
+
Ce && /* @__PURE__ */ c("div", { className: "hdr-refresh-error", children: [
|
|
6230
6297
|
/* @__PURE__ */ e("span", { className: "refresh-error-dot" }),
|
|
6231
6298
|
/* @__PURE__ */ e("span", { className: "refresh-error-text", children: "DATA REFRESH FAILED" })
|
|
6232
6299
|
] }),
|
|
@@ -6238,143 +6305,144 @@ function gt({
|
|
|
6238
6305
|
{
|
|
6239
6306
|
className: "scene",
|
|
6240
6307
|
style: {
|
|
6241
|
-
cursor:
|
|
6308
|
+
cursor: w === "expanded" ? "zoom-out" : "default"
|
|
6242
6309
|
},
|
|
6243
|
-
onClick:
|
|
6310
|
+
onClick: K,
|
|
6244
6311
|
children: /* @__PURE__ */ e(
|
|
6245
|
-
|
|
6312
|
+
Xt,
|
|
6246
6313
|
{
|
|
6247
|
-
viewState:
|
|
6248
|
-
animPhase:
|
|
6249
|
-
selectedSystem:
|
|
6250
|
-
selectedComponent:
|
|
6251
|
-
drillAnimPhase:
|
|
6314
|
+
viewState: w,
|
|
6315
|
+
animPhase: S,
|
|
6316
|
+
selectedSystem: x,
|
|
6317
|
+
selectedComponent: k,
|
|
6318
|
+
drillAnimPhase: H,
|
|
6252
6319
|
rotateY: f,
|
|
6253
|
-
autoRotateComponents:
|
|
6254
|
-
componentScale:
|
|
6320
|
+
autoRotateComponents: b,
|
|
6321
|
+
componentScale: g,
|
|
6255
6322
|
drillZoom: m,
|
|
6256
6323
|
autoRotateCarousel: u,
|
|
6257
6324
|
carouselSpeed: a,
|
|
6258
6325
|
logoUrl: r,
|
|
6259
|
-
onSelectSystem:
|
|
6260
|
-
onBackgroundClick:
|
|
6261
|
-
onComponentClick:
|
|
6262
|
-
|
|
6263
|
-
|
|
6264
|
-
|
|
6265
|
-
|
|
6266
|
-
|
|
6267
|
-
|
|
6326
|
+
onSelectSystem: M,
|
|
6327
|
+
onBackgroundClick: K,
|
|
6328
|
+
onComponentClick: Z,
|
|
6329
|
+
onComponentUpdate: ye,
|
|
6330
|
+
onCloseDrill: me,
|
|
6331
|
+
selectedSystemStatus: Fe,
|
|
6332
|
+
selectedSystemDbSync: J,
|
|
6333
|
+
selectedSystemMetrics: z,
|
|
6334
|
+
selectedSystemAlerts: de,
|
|
6335
|
+
children: ne
|
|
6268
6336
|
}
|
|
6269
6337
|
)
|
|
6270
6338
|
}
|
|
6271
6339
|
)
|
|
6272
6340
|
] });
|
|
6273
6341
|
}
|
|
6274
|
-
function
|
|
6342
|
+
function P(t, n, o = 24) {
|
|
6275
6343
|
return Array.from({ length: o }, (i, r) => {
|
|
6276
6344
|
const a = r / o;
|
|
6277
6345
|
return Math.min(100, Math.max(0, t + Math.sin(a * Math.PI * 2) * n + (Math.random() - 0.5) * 10));
|
|
6278
6346
|
});
|
|
6279
6347
|
}
|
|
6280
|
-
function
|
|
6348
|
+
function Mt(t) {
|
|
6281
6349
|
return t === "critical" || t === "offline" ? "#ff2255" : t === "warning" ? "#ff8c00" : "#00e5ff";
|
|
6282
6350
|
}
|
|
6283
|
-
function
|
|
6284
|
-
const i = t === "online" ? "online" : t, r =
|
|
6351
|
+
function Ne(t, n, o) {
|
|
6352
|
+
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
6353
|
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(
|
|
6354
|
+
{ 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 }) },
|
|
6355
|
+
{ id: "cpu-1", label: "CPU-1", status: "online", element: /* @__PURE__ */ e(Ke, { color: r, label: "CPU-1", status: "online", load: a * 0.7 }) },
|
|
6356
|
+
{ 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 }) },
|
|
6357
|
+
{ id: "heap-1", label: "HEAP-1", status: "online", element: /* @__PURE__ */ e(Ze, { color: "#8855ee", label: "HEAP-1", status: "online", usedPercent: s * 0.85 }) },
|
|
6358
|
+
{ id: "drive-1", label: "DRIVE-1", status: "online", element: /* @__PURE__ */ e(De, { color: r, label: "DRIVE-1", status: "online", activity: !0 }) },
|
|
6359
|
+
{ id: "drive-2", label: "DRIVE-2", status: "online", element: /* @__PURE__ */ e(De, { color: r, label: "DRIVE-2", status: "online", activity: a > 30 }) },
|
|
6360
|
+
{ id: "drive-3", label: "DRIVE-3", status: "online", element: /* @__PURE__ */ e(De, { color: r, label: "DRIVE-3", status: "online", activity: a > 50 }) },
|
|
6361
|
+
{ id: "thread-pool", label: "THREAD-POOL", status: d, detail: d === "critical" ? "Thread exhaustion" : void 0, element: /* @__PURE__ */ e(W, { color: r, label: "THREAD-POOL", status: d }) },
|
|
6362
|
+
{ id: "network", label: "NET", status: p, element: /* @__PURE__ */ e(Wt, { color: r, label: "NET", status: p }) }
|
|
6295
6363
|
];
|
|
6296
6364
|
}
|
|
6297
|
-
function
|
|
6365
|
+
function We(t) {
|
|
6298
6366
|
const n = t?.cpuLoad ?? 50, o = t?.memLoad ?? 60;
|
|
6299
6367
|
return [
|
|
6300
|
-
{ id: "cpu", label: "CPU-0", unit: "%", color: "#00e5ff", data:
|
|
6301
|
-
{ id: "cpu1", label: "CPU-1", unit: "%", color: "#00e5ff", data:
|
|
6302
|
-
{ id: "heap0", label: "HEAP-0", unit: "%", color: "#8855ee", data:
|
|
6303
|
-
{ id: "heap1", label: "HEAP-1", unit: "%", color: "#8855ee", data:
|
|
6304
|
-
{ id: "drive1", label: "DRIVE-1 I/O", unit: "%", color: "#ff8c00", data:
|
|
6305
|
-
{ id: "drive2", label: "DRIVE-2 I/O", unit: "%", color: "#ff8c00", data:
|
|
6306
|
-
{ id: "drive3", label: "DRIVE-3 I/O", unit: "%", color: "#ff8c00", data:
|
|
6307
|
-
{ id: "thread", label: "THREAD-POOL", unit: "%", color: "#22aaff", data:
|
|
6368
|
+
{ id: "cpu", label: "CPU-0", unit: "%", color: "#00e5ff", data: P(n, 15) },
|
|
6369
|
+
{ id: "cpu1", label: "CPU-1", unit: "%", color: "#00e5ff", data: P(n * 0.7, 12) },
|
|
6370
|
+
{ id: "heap0", label: "HEAP-0", unit: "%", color: "#8855ee", data: P(o, 18) },
|
|
6371
|
+
{ id: "heap1", label: "HEAP-1", unit: "%", color: "#8855ee", data: P(o * 0.85, 14) },
|
|
6372
|
+
{ id: "drive1", label: "DRIVE-1 I/O", unit: "%", color: "#ff8c00", data: P(40, 25) },
|
|
6373
|
+
{ id: "drive2", label: "DRIVE-2 I/O", unit: "%", color: "#ff8c00", data: P(35, 20) },
|
|
6374
|
+
{ id: "drive3", label: "DRIVE-3 I/O", unit: "%", color: "#ff8c00", data: P(30, 22) },
|
|
6375
|
+
{ id: "thread", label: "THREAD-POOL", unit: "%", color: "#22aaff", data: P(55, 20) }
|
|
6308
6376
|
];
|
|
6309
6377
|
}
|
|
6310
|
-
function
|
|
6311
|
-
const i = t === "online" ? "online" : t, r =
|
|
6378
|
+
function zt(t, n, o) {
|
|
6379
|
+
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
6380
|
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(
|
|
6321
|
-
{ id: "http-worker", label: "HTTP-WORKER", status: l, detail: l === "critical" ? "Worker timeout" : void 0, element: /* @__PURE__ */ e(
|
|
6322
|
-
{ id: "https-worker", label: "HTTPS-WORKER", status: "online", element: /* @__PURE__ */ e(
|
|
6381
|
+
{ id: "port-1", label: "PORT-1", status: "online", element: /* @__PURE__ */ e(Y, { color: r, label: "PORT-1", status: "online" }) },
|
|
6382
|
+
{ id: "port-2", label: "PORT-2", status: "online", element: /* @__PURE__ */ e(Y, { color: r, label: "PORT-2", status: "online" }) },
|
|
6383
|
+
{ 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 }) },
|
|
6384
|
+
{ id: "port-4", label: "PORT-4", status: "online", element: /* @__PURE__ */ e(Y, { color: r, label: "PORT-4", status: "online" }) },
|
|
6385
|
+
{ 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 }) },
|
|
6386
|
+
{ id: "port-6", label: "PORT-6", status: "online", element: /* @__PURE__ */ e(Y, { color: r, label: "PORT-6", status: "online" }) },
|
|
6387
|
+
{ id: "port-7", label: "PORT-7", status: "online", element: /* @__PURE__ */ e(Y, { color: r, label: "PORT-7", status: "online" }) },
|
|
6388
|
+
{ id: "port-8", label: "PORT-8", status: "online", element: /* @__PURE__ */ e(Y, { color: r, label: "PORT-8", status: "online" }) },
|
|
6389
|
+
{ id: "http-worker", label: "HTTP-WORKER", status: l, detail: l === "critical" ? "Worker timeout" : void 0, element: /* @__PURE__ */ e(W, { color: r, label: "HTTP-WORKER", status: l }) },
|
|
6390
|
+
{ id: "https-worker", label: "HTTPS-WORKER", status: "online", element: /* @__PURE__ */ e(W, { color: "#bb55ff", label: "HTTPS-WORKER", status: "online" }) }
|
|
6323
6391
|
];
|
|
6324
6392
|
}
|
|
6325
|
-
function
|
|
6393
|
+
function Bt(t) {
|
|
6326
6394
|
const n = t?.traffic ?? 50;
|
|
6327
6395
|
return [
|
|
6328
|
-
{ id: "traffic", label: "TRAFFIC", unit: "%", color: "#00e5ff", data:
|
|
6329
|
-
{ id: "port1", label: "PORT-1", unit: "kbps", color: "#22aaff", data:
|
|
6330
|
-
{ id: "port2", label: "PORT-2", unit: "kbps", color: "#22aaff", data:
|
|
6331
|
-
{ id: "port3", label: "PORT-3", unit: "kbps", color: "#22aaff", data:
|
|
6332
|
-
{ id: "worker", label: "WORKER", unit: "%", color: "#bb55ff", data:
|
|
6396
|
+
{ id: "traffic", label: "TRAFFIC", unit: "%", color: "#00e5ff", data: P(n, 20) },
|
|
6397
|
+
{ id: "port1", label: "PORT-1", unit: "kbps", color: "#22aaff", data: P(60, 25) },
|
|
6398
|
+
{ id: "port2", label: "PORT-2", unit: "kbps", color: "#22aaff", data: P(45, 20) },
|
|
6399
|
+
{ id: "port3", label: "PORT-3", unit: "kbps", color: "#22aaff", data: P(70, 30) },
|
|
6400
|
+
{ id: "worker", label: "WORKER", unit: "%", color: "#bb55ff", data: P(n * 0.9, 15) }
|
|
6333
6401
|
];
|
|
6334
6402
|
}
|
|
6335
|
-
function
|
|
6403
|
+
function $i(t, n, o) {
|
|
6336
6404
|
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
6405
|
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(
|
|
6341
|
-
{ 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(
|
|
6342
|
-
{ id: "worker-1", label: "WORKER-1", status: "online", element: /* @__PURE__ */ e(
|
|
6343
|
-
{ id: "worker-2", label: "WORKER-2", status: "online", element: /* @__PURE__ */ e(
|
|
6344
|
-
{ id: "worker-3", label: "WORKER-3", status: s, detail: s === "critical" ? "Worker timeout" : void 0, element: /* @__PURE__ */ e(
|
|
6406
|
+
{ id: "inst-0", label: "INST-0", status: "online", element: /* @__PURE__ */ e(Y, { color: "#bb55ff", label: "INST-0", status: "online" }) },
|
|
6407
|
+
{ id: "inst-1", label: "INST-1", status: "online", element: /* @__PURE__ */ e(Y, { color: "#bb55ff", label: "INST-1", status: "online" }) },
|
|
6408
|
+
{ 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 }) },
|
|
6409
|
+
{ 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(W, { color: "#bb55ff", label: "QUEUE-0", status: a }) },
|
|
6410
|
+
{ id: "worker-1", label: "WORKER-1", status: "online", element: /* @__PURE__ */ e(W, { color: "#bb55ff", label: "WORKER-1", status: "online" }) },
|
|
6411
|
+
{ id: "worker-2", label: "WORKER-2", status: "online", element: /* @__PURE__ */ e(W, { color: "#bb55ff", label: "WORKER-2", status: "online" }) },
|
|
6412
|
+
{ id: "worker-3", label: "WORKER-3", status: s, detail: s === "critical" ? "Worker timeout" : void 0, element: /* @__PURE__ */ e(W, { color: "#bb55ff", label: "WORKER-3", status: s }) }
|
|
6345
6413
|
];
|
|
6346
6414
|
}
|
|
6347
|
-
function
|
|
6415
|
+
function ki(t) {
|
|
6348
6416
|
const n = t?.queueDepth ?? 50;
|
|
6349
6417
|
return [
|
|
6350
|
-
{ id: "traffic", label: "TRAFFIC", unit: "%", color: "#00e5ff", data:
|
|
6351
|
-
{ id: "port1", label: "PORT-1", unit: "kbps", color: "#22aaff", data:
|
|
6352
|
-
{ id: "port2", label: "PORT-2", unit: "kbps", color: "#22aaff", data:
|
|
6353
|
-
{ id: "port3", label: "PORT-3", unit: "kbps", color: "#22aaff", data:
|
|
6354
|
-
{ id: "worker", label: "WORKER", unit: "%", color: "#bb55ff", data:
|
|
6418
|
+
{ id: "traffic", label: "TRAFFIC", unit: "%", color: "#00e5ff", data: P(n, 20) },
|
|
6419
|
+
{ id: "port1", label: "PORT-1", unit: "kbps", color: "#22aaff", data: P(60, 25) },
|
|
6420
|
+
{ id: "port2", label: "PORT-2", unit: "kbps", color: "#22aaff", data: P(45, 20) },
|
|
6421
|
+
{ id: "port3", label: "PORT-3", unit: "kbps", color: "#22aaff", data: P(70, 30) },
|
|
6422
|
+
{ id: "worker", label: "WORKER", unit: "%", color: "#bb55ff", data: P(n * 0.9, 15) }
|
|
6355
6423
|
];
|
|
6356
6424
|
}
|
|
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",
|
|
6425
|
+
function Je(t, n, o) {
|
|
6426
|
+
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
6427
|
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(
|
|
6363
|
-
{ id: "conn-pool", label: "CONN-POOL", status: h, detail: h === "critical" ? "Pool exhausted" : void 0, element: /* @__PURE__ */ e(
|
|
6364
|
-
{ id: "query-cache", label: "QUERY-CACHE", status:
|
|
6428
|
+
{ id: "platter-0", label: "PLATTER-0", status: "online", element: /* @__PURE__ */ e(Qe, { color: r, label: "PLATTER-0", status: "online", capacityPercent: a }) },
|
|
6429
|
+
{ 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 }) },
|
|
6430
|
+
{ 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 }) },
|
|
6431
|
+
{ id: "conn-pool", label: "CONN-POOL", status: h, detail: h === "critical" ? "Pool exhausted" : void 0, element: /* @__PURE__ */ e(W, { color: r, label: "CONN-POOL", status: h }) },
|
|
6432
|
+
{ id: "query-cache", label: "QUERY-CACHE", status: d, detail: d === "warning" ? "Cache miss rate" : void 0, element: /* @__PURE__ */ e(W, { color: "#00ff88", label: "QUERY-CACHE", status: d }) }
|
|
6365
6433
|
];
|
|
6366
6434
|
}
|
|
6367
|
-
function
|
|
6435
|
+
function et(t) {
|
|
6368
6436
|
const n = t?.capacity ?? 70;
|
|
6369
6437
|
return [
|
|
6370
|
-
{ id: "platter0", label: "PLATTER-0 I/O", unit: "%", color: "#ff8c00", data:
|
|
6371
|
-
{ id: "platter1", label: "PLATTER-1 I/O", unit: "%", color: "#ff8c00", data:
|
|
6372
|
-
{ id: "platter2", label: "PLATTER-2 I/O", unit: "%", color: "#ff8c00", data:
|
|
6373
|
-
{ id: "connpool", label: "CONN-POOL", unit: "%", color: "#00e5ff", data:
|
|
6374
|
-
{ id: "cache", label: "QUERY-CACHE", unit: "%", color: "#00ff88", data:
|
|
6438
|
+
{ id: "platter0", label: "PLATTER-0 I/O", unit: "%", color: "#ff8c00", data: P(40, 20) },
|
|
6439
|
+
{ id: "platter1", label: "PLATTER-1 I/O", unit: "%", color: "#ff8c00", data: P(55, 25) },
|
|
6440
|
+
{ id: "platter2", label: "PLATTER-2 I/O", unit: "%", color: "#ff8c00", data: P(35, 18) },
|
|
6441
|
+
{ id: "connpool", label: "CONN-POOL", unit: "%", color: "#00e5ff", data: P(n, 15) },
|
|
6442
|
+
{ id: "cache", label: "QUERY-CACHE", unit: "%", color: "#00ff88", data: P(75, 12) }
|
|
6375
6443
|
];
|
|
6376
6444
|
}
|
|
6377
|
-
function
|
|
6445
|
+
function vt(t) {
|
|
6378
6446
|
const n = [
|
|
6379
6447
|
t.wdStatus,
|
|
6380
6448
|
t.msStatus,
|
|
@@ -6386,8 +6454,8 @@ function at(t) {
|
|
|
6386
6454
|
];
|
|
6387
6455
|
return n.includes("critical") ? "critical" : n.includes("warning") ? "warning" : n.includes("offline") ? "offline" : "online";
|
|
6388
6456
|
}
|
|
6389
|
-
function
|
|
6390
|
-
const n =
|
|
6457
|
+
function _i(t) {
|
|
6458
|
+
const n = vt(t), o = n === "critical" || n === "offline", i = n === "warning";
|
|
6391
6459
|
return [
|
|
6392
6460
|
{
|
|
6393
6461
|
label: "Uptime",
|
|
@@ -6408,8 +6476,8 @@ function zi(t) {
|
|
|
6408
6476
|
}
|
|
6409
6477
|
];
|
|
6410
6478
|
}
|
|
6411
|
-
function
|
|
6412
|
-
const n =
|
|
6479
|
+
function ji(t) {
|
|
6480
|
+
const n = vt(t), o = n === "critical" || n === "offline", i = n === "warning";
|
|
6413
6481
|
return [
|
|
6414
6482
|
...t.dbSync ? [] : [{ level: "warning", message: "DB Replication Lag Detected" }],
|
|
6415
6483
|
...o ? [{ level: "critical", message: "Critical Component Failure" }] : [],
|
|
@@ -6417,7 +6485,7 @@ function Bi(t) {
|
|
|
6417
6485
|
...!o && !i && t.dbSync ? [{ level: "info", message: "All Systems Nominal" }] : []
|
|
6418
6486
|
];
|
|
6419
6487
|
}
|
|
6420
|
-
const
|
|
6488
|
+
const Ri = [
|
|
6421
6489
|
{ from: [330, 120], to: [220, 260], visibleAtPhase: 3 },
|
|
6422
6490
|
{ from: [330, 120], to: [440, 260], visibleAtPhase: 3 },
|
|
6423
6491
|
{ from: [220, 260], to: [165, 390], visibleAtPhase: 4 },
|
|
@@ -6430,11 +6498,11 @@ const mi = [
|
|
|
6430
6498
|
{ from: [330, 390], to: [200, 520], visibleAtPhase: 5, color: "#ff8c00" },
|
|
6431
6499
|
{ from: [495, 390], to: [200, 520], visibleAtPhase: 5, color: "#ff8c00" }
|
|
6432
6500
|
];
|
|
6433
|
-
function
|
|
6434
|
-
const n =
|
|
6435
|
-
return /* @__PURE__ */
|
|
6501
|
+
function Ci({ config: t }) {
|
|
6502
|
+
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;
|
|
6503
|
+
return /* @__PURE__ */ c(Me, { children: [
|
|
6436
6504
|
/* @__PURE__ */ e(
|
|
6437
|
-
|
|
6505
|
+
E,
|
|
6438
6506
|
{
|
|
6439
6507
|
ex: 330,
|
|
6440
6508
|
ey: 120,
|
|
@@ -6442,11 +6510,11 @@ function xi({ config: t }) {
|
|
|
6442
6510
|
zIndex: 10,
|
|
6443
6511
|
visibleAtPhase: 2,
|
|
6444
6512
|
color: "#00e5ff",
|
|
6445
|
-
children: /* @__PURE__ */ e(
|
|
6513
|
+
children: /* @__PURE__ */ e(yt, { status: "online", scale: 1.5 })
|
|
6446
6514
|
}
|
|
6447
6515
|
),
|
|
6448
6516
|
/* @__PURE__ */ e(
|
|
6449
|
-
|
|
6517
|
+
E,
|
|
6450
6518
|
{
|
|
6451
6519
|
ex: 220,
|
|
6452
6520
|
ey: 260,
|
|
@@ -6461,11 +6529,11 @@ function xi({ config: t }) {
|
|
|
6461
6529
|
name: "WEB-DISP",
|
|
6462
6530
|
status: r,
|
|
6463
6531
|
context: { traffic: 78 },
|
|
6464
|
-
subComponents:
|
|
6465
|
-
graphSeries:
|
|
6532
|
+
subComponents: zt(r),
|
|
6533
|
+
graphSeries: Bt({ traffic: 78 })
|
|
6466
6534
|
},
|
|
6467
6535
|
children: /* @__PURE__ */ e(
|
|
6468
|
-
|
|
6536
|
+
mt,
|
|
6469
6537
|
{
|
|
6470
6538
|
rotateY: o,
|
|
6471
6539
|
autoRotate: i,
|
|
@@ -6479,7 +6547,7 @@ function xi({ config: t }) {
|
|
|
6479
6547
|
}
|
|
6480
6548
|
),
|
|
6481
6549
|
/* @__PURE__ */ e(
|
|
6482
|
-
|
|
6550
|
+
E,
|
|
6483
6551
|
{
|
|
6484
6552
|
ex: 440,
|
|
6485
6553
|
ey: 260,
|
|
@@ -6494,11 +6562,11 @@ function xi({ config: t }) {
|
|
|
6494
6562
|
name: "MSG-SRV",
|
|
6495
6563
|
status: a,
|
|
6496
6564
|
context: { queueDepth: 45 },
|
|
6497
|
-
subComponents:
|
|
6498
|
-
graphSeries:
|
|
6565
|
+
subComponents: $i(a),
|
|
6566
|
+
graphSeries: ki({ queueDepth: 45 })
|
|
6499
6567
|
},
|
|
6500
6568
|
children: /* @__PURE__ */ e(
|
|
6501
|
-
|
|
6569
|
+
Dt,
|
|
6502
6570
|
{
|
|
6503
6571
|
rotateY: -o,
|
|
6504
6572
|
autoRotate: i,
|
|
@@ -6513,7 +6581,7 @@ function xi({ config: t }) {
|
|
|
6513
6581
|
}
|
|
6514
6582
|
),
|
|
6515
6583
|
/* @__PURE__ */ e(
|
|
6516
|
-
|
|
6584
|
+
E,
|
|
6517
6585
|
{
|
|
6518
6586
|
ex: 165,
|
|
6519
6587
|
ey: 390,
|
|
@@ -6528,11 +6596,11 @@ function xi({ config: t }) {
|
|
|
6528
6596
|
name: "APP-01",
|
|
6529
6597
|
status: s,
|
|
6530
6598
|
context: { cpuLoad: 67, memLoad: 72 },
|
|
6531
|
-
subComponents:
|
|
6532
|
-
graphSeries:
|
|
6599
|
+
subComponents: Ne(s, "APP-01", { cpuLoad: 67, memLoad: 72 }),
|
|
6600
|
+
graphSeries: We({ cpuLoad: 67, memLoad: 72 })
|
|
6533
6601
|
},
|
|
6534
6602
|
children: /* @__PURE__ */ e(
|
|
6535
|
-
|
|
6603
|
+
$e,
|
|
6536
6604
|
{
|
|
6537
6605
|
rotateY: o,
|
|
6538
6606
|
autoRotate: i,
|
|
@@ -6546,7 +6614,7 @@ function xi({ config: t }) {
|
|
|
6546
6614
|
}
|
|
6547
6615
|
),
|
|
6548
6616
|
/* @__PURE__ */ e(
|
|
6549
|
-
|
|
6617
|
+
E,
|
|
6550
6618
|
{
|
|
6551
6619
|
ex: 330,
|
|
6552
6620
|
ey: 390,
|
|
@@ -6561,11 +6629,11 @@ function xi({ config: t }) {
|
|
|
6561
6629
|
name: "APP-02",
|
|
6562
6630
|
status: l,
|
|
6563
6631
|
context: { cpuLoad: 89, memLoad: 91 },
|
|
6564
|
-
subComponents:
|
|
6565
|
-
graphSeries:
|
|
6632
|
+
subComponents: Ne(l, "APP-02", { cpuLoad: 89, memLoad: 91 }),
|
|
6633
|
+
graphSeries: We({ cpuLoad: 89, memLoad: 91 })
|
|
6566
6634
|
},
|
|
6567
6635
|
children: /* @__PURE__ */ e(
|
|
6568
|
-
|
|
6636
|
+
$e,
|
|
6569
6637
|
{
|
|
6570
6638
|
rotateY: o,
|
|
6571
6639
|
autoRotate: i,
|
|
@@ -6579,7 +6647,7 @@ function xi({ config: t }) {
|
|
|
6579
6647
|
}
|
|
6580
6648
|
),
|
|
6581
6649
|
/* @__PURE__ */ e(
|
|
6582
|
-
|
|
6650
|
+
E,
|
|
6583
6651
|
{
|
|
6584
6652
|
ex: 495,
|
|
6585
6653
|
ey: 390,
|
|
@@ -6594,11 +6662,11 @@ function xi({ config: t }) {
|
|
|
6594
6662
|
name: "APP-03",
|
|
6595
6663
|
status: h,
|
|
6596
6664
|
context: { cpuLoad: 45, memLoad: 63 },
|
|
6597
|
-
subComponents:
|
|
6598
|
-
graphSeries:
|
|
6665
|
+
subComponents: Ne(h, "APP-03", { cpuLoad: 45, memLoad: 63 }),
|
|
6666
|
+
graphSeries: We({ cpuLoad: 45, memLoad: 63 })
|
|
6599
6667
|
},
|
|
6600
6668
|
children: /* @__PURE__ */ e(
|
|
6601
|
-
|
|
6669
|
+
$e,
|
|
6602
6670
|
{
|
|
6603
6671
|
rotateY: o,
|
|
6604
6672
|
autoRotate: i,
|
|
@@ -6612,7 +6680,7 @@ function xi({ config: t }) {
|
|
|
6612
6680
|
}
|
|
6613
6681
|
),
|
|
6614
6682
|
/* @__PURE__ */ e(
|
|
6615
|
-
|
|
6683
|
+
E,
|
|
6616
6684
|
{
|
|
6617
6685
|
ex: 200,
|
|
6618
6686
|
ey: 520,
|
|
@@ -6625,17 +6693,17 @@ function xi({ config: t }) {
|
|
|
6625
6693
|
componentInfo: {
|
|
6626
6694
|
type: "database",
|
|
6627
6695
|
name: "DB-PRI",
|
|
6628
|
-
status:
|
|
6696
|
+
status: d,
|
|
6629
6697
|
context: { capacity: 72 },
|
|
6630
|
-
subComponents:
|
|
6631
|
-
graphSeries:
|
|
6698
|
+
subComponents: Je(d, "DB-PRI", { capacity: 72 }),
|
|
6699
|
+
graphSeries: et({ capacity: 72 })
|
|
6632
6700
|
},
|
|
6633
6701
|
children: /* @__PURE__ */ e(
|
|
6634
|
-
|
|
6702
|
+
Ue,
|
|
6635
6703
|
{
|
|
6636
6704
|
rotateY: -o,
|
|
6637
6705
|
autoRotate: i,
|
|
6638
|
-
status:
|
|
6706
|
+
status: d,
|
|
6639
6707
|
name: "DB-PRI",
|
|
6640
6708
|
capacity: 72,
|
|
6641
6709
|
connections: 284,
|
|
@@ -6645,7 +6713,7 @@ function xi({ config: t }) {
|
|
|
6645
6713
|
}
|
|
6646
6714
|
),
|
|
6647
6715
|
/* @__PURE__ */ e(
|
|
6648
|
-
|
|
6716
|
+
E,
|
|
6649
6717
|
{
|
|
6650
6718
|
ex: 460,
|
|
6651
6719
|
ey: 520,
|
|
@@ -6660,11 +6728,11 @@ function xi({ config: t }) {
|
|
|
6660
6728
|
name: "DB-STB",
|
|
6661
6729
|
status: p,
|
|
6662
6730
|
context: { capacity: 72 },
|
|
6663
|
-
subComponents:
|
|
6664
|
-
graphSeries:
|
|
6731
|
+
subComponents: Je(p, "DB-STB", { capacity: 72 }),
|
|
6732
|
+
graphSeries: et({ capacity: 72 })
|
|
6665
6733
|
},
|
|
6666
6734
|
children: /* @__PURE__ */ e(
|
|
6667
|
-
|
|
6735
|
+
Ue,
|
|
6668
6736
|
{
|
|
6669
6737
|
rotateY: o,
|
|
6670
6738
|
autoRotate: i,
|
|
@@ -6678,7 +6746,7 @@ function xi({ config: t }) {
|
|
|
6678
6746
|
}
|
|
6679
6747
|
),
|
|
6680
6748
|
/* @__PURE__ */ e(
|
|
6681
|
-
|
|
6749
|
+
E,
|
|
6682
6750
|
{
|
|
6683
6751
|
ex: 330,
|
|
6684
6752
|
ey: 520,
|
|
@@ -6687,17 +6755,17 @@ function xi({ config: t }) {
|
|
|
6687
6755
|
visibleAtPhase: 6,
|
|
6688
6756
|
fixedScale: 1,
|
|
6689
6757
|
bare: !0,
|
|
6690
|
-
children: /* @__PURE__ */ e(
|
|
6758
|
+
children: /* @__PURE__ */ e(It, { synced: f, latencyMs: f ? 8 : 342 })
|
|
6691
6759
|
}
|
|
6692
6760
|
),
|
|
6693
|
-
/* @__PURE__ */ e(
|
|
6761
|
+
/* @__PURE__ */ e(Pi, { config: t })
|
|
6694
6762
|
] });
|
|
6695
6763
|
}
|
|
6696
|
-
function
|
|
6697
|
-
const n =
|
|
6698
|
-
return n?.isSelected ? /* @__PURE__ */
|
|
6764
|
+
function Pi({ config: t }) {
|
|
6765
|
+
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;
|
|
6766
|
+
return n?.isSelected ? /* @__PURE__ */ c("div", { style: { pointerEvents: "none" }, children: [
|
|
6699
6767
|
/* @__PURE__ */ e(
|
|
6700
|
-
|
|
6768
|
+
N,
|
|
6701
6769
|
{
|
|
6702
6770
|
ex: 220,
|
|
6703
6771
|
ey: 260,
|
|
@@ -6712,7 +6780,7 @@ function vi({ config: t }) {
|
|
|
6712
6780
|
}
|
|
6713
6781
|
),
|
|
6714
6782
|
/* @__PURE__ */ e(
|
|
6715
|
-
|
|
6783
|
+
N,
|
|
6716
6784
|
{
|
|
6717
6785
|
ex: 440,
|
|
6718
6786
|
ey: 260,
|
|
@@ -6727,7 +6795,7 @@ function vi({ config: t }) {
|
|
|
6727
6795
|
}
|
|
6728
6796
|
),
|
|
6729
6797
|
/* @__PURE__ */ e(
|
|
6730
|
-
|
|
6798
|
+
N,
|
|
6731
6799
|
{
|
|
6732
6800
|
ex: 165,
|
|
6733
6801
|
ey: 390,
|
|
@@ -6742,7 +6810,7 @@ function vi({ config: t }) {
|
|
|
6742
6810
|
}
|
|
6743
6811
|
),
|
|
6744
6812
|
/* @__PURE__ */ e(
|
|
6745
|
-
|
|
6813
|
+
N,
|
|
6746
6814
|
{
|
|
6747
6815
|
ex: 330,
|
|
6748
6816
|
ey: 390,
|
|
@@ -6757,7 +6825,7 @@ function vi({ config: t }) {
|
|
|
6757
6825
|
}
|
|
6758
6826
|
),
|
|
6759
6827
|
/* @__PURE__ */ e(
|
|
6760
|
-
|
|
6828
|
+
N,
|
|
6761
6829
|
{
|
|
6762
6830
|
ex: 495,
|
|
6763
6831
|
ey: 390,
|
|
@@ -6772,7 +6840,7 @@ function vi({ config: t }) {
|
|
|
6772
6840
|
}
|
|
6773
6841
|
),
|
|
6774
6842
|
/* @__PURE__ */ e(
|
|
6775
|
-
|
|
6843
|
+
N,
|
|
6776
6844
|
{
|
|
6777
6845
|
ex: 200,
|
|
6778
6846
|
ey: 520,
|
|
@@ -6787,7 +6855,7 @@ function vi({ config: t }) {
|
|
|
6787
6855
|
}
|
|
6788
6856
|
),
|
|
6789
6857
|
/* @__PURE__ */ e(
|
|
6790
|
-
|
|
6858
|
+
N,
|
|
6791
6859
|
{
|
|
6792
6860
|
ex: 460,
|
|
6793
6861
|
ey: 520,
|
|
@@ -6801,8 +6869,8 @@ function vi({ config: t }) {
|
|
|
6801
6869
|
internalRef: h !== "online" ? "PLATTER-2" : void 0
|
|
6802
6870
|
}
|
|
6803
6871
|
),
|
|
6804
|
-
!
|
|
6805
|
-
|
|
6872
|
+
!d && /* @__PURE__ */ e(
|
|
6873
|
+
N,
|
|
6806
6874
|
{
|
|
6807
6875
|
ex: 330,
|
|
6808
6876
|
ey: 520,
|
|
@@ -6818,19 +6886,19 @@ function vi({ config: t }) {
|
|
|
6818
6886
|
)
|
|
6819
6887
|
] }) : null;
|
|
6820
6888
|
}
|
|
6821
|
-
function
|
|
6889
|
+
function Xi({ config: t, ...n }) {
|
|
6822
6890
|
return /* @__PURE__ */ e(
|
|
6823
|
-
|
|
6891
|
+
Lt,
|
|
6824
6892
|
{
|
|
6825
6893
|
name: t.name,
|
|
6826
|
-
status:
|
|
6827
|
-
connections:
|
|
6894
|
+
status: vt(t),
|
|
6895
|
+
connections: Ri,
|
|
6828
6896
|
...n,
|
|
6829
|
-
children: /* @__PURE__ */ e(
|
|
6897
|
+
children: /* @__PURE__ */ e(Ci, { config: t })
|
|
6830
6898
|
}
|
|
6831
6899
|
);
|
|
6832
6900
|
}
|
|
6833
|
-
function
|
|
6901
|
+
function wt(t) {
|
|
6834
6902
|
const n = [
|
|
6835
6903
|
t.dispStatus,
|
|
6836
6904
|
t.srv1Status,
|
|
@@ -6841,8 +6909,8 @@ function lt(t) {
|
|
|
6841
6909
|
];
|
|
6842
6910
|
return n.includes("critical") ? "critical" : n.includes("warning") ? "warning" : n.includes("offline") ? "offline" : "online";
|
|
6843
6911
|
}
|
|
6844
|
-
function
|
|
6845
|
-
const n =
|
|
6912
|
+
function qi(t) {
|
|
6913
|
+
const n = wt(t), o = n === "critical" || n === "offline", i = n === "warning";
|
|
6846
6914
|
return [
|
|
6847
6915
|
{
|
|
6848
6916
|
label: "Uptime",
|
|
@@ -6863,8 +6931,8 @@ function Hi(t) {
|
|
|
6863
6931
|
}
|
|
6864
6932
|
];
|
|
6865
6933
|
}
|
|
6866
|
-
function
|
|
6867
|
-
const n =
|
|
6934
|
+
function Qi(t) {
|
|
6935
|
+
const n = wt(t), o = n === "critical" || n === "offline", i = n === "warning";
|
|
6868
6936
|
return [
|
|
6869
6937
|
...t.dbSync ? [] : [{ level: "warning", message: "DB Replication Lag Detected" }],
|
|
6870
6938
|
...o ? [{ level: "critical", message: "Critical Component Failure" }] : [],
|
|
@@ -6872,7 +6940,7 @@ function Ui(t) {
|
|
|
6872
6940
|
...!o && !i && t.dbSync ? [{ level: "info", message: "All Systems Nominal" }] : []
|
|
6873
6941
|
];
|
|
6874
6942
|
}
|
|
6875
|
-
const
|
|
6943
|
+
const Ei = [
|
|
6876
6944
|
{ from: [330, 120], to: [330, 260], visibleAtPhase: 3 },
|
|
6877
6945
|
{ from: [330, 260], to: [165, 390], visibleAtPhase: 4 },
|
|
6878
6946
|
{ from: [330, 260], to: [330, 390], visibleAtPhase: 4 },
|
|
@@ -6881,11 +6949,11 @@ const wi = [
|
|
|
6881
6949
|
{ from: [330, 390], to: [200, 520], visibleAtPhase: 5, color: "#ff8c00" },
|
|
6882
6950
|
{ from: [495, 390], to: [200, 520], visibleAtPhase: 5, color: "#ff8c00" }
|
|
6883
6951
|
];
|
|
6884
|
-
function
|
|
6885
|
-
const n =
|
|
6886
|
-
return /* @__PURE__ */
|
|
6952
|
+
function Ai({ config: t }) {
|
|
6953
|
+
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;
|
|
6954
|
+
return /* @__PURE__ */ c(Me, { children: [
|
|
6887
6955
|
/* @__PURE__ */ e(
|
|
6888
|
-
|
|
6956
|
+
E,
|
|
6889
6957
|
{
|
|
6890
6958
|
ex: 330,
|
|
6891
6959
|
ey: 120,
|
|
@@ -6893,11 +6961,11 @@ function Si({ config: t }) {
|
|
|
6893
6961
|
zIndex: 10,
|
|
6894
6962
|
visibleAtPhase: 2,
|
|
6895
6963
|
color: "#00e5ff",
|
|
6896
|
-
children: /* @__PURE__ */ e(
|
|
6964
|
+
children: /* @__PURE__ */ e(yt, { status: "online", scale: 1.5 })
|
|
6897
6965
|
}
|
|
6898
6966
|
),
|
|
6899
6967
|
/* @__PURE__ */ e(
|
|
6900
|
-
|
|
6968
|
+
E,
|
|
6901
6969
|
{
|
|
6902
6970
|
ex: 330,
|
|
6903
6971
|
ey: 260,
|
|
@@ -6912,11 +6980,11 @@ function Si({ config: t }) {
|
|
|
6912
6980
|
name: "DISP-01",
|
|
6913
6981
|
status: r,
|
|
6914
6982
|
context: { traffic: 78 },
|
|
6915
|
-
subComponents:
|
|
6916
|
-
graphSeries:
|
|
6983
|
+
subComponents: zt(r),
|
|
6984
|
+
graphSeries: Bt({ traffic: 78 })
|
|
6917
6985
|
},
|
|
6918
6986
|
children: /* @__PURE__ */ e(
|
|
6919
|
-
|
|
6987
|
+
mt,
|
|
6920
6988
|
{
|
|
6921
6989
|
rotateY: o,
|
|
6922
6990
|
autoRotate: i,
|
|
@@ -6930,7 +6998,7 @@ function Si({ config: t }) {
|
|
|
6930
6998
|
}
|
|
6931
6999
|
),
|
|
6932
7000
|
/* @__PURE__ */ e(
|
|
6933
|
-
|
|
7001
|
+
E,
|
|
6934
7002
|
{
|
|
6935
7003
|
ex: 165,
|
|
6936
7004
|
ey: 390,
|
|
@@ -6945,11 +7013,11 @@ function Si({ config: t }) {
|
|
|
6945
7013
|
name: "APP-01",
|
|
6946
7014
|
status: a,
|
|
6947
7015
|
context: { cpuLoad: 67, memLoad: 72 },
|
|
6948
|
-
subComponents:
|
|
6949
|
-
graphSeries:
|
|
7016
|
+
subComponents: Ne(a, "APP-01", { cpuLoad: 67, memLoad: 72 }),
|
|
7017
|
+
graphSeries: We({ cpuLoad: 67, memLoad: 72 })
|
|
6950
7018
|
},
|
|
6951
7019
|
children: /* @__PURE__ */ e(
|
|
6952
|
-
|
|
7020
|
+
$e,
|
|
6953
7021
|
{
|
|
6954
7022
|
rotateY: o,
|
|
6955
7023
|
autoRotate: i,
|
|
@@ -6963,7 +7031,7 @@ function Si({ config: t }) {
|
|
|
6963
7031
|
}
|
|
6964
7032
|
),
|
|
6965
7033
|
/* @__PURE__ */ e(
|
|
6966
|
-
|
|
7034
|
+
E,
|
|
6967
7035
|
{
|
|
6968
7036
|
ex: 330,
|
|
6969
7037
|
ey: 390,
|
|
@@ -6978,11 +7046,11 @@ function Si({ config: t }) {
|
|
|
6978
7046
|
name: "APP-02",
|
|
6979
7047
|
status: s,
|
|
6980
7048
|
context: { cpuLoad: 89, memLoad: 91 },
|
|
6981
|
-
subComponents:
|
|
6982
|
-
graphSeries:
|
|
7049
|
+
subComponents: Ne(s, "APP-02", { cpuLoad: 89, memLoad: 91 }),
|
|
7050
|
+
graphSeries: We({ cpuLoad: 89, memLoad: 91 })
|
|
6983
7051
|
},
|
|
6984
7052
|
children: /* @__PURE__ */ e(
|
|
6985
|
-
|
|
7053
|
+
$e,
|
|
6986
7054
|
{
|
|
6987
7055
|
rotateY: o,
|
|
6988
7056
|
autoRotate: i,
|
|
@@ -6996,7 +7064,7 @@ function Si({ config: t }) {
|
|
|
6996
7064
|
}
|
|
6997
7065
|
),
|
|
6998
7066
|
/* @__PURE__ */ e(
|
|
6999
|
-
|
|
7067
|
+
E,
|
|
7000
7068
|
{
|
|
7001
7069
|
ex: 495,
|
|
7002
7070
|
ey: 390,
|
|
@@ -7011,11 +7079,11 @@ function Si({ config: t }) {
|
|
|
7011
7079
|
name: "APP-03",
|
|
7012
7080
|
status: l,
|
|
7013
7081
|
context: { cpuLoad: 45, memLoad: 63 },
|
|
7014
|
-
subComponents:
|
|
7015
|
-
graphSeries:
|
|
7082
|
+
subComponents: Ne(l, "APP-03", { cpuLoad: 45, memLoad: 63 }),
|
|
7083
|
+
graphSeries: We({ cpuLoad: 45, memLoad: 63 })
|
|
7016
7084
|
},
|
|
7017
7085
|
children: /* @__PURE__ */ e(
|
|
7018
|
-
|
|
7086
|
+
$e,
|
|
7019
7087
|
{
|
|
7020
7088
|
rotateY: o,
|
|
7021
7089
|
autoRotate: i,
|
|
@@ -7029,7 +7097,7 @@ function Si({ config: t }) {
|
|
|
7029
7097
|
}
|
|
7030
7098
|
),
|
|
7031
7099
|
/* @__PURE__ */ e(
|
|
7032
|
-
|
|
7100
|
+
E,
|
|
7033
7101
|
{
|
|
7034
7102
|
ex: 200,
|
|
7035
7103
|
ey: 520,
|
|
@@ -7044,11 +7112,11 @@ function Si({ config: t }) {
|
|
|
7044
7112
|
name: "DB-PRI",
|
|
7045
7113
|
status: h,
|
|
7046
7114
|
context: { capacity: 72 },
|
|
7047
|
-
subComponents:
|
|
7048
|
-
graphSeries:
|
|
7115
|
+
subComponents: Je(h, "DB-PRI", { capacity: 72 }),
|
|
7116
|
+
graphSeries: et({ capacity: 72 })
|
|
7049
7117
|
},
|
|
7050
7118
|
children: /* @__PURE__ */ e(
|
|
7051
|
-
|
|
7119
|
+
Ue,
|
|
7052
7120
|
{
|
|
7053
7121
|
rotateY: -o,
|
|
7054
7122
|
autoRotate: i,
|
|
@@ -7062,7 +7130,7 @@ function Si({ config: t }) {
|
|
|
7062
7130
|
}
|
|
7063
7131
|
),
|
|
7064
7132
|
/* @__PURE__ */ e(
|
|
7065
|
-
|
|
7133
|
+
E,
|
|
7066
7134
|
{
|
|
7067
7135
|
ex: 460,
|
|
7068
7136
|
ey: 520,
|
|
@@ -7075,17 +7143,17 @@ function Si({ config: t }) {
|
|
|
7075
7143
|
componentInfo: {
|
|
7076
7144
|
type: "database",
|
|
7077
7145
|
name: "DB-STB",
|
|
7078
|
-
status:
|
|
7146
|
+
status: d,
|
|
7079
7147
|
context: { capacity: 72 },
|
|
7080
|
-
subComponents:
|
|
7081
|
-
graphSeries:
|
|
7148
|
+
subComponents: Je(d, "DB-STB", { capacity: 72 }),
|
|
7149
|
+
graphSeries: et({ capacity: 72 })
|
|
7082
7150
|
},
|
|
7083
7151
|
children: /* @__PURE__ */ e(
|
|
7084
|
-
|
|
7152
|
+
Ue,
|
|
7085
7153
|
{
|
|
7086
7154
|
rotateY: o,
|
|
7087
7155
|
autoRotate: i,
|
|
7088
|
-
status:
|
|
7156
|
+
status: d,
|
|
7089
7157
|
name: "DB-STB",
|
|
7090
7158
|
capacity: 72,
|
|
7091
7159
|
connections: 0,
|
|
@@ -7095,7 +7163,7 @@ function Si({ config: t }) {
|
|
|
7095
7163
|
}
|
|
7096
7164
|
),
|
|
7097
7165
|
/* @__PURE__ */ e(
|
|
7098
|
-
|
|
7166
|
+
E,
|
|
7099
7167
|
{
|
|
7100
7168
|
ex: 330,
|
|
7101
7169
|
ey: 520,
|
|
@@ -7104,17 +7172,17 @@ function Si({ config: t }) {
|
|
|
7104
7172
|
visibleAtPhase: 6,
|
|
7105
7173
|
fixedScale: 1,
|
|
7106
7174
|
bare: !0,
|
|
7107
|
-
children: /* @__PURE__ */ e(
|
|
7175
|
+
children: /* @__PURE__ */ e(It, { synced: p, latencyMs: p ? 8 : 342 })
|
|
7108
7176
|
}
|
|
7109
7177
|
),
|
|
7110
|
-
/* @__PURE__ */ e(
|
|
7178
|
+
/* @__PURE__ */ e(Ti, { config: t })
|
|
7111
7179
|
] });
|
|
7112
7180
|
}
|
|
7113
|
-
function
|
|
7114
|
-
const n =
|
|
7115
|
-
return n?.isSelected ? /* @__PURE__ */
|
|
7181
|
+
function Ti({ config: t }) {
|
|
7182
|
+
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;
|
|
7183
|
+
return n?.isSelected ? /* @__PURE__ */ c("div", { style: { pointerEvents: "none" }, children: [
|
|
7116
7184
|
/* @__PURE__ */ e(
|
|
7117
|
-
|
|
7185
|
+
N,
|
|
7118
7186
|
{
|
|
7119
7187
|
ex: 330,
|
|
7120
7188
|
ey: 260,
|
|
@@ -7124,12 +7192,12 @@ function $i({ config: t }) {
|
|
|
7124
7192
|
offsetX: -90,
|
|
7125
7193
|
offsetY: -40,
|
|
7126
7194
|
align: "left",
|
|
7127
|
-
isVisible: !!
|
|
7195
|
+
isVisible: !!d,
|
|
7128
7196
|
internalRef: o !== "online" ? "PORT-3" : void 0
|
|
7129
7197
|
}
|
|
7130
7198
|
),
|
|
7131
7199
|
/* @__PURE__ */ e(
|
|
7132
|
-
|
|
7200
|
+
N,
|
|
7133
7201
|
{
|
|
7134
7202
|
ex: 165,
|
|
7135
7203
|
ey: 390,
|
|
@@ -7139,12 +7207,12 @@ function $i({ config: t }) {
|
|
|
7139
7207
|
offsetX: -110,
|
|
7140
7208
|
offsetY: -30,
|
|
7141
7209
|
align: "left",
|
|
7142
|
-
isVisible: !!
|
|
7210
|
+
isVisible: !!d,
|
|
7143
7211
|
internalRef: i !== "online" ? "CPU-0" : void 0
|
|
7144
7212
|
}
|
|
7145
7213
|
),
|
|
7146
7214
|
/* @__PURE__ */ e(
|
|
7147
|
-
|
|
7215
|
+
N,
|
|
7148
7216
|
{
|
|
7149
7217
|
ex: 330,
|
|
7150
7218
|
ey: 390,
|
|
@@ -7154,12 +7222,12 @@ function $i({ config: t }) {
|
|
|
7154
7222
|
offsetX: 100,
|
|
7155
7223
|
offsetY: -80,
|
|
7156
7224
|
align: "right",
|
|
7157
|
-
isVisible: !!
|
|
7225
|
+
isVisible: !!d,
|
|
7158
7226
|
internalRef: r !== "online" ? "HEAP-0" : void 0
|
|
7159
7227
|
}
|
|
7160
7228
|
),
|
|
7161
7229
|
/* @__PURE__ */ e(
|
|
7162
|
-
|
|
7230
|
+
N,
|
|
7163
7231
|
{
|
|
7164
7232
|
ex: 495,
|
|
7165
7233
|
ey: 390,
|
|
@@ -7169,12 +7237,12 @@ function $i({ config: t }) {
|
|
|
7169
7237
|
offsetX: 110,
|
|
7170
7238
|
offsetY: -30,
|
|
7171
7239
|
align: "right",
|
|
7172
|
-
isVisible: !!
|
|
7240
|
+
isVisible: !!d,
|
|
7173
7241
|
internalRef: a !== "online" ? "THREAD-POOL" : void 0
|
|
7174
7242
|
}
|
|
7175
7243
|
),
|
|
7176
7244
|
/* @__PURE__ */ e(
|
|
7177
|
-
|
|
7245
|
+
N,
|
|
7178
7246
|
{
|
|
7179
7247
|
ex: 200,
|
|
7180
7248
|
ey: 520,
|
|
@@ -7184,12 +7252,12 @@ function $i({ config: t }) {
|
|
|
7184
7252
|
offsetX: -110,
|
|
7185
7253
|
offsetY: 30,
|
|
7186
7254
|
align: "left",
|
|
7187
|
-
isVisible: !!
|
|
7255
|
+
isVisible: !!d,
|
|
7188
7256
|
internalRef: s !== "online" ? s === "critical" ? "CONN-POOL" : "QUERY-CACHE" : void 0
|
|
7189
7257
|
}
|
|
7190
7258
|
),
|
|
7191
7259
|
/* @__PURE__ */ e(
|
|
7192
|
-
|
|
7260
|
+
N,
|
|
7193
7261
|
{
|
|
7194
7262
|
ex: 460,
|
|
7195
7263
|
ey: 520,
|
|
@@ -7199,12 +7267,12 @@ function $i({ config: t }) {
|
|
|
7199
7267
|
offsetX: 110,
|
|
7200
7268
|
offsetY: 30,
|
|
7201
7269
|
align: "right",
|
|
7202
|
-
isVisible: !!
|
|
7270
|
+
isVisible: !!d,
|
|
7203
7271
|
internalRef: l !== "online" ? "PLATTER-2" : void 0
|
|
7204
7272
|
}
|
|
7205
7273
|
),
|
|
7206
7274
|
!h && /* @__PURE__ */ e(
|
|
7207
|
-
|
|
7275
|
+
N,
|
|
7208
7276
|
{
|
|
7209
7277
|
ex: 330,
|
|
7210
7278
|
ey: 520,
|
|
@@ -7214,86 +7282,86 @@ function $i({ config: t }) {
|
|
|
7214
7282
|
offsetX: 0,
|
|
7215
7283
|
offsetY: 60,
|
|
7216
7284
|
align: "bottom",
|
|
7217
|
-
isVisible: !!
|
|
7285
|
+
isVisible: !!d,
|
|
7218
7286
|
internalRef: "PLATTER-2"
|
|
7219
7287
|
}
|
|
7220
7288
|
)
|
|
7221
7289
|
] }) : null;
|
|
7222
7290
|
}
|
|
7223
|
-
function
|
|
7291
|
+
function Gi({ config: t, ...n }) {
|
|
7224
7292
|
return /* @__PURE__ */ e(
|
|
7225
|
-
|
|
7293
|
+
Lt,
|
|
7226
7294
|
{
|
|
7227
7295
|
name: t.name,
|
|
7228
|
-
status:
|
|
7229
|
-
connections:
|
|
7296
|
+
status: wt(t),
|
|
7297
|
+
connections: Ei,
|
|
7230
7298
|
...n,
|
|
7231
|
-
children: /* @__PURE__ */ e(
|
|
7299
|
+
children: /* @__PURE__ */ e(Ai, { config: t })
|
|
7232
7300
|
}
|
|
7233
7301
|
);
|
|
7234
7302
|
}
|
|
7235
7303
|
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
|
-
|
|
7261
|
-
|
|
7262
|
-
|
|
7263
|
-
|
|
7264
|
-
|
|
7265
|
-
|
|
7266
|
-
|
|
7267
|
-
|
|
7268
|
-
|
|
7269
|
-
|
|
7270
|
-
|
|
7271
|
-
|
|
7272
|
-
|
|
7273
|
-
|
|
7274
|
-
|
|
7275
|
-
|
|
7276
|
-
|
|
7277
|
-
|
|
7278
|
-
|
|
7279
|
-
|
|
7280
|
-
|
|
7281
|
-
|
|
7282
|
-
|
|
7283
|
-
|
|
7284
|
-
|
|
7285
|
-
|
|
7286
|
-
|
|
7287
|
-
|
|
7288
|
-
|
|
7289
|
-
|
|
7290
|
-
|
|
7291
|
-
|
|
7292
|
-
|
|
7293
|
-
|
|
7294
|
-
|
|
7295
|
-
|
|
7296
|
-
|
|
7297
|
-
|
|
7298
|
-
|
|
7304
|
+
Vi as AIOPsDashboard,
|
|
7305
|
+
Ke as CPU3D,
|
|
7306
|
+
Xt as Carousel,
|
|
7307
|
+
ut as CarouselContext,
|
|
7308
|
+
bt as CarouselItemContext,
|
|
7309
|
+
Vt as ComponentDialog,
|
|
7310
|
+
Ui as ComponentDrillView,
|
|
7311
|
+
Si as DataProvider,
|
|
7312
|
+
Ue as Database3D,
|
|
7313
|
+
zi as DatabaseNode,
|
|
7314
|
+
De as DriveBay3D,
|
|
7315
|
+
Ei as EXCHANGE_CONNECTIONS,
|
|
7316
|
+
Gi as ExchangeService,
|
|
7317
|
+
Di as HOLO_BLUE,
|
|
7318
|
+
Ii as HOLO_CYAN,
|
|
7319
|
+
ft as HOLO_GLASS,
|
|
7320
|
+
ze as HOLO_SURFACE,
|
|
7321
|
+
pi as HistoricalGraphPanel,
|
|
7322
|
+
Gt as HoloBase,
|
|
7323
|
+
yt as Human3D,
|
|
7324
|
+
Bi as HumanNode,
|
|
7325
|
+
Ze as Memory3D,
|
|
7326
|
+
Dt as MessageServer3D,
|
|
7327
|
+
Hi as MessageServerNode,
|
|
7328
|
+
Wt as NetworkBlock3D,
|
|
7329
|
+
N as NodeCallout,
|
|
7330
|
+
Qe as Platter3D,
|
|
7331
|
+
Y as Port3D,
|
|
7332
|
+
Xi as SAPService,
|
|
7333
|
+
Ri as SAP_CONNECTIONS,
|
|
7334
|
+
C as STATUS_CFG,
|
|
7335
|
+
$e as Server3D,
|
|
7336
|
+
Mi as ServerNode,
|
|
7337
|
+
Lt as Service,
|
|
7338
|
+
Re as ServiceContext,
|
|
7339
|
+
Ut as ServiceDialog,
|
|
7340
|
+
E as ServiceNode,
|
|
7341
|
+
qt as SvgConnection,
|
|
7342
|
+
It as SyncBridge,
|
|
7343
|
+
W as ThreadPool3D,
|
|
7344
|
+
mt as WebDispatcher3D,
|
|
7345
|
+
Fi as WebDispatcherNode,
|
|
7346
|
+
Qi as computeExchangeDialogAlerts,
|
|
7347
|
+
qi as computeExchangeDialogMetrics,
|
|
7348
|
+
wt as computeExchangeServiceStatus,
|
|
7349
|
+
ji as computeSAPDialogAlerts,
|
|
7350
|
+
_i as computeSAPDialogMetrics,
|
|
7351
|
+
vt as computeSAPServiceStatus,
|
|
7352
|
+
wi as defaultDataTransform,
|
|
7353
|
+
et as getDatabaseGraphSeries,
|
|
7354
|
+
Je as getDatabaseSubComponents,
|
|
7355
|
+
Bt as getDispatcherGraphSeries,
|
|
7356
|
+
zt as getDispatcherSubComponents,
|
|
7357
|
+
ki as getMessageServerGraphSeries,
|
|
7358
|
+
$i as getMessageServerSubComponents,
|
|
7359
|
+
We as getServerGraphSeries,
|
|
7360
|
+
Ne as getServerSubComponents,
|
|
7361
|
+
ht as makeFaceStyles,
|
|
7362
|
+
mi as useAIOpsData,
|
|
7363
|
+
xi as useAIOpsDataOptional,
|
|
7364
|
+
Ni as useCarouselContext,
|
|
7365
|
+
Wi as useCarouselItemContext,
|
|
7366
|
+
Yi as useQueryResult
|
|
7299
7367
|
};
|