react-aiops 0.1.13 → 0.1.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/ServiceNode.d.ts.map +1 -1
- package/dist/index.js +137 -137
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ServiceNode.d.ts","sourceRoot":"","sources":["../../src/components/ServiceNode.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AAEH,OAAO,KAA0C,MAAM,OAAO,CAAC;AAG/D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAGlD,MAAM,WAAW,gBAAgB;IAC7B,8EAA8E;IAC9E,EAAE,EAAE,MAAM,CAAC;IACX,6EAA6E;IAC7E,EAAE,EAAE,MAAM,CAAC;IACX;;;OAGG;IACH,aAAa,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACxC,8EAA8E;IAC9E,MAAM,EAAE,MAAM,CAAC;IACf,wCAAwC;IACxC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAI1B,8DAA8D;IAC9D,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,oDAAoD;IACpD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,0DAA0D;IAC1D,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,iGAAiG;IACjG,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;;;;OAOG;IACH,aAAa,CAAC,EAAE,IAAI,CAAC,iBAAiB,EAAE,IAAI,GAAG,IAAI,CAAC,GAAG;QACnD,EAAE,CAAC,EAAE,MAAM,CAAC;QACZ,EAAE,CAAC,EAAE,MAAM,CAAC;KACf,CAAC;IAIF;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IAEf;;;;;;;;;;;;;;;OAeG;IACH,KAAK,CAAC,EAAE;QACJ,0DAA0D;QAC1D,GAAG,EAAE,MAAM,CAAC;QACZ,mFAAmF;QACnF,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,iFAAiF;QACjF,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,0DAA0D;QAC1D,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,KAAK,GAAG,QAAQ,CAAC;QAC5C,iEAAiE;QACjE,WAAW,CAAC,EAAE,MAAM,CAAC;KACxB,CAAC;CACL;AAED;;;;;;GAMG;AACH,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,EAChC,EAAE,EACF,EAAE,EACF,aAAa,EACb,MAAM,EACN,QAAQ,EACR,KAAiB,EACjB,KAAK,EACL,QAAQ,EACR,KAAY,EACZ,aAAa,EACb,cAAkB,EAClB,UAAU,EACV,IAAY,EACZ,KAAK,GACR,EAAE,gBAAgB,
|
|
1
|
+
{"version":3,"file":"ServiceNode.d.ts","sourceRoot":"","sources":["../../src/components/ServiceNode.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AAEH,OAAO,KAA0C,MAAM,OAAO,CAAC;AAG/D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAGlD,MAAM,WAAW,gBAAgB;IAC7B,8EAA8E;IAC9E,EAAE,EAAE,MAAM,CAAC;IACX,6EAA6E;IAC7E,EAAE,EAAE,MAAM,CAAC;IACX;;;OAGG;IACH,aAAa,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACxC,8EAA8E;IAC9E,MAAM,EAAE,MAAM,CAAC;IACf,wCAAwC;IACxC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAI1B,8DAA8D;IAC9D,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,oDAAoD;IACpD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,0DAA0D;IAC1D,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,iGAAiG;IACjG,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;;;;OAOG;IACH,aAAa,CAAC,EAAE,IAAI,CAAC,iBAAiB,EAAE,IAAI,GAAG,IAAI,CAAC,GAAG;QACnD,EAAE,CAAC,EAAE,MAAM,CAAC;QACZ,EAAE,CAAC,EAAE,MAAM,CAAC;KACf,CAAC;IAIF;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IAEf;;;;;;;;;;;;;;;OAeG;IACH,KAAK,CAAC,EAAE;QACJ,0DAA0D;QAC1D,GAAG,EAAE,MAAM,CAAC;QACZ,mFAAmF;QACnF,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,iFAAiF;QACjF,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,0DAA0D;QAC1D,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,KAAK,GAAG,QAAQ,CAAC;QAC5C,iEAAiE;QACjE,WAAW,CAAC,EAAE,MAAM,CAAC;KACxB,CAAC;CACL;AAED;;;;;;GAMG;AACH,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,EAChC,EAAE,EACF,EAAE,EACF,aAAa,EACb,MAAM,EACN,QAAQ,EACR,KAAiB,EACjB,KAAK,EACL,QAAQ,EACR,KAAY,EACZ,aAAa,EACb,cAAkB,EAClB,UAAU,EACV,IAAY,EACZ,KAAK,GACR,EAAE,gBAAgB,2CAmIlB"}
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as c, jsx as e, Fragment as Me } from "react/jsx-runtime";
|
|
2
|
-
import q, { createContext as tt, useContext as
|
|
2
|
+
import q, { createContext as tt, useContext as ye, useState as R, useEffect as Re, useMemo as Tt, useRef as ie, useCallback as Ge } from "react";
|
|
3
3
|
const Ht = {
|
|
4
4
|
info: { color: "#00ff88", bg: "rgba(0, 255, 136, 0.1)", border: "#00ff88", icon: "✅" },
|
|
5
5
|
warning: { color: "#ff8c00", bg: "rgba(255, 140, 0, 0.1)", border: "#ff8c00", icon: "⚠️" },
|
|
@@ -896,10 +896,10 @@ function jt({ type: t, color: n }) {
|
|
|
896
896
|
}
|
|
897
897
|
const ut = tt(null), bt = tt({ index: 0 });
|
|
898
898
|
function Ni() {
|
|
899
|
-
return
|
|
899
|
+
return ye(ut);
|
|
900
900
|
}
|
|
901
901
|
function Wi() {
|
|
902
|
-
return
|
|
902
|
+
return ye(bt);
|
|
903
903
|
}
|
|
904
904
|
function Xt({
|
|
905
905
|
children: t,
|
|
@@ -928,7 +928,7 @@ function Xt({
|
|
|
928
928
|
selectedSystemAlerts: P
|
|
929
929
|
}) {
|
|
930
930
|
const [O, I] = R(0);
|
|
931
|
-
|
|
931
|
+
Re(() => {
|
|
932
932
|
let N;
|
|
933
933
|
if ((o === "compact" || o === "collapsing") && f) {
|
|
934
934
|
const U = () => {
|
|
@@ -971,7 +971,7 @@ function Xt({
|
|
|
971
971
|
y,
|
|
972
972
|
u
|
|
973
973
|
]
|
|
974
|
-
),
|
|
974
|
+
), me = z.map((N, U) => /* @__PURE__ */ e(bt.Provider, { value: { index: U }, children: N }, U)), xe = o === "expanded" || o === "expanding" && i >= 4;
|
|
975
975
|
return /* @__PURE__ */ c(ut.Provider, { value: Z, children: [
|
|
976
976
|
/* @__PURE__ */ c("div", { style: { position: "relative", width: u, height: b, margin: "0 auto", flexShrink: 0 }, children: [
|
|
977
977
|
n && (o === "compact" || o === "collapsing") && /* @__PURE__ */ e(
|
|
@@ -994,7 +994,7 @@ function Xt({
|
|
|
994
994
|
}
|
|
995
995
|
}
|
|
996
996
|
),
|
|
997
|
-
|
|
997
|
+
me
|
|
998
998
|
] }),
|
|
999
999
|
r && /* @__PURE__ */ e("div", { onClick: (N) => N.stopPropagation(), children: /* @__PURE__ */ e(
|
|
1000
1000
|
Ut,
|
|
@@ -1002,7 +1002,7 @@ function Xt({
|
|
|
1002
1002
|
name: r,
|
|
1003
1003
|
status: x,
|
|
1004
1004
|
dbSync: C,
|
|
1005
|
-
visible:
|
|
1005
|
+
visible: xe && !a,
|
|
1006
1006
|
metrics: k,
|
|
1007
1007
|
alerts: P
|
|
1008
1008
|
}
|
|
@@ -1302,7 +1302,7 @@ function Gt({
|
|
|
1302
1302
|
}, children: r })
|
|
1303
1303
|
] });
|
|
1304
1304
|
}
|
|
1305
|
-
const
|
|
1305
|
+
const Ce = tt(null), Kt = "cubic-bezier(0.34, 1.56, 0.64, 1)", $t = 330, kt = 340, Zt = 660;
|
|
1306
1306
|
function Lt({
|
|
1307
1307
|
name: t,
|
|
1308
1308
|
status: n = "online",
|
|
@@ -1325,25 +1325,25 @@ function Lt({
|
|
|
1325
1325
|
_onComponentUpdate: S,
|
|
1326
1326
|
_containerWidth: y
|
|
1327
1327
|
}) {
|
|
1328
|
-
const x =
|
|
1328
|
+
const x = ye(ut), C = ye(bt), k = a ?? C.index, P = s ?? x?.totalSystems ?? 1, O = l ?? x?.carouselRotation ?? 0, I = h ?? x?.viewState ?? "compact", z = d ?? x?.animPhase ?? 0, K = p ?? x?.selectedSystem ?? null, Z = f ?? x?.selectedComponent ?? null, me = g ?? x?.rotateY ?? 20, xe = u ?? x?.autoRotateComponents ?? !0, N = b ?? x?.componentScale ?? 0.35, U = m ?? x?.drillZoom ?? 3.3, ne = w ?? x?.onSelectSystem, Be = v ?? x?.onComponentClick, oe = S ?? x?.onComponentUpdate, Fe = y ?? x?.containerWidth ?? 950, J = K === t, B = J && (I === "expanded" || I === "expanding" && z >= 1), _ = !B, se = (Fe - Zt) / 2, de = $t + se, ce = k / P * Math.PI * 2 + O, it = 420, nt = 160, ve = de + Math.cos(ce) * it, pe = 450 + Math.sin(ce) * nt, ot = Math.round(pe), T = !J && (I === "expanding" || I === "expanded"), j = T ? 0 : 1, re = _ ? 0.3 + (Math.sin(ce) + 1) * 0.1 : 1, ee = _ ? re : N, ae = I === "compact" || I === "collapsing" ? "none" : "all 1s cubic-bezier(0.34, 1.56, 0.64, 1)", we = J && Z, le = we ? U : 1, fe = Z?.ex ?? 330, F = Z?.ey ?? 300, { size: rt = 90, color: at = "#00e5ff", widthRatio: Ye = 3 } = i ?? {}, Se = {
|
|
1329
1329
|
name: t,
|
|
1330
1330
|
isSelected: J,
|
|
1331
1331
|
isExpandedPos: B,
|
|
1332
1332
|
isCompact: _,
|
|
1333
1333
|
animPhase: z,
|
|
1334
|
-
compactCx:
|
|
1335
|
-
compactCy:
|
|
1334
|
+
compactCx: ve,
|
|
1335
|
+
compactCy: pe,
|
|
1336
1336
|
groupScale: re,
|
|
1337
1337
|
effectiveScale: ee,
|
|
1338
1338
|
transitionValue: ae,
|
|
1339
|
-
rotateY:
|
|
1340
|
-
autoRotateComponents:
|
|
1339
|
+
rotateY: me,
|
|
1340
|
+
autoRotateComponents: xe,
|
|
1341
1341
|
onComponentClick: Be,
|
|
1342
1342
|
onComponentUpdate: oe,
|
|
1343
1343
|
selectedComponentName: Z?.name ?? null,
|
|
1344
1344
|
expandedOffsetX: se
|
|
1345
1345
|
};
|
|
1346
|
-
return /* @__PURE__ */ e(
|
|
1346
|
+
return /* @__PURE__ */ e(Ce.Provider, { value: Se, children: /* @__PURE__ */ c(
|
|
1347
1347
|
"div",
|
|
1348
1348
|
{
|
|
1349
1349
|
style: {
|
|
@@ -1355,10 +1355,10 @@ function Lt({
|
|
|
1355
1355
|
pointerEvents: "none",
|
|
1356
1356
|
opacity: j,
|
|
1357
1357
|
transition: `opacity 0.8s ease, filter 0.5s ease, transform 0.6s ${Kt}`,
|
|
1358
|
-
filter: _ && Math.sin(
|
|
1358
|
+
filter: _ && Math.sin(ce) < -0.5 ? "brightness(0.5) blur(2px)" : "none",
|
|
1359
1359
|
zIndex: J ? 500 : T ? 0 : ot,
|
|
1360
1360
|
transformOrigin: `${de}px ${kt}px`,
|
|
1361
|
-
transform:
|
|
1361
|
+
transform: we ? `translate(${-(fe - $t) * le}px, ${-(F - kt) * le}px) scale(${le})` : "none"
|
|
1362
1362
|
},
|
|
1363
1363
|
children: [
|
|
1364
1364
|
_ && !T && /* @__PURE__ */ e(
|
|
@@ -1366,8 +1366,8 @@ function Lt({
|
|
|
1366
1366
|
{
|
|
1367
1367
|
style: {
|
|
1368
1368
|
position: "absolute",
|
|
1369
|
-
left:
|
|
1370
|
-
top:
|
|
1369
|
+
left: ve,
|
|
1370
|
+
top: pe,
|
|
1371
1371
|
width: 160,
|
|
1372
1372
|
height: 180,
|
|
1373
1373
|
transform: "translate(-50%, -80%)",
|
|
@@ -1385,8 +1385,8 @@ function Lt({
|
|
|
1385
1385
|
{
|
|
1386
1386
|
style: {
|
|
1387
1387
|
position: "absolute",
|
|
1388
|
-
left:
|
|
1389
|
-
top:
|
|
1388
|
+
left: ve,
|
|
1389
|
+
top: pe - 200,
|
|
1390
1390
|
transform: `translate(-50%, -50%) scale(${re})`,
|
|
1391
1391
|
zIndex: 110,
|
|
1392
1392
|
pointerEvents: "none",
|
|
@@ -1433,8 +1433,8 @@ function Lt({
|
|
|
1433
1433
|
{
|
|
1434
1434
|
style: {
|
|
1435
1435
|
position: "absolute",
|
|
1436
|
-
left: B ? de :
|
|
1437
|
-
top: B ? 48 :
|
|
1436
|
+
left: B ? de : ve,
|
|
1437
|
+
top: B ? 48 : pe - 180,
|
|
1438
1438
|
transform: `translate(-50%, -50%) scale(${B ? 1.2 : re * 1.5})`,
|
|
1439
1439
|
opacity: 1,
|
|
1440
1440
|
pointerEvents: "none",
|
|
@@ -1486,8 +1486,8 @@ function Lt({
|
|
|
1486
1486
|
{
|
|
1487
1487
|
style: {
|
|
1488
1488
|
position: "absolute",
|
|
1489
|
-
left: B ? de :
|
|
1490
|
-
top: B ? 570 :
|
|
1489
|
+
left: B ? de : ve,
|
|
1490
|
+
top: B ? 570 : pe + 70,
|
|
1491
1491
|
transform: `translate(-50%, -50%) scaleX(${B ? 1 : 0.4}) scaleY(${B ? 1 : 0.6}) scale(${B ? 1 : re})`,
|
|
1492
1492
|
transition: ae,
|
|
1493
1493
|
zIndex: 1
|
|
@@ -1513,7 +1513,7 @@ function W({
|
|
|
1513
1513
|
internalRef: d,
|
|
1514
1514
|
forceShow: p = !1
|
|
1515
1515
|
}) {
|
|
1516
|
-
const f =
|
|
1516
|
+
const f = ye(Ce), g = f?.expandedOffsetX ?? 0;
|
|
1517
1517
|
if (o === "online" && !p) return null;
|
|
1518
1518
|
const u = l && !!f?.isExpandedPos, b = o === "online" ? $.warning.color : $[o]?.color ?? $.warning.color, m = Math.abs(a) > Math.abs(s), w = t + g + (m ? Math.sign(a) * 45 : 0), v = n + (m ? 0 : Math.sign(s) * 40), S = t + g + a, y = n + s;
|
|
1519
1519
|
let x = "";
|
|
@@ -1664,7 +1664,7 @@ function A({
|
|
|
1664
1664
|
bare: g = !1,
|
|
1665
1665
|
alert: u
|
|
1666
1666
|
}) {
|
|
1667
|
-
const b =
|
|
1667
|
+
const b = ye(Ce);
|
|
1668
1668
|
if (!b)
|
|
1669
1669
|
throw new Error("ServiceNode must be used inside a <Service> component.");
|
|
1670
1670
|
const {
|
|
@@ -1679,7 +1679,7 @@ function A({
|
|
|
1679
1679
|
onComponentUpdate: P,
|
|
1680
1680
|
selectedComponentName: O,
|
|
1681
1681
|
expandedOffsetX: I
|
|
1682
|
-
} = b, K = p === 0 || b.isSelected && w >= p ? 1 : 0, Z = v + o.x,
|
|
1682
|
+
} = b, K = p === 0 || b.isSelected && w >= p ? 1 : 0, Z = v + o.x, me = S + o.y, xe = m ? t + I : Z, N = m ? n : me, U = f !== void 0 ? f : b.isCompact ? y : x, ne = !!d && !!O && d.name === O, Be = d?.status ? $[d.status]?.color ?? a : a, oe = d?.status === "offline" ? "#4a6a8a" : Be, Fe = d && m && k ? () => k({
|
|
1683
1683
|
type: d.type,
|
|
1684
1684
|
name: d.name,
|
|
1685
1685
|
status: d.status,
|
|
@@ -1690,7 +1690,7 @@ function A({
|
|
|
1690
1690
|
subComponents: d.subComponents,
|
|
1691
1691
|
graphSeries: d.graphSeries
|
|
1692
1692
|
}) : void 0, J = JSON.stringify(d?.context ?? {}), B = JSON.stringify(d?.dialogMetrics ?? []);
|
|
1693
|
-
|
|
1693
|
+
Re(() => {
|
|
1694
1694
|
!ne || !d || !P || P({
|
|
1695
1695
|
type: d.type,
|
|
1696
1696
|
name: d.name,
|
|
@@ -1703,16 +1703,14 @@ function A({
|
|
|
1703
1703
|
graphSeries: d.graphSeries
|
|
1704
1704
|
});
|
|
1705
1705
|
}, [ne, d?.status, J, B]);
|
|
1706
|
-
const _ = d?.status === "warning" || d?.status === "critical" || !!u;
|
|
1707
|
-
u && d?.status === "online" && $.warning.color;
|
|
1708
|
-
const se = d?.status ?? "online", de = d?.name ?? s ?? "";
|
|
1706
|
+
const _ = d?.status === "warning" || d?.status === "critical" || !!u, se = u && d?.status === "online" ? $.warning.color : oe, de = d?.status ?? "online", ce = d?.name ?? s ?? "";
|
|
1709
1707
|
return /* @__PURE__ */ c(Me, { children: [
|
|
1710
1708
|
/* @__PURE__ */ e(
|
|
1711
1709
|
"div",
|
|
1712
1710
|
{
|
|
1713
1711
|
style: {
|
|
1714
1712
|
position: "absolute",
|
|
1715
|
-
left:
|
|
1713
|
+
left: xe,
|
|
1716
1714
|
top: N,
|
|
1717
1715
|
transform: `translate(-50%, -50%) scale(${U})`,
|
|
1718
1716
|
opacity: K,
|
|
@@ -1724,6 +1722,7 @@ function A({
|
|
|
1724
1722
|
Jt,
|
|
1725
1723
|
{
|
|
1726
1724
|
statusColor: oe,
|
|
1725
|
+
alertColor: se,
|
|
1727
1726
|
label: s,
|
|
1728
1727
|
subLabel: l,
|
|
1729
1728
|
delay: h,
|
|
@@ -1742,8 +1741,8 @@ function A({
|
|
|
1742
1741
|
{
|
|
1743
1742
|
ex: t,
|
|
1744
1743
|
ey: n,
|
|
1745
|
-
status:
|
|
1746
|
-
title:
|
|
1744
|
+
status: de,
|
|
1745
|
+
title: ce,
|
|
1747
1746
|
msg: u.msg,
|
|
1748
1747
|
offsetX: u.offsetX ?? 110,
|
|
1749
1748
|
offsetY: u.offsetY ?? -30,
|
|
@@ -1758,44 +1757,45 @@ function A({
|
|
|
1758
1757
|
function Jt({
|
|
1759
1758
|
children: t,
|
|
1760
1759
|
statusColor: n,
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1760
|
+
alertColor: o,
|
|
1761
|
+
label: i,
|
|
1762
|
+
subLabel: r,
|
|
1763
|
+
delay: a = "0s",
|
|
1764
|
+
showLabels: s = !0,
|
|
1765
|
+
isCompact: l = !1,
|
|
1766
|
+
onClick: h,
|
|
1767
|
+
isSelected: d = !1,
|
|
1768
|
+
isAlerting: p = !1
|
|
1769
1769
|
}) {
|
|
1770
|
-
const [
|
|
1770
|
+
const f = o ?? n, [g, u] = R(!1), b = d ? `brightness(1.5) drop-shadow(0 0 24px ${n}cc) drop-shadow(0 0 8px ${n}88)` : g && h ? `brightness(1.2) drop-shadow(0 0 12px ${n}77)` : "";
|
|
1771
1771
|
return /* @__PURE__ */ c(
|
|
1772
1772
|
"div",
|
|
1773
1773
|
{
|
|
1774
|
-
className: `float-node${
|
|
1775
|
-
onClick: (
|
|
1776
|
-
|
|
1774
|
+
className: `float-node${h ? " float-node--interactive" : ""}`,
|
|
1775
|
+
onClick: (m) => {
|
|
1776
|
+
h && (m.stopPropagation(), h());
|
|
1777
1777
|
},
|
|
1778
1778
|
style: {
|
|
1779
|
-
cursor:
|
|
1779
|
+
cursor: h ? "pointer" : void 0,
|
|
1780
1780
|
transition: "filter 0.3s ease",
|
|
1781
|
-
filter:
|
|
1781
|
+
filter: b
|
|
1782
1782
|
},
|
|
1783
|
-
onMouseEnter: () =>
|
|
1784
|
-
onMouseLeave: () =>
|
|
1785
|
-
role:
|
|
1786
|
-
title:
|
|
1783
|
+
onMouseEnter: () => u(!0),
|
|
1784
|
+
onMouseLeave: () => u(!1),
|
|
1785
|
+
role: h ? "button" : void 0,
|
|
1786
|
+
title: h ? "Click to inspect internal components" : void 0,
|
|
1787
1787
|
children: [
|
|
1788
|
-
|
|
1788
|
+
p && /* @__PURE__ */ e(
|
|
1789
1789
|
"div",
|
|
1790
1790
|
{
|
|
1791
1791
|
className: "node-alert-glow",
|
|
1792
1792
|
style: {
|
|
1793
|
-
"--pulse-color":
|
|
1794
|
-
boxShadow: `0 0 20px ${
|
|
1793
|
+
"--pulse-color": f,
|
|
1794
|
+
boxShadow: `0 0 20px ${f}, 0 0 40px ${f}66`
|
|
1795
1795
|
}
|
|
1796
1796
|
}
|
|
1797
1797
|
),
|
|
1798
|
-
/* @__PURE__ */ c("div", { className: "float-body", style: { animationDelay:
|
|
1798
|
+
/* @__PURE__ */ c("div", { className: "float-body", style: { animationDelay: a }, children: [
|
|
1799
1799
|
/* @__PURE__ */ e(
|
|
1800
1800
|
"div",
|
|
1801
1801
|
{
|
|
@@ -1806,7 +1806,7 @@ function Jt({
|
|
|
1806
1806
|
}
|
|
1807
1807
|
}
|
|
1808
1808
|
),
|
|
1809
|
-
/* @__PURE__ */ e("div", { style:
|
|
1809
|
+
/* @__PURE__ */ e("div", { style: l ? { background: "#040c1a", borderRadius: 2 } : void 0, children: l && q.isValidElement(t) ? q.cloneElement(t, {
|
|
1810
1810
|
_compact: !0
|
|
1811
1811
|
}) : t })
|
|
1812
1812
|
] }),
|
|
@@ -1814,12 +1814,12 @@ function Jt({
|
|
|
1814
1814
|
"div",
|
|
1815
1815
|
{
|
|
1816
1816
|
style: {
|
|
1817
|
-
opacity:
|
|
1817
|
+
opacity: s ? 1 : 0,
|
|
1818
1818
|
transition: "opacity 0.5s ease"
|
|
1819
1819
|
},
|
|
1820
1820
|
children: [
|
|
1821
|
-
|
|
1822
|
-
|
|
1821
|
+
i && /* @__PURE__ */ e("div", { className: "node-tag", style: { color: n + "cc" }, children: i }),
|
|
1822
|
+
r && /* @__PURE__ */ e("div", { className: "node-subtag", style: { color: n + "77" }, children: r })
|
|
1823
1823
|
]
|
|
1824
1824
|
}
|
|
1825
1825
|
)
|
|
@@ -1862,7 +1862,7 @@ function It({ synced: t, latencyMs: n }) {
|
|
|
1862
1862
|
] })
|
|
1863
1863
|
] });
|
|
1864
1864
|
}
|
|
1865
|
-
const
|
|
1865
|
+
const he = 140, X = 240, ge = 160, Pe = ht(he, X, ge);
|
|
1866
1866
|
function ei({
|
|
1867
1867
|
cfg: t,
|
|
1868
1868
|
name: n,
|
|
@@ -1882,7 +1882,7 @@ function ei({
|
|
|
1882
1882
|
"div",
|
|
1883
1883
|
{
|
|
1884
1884
|
style: {
|
|
1885
|
-
width:
|
|
1885
|
+
width: he,
|
|
1886
1886
|
height: X,
|
|
1887
1887
|
background: a ? ze : ft,
|
|
1888
1888
|
position: "relative",
|
|
@@ -2280,7 +2280,7 @@ function ti() {
|
|
|
2280
2280
|
"div",
|
|
2281
2281
|
{
|
|
2282
2282
|
style: {
|
|
2283
|
-
width:
|
|
2283
|
+
width: he,
|
|
2284
2284
|
height: X,
|
|
2285
2285
|
background: "linear-gradient(180deg, #040c1a 0%, #030810 100%)",
|
|
2286
2286
|
position: "relative",
|
|
@@ -2399,7 +2399,7 @@ function Rt({
|
|
|
2399
2399
|
"div",
|
|
2400
2400
|
{
|
|
2401
2401
|
style: {
|
|
2402
|
-
width:
|
|
2402
|
+
width: ge,
|
|
2403
2403
|
height: X,
|
|
2404
2404
|
background: i ? "linear-gradient(90deg, #040c1c 0%, #071428 60%, #040c1c 100%)" : "linear-gradient(90deg, #040c1c 0%, #071428 40%, #040c1c 100%)",
|
|
2405
2405
|
position: "relative",
|
|
@@ -2425,7 +2425,7 @@ function Rt({
|
|
|
2425
2425
|
style: {
|
|
2426
2426
|
position: "absolute",
|
|
2427
2427
|
top: r,
|
|
2428
|
-
left: i ? 10 :
|
|
2428
|
+
left: i ? 10 : ge - 18,
|
|
2429
2429
|
width: 8,
|
|
2430
2430
|
height: 8,
|
|
2431
2431
|
borderRadius: 1,
|
|
@@ -2471,7 +2471,7 @@ function Rt({
|
|
|
2471
2471
|
style: {
|
|
2472
2472
|
position: "absolute",
|
|
2473
2473
|
top: X * 0.18,
|
|
2474
|
-
left: i ? 12 :
|
|
2474
|
+
left: i ? 12 : ge - 78,
|
|
2475
2475
|
fontSize: 7,
|
|
2476
2476
|
color: "#1a3050",
|
|
2477
2477
|
letterSpacing: "0.2em",
|
|
@@ -2490,13 +2490,13 @@ function Rt({
|
|
|
2490
2490
|
);
|
|
2491
2491
|
}
|
|
2492
2492
|
function ii({ cpuLoad: t }) {
|
|
2493
|
-
const n = t / 100, o = n > 0.75 ? "rgba(255,34,85,0.16)" : n > 0.45 ? "rgba(255,140,0,0.12)" : "rgba(0,229,255,0.08)", i = Math.floor((
|
|
2493
|
+
const n = t / 100, o = n > 0.75 ? "rgba(255,34,85,0.16)" : n > 0.45 ? "rgba(255,140,0,0.12)" : "rgba(0,229,255,0.08)", i = Math.floor((ge - 18) / 7);
|
|
2494
2494
|
return /* @__PURE__ */ c(
|
|
2495
2495
|
"div",
|
|
2496
2496
|
{
|
|
2497
2497
|
style: {
|
|
2498
|
-
width:
|
|
2499
|
-
height:
|
|
2498
|
+
width: he,
|
|
2499
|
+
height: ge,
|
|
2500
2500
|
background: "linear-gradient(180deg, #0c1c30 0%, #070f1e 40%, #040c1a 100%)",
|
|
2501
2501
|
position: "relative",
|
|
2502
2502
|
overflow: "hidden"
|
|
@@ -2510,7 +2510,7 @@ function ii({ cpuLoad: t }) {
|
|
|
2510
2510
|
top: 0,
|
|
2511
2511
|
left: 0,
|
|
2512
2512
|
right: 0,
|
|
2513
|
-
height:
|
|
2513
|
+
height: ge * 0.4,
|
|
2514
2514
|
background: `radial-gradient(ellipse at 50% 0%, ${o} 0%, transparent 70%)`
|
|
2515
2515
|
}
|
|
2516
2516
|
}
|
|
@@ -2569,7 +2569,7 @@ function ii({ cpuLoad: t }) {
|
|
|
2569
2569
|
}
|
|
2570
2570
|
);
|
|
2571
2571
|
}
|
|
2572
|
-
function
|
|
2572
|
+
function ke({
|
|
2573
2573
|
rotateX: t = -22,
|
|
2574
2574
|
rotateY: n = 20,
|
|
2575
2575
|
rotateZ: o = 0,
|
|
@@ -2583,7 +2583,7 @@ function $e({
|
|
|
2583
2583
|
_compact: p
|
|
2584
2584
|
}) {
|
|
2585
2585
|
const [f, g] = R(n), u = ie(0), b = ie(0);
|
|
2586
|
-
|
|
2586
|
+
Re(() => {
|
|
2587
2587
|
if (!r) {
|
|
2588
2588
|
g(n);
|
|
2589
2589
|
return;
|
|
@@ -2600,7 +2600,7 @@ function $e({
|
|
|
2600
2600
|
"div",
|
|
2601
2601
|
{
|
|
2602
2602
|
style: {
|
|
2603
|
-
width:
|
|
2603
|
+
width: he * i,
|
|
2604
2604
|
height: X * i,
|
|
2605
2605
|
position: "relative",
|
|
2606
2606
|
display: "flex",
|
|
@@ -2653,7 +2653,7 @@ function $e({
|
|
|
2653
2653
|
{
|
|
2654
2654
|
style: {
|
|
2655
2655
|
position: "absolute",
|
|
2656
|
-
width:
|
|
2656
|
+
width: he * 1.4 * i,
|
|
2657
2657
|
height: X * 0.8 * i,
|
|
2658
2658
|
background: `radial-gradient(ellipse, ${m.glow} 0%, transparent 65%)`,
|
|
2659
2659
|
filter: `blur(${Math.round(45 * i)}px)`,
|
|
@@ -2677,7 +2677,7 @@ function $e({
|
|
|
2677
2677
|
"div",
|
|
2678
2678
|
{
|
|
2679
2679
|
style: {
|
|
2680
|
-
width:
|
|
2680
|
+
width: he,
|
|
2681
2681
|
height: X,
|
|
2682
2682
|
position: "relative",
|
|
2683
2683
|
transformStyle: "preserve-3d",
|
|
@@ -2705,8 +2705,8 @@ function $e({
|
|
|
2705
2705
|
"div",
|
|
2706
2706
|
{
|
|
2707
2707
|
style: {
|
|
2708
|
-
width:
|
|
2709
|
-
height:
|
|
2708
|
+
width: he,
|
|
2709
|
+
height: ge,
|
|
2710
2710
|
background: "linear-gradient(180deg, #030710, #020508)"
|
|
2711
2711
|
}
|
|
2712
2712
|
}
|
|
@@ -2761,11 +2761,11 @@ function Mi({
|
|
|
2761
2761
|
graphSeries: m
|
|
2762
2762
|
},
|
|
2763
2763
|
alert: w,
|
|
2764
|
-
children: /* @__PURE__ */ e(
|
|
2764
|
+
children: /* @__PURE__ */ e(ke, { status: a, cpuLoad: p, memLoad: f, brandLabel: g })
|
|
2765
2765
|
}
|
|
2766
2766
|
);
|
|
2767
2767
|
}
|
|
2768
|
-
const pt = 12,
|
|
2768
|
+
const pt = 12, $e = 55, te = $e * 2, Oe = 52, gt = 10, lt = 3 * Oe + 2 * gt, Ee = 2 * Math.PI * $e / pt, st = Array.from({ length: pt }, (t, n) => n / pt * 360);
|
|
2769
2769
|
function dt(t) {
|
|
2770
2770
|
return Math.cos(t * Math.PI / 180) * 0.42 + 0.58;
|
|
2771
2771
|
}
|
|
@@ -2789,7 +2789,7 @@ function ni({
|
|
|
2789
2789
|
height: Oe,
|
|
2790
2790
|
left: (te - Ee) / 2,
|
|
2791
2791
|
top: t,
|
|
2792
|
-
transform: `rotateY(${s}deg) translateZ(${
|
|
2792
|
+
transform: `rotateY(${s}deg) translateZ(${$e}px)`,
|
|
2793
2793
|
backfaceVisibility: "hidden",
|
|
2794
2794
|
background: d ? a ? "linear-gradient(180deg, rgb(0,28,62), rgb(0,18,44))" : "linear-gradient(180deg, rgba(0,28,62,0.70), rgba(0,18,44,0.76))" : `rgb(${p},${f},${g})`,
|
|
2795
2795
|
borderLeft: `1px solid ${o.color}${u}`,
|
|
@@ -2851,7 +2851,7 @@ function ni({
|
|
|
2851
2851
|
width: te + 4,
|
|
2852
2852
|
height: te + 4,
|
|
2853
2853
|
left: -2,
|
|
2854
|
-
top: t -
|
|
2854
|
+
top: t - $e,
|
|
2855
2855
|
borderRadius: "50%",
|
|
2856
2856
|
transform: "rotateX(90deg)",
|
|
2857
2857
|
backfaceVisibility: "hidden",
|
|
@@ -2912,7 +2912,7 @@ function ni({
|
|
|
2912
2912
|
width: te + 4,
|
|
2913
2913
|
height: te + 4,
|
|
2914
2914
|
left: -2,
|
|
2915
|
-
top: t + Oe -
|
|
2915
|
+
top: t + Oe - $e,
|
|
2916
2916
|
borderRadius: "50%",
|
|
2917
2917
|
transform: "rotateX(-90deg)",
|
|
2918
2918
|
backfaceVisibility: "hidden",
|
|
@@ -2947,7 +2947,7 @@ function ni({
|
|
|
2947
2947
|
height: 6,
|
|
2948
2948
|
left: (te - Ee - 1.5) / 2,
|
|
2949
2949
|
top: t + Oe - 3,
|
|
2950
|
-
transform: `rotateY(${s}deg) translateZ(${
|
|
2950
|
+
transform: `rotateY(${s}deg) translateZ(${$e + 1.5}px)`,
|
|
2951
2951
|
backfaceVisibility: "hidden",
|
|
2952
2952
|
background: o.color,
|
|
2953
2953
|
boxShadow: `0 0 8px ${o.color}, 0 0 18px ${o.color}aa, 0 0 30px ${o.glow}`,
|
|
@@ -2968,7 +2968,7 @@ function ni({
|
|
|
2968
2968
|
height: gt,
|
|
2969
2969
|
left: (te - Ee) / 2,
|
|
2970
2970
|
top: t + Oe,
|
|
2971
|
-
transform: `rotateY(${s}deg) translateZ(${
|
|
2971
|
+
transform: `rotateY(${s}deg) translateZ(${$e}px)`,
|
|
2972
2972
|
backfaceVisibility: "hidden",
|
|
2973
2973
|
background: `rgb(${d},${p},${f})`
|
|
2974
2974
|
}
|
|
@@ -2991,7 +2991,7 @@ function Ue({
|
|
|
2991
2991
|
_compact: l
|
|
2992
2992
|
}) {
|
|
2993
2993
|
const [h, d] = R(n), p = ie(0), f = ie(0);
|
|
2994
|
-
|
|
2994
|
+
Re(() => {
|
|
2995
2995
|
if (!r) {
|
|
2996
2996
|
d(n);
|
|
2997
2997
|
return;
|
|
@@ -3298,7 +3298,7 @@ function Bi({
|
|
|
3298
3298
|
}
|
|
3299
3299
|
);
|
|
3300
3300
|
}
|
|
3301
|
-
const
|
|
3301
|
+
const ue = 190, Q = 72, Le = 120, Ae = ht(ue, Q, Le);
|
|
3302
3302
|
function oi({
|
|
3303
3303
|
cfg: t,
|
|
3304
3304
|
name: n,
|
|
@@ -3311,7 +3311,7 @@ function oi({
|
|
|
3311
3311
|
"div",
|
|
3312
3312
|
{
|
|
3313
3313
|
style: {
|
|
3314
|
-
width:
|
|
3314
|
+
width: ue,
|
|
3315
3315
|
height: Q,
|
|
3316
3316
|
background: r ? ze : ft,
|
|
3317
3317
|
position: "relative",
|
|
@@ -3566,7 +3566,7 @@ function ri() {
|
|
|
3566
3566
|
"div",
|
|
3567
3567
|
{
|
|
3568
3568
|
style: {
|
|
3569
|
-
width:
|
|
3569
|
+
width: ue,
|
|
3570
3570
|
height: Q,
|
|
3571
3571
|
background: "linear-gradient(180deg, #040c1a, #030810)",
|
|
3572
3572
|
position: "relative",
|
|
@@ -3712,7 +3712,7 @@ function ai({ traffic: t }) {
|
|
|
3712
3712
|
"div",
|
|
3713
3713
|
{
|
|
3714
3714
|
style: {
|
|
3715
|
-
width:
|
|
3715
|
+
width: ue,
|
|
3716
3716
|
height: Le,
|
|
3717
3717
|
background: "linear-gradient(180deg, #0c1c30 0%, #07101e 40%, #040c1a 100%)",
|
|
3718
3718
|
position: "relative",
|
|
@@ -3778,7 +3778,7 @@ function mt({
|
|
|
3778
3778
|
_compact: d
|
|
3779
3779
|
}) {
|
|
3780
3780
|
const [p, f] = R(n), g = ie(0), u = ie(0);
|
|
3781
|
-
|
|
3781
|
+
Re(() => {
|
|
3782
3782
|
if (!r) {
|
|
3783
3783
|
f(n);
|
|
3784
3784
|
return;
|
|
@@ -3795,7 +3795,7 @@ function mt({
|
|
|
3795
3795
|
"div",
|
|
3796
3796
|
{
|
|
3797
3797
|
style: {
|
|
3798
|
-
width:
|
|
3798
|
+
width: ue * i,
|
|
3799
3799
|
height: Q * i,
|
|
3800
3800
|
position: "relative",
|
|
3801
3801
|
display: "flex",
|
|
@@ -3856,7 +3856,7 @@ function mt({
|
|
|
3856
3856
|
{
|
|
3857
3857
|
style: {
|
|
3858
3858
|
position: "absolute",
|
|
3859
|
-
width:
|
|
3859
|
+
width: ue * 1.3 * i,
|
|
3860
3860
|
height: Q * 2 * i,
|
|
3861
3861
|
background: `radial-gradient(ellipse, ${b.glow} 0%, transparent 65%)`,
|
|
3862
3862
|
filter: `blur(${Math.round(40 * i)}px)`,
|
|
@@ -3880,7 +3880,7 @@ function mt({
|
|
|
3880
3880
|
"div",
|
|
3881
3881
|
{
|
|
3882
3882
|
style: {
|
|
3883
|
-
width:
|
|
3883
|
+
width: ue,
|
|
3884
3884
|
height: Q,
|
|
3885
3885
|
position: "relative",
|
|
3886
3886
|
transformStyle: "preserve-3d",
|
|
@@ -3902,7 +3902,7 @@ function mt({
|
|
|
3902
3902
|
/* @__PURE__ */ e("div", { style: Ae.left, children: /* @__PURE__ */ e(Ct, { side: "left", color: b.color }) }),
|
|
3903
3903
|
/* @__PURE__ */ e("div", { style: Ae.right, children: /* @__PURE__ */ e(Ct, { side: "right", color: b.color }) }),
|
|
3904
3904
|
/* @__PURE__ */ e("div", { style: Ae.top, children: /* @__PURE__ */ e(ai, { traffic: l }) }),
|
|
3905
|
-
/* @__PURE__ */ e("div", { style: Ae.bottom, children: /* @__PURE__ */ e("div", { style: { width:
|
|
3905
|
+
/* @__PURE__ */ e("div", { style: Ae.bottom, children: /* @__PURE__ */ e("div", { style: { width: ue, height: Le, background: "#020508" } }) })
|
|
3906
3906
|
]
|
|
3907
3907
|
}
|
|
3908
3908
|
)
|
|
@@ -3956,7 +3956,7 @@ function Fi({
|
|
|
3956
3956
|
}
|
|
3957
3957
|
);
|
|
3958
3958
|
}
|
|
3959
|
-
const
|
|
3959
|
+
const be = 190, G = 72, Ie = 120, Te = ht(be, G, Ie), Pt = {
|
|
3960
3960
|
online: { color: "#bb55ff", glow: "rgba(187,85,255,0.50)" },
|
|
3961
3961
|
warning: { color: "#ff8c00", glow: "rgba(255,140,0,0.50)" },
|
|
3962
3962
|
critical: { color: "#ff2255", glow: "rgba(255,34,85,0.50)" },
|
|
@@ -3975,7 +3975,7 @@ function li({
|
|
|
3975
3975
|
"div",
|
|
3976
3976
|
{
|
|
3977
3977
|
style: {
|
|
3978
|
-
width:
|
|
3978
|
+
width: be,
|
|
3979
3979
|
height: G,
|
|
3980
3980
|
background: a ? ze : ft,
|
|
3981
3981
|
position: "relative",
|
|
@@ -4226,7 +4226,7 @@ function si() {
|
|
|
4226
4226
|
"div",
|
|
4227
4227
|
{
|
|
4228
4228
|
style: {
|
|
4229
|
-
width:
|
|
4229
|
+
width: be,
|
|
4230
4230
|
height: G,
|
|
4231
4231
|
background: "linear-gradient(180deg, #040c1a, #030810)",
|
|
4232
4232
|
position: "relative",
|
|
@@ -4372,7 +4372,7 @@ function di({ queueDepth: t, color: n }) {
|
|
|
4372
4372
|
"div",
|
|
4373
4373
|
{
|
|
4374
4374
|
style: {
|
|
4375
|
-
width:
|
|
4375
|
+
width: be,
|
|
4376
4376
|
height: Ie,
|
|
4377
4377
|
background: "linear-gradient(180deg, #0c1c30 0%, #07101e 40%, #040c1a 100%)",
|
|
4378
4378
|
position: "relative",
|
|
@@ -4439,7 +4439,7 @@ function Dt({
|
|
|
4439
4439
|
_compact: p
|
|
4440
4440
|
}) {
|
|
4441
4441
|
const [f, g] = R(n), u = ie(0), b = ie(0);
|
|
4442
|
-
|
|
4442
|
+
Re(() => {
|
|
4443
4443
|
if (!r) {
|
|
4444
4444
|
g(n);
|
|
4445
4445
|
return;
|
|
@@ -4456,7 +4456,7 @@ function Dt({
|
|
|
4456
4456
|
"div",
|
|
4457
4457
|
{
|
|
4458
4458
|
style: {
|
|
4459
|
-
width:
|
|
4459
|
+
width: be * i,
|
|
4460
4460
|
height: G * i,
|
|
4461
4461
|
position: "relative",
|
|
4462
4462
|
display: "flex",
|
|
@@ -4517,7 +4517,7 @@ function Dt({
|
|
|
4517
4517
|
{
|
|
4518
4518
|
style: {
|
|
4519
4519
|
position: "absolute",
|
|
4520
|
-
width:
|
|
4520
|
+
width: be * 1.3 * i,
|
|
4521
4521
|
height: G * 2 * i,
|
|
4522
4522
|
background: `radial-gradient(ellipse, ${m.glow} 0%, transparent 65%)`,
|
|
4523
4523
|
filter: `blur(${Math.round(40 * i)}px)`,
|
|
@@ -4541,7 +4541,7 @@ function Dt({
|
|
|
4541
4541
|
"div",
|
|
4542
4542
|
{
|
|
4543
4543
|
style: {
|
|
4544
|
-
width:
|
|
4544
|
+
width: be,
|
|
4545
4545
|
height: G,
|
|
4546
4546
|
position: "relative",
|
|
4547
4547
|
transformStyle: "preserve-3d",
|
|
@@ -4564,7 +4564,7 @@ function Dt({
|
|
|
4564
4564
|
/* @__PURE__ */ e("div", { style: Te.left, children: /* @__PURE__ */ e(Et, { side: "left", color: m.color }) }),
|
|
4565
4565
|
/* @__PURE__ */ e("div", { style: Te.right, children: /* @__PURE__ */ e(Et, { side: "right", color: m.color }) }),
|
|
4566
4566
|
/* @__PURE__ */ e("div", { style: Te.top, children: /* @__PURE__ */ e(di, { queueDepth: l, color: m.color }) }),
|
|
4567
|
-
/* @__PURE__ */ e("div", { style: Te.bottom, children: /* @__PURE__ */ e("div", { style: { width:
|
|
4567
|
+
/* @__PURE__ */ e("div", { style: Te.bottom, children: /* @__PURE__ */ e("div", { style: { width: be, height: Ie, background: "#020508" } }) })
|
|
4568
4568
|
]
|
|
4569
4569
|
}
|
|
4570
4570
|
)
|
|
@@ -6090,13 +6090,13 @@ function yi({ onSubmit: t }) {
|
|
|
6090
6090
|
}
|
|
6091
6091
|
const xt = tt(null);
|
|
6092
6092
|
function mi() {
|
|
6093
|
-
const t =
|
|
6093
|
+
const t = ye(xt);
|
|
6094
6094
|
if (!t)
|
|
6095
6095
|
throw new Error("useAIOpsData must be used within an AIOPsDashboard with dataEndpoint configured");
|
|
6096
6096
|
return t;
|
|
6097
6097
|
}
|
|
6098
6098
|
function xi() {
|
|
6099
|
-
return
|
|
6099
|
+
return ye(xt);
|
|
6100
6100
|
}
|
|
6101
6101
|
function Yi(t) {
|
|
6102
6102
|
const { data: n } = mi();
|
|
@@ -6158,7 +6158,7 @@ function Si({ config: t, children: n }) {
|
|
|
6158
6158
|
}
|
|
6159
6159
|
}
|
|
6160
6160
|
}, []);
|
|
6161
|
-
|
|
6161
|
+
Re(() => {
|
|
6162
6162
|
if (!r) return;
|
|
6163
6163
|
b();
|
|
6164
6164
|
const v = g.current.refreshInterval ?? 6e4, S = window.setInterval(b, v);
|
|
@@ -6219,7 +6219,7 @@ function At({
|
|
|
6219
6219
|
}, 1e3));
|
|
6220
6220
|
}, Z = Ge((T) => {
|
|
6221
6221
|
P(T), I(0);
|
|
6222
|
-
}, []),
|
|
6222
|
+
}, []), me = Ge((T) => {
|
|
6223
6223
|
P(T);
|
|
6224
6224
|
}, []);
|
|
6225
6225
|
q.useEffect(() => {
|
|
@@ -6230,7 +6230,7 @@ function At({
|
|
|
6230
6230
|
}, ee = requestAnimationFrame(re);
|
|
6231
6231
|
return () => cancelAnimationFrame(ee);
|
|
6232
6232
|
}, [k]);
|
|
6233
|
-
const
|
|
6233
|
+
const xe = () => {
|
|
6234
6234
|
P(null), I(0);
|
|
6235
6235
|
}, N = h ?? wi, U = p?.data, { enhancedChildren: ne, liveAlerts: Be } = Tt(() => {
|
|
6236
6236
|
const T = {};
|
|
@@ -6240,28 +6240,28 @@ function At({
|
|
|
6240
6240
|
if (!q.isValidElement(ee)) return ee;
|
|
6241
6241
|
const V = ee.props.name;
|
|
6242
6242
|
if (!V || !l[V]) return ee;
|
|
6243
|
-
const ae = l[V],
|
|
6244
|
-
for (const [
|
|
6243
|
+
const ae = l[V], we = {}, le = {};
|
|
6244
|
+
for (const [fe, F] of Object.entries(ae)) {
|
|
6245
6245
|
const rt = typeof F == "string" ? F : F.query, at = typeof F == "object" && F.transform ? F.transform : N, Ye = U[rt];
|
|
6246
6246
|
if (Ye === void 0) continue;
|
|
6247
|
-
const
|
|
6248
|
-
if (
|
|
6249
|
-
const { prop: H, warnAt: Ve = 70, critAt: St = 85, label: Ft } = F.alert, _e = Ft ??
|
|
6250
|
-
if (
|
|
6247
|
+
const Se = at(Ye);
|
|
6248
|
+
if (we[fe] = Se, typeof F == "object" && F.alert && typeof Se == "number") {
|
|
6249
|
+
const { prop: H, warnAt: Ve = 70, critAt: St = 85, label: Ft } = F.alert, _e = Ft ?? fe, je = Math.round(Se);
|
|
6250
|
+
if (Se >= St) {
|
|
6251
6251
|
const He = le[H];
|
|
6252
6252
|
(!He || He.severity < 2) && (le[H] = {
|
|
6253
6253
|
msg: `${_e} critical — ${je}%`,
|
|
6254
|
-
internalRef:
|
|
6254
|
+
internalRef: fe,
|
|
6255
6255
|
severity: 2
|
|
6256
6256
|
}), j[V] || (j[V] = []), j[V].push({
|
|
6257
6257
|
level: "critical",
|
|
6258
6258
|
message: `${_e} at ${je}% — exceeds critical threshold (${St}%)`
|
|
6259
6259
|
});
|
|
6260
|
-
} else if (
|
|
6260
|
+
} else if (Se >= Ve) {
|
|
6261
6261
|
const He = le[H];
|
|
6262
6262
|
(!He || He.severity < 1) && (le[H] = {
|
|
6263
6263
|
msg: `${_e} elevated — ${je}%`,
|
|
6264
|
-
internalRef:
|
|
6264
|
+
internalRef: fe,
|
|
6265
6265
|
severity: 1
|
|
6266
6266
|
}), j[V] || (j[V] = []), j[V].push({
|
|
6267
6267
|
level: "warning",
|
|
@@ -6270,11 +6270,11 @@ function At({
|
|
|
6270
6270
|
}
|
|
6271
6271
|
}
|
|
6272
6272
|
}
|
|
6273
|
-
for (const [
|
|
6274
|
-
|
|
6275
|
-
return Object.keys(
|
|
6273
|
+
for (const [fe, F] of Object.entries(le))
|
|
6274
|
+
we[fe] = { msg: F.msg, internalRef: F.internalRef };
|
|
6275
|
+
return Object.keys(we).length > 0 ? q.cloneElement(ee, we) : ee;
|
|
6276
6276
|
}), liveAlerts: j };
|
|
6277
|
-
}, [d, U, l, N]), oe = o.find((T) => T.name === x), Fe = oe?.status ?? "online", J = oe?.dbSync ?? !0, B = oe?.metrics, _ = Be[x ?? ""] ?? [], se = oe?.alerts ?? [], de = _.length > 0 ? [..._, ...se.filter((T) => T.level !== "info")] : se,
|
|
6277
|
+
}, [d, U, l, N]), oe = o.find((T) => T.name === x), Fe = oe?.status ?? "online", J = oe?.dbSync ?? !0, B = oe?.metrics, _ = Be[x ?? ""] ?? [], se = oe?.alerts ?? [], de = _.length > 0 ? [..._, ...se.filter((T) => T.level !== "info")] : se, ce = p?.lastRefreshError ?? null, it = 330, nt = 340, ve = k ? 1.15 : 1, pe = k ? -(k.ex - it) * 0.06 : 0, ot = k ? -(k.ey - nt) * 0.06 : 0;
|
|
6278
6278
|
return /* @__PURE__ */ c("div", { className: "app", style: s ? { fontFamily: s } : void 0, children: [
|
|
6279
6279
|
/* @__PURE__ */ e(
|
|
6280
6280
|
"div",
|
|
@@ -6289,7 +6289,7 @@ function At({
|
|
|
6289
6289
|
backgroundPosition: "center center",
|
|
6290
6290
|
backgroundRepeat: "no-repeat",
|
|
6291
6291
|
transition: "transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1)",
|
|
6292
|
-
transform: `translate(${
|
|
6292
|
+
transform: `translate(${pe}px, ${ot}px) scale(${ve})`,
|
|
6293
6293
|
willChange: "transform"
|
|
6294
6294
|
}
|
|
6295
6295
|
}
|
|
@@ -6300,7 +6300,7 @@ function At({
|
|
|
6300
6300
|
/* @__PURE__ */ e("span", { className: "brand-text", children: t })
|
|
6301
6301
|
] }),
|
|
6302
6302
|
/* @__PURE__ */ c("div", { className: "hdr-right", children: [
|
|
6303
|
-
|
|
6303
|
+
ce && /* @__PURE__ */ c("div", { className: "hdr-refresh-error", children: [
|
|
6304
6304
|
/* @__PURE__ */ e("span", { className: "refresh-error-dot" }),
|
|
6305
6305
|
/* @__PURE__ */ e("span", { className: "refresh-error-text", children: "DATA REFRESH FAILED" })
|
|
6306
6306
|
] }),
|
|
@@ -6333,8 +6333,8 @@ function At({
|
|
|
6333
6333
|
onSelectSystem: z,
|
|
6334
6334
|
onBackgroundClick: K,
|
|
6335
6335
|
onComponentClick: Z,
|
|
6336
|
-
onComponentUpdate:
|
|
6337
|
-
onCloseDrill:
|
|
6336
|
+
onComponentUpdate: me,
|
|
6337
|
+
onCloseDrill: xe,
|
|
6338
6338
|
selectedSystemStatus: Fe,
|
|
6339
6339
|
selectedSystemDbSync: J,
|
|
6340
6340
|
selectedSystemMetrics: B,
|
|
@@ -6506,7 +6506,7 @@ const Ri = [
|
|
|
6506
6506
|
{ from: [495, 390], to: [200, 520], visibleAtPhase: 5, color: "#ff8c00" }
|
|
6507
6507
|
];
|
|
6508
6508
|
function Ci({ config: t }) {
|
|
6509
|
-
const n = q.useContext(
|
|
6509
|
+
const n = q.useContext(Ce), o = n?.rotateY ?? 20, i = n?.autoRotateComponents ?? !0, { wdStatus: r, msStatus: a, srv1Status: s, srv2Status: l, srv3Status: h, pdbStatus: d, sdbStatus: p, dbSync: f } = t;
|
|
6510
6510
|
return /* @__PURE__ */ c(Me, { children: [
|
|
6511
6511
|
/* @__PURE__ */ e(
|
|
6512
6512
|
A,
|
|
@@ -6607,7 +6607,7 @@ function Ci({ config: t }) {
|
|
|
6607
6607
|
graphSeries: We({ cpuLoad: 67, memLoad: 72 })
|
|
6608
6608
|
},
|
|
6609
6609
|
children: /* @__PURE__ */ e(
|
|
6610
|
-
|
|
6610
|
+
ke,
|
|
6611
6611
|
{
|
|
6612
6612
|
rotateY: o,
|
|
6613
6613
|
autoRotate: i,
|
|
@@ -6640,7 +6640,7 @@ function Ci({ config: t }) {
|
|
|
6640
6640
|
graphSeries: We({ cpuLoad: 89, memLoad: 91 })
|
|
6641
6641
|
},
|
|
6642
6642
|
children: /* @__PURE__ */ e(
|
|
6643
|
-
|
|
6643
|
+
ke,
|
|
6644
6644
|
{
|
|
6645
6645
|
rotateY: o,
|
|
6646
6646
|
autoRotate: i,
|
|
@@ -6673,7 +6673,7 @@ function Ci({ config: t }) {
|
|
|
6673
6673
|
graphSeries: We({ cpuLoad: 45, memLoad: 63 })
|
|
6674
6674
|
},
|
|
6675
6675
|
children: /* @__PURE__ */ e(
|
|
6676
|
-
|
|
6676
|
+
ke,
|
|
6677
6677
|
{
|
|
6678
6678
|
rotateY: o,
|
|
6679
6679
|
autoRotate: i,
|
|
@@ -6769,7 +6769,7 @@ function Ci({ config: t }) {
|
|
|
6769
6769
|
] });
|
|
6770
6770
|
}
|
|
6771
6771
|
function Pi({ config: t }) {
|
|
6772
|
-
const n = q.useContext(
|
|
6772
|
+
const n = q.useContext(Ce), { wdStatus: o, msStatus: i, srv1Status: r, srv2Status: a, srv3Status: s, pdbStatus: l, sdbStatus: h, dbSync: d } = t, p = n?.isSelected && n?.isExpandedPos;
|
|
6773
6773
|
return n?.isSelected ? /* @__PURE__ */ c("div", { style: { pointerEvents: "none" }, children: [
|
|
6774
6774
|
/* @__PURE__ */ e(
|
|
6775
6775
|
W,
|
|
@@ -6957,7 +6957,7 @@ const Ei = [
|
|
|
6957
6957
|
{ from: [495, 390], to: [200, 520], visibleAtPhase: 5, color: "#ff8c00" }
|
|
6958
6958
|
];
|
|
6959
6959
|
function Ai({ config: t }) {
|
|
6960
|
-
const n = q.useContext(
|
|
6960
|
+
const n = q.useContext(Ce), o = n?.rotateY ?? 20, i = n?.autoRotateComponents ?? !0, { dispStatus: r, srv1Status: a, srv2Status: s, srv3Status: l, pdbStatus: h, sdbStatus: d, dbSync: p } = t;
|
|
6961
6961
|
return /* @__PURE__ */ c(Me, { children: [
|
|
6962
6962
|
/* @__PURE__ */ e(
|
|
6963
6963
|
A,
|
|
@@ -7024,7 +7024,7 @@ function Ai({ config: t }) {
|
|
|
7024
7024
|
graphSeries: We({ cpuLoad: 67, memLoad: 72 })
|
|
7025
7025
|
},
|
|
7026
7026
|
children: /* @__PURE__ */ e(
|
|
7027
|
-
|
|
7027
|
+
ke,
|
|
7028
7028
|
{
|
|
7029
7029
|
rotateY: o,
|
|
7030
7030
|
autoRotate: i,
|
|
@@ -7057,7 +7057,7 @@ function Ai({ config: t }) {
|
|
|
7057
7057
|
graphSeries: We({ cpuLoad: 89, memLoad: 91 })
|
|
7058
7058
|
},
|
|
7059
7059
|
children: /* @__PURE__ */ e(
|
|
7060
|
-
|
|
7060
|
+
ke,
|
|
7061
7061
|
{
|
|
7062
7062
|
rotateY: o,
|
|
7063
7063
|
autoRotate: i,
|
|
@@ -7090,7 +7090,7 @@ function Ai({ config: t }) {
|
|
|
7090
7090
|
graphSeries: We({ cpuLoad: 45, memLoad: 63 })
|
|
7091
7091
|
},
|
|
7092
7092
|
children: /* @__PURE__ */ e(
|
|
7093
|
-
|
|
7093
|
+
ke,
|
|
7094
7094
|
{
|
|
7095
7095
|
rotateY: o,
|
|
7096
7096
|
autoRotate: i,
|
|
@@ -7186,7 +7186,7 @@ function Ai({ config: t }) {
|
|
|
7186
7186
|
] });
|
|
7187
7187
|
}
|
|
7188
7188
|
function Ti({ config: t }) {
|
|
7189
|
-
const n = q.useContext(
|
|
7189
|
+
const n = q.useContext(Ce), { dispStatus: o, srv1Status: i, srv2Status: r, srv3Status: a, pdbStatus: s, sdbStatus: l, dbSync: h } = t, d = n?.isSelected && n?.isExpandedPos;
|
|
7190
7190
|
return n?.isSelected ? /* @__PURE__ */ c("div", { style: { pointerEvents: "none" }, children: [
|
|
7191
7191
|
/* @__PURE__ */ e(
|
|
7192
7192
|
W,
|
|
@@ -7339,10 +7339,10 @@ export {
|
|
|
7339
7339
|
Xi as SAPService,
|
|
7340
7340
|
Ri as SAP_CONNECTIONS,
|
|
7341
7341
|
$ as STATUS_CFG,
|
|
7342
|
-
|
|
7342
|
+
ke as Server3D,
|
|
7343
7343
|
Mi as ServerNode,
|
|
7344
7344
|
Lt as Service,
|
|
7345
|
-
|
|
7345
|
+
Ce as ServiceContext,
|
|
7346
7346
|
Ut as ServiceDialog,
|
|
7347
7347
|
A as ServiceNode,
|
|
7348
7348
|
qt as SvgConnection,
|