react-dashstream 0.0.6 → 0.0.8
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/README.md +682 -188
- package/dist/AIOPsDashboard.d.ts.map +1 -1
- package/dist/components/Service.d.ts +0 -15
- package/dist/components/Service.d.ts.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.js +154 -162
- package/package.json +56 -56
package/dist/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsxs as c, jsx as e, Fragment as ze } from "react/jsx-runtime";
|
|
2
2
|
import X, { createContext as et, useContext as xe, useState as C, useCallback as _e, useEffect as de, useMemo as Be, useRef as q } from "react";
|
|
3
|
-
const
|
|
3
|
+
const Xt = {
|
|
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 qt({
|
|
9
9
|
name: t,
|
|
10
10
|
status: n,
|
|
11
11
|
dbSync: o = !0,
|
|
@@ -146,7 +146,7 @@ function Zt({
|
|
|
146
146
|
}
|
|
147
147
|
),
|
|
148
148
|
d.map((p, f) => {
|
|
149
|
-
const b =
|
|
149
|
+
const b = Xt[p.level];
|
|
150
150
|
return /* @__PURE__ */ c(
|
|
151
151
|
"div",
|
|
152
152
|
{
|
|
@@ -182,7 +182,7 @@ const E = {
|
|
|
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
|
+
}, _i = "#00e5ff", ji = "#0055cc", Ue = "linear-gradient(180deg, #071428 0%, #040c1c 60%, #030810 100%)", dt = "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 ct(t, n, o) {
|
|
187
187
|
const i = {
|
|
188
188
|
position: "absolute",
|
|
@@ -237,13 +237,13 @@ const lt = "cubic-bezier(0.34, 1.56, 0.64, 1)", qe = "cubic-bezier(0.16, 1, 0.3,
|
|
|
237
237
|
function Pt(t) {
|
|
238
238
|
return E[t]?.color ?? E.online.color;
|
|
239
239
|
}
|
|
240
|
-
function
|
|
240
|
+
function Qt(t, n, o) {
|
|
241
241
|
return t >= o ? "#ff2255" : t >= n ? "#ff8c00" : "#00e5ff";
|
|
242
242
|
}
|
|
243
243
|
function Xe(t, n, o, i) {
|
|
244
244
|
return t === "offline" ? "offline" : t === "critical" && n >= i ? "critical" : (t === "critical" || t === "warning") && n >= o ? "warning" : "online";
|
|
245
245
|
}
|
|
246
|
-
function
|
|
246
|
+
function Kt({
|
|
247
247
|
component: t,
|
|
248
248
|
onClose: n,
|
|
249
249
|
visible: o,
|
|
@@ -521,7 +521,7 @@ function ei({
|
|
|
521
521
|
position: "relative",
|
|
522
522
|
zIndex: 2
|
|
523
523
|
},
|
|
524
|
-
children: $.map((g) => /* @__PURE__ */ e(
|
|
524
|
+
children: $.map((g) => /* @__PURE__ */ e(Gt, { metric: g, visible: o, accentColor: f }, g.id))
|
|
525
525
|
}
|
|
526
526
|
),
|
|
527
527
|
/* @__PURE__ */ c(
|
|
@@ -570,7 +570,7 @@ function ei({
|
|
|
570
570
|
}
|
|
571
571
|
);
|
|
572
572
|
}
|
|
573
|
-
function
|
|
573
|
+
function Gt({
|
|
574
574
|
metric: t,
|
|
575
575
|
visible: n,
|
|
576
576
|
accentColor: o
|
|
@@ -586,7 +586,7 @@ function ti({
|
|
|
586
586
|
colorOverride: p,
|
|
587
587
|
warnAt: f = 70,
|
|
588
588
|
critAt: b = 85
|
|
589
|
-
} = t, h = p ??
|
|
589
|
+
} = t, h = p ?? Qt(a, f, b), y = p ?? Pt(l);
|
|
590
590
|
return /* @__PURE__ */ c(
|
|
591
591
|
"div",
|
|
592
592
|
{
|
|
@@ -618,7 +618,7 @@ function ti({
|
|
|
618
618
|
animation: n ? `comp-dialog-icon-pop 0.5s ${lt} ${0.35 + d * 0.12}s both` : "none"
|
|
619
619
|
},
|
|
620
620
|
children: [
|
|
621
|
-
/* @__PURE__ */ e(
|
|
621
|
+
/* @__PURE__ */ e(Zt, { type: u, color: y }),
|
|
622
622
|
(l === "warning" || l === "critical") && /* @__PURE__ */ e(
|
|
623
623
|
"div",
|
|
624
624
|
{
|
|
@@ -813,7 +813,7 @@ function ti({
|
|
|
813
813
|
}
|
|
814
814
|
);
|
|
815
815
|
}
|
|
816
|
-
function
|
|
816
|
+
function Zt({ type: t, color: n }) {
|
|
817
817
|
return t === "cpu" ? /* @__PURE__ */ c("svg", { width: 28, height: 28, viewBox: "0 0 24 24", fill: "none", children: [
|
|
818
818
|
/* @__PURE__ */ e("rect", { x: "6", y: "6", width: "12", height: "12", rx: "2", stroke: n, strokeWidth: "1.5" }),
|
|
819
819
|
/* @__PURE__ */ e(
|
|
@@ -899,13 +899,13 @@ function ii({ type: t, color: n }) {
|
|
|
899
899
|
] });
|
|
900
900
|
}
|
|
901
901
|
const pt = et(null), ft = et({ index: 0 });
|
|
902
|
-
function
|
|
902
|
+
function Xi() {
|
|
903
903
|
return xe(pt);
|
|
904
904
|
}
|
|
905
|
-
function
|
|
905
|
+
function qi() {
|
|
906
906
|
return xe(ft);
|
|
907
907
|
}
|
|
908
|
-
function
|
|
908
|
+
function Jt({
|
|
909
909
|
children: t,
|
|
910
910
|
logoUrl: n,
|
|
911
911
|
viewState: o,
|
|
@@ -1012,7 +1012,7 @@ function ni({
|
|
|
1012
1012
|
we
|
|
1013
1013
|
] }),
|
|
1014
1014
|
r && /* @__PURE__ */ e("div", { onClick: (S) => S.stopPropagation(), children: /* @__PURE__ */ e(
|
|
1015
|
-
|
|
1015
|
+
qt,
|
|
1016
1016
|
{
|
|
1017
1017
|
name: r,
|
|
1018
1018
|
status: R,
|
|
@@ -1023,7 +1023,7 @@ function ni({
|
|
|
1023
1023
|
}
|
|
1024
1024
|
) }),
|
|
1025
1025
|
a && /* @__PURE__ */ e("div", { onClick: (S) => S.stopPropagation(), children: /* @__PURE__ */ e(
|
|
1026
|
-
|
|
1026
|
+
Kt,
|
|
1027
1027
|
{
|
|
1028
1028
|
component: a,
|
|
1029
1029
|
onClose: g,
|
|
@@ -1034,7 +1034,7 @@ function ni({
|
|
|
1034
1034
|
) })
|
|
1035
1035
|
] });
|
|
1036
1036
|
}
|
|
1037
|
-
function
|
|
1037
|
+
function ei({
|
|
1038
1038
|
x1: t,
|
|
1039
1039
|
y1: n,
|
|
1040
1040
|
x2: o,
|
|
@@ -1101,14 +1101,14 @@ function oi({
|
|
|
1101
1101
|
] })
|
|
1102
1102
|
] });
|
|
1103
1103
|
}
|
|
1104
|
-
const
|
|
1104
|
+
const ti = [
|
|
1105
1105
|
{ scale: 1, op: 1, delay: "0.0s", bw: "2px", glow: 1 },
|
|
1106
1106
|
{ scale: 0.82, op: 0.88, delay: "0.5s", bw: "1.5px", glow: 0.7 },
|
|
1107
1107
|
{ scale: 0.64, op: 0.72, delay: "1.0s", bw: "1px", glow: 0.5 },
|
|
1108
1108
|
{ scale: 0.47, op: 0.58, delay: "1.5s", bw: "1px", glow: 0.35 },
|
|
1109
1109
|
{ scale: 0.3, op: 0.45, delay: "2.0s", bw: "1px", glow: 0.25 }
|
|
1110
1110
|
];
|
|
1111
|
-
function
|
|
1111
|
+
function ii({
|
|
1112
1112
|
children: t,
|
|
1113
1113
|
size: n = 230,
|
|
1114
1114
|
widthRatio: o = 1,
|
|
@@ -1274,7 +1274,7 @@ function ai({
|
|
|
1274
1274
|
background: `radial-gradient(ellipse, ${i}88 0%, ${i}33 40%, transparent 72%)`,
|
|
1275
1275
|
filter: "blur(12px)"
|
|
1276
1276
|
} }),
|
|
1277
|
-
|
|
1277
|
+
ti.map((s, l) => /* @__PURE__ */ e("div", { style: {
|
|
1278
1278
|
position: "absolute",
|
|
1279
1279
|
width: a * s.scale,
|
|
1280
1280
|
height: n * s.scale,
|
|
@@ -1317,7 +1317,7 @@ function ai({
|
|
|
1317
1317
|
}, children: r })
|
|
1318
1318
|
] });
|
|
1319
1319
|
}
|
|
1320
|
-
const Re = et(null),
|
|
1320
|
+
const Re = et(null), ni = "cubic-bezier(0.34, 1.56, 0.64, 1)", vt = 330, wt = 340, oi = 660;
|
|
1321
1321
|
function At({
|
|
1322
1322
|
name: t,
|
|
1323
1323
|
status: n = "online",
|
|
@@ -1342,27 +1342,19 @@ function At({
|
|
|
1342
1342
|
const g = xe(pt), R = xe(ft), A = a ?? R.index, L = s ?? g?.totalSystems ?? 1, w = l ?? g?.carouselRotation ?? 0, I = u ?? g?.viewState ?? "compact", H = d ?? g?.animPhase ?? 0, D = p ?? g?.selectedSystem ?? null, ee = f ?? g?.selectedComponent ?? null, ce = b ?? g?.rotateY ?? 20, pe = h ?? g?.autoRotateComponents ?? !0, se = y ?? g?.componentScale ?? 0.35, ve = m ?? g?.drillZoom ?? 3.3, we = k ?? g?.onSelectSystem, Se = v ?? g?.onComponentClick, G = g?.onComponentDataUpdate, S = $ ?? g?.containerWidth ?? 950, P = g?.onNodeAlertsChange, M = q(P);
|
|
1343
1343
|
M.current = P;
|
|
1344
1344
|
const Y = q(/* @__PURE__ */ new Map()), Z = _e(
|
|
1345
|
-
(J, Ve,
|
|
1345
|
+
(J, Ve, _t) => {
|
|
1346
1346
|
const it = Y.current;
|
|
1347
|
-
Ve && Ve !== "online" ? it.set(J, { severity: Ve, msg:
|
|
1347
|
+
Ve && Ve !== "online" ? it.set(J, { severity: Ve, msg: _t }) : it.delete(J);
|
|
1348
1348
|
const xt = [];
|
|
1349
|
-
for (const [
|
|
1349
|
+
for (const [jt, nt] of it)
|
|
1350
1350
|
xt.push({
|
|
1351
1351
|
level: nt.severity === "critical" || nt.severity === "offline" ? "critical" : "warning",
|
|
1352
|
-
message: `${
|
|
1352
|
+
message: `${jt}: ${nt.msg}`
|
|
1353
1353
|
});
|
|
1354
1354
|
M.current?.(t, xt);
|
|
1355
1355
|
},
|
|
1356
1356
|
[t]
|
|
1357
|
-
), Q = D === t, z = Q && (I === "expanded" || I === "expanding" && H >= 1), oe = !z, fe = (S -
|
|
1358
|
-
size: Ft = 90,
|
|
1359
|
-
color: Ht = "#00e5ff",
|
|
1360
|
-
widthRatio: Yt = 3,
|
|
1361
|
-
expandedX: Vt,
|
|
1362
|
-
expandedY: _t = 570,
|
|
1363
|
-
compactOffsetX: jt = 0,
|
|
1364
|
-
compactOffsetY: Xt = 0
|
|
1365
|
-
} = i ?? {}, qt = {
|
|
1357
|
+
), Q = D === t, z = Q && (I === "expanded" || I === "expanding" && H >= 1), oe = !z, fe = (S - oi) / 2, ue = vt + fe, he = A / L * Math.PI * 2 + w, Fe = 420, Ce = 160, re = ue + Math.cos(he) * Fe, x = 450 + Math.sin(he) * Ce, V = Math.round(x), ae = !Q && (I === "expanding" || I === "expanded"), _ = ae ? 0 : 1, j = oe ? 0.3 + (Math.sin(he) + 1) * 0.1 : 1, B = oe ? j : se, Ee = I === "compact" || I === "collapsing" ? "none" : "all 1s cubic-bezier(0.34, 1.56, 0.64, 1)", Ye = Q && ee, tt = Ye ? ve : 1, Bt = ee?.ex ?? 330, Ut = ee?.ey ?? 300, { size: Ft = 90, color: Ht = "#00e5ff", widthRatio: Yt = 3 } = i ?? {}, Vt = {
|
|
1366
1358
|
name: t,
|
|
1367
1359
|
isSelected: Q,
|
|
1368
1360
|
isExpandedPos: z,
|
|
@@ -1381,7 +1373,7 @@ function At({
|
|
|
1381
1373
|
expandedOffsetX: fe,
|
|
1382
1374
|
registerNodeAlert: Z
|
|
1383
1375
|
};
|
|
1384
|
-
return /* @__PURE__ */ e(Re.Provider, { value:
|
|
1376
|
+
return /* @__PURE__ */ e(Re.Provider, { value: Vt, children: /* @__PURE__ */ c(
|
|
1385
1377
|
"div",
|
|
1386
1378
|
{
|
|
1387
1379
|
style: {
|
|
@@ -1392,7 +1384,7 @@ function At({
|
|
|
1392
1384
|
height: "100%",
|
|
1393
1385
|
pointerEvents: "none",
|
|
1394
1386
|
opacity: _,
|
|
1395
|
-
transition: `opacity 0.8s ease, filter 0.5s ease, transform 0.6s ${
|
|
1387
|
+
transition: `opacity 0.8s ease, filter 0.5s ease, transform 0.6s ${ni}`,
|
|
1396
1388
|
filter: oe && Math.sin(he) < -0.5 ? "brightness(0.5) blur(2px)" : "none",
|
|
1397
1389
|
zIndex: Q ? 500 : ae ? 0 : V,
|
|
1398
1390
|
transformOrigin: `${ue}px ${wt}px`,
|
|
@@ -1505,7 +1497,7 @@ function At({
|
|
|
1505
1497
|
transition: Ee
|
|
1506
1498
|
},
|
|
1507
1499
|
children: o.map((J, Ve) => /* @__PURE__ */ e(
|
|
1508
|
-
|
|
1500
|
+
ei,
|
|
1509
1501
|
{
|
|
1510
1502
|
x1: J.from[0],
|
|
1511
1503
|
y1: J.from[1],
|
|
@@ -1524,13 +1516,13 @@ function At({
|
|
|
1524
1516
|
{
|
|
1525
1517
|
style: {
|
|
1526
1518
|
position: "absolute",
|
|
1527
|
-
left: z ?
|
|
1528
|
-
top: z ?
|
|
1519
|
+
left: z ? ue : re,
|
|
1520
|
+
top: z ? 570 : x + 70,
|
|
1529
1521
|
transform: `translate(-50%, -50%) scaleX(${z ? 1 : 0.4}) scaleY(${z ? 1 : 0.6}) scale(${z ? 1 : j})`,
|
|
1530
1522
|
transition: Ee,
|
|
1531
1523
|
zIndex: 1
|
|
1532
1524
|
},
|
|
1533
|
-
children: /* @__PURE__ */ e(
|
|
1525
|
+
children: /* @__PURE__ */ e(ii, { size: Ft, color: Ht, widthRatio: Yt, children: /* @__PURE__ */ e("div", { className: "base-hotspot" }) })
|
|
1534
1526
|
}
|
|
1535
1527
|
),
|
|
1536
1528
|
r
|
|
@@ -1685,21 +1677,21 @@ function U({
|
|
|
1685
1677
|
}
|
|
1686
1678
|
);
|
|
1687
1679
|
}
|
|
1688
|
-
const Tt = 70, Ot = 85,
|
|
1680
|
+
const Tt = 70, Ot = 85, ri = {
|
|
1689
1681
|
online: 0,
|
|
1690
1682
|
warning: 1,
|
|
1691
1683
|
offline: 2,
|
|
1692
1684
|
critical: 3
|
|
1693
1685
|
};
|
|
1694
1686
|
function St(t) {
|
|
1695
|
-
return
|
|
1687
|
+
return ri[t] ?? 0;
|
|
1696
1688
|
}
|
|
1697
|
-
function
|
|
1689
|
+
function ai(t) {
|
|
1698
1690
|
if (!t) return null;
|
|
1699
1691
|
const n = t.dialogMetrics ?? t.context?.dialogMetrics;
|
|
1700
|
-
return n && n.length > 0 ?
|
|
1692
|
+
return n && n.length > 0 ? li(n) : si(t.context);
|
|
1701
1693
|
}
|
|
1702
|
-
function
|
|
1694
|
+
function li(t) {
|
|
1703
1695
|
let n = null;
|
|
1704
1696
|
for (const r of t) {
|
|
1705
1697
|
if (r.color) continue;
|
|
@@ -1714,7 +1706,7 @@ function pi(t) {
|
|
|
1714
1706
|
internalRef: o.id.toUpperCase()
|
|
1715
1707
|
};
|
|
1716
1708
|
}
|
|
1717
|
-
function
|
|
1709
|
+
function si(t) {
|
|
1718
1710
|
if (!t) return null;
|
|
1719
1711
|
const n = [];
|
|
1720
1712
|
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" });
|
|
@@ -1729,8 +1721,8 @@ function fi(t) {
|
|
|
1729
1721
|
internalRef: i.id
|
|
1730
1722
|
};
|
|
1731
1723
|
}
|
|
1732
|
-
function
|
|
1733
|
-
const o = t?.status ?? "online", i = St(o), r =
|
|
1724
|
+
function di(t, n) {
|
|
1725
|
+
const o = t?.status ?? "online", i = St(o), r = ai(t), a = r ? St(r.severity) : 0, s = i >= a ? o : r.severity;
|
|
1734
1726
|
if (i === 0 && a === 0)
|
|
1735
1727
|
return { effectiveSeverity: "online", callout: null };
|
|
1736
1728
|
let l;
|
|
@@ -1773,7 +1765,7 @@ function O({
|
|
|
1773
1765
|
registerNodeAlert: H,
|
|
1774
1766
|
onComponentDataUpdate: D
|
|
1775
1767
|
} = y, ce = p === 0 || y.isSelected && k >= p ? 1 : 0, pe = v + o.x, se = $ + o.y, ve = m ? t + I : pe, we = m ? n : se, Se = f !== void 0 ? f : y.isCompact ? g : R, G = !!d && !!w && d.name === w, { effectiveSeverity: S, callout: P } = Be(
|
|
1776
|
-
() =>
|
|
1768
|
+
() => di(d, h),
|
|
1777
1769
|
[d, h]
|
|
1778
1770
|
);
|
|
1779
1771
|
de(() => (d?.name && H && H(
|
|
@@ -1852,7 +1844,7 @@ function O({
|
|
|
1852
1844
|
}
|
|
1853
1845
|
),
|
|
1854
1846
|
b ? re : /* @__PURE__ */ e(
|
|
1855
|
-
|
|
1847
|
+
ci,
|
|
1856
1848
|
{
|
|
1857
1849
|
statusColor: fe,
|
|
1858
1850
|
label: s,
|
|
@@ -1886,7 +1878,7 @@ function O({
|
|
|
1886
1878
|
)
|
|
1887
1879
|
] });
|
|
1888
1880
|
}
|
|
1889
|
-
function
|
|
1881
|
+
function ci({
|
|
1890
1882
|
children: t,
|
|
1891
1883
|
statusColor: n,
|
|
1892
1884
|
label: o,
|
|
@@ -2005,7 +1997,7 @@ function It({ synced: t, latencyMs: n }) {
|
|
|
2005
1997
|
] });
|
|
2006
1998
|
}
|
|
2007
1999
|
const be = 140, te = 240, me = 160, Pe = ct(be, te, me);
|
|
2008
|
-
function
|
|
2000
|
+
function pi({
|
|
2009
2001
|
cfg: t,
|
|
2010
2002
|
name: n,
|
|
2011
2003
|
cpuLoad: o,
|
|
@@ -2417,7 +2409,7 @@ function bi({
|
|
|
2417
2409
|
}
|
|
2418
2410
|
);
|
|
2419
2411
|
}
|
|
2420
|
-
function
|
|
2412
|
+
function fi() {
|
|
2421
2413
|
return /* @__PURE__ */ c(
|
|
2422
2414
|
"div",
|
|
2423
2415
|
{
|
|
@@ -2631,7 +2623,7 @@ function $t({
|
|
|
2631
2623
|
}
|
|
2632
2624
|
);
|
|
2633
2625
|
}
|
|
2634
|
-
function
|
|
2626
|
+
function ui({ cpuLoad: t }) {
|
|
2635
2627
|
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((me - 18) / 7);
|
|
2636
2628
|
return /* @__PURE__ */ c(
|
|
2637
2629
|
"div",
|
|
@@ -2828,7 +2820,7 @@ function ke({
|
|
|
2828
2820
|
},
|
|
2829
2821
|
children: [
|
|
2830
2822
|
/* @__PURE__ */ e("div", { style: Pe.front, children: /* @__PURE__ */ e(
|
|
2831
|
-
|
|
2823
|
+
pi,
|
|
2832
2824
|
{
|
|
2833
2825
|
cfg: m,
|
|
2834
2826
|
name: s,
|
|
@@ -2839,10 +2831,10 @@ function ke({
|
|
|
2839
2831
|
brandLabel: d
|
|
2840
2832
|
}
|
|
2841
2833
|
) }),
|
|
2842
|
-
/* @__PURE__ */ e("div", { style: Pe.back, children: /* @__PURE__ */ e(
|
|
2834
|
+
/* @__PURE__ */ e("div", { style: Pe.back, children: /* @__PURE__ */ e(fi, {}) }),
|
|
2843
2835
|
/* @__PURE__ */ e("div", { style: Pe.left, children: /* @__PURE__ */ e($t, { side: "left", color: m.color, brandLabel: d }) }),
|
|
2844
2836
|
/* @__PURE__ */ e("div", { style: Pe.right, children: /* @__PURE__ */ e($t, { side: "right", color: m.color, brandLabel: d }) }),
|
|
2845
|
-
/* @__PURE__ */ e("div", { style: Pe.top, children: /* @__PURE__ */ e(
|
|
2837
|
+
/* @__PURE__ */ e("div", { style: Pe.top, children: /* @__PURE__ */ e(ui, { cpuLoad: l }) }),
|
|
2846
2838
|
/* @__PURE__ */ e("div", { style: Pe.bottom, children: /* @__PURE__ */ e(
|
|
2847
2839
|
"div",
|
|
2848
2840
|
{
|
|
@@ -2862,7 +2854,7 @@ function ke({
|
|
|
2862
2854
|
}
|
|
2863
2855
|
);
|
|
2864
2856
|
}
|
|
2865
|
-
function
|
|
2857
|
+
function Qi({
|
|
2866
2858
|
ex: t,
|
|
2867
2859
|
ey: n,
|
|
2868
2860
|
compactOffset: o,
|
|
@@ -2912,7 +2904,7 @@ const st = 12, $e = 55, le = $e * 2, Ie = 52, ut = 10, ot = 3 * Ie + 2 * ut, Ae
|
|
|
2912
2904
|
function at(t) {
|
|
2913
2905
|
return Math.cos(t * Math.PI / 180) * 0.42 + 0.58;
|
|
2914
2906
|
}
|
|
2915
|
-
function
|
|
2907
|
+
function hi({
|
|
2916
2908
|
diskY: t,
|
|
2917
2909
|
diskIdx: n,
|
|
2918
2910
|
cfg: o,
|
|
@@ -3244,7 +3236,7 @@ function je({
|
|
|
3244
3236
|
transition: r ? "none" : "transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94)"
|
|
3245
3237
|
},
|
|
3246
3238
|
children: [0, 1, 2].map((h) => /* @__PURE__ */ e(
|
|
3247
|
-
|
|
3239
|
+
hi,
|
|
3248
3240
|
{
|
|
3249
3241
|
diskY: h * (Ie + ut),
|
|
3250
3242
|
diskIdx: h,
|
|
@@ -3263,7 +3255,7 @@ function je({
|
|
|
3263
3255
|
}
|
|
3264
3256
|
);
|
|
3265
3257
|
}
|
|
3266
|
-
function
|
|
3258
|
+
function Ki({
|
|
3267
3259
|
ex: t,
|
|
3268
3260
|
ey: n,
|
|
3269
3261
|
compactOffset: o,
|
|
@@ -3419,7 +3411,7 @@ function ht({ status: t = "online", scale: n = 1 }) {
|
|
|
3419
3411
|
}
|
|
3420
3412
|
);
|
|
3421
3413
|
}
|
|
3422
|
-
function
|
|
3414
|
+
function Gi({
|
|
3423
3415
|
ex: t,
|
|
3424
3416
|
ey: n,
|
|
3425
3417
|
compactOffset: o,
|
|
@@ -3443,7 +3435,7 @@ function tn({
|
|
|
3443
3435
|
);
|
|
3444
3436
|
}
|
|
3445
3437
|
const ge = 190, ie = 72, Le = 120, Te = ct(ge, ie, Le);
|
|
3446
|
-
function
|
|
3438
|
+
function bi({
|
|
3447
3439
|
cfg: t,
|
|
3448
3440
|
name: n,
|
|
3449
3441
|
traffic: o,
|
|
@@ -3705,7 +3697,7 @@ function xi({
|
|
|
3705
3697
|
}
|
|
3706
3698
|
);
|
|
3707
3699
|
}
|
|
3708
|
-
function
|
|
3700
|
+
function gi() {
|
|
3709
3701
|
return /* @__PURE__ */ c(
|
|
3710
3702
|
"div",
|
|
3711
3703
|
{
|
|
@@ -3850,7 +3842,7 @@ function kt({ side: t, color: n }) {
|
|
|
3850
3842
|
}
|
|
3851
3843
|
);
|
|
3852
3844
|
}
|
|
3853
|
-
function
|
|
3845
|
+
function yi({ traffic: t }) {
|
|
3854
3846
|
const n = Math.floor((Le - 14) / 7);
|
|
3855
3847
|
return /* @__PURE__ */ c(
|
|
3856
3848
|
"div",
|
|
@@ -4033,7 +4025,7 @@ function bt({
|
|
|
4033
4025
|
},
|
|
4034
4026
|
children: [
|
|
4035
4027
|
/* @__PURE__ */ e("div", { style: Te.front, children: /* @__PURE__ */ e(
|
|
4036
|
-
|
|
4028
|
+
bi,
|
|
4037
4029
|
{
|
|
4038
4030
|
cfg: y,
|
|
4039
4031
|
name: s,
|
|
@@ -4042,10 +4034,10 @@ function bt({
|
|
|
4042
4034
|
compact: d
|
|
4043
4035
|
}
|
|
4044
4036
|
) }),
|
|
4045
|
-
/* @__PURE__ */ e("div", { style: Te.back, children: /* @__PURE__ */ e(
|
|
4037
|
+
/* @__PURE__ */ e("div", { style: Te.back, children: /* @__PURE__ */ e(gi, {}) }),
|
|
4046
4038
|
/* @__PURE__ */ e("div", { style: Te.left, children: /* @__PURE__ */ e(kt, { side: "left", color: y.color }) }),
|
|
4047
4039
|
/* @__PURE__ */ e("div", { style: Te.right, children: /* @__PURE__ */ e(kt, { side: "right", color: y.color }) }),
|
|
4048
|
-
/* @__PURE__ */ e("div", { style: Te.top, children: /* @__PURE__ */ e(
|
|
4040
|
+
/* @__PURE__ */ e("div", { style: Te.top, children: /* @__PURE__ */ e(yi, { traffic: l }) }),
|
|
4049
4041
|
/* @__PURE__ */ e("div", { style: Te.bottom, children: /* @__PURE__ */ e("div", { style: { width: ge, height: Le, background: "#020508" } }) })
|
|
4050
4042
|
]
|
|
4051
4043
|
}
|
|
@@ -4056,7 +4048,7 @@ function bt({
|
|
|
4056
4048
|
}
|
|
4057
4049
|
);
|
|
4058
4050
|
}
|
|
4059
|
-
function
|
|
4051
|
+
function Zi({
|
|
4060
4052
|
ex: t,
|
|
4061
4053
|
ey: n,
|
|
4062
4054
|
compactOffset: o,
|
|
@@ -4107,7 +4099,7 @@ const ye = 190, ne = 72, De = 120, Oe = ct(ye, ne, De), Rt = {
|
|
|
4107
4099
|
critical: { color: "#ff2255", glow: "rgba(255,34,85,0.50)" },
|
|
4108
4100
|
offline: { color: "#1e3a5a", glow: "rgba(30,58,90,0.25)" }
|
|
4109
4101
|
};
|
|
4110
|
-
function
|
|
4102
|
+
function mi({
|
|
4111
4103
|
cfg: t,
|
|
4112
4104
|
name: n,
|
|
4113
4105
|
queueDepth: o,
|
|
@@ -4366,7 +4358,7 @@ function Si({
|
|
|
4366
4358
|
}
|
|
4367
4359
|
);
|
|
4368
4360
|
}
|
|
4369
|
-
function
|
|
4361
|
+
function xi() {
|
|
4370
4362
|
return /* @__PURE__ */ c(
|
|
4371
4363
|
"div",
|
|
4372
4364
|
{
|
|
@@ -4511,7 +4503,7 @@ function Ct({ side: t, color: n }) {
|
|
|
4511
4503
|
}
|
|
4512
4504
|
);
|
|
4513
4505
|
}
|
|
4514
|
-
function
|
|
4506
|
+
function vi({ queueDepth: t, color: n }) {
|
|
4515
4507
|
const o = Math.floor((De - 14) / 7);
|
|
4516
4508
|
return /* @__PURE__ */ c(
|
|
4517
4509
|
"div",
|
|
@@ -4695,7 +4687,7 @@ function Lt({
|
|
|
4695
4687
|
},
|
|
4696
4688
|
children: [
|
|
4697
4689
|
/* @__PURE__ */ e("div", { style: Oe.front, children: /* @__PURE__ */ e(
|
|
4698
|
-
|
|
4690
|
+
mi,
|
|
4699
4691
|
{
|
|
4700
4692
|
cfg: m,
|
|
4701
4693
|
name: s,
|
|
@@ -4705,10 +4697,10 @@ function Lt({
|
|
|
4705
4697
|
compact: p
|
|
4706
4698
|
}
|
|
4707
4699
|
) }),
|
|
4708
|
-
/* @__PURE__ */ e("div", { style: Oe.back, children: /* @__PURE__ */ e(
|
|
4700
|
+
/* @__PURE__ */ e("div", { style: Oe.back, children: /* @__PURE__ */ e(xi, {}) }),
|
|
4709
4701
|
/* @__PURE__ */ e("div", { style: Oe.left, children: /* @__PURE__ */ e(Ct, { side: "left", color: m.color }) }),
|
|
4710
4702
|
/* @__PURE__ */ e("div", { style: Oe.right, children: /* @__PURE__ */ e(Ct, { side: "right", color: m.color }) }),
|
|
4711
|
-
/* @__PURE__ */ e("div", { style: Oe.top, children: /* @__PURE__ */ e(
|
|
4703
|
+
/* @__PURE__ */ e("div", { style: Oe.top, children: /* @__PURE__ */ e(vi, { queueDepth: l, color: m.color }) }),
|
|
4712
4704
|
/* @__PURE__ */ e("div", { style: Oe.bottom, children: /* @__PURE__ */ e("div", { style: { width: ye, height: De, background: "#020508" } }) })
|
|
4713
4705
|
]
|
|
4714
4706
|
}
|
|
@@ -4719,13 +4711,13 @@ function Lt({
|
|
|
4719
4711
|
}
|
|
4720
4712
|
);
|
|
4721
4713
|
}
|
|
4722
|
-
const
|
|
4714
|
+
const wi = {
|
|
4723
4715
|
online: "#bb55ff",
|
|
4724
4716
|
warning: "#ff8c00",
|
|
4725
4717
|
critical: "#ff2255",
|
|
4726
4718
|
offline: "#1e3a5a"
|
|
4727
4719
|
};
|
|
4728
|
-
function
|
|
4720
|
+
function Ji({
|
|
4729
4721
|
ex: t,
|
|
4730
4722
|
ey: n,
|
|
4731
4723
|
compactOffset: o,
|
|
@@ -4744,7 +4736,7 @@ function on({
|
|
|
4744
4736
|
graphSeries: m,
|
|
4745
4737
|
alert: k
|
|
4746
4738
|
}) {
|
|
4747
|
-
const v =
|
|
4739
|
+
const v = wi[a] ?? l ?? "#bb55ff";
|
|
4748
4740
|
return /* @__PURE__ */ e(
|
|
4749
4741
|
O,
|
|
4750
4742
|
{
|
|
@@ -4785,7 +4777,7 @@ function N(t, n, o = 24) {
|
|
|
4785
4777
|
return Math.min(100, Math.max(0, t + Math.sin(a * Math.PI * 2) * n + (Math.random() - 0.5) * 10));
|
|
4786
4778
|
});
|
|
4787
4779
|
}
|
|
4788
|
-
function
|
|
4780
|
+
function Si({ data: t, color: n, height: o = 28 }) {
|
|
4789
4781
|
const r = o, a = Math.max(...t, 1), s = t.map((l, u) => {
|
|
4790
4782
|
const d = u / (t.length - 1) * 120, p = r - l / a * (r - 4) - 2;
|
|
4791
4783
|
return `${d},${p}`;
|
|
@@ -4803,7 +4795,7 @@ function Ci({ data: t, color: n, height: o = 28 }) {
|
|
|
4803
4795
|
}
|
|
4804
4796
|
) });
|
|
4805
4797
|
}
|
|
4806
|
-
function
|
|
4798
|
+
function $i({
|
|
4807
4799
|
type: t,
|
|
4808
4800
|
name: n,
|
|
4809
4801
|
context: o = {},
|
|
@@ -4811,7 +4803,7 @@ function Ei({
|
|
|
4811
4803
|
animPhase: r,
|
|
4812
4804
|
series: a
|
|
4813
4805
|
}) {
|
|
4814
|
-
const s = i === "critical" || i === "offline" ? "#ff2255" : i === "warning" ? "#ff8c00" : "#00e5ff", l = a ? a.map((p) => ({ ...p })) :
|
|
4806
|
+
const s = i === "critical" || i === "offline" ? "#ff2255" : i === "warning" ? "#ff8c00" : "#00e5ff", l = a ? a.map((p) => ({ ...p })) : ki(t, o), u = r >= 0.3 ? 0 : -280, d = r >= 0.2 ? 1 : 0;
|
|
4815
4807
|
return /* @__PURE__ */ c(
|
|
4816
4808
|
"div",
|
|
4817
4809
|
{
|
|
@@ -4866,7 +4858,7 @@ function Ei({
|
|
|
4866
4858
|
p.unit
|
|
4867
4859
|
] })
|
|
4868
4860
|
] }),
|
|
4869
|
-
/* @__PURE__ */ e(
|
|
4861
|
+
/* @__PURE__ */ e(Si, { data: p.data, color: p.color, height: 26 })
|
|
4870
4862
|
]
|
|
4871
4863
|
},
|
|
4872
4864
|
p.id
|
|
@@ -4875,7 +4867,7 @@ function Ei({
|
|
|
4875
4867
|
}
|
|
4876
4868
|
);
|
|
4877
4869
|
}
|
|
4878
|
-
function
|
|
4870
|
+
function ki(t, n) {
|
|
4879
4871
|
if (t === "server") {
|
|
4880
4872
|
const o = n.cpuLoad ?? 50, i = n.memLoad ?? 60;
|
|
4881
4873
|
return [
|
|
@@ -5476,7 +5468,7 @@ function K({
|
|
|
5476
5468
|
}
|
|
5477
5469
|
);
|
|
5478
5470
|
}
|
|
5479
|
-
function
|
|
5471
|
+
function Ri(t, n, o, i) {
|
|
5480
5472
|
const r = o === "online" ? "online" : o;
|
|
5481
5473
|
return t === "server" ? [
|
|
5482
5474
|
{
|
|
@@ -5580,8 +5572,8 @@ function Ai(t, n, o, i) {
|
|
|
5580
5572
|
}
|
|
5581
5573
|
] : [];
|
|
5582
5574
|
}
|
|
5583
|
-
const W = "cubic-bezier(0.34, 1.56, 0.64, 1)",
|
|
5584
|
-
function
|
|
5575
|
+
const W = "cubic-bezier(0.34, 1.56, 0.64, 1)", Ci = "cubic-bezier(0.16, 1, 0.3, 1)";
|
|
5576
|
+
function Ei({ items: t, revealPhase: n }) {
|
|
5585
5577
|
return /* @__PURE__ */ e(
|
|
5586
5578
|
"div",
|
|
5587
5579
|
{
|
|
@@ -5608,7 +5600,7 @@ function Oi({ items: t, revealPhase: n }) {
|
|
|
5608
5600
|
}
|
|
5609
5601
|
);
|
|
5610
5602
|
}
|
|
5611
|
-
function
|
|
5603
|
+
function Pi({
|
|
5612
5604
|
type: t,
|
|
5613
5605
|
status: n,
|
|
5614
5606
|
context: o,
|
|
@@ -5918,7 +5910,7 @@ function Ii({
|
|
|
5918
5910
|
}
|
|
5919
5911
|
return null;
|
|
5920
5912
|
}
|
|
5921
|
-
function
|
|
5913
|
+
function en({
|
|
5922
5914
|
type: t,
|
|
5923
5915
|
name: n,
|
|
5924
5916
|
status: o,
|
|
@@ -5928,7 +5920,7 @@ function rn({
|
|
|
5928
5920
|
subComponents: s,
|
|
5929
5921
|
graphSeries: l
|
|
5930
5922
|
}) {
|
|
5931
|
-
const u =
|
|
5923
|
+
const u = Ri(t, n, o, a), d = E[o]?.color ?? E.online.color, p = r >= 0.1 ? 1 : r * 10, f = r >= 0.2 ? "-50%" : "0%", b = r >= 0.2 ? "50%" : "0%", h = r >= 0.25 ? Math.min(1, (r - 0.25) * 1.5) : 0;
|
|
5932
5924
|
return /* @__PURE__ */ c(
|
|
5933
5925
|
"div",
|
|
5934
5926
|
{
|
|
@@ -5952,13 +5944,13 @@ function rn({
|
|
|
5952
5944
|
backdropFilter: "blur(10px)",
|
|
5953
5945
|
WebkitBackdropFilter: "blur(10px)",
|
|
5954
5946
|
opacity: p,
|
|
5955
|
-
transition: `opacity 0.4s ${
|
|
5947
|
+
transition: `opacity 0.4s ${Ci}`
|
|
5956
5948
|
},
|
|
5957
5949
|
onClick: i
|
|
5958
5950
|
}
|
|
5959
5951
|
),
|
|
5960
5952
|
/* @__PURE__ */ e(
|
|
5961
|
-
|
|
5953
|
+
$i,
|
|
5962
5954
|
{
|
|
5963
5955
|
type: t,
|
|
5964
5956
|
name: n,
|
|
@@ -6128,8 +6120,8 @@ function rn({
|
|
|
6128
6120
|
}
|
|
6129
6121
|
}
|
|
6130
6122
|
),
|
|
6131
|
-
/* @__PURE__ */ e("div", { style: { flex: 1, padding: "8px 0 24px" }, children: s ? /* @__PURE__ */ e(
|
|
6132
|
-
|
|
6123
|
+
/* @__PURE__ */ e("div", { style: { flex: 1, padding: "8px 0 24px" }, children: s ? /* @__PURE__ */ e(Ei, { items: s, revealPhase: h }) : /* @__PURE__ */ e(
|
|
6124
|
+
Pi,
|
|
6133
6125
|
{
|
|
6134
6126
|
type: t,
|
|
6135
6127
|
name: n,
|
|
@@ -6149,7 +6141,7 @@ function rn({
|
|
|
6149
6141
|
}
|
|
6150
6142
|
);
|
|
6151
6143
|
}
|
|
6152
|
-
function
|
|
6144
|
+
function Ai({ onSubmit: t }) {
|
|
6153
6145
|
const [n, o] = C(""), [i, r] = C(""), [a, s] = C(null), [l, u] = C(!1), d = n.trim().length > 0 && i.trim().length > 0;
|
|
6154
6146
|
return /* @__PURE__ */ e("div", { className: "cred-overlay", children: /* @__PURE__ */ c("form", { className: "cred-panel", onSubmit: (f) => {
|
|
6155
6147
|
f.preventDefault(), d && t({ accessKey: n.trim(), secretKey: i.trim() });
|
|
@@ -6241,27 +6233,27 @@ function Li({ onSubmit: t }) {
|
|
|
6241
6233
|
] }) });
|
|
6242
6234
|
}
|
|
6243
6235
|
const gt = et(null);
|
|
6244
|
-
function
|
|
6236
|
+
function Ti() {
|
|
6245
6237
|
const t = xe(gt);
|
|
6246
6238
|
if (!t)
|
|
6247
6239
|
throw new Error("useAIOpsData must be used within an AIOPsDashboard with dataEndpoint configured");
|
|
6248
6240
|
return t;
|
|
6249
6241
|
}
|
|
6250
|
-
function
|
|
6242
|
+
function Oi() {
|
|
6251
6243
|
return xe(gt);
|
|
6252
6244
|
}
|
|
6253
|
-
function
|
|
6254
|
-
const { data: n } =
|
|
6245
|
+
function tn(t) {
|
|
6246
|
+
const { data: n } = Ti();
|
|
6255
6247
|
return n[t] ?? null;
|
|
6256
6248
|
}
|
|
6257
|
-
function
|
|
6249
|
+
function Ii(t) {
|
|
6258
6250
|
const n = /* @__PURE__ */ new Set();
|
|
6259
6251
|
for (const o of Object.values(t))
|
|
6260
6252
|
for (const i of Object.values(o))
|
|
6261
6253
|
n.add(typeof i == "string" ? i : i.query);
|
|
6262
6254
|
return Array.from(n);
|
|
6263
6255
|
}
|
|
6264
|
-
function
|
|
6256
|
+
function Li(t) {
|
|
6265
6257
|
if (typeof t == "number") return t;
|
|
6266
6258
|
if (typeof t == "string") {
|
|
6267
6259
|
const n = Number(t);
|
|
@@ -6269,7 +6261,7 @@ function Mi(t) {
|
|
|
6269
6261
|
}
|
|
6270
6262
|
return t;
|
|
6271
6263
|
}
|
|
6272
|
-
function
|
|
6264
|
+
function Di({ config: t, children: n }) {
|
|
6273
6265
|
const [o, i] = C({}), [r, a] = C(null), [s, l] = C(!1), [u, d] = C(null), [p, f] = C(null), b = q(t);
|
|
6274
6266
|
b.current = t;
|
|
6275
6267
|
const h = q(r);
|
|
@@ -6328,20 +6320,20 @@ function zi({ config: t, children: n }) {
|
|
|
6328
6320
|
};
|
|
6329
6321
|
return /* @__PURE__ */ c(gt.Provider, { value: k, children: [
|
|
6330
6322
|
n,
|
|
6331
|
-
!r && /* @__PURE__ */ e(
|
|
6323
|
+
!r && /* @__PURE__ */ e(Ai, { onSubmit: m })
|
|
6332
6324
|
] });
|
|
6333
6325
|
}
|
|
6334
|
-
function
|
|
6326
|
+
function nn(t) {
|
|
6335
6327
|
const { liveData: n, dataEndpoint: o, dataBindings: i, dataRefreshInterval: r, serviceDataBindings: a } = t;
|
|
6336
6328
|
if (n && o && i) {
|
|
6337
|
-
const s =
|
|
6329
|
+
const s = Ii(i), l = [];
|
|
6338
6330
|
if (a)
|
|
6339
6331
|
for (const d of Object.values(a))
|
|
6340
6332
|
for (const p of d)
|
|
6341
6333
|
s.includes(p.query) || l.push(p.query);
|
|
6342
6334
|
const u = [...s, ...l];
|
|
6343
6335
|
return /* @__PURE__ */ e(
|
|
6344
|
-
|
|
6336
|
+
Di,
|
|
6345
6337
|
{
|
|
6346
6338
|
config: {
|
|
6347
6339
|
endpoint: o,
|
|
@@ -6367,7 +6359,7 @@ function Et({
|
|
|
6367
6359
|
serviceDataBindings: d,
|
|
6368
6360
|
children: p
|
|
6369
6361
|
}) {
|
|
6370
|
-
const f =
|
|
6362
|
+
const f = Oi(), [b] = C(20), [h] = C(!1), [y] = C(!0), [m] = C(0.45), [k] = C(3.3), [v, $] = C("compact"), [g, R] = C(0), [A, L] = C(null), [w, I] = C(null), [H, D] = C(0), [ee, ce] = C(0), pe = (x) => {
|
|
6371
6363
|
v === "compact" && (L(x), $("expanding"), R(0), setTimeout(() => R(1), 50), setTimeout(() => R(2), 800), setTimeout(() => R(3), 1200), setTimeout(() => R(4), 1600), setTimeout(() => R(5), 2e3), setTimeout(() => {
|
|
6372
6364
|
R(6), $("expanded");
|
|
6373
6365
|
}, 2400));
|
|
@@ -6390,7 +6382,7 @@ function Et({
|
|
|
6390
6382
|
}, [ee]);
|
|
6391
6383
|
const Se = () => {
|
|
6392
6384
|
I(null), D(0);
|
|
6393
|
-
}, G = o.find((x) => x.name === A), S = G?.status ?? "online", P = G?.dbSync ?? !0, M = G?.alerts, Y = f?.data, Z = u ??
|
|
6385
|
+
}, G = o.find((x) => x.name === A), S = G?.status ?? "online", P = G?.dbSync ?? !0, M = G?.alerts, Y = f?.data, Z = u ?? Li, Q = Be(() => {
|
|
6394
6386
|
if (!Y || !d) return null;
|
|
6395
6387
|
const x = {};
|
|
6396
6388
|
for (const [V, ae] of Object.entries(d))
|
|
@@ -6467,7 +6459,7 @@ function Et({
|
|
|
6467
6459
|
},
|
|
6468
6460
|
onClick: se,
|
|
6469
6461
|
children: /* @__PURE__ */ e(
|
|
6470
|
-
|
|
6462
|
+
Jt,
|
|
6471
6463
|
{
|
|
6472
6464
|
viewState: v,
|
|
6473
6465
|
animPhase: g,
|
|
@@ -6560,7 +6552,7 @@ function zt(t) {
|
|
|
6560
6552
|
{ id: "worker", label: "WORKER", unit: "%", color: "#bb55ff", data: T(n * 0.9, 15) }
|
|
6561
6553
|
];
|
|
6562
6554
|
}
|
|
6563
|
-
function
|
|
6555
|
+
function Ni(t, n, o) {
|
|
6564
6556
|
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";
|
|
6565
6557
|
return [
|
|
6566
6558
|
{ id: "inst-0", label: "INST-0", status: "online", element: /* @__PURE__ */ e(K, { color: "#bb55ff", label: "INST-0", status: "online" }) },
|
|
@@ -6572,7 +6564,7 @@ function Bi(t, n, o) {
|
|
|
6572
6564
|
{ id: "worker-3", label: "WORKER-3", status: s, detail: s === "critical" ? "Worker timeout" : void 0, element: /* @__PURE__ */ e(F, { color: "#bb55ff", label: "WORKER-3", status: s }) }
|
|
6573
6565
|
];
|
|
6574
6566
|
}
|
|
6575
|
-
function
|
|
6567
|
+
function Wi(t) {
|
|
6576
6568
|
const n = t?.queueDepth ?? 50;
|
|
6577
6569
|
return [
|
|
6578
6570
|
{ id: "traffic", label: "TRAFFIC", unit: "%", color: "#00e5ff", data: T(n, 20) },
|
|
@@ -6614,7 +6606,7 @@ function yt(t) {
|
|
|
6614
6606
|
];
|
|
6615
6607
|
return n.includes("critical") ? "critical" : n.includes("warning") ? "warning" : n.includes("offline") ? "offline" : "online";
|
|
6616
6608
|
}
|
|
6617
|
-
function
|
|
6609
|
+
function on(t) {
|
|
6618
6610
|
const n = yt(t), o = n === "critical" || n === "offline", i = n === "warning";
|
|
6619
6611
|
return [
|
|
6620
6612
|
{
|
|
@@ -6636,7 +6628,7 @@ function sn(t) {
|
|
|
6636
6628
|
}
|
|
6637
6629
|
];
|
|
6638
6630
|
}
|
|
6639
|
-
function
|
|
6631
|
+
function rn(t) {
|
|
6640
6632
|
const n = yt(t), o = n === "critical" || n === "offline", i = n === "warning";
|
|
6641
6633
|
return [
|
|
6642
6634
|
...t.dbSync ? [] : [{ level: "warning", message: "DB Replication Lag Detected" }],
|
|
@@ -6645,7 +6637,7 @@ function dn(t) {
|
|
|
6645
6637
|
...!o && !i && t.dbSync ? [{ level: "info", message: "All Systems Nominal" }] : []
|
|
6646
6638
|
];
|
|
6647
6639
|
}
|
|
6648
|
-
const
|
|
6640
|
+
const Mi = [
|
|
6649
6641
|
{ from: [330, 120], to: [220, 260], visibleAtPhase: 3 },
|
|
6650
6642
|
{ from: [330, 120], to: [440, 260], visibleAtPhase: 3 },
|
|
6651
6643
|
{ from: [220, 260], to: [165, 390], visibleAtPhase: 4 },
|
|
@@ -6658,7 +6650,7 @@ const Fi = [
|
|
|
6658
6650
|
{ from: [330, 390], to: [200, 520], visibleAtPhase: 5, color: "#ff8c00" },
|
|
6659
6651
|
{ from: [495, 390], to: [200, 520], visibleAtPhase: 5, color: "#ff8c00" }
|
|
6660
6652
|
];
|
|
6661
|
-
function
|
|
6653
|
+
function zi({ config: t }) {
|
|
6662
6654
|
const n = X.useContext(Re), o = n?.rotateY ?? 20, i = n?.autoRotateComponents ?? !0, { wdStatus: r, msStatus: a, srv1Status: s, srv2Status: l, srv3Status: u, pdbStatus: d, sdbStatus: p, dbSync: f } = t;
|
|
6663
6655
|
return /* @__PURE__ */ c(ze, { children: [
|
|
6664
6656
|
/* @__PURE__ */ e(
|
|
@@ -6722,8 +6714,8 @@ function Hi({ config: t }) {
|
|
|
6722
6714
|
name: "MSG-SRV",
|
|
6723
6715
|
status: a,
|
|
6724
6716
|
context: { queueDepth: 45 },
|
|
6725
|
-
subComponents:
|
|
6726
|
-
graphSeries:
|
|
6717
|
+
subComponents: Ni(a),
|
|
6718
|
+
graphSeries: Wi({ queueDepth: 45 })
|
|
6727
6719
|
},
|
|
6728
6720
|
children: /* @__PURE__ */ e(
|
|
6729
6721
|
Lt,
|
|
@@ -6918,10 +6910,10 @@ function Hi({ config: t }) {
|
|
|
6918
6910
|
children: /* @__PURE__ */ e(It, { synced: f, latencyMs: f ? 8 : 342 })
|
|
6919
6911
|
}
|
|
6920
6912
|
),
|
|
6921
|
-
/* @__PURE__ */ e(
|
|
6913
|
+
/* @__PURE__ */ e(Bi, { config: t })
|
|
6922
6914
|
] });
|
|
6923
6915
|
}
|
|
6924
|
-
function
|
|
6916
|
+
function Bi({ config: t }) {
|
|
6925
6917
|
const n = X.useContext(Re), { wdStatus: o, msStatus: i, srv1Status: r, srv2Status: a, srv3Status: s, pdbStatus: l, sdbStatus: u, dbSync: d } = t, p = n?.isSelected && n?.isExpandedPos;
|
|
6926
6918
|
return n?.isSelected ? /* @__PURE__ */ c("div", { style: { pointerEvents: "none" }, children: [
|
|
6927
6919
|
/* @__PURE__ */ e(
|
|
@@ -7046,15 +7038,15 @@ function Yi({ config: t }) {
|
|
|
7046
7038
|
)
|
|
7047
7039
|
] }) : null;
|
|
7048
7040
|
}
|
|
7049
|
-
function
|
|
7041
|
+
function an({ config: t, ...n }) {
|
|
7050
7042
|
return /* @__PURE__ */ e(
|
|
7051
7043
|
At,
|
|
7052
7044
|
{
|
|
7053
7045
|
name: t.name,
|
|
7054
7046
|
status: yt(t),
|
|
7055
|
-
connections:
|
|
7047
|
+
connections: Mi,
|
|
7056
7048
|
...n,
|
|
7057
|
-
children: /* @__PURE__ */ e(
|
|
7049
|
+
children: /* @__PURE__ */ e(zi, { config: t })
|
|
7058
7050
|
}
|
|
7059
7051
|
);
|
|
7060
7052
|
}
|
|
@@ -7069,7 +7061,7 @@ function mt(t) {
|
|
|
7069
7061
|
];
|
|
7070
7062
|
return n.includes("critical") ? "critical" : n.includes("warning") ? "warning" : n.includes("offline") ? "offline" : "online";
|
|
7071
7063
|
}
|
|
7072
|
-
function
|
|
7064
|
+
function ln(t) {
|
|
7073
7065
|
const n = mt(t), o = n === "critical" || n === "offline", i = n === "warning";
|
|
7074
7066
|
return [
|
|
7075
7067
|
{
|
|
@@ -7091,7 +7083,7 @@ function pn(t) {
|
|
|
7091
7083
|
}
|
|
7092
7084
|
];
|
|
7093
7085
|
}
|
|
7094
|
-
function
|
|
7086
|
+
function sn(t) {
|
|
7095
7087
|
const n = mt(t), o = n === "critical" || n === "offline", i = n === "warning";
|
|
7096
7088
|
return [
|
|
7097
7089
|
...t.dbSync ? [] : [{ level: "warning", message: "DB Replication Lag Detected" }],
|
|
@@ -7100,7 +7092,7 @@ function fn(t) {
|
|
|
7100
7092
|
...!o && !i && t.dbSync ? [{ level: "info", message: "All Systems Nominal" }] : []
|
|
7101
7093
|
];
|
|
7102
7094
|
}
|
|
7103
|
-
const
|
|
7095
|
+
const Ui = [
|
|
7104
7096
|
{ from: [330, 120], to: [330, 260], visibleAtPhase: 3 },
|
|
7105
7097
|
{ from: [330, 260], to: [165, 390], visibleAtPhase: 4 },
|
|
7106
7098
|
{ from: [330, 260], to: [330, 390], visibleAtPhase: 4 },
|
|
@@ -7109,7 +7101,7 @@ const Vi = [
|
|
|
7109
7101
|
{ from: [330, 390], to: [200, 520], visibleAtPhase: 5, color: "#ff8c00" },
|
|
7110
7102
|
{ from: [495, 390], to: [200, 520], visibleAtPhase: 5, color: "#ff8c00" }
|
|
7111
7103
|
];
|
|
7112
|
-
function
|
|
7104
|
+
function Fi({ config: t }) {
|
|
7113
7105
|
const n = X.useContext(Re), o = n?.rotateY ?? 20, i = n?.autoRotateComponents ?? !0, { dispStatus: r, srv1Status: a, srv2Status: s, srv3Status: l, pdbStatus: u, sdbStatus: d, dbSync: p } = t;
|
|
7114
7106
|
return /* @__PURE__ */ c(ze, { children: [
|
|
7115
7107
|
/* @__PURE__ */ e(
|
|
@@ -7335,10 +7327,10 @@ function _i({ config: t }) {
|
|
|
7335
7327
|
children: /* @__PURE__ */ e(It, { synced: p, latencyMs: p ? 8 : 342 })
|
|
7336
7328
|
}
|
|
7337
7329
|
),
|
|
7338
|
-
/* @__PURE__ */ e(
|
|
7330
|
+
/* @__PURE__ */ e(Hi, { config: t })
|
|
7339
7331
|
] });
|
|
7340
7332
|
}
|
|
7341
|
-
function
|
|
7333
|
+
function Hi({ config: t }) {
|
|
7342
7334
|
const n = X.useContext(Re), { dispStatus: o, srv1Status: i, srv2Status: r, srv3Status: a, pdbStatus: s, sdbStatus: l, dbSync: u } = t, d = n?.isSelected && n?.isExpandedPos;
|
|
7343
7335
|
return n?.isSelected ? /* @__PURE__ */ c("div", { style: { pointerEvents: "none" }, children: [
|
|
7344
7336
|
/* @__PURE__ */ e(
|
|
@@ -7448,80 +7440,80 @@ function ji({ config: t }) {
|
|
|
7448
7440
|
)
|
|
7449
7441
|
] }) : null;
|
|
7450
7442
|
}
|
|
7451
|
-
function
|
|
7443
|
+
function dn({ config: t, ...n }) {
|
|
7452
7444
|
return /* @__PURE__ */ e(
|
|
7453
7445
|
At,
|
|
7454
7446
|
{
|
|
7455
7447
|
name: t.name,
|
|
7456
7448
|
status: mt(t),
|
|
7457
|
-
connections:
|
|
7449
|
+
connections: Ui,
|
|
7458
7450
|
...n,
|
|
7459
|
-
children: /* @__PURE__ */ e(
|
|
7451
|
+
children: /* @__PURE__ */ e(Fi, { config: t })
|
|
7460
7452
|
}
|
|
7461
7453
|
);
|
|
7462
7454
|
}
|
|
7463
7455
|
export {
|
|
7464
|
-
|
|
7456
|
+
nn as AIOPsDashboard,
|
|
7465
7457
|
Ke as CPU3D,
|
|
7466
|
-
|
|
7458
|
+
Jt as Carousel,
|
|
7467
7459
|
pt as CarouselContext,
|
|
7468
7460
|
ft as CarouselItemContext,
|
|
7469
|
-
|
|
7470
|
-
|
|
7471
|
-
|
|
7461
|
+
Kt as ComponentDialog,
|
|
7462
|
+
en as ComponentDrillView,
|
|
7463
|
+
Di as DataProvider,
|
|
7472
7464
|
je as Database3D,
|
|
7473
|
-
|
|
7465
|
+
Ki as DatabaseNode,
|
|
7474
7466
|
Ne as DriveBay3D,
|
|
7475
|
-
|
|
7476
|
-
|
|
7477
|
-
|
|
7478
|
-
|
|
7467
|
+
Ui as EXCHANGE_CONNECTIONS,
|
|
7468
|
+
dn as ExchangeService,
|
|
7469
|
+
ji as HOLO_BLUE,
|
|
7470
|
+
_i as HOLO_CYAN,
|
|
7479
7471
|
dt as HOLO_GLASS,
|
|
7480
7472
|
Ue as HOLO_SURFACE,
|
|
7481
|
-
|
|
7482
|
-
|
|
7473
|
+
$i as HistoricalGraphPanel,
|
|
7474
|
+
ii as HoloBase,
|
|
7483
7475
|
ht as Human3D,
|
|
7484
|
-
|
|
7476
|
+
Gi as HumanNode,
|
|
7485
7477
|
Ge as Memory3D,
|
|
7486
7478
|
Lt as MessageServer3D,
|
|
7487
|
-
|
|
7479
|
+
Ji as MessageServerNode,
|
|
7488
7480
|
Nt as NetworkBlock3D,
|
|
7489
7481
|
U as NodeCallout,
|
|
7490
7482
|
Qe as Platter3D,
|
|
7491
7483
|
K as Port3D,
|
|
7492
|
-
|
|
7493
|
-
|
|
7484
|
+
an as SAPService,
|
|
7485
|
+
Mi as SAP_CONNECTIONS,
|
|
7494
7486
|
E as STATUS_CFG,
|
|
7495
7487
|
ke as Server3D,
|
|
7496
|
-
|
|
7488
|
+
Qi as ServerNode,
|
|
7497
7489
|
At as Service,
|
|
7498
7490
|
Re as ServiceContext,
|
|
7499
|
-
|
|
7491
|
+
qt as ServiceDialog,
|
|
7500
7492
|
O as ServiceNode,
|
|
7501
|
-
|
|
7493
|
+
ei as SvgConnection,
|
|
7502
7494
|
It as SyncBridge,
|
|
7503
7495
|
F as ThreadPool3D,
|
|
7504
7496
|
bt as WebDispatcher3D,
|
|
7505
|
-
|
|
7506
|
-
|
|
7507
|
-
|
|
7497
|
+
Zi as WebDispatcherNode,
|
|
7498
|
+
sn as computeExchangeDialogAlerts,
|
|
7499
|
+
ln as computeExchangeDialogMetrics,
|
|
7508
7500
|
mt as computeExchangeServiceStatus,
|
|
7509
|
-
|
|
7510
|
-
|
|
7501
|
+
rn as computeSAPDialogAlerts,
|
|
7502
|
+
on as computeSAPDialogMetrics,
|
|
7511
7503
|
yt as computeSAPServiceStatus,
|
|
7512
|
-
|
|
7504
|
+
Li as defaultDataTransform,
|
|
7513
7505
|
Je as getDatabaseGraphSeries,
|
|
7514
7506
|
Ze as getDatabaseSubComponents,
|
|
7515
7507
|
zt as getDispatcherGraphSeries,
|
|
7516
7508
|
Mt as getDispatcherSubComponents,
|
|
7517
|
-
|
|
7518
|
-
|
|
7509
|
+
Wi as getMessageServerGraphSeries,
|
|
7510
|
+
Ni as getMessageServerSubComponents,
|
|
7519
7511
|
Me as getServerGraphSeries,
|
|
7520
7512
|
We as getServerSubComponents,
|
|
7521
7513
|
ct as makeFaceStyles,
|
|
7522
|
-
|
|
7523
|
-
|
|
7524
|
-
|
|
7525
|
-
|
|
7526
|
-
|
|
7514
|
+
Ti as useAIOpsData,
|
|
7515
|
+
Oi as useAIOpsDataOptional,
|
|
7516
|
+
Xi as useCarouselContext,
|
|
7517
|
+
qi as useCarouselItemContext,
|
|
7518
|
+
tn as useQueryResult
|
|
7527
7519
|
};
|