react-aiops 0.1.18 → 0.1.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { jsxs as d, jsx as e, Fragment as
|
|
2
|
-
import
|
|
3
|
-
const
|
|
1
|
+
import { jsxs as d, jsx as e, Fragment as Ie } from "react/jsx-runtime";
|
|
2
|
+
import X, { createContext as He, useContext as ae, useState as R, useEffect as Oe, useMemo as Ze, useRef as Z, useCallback as ct } from "react";
|
|
3
|
+
const Mt = {
|
|
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 zt({
|
|
9
9
|
name: t,
|
|
10
10
|
status: n,
|
|
11
11
|
dbSync: o = !0,
|
|
@@ -146,7 +146,7 @@ function Mt({
|
|
|
146
146
|
}
|
|
147
147
|
),
|
|
148
148
|
c.map((p, f) => {
|
|
149
|
-
const g =
|
|
149
|
+
const g = Mt[p.level];
|
|
150
150
|
return /* @__PURE__ */ d(
|
|
151
151
|
"div",
|
|
152
152
|
{
|
|
@@ -177,12 +177,12 @@ function Mt({
|
|
|
177
177
|
}
|
|
178
178
|
);
|
|
179
179
|
}
|
|
180
|
-
const
|
|
180
|
+
const E = {
|
|
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
|
-
},
|
|
185
|
+
}, Di = "#00e5ff", Ni = "#0055cc", Le = "linear-gradient(180deg, #071428 0%, #040c1c 60%, #030810 100%)", Je = "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
186
|
function et(t, n, o) {
|
|
187
187
|
const i = {
|
|
188
188
|
position: "absolute",
|
|
@@ -234,23 +234,23 @@ function et(t, n, o) {
|
|
|
234
234
|
};
|
|
235
235
|
}
|
|
236
236
|
const Qe = "cubic-bezier(0.34, 1.56, 0.64, 1)", Ke = "cubic-bezier(0.16, 1, 0.3, 1)";
|
|
237
|
-
function
|
|
238
|
-
return
|
|
237
|
+
function xt(t) {
|
|
238
|
+
return E[t]?.color ?? E.online.color;
|
|
239
239
|
}
|
|
240
|
-
function
|
|
240
|
+
function Bt(t, n, o) {
|
|
241
241
|
return t >= o ? "#ff2255" : t >= n ? "#ff8c00" : "#00e5ff";
|
|
242
242
|
}
|
|
243
243
|
function We(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 Ft({
|
|
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: u, ey: c, context: p = {} } = t, f =
|
|
253
|
+
const { type: a, name: s, status: l, ex: u, ey: c, context: p = {} } = t, f = xt(l), g = u >= i / 2, h = c >= r / 2, y = {
|
|
254
254
|
position: "fixed",
|
|
255
255
|
...g ? { right: 28 } : { left: 28 },
|
|
256
256
|
...h ? { bottom: 110 } : { top: 72 }
|
|
@@ -519,7 +519,7 @@ function Bt({
|
|
|
519
519
|
position: "relative",
|
|
520
520
|
zIndex: 2
|
|
521
521
|
},
|
|
522
|
-
children: w.map((b) => /* @__PURE__ */ e(
|
|
522
|
+
children: w.map((b) => /* @__PURE__ */ e(Ut, { metric: b, visible: o, accentColor: f }, b.id))
|
|
523
523
|
}
|
|
524
524
|
),
|
|
525
525
|
/* @__PURE__ */ d(
|
|
@@ -568,7 +568,7 @@ function Bt({
|
|
|
568
568
|
}
|
|
569
569
|
);
|
|
570
570
|
}
|
|
571
|
-
function
|
|
571
|
+
function Ut({
|
|
572
572
|
metric: t,
|
|
573
573
|
visible: n,
|
|
574
574
|
accentColor: o
|
|
@@ -584,7 +584,7 @@ function Ft({
|
|
|
584
584
|
colorOverride: p,
|
|
585
585
|
warnAt: f = 70,
|
|
586
586
|
critAt: g = 85
|
|
587
|
-
} = t, h = p ??
|
|
587
|
+
} = t, h = p ?? Bt(a, f, g), y = p ?? xt(l);
|
|
588
588
|
return /* @__PURE__ */ d(
|
|
589
589
|
"div",
|
|
590
590
|
{
|
|
@@ -615,7 +615,7 @@ function Ft({
|
|
|
615
615
|
animation: n ? `comp-dialog-icon-pop 0.5s ${Qe} ${0.35 + c * 0.12}s both` : "none"
|
|
616
616
|
},
|
|
617
617
|
children: [
|
|
618
|
-
/* @__PURE__ */ e(
|
|
618
|
+
/* @__PURE__ */ e(Ht, { type: u, color: y }),
|
|
619
619
|
(l === "warning" || l === "critical") && /* @__PURE__ */ e(
|
|
620
620
|
"div",
|
|
621
621
|
{
|
|
@@ -808,7 +808,7 @@ function Ft({
|
|
|
808
808
|
}
|
|
809
809
|
);
|
|
810
810
|
}
|
|
811
|
-
function
|
|
811
|
+
function Ht({ type: t, color: n }) {
|
|
812
812
|
return t === "cpu" ? /* @__PURE__ */ d("svg", { width: 28, height: 28, viewBox: "0 0 24 24", fill: "none", children: [
|
|
813
813
|
/* @__PURE__ */ e("rect", { x: "6", y: "6", width: "12", height: "12", rx: "2", stroke: n, strokeWidth: "1.5" }),
|
|
814
814
|
/* @__PURE__ */ e(
|
|
@@ -894,13 +894,13 @@ function Ut({ type: t, color: n }) {
|
|
|
894
894
|
] });
|
|
895
895
|
}
|
|
896
896
|
const tt = He(null), it = He({ index: 0 });
|
|
897
|
-
function
|
|
897
|
+
function Wi() {
|
|
898
898
|
return ae(tt);
|
|
899
899
|
}
|
|
900
|
-
function
|
|
900
|
+
function Mi() {
|
|
901
901
|
return ae(it);
|
|
902
902
|
}
|
|
903
|
-
function
|
|
903
|
+
function Yt({
|
|
904
904
|
children: t,
|
|
905
905
|
logoUrl: n,
|
|
906
906
|
viewState: o,
|
|
@@ -926,17 +926,17 @@ function Ht({
|
|
|
926
926
|
selectedSystemAlerts: $
|
|
927
927
|
}) {
|
|
928
928
|
const [S, N] = R(0);
|
|
929
|
-
|
|
929
|
+
Oe(() => {
|
|
930
930
|
let I;
|
|
931
931
|
if ((o === "compact" || o === "collapsing") && f) {
|
|
932
|
-
const
|
|
933
|
-
N((de) => de + g), I = requestAnimationFrame(
|
|
932
|
+
const H = () => {
|
|
933
|
+
N((de) => de + g), I = requestAnimationFrame(H);
|
|
934
934
|
};
|
|
935
|
-
I = requestAnimationFrame(
|
|
935
|
+
I = requestAnimationFrame(H);
|
|
936
936
|
}
|
|
937
937
|
return () => cancelAnimationFrame(I);
|
|
938
938
|
}, [o, f, g]);
|
|
939
|
-
const B =
|
|
939
|
+
const B = X.Children.toArray(t), z = B.length, U = Ze(
|
|
940
940
|
() => ({
|
|
941
941
|
totalSystems: z,
|
|
942
942
|
carouselRotation: S,
|
|
@@ -967,8 +967,8 @@ function Ht({
|
|
|
967
967
|
x,
|
|
968
968
|
h
|
|
969
969
|
]
|
|
970
|
-
), le = B.map((I,
|
|
971
|
-
return /* @__PURE__ */ d(tt.Provider, { value:
|
|
970
|
+
), le = B.map((I, H) => /* @__PURE__ */ e(it.Provider, { value: { index: H }, children: I }, H)), se = o === "expanded" || o === "expanding" && i >= 4;
|
|
971
|
+
return /* @__PURE__ */ d(tt.Provider, { value: U, children: [
|
|
972
972
|
/* @__PURE__ */ d("div", { style: { position: "relative", width: h, height: y, margin: "0 auto", flexShrink: 0 }, children: [
|
|
973
973
|
n && (o === "compact" || o === "collapsing") && /* @__PURE__ */ e(
|
|
974
974
|
"img",
|
|
@@ -993,7 +993,7 @@ function Ht({
|
|
|
993
993
|
le
|
|
994
994
|
] }),
|
|
995
995
|
r && /* @__PURE__ */ e("div", { onClick: (I) => I.stopPropagation(), children: /* @__PURE__ */ e(
|
|
996
|
-
|
|
996
|
+
zt,
|
|
997
997
|
{
|
|
998
998
|
name: r,
|
|
999
999
|
status: b,
|
|
@@ -1004,7 +1004,7 @@ function Ht({
|
|
|
1004
1004
|
}
|
|
1005
1005
|
) }),
|
|
1006
1006
|
a && /* @__PURE__ */ e("div", { onClick: (I) => I.stopPropagation(), children: /* @__PURE__ */ e(
|
|
1007
|
-
|
|
1007
|
+
Ft,
|
|
1008
1008
|
{
|
|
1009
1009
|
component: a,
|
|
1010
1010
|
onClose: w,
|
|
@@ -1015,7 +1015,7 @@ function Ht({
|
|
|
1015
1015
|
) })
|
|
1016
1016
|
] });
|
|
1017
1017
|
}
|
|
1018
|
-
function
|
|
1018
|
+
function Vt({
|
|
1019
1019
|
x1: t,
|
|
1020
1020
|
y1: n,
|
|
1021
1021
|
x2: o,
|
|
@@ -1062,7 +1062,7 @@ function Yt({
|
|
|
1062
1062
|
)
|
|
1063
1063
|
}
|
|
1064
1064
|
),
|
|
1065
|
-
r && /* @__PURE__ */ d(
|
|
1065
|
+
r && /* @__PURE__ */ d(Ie, { children: [
|
|
1066
1066
|
/* @__PURE__ */ e("circle", { r: "3", fill: a, opacity: 0.85, children: /* @__PURE__ */ e(
|
|
1067
1067
|
"animateMotion",
|
|
1068
1068
|
{
|
|
@@ -1082,14 +1082,14 @@ function Yt({
|
|
|
1082
1082
|
] })
|
|
1083
1083
|
] });
|
|
1084
1084
|
}
|
|
1085
|
-
const
|
|
1085
|
+
const _t = [
|
|
1086
1086
|
{ scale: 1, op: 1, delay: "0.0s", bw: "2px", glow: 1 },
|
|
1087
1087
|
{ scale: 0.82, op: 0.88, delay: "0.5s", bw: "1.5px", glow: 0.7 },
|
|
1088
1088
|
{ scale: 0.64, op: 0.72, delay: "1.0s", bw: "1px", glow: 0.5 },
|
|
1089
1089
|
{ scale: 0.47, op: 0.58, delay: "1.5s", bw: "1px", glow: 0.35 },
|
|
1090
1090
|
{ scale: 0.3, op: 0.45, delay: "2.0s", bw: "1px", glow: 0.25 }
|
|
1091
1091
|
];
|
|
1092
|
-
function
|
|
1092
|
+
function jt({
|
|
1093
1093
|
children: t,
|
|
1094
1094
|
size: n = 230,
|
|
1095
1095
|
widthRatio: o = 1,
|
|
@@ -1255,7 +1255,7 @@ function _t({
|
|
|
1255
1255
|
background: `radial-gradient(ellipse, ${i}88 0%, ${i}33 40%, transparent 72%)`,
|
|
1256
1256
|
filter: "blur(12px)"
|
|
1257
1257
|
} }),
|
|
1258
|
-
|
|
1258
|
+
_t.map((s, l) => /* @__PURE__ */ e("div", { style: {
|
|
1259
1259
|
position: "absolute",
|
|
1260
1260
|
width: a * s.scale,
|
|
1261
1261
|
height: n * s.scale,
|
|
@@ -1298,8 +1298,8 @@ function _t({
|
|
|
1298
1298
|
}, children: r })
|
|
1299
1299
|
] });
|
|
1300
1300
|
}
|
|
1301
|
-
const
|
|
1302
|
-
function
|
|
1301
|
+
const ye = He(null), Xt = "cubic-bezier(0.34, 1.56, 0.64, 1)", pt = 330, ft = 340, qt = 660;
|
|
1302
|
+
function vt({
|
|
1303
1303
|
name: t,
|
|
1304
1304
|
status: n = "online",
|
|
1305
1305
|
connections: o = [],
|
|
@@ -1320,24 +1320,24 @@ function xt({
|
|
|
1320
1320
|
_onComponentClick: x,
|
|
1321
1321
|
_containerWidth: w
|
|
1322
1322
|
}) {
|
|
1323
|
-
const b = ae(tt), k = ae(it), T = a ?? k.index, $ = s ?? b?.totalSystems ?? 1, S = l ?? b?.carouselRotation ?? 0, N = u ?? b?.viewState ?? "compact", B = c ?? b?.animPhase ?? 0, z = p ?? b?.selectedSystem ?? null,
|
|
1323
|
+
const b = ae(tt), k = ae(it), T = a ?? k.index, $ = s ?? b?.totalSystems ?? 1, S = l ?? b?.carouselRotation ?? 0, N = u ?? b?.viewState ?? "compact", B = c ?? b?.animPhase ?? 0, z = p ?? b?.selectedSystem ?? null, U = f ?? b?.selectedComponent ?? null, le = g ?? b?.rotateY ?? 20, se = h ?? b?.autoRotateComponents ?? !0, I = y ?? b?.componentScale ?? 0.35, H = m ?? b?.drillZoom ?? 3.3, de = v ?? b?.onSelectSystem, ce = x ?? b?.onComponentClick, Y = w ?? b?.containerWidth ?? 950, V = z === t, L = V && (N === "expanded" || N === "expanding" && B >= 1), K = !L, pe = (Y - qt) / 2, me = pt + pe, xe = T / $ * Math.PI * 2 + S, Ye = 420, Ve = 160, fe = me + Math.cos(xe) * Ye, C = 450 + Math.sin(xe) * Ve, ue = Math.round(C), te = !V && (N === "expanding" || N === "expanded"), he = te ? 0 : 1, J = K ? 0.3 + (Math.sin(xe) + 1) * 0.1 : 1, _ = K ? J : I, ve = N === "compact" || N === "collapsing" ? "none" : "all 1s cubic-bezier(0.34, 1.56, 0.64, 1)", De = V && U, _e = De ? H : 1, Tt = U?.ex ?? 330, It = U?.ey ?? 300, { size: Ot = 90, color: Lt = "#00e5ff", widthRatio: Dt = 3 } = i ?? {}, Nt = {
|
|
1324
1324
|
name: t,
|
|
1325
|
-
isSelected:
|
|
1325
|
+
isSelected: V,
|
|
1326
1326
|
isExpandedPos: L,
|
|
1327
|
-
isCompact:
|
|
1327
|
+
isCompact: K,
|
|
1328
1328
|
animPhase: B,
|
|
1329
|
-
compactCx:
|
|
1330
|
-
compactCy:
|
|
1329
|
+
compactCx: fe,
|
|
1330
|
+
compactCy: C,
|
|
1331
1331
|
groupScale: J,
|
|
1332
|
-
effectiveScale:
|
|
1333
|
-
transitionValue:
|
|
1332
|
+
effectiveScale: _,
|
|
1333
|
+
transitionValue: ve,
|
|
1334
1334
|
rotateY: le,
|
|
1335
1335
|
autoRotateComponents: se,
|
|
1336
|
-
onComponentClick:
|
|
1337
|
-
selectedComponentName:
|
|
1338
|
-
expandedOffsetX:
|
|
1336
|
+
onComponentClick: ce,
|
|
1337
|
+
selectedComponentName: U?.name ?? null,
|
|
1338
|
+
expandedOffsetX: pe
|
|
1339
1339
|
};
|
|
1340
|
-
return /* @__PURE__ */ e(
|
|
1340
|
+
return /* @__PURE__ */ e(ye.Provider, { value: Nt, children: /* @__PURE__ */ d(
|
|
1341
1341
|
"div",
|
|
1342
1342
|
{
|
|
1343
1343
|
style: {
|
|
@@ -1347,21 +1347,21 @@ function xt({
|
|
|
1347
1347
|
width: "100%",
|
|
1348
1348
|
height: "100%",
|
|
1349
1349
|
pointerEvents: "none",
|
|
1350
|
-
opacity:
|
|
1351
|
-
transition: `opacity 0.8s ease, filter 0.5s ease, transform 0.6s ${
|
|
1352
|
-
filter:
|
|
1353
|
-
zIndex:
|
|
1354
|
-
transformOrigin: `${
|
|
1355
|
-
transform: De ? `translate(${-(
|
|
1350
|
+
opacity: he,
|
|
1351
|
+
transition: `opacity 0.8s ease, filter 0.5s ease, transform 0.6s ${Xt}`,
|
|
1352
|
+
filter: K && Math.sin(xe) < -0.5 ? "brightness(0.5) blur(2px)" : "none",
|
|
1353
|
+
zIndex: V ? 500 : te ? 0 : ue,
|
|
1354
|
+
transformOrigin: `${me}px ${ft}px`,
|
|
1355
|
+
transform: De ? `translate(${-(Tt - pt) * _e}px, ${-(It - ft) * _e}px) scale(${_e})` : "none"
|
|
1356
1356
|
},
|
|
1357
1357
|
children: [
|
|
1358
|
-
|
|
1358
|
+
K && !te && /* @__PURE__ */ e(
|
|
1359
1359
|
"div",
|
|
1360
1360
|
{
|
|
1361
1361
|
style: {
|
|
1362
1362
|
position: "absolute",
|
|
1363
|
-
left:
|
|
1364
|
-
top:
|
|
1363
|
+
left: fe,
|
|
1364
|
+
top: C,
|
|
1365
1365
|
width: 160,
|
|
1366
1366
|
height: 180,
|
|
1367
1367
|
transform: "translate(-50%, -80%)",
|
|
@@ -1374,13 +1374,13 @@ function xt({
|
|
|
1374
1374
|
}
|
|
1375
1375
|
}
|
|
1376
1376
|
),
|
|
1377
|
-
|
|
1377
|
+
K && (n === "warning" || n === "critical") && /* @__PURE__ */ e(
|
|
1378
1378
|
"div",
|
|
1379
1379
|
{
|
|
1380
1380
|
style: {
|
|
1381
1381
|
position: "absolute",
|
|
1382
|
-
left:
|
|
1383
|
-
top:
|
|
1382
|
+
left: fe,
|
|
1383
|
+
top: C - 200,
|
|
1384
1384
|
transform: `translate(-50%, -50%) scale(${J})`,
|
|
1385
1385
|
zIndex: 110,
|
|
1386
1386
|
pointerEvents: "none",
|
|
@@ -1427,13 +1427,13 @@ function xt({
|
|
|
1427
1427
|
{
|
|
1428
1428
|
style: {
|
|
1429
1429
|
position: "absolute",
|
|
1430
|
-
left: L ?
|
|
1431
|
-
top: L ? 48 :
|
|
1430
|
+
left: L ? me : fe,
|
|
1431
|
+
top: L ? 48 : C - 180,
|
|
1432
1432
|
transform: `translate(-50%, -50%) scale(${L ? 1.2 : J * 1.5})`,
|
|
1433
1433
|
opacity: 1,
|
|
1434
1434
|
pointerEvents: "none",
|
|
1435
1435
|
zIndex: 100,
|
|
1436
|
-
transition:
|
|
1436
|
+
transition: ve,
|
|
1437
1437
|
fontSize: 36,
|
|
1438
1438
|
fontWeight: 700,
|
|
1439
1439
|
letterSpacing: "0.18em",
|
|
@@ -1453,25 +1453,25 @@ function xt({
|
|
|
1453
1453
|
style: {
|
|
1454
1454
|
position: "absolute",
|
|
1455
1455
|
top: 0,
|
|
1456
|
-
left: L ?
|
|
1456
|
+
left: L ? pe : 0,
|
|
1457
1457
|
width: 660,
|
|
1458
1458
|
height: 640,
|
|
1459
1459
|
pointerEvents: "none",
|
|
1460
1460
|
zIndex: 0,
|
|
1461
|
-
transition:
|
|
1461
|
+
transition: ve
|
|
1462
1462
|
},
|
|
1463
|
-
children: o.map((ee,
|
|
1464
|
-
|
|
1463
|
+
children: o.map((ee, Wt) => /* @__PURE__ */ e(
|
|
1464
|
+
Vt,
|
|
1465
1465
|
{
|
|
1466
1466
|
x1: ee.from[0],
|
|
1467
1467
|
y1: ee.from[1],
|
|
1468
1468
|
x2: ee.to[0],
|
|
1469
1469
|
y2: ee.to[1],
|
|
1470
|
-
show:
|
|
1470
|
+
show: V && B >= (ee.visibleAtPhase ?? 0),
|
|
1471
1471
|
color: ee.color,
|
|
1472
1472
|
dur: ee.duration
|
|
1473
1473
|
},
|
|
1474
|
-
|
|
1474
|
+
Wt
|
|
1475
1475
|
))
|
|
1476
1476
|
}
|
|
1477
1477
|
),
|
|
@@ -1480,13 +1480,13 @@ function xt({
|
|
|
1480
1480
|
{
|
|
1481
1481
|
style: {
|
|
1482
1482
|
position: "absolute",
|
|
1483
|
-
left: L ?
|
|
1484
|
-
top: L ? 570 :
|
|
1483
|
+
left: L ? me : fe,
|
|
1484
|
+
top: L ? 570 : C + 70,
|
|
1485
1485
|
transform: `translate(-50%, -50%) scaleX(${L ? 1 : 0.4}) scaleY(${L ? 1 : 0.6}) scale(${L ? 1 : J})`,
|
|
1486
|
-
transition:
|
|
1486
|
+
transition: ve,
|
|
1487
1487
|
zIndex: 1
|
|
1488
1488
|
},
|
|
1489
|
-
children: /* @__PURE__ */ e(
|
|
1489
|
+
children: /* @__PURE__ */ e(jt, { size: Ot, color: Lt, widthRatio: Dt, children: /* @__PURE__ */ e("div", { className: "base-hotspot" }) })
|
|
1490
1490
|
}
|
|
1491
1491
|
),
|
|
1492
1492
|
r
|
|
@@ -1506,9 +1506,9 @@ function W({
|
|
|
1506
1506
|
align: u = "right",
|
|
1507
1507
|
internalRef: c
|
|
1508
1508
|
}) {
|
|
1509
|
-
const p = ae(
|
|
1509
|
+
const p = ae(ye), f = p?.expandedOffsetX ?? 0;
|
|
1510
1510
|
if (o === "online") return null;
|
|
1511
|
-
const g = l && !!p?.isExpandedPos, h =
|
|
1511
|
+
const g = l && !!p?.isExpandedPos, h = E[o]?.color ?? E.warning.color, y = Math.abs(a) > Math.abs(s), m = t + f + (y ? Math.sign(a) * 45 : 0), v = n + (y ? 0 : Math.sign(s) * 40), x = t + f + a, w = n + s;
|
|
1512
1512
|
let b = "";
|
|
1513
1513
|
if (y) {
|
|
1514
1514
|
const S = m + (x - m) / 2;
|
|
@@ -1641,42 +1641,64 @@ function W({
|
|
|
1641
1641
|
}
|
|
1642
1642
|
);
|
|
1643
1643
|
}
|
|
1644
|
-
const
|
|
1645
|
-
|
|
1644
|
+
const wt = 70, St = 85, Qt = {
|
|
1645
|
+
online: 0,
|
|
1646
|
+
warning: 1,
|
|
1647
|
+
offline: 2,
|
|
1648
|
+
critical: 3
|
|
1649
|
+
};
|
|
1650
|
+
function ut(t) {
|
|
1651
|
+
return Qt[t] ?? 0;
|
|
1652
|
+
}
|
|
1653
|
+
function Kt(t) {
|
|
1646
1654
|
if (!t) return null;
|
|
1647
1655
|
const n = t.dialogMetrics ?? t.context?.dialogMetrics;
|
|
1648
|
-
return n && n.length > 0 ?
|
|
1656
|
+
return n && n.length > 0 ? Gt(n) : Zt(t.context);
|
|
1649
1657
|
}
|
|
1650
|
-
function
|
|
1658
|
+
function Gt(t) {
|
|
1651
1659
|
let n = null;
|
|
1652
1660
|
for (const r of t) {
|
|
1653
1661
|
if (r.color) continue;
|
|
1654
|
-
const a = r.critAt ??
|
|
1655
|
-
r.value >= a ? (!n || n.severity !== "critical") && (n = { metric: r, severity: "critical" }) : r.value >= s && (!n || n.severity !== "critical") && (n = { metric: r, severity: "warning" });
|
|
1662
|
+
const a = r.critAt ?? St, s = r.warnAt ?? wt;
|
|
1663
|
+
r.value >= a ? (!n || n.severity !== "critical" || r.value > n.metric.value) && (n = { metric: r, severity: "critical" }) : r.value >= s && (!n || n.severity !== "critical" && r.value > n.metric.value) && (n = { metric: r, severity: "warning" });
|
|
1656
1664
|
}
|
|
1657
1665
|
if (!n) return null;
|
|
1658
1666
|
const { metric: o, severity: i } = n;
|
|
1659
1667
|
return {
|
|
1668
|
+
severity: i,
|
|
1660
1669
|
msg: `${o.label} at ${o.value}${o.unit ?? "%"}`,
|
|
1661
|
-
internalRef: o.id.toUpperCase()
|
|
1662
|
-
status: i
|
|
1670
|
+
internalRef: o.id.toUpperCase()
|
|
1663
1671
|
};
|
|
1664
1672
|
}
|
|
1665
|
-
function
|
|
1673
|
+
function Zt(t) {
|
|
1666
1674
|
if (!t) return null;
|
|
1667
1675
|
const n = [];
|
|
1668
1676
|
t.cpuLoad !== void 0 && n.push({ label: "CPU", value: t.cpuLoad, id: "CPU" }), t.memLoad !== void 0 && n.push({ label: "MEM", value: t.memLoad, id: "HEAP" }), t.traffic !== void 0 && n.push({ label: "TRAFFIC", value: t.traffic, id: "NET" }), t.queueDepth !== void 0 && n.push({ label: "QUEUE", value: t.queueDepth, id: "QUEUE" }), t.capacity !== void 0 && n.push({ label: "CAPACITY", value: t.capacity, id: "DISK" });
|
|
1669
1677
|
let o = null;
|
|
1670
1678
|
for (const a of n)
|
|
1671
|
-
a.value >=
|
|
1679
|
+
a.value >= St ? (!o || o.severity !== "critical" || a.value > o.entry.value) && (o = { entry: a, severity: "critical" }) : a.value >= wt && (!o || o.severity !== "critical" && a.value > o.entry.value) && (o = { entry: a, severity: "warning" });
|
|
1672
1680
|
if (!o) return null;
|
|
1673
1681
|
const { entry: i, severity: r } = o;
|
|
1674
1682
|
return {
|
|
1683
|
+
severity: r,
|
|
1675
1684
|
msg: `${i.label} at ${i.value}%`,
|
|
1676
|
-
internalRef: i.id
|
|
1677
|
-
status: r
|
|
1685
|
+
internalRef: i.id
|
|
1678
1686
|
};
|
|
1679
1687
|
}
|
|
1688
|
+
function Jt(t, n) {
|
|
1689
|
+
const o = t?.status ?? "online", i = ut(o), r = Kt(t), a = r ? ut(r.severity) : 0, s = i >= a ? o : r.severity;
|
|
1690
|
+
if (i === 0 && a === 0)
|
|
1691
|
+
return { effectiveSeverity: "online", callout: null };
|
|
1692
|
+
let l;
|
|
1693
|
+
return i >= a && i > 0 ? l = {
|
|
1694
|
+
severity: o,
|
|
1695
|
+
msg: n?.msg ?? `Status: ${o.toUpperCase()}`,
|
|
1696
|
+
internalRef: n?.internalRef,
|
|
1697
|
+
offsetX: n?.offsetX,
|
|
1698
|
+
offsetY: n?.offsetY,
|
|
1699
|
+
align: n?.align
|
|
1700
|
+
} : l = r, { effectiveSeverity: s, callout: l };
|
|
1701
|
+
}
|
|
1680
1702
|
function A({
|
|
1681
1703
|
ex: t,
|
|
1682
1704
|
ey: n,
|
|
@@ -1693,7 +1715,7 @@ function A({
|
|
|
1693
1715
|
bare: g = !1,
|
|
1694
1716
|
alert: h
|
|
1695
1717
|
}) {
|
|
1696
|
-
const y = ae(
|
|
1718
|
+
const y = ae(ye);
|
|
1697
1719
|
if (!y)
|
|
1698
1720
|
throw new Error("ServiceNode must be used inside a <Service> component.");
|
|
1699
1721
|
const {
|
|
@@ -1707,7 +1729,10 @@ function A({
|
|
|
1707
1729
|
onComponentClick: $,
|
|
1708
1730
|
selectedComponentName: S,
|
|
1709
1731
|
expandedOffsetX: N
|
|
1710
|
-
} = y, z = p === 0 || y.isSelected && v >= p ? 1 : 0,
|
|
1732
|
+
} = y, z = p === 0 || y.isSelected && v >= p ? 1 : 0, U = x + o.x, le = w + o.y, se = m ? t + N : U, I = m ? n : le, H = f !== void 0 ? f : y.isCompact ? b : k, de = !!c && !!S && c.name === S, { effectiveSeverity: ce, callout: Y } = Ze(
|
|
1733
|
+
() => Jt(c, h),
|
|
1734
|
+
[c, h]
|
|
1735
|
+
), V = ce !== "online" ? E[ce]?.color ?? a : a, L = ce === "offline" ? "#4a6a8a" : V, K = c && m && $ ? () => $({
|
|
1711
1736
|
type: c.type,
|
|
1712
1737
|
name: c.name,
|
|
1713
1738
|
status: c.status,
|
|
@@ -1717,11 +1742,8 @@ function A({
|
|
|
1717
1742
|
dialogMetrics: c.dialogMetrics,
|
|
1718
1743
|
subComponents: c.subComponents,
|
|
1719
1744
|
graphSeries: c.graphSeries
|
|
1720
|
-
}) : void 0,
|
|
1721
|
-
|
|
1722
|
-
[h, c]
|
|
1723
|
-
), ce = h ? c?.status ?? "online" : F?.status ?? "online", U = h ?? (F ? { msg: F.msg, internalRef: F.internalRef } : null);
|
|
1724
|
-
return /* @__PURE__ */ d(Ae, { children: [
|
|
1745
|
+
}) : void 0, pe = c?.name ?? s ?? "";
|
|
1746
|
+
return /* @__PURE__ */ d(Ie, { children: [
|
|
1725
1747
|
/* @__PURE__ */ e(
|
|
1726
1748
|
"div",
|
|
1727
1749
|
{
|
|
@@ -1729,46 +1751,46 @@ function A({
|
|
|
1729
1751
|
position: "absolute",
|
|
1730
1752
|
left: se,
|
|
1731
1753
|
top: I,
|
|
1732
|
-
transform: `translate(-50%, -50%) scale(${
|
|
1754
|
+
transform: `translate(-50%, -50%) scale(${H})`,
|
|
1733
1755
|
opacity: z,
|
|
1734
1756
|
zIndex: i,
|
|
1735
1757
|
transition: T || "all 1s cubic-bezier(0.34, 1.56, 0.64, 1)",
|
|
1736
1758
|
pointerEvents: m && z >= 0.5 ? "auto" : "none"
|
|
1737
1759
|
},
|
|
1738
1760
|
children: g ? r : /* @__PURE__ */ e(
|
|
1739
|
-
|
|
1761
|
+
ei,
|
|
1740
1762
|
{
|
|
1741
|
-
statusColor:
|
|
1763
|
+
statusColor: L,
|
|
1742
1764
|
label: s,
|
|
1743
1765
|
subLabel: l,
|
|
1744
1766
|
delay: u,
|
|
1745
1767
|
showLabels: m,
|
|
1746
1768
|
isCompact: y.isCompact,
|
|
1747
|
-
onClick:
|
|
1769
|
+
onClick: K,
|
|
1748
1770
|
isSelected: de,
|
|
1749
1771
|
children: r
|
|
1750
1772
|
}
|
|
1751
1773
|
)
|
|
1752
1774
|
}
|
|
1753
1775
|
),
|
|
1754
|
-
|
|
1776
|
+
Y && /* @__PURE__ */ e(
|
|
1755
1777
|
W,
|
|
1756
1778
|
{
|
|
1757
1779
|
ex: t,
|
|
1758
1780
|
ey: n,
|
|
1759
|
-
status:
|
|
1760
|
-
title:
|
|
1761
|
-
msg:
|
|
1762
|
-
offsetX:
|
|
1763
|
-
offsetY:
|
|
1764
|
-
align:
|
|
1765
|
-
internalRef:
|
|
1781
|
+
status: Y.severity,
|
|
1782
|
+
title: pe,
|
|
1783
|
+
msg: Y.msg,
|
|
1784
|
+
offsetX: Y.offsetX ?? 110,
|
|
1785
|
+
offsetY: Y.offsetY ?? -30,
|
|
1786
|
+
align: Y.align ?? "right",
|
|
1787
|
+
internalRef: Y.internalRef,
|
|
1766
1788
|
isVisible: !0
|
|
1767
1789
|
}
|
|
1768
1790
|
)
|
|
1769
1791
|
] });
|
|
1770
1792
|
}
|
|
1771
|
-
function
|
|
1793
|
+
function ei({
|
|
1772
1794
|
children: t,
|
|
1773
1795
|
statusColor: n,
|
|
1774
1796
|
label: o,
|
|
@@ -1808,7 +1830,7 @@ function Gt({
|
|
|
1808
1830
|
}
|
|
1809
1831
|
}
|
|
1810
1832
|
),
|
|
1811
|
-
/* @__PURE__ */ e("div", { style: s ? { background: "#040c1a", borderRadius: 2 } : void 0, children: s &&
|
|
1833
|
+
/* @__PURE__ */ e("div", { style: s ? { background: "#040c1a", borderRadius: 2 } : void 0, children: s && X.isValidElement(t) ? X.cloneElement(t, {
|
|
1812
1834
|
_compact: !0
|
|
1813
1835
|
}) : t })
|
|
1814
1836
|
] }),
|
|
@@ -1829,7 +1851,7 @@ function Gt({
|
|
|
1829
1851
|
}
|
|
1830
1852
|
);
|
|
1831
1853
|
}
|
|
1832
|
-
function
|
|
1854
|
+
function $t({ synced: t, latencyMs: n }) {
|
|
1833
1855
|
const o = t ? "#00ff88" : "#ff8c00";
|
|
1834
1856
|
return /* @__PURE__ */ d("div", { className: "sync-bridge", children: [
|
|
1835
1857
|
/* @__PURE__ */ d("div", { className: "sync-arrows", children: [
|
|
@@ -1864,8 +1886,8 @@ function St({ synced: t, latencyMs: n }) {
|
|
|
1864
1886
|
] })
|
|
1865
1887
|
] });
|
|
1866
1888
|
}
|
|
1867
|
-
const ie = 140,
|
|
1868
|
-
function
|
|
1889
|
+
const ie = 140, j = 240, re = 160, we = et(ie, j, re);
|
|
1890
|
+
function ti({
|
|
1869
1891
|
cfg: t,
|
|
1870
1892
|
name: n,
|
|
1871
1893
|
cpuLoad: o,
|
|
@@ -1885,8 +1907,8 @@ function Zt({
|
|
|
1885
1907
|
{
|
|
1886
1908
|
style: {
|
|
1887
1909
|
width: ie,
|
|
1888
|
-
height:
|
|
1889
|
-
background: a ?
|
|
1910
|
+
height: j,
|
|
1911
|
+
background: a ? Le : Je,
|
|
1890
1912
|
position: "relative",
|
|
1891
1913
|
overflow: "hidden",
|
|
1892
1914
|
fontFamily: "'Courier New', monospace",
|
|
@@ -2277,13 +2299,13 @@ function Zt({
|
|
|
2277
2299
|
}
|
|
2278
2300
|
);
|
|
2279
2301
|
}
|
|
2280
|
-
function
|
|
2302
|
+
function ii() {
|
|
2281
2303
|
return /* @__PURE__ */ d(
|
|
2282
2304
|
"div",
|
|
2283
2305
|
{
|
|
2284
2306
|
style: {
|
|
2285
2307
|
width: ie,
|
|
2286
|
-
height:
|
|
2308
|
+
height: j,
|
|
2287
2309
|
background: "linear-gradient(180deg, #040c1a 0%, #030810 100%)",
|
|
2288
2310
|
position: "relative",
|
|
2289
2311
|
overflow: "hidden",
|
|
@@ -2391,7 +2413,7 @@ function Jt() {
|
|
|
2391
2413
|
}
|
|
2392
2414
|
);
|
|
2393
2415
|
}
|
|
2394
|
-
function
|
|
2416
|
+
function ht({
|
|
2395
2417
|
side: t,
|
|
2396
2418
|
color: n,
|
|
2397
2419
|
brandLabel: o
|
|
@@ -2402,7 +2424,7 @@ function ut({
|
|
|
2402
2424
|
{
|
|
2403
2425
|
style: {
|
|
2404
2426
|
width: re,
|
|
2405
|
-
height:
|
|
2427
|
+
height: j,
|
|
2406
2428
|
background: i ? "linear-gradient(90deg, #040c1c 0%, #071428 60%, #040c1c 100%)" : "linear-gradient(90deg, #040c1c 0%, #071428 40%, #040c1c 100%)",
|
|
2407
2429
|
position: "relative",
|
|
2408
2430
|
overflow: "hidden"
|
|
@@ -2421,7 +2443,7 @@ function ut({
|
|
|
2421
2443
|
}
|
|
2422
2444
|
}
|
|
2423
2445
|
),
|
|
2424
|
-
[8,
|
|
2446
|
+
[8, j - 20].map((r) => /* @__PURE__ */ e(
|
|
2425
2447
|
"div",
|
|
2426
2448
|
{
|
|
2427
2449
|
style: {
|
|
@@ -2443,8 +2465,8 @@ function ut({
|
|
|
2443
2465
|
{
|
|
2444
2466
|
style: {
|
|
2445
2467
|
position: "absolute",
|
|
2446
|
-
top:
|
|
2447
|
-
bottom:
|
|
2468
|
+
top: j * 0.35,
|
|
2469
|
+
bottom: j * 0.15,
|
|
2448
2470
|
left: i ? 22 : 18,
|
|
2449
2471
|
right: i ? 18 : 22,
|
|
2450
2472
|
display: "flex",
|
|
@@ -2472,7 +2494,7 @@ function ut({
|
|
|
2472
2494
|
{
|
|
2473
2495
|
style: {
|
|
2474
2496
|
position: "absolute",
|
|
2475
|
-
top:
|
|
2497
|
+
top: j * 0.18,
|
|
2476
2498
|
left: i ? 12 : re - 78,
|
|
2477
2499
|
fontSize: 7,
|
|
2478
2500
|
color: "#1a3050",
|
|
@@ -2491,7 +2513,7 @@ function ut({
|
|
|
2491
2513
|
}
|
|
2492
2514
|
);
|
|
2493
2515
|
}
|
|
2494
|
-
function
|
|
2516
|
+
function ni({ cpuLoad: t }) {
|
|
2495
2517
|
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((re - 18) / 7);
|
|
2496
2518
|
return /* @__PURE__ */ d(
|
|
2497
2519
|
"div",
|
|
@@ -2571,7 +2593,7 @@ function ei({ cpuLoad: t }) {
|
|
|
2571
2593
|
}
|
|
2572
2594
|
);
|
|
2573
2595
|
}
|
|
2574
|
-
function
|
|
2596
|
+
function ge({
|
|
2575
2597
|
rotateX: t = -22,
|
|
2576
2598
|
rotateY: n = 20,
|
|
2577
2599
|
rotateZ: o = 0,
|
|
@@ -2585,7 +2607,7 @@ function be({
|
|
|
2585
2607
|
_compact: p
|
|
2586
2608
|
}) {
|
|
2587
2609
|
const [f, g] = R(n), h = Z(0), y = Z(0);
|
|
2588
|
-
|
|
2610
|
+
Oe(() => {
|
|
2589
2611
|
if (!r) {
|
|
2590
2612
|
g(n);
|
|
2591
2613
|
return;
|
|
@@ -2597,13 +2619,13 @@ function be({
|
|
|
2597
2619
|
cancelAnimationFrame(h.current), y.current = 0;
|
|
2598
2620
|
};
|
|
2599
2621
|
}, [r, n]);
|
|
2600
|
-
const m =
|
|
2622
|
+
const m = E[a] ?? E.online;
|
|
2601
2623
|
return /* @__PURE__ */ d(
|
|
2602
2624
|
"div",
|
|
2603
2625
|
{
|
|
2604
2626
|
style: {
|
|
2605
2627
|
width: ie * i,
|
|
2606
|
-
height:
|
|
2628
|
+
height: j * i,
|
|
2607
2629
|
position: "relative",
|
|
2608
2630
|
display: "flex",
|
|
2609
2631
|
alignItems: "center",
|
|
@@ -2656,7 +2678,7 @@ function be({
|
|
|
2656
2678
|
style: {
|
|
2657
2679
|
position: "absolute",
|
|
2658
2680
|
width: ie * 1.4 * i,
|
|
2659
|
-
height:
|
|
2681
|
+
height: j * 0.8 * i,
|
|
2660
2682
|
background: `radial-gradient(ellipse, ${m.glow} 0%, transparent 65%)`,
|
|
2661
2683
|
filter: `blur(${Math.round(45 * i)}px)`,
|
|
2662
2684
|
pointerEvents: "none",
|
|
@@ -2680,15 +2702,15 @@ function be({
|
|
|
2680
2702
|
{
|
|
2681
2703
|
style: {
|
|
2682
2704
|
width: ie,
|
|
2683
|
-
height:
|
|
2705
|
+
height: j,
|
|
2684
2706
|
position: "relative",
|
|
2685
2707
|
transformStyle: "preserve-3d",
|
|
2686
2708
|
transform: `rotateX(${t}deg) rotateY(${f}deg) rotateZ(${o}deg)`,
|
|
2687
2709
|
transition: r ? "none" : "transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94)"
|
|
2688
2710
|
},
|
|
2689
2711
|
children: [
|
|
2690
|
-
/* @__PURE__ */ e("div", { style:
|
|
2691
|
-
|
|
2712
|
+
/* @__PURE__ */ e("div", { style: we.front, children: /* @__PURE__ */ e(
|
|
2713
|
+
ti,
|
|
2692
2714
|
{
|
|
2693
2715
|
cfg: m,
|
|
2694
2716
|
name: s,
|
|
@@ -2699,11 +2721,11 @@ function be({
|
|
|
2699
2721
|
brandLabel: c
|
|
2700
2722
|
}
|
|
2701
2723
|
) }),
|
|
2702
|
-
/* @__PURE__ */ e("div", { style:
|
|
2703
|
-
/* @__PURE__ */ e("div", { style:
|
|
2704
|
-
/* @__PURE__ */ e("div", { style:
|
|
2705
|
-
/* @__PURE__ */ e("div", { style:
|
|
2706
|
-
/* @__PURE__ */ e("div", { style:
|
|
2724
|
+
/* @__PURE__ */ e("div", { style: we.back, children: /* @__PURE__ */ e(ii, {}) }),
|
|
2725
|
+
/* @__PURE__ */ e("div", { style: we.left, children: /* @__PURE__ */ e(ht, { side: "left", color: m.color, brandLabel: c }) }),
|
|
2726
|
+
/* @__PURE__ */ e("div", { style: we.right, children: /* @__PURE__ */ e(ht, { side: "right", color: m.color, brandLabel: c }) }),
|
|
2727
|
+
/* @__PURE__ */ e("div", { style: we.top, children: /* @__PURE__ */ e(ni, { cpuLoad: l }) }),
|
|
2728
|
+
/* @__PURE__ */ e("div", { style: we.bottom, children: /* @__PURE__ */ e(
|
|
2707
2729
|
"div",
|
|
2708
2730
|
{
|
|
2709
2731
|
style: {
|
|
@@ -2722,7 +2744,7 @@ function be({
|
|
|
2722
2744
|
}
|
|
2723
2745
|
);
|
|
2724
2746
|
}
|
|
2725
|
-
function
|
|
2747
|
+
function zi({
|
|
2726
2748
|
ex: t,
|
|
2727
2749
|
ey: n,
|
|
2728
2750
|
compactOffset: o,
|
|
@@ -2763,15 +2785,15 @@ function Ni({
|
|
|
2763
2785
|
graphSeries: m
|
|
2764
2786
|
},
|
|
2765
2787
|
alert: v,
|
|
2766
|
-
children: /* @__PURE__ */ e(
|
|
2788
|
+
children: /* @__PURE__ */ e(ge, { status: a, cpuLoad: p, memLoad: f, brandLabel: g })
|
|
2767
2789
|
}
|
|
2768
2790
|
);
|
|
2769
2791
|
}
|
|
2770
|
-
const Ge = 12,
|
|
2792
|
+
const Ge = 12, be = 55, G = be * 2, Re = 52, nt = 10, je = 3 * Re + 2 * nt, Se = 2 * Math.PI * be / Ge, Xe = Array.from({ length: Ge }, (t, n) => n / Ge * 360);
|
|
2771
2793
|
function qe(t) {
|
|
2772
2794
|
return Math.cos(t * Math.PI / 180) * 0.42 + 0.58;
|
|
2773
2795
|
}
|
|
2774
|
-
function
|
|
2796
|
+
function oi({
|
|
2775
2797
|
diskY: t,
|
|
2776
2798
|
diskIdx: n,
|
|
2777
2799
|
cfg: o,
|
|
@@ -2779,7 +2801,7 @@ function ti({
|
|
|
2779
2801
|
capacity: r,
|
|
2780
2802
|
compact: a
|
|
2781
2803
|
}) {
|
|
2782
|
-
return /* @__PURE__ */ d(
|
|
2804
|
+
return /* @__PURE__ */ d(Ie, { children: [
|
|
2783
2805
|
Xe.map((s, l) => {
|
|
2784
2806
|
const u = qe(s), c = l === 0, p = Math.round(4 + u * 9), f = Math.round(12 + u * 22), g = Math.round(28 + u * 44), h = Math.round(u * 0.55 * 255).toString(16).padStart(2, "0");
|
|
2785
2807
|
return /* @__PURE__ */ e(
|
|
@@ -2787,17 +2809,17 @@ function ti({
|
|
|
2787
2809
|
{
|
|
2788
2810
|
style: {
|
|
2789
2811
|
position: "absolute",
|
|
2790
|
-
width:
|
|
2791
|
-
height:
|
|
2792
|
-
left: (G -
|
|
2812
|
+
width: Se,
|
|
2813
|
+
height: Re,
|
|
2814
|
+
left: (G - Se) / 2,
|
|
2793
2815
|
top: t,
|
|
2794
|
-
transform: `rotateY(${s}deg) translateZ(${
|
|
2816
|
+
transform: `rotateY(${s}deg) translateZ(${be}px)`,
|
|
2795
2817
|
backfaceVisibility: "hidden",
|
|
2796
2818
|
background: c ? a ? "linear-gradient(180deg, rgb(0,28,62), rgb(0,18,44))" : "linear-gradient(180deg, rgba(0,28,62,0.70), rgba(0,18,44,0.76))" : `rgb(${p},${f},${g})`,
|
|
2797
2819
|
borderLeft: `1px solid ${o.color}${h}`,
|
|
2798
2820
|
boxShadow: c ? `inset 0 0 18px ${o.color}28` : "none"
|
|
2799
2821
|
},
|
|
2800
|
-
children: c && /* @__PURE__ */ d(
|
|
2822
|
+
children: c && /* @__PURE__ */ d(Ie, { children: [
|
|
2801
2823
|
/* @__PURE__ */ e(
|
|
2802
2824
|
"div",
|
|
2803
2825
|
{
|
|
@@ -2853,7 +2875,7 @@ function ti({
|
|
|
2853
2875
|
width: G + 4,
|
|
2854
2876
|
height: G + 4,
|
|
2855
2877
|
left: -2,
|
|
2856
|
-
top: t -
|
|
2878
|
+
top: t - be,
|
|
2857
2879
|
borderRadius: "50%",
|
|
2858
2880
|
transform: "rotateX(90deg)",
|
|
2859
2881
|
backfaceVisibility: "hidden",
|
|
@@ -2914,7 +2936,7 @@ function ti({
|
|
|
2914
2936
|
width: G + 4,
|
|
2915
2937
|
height: G + 4,
|
|
2916
2938
|
left: -2,
|
|
2917
|
-
top: t +
|
|
2939
|
+
top: t + Re - be,
|
|
2918
2940
|
borderRadius: "50%",
|
|
2919
2941
|
transform: "rotateX(-90deg)",
|
|
2920
2942
|
backfaceVisibility: "hidden",
|
|
@@ -2945,11 +2967,11 @@ function ti({
|
|
|
2945
2967
|
{
|
|
2946
2968
|
style: {
|
|
2947
2969
|
position: "absolute",
|
|
2948
|
-
width:
|
|
2970
|
+
width: Se + 1.5,
|
|
2949
2971
|
height: 6,
|
|
2950
|
-
left: (G -
|
|
2951
|
-
top: t +
|
|
2952
|
-
transform: `rotateY(${s}deg) translateZ(${
|
|
2972
|
+
left: (G - Se - 1.5) / 2,
|
|
2973
|
+
top: t + Re - 3,
|
|
2974
|
+
transform: `rotateY(${s}deg) translateZ(${be + 1.5}px)`,
|
|
2953
2975
|
backfaceVisibility: "hidden",
|
|
2954
2976
|
background: o.color,
|
|
2955
2977
|
boxShadow: `0 0 8px ${o.color}, 0 0 18px ${o.color}aa, 0 0 30px ${o.glow}`,
|
|
@@ -2966,11 +2988,11 @@ function ti({
|
|
|
2966
2988
|
{
|
|
2967
2989
|
style: {
|
|
2968
2990
|
position: "absolute",
|
|
2969
|
-
width:
|
|
2991
|
+
width: Se,
|
|
2970
2992
|
height: nt,
|
|
2971
|
-
left: (G -
|
|
2972
|
-
top: t +
|
|
2973
|
-
transform: `rotateY(${s}deg) translateZ(${
|
|
2993
|
+
left: (G - Se) / 2,
|
|
2994
|
+
top: t + Re,
|
|
2995
|
+
transform: `rotateY(${s}deg) translateZ(${be}px)`,
|
|
2974
2996
|
backfaceVisibility: "hidden",
|
|
2975
2997
|
background: `rgb(${c},${p},${f})`
|
|
2976
2998
|
}
|
|
@@ -2993,7 +3015,7 @@ function Ne({
|
|
|
2993
3015
|
_compact: l
|
|
2994
3016
|
}) {
|
|
2995
3017
|
const [u, c] = R(n), p = Z(0), f = Z(0);
|
|
2996
|
-
|
|
3018
|
+
Oe(() => {
|
|
2997
3019
|
if (!r) {
|
|
2998
3020
|
c(n);
|
|
2999
3021
|
return;
|
|
@@ -3005,7 +3027,7 @@ function Ne({
|
|
|
3005
3027
|
cancelAnimationFrame(p.current), f.current = 0;
|
|
3006
3028
|
};
|
|
3007
3029
|
}, [r, n]);
|
|
3008
|
-
const g =
|
|
3030
|
+
const g = E[a] ?? E.online;
|
|
3009
3031
|
return /* @__PURE__ */ d(
|
|
3010
3032
|
"div",
|
|
3011
3033
|
{
|
|
@@ -3103,9 +3125,9 @@ function Ne({
|
|
|
3103
3125
|
transition: r ? "none" : "transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94)"
|
|
3104
3126
|
},
|
|
3105
3127
|
children: [0, 1, 2].map((h) => /* @__PURE__ */ e(
|
|
3106
|
-
|
|
3128
|
+
oi,
|
|
3107
3129
|
{
|
|
3108
|
-
diskY: h * (
|
|
3130
|
+
diskY: h * (Re + nt),
|
|
3109
3131
|
diskIdx: h,
|
|
3110
3132
|
cfg: g,
|
|
3111
3133
|
hasRingBelow: h < 2,
|
|
@@ -3122,7 +3144,7 @@ function Ne({
|
|
|
3122
3144
|
}
|
|
3123
3145
|
);
|
|
3124
3146
|
}
|
|
3125
|
-
function
|
|
3147
|
+
function Bi({
|
|
3126
3148
|
ex: t,
|
|
3127
3149
|
ey: n,
|
|
3128
3150
|
compactOffset: o,
|
|
@@ -3166,7 +3188,7 @@ function Wi({
|
|
|
3166
3188
|
);
|
|
3167
3189
|
}
|
|
3168
3190
|
function ot({ status: t = "online", scale: n = 1 }) {
|
|
3169
|
-
const i = (
|
|
3191
|
+
const i = (E[t] ?? E.online).color;
|
|
3170
3192
|
return /* @__PURE__ */ e(
|
|
3171
3193
|
"div",
|
|
3172
3194
|
{
|
|
@@ -3277,7 +3299,7 @@ function ot({ status: t = "online", scale: n = 1 }) {
|
|
|
3277
3299
|
}
|
|
3278
3300
|
);
|
|
3279
3301
|
}
|
|
3280
|
-
function
|
|
3302
|
+
function Fi({
|
|
3281
3303
|
ex: t,
|
|
3282
3304
|
ey: n,
|
|
3283
3305
|
compactOffset: o,
|
|
@@ -3300,8 +3322,8 @@ function Mi({
|
|
|
3300
3322
|
}
|
|
3301
3323
|
);
|
|
3302
3324
|
}
|
|
3303
|
-
const ne = 190,
|
|
3304
|
-
function
|
|
3325
|
+
const ne = 190, q = 72, Ee = 120, $e = et(ne, q, Ee);
|
|
3326
|
+
function ri({
|
|
3305
3327
|
cfg: t,
|
|
3306
3328
|
name: n,
|
|
3307
3329
|
traffic: o,
|
|
@@ -3314,8 +3336,8 @@ function ii({
|
|
|
3314
3336
|
{
|
|
3315
3337
|
style: {
|
|
3316
3338
|
width: ne,
|
|
3317
|
-
height:
|
|
3318
|
-
background: r ?
|
|
3339
|
+
height: q,
|
|
3340
|
+
background: r ? Le : Je,
|
|
3319
3341
|
position: "relative",
|
|
3320
3342
|
overflow: "hidden",
|
|
3321
3343
|
fontFamily: "'Courier New', monospace",
|
|
@@ -3563,13 +3585,13 @@ function ii({
|
|
|
3563
3585
|
}
|
|
3564
3586
|
);
|
|
3565
3587
|
}
|
|
3566
|
-
function
|
|
3588
|
+
function ai() {
|
|
3567
3589
|
return /* @__PURE__ */ d(
|
|
3568
3590
|
"div",
|
|
3569
3591
|
{
|
|
3570
3592
|
style: {
|
|
3571
3593
|
width: ne,
|
|
3572
|
-
height:
|
|
3594
|
+
height: q,
|
|
3573
3595
|
background: "linear-gradient(180deg, #040c1a, #030810)",
|
|
3574
3596
|
position: "relative",
|
|
3575
3597
|
overflow: "hidden",
|
|
@@ -3584,7 +3606,7 @@ function ni() {
|
|
|
3584
3606
|
{
|
|
3585
3607
|
style: {
|
|
3586
3608
|
width: 40,
|
|
3587
|
-
height:
|
|
3609
|
+
height: q - 16,
|
|
3588
3610
|
background: "#020710",
|
|
3589
3611
|
border: "1px solid #1a2d40",
|
|
3590
3612
|
borderRadius: 2,
|
|
@@ -3640,7 +3662,7 @@ function ni() {
|
|
|
3640
3662
|
style: {
|
|
3641
3663
|
marginLeft: "auto",
|
|
3642
3664
|
width: 12,
|
|
3643
|
-
height:
|
|
3665
|
+
height: q - 16,
|
|
3644
3666
|
background: "#020710",
|
|
3645
3667
|
border: "1px solid #1a3050",
|
|
3646
3668
|
borderRadius: 1
|
|
@@ -3651,13 +3673,13 @@ function ni() {
|
|
|
3651
3673
|
}
|
|
3652
3674
|
);
|
|
3653
3675
|
}
|
|
3654
|
-
function
|
|
3676
|
+
function bt({ side: t, color: n }) {
|
|
3655
3677
|
return /* @__PURE__ */ d(
|
|
3656
3678
|
"div",
|
|
3657
3679
|
{
|
|
3658
3680
|
style: {
|
|
3659
|
-
width:
|
|
3660
|
-
height:
|
|
3681
|
+
width: Ee,
|
|
3682
|
+
height: q,
|
|
3661
3683
|
background: t === "right" ? "linear-gradient(90deg, #04091a 0%, #071428 60%, #040c1c 100%)" : "linear-gradient(90deg, #040c1c 0%, #071428 40%, #04091a 100%)",
|
|
3662
3684
|
position: "relative",
|
|
3663
3685
|
overflow: "hidden"
|
|
@@ -3681,8 +3703,8 @@ function ht({ side: t, color: n }) {
|
|
|
3681
3703
|
{
|
|
3682
3704
|
style: {
|
|
3683
3705
|
position: "absolute",
|
|
3684
|
-
top:
|
|
3685
|
-
bottom:
|
|
3706
|
+
top: q * 0.25,
|
|
3707
|
+
bottom: q * 0.25,
|
|
3686
3708
|
left: 14,
|
|
3687
3709
|
right: 14,
|
|
3688
3710
|
display: "flex",
|
|
@@ -3708,14 +3730,14 @@ function ht({ side: t, color: n }) {
|
|
|
3708
3730
|
}
|
|
3709
3731
|
);
|
|
3710
3732
|
}
|
|
3711
|
-
function
|
|
3712
|
-
const n = Math.floor((
|
|
3733
|
+
function li({ traffic: t }) {
|
|
3734
|
+
const n = Math.floor((Ee - 14) / 7);
|
|
3713
3735
|
return /* @__PURE__ */ d(
|
|
3714
3736
|
"div",
|
|
3715
3737
|
{
|
|
3716
3738
|
style: {
|
|
3717
3739
|
width: ne,
|
|
3718
|
-
height:
|
|
3740
|
+
height: Ee,
|
|
3719
3741
|
background: "linear-gradient(180deg, #0c1c30 0%, #07101e 40%, #040c1a 100%)",
|
|
3720
3742
|
position: "relative",
|
|
3721
3743
|
overflow: "hidden"
|
|
@@ -3729,7 +3751,7 @@ function oi({ traffic: t }) {
|
|
|
3729
3751
|
top: 0,
|
|
3730
3752
|
left: 0,
|
|
3731
3753
|
right: 0,
|
|
3732
|
-
height:
|
|
3754
|
+
height: Ee * 0.35,
|
|
3733
3755
|
background: `radial-gradient(ellipse at 50% 0%,
|
|
3734
3756
|
${t > 70 ? "rgba(255,34,85,0.14)" : "rgba(0,229,255,0.08)"} 0%,
|
|
3735
3757
|
transparent 70%)`
|
|
@@ -3780,7 +3802,7 @@ function rt({
|
|
|
3780
3802
|
_compact: c
|
|
3781
3803
|
}) {
|
|
3782
3804
|
const [p, f] = R(n), g = Z(0), h = Z(0);
|
|
3783
|
-
|
|
3805
|
+
Oe(() => {
|
|
3784
3806
|
if (!r) {
|
|
3785
3807
|
f(n);
|
|
3786
3808
|
return;
|
|
@@ -3792,13 +3814,13 @@ function rt({
|
|
|
3792
3814
|
cancelAnimationFrame(g.current), h.current = 0;
|
|
3793
3815
|
};
|
|
3794
3816
|
}, [r, n]);
|
|
3795
|
-
const y =
|
|
3817
|
+
const y = E[a] ?? E.online;
|
|
3796
3818
|
return /* @__PURE__ */ d(
|
|
3797
3819
|
"div",
|
|
3798
3820
|
{
|
|
3799
3821
|
style: {
|
|
3800
3822
|
width: ne * i,
|
|
3801
|
-
height:
|
|
3823
|
+
height: q * i,
|
|
3802
3824
|
position: "relative",
|
|
3803
3825
|
display: "flex",
|
|
3804
3826
|
alignItems: "center",
|
|
@@ -3859,7 +3881,7 @@ function rt({
|
|
|
3859
3881
|
style: {
|
|
3860
3882
|
position: "absolute",
|
|
3861
3883
|
width: ne * 1.3 * i,
|
|
3862
|
-
height:
|
|
3884
|
+
height: q * 2 * i,
|
|
3863
3885
|
background: `radial-gradient(ellipse, ${y.glow} 0%, transparent 65%)`,
|
|
3864
3886
|
filter: `blur(${Math.round(40 * i)}px)`,
|
|
3865
3887
|
pointerEvents: "none",
|
|
@@ -3883,15 +3905,15 @@ function rt({
|
|
|
3883
3905
|
{
|
|
3884
3906
|
style: {
|
|
3885
3907
|
width: ne,
|
|
3886
|
-
height:
|
|
3908
|
+
height: q,
|
|
3887
3909
|
position: "relative",
|
|
3888
3910
|
transformStyle: "preserve-3d",
|
|
3889
3911
|
transform: `rotateX(${t}deg) rotateY(${p}deg) rotateZ(${o}deg)`,
|
|
3890
3912
|
transition: r ? "none" : "transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94)"
|
|
3891
3913
|
},
|
|
3892
3914
|
children: [
|
|
3893
|
-
/* @__PURE__ */ e("div", { style:
|
|
3894
|
-
|
|
3915
|
+
/* @__PURE__ */ e("div", { style: $e.front, children: /* @__PURE__ */ e(
|
|
3916
|
+
ri,
|
|
3895
3917
|
{
|
|
3896
3918
|
cfg: y,
|
|
3897
3919
|
name: s,
|
|
@@ -3900,11 +3922,11 @@ function rt({
|
|
|
3900
3922
|
compact: c
|
|
3901
3923
|
}
|
|
3902
3924
|
) }),
|
|
3903
|
-
/* @__PURE__ */ e("div", { style:
|
|
3904
|
-
/* @__PURE__ */ e("div", { style:
|
|
3905
|
-
/* @__PURE__ */ e("div", { style:
|
|
3906
|
-
/* @__PURE__ */ e("div", { style:
|
|
3907
|
-
/* @__PURE__ */ e("div", { style:
|
|
3925
|
+
/* @__PURE__ */ e("div", { style: $e.back, children: /* @__PURE__ */ e(ai, {}) }),
|
|
3926
|
+
/* @__PURE__ */ e("div", { style: $e.left, children: /* @__PURE__ */ e(bt, { side: "left", color: y.color }) }),
|
|
3927
|
+
/* @__PURE__ */ e("div", { style: $e.right, children: /* @__PURE__ */ e(bt, { side: "right", color: y.color }) }),
|
|
3928
|
+
/* @__PURE__ */ e("div", { style: $e.top, children: /* @__PURE__ */ e(li, { traffic: l }) }),
|
|
3929
|
+
/* @__PURE__ */ e("div", { style: $e.bottom, children: /* @__PURE__ */ e("div", { style: { width: ne, height: Ee, background: "#020508" } }) })
|
|
3908
3930
|
]
|
|
3909
3931
|
}
|
|
3910
3932
|
)
|
|
@@ -3914,7 +3936,7 @@ function rt({
|
|
|
3914
3936
|
}
|
|
3915
3937
|
);
|
|
3916
3938
|
}
|
|
3917
|
-
function
|
|
3939
|
+
function Ui({
|
|
3918
3940
|
ex: t,
|
|
3919
3941
|
ey: n,
|
|
3920
3942
|
compactOffset: o,
|
|
@@ -3958,13 +3980,13 @@ function zi({
|
|
|
3958
3980
|
}
|
|
3959
3981
|
);
|
|
3960
3982
|
}
|
|
3961
|
-
const oe = 190,
|
|
3983
|
+
const oe = 190, Q = 72, Ce = 120, ke = et(oe, Q, Ce), gt = {
|
|
3962
3984
|
online: { color: "#bb55ff", glow: "rgba(187,85,255,0.50)" },
|
|
3963
3985
|
warning: { color: "#ff8c00", glow: "rgba(255,140,0,0.50)" },
|
|
3964
3986
|
critical: { color: "#ff2255", glow: "rgba(255,34,85,0.50)" },
|
|
3965
3987
|
offline: { color: "#1e3a5a", glow: "rgba(30,58,90,0.25)" }
|
|
3966
3988
|
};
|
|
3967
|
-
function
|
|
3989
|
+
function si({
|
|
3968
3990
|
cfg: t,
|
|
3969
3991
|
name: n,
|
|
3970
3992
|
queueDepth: o,
|
|
@@ -3978,8 +4000,8 @@ function ri({
|
|
|
3978
4000
|
{
|
|
3979
4001
|
style: {
|
|
3980
4002
|
width: oe,
|
|
3981
|
-
height:
|
|
3982
|
-
background: a ?
|
|
4003
|
+
height: Q,
|
|
4004
|
+
background: a ? Le : Je,
|
|
3983
4005
|
position: "relative",
|
|
3984
4006
|
overflow: "hidden",
|
|
3985
4007
|
fontFamily: "'Courier New', monospace",
|
|
@@ -4223,13 +4245,13 @@ function ri({
|
|
|
4223
4245
|
}
|
|
4224
4246
|
);
|
|
4225
4247
|
}
|
|
4226
|
-
function
|
|
4248
|
+
function di() {
|
|
4227
4249
|
return /* @__PURE__ */ d(
|
|
4228
4250
|
"div",
|
|
4229
4251
|
{
|
|
4230
4252
|
style: {
|
|
4231
4253
|
width: oe,
|
|
4232
|
-
height:
|
|
4254
|
+
height: Q,
|
|
4233
4255
|
background: "linear-gradient(180deg, #040c1a, #030810)",
|
|
4234
4256
|
position: "relative",
|
|
4235
4257
|
overflow: "hidden",
|
|
@@ -4244,7 +4266,7 @@ function ai() {
|
|
|
4244
4266
|
{
|
|
4245
4267
|
style: {
|
|
4246
4268
|
width: 40,
|
|
4247
|
-
height:
|
|
4269
|
+
height: Q - 16,
|
|
4248
4270
|
background: "#020710",
|
|
4249
4271
|
border: "1px solid #1a2d40",
|
|
4250
4272
|
borderRadius: 2,
|
|
@@ -4300,7 +4322,7 @@ function ai() {
|
|
|
4300
4322
|
style: {
|
|
4301
4323
|
marginLeft: "auto",
|
|
4302
4324
|
width: 12,
|
|
4303
|
-
height:
|
|
4325
|
+
height: Q - 16,
|
|
4304
4326
|
background: "#020710",
|
|
4305
4327
|
border: "1px solid #1a3050",
|
|
4306
4328
|
borderRadius: 1
|
|
@@ -4311,13 +4333,13 @@ function ai() {
|
|
|
4311
4333
|
}
|
|
4312
4334
|
);
|
|
4313
4335
|
}
|
|
4314
|
-
function
|
|
4336
|
+
function yt({ side: t, color: n }) {
|
|
4315
4337
|
return /* @__PURE__ */ d(
|
|
4316
4338
|
"div",
|
|
4317
4339
|
{
|
|
4318
4340
|
style: {
|
|
4319
|
-
width:
|
|
4320
|
-
height:
|
|
4341
|
+
width: Ce,
|
|
4342
|
+
height: Q,
|
|
4321
4343
|
background: t === "right" ? "linear-gradient(90deg, #04091a 0%, #071428 60%, #040c1c 100%)" : "linear-gradient(90deg, #040c1c 0%, #071428 40%, #04091a 100%)",
|
|
4322
4344
|
position: "relative",
|
|
4323
4345
|
overflow: "hidden"
|
|
@@ -4341,8 +4363,8 @@ function gt({ side: t, color: n }) {
|
|
|
4341
4363
|
{
|
|
4342
4364
|
style: {
|
|
4343
4365
|
position: "absolute",
|
|
4344
|
-
top:
|
|
4345
|
-
bottom:
|
|
4366
|
+
top: Q * 0.25,
|
|
4367
|
+
bottom: Q * 0.25,
|
|
4346
4368
|
left: 14,
|
|
4347
4369
|
right: 14,
|
|
4348
4370
|
display: "flex",
|
|
@@ -4368,14 +4390,14 @@ function gt({ side: t, color: n }) {
|
|
|
4368
4390
|
}
|
|
4369
4391
|
);
|
|
4370
4392
|
}
|
|
4371
|
-
function
|
|
4372
|
-
const o = Math.floor((
|
|
4393
|
+
function ci({ queueDepth: t, color: n }) {
|
|
4394
|
+
const o = Math.floor((Ce - 14) / 7);
|
|
4373
4395
|
return /* @__PURE__ */ d(
|
|
4374
4396
|
"div",
|
|
4375
4397
|
{
|
|
4376
4398
|
style: {
|
|
4377
4399
|
width: oe,
|
|
4378
|
-
height:
|
|
4400
|
+
height: Ce,
|
|
4379
4401
|
background: "linear-gradient(180deg, #0c1c30 0%, #07101e 40%, #040c1a 100%)",
|
|
4380
4402
|
position: "relative",
|
|
4381
4403
|
overflow: "hidden"
|
|
@@ -4389,7 +4411,7 @@ function li({ queueDepth: t, color: n }) {
|
|
|
4389
4411
|
top: 0,
|
|
4390
4412
|
left: 0,
|
|
4391
4413
|
right: 0,
|
|
4392
|
-
height:
|
|
4414
|
+
height: Ce * 0.35,
|
|
4393
4415
|
background: `radial-gradient(ellipse at 50% 0%,
|
|
4394
4416
|
${t > 70 ? "rgba(255,34,85,0.14)" : `${n}15`} 0%,
|
|
4395
4417
|
transparent 70%)`
|
|
@@ -4427,7 +4449,7 @@ function li({ queueDepth: t, color: n }) {
|
|
|
4427
4449
|
}
|
|
4428
4450
|
);
|
|
4429
4451
|
}
|
|
4430
|
-
function
|
|
4452
|
+
function kt({
|
|
4431
4453
|
rotateX: t = -20,
|
|
4432
4454
|
rotateY: n = 20,
|
|
4433
4455
|
rotateZ: o = 0,
|
|
@@ -4441,7 +4463,7 @@ function $t({
|
|
|
4441
4463
|
_compact: p
|
|
4442
4464
|
}) {
|
|
4443
4465
|
const [f, g] = R(n), h = Z(0), y = Z(0);
|
|
4444
|
-
|
|
4466
|
+
Oe(() => {
|
|
4445
4467
|
if (!r) {
|
|
4446
4468
|
g(n);
|
|
4447
4469
|
return;
|
|
@@ -4453,13 +4475,13 @@ function $t({
|
|
|
4453
4475
|
cancelAnimationFrame(h.current), y.current = 0;
|
|
4454
4476
|
};
|
|
4455
4477
|
}, [r, n]);
|
|
4456
|
-
const m =
|
|
4478
|
+
const m = gt[a] ?? gt.online;
|
|
4457
4479
|
return /* @__PURE__ */ d(
|
|
4458
4480
|
"div",
|
|
4459
4481
|
{
|
|
4460
4482
|
style: {
|
|
4461
4483
|
width: oe * i,
|
|
4462
|
-
height:
|
|
4484
|
+
height: Q * i,
|
|
4463
4485
|
position: "relative",
|
|
4464
4486
|
display: "flex",
|
|
4465
4487
|
alignItems: "center",
|
|
@@ -4520,7 +4542,7 @@ function $t({
|
|
|
4520
4542
|
style: {
|
|
4521
4543
|
position: "absolute",
|
|
4522
4544
|
width: oe * 1.3 * i,
|
|
4523
|
-
height:
|
|
4545
|
+
height: Q * 2 * i,
|
|
4524
4546
|
background: `radial-gradient(ellipse, ${m.glow} 0%, transparent 65%)`,
|
|
4525
4547
|
filter: `blur(${Math.round(40 * i)}px)`,
|
|
4526
4548
|
pointerEvents: "none",
|
|
@@ -4544,15 +4566,15 @@ function $t({
|
|
|
4544
4566
|
{
|
|
4545
4567
|
style: {
|
|
4546
4568
|
width: oe,
|
|
4547
|
-
height:
|
|
4569
|
+
height: Q,
|
|
4548
4570
|
position: "relative",
|
|
4549
4571
|
transformStyle: "preserve-3d",
|
|
4550
4572
|
transform: `rotateX(${t}deg) rotateY(${f}deg) rotateZ(${o}deg)`,
|
|
4551
4573
|
transition: r ? "none" : "transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94)"
|
|
4552
4574
|
},
|
|
4553
4575
|
children: [
|
|
4554
|
-
/* @__PURE__ */ e("div", { style:
|
|
4555
|
-
|
|
4576
|
+
/* @__PURE__ */ e("div", { style: ke.front, children: /* @__PURE__ */ e(
|
|
4577
|
+
si,
|
|
4556
4578
|
{
|
|
4557
4579
|
cfg: m,
|
|
4558
4580
|
name: s,
|
|
@@ -4562,11 +4584,11 @@ function $t({
|
|
|
4562
4584
|
compact: p
|
|
4563
4585
|
}
|
|
4564
4586
|
) }),
|
|
4565
|
-
/* @__PURE__ */ e("div", { style:
|
|
4566
|
-
/* @__PURE__ */ e("div", { style:
|
|
4567
|
-
/* @__PURE__ */ e("div", { style:
|
|
4568
|
-
/* @__PURE__ */ e("div", { style:
|
|
4569
|
-
/* @__PURE__ */ e("div", { style:
|
|
4587
|
+
/* @__PURE__ */ e("div", { style: ke.back, children: /* @__PURE__ */ e(di, {}) }),
|
|
4588
|
+
/* @__PURE__ */ e("div", { style: ke.left, children: /* @__PURE__ */ e(yt, { side: "left", color: m.color }) }),
|
|
4589
|
+
/* @__PURE__ */ e("div", { style: ke.right, children: /* @__PURE__ */ e(yt, { side: "right", color: m.color }) }),
|
|
4590
|
+
/* @__PURE__ */ e("div", { style: ke.top, children: /* @__PURE__ */ e(ci, { queueDepth: l, color: m.color }) }),
|
|
4591
|
+
/* @__PURE__ */ e("div", { style: ke.bottom, children: /* @__PURE__ */ e("div", { style: { width: oe, height: Ce, background: "#020508" } }) })
|
|
4570
4592
|
]
|
|
4571
4593
|
}
|
|
4572
4594
|
)
|
|
@@ -4576,7 +4598,7 @@ function $t({
|
|
|
4576
4598
|
}
|
|
4577
4599
|
);
|
|
4578
4600
|
}
|
|
4579
|
-
function
|
|
4601
|
+
function Hi({
|
|
4580
4602
|
ex: t,
|
|
4581
4603
|
ey: n,
|
|
4582
4604
|
compactOffset: o,
|
|
@@ -4618,7 +4640,7 @@ function Bi({
|
|
|
4618
4640
|
},
|
|
4619
4641
|
alert: v,
|
|
4620
4642
|
children: /* @__PURE__ */ e(
|
|
4621
|
-
|
|
4643
|
+
kt,
|
|
4622
4644
|
{
|
|
4623
4645
|
status: a,
|
|
4624
4646
|
queueDepth: p,
|
|
@@ -4635,7 +4657,7 @@ function O(t, n, o = 24) {
|
|
|
4635
4657
|
return Math.min(100, Math.max(0, t + Math.sin(a * Math.PI * 2) * n + (Math.random() - 0.5) * 10));
|
|
4636
4658
|
});
|
|
4637
4659
|
}
|
|
4638
|
-
function
|
|
4660
|
+
function pi({ data: t, color: n, height: o = 28 }) {
|
|
4639
4661
|
const r = o, a = Math.max(...t, 1), s = t.map((l, u) => {
|
|
4640
4662
|
const c = u / (t.length - 1) * 120, p = r - l / a * (r - 4) - 2;
|
|
4641
4663
|
return `${c},${p}`;
|
|
@@ -4653,7 +4675,7 @@ function si({ data: t, color: n, height: o = 28 }) {
|
|
|
4653
4675
|
}
|
|
4654
4676
|
) });
|
|
4655
4677
|
}
|
|
4656
|
-
function
|
|
4678
|
+
function fi({
|
|
4657
4679
|
type: t,
|
|
4658
4680
|
name: n,
|
|
4659
4681
|
context: o = {},
|
|
@@ -4661,7 +4683,7 @@ function di({
|
|
|
4661
4683
|
animPhase: r,
|
|
4662
4684
|
series: a
|
|
4663
4685
|
}) {
|
|
4664
|
-
const s = i === "critical" || i === "offline" ? "#ff2255" : i === "warning" ? "#ff8c00" : "#00e5ff", l = a ? a.map((p) => ({ ...p })) :
|
|
4686
|
+
const s = i === "critical" || i === "offline" ? "#ff2255" : i === "warning" ? "#ff8c00" : "#00e5ff", l = a ? a.map((p) => ({ ...p })) : ui(t, o), u = r >= 0.3 ? 0 : -280, c = r >= 0.2 ? 1 : 0;
|
|
4665
4687
|
return /* @__PURE__ */ d(
|
|
4666
4688
|
"div",
|
|
4667
4689
|
{
|
|
@@ -4716,7 +4738,7 @@ function di({
|
|
|
4716
4738
|
p.unit
|
|
4717
4739
|
] })
|
|
4718
4740
|
] }),
|
|
4719
|
-
/* @__PURE__ */ e(
|
|
4741
|
+
/* @__PURE__ */ e(pi, { data: p.data, color: p.color, height: 26 })
|
|
4720
4742
|
]
|
|
4721
4743
|
},
|
|
4722
4744
|
p.id
|
|
@@ -4725,7 +4747,7 @@ function di({
|
|
|
4725
4747
|
}
|
|
4726
4748
|
);
|
|
4727
4749
|
}
|
|
4728
|
-
function
|
|
4750
|
+
function ui(t, n) {
|
|
4729
4751
|
if (t === "server") {
|
|
4730
4752
|
const o = n.cpuLoad ?? 50, i = n.memLoad ?? 60;
|
|
4731
4753
|
return [
|
|
@@ -4761,7 +4783,7 @@ function ci(t, n) {
|
|
|
4761
4783
|
}
|
|
4762
4784
|
return [];
|
|
4763
4785
|
}
|
|
4764
|
-
function
|
|
4786
|
+
function Rt({
|
|
4765
4787
|
w: t,
|
|
4766
4788
|
h: n,
|
|
4767
4789
|
color: o,
|
|
@@ -4770,14 +4792,14 @@ function kt({
|
|
|
4770
4792
|
delay: a = "0s",
|
|
4771
4793
|
children: s
|
|
4772
4794
|
}) {
|
|
4773
|
-
const l = r ?
|
|
4795
|
+
const l = r ? E[r]?.glow ?? "rgba(0,229,255,0.4)" : "rgba(0,229,255,0.4)";
|
|
4774
4796
|
return /* @__PURE__ */ d(
|
|
4775
4797
|
"div",
|
|
4776
4798
|
{
|
|
4777
4799
|
style: {
|
|
4778
4800
|
width: t,
|
|
4779
4801
|
height: n,
|
|
4780
|
-
background:
|
|
4802
|
+
background: Le,
|
|
4781
4803
|
position: "relative",
|
|
4782
4804
|
overflow: "hidden",
|
|
4783
4805
|
borderRadius: 2,
|
|
@@ -4811,8 +4833,8 @@ function kt({
|
|
|
4811
4833
|
width: 4,
|
|
4812
4834
|
height: 4,
|
|
4813
4835
|
borderRadius: "50%",
|
|
4814
|
-
background:
|
|
4815
|
-
boxShadow: `0 0 6px ${
|
|
4836
|
+
background: E[r]?.color,
|
|
4837
|
+
boxShadow: `0 0 6px ${E[r]?.color}`,
|
|
4816
4838
|
animation: "holo-led-blink 1.2s infinite"
|
|
4817
4839
|
}
|
|
4818
4840
|
}
|
|
@@ -4867,7 +4889,7 @@ function ze({
|
|
|
4867
4889
|
style: {
|
|
4868
4890
|
width: 52,
|
|
4869
4891
|
height: 36,
|
|
4870
|
-
background:
|
|
4892
|
+
background: Le,
|
|
4871
4893
|
position: "relative",
|
|
4872
4894
|
borderRadius: 2,
|
|
4873
4895
|
border: `1px solid ${t}55`,
|
|
@@ -4938,8 +4960,8 @@ function ze({
|
|
|
4938
4960
|
width: 4,
|
|
4939
4961
|
height: 4,
|
|
4940
4962
|
borderRadius: "50%",
|
|
4941
|
-
background:
|
|
4942
|
-
boxShadow: `0 0 6px ${
|
|
4963
|
+
background: E[o]?.color,
|
|
4964
|
+
boxShadow: `0 0 6px ${E[o]?.color}`,
|
|
4943
4965
|
animation: "holo-led-blink 1.2s infinite"
|
|
4944
4966
|
}
|
|
4945
4967
|
}
|
|
@@ -5036,7 +5058,7 @@ function Be({
|
|
|
5036
5058
|
width: 3,
|
|
5037
5059
|
height: 3,
|
|
5038
5060
|
borderRadius: "50%",
|
|
5039
|
-
background:
|
|
5061
|
+
background: E[o]?.color,
|
|
5040
5062
|
animation: "holo-led-blink 1.2s infinite"
|
|
5041
5063
|
}
|
|
5042
5064
|
}
|
|
@@ -5062,13 +5084,13 @@ function Be({
|
|
|
5062
5084
|
)
|
|
5063
5085
|
] });
|
|
5064
5086
|
}
|
|
5065
|
-
function
|
|
5087
|
+
function Pe({
|
|
5066
5088
|
color: t = "#00e5ff",
|
|
5067
5089
|
label: n = "DRIVE-1",
|
|
5068
5090
|
status: o = "online",
|
|
5069
5091
|
activity: i = !1
|
|
5070
5092
|
}) {
|
|
5071
|
-
return /* @__PURE__ */ d(
|
|
5093
|
+
return /* @__PURE__ */ d(Rt, { w: 56, h: 22, color: t, label: n, status: o, children: [
|
|
5072
5094
|
/* @__PURE__ */ e(
|
|
5073
5095
|
"div",
|
|
5074
5096
|
{
|
|
@@ -5101,7 +5123,7 @@ function Ce({
|
|
|
5101
5123
|
)
|
|
5102
5124
|
] });
|
|
5103
5125
|
}
|
|
5104
|
-
function
|
|
5126
|
+
function Et({
|
|
5105
5127
|
color: t = "#00e5ff",
|
|
5106
5128
|
label: n = "NET",
|
|
5107
5129
|
status: o = "online"
|
|
@@ -5112,7 +5134,7 @@ function Rt({
|
|
|
5112
5134
|
style: {
|
|
5113
5135
|
width: 48,
|
|
5114
5136
|
height: 28,
|
|
5115
|
-
background:
|
|
5137
|
+
background: Le,
|
|
5116
5138
|
position: "relative",
|
|
5117
5139
|
borderRadius: 2,
|
|
5118
5140
|
border: `1px solid ${t}44`,
|
|
@@ -5170,7 +5192,7 @@ function M({
|
|
|
5170
5192
|
label: n = "THREAD",
|
|
5171
5193
|
status: o = "online"
|
|
5172
5194
|
}) {
|
|
5173
|
-
return /* @__PURE__ */ e(
|
|
5195
|
+
return /* @__PURE__ */ e(Rt, { w: 44, h: 28, color: t, label: n, status: o });
|
|
5174
5196
|
}
|
|
5175
5197
|
function Me({
|
|
5176
5198
|
color: t = "#ff8c00",
|
|
@@ -5230,7 +5252,7 @@ function Me({
|
|
|
5230
5252
|
width: 4,
|
|
5231
5253
|
height: 4,
|
|
5232
5254
|
borderRadius: "50%",
|
|
5233
|
-
background:
|
|
5255
|
+
background: E[o]?.color,
|
|
5234
5256
|
animation: "holo-led-blink 1.2s infinite"
|
|
5235
5257
|
}
|
|
5236
5258
|
}
|
|
@@ -5256,7 +5278,7 @@ function Me({
|
|
|
5256
5278
|
)
|
|
5257
5279
|
] });
|
|
5258
5280
|
}
|
|
5259
|
-
function
|
|
5281
|
+
function F({
|
|
5260
5282
|
color: t = "#00e5ff",
|
|
5261
5283
|
label: n = "PORT-1",
|
|
5262
5284
|
status: o = "online"
|
|
@@ -5285,7 +5307,7 @@ function H({
|
|
|
5285
5307
|
width: 4,
|
|
5286
5308
|
height: 4,
|
|
5287
5309
|
borderRadius: "50%",
|
|
5288
|
-
background: o && o !== "online" ?
|
|
5310
|
+
background: o && o !== "online" ? E[o]?.color ?? t : t,
|
|
5289
5311
|
boxShadow: `0 0 4px ${t}`,
|
|
5290
5312
|
animation: o && o !== "online" && o !== "offline" ? "holo-led-blink 1s infinite" : "none"
|
|
5291
5313
|
}
|
|
@@ -5326,7 +5348,7 @@ function H({
|
|
|
5326
5348
|
}
|
|
5327
5349
|
);
|
|
5328
5350
|
}
|
|
5329
|
-
function
|
|
5351
|
+
function hi(t, n, o, i) {
|
|
5330
5352
|
const r = o === "online" ? "online" : o;
|
|
5331
5353
|
return t === "server" ? [
|
|
5332
5354
|
{
|
|
@@ -5430,8 +5452,8 @@ function pi(t, n, o, i) {
|
|
|
5430
5452
|
}
|
|
5431
5453
|
] : [];
|
|
5432
5454
|
}
|
|
5433
|
-
const D = "cubic-bezier(0.34, 1.56, 0.64, 1)",
|
|
5434
|
-
function
|
|
5455
|
+
const D = "cubic-bezier(0.34, 1.56, 0.64, 1)", bi = "cubic-bezier(0.16, 1, 0.3, 1)";
|
|
5456
|
+
function gi({ items: t, revealPhase: n }) {
|
|
5435
5457
|
return /* @__PURE__ */ e(
|
|
5436
5458
|
"div",
|
|
5437
5459
|
{
|
|
@@ -5458,14 +5480,14 @@ function ui({ items: t, revealPhase: n }) {
|
|
|
5458
5480
|
}
|
|
5459
5481
|
);
|
|
5460
5482
|
}
|
|
5461
|
-
function
|
|
5483
|
+
function yi({
|
|
5462
5484
|
type: t,
|
|
5463
5485
|
status: n,
|
|
5464
5486
|
context: o,
|
|
5465
5487
|
internal: i,
|
|
5466
5488
|
revealPhase: r
|
|
5467
5489
|
}) {
|
|
5468
|
-
const a =
|
|
5490
|
+
const a = E[n]?.color ?? E.online.color, s = "#ff8c00";
|
|
5469
5491
|
if (t === "server") {
|
|
5470
5492
|
const l = o.cpuLoad ?? 50, u = o.memLoad ?? 60, c = [
|
|
5471
5493
|
{
|
|
@@ -5527,13 +5549,13 @@ function hi({
|
|
|
5527
5549
|
{
|
|
5528
5550
|
key: "d1",
|
|
5529
5551
|
delay: 4,
|
|
5530
|
-
el: /* @__PURE__ */ e(
|
|
5552
|
+
el: /* @__PURE__ */ e(Pe, { color: a, label: "DRIVE-1", status: i[4]?.status, activity: !0 })
|
|
5531
5553
|
},
|
|
5532
5554
|
{
|
|
5533
5555
|
key: "d2",
|
|
5534
5556
|
delay: 5,
|
|
5535
5557
|
el: /* @__PURE__ */ e(
|
|
5536
|
-
|
|
5558
|
+
Pe,
|
|
5537
5559
|
{
|
|
5538
5560
|
color: a,
|
|
5539
5561
|
label: "DRIVE-2",
|
|
@@ -5546,7 +5568,7 @@ function hi({
|
|
|
5546
5568
|
key: "d3",
|
|
5547
5569
|
delay: 6,
|
|
5548
5570
|
el: /* @__PURE__ */ e(
|
|
5549
|
-
|
|
5571
|
+
Pe,
|
|
5550
5572
|
{
|
|
5551
5573
|
color: a,
|
|
5552
5574
|
label: "DRIVE-3",
|
|
@@ -5563,7 +5585,7 @@ function hi({
|
|
|
5563
5585
|
{
|
|
5564
5586
|
key: "net",
|
|
5565
5587
|
delay: 8,
|
|
5566
|
-
el: /* @__PURE__ */ e(
|
|
5588
|
+
el: /* @__PURE__ */ e(Et, { color: a, label: "NET", status: i[8]?.status })
|
|
5567
5589
|
}
|
|
5568
5590
|
];
|
|
5569
5591
|
return /* @__PURE__ */ e(
|
|
@@ -5603,7 +5625,7 @@ function hi({
|
|
|
5603
5625
|
transform: `scale(${r >= 0.25 + c * 0.04 ? 1 : 0.5})`,
|
|
5604
5626
|
transition: `opacity 0.35s ${D} ${c * 0.04}s, transform 0.4s ${D} ${c * 0.04}s`
|
|
5605
5627
|
},
|
|
5606
|
-
children: /* @__PURE__ */ e(
|
|
5628
|
+
children: /* @__PURE__ */ e(F, { color: a, label: `PORT-${c + 1}`, status: p?.status })
|
|
5607
5629
|
},
|
|
5608
5630
|
`p${c}`
|
|
5609
5631
|
);
|
|
@@ -5669,7 +5691,7 @@ function hi({
|
|
|
5669
5691
|
transform: `scale(${r >= 0.25 + l * 0.1 ? 1 : 0.6})`,
|
|
5670
5692
|
transition: `all 0.4s ${D} ${l * 0.08}s`
|
|
5671
5693
|
},
|
|
5672
|
-
children: /* @__PURE__ */ e(
|
|
5694
|
+
children: /* @__PURE__ */ e(F, { color: "#bb55ff", label: `INST-${l}`, status: i[l]?.status })
|
|
5673
5695
|
},
|
|
5674
5696
|
l
|
|
5675
5697
|
)),
|
|
@@ -5768,7 +5790,7 @@ function hi({
|
|
|
5768
5790
|
}
|
|
5769
5791
|
return null;
|
|
5770
5792
|
}
|
|
5771
|
-
function
|
|
5793
|
+
function Yi({
|
|
5772
5794
|
type: t,
|
|
5773
5795
|
name: n,
|
|
5774
5796
|
status: o,
|
|
@@ -5778,7 +5800,7 @@ function Fi({
|
|
|
5778
5800
|
subComponents: s,
|
|
5779
5801
|
graphSeries: l
|
|
5780
5802
|
}) {
|
|
5781
|
-
const u =
|
|
5803
|
+
const u = hi(t, n, o, a), c = E[o]?.color ?? E.online.color, p = r >= 0.1 ? 1 : r * 10, f = r >= 0.2 ? "-50%" : "0%", g = r >= 0.2 ? "50%" : "0%", h = r >= 0.25 ? Math.min(1, (r - 0.25) * 1.5) : 0;
|
|
5782
5804
|
return /* @__PURE__ */ d(
|
|
5783
5805
|
"div",
|
|
5784
5806
|
{
|
|
@@ -5802,13 +5824,13 @@ function Fi({
|
|
|
5802
5824
|
backdropFilter: "blur(10px)",
|
|
5803
5825
|
WebkitBackdropFilter: "blur(10px)",
|
|
5804
5826
|
opacity: p,
|
|
5805
|
-
transition: `opacity 0.4s ${
|
|
5827
|
+
transition: `opacity 0.4s ${bi}`
|
|
5806
5828
|
},
|
|
5807
5829
|
onClick: i
|
|
5808
5830
|
}
|
|
5809
5831
|
),
|
|
5810
5832
|
/* @__PURE__ */ e(
|
|
5811
|
-
|
|
5833
|
+
fi,
|
|
5812
5834
|
{
|
|
5813
5835
|
type: t,
|
|
5814
5836
|
name: n,
|
|
@@ -5978,8 +6000,8 @@ function Fi({
|
|
|
5978
6000
|
}
|
|
5979
6001
|
}
|
|
5980
6002
|
),
|
|
5981
|
-
/* @__PURE__ */ e("div", { style: { flex: 1, padding: "8px 0 24px" }, children: s ? /* @__PURE__ */ e(
|
|
5982
|
-
|
|
6003
|
+
/* @__PURE__ */ e("div", { style: { flex: 1, padding: "8px 0 24px" }, children: s ? /* @__PURE__ */ e(gi, { items: s, revealPhase: h }) : /* @__PURE__ */ e(
|
|
6004
|
+
yi,
|
|
5983
6005
|
{
|
|
5984
6006
|
type: t,
|
|
5985
6007
|
name: n,
|
|
@@ -5999,7 +6021,7 @@ function Fi({
|
|
|
5999
6021
|
}
|
|
6000
6022
|
);
|
|
6001
6023
|
}
|
|
6002
|
-
function
|
|
6024
|
+
function mi({ onSubmit: t }) {
|
|
6003
6025
|
const [n, o] = R(""), [i, r] = R(""), [a, s] = R(null), [l, u] = R(!1), c = n.trim().length > 0 && i.trim().length > 0;
|
|
6004
6026
|
return /* @__PURE__ */ e("div", { className: "cred-overlay", children: /* @__PURE__ */ d("form", { className: "cred-panel", onSubmit: (f) => {
|
|
6005
6027
|
f.preventDefault(), c && t({ accessKey: n.trim(), secretKey: i.trim() });
|
|
@@ -6091,27 +6113,27 @@ function bi({ onSubmit: t }) {
|
|
|
6091
6113
|
] }) });
|
|
6092
6114
|
}
|
|
6093
6115
|
const at = He(null);
|
|
6094
|
-
function
|
|
6116
|
+
function xi() {
|
|
6095
6117
|
const t = ae(at);
|
|
6096
6118
|
if (!t)
|
|
6097
6119
|
throw new Error("useAIOpsData must be used within an AIOPsDashboard with dataEndpoint configured");
|
|
6098
6120
|
return t;
|
|
6099
6121
|
}
|
|
6100
|
-
function
|
|
6122
|
+
function vi() {
|
|
6101
6123
|
return ae(at);
|
|
6102
6124
|
}
|
|
6103
|
-
function
|
|
6104
|
-
const { data: n } =
|
|
6125
|
+
function Vi(t) {
|
|
6126
|
+
const { data: n } = xi();
|
|
6105
6127
|
return n[t] ?? null;
|
|
6106
6128
|
}
|
|
6107
|
-
function
|
|
6129
|
+
function wi(t) {
|
|
6108
6130
|
const n = /* @__PURE__ */ new Set();
|
|
6109
6131
|
for (const o of Object.values(t))
|
|
6110
6132
|
for (const i of Object.values(o))
|
|
6111
6133
|
n.add(typeof i == "string" ? i : i.query);
|
|
6112
6134
|
return Array.from(n);
|
|
6113
6135
|
}
|
|
6114
|
-
function
|
|
6136
|
+
function Si(t) {
|
|
6115
6137
|
if (typeof t == "number") return t;
|
|
6116
6138
|
if (typeof t == "string") {
|
|
6117
6139
|
const n = Number(t);
|
|
@@ -6119,7 +6141,7 @@ function xi(t) {
|
|
|
6119
6141
|
}
|
|
6120
6142
|
return t;
|
|
6121
6143
|
}
|
|
6122
|
-
function
|
|
6144
|
+
function $i({ config: t, children: n }) {
|
|
6123
6145
|
const [o, i] = R({}), [r, a] = R(null), [s, l] = R(!1), [u, c] = R(null), [p, f] = R(null), g = Z(t);
|
|
6124
6146
|
g.current = t;
|
|
6125
6147
|
const h = Z(r);
|
|
@@ -6160,7 +6182,7 @@ function vi({ config: t, children: n }) {
|
|
|
6160
6182
|
}
|
|
6161
6183
|
}
|
|
6162
6184
|
}, []);
|
|
6163
|
-
|
|
6185
|
+
Oe(() => {
|
|
6164
6186
|
if (!r) return;
|
|
6165
6187
|
y();
|
|
6166
6188
|
const x = g.current.refreshInterval ?? 6e4, w = window.setInterval(y, x);
|
|
@@ -6178,28 +6200,28 @@ function vi({ config: t, children: n }) {
|
|
|
6178
6200
|
};
|
|
6179
6201
|
return /* @__PURE__ */ d(at.Provider, { value: v, children: [
|
|
6180
6202
|
n,
|
|
6181
|
-
!r && /* @__PURE__ */ e(
|
|
6203
|
+
!r && /* @__PURE__ */ e(mi, { onSubmit: m })
|
|
6182
6204
|
] });
|
|
6183
6205
|
}
|
|
6184
|
-
function
|
|
6206
|
+
function _i(t) {
|
|
6185
6207
|
const { dataEndpoint: n, dataBindings: o, dataRefreshInterval: i } = t;
|
|
6186
6208
|
if (n && o) {
|
|
6187
|
-
const r =
|
|
6209
|
+
const r = wi(o);
|
|
6188
6210
|
return /* @__PURE__ */ e(
|
|
6189
|
-
|
|
6211
|
+
$i,
|
|
6190
6212
|
{
|
|
6191
6213
|
config: {
|
|
6192
6214
|
endpoint: n,
|
|
6193
6215
|
queries: r,
|
|
6194
6216
|
refreshInterval: i
|
|
6195
6217
|
},
|
|
6196
|
-
children: /* @__PURE__ */ e(
|
|
6218
|
+
children: /* @__PURE__ */ e(mt, { ...t })
|
|
6197
6219
|
}
|
|
6198
6220
|
);
|
|
6199
6221
|
}
|
|
6200
|
-
return /* @__PURE__ */ e(
|
|
6222
|
+
return /* @__PURE__ */ e(mt, { ...t });
|
|
6201
6223
|
}
|
|
6202
|
-
function
|
|
6224
|
+
function mt({
|
|
6203
6225
|
brandName: t = "BUSAUD AIOps",
|
|
6204
6226
|
brandTag: n = "3D MONITOR",
|
|
6205
6227
|
services: o = [],
|
|
@@ -6211,38 +6233,38 @@ function yt({
|
|
|
6211
6233
|
dataTransform: u,
|
|
6212
6234
|
children: c
|
|
6213
6235
|
}) {
|
|
6214
|
-
const p =
|
|
6215
|
-
v === "compact" && (T(
|
|
6236
|
+
const p = vi(), [f] = R(20), [g] = R(!1), [h] = R(!0), [y] = R(0.45), [m] = R(3.3), [v, x] = R("compact"), [w, b] = R(0), [k, T] = R(null), [$, S] = R(null), [N, B] = R(0), z = (C) => {
|
|
6237
|
+
v === "compact" && (T(C), x("expanding"), b(0), setTimeout(() => b(1), 50), setTimeout(() => b(2), 800), setTimeout(() => b(3), 1200), setTimeout(() => b(4), 1600), setTimeout(() => b(5), 2e3), setTimeout(() => {
|
|
6216
6238
|
b(6), x("expanded");
|
|
6217
6239
|
}, 2400));
|
|
6218
|
-
},
|
|
6240
|
+
}, U = () => {
|
|
6219
6241
|
$ ? (S(null), B(0)) : v === "expanded" && (x("collapsing"), b(0), T(null), setTimeout(() => {
|
|
6220
|
-
x((
|
|
6242
|
+
x((C) => C === "collapsing" ? "compact" : C);
|
|
6221
6243
|
}, 1e3));
|
|
6222
|
-
}, le = (
|
|
6223
|
-
S(
|
|
6244
|
+
}, le = (C) => {
|
|
6245
|
+
S(C), B(0);
|
|
6224
6246
|
};
|
|
6225
|
-
|
|
6247
|
+
X.useEffect(() => {
|
|
6226
6248
|
if (!$) return;
|
|
6227
|
-
const
|
|
6228
|
-
const J = performance.now() -
|
|
6229
|
-
B(
|
|
6230
|
-
},
|
|
6231
|
-
return () => cancelAnimationFrame(
|
|
6249
|
+
const C = performance.now(), ue = 1200, te = () => {
|
|
6250
|
+
const J = performance.now() - C, _ = Math.min(1, J / ue);
|
|
6251
|
+
B(_), _ < 1 && requestAnimationFrame(te);
|
|
6252
|
+
}, he = requestAnimationFrame(te);
|
|
6253
|
+
return () => cancelAnimationFrame(he);
|
|
6232
6254
|
}, [$]);
|
|
6233
6255
|
const se = () => {
|
|
6234
6256
|
S(null), B(0);
|
|
6235
|
-
}, I = o.find((
|
|
6236
|
-
if (!
|
|
6237
|
-
const
|
|
6238
|
-
if (!
|
|
6239
|
-
const te = l[
|
|
6240
|
-
for (const [J,
|
|
6241
|
-
const dt = typeof
|
|
6242
|
-
De !== void 0 && (
|
|
6257
|
+
}, I = o.find((C) => C.name === k), H = I?.status ?? "online", de = I?.dbSync ?? !0, ce = I?.metrics, Y = I?.alerts, V = u ?? Si, L = p?.data, K = Ze(() => !L || !l ? c : X.Children.map(c, (C) => {
|
|
6258
|
+
if (!X.isValidElement(C)) return C;
|
|
6259
|
+
const ue = C.props.name;
|
|
6260
|
+
if (!ue || !l[ue]) return C;
|
|
6261
|
+
const te = l[ue], he = {};
|
|
6262
|
+
for (const [J, _] of Object.entries(te)) {
|
|
6263
|
+
const dt = typeof _ == "string" ? _ : _.query, ve = typeof _ == "object" && _.transform ? _.transform : V, De = L[dt];
|
|
6264
|
+
De !== void 0 && (he[J] = ve(De));
|
|
6243
6265
|
}
|
|
6244
|
-
return Object.keys(
|
|
6245
|
-
}), [c, L, l,
|
|
6266
|
+
return Object.keys(he).length > 0 ? X.cloneElement(C, he) : C;
|
|
6267
|
+
}), [c, L, l, V]), pe = p?.lastRefreshError ?? null, me = 330, xe = 340, Ye = $ ? 1.15 : 1, Ve = $ ? -($.ex - me) * 0.06 : 0, fe = $ ? -($.ey - xe) * 0.06 : 0;
|
|
6246
6268
|
return /* @__PURE__ */ d("div", { className: "app", style: s ? { fontFamily: s } : void 0, children: [
|
|
6247
6269
|
/* @__PURE__ */ e(
|
|
6248
6270
|
"div",
|
|
@@ -6257,7 +6279,7 @@ function yt({
|
|
|
6257
6279
|
backgroundPosition: "center center",
|
|
6258
6280
|
backgroundRepeat: "no-repeat",
|
|
6259
6281
|
transition: "transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1)",
|
|
6260
|
-
transform: `translate(${Ve}px, ${
|
|
6282
|
+
transform: `translate(${Ve}px, ${fe}px) scale(${Ye})`,
|
|
6261
6283
|
willChange: "transform"
|
|
6262
6284
|
}
|
|
6263
6285
|
}
|
|
@@ -6268,7 +6290,7 @@ function yt({
|
|
|
6268
6290
|
/* @__PURE__ */ e("span", { className: "brand-text", children: t })
|
|
6269
6291
|
] }),
|
|
6270
6292
|
/* @__PURE__ */ d("div", { className: "hdr-right", children: [
|
|
6271
|
-
|
|
6293
|
+
pe && /* @__PURE__ */ d("div", { className: "hdr-refresh-error", children: [
|
|
6272
6294
|
/* @__PURE__ */ e("span", { className: "refresh-error-dot" }),
|
|
6273
6295
|
/* @__PURE__ */ e("span", { className: "refresh-error-text", children: "DATA REFRESH FAILED" })
|
|
6274
6296
|
] }),
|
|
@@ -6282,9 +6304,9 @@ function yt({
|
|
|
6282
6304
|
style: {
|
|
6283
6305
|
cursor: v === "expanded" ? "zoom-out" : "default"
|
|
6284
6306
|
},
|
|
6285
|
-
onClick:
|
|
6307
|
+
onClick: U,
|
|
6286
6308
|
children: /* @__PURE__ */ e(
|
|
6287
|
-
|
|
6309
|
+
Yt,
|
|
6288
6310
|
{
|
|
6289
6311
|
viewState: v,
|
|
6290
6312
|
animPhase: w,
|
|
@@ -6299,14 +6321,14 @@ function yt({
|
|
|
6299
6321
|
carouselSpeed: a,
|
|
6300
6322
|
logoUrl: r,
|
|
6301
6323
|
onSelectSystem: z,
|
|
6302
|
-
onBackgroundClick:
|
|
6324
|
+
onBackgroundClick: U,
|
|
6303
6325
|
onComponentClick: le,
|
|
6304
6326
|
onCloseDrill: se,
|
|
6305
|
-
selectedSystemStatus:
|
|
6327
|
+
selectedSystemStatus: H,
|
|
6306
6328
|
selectedSystemDbSync: de,
|
|
6307
|
-
selectedSystemMetrics:
|
|
6308
|
-
selectedSystemAlerts:
|
|
6309
|
-
children:
|
|
6329
|
+
selectedSystemMetrics: ce,
|
|
6330
|
+
selectedSystemAlerts: Y,
|
|
6331
|
+
children: K
|
|
6310
6332
|
}
|
|
6311
6333
|
)
|
|
6312
6334
|
}
|
|
@@ -6322,21 +6344,21 @@ function P(t, n, o = 24) {
|
|
|
6322
6344
|
function Ct(t) {
|
|
6323
6345
|
return t === "critical" || t === "offline" ? "#ff2255" : t === "warning" ? "#ff8c00" : "#00e5ff";
|
|
6324
6346
|
}
|
|
6325
|
-
function
|
|
6347
|
+
function Ae(t, n, o) {
|
|
6326
6348
|
const i = t === "online" ? "online" : t, r = Ct(t), a = o?.cpuLoad ?? 50, s = o?.memLoad ?? 60, l = i === "critical" || i === "warning" && a > 80 ? i : "online", u = i === "warning" && s > 85 ? "warning" : i === "critical" ? "critical" : "online", c = i === "critical" && n === "APP-03" ? "critical" : "online", p = i === "offline" ? "offline" : "online";
|
|
6327
6349
|
return [
|
|
6328
6350
|
{ id: "cpu-0", label: "CPU-0", status: l, detail: i === "critical" ? "Core overload" : i === "warning" ? "Load spike" : void 0, element: /* @__PURE__ */ e(ze, { color: r, label: "CPU-0", status: l, load: a }) },
|
|
6329
6351
|
{ id: "cpu-1", label: "CPU-1", status: "online", element: /* @__PURE__ */ e(ze, { color: r, label: "CPU-1", status: "online", load: a * 0.7 }) },
|
|
6330
6352
|
{ id: "heap-0", label: "HEAP-0", status: u, detail: u === "warning" ? "Memory heap usage" : u === "critical" ? "OOM risk" : void 0, element: /* @__PURE__ */ e(Be, { color: "#8855ee", label: "HEAP-0", status: u, usedPercent: s }) },
|
|
6331
6353
|
{ id: "heap-1", label: "HEAP-1", status: "online", element: /* @__PURE__ */ e(Be, { color: "#8855ee", label: "HEAP-1", status: "online", usedPercent: s * 0.85 }) },
|
|
6332
|
-
{ id: "drive-1", label: "DRIVE-1", status: "online", element: /* @__PURE__ */ e(
|
|
6333
|
-
{ id: "drive-2", label: "DRIVE-2", status: "online", element: /* @__PURE__ */ e(
|
|
6334
|
-
{ id: "drive-3", label: "DRIVE-3", status: "online", element: /* @__PURE__ */ e(
|
|
6354
|
+
{ id: "drive-1", label: "DRIVE-1", status: "online", element: /* @__PURE__ */ e(Pe, { color: r, label: "DRIVE-1", status: "online", activity: !0 }) },
|
|
6355
|
+
{ id: "drive-2", label: "DRIVE-2", status: "online", element: /* @__PURE__ */ e(Pe, { color: r, label: "DRIVE-2", status: "online", activity: a > 30 }) },
|
|
6356
|
+
{ id: "drive-3", label: "DRIVE-3", status: "online", element: /* @__PURE__ */ e(Pe, { color: r, label: "DRIVE-3", status: "online", activity: a > 50 }) },
|
|
6335
6357
|
{ id: "thread-pool", label: "THREAD-POOL", status: c, detail: c === "critical" ? "Thread exhaustion" : void 0, element: /* @__PURE__ */ e(M, { color: r, label: "THREAD-POOL", status: c }) },
|
|
6336
|
-
{ id: "network", label: "NET", status: p, element: /* @__PURE__ */ e(
|
|
6358
|
+
{ id: "network", label: "NET", status: p, element: /* @__PURE__ */ e(Et, { color: r, label: "NET", status: p }) }
|
|
6337
6359
|
];
|
|
6338
6360
|
}
|
|
6339
|
-
function
|
|
6361
|
+
function Te(t) {
|
|
6340
6362
|
const n = t?.cpuLoad ?? 50, o = t?.memLoad ?? 60;
|
|
6341
6363
|
return [
|
|
6342
6364
|
{ id: "cpu", label: "CPU-0", unit: "%", color: "#00e5ff", data: P(n, 15) },
|
|
@@ -6349,22 +6371,22 @@ function Pe(t) {
|
|
|
6349
6371
|
{ id: "thread", label: "THREAD-POOL", unit: "%", color: "#22aaff", data: P(55, 20) }
|
|
6350
6372
|
];
|
|
6351
6373
|
}
|
|
6352
|
-
function
|
|
6374
|
+
function Pt(t, n, o) {
|
|
6353
6375
|
const i = t === "online" ? "online" : t, r = Ct(t), a = i === "critical" || i === "offline" ? i : "online", s = i === "warning" ? "warning" : "online", l = i === "critical" ? "critical" : "online";
|
|
6354
6376
|
return [
|
|
6355
|
-
{ id: "port-1", label: "PORT-1", status: "online", element: /* @__PURE__ */ e(
|
|
6356
|
-
{ id: "port-2", label: "PORT-2", status: "online", element: /* @__PURE__ */ e(
|
|
6357
|
-
{ id: "port-3", label: "PORT-3", status: a, detail: i === "critical" ? "Gateway timeout" : i === "offline" ? "Unreachable" : void 0, element: /* @__PURE__ */ e(
|
|
6358
|
-
{ id: "port-4", label: "PORT-4", status: "online", element: /* @__PURE__ */ e(
|
|
6359
|
-
{ id: "port-5", label: "PORT-5", status: s, detail: s === "warning" ? "Latency spike" : void 0, element: /* @__PURE__ */ e(
|
|
6360
|
-
{ id: "port-6", label: "PORT-6", status: "online", element: /* @__PURE__ */ e(
|
|
6361
|
-
{ id: "port-7", label: "PORT-7", status: "online", element: /* @__PURE__ */ e(
|
|
6362
|
-
{ id: "port-8", label: "PORT-8", status: "online", element: /* @__PURE__ */ e(
|
|
6377
|
+
{ id: "port-1", label: "PORT-1", status: "online", element: /* @__PURE__ */ e(F, { color: r, label: "PORT-1", status: "online" }) },
|
|
6378
|
+
{ id: "port-2", label: "PORT-2", status: "online", element: /* @__PURE__ */ e(F, { color: r, label: "PORT-2", status: "online" }) },
|
|
6379
|
+
{ id: "port-3", label: "PORT-3", status: a, detail: i === "critical" ? "Gateway timeout" : i === "offline" ? "Unreachable" : void 0, element: /* @__PURE__ */ e(F, { color: r, label: "PORT-3", status: a }) },
|
|
6380
|
+
{ id: "port-4", label: "PORT-4", status: "online", element: /* @__PURE__ */ e(F, { color: r, label: "PORT-4", status: "online" }) },
|
|
6381
|
+
{ id: "port-5", label: "PORT-5", status: s, detail: s === "warning" ? "Latency spike" : void 0, element: /* @__PURE__ */ e(F, { color: r, label: "PORT-5", status: s }) },
|
|
6382
|
+
{ id: "port-6", label: "PORT-6", status: "online", element: /* @__PURE__ */ e(F, { color: r, label: "PORT-6", status: "online" }) },
|
|
6383
|
+
{ id: "port-7", label: "PORT-7", status: "online", element: /* @__PURE__ */ e(F, { color: r, label: "PORT-7", status: "online" }) },
|
|
6384
|
+
{ id: "port-8", label: "PORT-8", status: "online", element: /* @__PURE__ */ e(F, { color: r, label: "PORT-8", status: "online" }) },
|
|
6363
6385
|
{ id: "http-worker", label: "HTTP-WORKER", status: l, detail: l === "critical" ? "Worker timeout" : void 0, element: /* @__PURE__ */ e(M, { color: r, label: "HTTP-WORKER", status: l }) },
|
|
6364
6386
|
{ id: "https-worker", label: "HTTPS-WORKER", status: "online", element: /* @__PURE__ */ e(M, { color: "#bb55ff", label: "HTTPS-WORKER", status: "online" }) }
|
|
6365
6387
|
];
|
|
6366
6388
|
}
|
|
6367
|
-
function
|
|
6389
|
+
function At(t) {
|
|
6368
6390
|
const n = t?.traffic ?? 50;
|
|
6369
6391
|
return [
|
|
6370
6392
|
{ id: "traffic", label: "TRAFFIC", unit: "%", color: "#00e5ff", data: P(n, 20) },
|
|
@@ -6374,19 +6396,19 @@ function Pt(t) {
|
|
|
6374
6396
|
{ id: "worker", label: "WORKER", unit: "%", color: "#bb55ff", data: P(n * 0.9, 15) }
|
|
6375
6397
|
];
|
|
6376
6398
|
}
|
|
6377
|
-
function
|
|
6399
|
+
function ki(t, n, o) {
|
|
6378
6400
|
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";
|
|
6379
6401
|
return [
|
|
6380
|
-
{ id: "inst-0", label: "INST-0", status: "online", element: /* @__PURE__ */ e(
|
|
6381
|
-
{ id: "inst-1", label: "INST-1", status: "online", element: /* @__PURE__ */ e(
|
|
6382
|
-
{ id: "inst-2", label: "INST-2", status: r, detail: r === "critical" ? "Instance unreachable" : void 0, element: /* @__PURE__ */ e(
|
|
6402
|
+
{ id: "inst-0", label: "INST-0", status: "online", element: /* @__PURE__ */ e(F, { color: "#bb55ff", label: "INST-0", status: "online" }) },
|
|
6403
|
+
{ id: "inst-1", label: "INST-1", status: "online", element: /* @__PURE__ */ e(F, { color: "#bb55ff", label: "INST-1", status: "online" }) },
|
|
6404
|
+
{ id: "inst-2", label: "INST-2", status: r, detail: r === "critical" ? "Instance unreachable" : void 0, element: /* @__PURE__ */ e(F, { color: "#bb55ff", label: "INST-2", status: r }) },
|
|
6383
6405
|
{ id: "queue-0", label: "QUEUE-0", status: a, detail: i === "critical" ? "Queue full" : i === "offline" ? "Unreachable" : i === "warning" ? "Queue depth warning" : void 0, element: /* @__PURE__ */ e(M, { color: "#bb55ff", label: "QUEUE-0", status: a }) },
|
|
6384
6406
|
{ id: "worker-1", label: "WORKER-1", status: "online", element: /* @__PURE__ */ e(M, { color: "#bb55ff", label: "WORKER-1", status: "online" }) },
|
|
6385
6407
|
{ id: "worker-2", label: "WORKER-2", status: "online", element: /* @__PURE__ */ e(M, { color: "#bb55ff", label: "WORKER-2", status: "online" }) },
|
|
6386
6408
|
{ id: "worker-3", label: "WORKER-3", status: s, detail: s === "critical" ? "Worker timeout" : void 0, element: /* @__PURE__ */ e(M, { color: "#bb55ff", label: "WORKER-3", status: s }) }
|
|
6387
6409
|
];
|
|
6388
6410
|
}
|
|
6389
|
-
function
|
|
6411
|
+
function Ri(t) {
|
|
6390
6412
|
const n = t?.queueDepth ?? 50;
|
|
6391
6413
|
return [
|
|
6392
6414
|
{ id: "traffic", label: "TRAFFIC", unit: "%", color: "#00e5ff", data: P(n, 20) },
|
|
@@ -6428,7 +6450,7 @@ function lt(t) {
|
|
|
6428
6450
|
];
|
|
6429
6451
|
return n.includes("critical") ? "critical" : n.includes("warning") ? "warning" : n.includes("offline") ? "offline" : "online";
|
|
6430
6452
|
}
|
|
6431
|
-
function
|
|
6453
|
+
function ji(t) {
|
|
6432
6454
|
const n = lt(t), o = n === "critical" || n === "offline", i = n === "warning";
|
|
6433
6455
|
return [
|
|
6434
6456
|
{
|
|
@@ -6450,7 +6472,7 @@ function Yi(t) {
|
|
|
6450
6472
|
}
|
|
6451
6473
|
];
|
|
6452
6474
|
}
|
|
6453
|
-
function
|
|
6475
|
+
function Xi(t) {
|
|
6454
6476
|
const n = lt(t), o = n === "critical" || n === "offline", i = n === "warning";
|
|
6455
6477
|
return [
|
|
6456
6478
|
...t.dbSync ? [] : [{ level: "warning", message: "DB Replication Lag Detected" }],
|
|
@@ -6459,7 +6481,7 @@ function Vi(t) {
|
|
|
6459
6481
|
...!o && !i && t.dbSync ? [{ level: "info", message: "All Systems Nominal" }] : []
|
|
6460
6482
|
];
|
|
6461
6483
|
}
|
|
6462
|
-
const
|
|
6484
|
+
const Ei = [
|
|
6463
6485
|
{ from: [330, 120], to: [220, 260], visibleAtPhase: 3 },
|
|
6464
6486
|
{ from: [330, 120], to: [440, 260], visibleAtPhase: 3 },
|
|
6465
6487
|
{ from: [220, 260], to: [165, 390], visibleAtPhase: 4 },
|
|
@@ -6472,9 +6494,9 @@ const $i = [
|
|
|
6472
6494
|
{ from: [330, 390], to: [200, 520], visibleAtPhase: 5, color: "#ff8c00" },
|
|
6473
6495
|
{ from: [495, 390], to: [200, 520], visibleAtPhase: 5, color: "#ff8c00" }
|
|
6474
6496
|
];
|
|
6475
|
-
function
|
|
6476
|
-
const n =
|
|
6477
|
-
return /* @__PURE__ */ d(
|
|
6497
|
+
function Ci({ config: t }) {
|
|
6498
|
+
const n = X.useContext(ye), o = n?.rotateY ?? 20, i = n?.autoRotateComponents ?? !0, { wdStatus: r, msStatus: a, srv1Status: s, srv2Status: l, srv3Status: u, pdbStatus: c, sdbStatus: p, dbSync: f } = t;
|
|
6499
|
+
return /* @__PURE__ */ d(Ie, { children: [
|
|
6478
6500
|
/* @__PURE__ */ e(
|
|
6479
6501
|
A,
|
|
6480
6502
|
{
|
|
@@ -6503,8 +6525,8 @@ function ki({ config: t }) {
|
|
|
6503
6525
|
name: "WEB-DISP",
|
|
6504
6526
|
status: r,
|
|
6505
6527
|
context: { traffic: 78 },
|
|
6506
|
-
subComponents:
|
|
6507
|
-
graphSeries:
|
|
6528
|
+
subComponents: Pt(r),
|
|
6529
|
+
graphSeries: At({ traffic: 78 })
|
|
6508
6530
|
},
|
|
6509
6531
|
children: /* @__PURE__ */ e(
|
|
6510
6532
|
rt,
|
|
@@ -6536,11 +6558,11 @@ function ki({ config: t }) {
|
|
|
6536
6558
|
name: "MSG-SRV",
|
|
6537
6559
|
status: a,
|
|
6538
6560
|
context: { queueDepth: 45 },
|
|
6539
|
-
subComponents:
|
|
6540
|
-
graphSeries:
|
|
6561
|
+
subComponents: ki(a),
|
|
6562
|
+
graphSeries: Ri({ queueDepth: 45 })
|
|
6541
6563
|
},
|
|
6542
6564
|
children: /* @__PURE__ */ e(
|
|
6543
|
-
|
|
6565
|
+
kt,
|
|
6544
6566
|
{
|
|
6545
6567
|
rotateY: -o,
|
|
6546
6568
|
autoRotate: i,
|
|
@@ -6570,11 +6592,11 @@ function ki({ config: t }) {
|
|
|
6570
6592
|
name: "APP-01",
|
|
6571
6593
|
status: s,
|
|
6572
6594
|
context: { cpuLoad: 67, memLoad: 72 },
|
|
6573
|
-
subComponents:
|
|
6574
|
-
graphSeries:
|
|
6595
|
+
subComponents: Ae(s, "APP-01", { cpuLoad: 67, memLoad: 72 }),
|
|
6596
|
+
graphSeries: Te({ cpuLoad: 67, memLoad: 72 })
|
|
6575
6597
|
},
|
|
6576
6598
|
children: /* @__PURE__ */ e(
|
|
6577
|
-
|
|
6599
|
+
ge,
|
|
6578
6600
|
{
|
|
6579
6601
|
rotateY: o,
|
|
6580
6602
|
autoRotate: i,
|
|
@@ -6603,11 +6625,11 @@ function ki({ config: t }) {
|
|
|
6603
6625
|
name: "APP-02",
|
|
6604
6626
|
status: l,
|
|
6605
6627
|
context: { cpuLoad: 89, memLoad: 91 },
|
|
6606
|
-
subComponents:
|
|
6607
|
-
graphSeries:
|
|
6628
|
+
subComponents: Ae(l, "APP-02", { cpuLoad: 89, memLoad: 91 }),
|
|
6629
|
+
graphSeries: Te({ cpuLoad: 89, memLoad: 91 })
|
|
6608
6630
|
},
|
|
6609
6631
|
children: /* @__PURE__ */ e(
|
|
6610
|
-
|
|
6632
|
+
ge,
|
|
6611
6633
|
{
|
|
6612
6634
|
rotateY: o,
|
|
6613
6635
|
autoRotate: i,
|
|
@@ -6636,11 +6658,11 @@ function ki({ config: t }) {
|
|
|
6636
6658
|
name: "APP-03",
|
|
6637
6659
|
status: u,
|
|
6638
6660
|
context: { cpuLoad: 45, memLoad: 63 },
|
|
6639
|
-
subComponents:
|
|
6640
|
-
graphSeries:
|
|
6661
|
+
subComponents: Ae(u, "APP-03", { cpuLoad: 45, memLoad: 63 }),
|
|
6662
|
+
graphSeries: Te({ cpuLoad: 45, memLoad: 63 })
|
|
6641
6663
|
},
|
|
6642
6664
|
children: /* @__PURE__ */ e(
|
|
6643
|
-
|
|
6665
|
+
ge,
|
|
6644
6666
|
{
|
|
6645
6667
|
rotateY: o,
|
|
6646
6668
|
autoRotate: i,
|
|
@@ -6729,14 +6751,14 @@ function ki({ config: t }) {
|
|
|
6729
6751
|
visibleAtPhase: 6,
|
|
6730
6752
|
fixedScale: 1,
|
|
6731
6753
|
bare: !0,
|
|
6732
|
-
children: /* @__PURE__ */ e(
|
|
6754
|
+
children: /* @__PURE__ */ e($t, { synced: f, latencyMs: f ? 8 : 342 })
|
|
6733
6755
|
}
|
|
6734
6756
|
),
|
|
6735
|
-
/* @__PURE__ */ e(
|
|
6757
|
+
/* @__PURE__ */ e(Pi, { config: t })
|
|
6736
6758
|
] });
|
|
6737
6759
|
}
|
|
6738
|
-
function
|
|
6739
|
-
const n =
|
|
6760
|
+
function Pi({ config: t }) {
|
|
6761
|
+
const n = X.useContext(ye), { wdStatus: o, msStatus: i, srv1Status: r, srv2Status: a, srv3Status: s, pdbStatus: l, sdbStatus: u, dbSync: c } = t, p = n?.isSelected && n?.isExpandedPos;
|
|
6740
6762
|
return n?.isSelected ? /* @__PURE__ */ d("div", { style: { pointerEvents: "none" }, children: [
|
|
6741
6763
|
/* @__PURE__ */ e(
|
|
6742
6764
|
W,
|
|
@@ -6860,15 +6882,15 @@ function Ri({ config: t }) {
|
|
|
6860
6882
|
)
|
|
6861
6883
|
] }) : null;
|
|
6862
6884
|
}
|
|
6863
|
-
function
|
|
6885
|
+
function qi({ config: t, ...n }) {
|
|
6864
6886
|
return /* @__PURE__ */ e(
|
|
6865
|
-
|
|
6887
|
+
vt,
|
|
6866
6888
|
{
|
|
6867
6889
|
name: t.name,
|
|
6868
6890
|
status: lt(t),
|
|
6869
|
-
connections:
|
|
6891
|
+
connections: Ei,
|
|
6870
6892
|
...n,
|
|
6871
|
-
children: /* @__PURE__ */ e(
|
|
6893
|
+
children: /* @__PURE__ */ e(Ci, { config: t })
|
|
6872
6894
|
}
|
|
6873
6895
|
);
|
|
6874
6896
|
}
|
|
@@ -6883,7 +6905,7 @@ function st(t) {
|
|
|
6883
6905
|
];
|
|
6884
6906
|
return n.includes("critical") ? "critical" : n.includes("warning") ? "warning" : n.includes("offline") ? "offline" : "online";
|
|
6885
6907
|
}
|
|
6886
|
-
function
|
|
6908
|
+
function Qi(t) {
|
|
6887
6909
|
const n = st(t), o = n === "critical" || n === "offline", i = n === "warning";
|
|
6888
6910
|
return [
|
|
6889
6911
|
{
|
|
@@ -6905,7 +6927,7 @@ function ji(t) {
|
|
|
6905
6927
|
}
|
|
6906
6928
|
];
|
|
6907
6929
|
}
|
|
6908
|
-
function
|
|
6930
|
+
function Ki(t) {
|
|
6909
6931
|
const n = st(t), o = n === "critical" || n === "offline", i = n === "warning";
|
|
6910
6932
|
return [
|
|
6911
6933
|
...t.dbSync ? [] : [{ level: "warning", message: "DB Replication Lag Detected" }],
|
|
@@ -6914,7 +6936,7 @@ function Xi(t) {
|
|
|
6914
6936
|
...!o && !i && t.dbSync ? [{ level: "info", message: "All Systems Nominal" }] : []
|
|
6915
6937
|
];
|
|
6916
6938
|
}
|
|
6917
|
-
const
|
|
6939
|
+
const Ai = [
|
|
6918
6940
|
{ from: [330, 120], to: [330, 260], visibleAtPhase: 3 },
|
|
6919
6941
|
{ from: [330, 260], to: [165, 390], visibleAtPhase: 4 },
|
|
6920
6942
|
{ from: [330, 260], to: [330, 390], visibleAtPhase: 4 },
|
|
@@ -6923,9 +6945,9 @@ const Ci = [
|
|
|
6923
6945
|
{ from: [330, 390], to: [200, 520], visibleAtPhase: 5, color: "#ff8c00" },
|
|
6924
6946
|
{ from: [495, 390], to: [200, 520], visibleAtPhase: 5, color: "#ff8c00" }
|
|
6925
6947
|
];
|
|
6926
|
-
function
|
|
6927
|
-
const n =
|
|
6928
|
-
return /* @__PURE__ */ d(
|
|
6948
|
+
function Ti({ config: t }) {
|
|
6949
|
+
const n = X.useContext(ye), o = n?.rotateY ?? 20, i = n?.autoRotateComponents ?? !0, { dispStatus: r, srv1Status: a, srv2Status: s, srv3Status: l, pdbStatus: u, sdbStatus: c, dbSync: p } = t;
|
|
6950
|
+
return /* @__PURE__ */ d(Ie, { children: [
|
|
6929
6951
|
/* @__PURE__ */ e(
|
|
6930
6952
|
A,
|
|
6931
6953
|
{
|
|
@@ -6954,8 +6976,8 @@ function Ei({ config: t }) {
|
|
|
6954
6976
|
name: "DISP-01",
|
|
6955
6977
|
status: r,
|
|
6956
6978
|
context: { traffic: 78 },
|
|
6957
|
-
subComponents:
|
|
6958
|
-
graphSeries:
|
|
6979
|
+
subComponents: Pt(r),
|
|
6980
|
+
graphSeries: At({ traffic: 78 })
|
|
6959
6981
|
},
|
|
6960
6982
|
children: /* @__PURE__ */ e(
|
|
6961
6983
|
rt,
|
|
@@ -6987,11 +7009,11 @@ function Ei({ config: t }) {
|
|
|
6987
7009
|
name: "APP-01",
|
|
6988
7010
|
status: a,
|
|
6989
7011
|
context: { cpuLoad: 67, memLoad: 72 },
|
|
6990
|
-
subComponents:
|
|
6991
|
-
graphSeries:
|
|
7012
|
+
subComponents: Ae(a, "APP-01", { cpuLoad: 67, memLoad: 72 }),
|
|
7013
|
+
graphSeries: Te({ cpuLoad: 67, memLoad: 72 })
|
|
6992
7014
|
},
|
|
6993
7015
|
children: /* @__PURE__ */ e(
|
|
6994
|
-
|
|
7016
|
+
ge,
|
|
6995
7017
|
{
|
|
6996
7018
|
rotateY: o,
|
|
6997
7019
|
autoRotate: i,
|
|
@@ -7020,11 +7042,11 @@ function Ei({ config: t }) {
|
|
|
7020
7042
|
name: "APP-02",
|
|
7021
7043
|
status: s,
|
|
7022
7044
|
context: { cpuLoad: 89, memLoad: 91 },
|
|
7023
|
-
subComponents:
|
|
7024
|
-
graphSeries:
|
|
7045
|
+
subComponents: Ae(s, "APP-02", { cpuLoad: 89, memLoad: 91 }),
|
|
7046
|
+
graphSeries: Te({ cpuLoad: 89, memLoad: 91 })
|
|
7025
7047
|
},
|
|
7026
7048
|
children: /* @__PURE__ */ e(
|
|
7027
|
-
|
|
7049
|
+
ge,
|
|
7028
7050
|
{
|
|
7029
7051
|
rotateY: o,
|
|
7030
7052
|
autoRotate: i,
|
|
@@ -7053,11 +7075,11 @@ function Ei({ config: t }) {
|
|
|
7053
7075
|
name: "APP-03",
|
|
7054
7076
|
status: l,
|
|
7055
7077
|
context: { cpuLoad: 45, memLoad: 63 },
|
|
7056
|
-
subComponents:
|
|
7057
|
-
graphSeries:
|
|
7078
|
+
subComponents: Ae(l, "APP-03", { cpuLoad: 45, memLoad: 63 }),
|
|
7079
|
+
graphSeries: Te({ cpuLoad: 45, memLoad: 63 })
|
|
7058
7080
|
},
|
|
7059
7081
|
children: /* @__PURE__ */ e(
|
|
7060
|
-
|
|
7082
|
+
ge,
|
|
7061
7083
|
{
|
|
7062
7084
|
rotateY: o,
|
|
7063
7085
|
autoRotate: i,
|
|
@@ -7146,14 +7168,14 @@ function Ei({ config: t }) {
|
|
|
7146
7168
|
visibleAtPhase: 6,
|
|
7147
7169
|
fixedScale: 1,
|
|
7148
7170
|
bare: !0,
|
|
7149
|
-
children: /* @__PURE__ */ e(
|
|
7171
|
+
children: /* @__PURE__ */ e($t, { synced: p, latencyMs: p ? 8 : 342 })
|
|
7150
7172
|
}
|
|
7151
7173
|
),
|
|
7152
|
-
/* @__PURE__ */ e(
|
|
7174
|
+
/* @__PURE__ */ e(Ii, { config: t })
|
|
7153
7175
|
] });
|
|
7154
7176
|
}
|
|
7155
|
-
function
|
|
7156
|
-
const n =
|
|
7177
|
+
function Ii({ config: t }) {
|
|
7178
|
+
const n = X.useContext(ye), { dispStatus: o, srv1Status: i, srv2Status: r, srv3Status: a, pdbStatus: s, sdbStatus: l, dbSync: u } = t, c = n?.isSelected && n?.isExpandedPos;
|
|
7157
7179
|
return n?.isSelected ? /* @__PURE__ */ d("div", { style: { pointerEvents: "none" }, children: [
|
|
7158
7180
|
/* @__PURE__ */ e(
|
|
7159
7181
|
W,
|
|
@@ -7262,80 +7284,80 @@ function Pi({ config: t }) {
|
|
|
7262
7284
|
)
|
|
7263
7285
|
] }) : null;
|
|
7264
7286
|
}
|
|
7265
|
-
function
|
|
7287
|
+
function Gi({ config: t, ...n }) {
|
|
7266
7288
|
return /* @__PURE__ */ e(
|
|
7267
|
-
|
|
7289
|
+
vt,
|
|
7268
7290
|
{
|
|
7269
7291
|
name: t.name,
|
|
7270
7292
|
status: st(t),
|
|
7271
|
-
connections:
|
|
7293
|
+
connections: Ai,
|
|
7272
7294
|
...n,
|
|
7273
|
-
children: /* @__PURE__ */ e(
|
|
7295
|
+
children: /* @__PURE__ */ e(Ti, { config: t })
|
|
7274
7296
|
}
|
|
7275
7297
|
);
|
|
7276
7298
|
}
|
|
7277
7299
|
export {
|
|
7278
|
-
|
|
7300
|
+
_i as AIOPsDashboard,
|
|
7279
7301
|
ze as CPU3D,
|
|
7280
|
-
|
|
7302
|
+
Yt as Carousel,
|
|
7281
7303
|
tt as CarouselContext,
|
|
7282
7304
|
it as CarouselItemContext,
|
|
7283
|
-
|
|
7284
|
-
|
|
7285
|
-
|
|
7305
|
+
Ft as ComponentDialog,
|
|
7306
|
+
Yi as ComponentDrillView,
|
|
7307
|
+
$i as DataProvider,
|
|
7286
7308
|
Ne as Database3D,
|
|
7287
|
-
|
|
7288
|
-
|
|
7289
|
-
|
|
7290
|
-
|
|
7291
|
-
|
|
7292
|
-
|
|
7309
|
+
Bi as DatabaseNode,
|
|
7310
|
+
Pe as DriveBay3D,
|
|
7311
|
+
Ai as EXCHANGE_CONNECTIONS,
|
|
7312
|
+
Gi as ExchangeService,
|
|
7313
|
+
Ni as HOLO_BLUE,
|
|
7314
|
+
Di as HOLO_CYAN,
|
|
7293
7315
|
Je as HOLO_GLASS,
|
|
7294
|
-
|
|
7295
|
-
|
|
7296
|
-
|
|
7316
|
+
Le as HOLO_SURFACE,
|
|
7317
|
+
fi as HistoricalGraphPanel,
|
|
7318
|
+
jt as HoloBase,
|
|
7297
7319
|
ot as Human3D,
|
|
7298
|
-
|
|
7320
|
+
Fi as HumanNode,
|
|
7299
7321
|
Be as Memory3D,
|
|
7300
|
-
|
|
7301
|
-
|
|
7302
|
-
|
|
7322
|
+
kt as MessageServer3D,
|
|
7323
|
+
Hi as MessageServerNode,
|
|
7324
|
+
Et as NetworkBlock3D,
|
|
7303
7325
|
W as NodeCallout,
|
|
7304
7326
|
Me as Platter3D,
|
|
7305
|
-
|
|
7306
|
-
|
|
7307
|
-
|
|
7308
|
-
|
|
7309
|
-
|
|
7310
|
-
|
|
7311
|
-
|
|
7312
|
-
|
|
7313
|
-
|
|
7327
|
+
F as Port3D,
|
|
7328
|
+
qi as SAPService,
|
|
7329
|
+
Ei as SAP_CONNECTIONS,
|
|
7330
|
+
E as STATUS_CFG,
|
|
7331
|
+
ge as Server3D,
|
|
7332
|
+
zi as ServerNode,
|
|
7333
|
+
vt as Service,
|
|
7334
|
+
ye as ServiceContext,
|
|
7335
|
+
zt as ServiceDialog,
|
|
7314
7336
|
A as ServiceNode,
|
|
7315
|
-
|
|
7316
|
-
|
|
7337
|
+
Vt as SvgConnection,
|
|
7338
|
+
$t as SyncBridge,
|
|
7317
7339
|
M as ThreadPool3D,
|
|
7318
7340
|
rt as WebDispatcher3D,
|
|
7319
|
-
|
|
7320
|
-
|
|
7321
|
-
|
|
7341
|
+
Ui as WebDispatcherNode,
|
|
7342
|
+
Ki as computeExchangeDialogAlerts,
|
|
7343
|
+
Qi as computeExchangeDialogMetrics,
|
|
7322
7344
|
st as computeExchangeServiceStatus,
|
|
7323
|
-
|
|
7324
|
-
|
|
7345
|
+
Xi as computeSAPDialogAlerts,
|
|
7346
|
+
ji as computeSAPDialogMetrics,
|
|
7325
7347
|
lt as computeSAPServiceStatus,
|
|
7326
|
-
|
|
7348
|
+
Si as defaultDataTransform,
|
|
7327
7349
|
Ue as getDatabaseGraphSeries,
|
|
7328
7350
|
Fe as getDatabaseSubComponents,
|
|
7329
|
-
|
|
7330
|
-
|
|
7331
|
-
|
|
7332
|
-
|
|
7333
|
-
|
|
7334
|
-
|
|
7351
|
+
At as getDispatcherGraphSeries,
|
|
7352
|
+
Pt as getDispatcherSubComponents,
|
|
7353
|
+
Ri as getMessageServerGraphSeries,
|
|
7354
|
+
ki as getMessageServerSubComponents,
|
|
7355
|
+
Te as getServerGraphSeries,
|
|
7356
|
+
Ae as getServerSubComponents,
|
|
7335
7357
|
et as makeFaceStyles,
|
|
7336
|
-
|
|
7337
|
-
|
|
7338
|
-
|
|
7339
|
-
|
|
7340
|
-
|
|
7358
|
+
xi as useAIOpsData,
|
|
7359
|
+
vi as useAIOpsDataOptional,
|
|
7360
|
+
Wi as useCarouselContext,
|
|
7361
|
+
Mi as useCarouselItemContext,
|
|
7362
|
+
Vi as useQueryResult
|
|
7341
7363
|
};
|