react-aiops 0.1.2 → 0.1.3
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/ComponentDialog.d.ts.map +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/index.js +395 -369
- package/dist/types.d.ts +30 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as d, jsx as e, Fragment as Ce } from "react/jsx-runtime";
|
|
2
|
-
import J, { createContext as Xe, useContext as ve, useState as
|
|
2
|
+
import J, { createContext as Xe, useContext as ve, useState as L, useEffect as Ee, useMemo as Et, useRef as ee } from "react";
|
|
3
3
|
const Tt = {
|
|
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: "⚠️" },
|
|
@@ -146,7 +146,7 @@ function At({
|
|
|
146
146
|
}
|
|
147
147
|
),
|
|
148
148
|
c.map((p, h) => {
|
|
149
|
-
const
|
|
149
|
+
const y = Tt[p.level];
|
|
150
150
|
return /* @__PURE__ */ d(
|
|
151
151
|
"div",
|
|
152
152
|
{
|
|
@@ -154,15 +154,15 @@ function At({
|
|
|
154
154
|
display: "flex",
|
|
155
155
|
gap: 8,
|
|
156
156
|
alignItems: "flex-start",
|
|
157
|
-
color:
|
|
157
|
+
color: y.color,
|
|
158
158
|
fontSize: 12,
|
|
159
|
-
background:
|
|
159
|
+
background: y.bg,
|
|
160
160
|
padding: "6px 10px",
|
|
161
161
|
borderRadius: 4,
|
|
162
|
-
borderLeft: `2px solid ${
|
|
162
|
+
borderLeft: `2px solid ${y.border}`
|
|
163
163
|
},
|
|
164
164
|
children: [
|
|
165
|
-
/* @__PURE__ */ e("span", { children:
|
|
165
|
+
/* @__PURE__ */ e("span", { children: y.icon }),
|
|
166
166
|
" ",
|
|
167
167
|
/* @__PURE__ */ e("span", { children: p.message })
|
|
168
168
|
]
|
|
@@ -177,7 +177,7 @@ function At({
|
|
|
177
177
|
}
|
|
178
178
|
);
|
|
179
179
|
}
|
|
180
|
-
const
|
|
180
|
+
const w = {
|
|
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)" },
|
|
@@ -235,12 +235,12 @@ function qe(t, n, o) {
|
|
|
235
235
|
}
|
|
236
236
|
const Ve = "cubic-bezier(0.34, 1.56, 0.64, 1)", _e = "cubic-bezier(0.16, 1, 0.3, 1)";
|
|
237
237
|
function st(t) {
|
|
238
|
-
return
|
|
238
|
+
return w[t]?.color ?? w.online.color;
|
|
239
239
|
}
|
|
240
240
|
function Lt(t, n, o) {
|
|
241
241
|
return t >= o ? "#ff2255" : t >= n ? "#ff8c00" : "#00e5ff";
|
|
242
242
|
}
|
|
243
|
-
function
|
|
243
|
+
function Le(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
246
|
function It({
|
|
@@ -250,42 +250,64 @@ function It({
|
|
|
250
250
|
sceneWidth: i = 660,
|
|
251
251
|
sceneHeight: r = 600
|
|
252
252
|
}) {
|
|
253
|
-
const { type: a, name: s, status: l, ex: f, ey: c, context: p = {} } = t, h = st(l),
|
|
253
|
+
const { type: a, name: s, status: l, ex: f, ey: c, context: p = {} } = t, h = st(l), y = f >= i / 2, b = c >= r / 2, g = {
|
|
254
254
|
position: "fixed",
|
|
255
|
-
...
|
|
256
|
-
...
|
|
257
|
-
}, m =
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
255
|
+
...y ? { right: 28 } : { left: 28 },
|
|
256
|
+
...b ? { bottom: 110 } : { top: 72 }
|
|
257
|
+
}, m = y ? 40 : -40, x = b ? 30 : -30, v = p.dialogMetrics;
|
|
258
|
+
let k;
|
|
259
|
+
if (v && v.length > 0)
|
|
260
|
+
k = v.map((u, R) => {
|
|
261
|
+
const A = u.warnAt ?? 70, $ = u.critAt ?? 85;
|
|
262
|
+
return {
|
|
263
|
+
id: u.id,
|
|
264
|
+
label: u.label,
|
|
265
|
+
sublabel: u.sublabel,
|
|
266
|
+
value: u.value,
|
|
267
|
+
unit: u.unit ?? "%",
|
|
268
|
+
status: Le(l, u.value, A, $),
|
|
269
|
+
icon: u.icon ?? "cpu",
|
|
270
|
+
delay: R,
|
|
271
|
+
colorOverride: u.color,
|
|
272
|
+
warnAt: A,
|
|
273
|
+
critAt: $
|
|
274
|
+
};
|
|
275
|
+
});
|
|
276
|
+
else {
|
|
277
|
+
const u = p.cpuLoad ?? p.traffic ?? 50, R = p.memLoad ?? p.queueDepth ?? 60, A = p.capacity ?? 72, $ = Le(l, u, 70, 85), V = Le(l, R, 75, 88), W = Le(l, A, 75, 90);
|
|
278
|
+
k = [
|
|
279
|
+
{
|
|
280
|
+
id: "cpu",
|
|
281
|
+
label: a === "dispatcher" ? "TRAFFIC" : a === "messageServer" ? "QUEUE" : "CPU",
|
|
282
|
+
sublabel: a === "dispatcher" ? "PORT LOAD" : a === "messageServer" ? "QUEUE DEPTH" : "PROCESSOR",
|
|
283
|
+
value: u,
|
|
284
|
+
unit: "%",
|
|
285
|
+
status: $,
|
|
286
|
+
icon: "cpu",
|
|
287
|
+
delay: 0
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
id: "mem",
|
|
291
|
+
label: "MEMORY",
|
|
292
|
+
sublabel: a === "database" ? "BUFFER POOL" : "HEAP USAGE",
|
|
293
|
+
value: R,
|
|
294
|
+
unit: "%",
|
|
295
|
+
status: V,
|
|
296
|
+
icon: "mem",
|
|
297
|
+
delay: 1
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
id: "storage",
|
|
301
|
+
label: "STORAGE",
|
|
302
|
+
sublabel: a === "database" ? "TABLESPACE" : "DISK I/O",
|
|
303
|
+
value: A,
|
|
304
|
+
unit: "%",
|
|
305
|
+
status: W,
|
|
306
|
+
icon: "disk",
|
|
307
|
+
delay: 2
|
|
308
|
+
}
|
|
309
|
+
];
|
|
310
|
+
}
|
|
289
311
|
return /* @__PURE__ */ d(
|
|
290
312
|
"div",
|
|
291
313
|
{
|
|
@@ -307,7 +329,7 @@ function It({
|
|
|
307
329
|
animation: o ? "comp-dialog-border-glow 3s ease-in-out infinite" : "none",
|
|
308
330
|
"--dialog-color": h
|
|
309
331
|
},
|
|
310
|
-
onClick: (
|
|
332
|
+
onClick: (u) => u.stopPropagation(),
|
|
311
333
|
children: [
|
|
312
334
|
/* @__PURE__ */ e(
|
|
313
335
|
"div",
|
|
@@ -371,12 +393,12 @@ function It({
|
|
|
371
393
|
borderRight: `2px solid ${h}66`,
|
|
372
394
|
borderRadius: "0 0 14px 0"
|
|
373
395
|
}
|
|
374
|
-
].map((
|
|
396
|
+
].map((u, R) => /* @__PURE__ */ e(
|
|
375
397
|
"div",
|
|
376
398
|
{
|
|
377
|
-
style: { position: "absolute", width: 18, height: 18, pointerEvents: "none", ...
|
|
399
|
+
style: { position: "absolute", width: 18, height: 18, pointerEvents: "none", ...u }
|
|
378
400
|
},
|
|
379
|
-
|
|
401
|
+
R
|
|
380
402
|
)),
|
|
381
403
|
/* @__PURE__ */ d(
|
|
382
404
|
"div",
|
|
@@ -455,8 +477,8 @@ function It({
|
|
|
455
477
|
/* @__PURE__ */ e(
|
|
456
478
|
"button",
|
|
457
479
|
{
|
|
458
|
-
onClick: (
|
|
459
|
-
|
|
480
|
+
onClick: (u) => {
|
|
481
|
+
u.stopPropagation(), n();
|
|
460
482
|
},
|
|
461
483
|
style: {
|
|
462
484
|
width: 34,
|
|
@@ -474,11 +496,11 @@ function It({
|
|
|
474
496
|
lineHeight: 1,
|
|
475
497
|
flexShrink: 0
|
|
476
498
|
},
|
|
477
|
-
onMouseEnter: (
|
|
478
|
-
|
|
499
|
+
onMouseEnter: (u) => {
|
|
500
|
+
u.currentTarget.style.background = `${h}22`, u.currentTarget.style.boxShadow = `0 0 12px ${h}44`;
|
|
479
501
|
},
|
|
480
|
-
onMouseLeave: (
|
|
481
|
-
|
|
502
|
+
onMouseLeave: (u) => {
|
|
503
|
+
u.currentTarget.style.background = `linear-gradient(135deg, rgba(0,0,0,0.5) 0%, ${h}08 100%)`, u.currentTarget.style.boxShadow = "none";
|
|
482
504
|
},
|
|
483
505
|
children: "×"
|
|
484
506
|
}
|
|
@@ -497,7 +519,7 @@ function It({
|
|
|
497
519
|
position: "relative",
|
|
498
520
|
zIndex: 2
|
|
499
521
|
},
|
|
500
|
-
children:
|
|
522
|
+
children: k.map((u) => /* @__PURE__ */ e(Ot, { metric: u, visible: o, accentColor: h }, u.id))
|
|
501
523
|
}
|
|
502
524
|
),
|
|
503
525
|
/* @__PURE__ */ d(
|
|
@@ -551,7 +573,7 @@ function Ot({
|
|
|
551
573
|
visible: n,
|
|
552
574
|
accentColor: o
|
|
553
575
|
}) {
|
|
554
|
-
const { label: i, sublabel: r, value: a, unit: s, status: l, icon: f, delay: c } = t,
|
|
576
|
+
const { label: i, sublabel: r, value: a, unit: s, status: l, icon: f, delay: c, colorOverride: p, warnAt: h = 70, critAt: y = 85 } = t, b = p ?? Lt(a, h, y), g = p ?? st(l);
|
|
555
577
|
return /* @__PURE__ */ d(
|
|
556
578
|
"div",
|
|
557
579
|
{
|
|
@@ -571,8 +593,8 @@ function Ot({
|
|
|
571
593
|
width: 52,
|
|
572
594
|
height: 52,
|
|
573
595
|
borderRadius: 12,
|
|
574
|
-
border: `1px solid ${
|
|
575
|
-
background: `linear-gradient(135deg, ${
|
|
596
|
+
border: `1px solid ${g}44`,
|
|
597
|
+
background: `linear-gradient(135deg, ${g}0c 0%, ${g}04 100%)`,
|
|
576
598
|
display: "flex",
|
|
577
599
|
alignItems: "center",
|
|
578
600
|
justifyContent: "center",
|
|
@@ -582,7 +604,7 @@ function Ot({
|
|
|
582
604
|
animation: n ? `comp-dialog-icon-pop 0.5s ${Ve} ${0.35 + c * 0.12}s both` : "none"
|
|
583
605
|
},
|
|
584
606
|
children: [
|
|
585
|
-
/* @__PURE__ */ e(Dt, { type: f, color:
|
|
607
|
+
/* @__PURE__ */ e(Dt, { type: f, color: g }),
|
|
586
608
|
(l === "warning" || l === "critical") && /* @__PURE__ */ e(
|
|
587
609
|
"div",
|
|
588
610
|
{
|
|
@@ -593,8 +615,8 @@ function Ot({
|
|
|
593
615
|
width: 5,
|
|
594
616
|
height: 5,
|
|
595
617
|
borderRadius: "50%",
|
|
596
|
-
background:
|
|
597
|
-
boxShadow: `0 0 6px ${
|
|
618
|
+
background: g,
|
|
619
|
+
boxShadow: `0 0 6px ${g}`,
|
|
598
620
|
animation: "holo-led-blink 1.2s infinite"
|
|
599
621
|
}
|
|
600
622
|
}
|
|
@@ -645,8 +667,8 @@ function Ot({
|
|
|
645
667
|
style: {
|
|
646
668
|
fontSize: 20,
|
|
647
669
|
fontWeight: 700,
|
|
648
|
-
color:
|
|
649
|
-
textShadow: `0 0 8px ${
|
|
670
|
+
color: b,
|
|
671
|
+
textShadow: `0 0 8px ${b}44`,
|
|
650
672
|
fontFamily: "'Courier New', monospace"
|
|
651
673
|
},
|
|
652
674
|
children: [
|
|
@@ -678,8 +700,8 @@ function Ot({
|
|
|
678
700
|
width: `${a}%`,
|
|
679
701
|
height: "100%",
|
|
680
702
|
borderRadius: 3,
|
|
681
|
-
background: `linear-gradient(90deg, ${
|
|
682
|
-
boxShadow: `0 0 8px ${
|
|
703
|
+
background: `linear-gradient(90deg, ${b}66, ${b})`,
|
|
704
|
+
boxShadow: `0 0 8px ${b}44`,
|
|
683
705
|
transformOrigin: "left center",
|
|
684
706
|
animation: n ? `comp-dialog-metric-fill 0.8s ${_e} ${0.4 + c * 0.12}s both` : "none"
|
|
685
707
|
}
|
|
@@ -690,7 +712,7 @@ function Ot({
|
|
|
690
712
|
{
|
|
691
713
|
style: {
|
|
692
714
|
position: "absolute",
|
|
693
|
-
left:
|
|
715
|
+
left: `${h}%`,
|
|
694
716
|
top: 0,
|
|
695
717
|
bottom: 0,
|
|
696
718
|
width: 1,
|
|
@@ -703,7 +725,7 @@ function Ot({
|
|
|
703
725
|
{
|
|
704
726
|
style: {
|
|
705
727
|
position: "absolute",
|
|
706
|
-
left:
|
|
728
|
+
left: `${y}%`,
|
|
707
729
|
top: 0,
|
|
708
730
|
bottom: 0,
|
|
709
731
|
width: 1,
|
|
@@ -714,16 +736,18 @@ function Ot({
|
|
|
714
736
|
]
|
|
715
737
|
}
|
|
716
738
|
),
|
|
717
|
-
/* @__PURE__ */ d("div", { style: {
|
|
718
|
-
/* @__PURE__ */ e("span", { style: { fontSize: 6, color: "rgba(255,255,255,0.15)", letterSpacing: "0.1em" }, children: "0" }),
|
|
739
|
+
/* @__PURE__ */ d("div", { style: { position: "relative", height: 10, marginTop: 2 }, children: [
|
|
740
|
+
/* @__PURE__ */ e("span", { style: { position: "absolute", left: 0, fontSize: 6, color: "rgba(255,255,255,0.15)", letterSpacing: "0.1em" }, children: "0" }),
|
|
719
741
|
/* @__PURE__ */ e(
|
|
720
742
|
"span",
|
|
721
743
|
{
|
|
722
744
|
style: {
|
|
745
|
+
position: "absolute",
|
|
746
|
+
left: `${h}%`,
|
|
747
|
+
transform: "translateX(-50%)",
|
|
723
748
|
fontSize: 6,
|
|
724
749
|
color: "rgba(255,140,0,0.3)",
|
|
725
|
-
letterSpacing: "0.1em"
|
|
726
|
-
marginRight: "18%"
|
|
750
|
+
letterSpacing: "0.1em"
|
|
727
751
|
},
|
|
728
752
|
children: "WARN"
|
|
729
753
|
}
|
|
@@ -732,15 +756,17 @@ function Ot({
|
|
|
732
756
|
"span",
|
|
733
757
|
{
|
|
734
758
|
style: {
|
|
759
|
+
position: "absolute",
|
|
760
|
+
left: `${y}%`,
|
|
761
|
+
transform: "translateX(-50%)",
|
|
735
762
|
fontSize: 6,
|
|
736
763
|
color: "rgba(255,34,85,0.3)",
|
|
737
|
-
letterSpacing: "0.1em"
|
|
738
|
-
marginRight: "6%"
|
|
764
|
+
letterSpacing: "0.1em"
|
|
739
765
|
},
|
|
740
766
|
children: "CRIT"
|
|
741
767
|
}
|
|
742
768
|
),
|
|
743
|
-
/* @__PURE__ */ e("span", { style: { fontSize: 6, color: "rgba(255,255,255,0.15)", letterSpacing: "0.1em" }, children: "100" })
|
|
769
|
+
/* @__PURE__ */ e("span", { style: { position: "absolute", right: 0, fontSize: 6, color: "rgba(255,255,255,0.15)", letterSpacing: "0.1em" }, children: "100" })
|
|
744
770
|
] })
|
|
745
771
|
] })
|
|
746
772
|
]
|
|
@@ -852,30 +878,30 @@ function Wt({
|
|
|
852
878
|
componentScale: c = 0.35,
|
|
853
879
|
drillZoom: p = 3.3,
|
|
854
880
|
autoRotateCarousel: h = !0,
|
|
855
|
-
carouselSpeed:
|
|
856
|
-
width:
|
|
881
|
+
carouselSpeed: y = 6e-3,
|
|
882
|
+
width: b = 950,
|
|
857
883
|
height: g = 790,
|
|
858
884
|
onSelectSystem: m,
|
|
859
885
|
onBackgroundClick: x,
|
|
860
|
-
onComponentClick:
|
|
861
|
-
onCloseDrill:
|
|
862
|
-
selectedSystemStatus:
|
|
863
|
-
selectedSystemDbSync:
|
|
864
|
-
selectedSystemMetrics:
|
|
865
|
-
selectedSystemAlerts:
|
|
886
|
+
onComponentClick: v,
|
|
887
|
+
onCloseDrill: k,
|
|
888
|
+
selectedSystemStatus: u = "online",
|
|
889
|
+
selectedSystemDbSync: R = !0,
|
|
890
|
+
selectedSystemMetrics: A,
|
|
891
|
+
selectedSystemAlerts: $
|
|
866
892
|
}) {
|
|
867
|
-
const [V,
|
|
893
|
+
const [V, W] = L(0);
|
|
868
894
|
Ee(() => {
|
|
869
|
-
let
|
|
895
|
+
let O;
|
|
870
896
|
if ((o === "compact" || o === "collapsing") && h) {
|
|
871
897
|
const F = () => {
|
|
872
|
-
|
|
898
|
+
W((ne) => ne + y), O = requestAnimationFrame(F);
|
|
873
899
|
};
|
|
874
|
-
|
|
900
|
+
O = requestAnimationFrame(F);
|
|
875
901
|
}
|
|
876
|
-
return () => cancelAnimationFrame(
|
|
877
|
-
}, [o, h,
|
|
878
|
-
const
|
|
902
|
+
return () => cancelAnimationFrame(O);
|
|
903
|
+
}, [o, h, y]);
|
|
904
|
+
const B = J.Children.toArray(t), X = B.length, z = Et(() => ({
|
|
879
905
|
totalSystems: X,
|
|
880
906
|
carouselRotation: V,
|
|
881
907
|
viewState: o,
|
|
@@ -887,8 +913,8 @@ function Wt({
|
|
|
887
913
|
componentScale: c,
|
|
888
914
|
drillZoom: p,
|
|
889
915
|
onSelectSystem: m,
|
|
890
|
-
onComponentClick:
|
|
891
|
-
containerWidth:
|
|
916
|
+
onComponentClick: v,
|
|
917
|
+
containerWidth: b
|
|
892
918
|
}), [
|
|
893
919
|
X,
|
|
894
920
|
V,
|
|
@@ -901,11 +927,11 @@ function Wt({
|
|
|
901
927
|
c,
|
|
902
928
|
p,
|
|
903
929
|
m,
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
]), te =
|
|
930
|
+
v,
|
|
931
|
+
b
|
|
932
|
+
]), te = B.map((O, F) => /* @__PURE__ */ e(Ke.Provider, { value: { index: F }, children: O }, F)), ie = o === "expanded" || o === "expanding" && i >= 4;
|
|
907
933
|
return /* @__PURE__ */ d(Ge.Provider, { value: z, children: [
|
|
908
|
-
/* @__PURE__ */ d("div", { style: { position: "relative", width:
|
|
934
|
+
/* @__PURE__ */ d("div", { style: { position: "relative", width: b, height: g, margin: "0 auto", flexShrink: 0 }, children: [
|
|
909
935
|
n && (o === "compact" || o === "collapsing") && /* @__PURE__ */ e(
|
|
910
936
|
"img",
|
|
911
937
|
{
|
|
@@ -928,24 +954,24 @@ function Wt({
|
|
|
928
954
|
),
|
|
929
955
|
te
|
|
930
956
|
] }),
|
|
931
|
-
r && /* @__PURE__ */ e("div", { onClick: (
|
|
957
|
+
r && /* @__PURE__ */ e("div", { onClick: (O) => O.stopPropagation(), children: /* @__PURE__ */ e(
|
|
932
958
|
At,
|
|
933
959
|
{
|
|
934
960
|
name: r,
|
|
935
|
-
status:
|
|
936
|
-
dbSync:
|
|
961
|
+
status: u,
|
|
962
|
+
dbSync: R,
|
|
937
963
|
visible: ie && !a,
|
|
938
|
-
metrics:
|
|
939
|
-
alerts:
|
|
964
|
+
metrics: A,
|
|
965
|
+
alerts: $
|
|
940
966
|
}
|
|
941
967
|
) }),
|
|
942
|
-
a && /* @__PURE__ */ e("div", { onClick: (
|
|
968
|
+
a && /* @__PURE__ */ e("div", { onClick: (O) => O.stopPropagation(), children: /* @__PURE__ */ e(
|
|
943
969
|
It,
|
|
944
970
|
{
|
|
945
971
|
component: a,
|
|
946
|
-
onClose:
|
|
972
|
+
onClose: k,
|
|
947
973
|
visible: s >= 0.3,
|
|
948
|
-
sceneWidth:
|
|
974
|
+
sceneWidth: b,
|
|
949
975
|
sceneHeight: g
|
|
950
976
|
}
|
|
951
977
|
) })
|
|
@@ -1018,14 +1044,14 @@ function zt({
|
|
|
1018
1044
|
] })
|
|
1019
1045
|
] });
|
|
1020
1046
|
}
|
|
1021
|
-
const
|
|
1047
|
+
const Mt = [
|
|
1022
1048
|
{ scale: 1, op: 1, delay: "0.0s", bw: "2px", glow: 1 },
|
|
1023
1049
|
{ scale: 0.82, op: 0.88, delay: "0.5s", bw: "1.5px", glow: 0.7 },
|
|
1024
1050
|
{ scale: 0.64, op: 0.72, delay: "1.0s", bw: "1px", glow: 0.5 },
|
|
1025
1051
|
{ scale: 0.47, op: 0.58, delay: "1.5s", bw: "1px", glow: 0.35 },
|
|
1026
1052
|
{ scale: 0.3, op: 0.45, delay: "2.0s", bw: "1px", glow: 0.25 }
|
|
1027
1053
|
];
|
|
1028
|
-
function
|
|
1054
|
+
function Nt({
|
|
1029
1055
|
children: t,
|
|
1030
1056
|
size: n = 230,
|
|
1031
1057
|
widthRatio: o = 1,
|
|
@@ -1191,7 +1217,7 @@ function Mt({
|
|
|
1191
1217
|
background: `radial-gradient(ellipse, ${i}88 0%, ${i}33 40%, transparent 72%)`,
|
|
1192
1218
|
filter: "blur(12px)"
|
|
1193
1219
|
} }),
|
|
1194
|
-
|
|
1220
|
+
Mt.map((s, l) => /* @__PURE__ */ e("div", { style: {
|
|
1195
1221
|
position: "absolute",
|
|
1196
1222
|
width: a * s.scale,
|
|
1197
1223
|
height: n * s.scale,
|
|
@@ -1248,20 +1274,20 @@ function dt({
|
|
|
1248
1274
|
_animPhase: c,
|
|
1249
1275
|
_selectedSystem: p,
|
|
1250
1276
|
_selectedComponent: h,
|
|
1251
|
-
_rotateY:
|
|
1252
|
-
_autoRotateComponents:
|
|
1277
|
+
_rotateY: y,
|
|
1278
|
+
_autoRotateComponents: b,
|
|
1253
1279
|
_componentScale: g,
|
|
1254
1280
|
_drillZoom: m,
|
|
1255
1281
|
_onSelectSystem: x,
|
|
1256
|
-
_onComponentClick:
|
|
1257
|
-
_containerWidth:
|
|
1282
|
+
_onComponentClick: v,
|
|
1283
|
+
_containerWidth: k
|
|
1258
1284
|
}) {
|
|
1259
|
-
const
|
|
1285
|
+
const u = ve(Ge), R = ve(Ke), A = a ?? R.index, $ = s ?? u?.totalSystems ?? 1, V = l ?? u?.carouselRotation ?? 0, W = f ?? u?.viewState ?? "compact", B = c ?? u?.animPhase ?? 0, X = p ?? u?.selectedSystem ?? null, z = h ?? u?.selectedComponent ?? null, te = y ?? u?.rotateY ?? 20, ie = b ?? u?.autoRotateComponents ?? !0, O = g ?? u?.componentScale ?? 0.35, F = m ?? u?.drillZoom ?? 3.3, ne = x ?? u?.onSelectSystem, Se = v ?? u?.onComponentClick, $e = k ?? u?.containerWidth ?? 950, Q = X === t, M = Q && (W === "expanded" || W === "expanding" && B >= 1), C = !M, ke = ($e - Ft) / 2, oe = it + ke, le = A / $ * Math.PI * 2 + V, Ne = 420, Te = 160, Re = oe + Math.cos(le) * Ne, se = 450 + Math.sin(le) * Te, mt = Math.round(se), Be = !Q && (W === "expanding" || W === "expanded"), xt = Be ? 0 : 1, Pe = C ? 0.3 + (Math.sin(le) + 1) * 0.1 : 1, vt = C ? Pe : O, Ae = W === "compact" || W === "collapsing" ? "none" : "all 1s cubic-bezier(0.34, 1.56, 0.64, 1)", tt = Q && z, Fe = tt ? F : 1, wt = z?.ex ?? 330, St = z?.ey ?? 300, { size: $t = 90, color: kt = "#00e5ff", widthRatio: Rt = 3 } = i ?? {}, Pt = {
|
|
1260
1286
|
name: t,
|
|
1261
1287
|
isSelected: Q,
|
|
1262
|
-
isExpandedPos:
|
|
1288
|
+
isExpandedPos: M,
|
|
1263
1289
|
isCompact: C,
|
|
1264
|
-
animPhase:
|
|
1290
|
+
animPhase: B,
|
|
1265
1291
|
compactCx: Re,
|
|
1266
1292
|
compactCy: se,
|
|
1267
1293
|
groupScale: Pe,
|
|
@@ -1286,12 +1312,12 @@ function dt({
|
|
|
1286
1312
|
opacity: xt,
|
|
1287
1313
|
transition: `opacity 0.8s ease, filter 0.5s ease, transform 0.6s ${Bt}`,
|
|
1288
1314
|
filter: C && Math.sin(le) < -0.5 ? "brightness(0.5) blur(2px)" : "none",
|
|
1289
|
-
zIndex: Q ? 500 :
|
|
1315
|
+
zIndex: Q ? 500 : Be ? 0 : mt,
|
|
1290
1316
|
transformOrigin: `${oe}px ${nt}px`,
|
|
1291
|
-
transform: tt ? `translate(${-(wt - it) *
|
|
1317
|
+
transform: tt ? `translate(${-(wt - it) * Fe}px, ${-(St - nt) * Fe}px) scale(${Fe})` : "none"
|
|
1292
1318
|
},
|
|
1293
1319
|
children: [
|
|
1294
|
-
C && !
|
|
1320
|
+
C && !Be && /* @__PURE__ */ e(
|
|
1295
1321
|
"div",
|
|
1296
1322
|
{
|
|
1297
1323
|
style: {
|
|
@@ -1363,9 +1389,9 @@ function dt({
|
|
|
1363
1389
|
{
|
|
1364
1390
|
style: {
|
|
1365
1391
|
position: "absolute",
|
|
1366
|
-
left:
|
|
1367
|
-
top:
|
|
1368
|
-
transform: `translate(-50%, -50%) scale(${
|
|
1392
|
+
left: M ? oe : Re,
|
|
1393
|
+
top: M ? 48 : se - 180,
|
|
1394
|
+
transform: `translate(-50%, -50%) scale(${M ? 1.2 : Pe * 1.5})`,
|
|
1369
1395
|
opacity: 1,
|
|
1370
1396
|
pointerEvents: "none",
|
|
1371
1397
|
zIndex: 100,
|
|
@@ -1389,7 +1415,7 @@ function dt({
|
|
|
1389
1415
|
style: {
|
|
1390
1416
|
position: "absolute",
|
|
1391
1417
|
top: 0,
|
|
1392
|
-
left:
|
|
1418
|
+
left: M ? ke : 0,
|
|
1393
1419
|
width: 660,
|
|
1394
1420
|
height: 640,
|
|
1395
1421
|
pointerEvents: "none",
|
|
@@ -1403,7 +1429,7 @@ function dt({
|
|
|
1403
1429
|
y1: j.from[1],
|
|
1404
1430
|
x2: j.to[0],
|
|
1405
1431
|
y2: j.to[1],
|
|
1406
|
-
show: Q &&
|
|
1432
|
+
show: Q && B >= (j.visibleAtPhase ?? 0),
|
|
1407
1433
|
color: j.color,
|
|
1408
1434
|
dur: j.duration
|
|
1409
1435
|
},
|
|
@@ -1416,13 +1442,13 @@ function dt({
|
|
|
1416
1442
|
{
|
|
1417
1443
|
style: {
|
|
1418
1444
|
position: "absolute",
|
|
1419
|
-
left:
|
|
1420
|
-
top:
|
|
1421
|
-
transform: `translate(-50%, -50%) scaleX(${
|
|
1445
|
+
left: M ? oe : Re,
|
|
1446
|
+
top: M ? 570 : se + 70,
|
|
1447
|
+
transform: `translate(-50%, -50%) scaleX(${M ? 1 : 0.4}) scaleY(${M ? 1 : 0.6}) scale(${M ? 1 : Pe})`,
|
|
1422
1448
|
transition: Ae,
|
|
1423
1449
|
zIndex: 1
|
|
1424
1450
|
},
|
|
1425
|
-
children: /* @__PURE__ */ e(
|
|
1451
|
+
children: /* @__PURE__ */ e(Nt, { size: $t, color: kt, widthRatio: Rt, children: /* @__PURE__ */ e("div", { className: "base-hotspot" }) })
|
|
1426
1452
|
}
|
|
1427
1453
|
),
|
|
1428
1454
|
r
|
|
@@ -1443,23 +1469,23 @@ function T({
|
|
|
1443
1469
|
componentInfo: c,
|
|
1444
1470
|
visibleAtPhase: p = 0,
|
|
1445
1471
|
fixedScale: h,
|
|
1446
|
-
bare:
|
|
1472
|
+
bare: y = !1
|
|
1447
1473
|
}) {
|
|
1448
|
-
const
|
|
1449
|
-
if (!
|
|
1474
|
+
const b = ve(ae);
|
|
1475
|
+
if (!b)
|
|
1450
1476
|
throw new Error("ServiceNode must be used inside a <Service> component.");
|
|
1451
1477
|
const {
|
|
1452
1478
|
isExpandedPos: g,
|
|
1453
1479
|
animPhase: m,
|
|
1454
1480
|
compactCx: x,
|
|
1455
|
-
compactCy:
|
|
1456
|
-
groupScale:
|
|
1457
|
-
effectiveScale:
|
|
1458
|
-
transitionValue:
|
|
1459
|
-
onComponentClick:
|
|
1460
|
-
selectedComponentName:
|
|
1481
|
+
compactCy: v,
|
|
1482
|
+
groupScale: k,
|
|
1483
|
+
effectiveScale: u,
|
|
1484
|
+
transitionValue: R,
|
|
1485
|
+
onComponentClick: A,
|
|
1486
|
+
selectedComponentName: $,
|
|
1461
1487
|
expandedOffsetX: V
|
|
1462
|
-
} =
|
|
1488
|
+
} = b, B = p === 0 || b.isSelected && m >= p ? 1 : 0, X = x + o.x, z = v + o.y, te = g ? t + V : X, ie = g ? n : z, O = h !== void 0 ? h : b.isCompact ? k : u, F = !!c && !!$ && c.name === $, ne = c?.status ? w[c.status]?.color ?? a : a, Se = c?.status === "offline" ? "#4a6a8a" : ne, $e = c && g && A ? () => A({
|
|
1463
1489
|
type: c.type,
|
|
1464
1490
|
name: c.name,
|
|
1465
1491
|
status: c.status,
|
|
@@ -1476,13 +1502,13 @@ function T({
|
|
|
1476
1502
|
position: "absolute",
|
|
1477
1503
|
left: te,
|
|
1478
1504
|
top: ie,
|
|
1479
|
-
transform: `translate(-50%, -50%) scale(${
|
|
1480
|
-
opacity:
|
|
1505
|
+
transform: `translate(-50%, -50%) scale(${O})`,
|
|
1506
|
+
opacity: B,
|
|
1481
1507
|
zIndex: i,
|
|
1482
|
-
transition:
|
|
1483
|
-
pointerEvents: g &&
|
|
1508
|
+
transition: R || "all 1s cubic-bezier(0.34, 1.56, 0.64, 1)",
|
|
1509
|
+
pointerEvents: g && B >= 0.5 ? "auto" : "none"
|
|
1484
1510
|
},
|
|
1485
|
-
children:
|
|
1511
|
+
children: y ? r : /* @__PURE__ */ e(
|
|
1486
1512
|
Ht,
|
|
1487
1513
|
{
|
|
1488
1514
|
statusColor: Se,
|
|
@@ -1490,7 +1516,7 @@ function T({
|
|
|
1490
1516
|
subLabel: l,
|
|
1491
1517
|
delay: f,
|
|
1492
1518
|
showLabels: g,
|
|
1493
|
-
isCompact:
|
|
1519
|
+
isCompact: b.isCompact,
|
|
1494
1520
|
onClick: $e,
|
|
1495
1521
|
isSelected: F,
|
|
1496
1522
|
children: r
|
|
@@ -1510,13 +1536,13 @@ function Ht({
|
|
|
1510
1536
|
onClick: l,
|
|
1511
1537
|
isSelected: f = !1
|
|
1512
1538
|
}) {
|
|
1513
|
-
const [c, p] =
|
|
1539
|
+
const [c, p] = L(!1), h = f ? `brightness(1.5) drop-shadow(0 0 24px ${n}cc) drop-shadow(0 0 8px ${n}88)` : c && l ? `brightness(1.2) drop-shadow(0 0 12px ${n}77)` : "";
|
|
1514
1540
|
return /* @__PURE__ */ d(
|
|
1515
1541
|
"div",
|
|
1516
1542
|
{
|
|
1517
1543
|
className: `float-node${l ? " float-node--interactive" : ""}`,
|
|
1518
|
-
onClick: (
|
|
1519
|
-
l && (
|
|
1544
|
+
onClick: (y) => {
|
|
1545
|
+
l && (y.stopPropagation(), l());
|
|
1520
1546
|
},
|
|
1521
1547
|
style: {
|
|
1522
1548
|
cursor: l ? "pointer" : void 0,
|
|
@@ -1595,7 +1621,7 @@ function ct({ synced: t, latencyMs: n }) {
|
|
|
1595
1621
|
] })
|
|
1596
1622
|
] });
|
|
1597
1623
|
}
|
|
1598
|
-
function
|
|
1624
|
+
function D({
|
|
1599
1625
|
ex: t,
|
|
1600
1626
|
ey: n,
|
|
1601
1627
|
status: o,
|
|
@@ -1609,18 +1635,18 @@ function O({
|
|
|
1609
1635
|
}) {
|
|
1610
1636
|
const h = ve(ae)?.expandedOffsetX ?? 0;
|
|
1611
1637
|
if (o === "online") return null;
|
|
1612
|
-
const
|
|
1613
|
-
let
|
|
1614
|
-
if (
|
|
1615
|
-
const
|
|
1616
|
-
|
|
1638
|
+
const y = w[o]?.color ?? w.warning.color, b = Math.abs(a) > Math.abs(s), g = t + h + (b ? Math.sign(a) * 45 : 0), m = n + (b ? 0 : Math.sign(s) * 40), x = t + h + a, v = n + s;
|
|
1639
|
+
let k = "";
|
|
1640
|
+
if (b) {
|
|
1641
|
+
const $ = g + (x - g) / 2;
|
|
1642
|
+
k = `M ${g} ${m} L ${$} ${m} L ${$} ${v} L ${x} ${v}`;
|
|
1617
1643
|
} else {
|
|
1618
|
-
const
|
|
1619
|
-
|
|
1644
|
+
const $ = m + (v - m) / 2;
|
|
1645
|
+
k = `M ${g} ${m} L ${g} ${$} L ${x} ${$} L ${x} ${v}`;
|
|
1620
1646
|
}
|
|
1621
|
-
let
|
|
1622
|
-
f === "left" && (
|
|
1623
|
-
const
|
|
1647
|
+
let u = "translate(0, -50%)";
|
|
1648
|
+
f === "left" && (u = "translate(-100%, -50%)"), f === "top" && (u = "translate(-50%, -100%)"), f === "bottom" && (u = "translate(-50%, 0)");
|
|
1649
|
+
const R = f === "left" ? -8 : f === "right" ? 8 : 0, A = f === "top" ? -8 : f === "bottom" ? 8 : 0;
|
|
1624
1650
|
return /* @__PURE__ */ d(
|
|
1625
1651
|
"div",
|
|
1626
1652
|
{
|
|
@@ -1651,12 +1677,12 @@ function O({
|
|
|
1651
1677
|
children: /* @__PURE__ */ e(
|
|
1652
1678
|
"path",
|
|
1653
1679
|
{
|
|
1654
|
-
d:
|
|
1680
|
+
d: k,
|
|
1655
1681
|
fill: "none",
|
|
1656
|
-
stroke:
|
|
1682
|
+
stroke: y,
|
|
1657
1683
|
strokeWidth: "1.5",
|
|
1658
1684
|
strokeDasharray: "5 4",
|
|
1659
|
-
style: { filter: `drop-shadow(0 0 4px ${
|
|
1685
|
+
style: { filter: `drop-shadow(0 0 4px ${y})`, opacity: 0.55 }
|
|
1660
1686
|
}
|
|
1661
1687
|
)
|
|
1662
1688
|
}
|
|
@@ -1667,13 +1693,13 @@ function O({
|
|
|
1667
1693
|
style: {
|
|
1668
1694
|
position: "absolute",
|
|
1669
1695
|
left: x,
|
|
1670
|
-
top:
|
|
1671
|
-
transform:
|
|
1672
|
-
marginLeft:
|
|
1673
|
-
marginTop:
|
|
1696
|
+
top: v,
|
|
1697
|
+
transform: u,
|
|
1698
|
+
marginLeft: R,
|
|
1699
|
+
marginTop: A,
|
|
1674
1700
|
background: "repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255,255,255,0.03) 2px, rgba(255,255,255,0.03) 4px), rgba(2, 8, 16, 0.82)",
|
|
1675
|
-
border: `1px solid ${
|
|
1676
|
-
borderLeft: `2px solid ${
|
|
1701
|
+
border: `1px solid ${y}55`,
|
|
1702
|
+
borderLeft: `2px solid ${y}`,
|
|
1677
1703
|
backdropFilter: "blur(8px)",
|
|
1678
1704
|
WebkitBackdropFilter: "blur(8px)",
|
|
1679
1705
|
padding: "6px 10px",
|
|
@@ -1681,7 +1707,7 @@ function O({
|
|
|
1681
1707
|
color: "#fff",
|
|
1682
1708
|
fontFamily: "'Courier New', monospace",
|
|
1683
1709
|
width: 140,
|
|
1684
|
-
boxShadow: `0 4px 12px rgba(0,0,0,0.4), 0 0 8px ${
|
|
1710
|
+
boxShadow: `0 4px 12px rgba(0,0,0,0.4), 0 0 8px ${y}22 inset`
|
|
1685
1711
|
},
|
|
1686
1712
|
children: [
|
|
1687
1713
|
/* @__PURE__ */ d(
|
|
@@ -1701,8 +1727,8 @@ function O({
|
|
|
1701
1727
|
width: 4,
|
|
1702
1728
|
height: 4,
|
|
1703
1729
|
borderRadius: "50%",
|
|
1704
|
-
background:
|
|
1705
|
-
boxShadow: `0 0 6px ${
|
|
1730
|
+
background: y,
|
|
1731
|
+
boxShadow: `0 0 6px ${y}`,
|
|
1706
1732
|
animation: "holo-led-blink 1.5s infinite"
|
|
1707
1733
|
}
|
|
1708
1734
|
}
|
|
@@ -1711,12 +1737,12 @@ function O({
|
|
|
1711
1737
|
"div",
|
|
1712
1738
|
{
|
|
1713
1739
|
style: {
|
|
1714
|
-
color:
|
|
1740
|
+
color: y,
|
|
1715
1741
|
fontWeight: "600",
|
|
1716
1742
|
fontSize: 10,
|
|
1717
1743
|
letterSpacing: "1px",
|
|
1718
1744
|
textTransform: "uppercase",
|
|
1719
|
-
textShadow: `0 0 4px ${
|
|
1745
|
+
textShadow: `0 0 4px ${y}88`
|
|
1720
1746
|
},
|
|
1721
1747
|
children: c ? `${i} · ${c}` : i
|
|
1722
1748
|
}
|
|
@@ -2453,20 +2479,20 @@ function ue({
|
|
|
2453
2479
|
memLoad: f = 82,
|
|
2454
2480
|
_compact: c
|
|
2455
2481
|
}) {
|
|
2456
|
-
const [p, h] =
|
|
2482
|
+
const [p, h] = L(n), y = ee(0), b = ee(0);
|
|
2457
2483
|
Ee(() => {
|
|
2458
2484
|
if (!r) {
|
|
2459
2485
|
h(n);
|
|
2460
2486
|
return;
|
|
2461
2487
|
}
|
|
2462
2488
|
const m = (x) => {
|
|
2463
|
-
|
|
2489
|
+
b.current && h((v) => v + (x - b.current) * 0.027), b.current = x, y.current = requestAnimationFrame(m);
|
|
2464
2490
|
};
|
|
2465
|
-
return
|
|
2466
|
-
cancelAnimationFrame(
|
|
2491
|
+
return y.current = requestAnimationFrame(m), () => {
|
|
2492
|
+
cancelAnimationFrame(y.current), b.current = 0;
|
|
2467
2493
|
};
|
|
2468
2494
|
}, [r, n]);
|
|
2469
|
-
const g =
|
|
2495
|
+
const g = w[a] ?? w.online;
|
|
2470
2496
|
return /* @__PURE__ */ d(
|
|
2471
2497
|
"div",
|
|
2472
2498
|
{
|
|
@@ -2604,7 +2630,7 @@ function _t({
|
|
|
2604
2630
|
}) {
|
|
2605
2631
|
return /* @__PURE__ */ d(Ce, { children: [
|
|
2606
2632
|
Ue.map((s, l) => {
|
|
2607
|
-
const f = Ye(s), c = l === 0, p = Math.round(4 + f * 9), h = Math.round(12 + f * 22),
|
|
2633
|
+
const f = Ye(s), c = l === 0, p = Math.round(4 + f * 9), h = Math.round(12 + f * 22), y = Math.round(28 + f * 44), b = Math.round(f * 0.55 * 255).toString(16).padStart(2, "0");
|
|
2608
2634
|
return /* @__PURE__ */ e(
|
|
2609
2635
|
"div",
|
|
2610
2636
|
{
|
|
@@ -2616,8 +2642,8 @@ function _t({
|
|
|
2616
2642
|
top: t,
|
|
2617
2643
|
transform: `rotateY(${s}deg) translateZ(${re}px)`,
|
|
2618
2644
|
backfaceVisibility: "hidden",
|
|
2619
|
-
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},${h},${
|
|
2620
|
-
borderLeft: `1px solid ${o.color}${
|
|
2645
|
+
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},${h},${y})`,
|
|
2646
|
+
borderLeft: `1px solid ${o.color}${b}`,
|
|
2621
2647
|
boxShadow: c ? `inset 0 0 18px ${o.color}28` : "none"
|
|
2622
2648
|
},
|
|
2623
2649
|
children: c && /* @__PURE__ */ d(Ce, { children: [
|
|
@@ -2803,7 +2829,7 @@ function _t({
|
|
|
2803
2829
|
})
|
|
2804
2830
|
] });
|
|
2805
2831
|
}
|
|
2806
|
-
function
|
|
2832
|
+
function Oe({
|
|
2807
2833
|
rotateX: t = -22,
|
|
2808
2834
|
rotateY: n = -15,
|
|
2809
2835
|
rotateZ: o = 0,
|
|
@@ -2815,20 +2841,20 @@ function Ie({
|
|
|
2815
2841
|
// connections = 284,
|
|
2816
2842
|
_compact: l
|
|
2817
2843
|
}) {
|
|
2818
|
-
const [f, c] =
|
|
2844
|
+
const [f, c] = L(n), p = ee(0), h = ee(0);
|
|
2819
2845
|
Ee(() => {
|
|
2820
2846
|
if (!r) {
|
|
2821
2847
|
c(n);
|
|
2822
2848
|
return;
|
|
2823
2849
|
}
|
|
2824
|
-
const
|
|
2825
|
-
h.current && c((m) => m + (g - h.current) * 0.027), h.current = g, p.current = requestAnimationFrame(
|
|
2850
|
+
const b = (g) => {
|
|
2851
|
+
h.current && c((m) => m + (g - h.current) * 0.027), h.current = g, p.current = requestAnimationFrame(b);
|
|
2826
2852
|
};
|
|
2827
|
-
return p.current = requestAnimationFrame(
|
|
2853
|
+
return p.current = requestAnimationFrame(b), () => {
|
|
2828
2854
|
cancelAnimationFrame(p.current), h.current = 0;
|
|
2829
2855
|
};
|
|
2830
2856
|
}, [r, n]);
|
|
2831
|
-
const
|
|
2857
|
+
const y = w[a] ?? w.online;
|
|
2832
2858
|
return /* @__PURE__ */ d(
|
|
2833
2859
|
"div",
|
|
2834
2860
|
{
|
|
@@ -2896,7 +2922,7 @@ function Ie({
|
|
|
2896
2922
|
position: "absolute",
|
|
2897
2923
|
width: _ * 2.8 * i,
|
|
2898
2924
|
height: He * 0.85 * i,
|
|
2899
|
-
background: `radial-gradient(ellipse, ${
|
|
2925
|
+
background: `radial-gradient(ellipse, ${y.glow} 0%, transparent 65%)`,
|
|
2900
2926
|
filter: `blur(${Math.round(50 * i)}px)`,
|
|
2901
2927
|
pointerEvents: "none",
|
|
2902
2928
|
top: "45%",
|
|
@@ -2925,17 +2951,17 @@ function Ie({
|
|
|
2925
2951
|
transform: `rotateX(${t}deg) rotateY(${f}deg) rotateZ(${o}deg)`,
|
|
2926
2952
|
transition: r ? "none" : "transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94)"
|
|
2927
2953
|
},
|
|
2928
|
-
children: [0, 1, 2].map((
|
|
2954
|
+
children: [0, 1, 2].map((b) => /* @__PURE__ */ e(
|
|
2929
2955
|
_t,
|
|
2930
2956
|
{
|
|
2931
|
-
diskY:
|
|
2932
|
-
diskIdx:
|
|
2933
|
-
cfg:
|
|
2934
|
-
hasRingBelow:
|
|
2957
|
+
diskY: b * (he + Ze),
|
|
2958
|
+
diskIdx: b,
|
|
2959
|
+
cfg: y,
|
|
2960
|
+
hasRingBelow: b < 2,
|
|
2935
2961
|
capacity: s,
|
|
2936
2962
|
compact: l
|
|
2937
2963
|
},
|
|
2938
|
-
|
|
2964
|
+
b
|
|
2939
2965
|
))
|
|
2940
2966
|
}
|
|
2941
2967
|
)
|
|
@@ -3424,20 +3450,20 @@ function pt({
|
|
|
3424
3450
|
activeRoutes: f = 12,
|
|
3425
3451
|
_compact: c
|
|
3426
3452
|
}) {
|
|
3427
|
-
const [p, h] =
|
|
3453
|
+
const [p, h] = L(n), y = ee(0), b = ee(0);
|
|
3428
3454
|
Ee(() => {
|
|
3429
3455
|
if (!r) {
|
|
3430
3456
|
h(n);
|
|
3431
3457
|
return;
|
|
3432
3458
|
}
|
|
3433
3459
|
const m = (x) => {
|
|
3434
|
-
|
|
3460
|
+
b.current && h((v) => v + (x - b.current) * 0.027), b.current = x, y.current = requestAnimationFrame(m);
|
|
3435
3461
|
};
|
|
3436
|
-
return
|
|
3437
|
-
cancelAnimationFrame(
|
|
3462
|
+
return y.current = requestAnimationFrame(m), () => {
|
|
3463
|
+
cancelAnimationFrame(y.current), b.current = 0;
|
|
3438
3464
|
};
|
|
3439
3465
|
}, [r, n]);
|
|
3440
|
-
const g =
|
|
3466
|
+
const g = w[a] ?? w.online;
|
|
3441
3467
|
return /* @__PURE__ */ d(
|
|
3442
3468
|
"div",
|
|
3443
3469
|
{
|
|
@@ -4041,17 +4067,17 @@ function Zt({
|
|
|
4041
4067
|
instances: c = 3,
|
|
4042
4068
|
_compact: p
|
|
4043
4069
|
}) {
|
|
4044
|
-
const [h,
|
|
4070
|
+
const [h, y] = L(n), b = ee(0), g = ee(0);
|
|
4045
4071
|
Ee(() => {
|
|
4046
4072
|
if (!r) {
|
|
4047
|
-
|
|
4073
|
+
y(n);
|
|
4048
4074
|
return;
|
|
4049
4075
|
}
|
|
4050
|
-
const x = (
|
|
4051
|
-
g.current &&
|
|
4076
|
+
const x = (v) => {
|
|
4077
|
+
g.current && y((k) => k + (v - g.current) * 0.027), g.current = v, b.current = requestAnimationFrame(x);
|
|
4052
4078
|
};
|
|
4053
|
-
return
|
|
4054
|
-
cancelAnimationFrame(
|
|
4079
|
+
return b.current = requestAnimationFrame(x), () => {
|
|
4080
|
+
cancelAnimationFrame(b.current), g.current = 0;
|
|
4055
4081
|
};
|
|
4056
4082
|
}, [r, n]);
|
|
4057
4083
|
const m = at[a] ?? at.online;
|
|
@@ -4178,7 +4204,7 @@ function Zt({
|
|
|
4178
4204
|
);
|
|
4179
4205
|
}
|
|
4180
4206
|
function ft({ status: t = "online", scale: n = 1 }) {
|
|
4181
|
-
const i = (
|
|
4207
|
+
const i = (w[t] ?? w.online).color;
|
|
4182
4208
|
return /* @__PURE__ */ e(
|
|
4183
4209
|
"div",
|
|
4184
4210
|
{
|
|
@@ -4289,7 +4315,7 @@ function ft({ status: t = "online", scale: n = 1 }) {
|
|
|
4289
4315
|
}
|
|
4290
4316
|
);
|
|
4291
4317
|
}
|
|
4292
|
-
function
|
|
4318
|
+
function P(t, n, o = 24) {
|
|
4293
4319
|
return Array.from({ length: o }, (i, r) => {
|
|
4294
4320
|
const a = r / o;
|
|
4295
4321
|
return Math.min(100, Math.max(0, t + Math.sin(a * Math.PI * 2) * n + (Math.random() - 0.5) * 10));
|
|
@@ -4389,34 +4415,34 @@ function ti(t, n) {
|
|
|
4389
4415
|
if (t === "server") {
|
|
4390
4416
|
const o = n.cpuLoad ?? 50, i = n.memLoad ?? 60;
|
|
4391
4417
|
return [
|
|
4392
|
-
{ id: "cpu", label: "CPU-0", unit: "%", color: "#00e5ff", data:
|
|
4393
|
-
{ id: "cpu1", label: "CPU-1", unit: "%", color: "#00e5ff", data:
|
|
4394
|
-
{ id: "heap0", label: "HEAP-0", unit: "%", color: "#8855ee", data:
|
|
4395
|
-
{ id: "heap1", label: "HEAP-1", unit: "%", color: "#8855ee", data:
|
|
4396
|
-
{ id: "drive1", label: "DRIVE-1 I/O", unit: "%", color: "#ff8c00", data:
|
|
4397
|
-
{ id: "drive2", label: "DRIVE-2 I/O", unit: "%", color: "#ff8c00", data:
|
|
4398
|
-
{ id: "drive3", label: "DRIVE-3 I/O", unit: "%", color: "#ff8c00", data:
|
|
4399
|
-
{ id: "thread", label: "THREAD-POOL", unit: "%", color: "#22aaff", data:
|
|
4418
|
+
{ id: "cpu", label: "CPU-0", unit: "%", color: "#00e5ff", data: P(o, 15) },
|
|
4419
|
+
{ id: "cpu1", label: "CPU-1", unit: "%", color: "#00e5ff", data: P(o * 0.7, 12) },
|
|
4420
|
+
{ id: "heap0", label: "HEAP-0", unit: "%", color: "#8855ee", data: P(i, 18) },
|
|
4421
|
+
{ id: "heap1", label: "HEAP-1", unit: "%", color: "#8855ee", data: P(i * 0.85, 14) },
|
|
4422
|
+
{ id: "drive1", label: "DRIVE-1 I/O", unit: "%", color: "#ff8c00", data: P(40, 25) },
|
|
4423
|
+
{ id: "drive2", label: "DRIVE-2 I/O", unit: "%", color: "#ff8c00", data: P(35, 20) },
|
|
4424
|
+
{ id: "drive3", label: "DRIVE-3 I/O", unit: "%", color: "#ff8c00", data: P(30, 22) },
|
|
4425
|
+
{ id: "thread", label: "THREAD-POOL", unit: "%", color: "#22aaff", data: P(55, 20) }
|
|
4400
4426
|
];
|
|
4401
4427
|
}
|
|
4402
4428
|
if (t === "dispatcher" || t === "messageServer") {
|
|
4403
4429
|
const o = n.traffic ?? n.queueDepth ?? 50;
|
|
4404
4430
|
return [
|
|
4405
|
-
{ id: "traffic", label: "TRAFFIC", unit: "%", color: "#00e5ff", data:
|
|
4406
|
-
{ id: "port1", label: "PORT-1", unit: "kbps", color: "#22aaff", data:
|
|
4407
|
-
{ id: "port2", label: "PORT-2", unit: "kbps", color: "#22aaff", data:
|
|
4408
|
-
{ id: "port3", label: "PORT-3", unit: "kbps", color: "#22aaff", data:
|
|
4409
|
-
{ id: "worker", label: "WORKER", unit: "%", color: "#bb55ff", data:
|
|
4431
|
+
{ id: "traffic", label: "TRAFFIC", unit: "%", color: "#00e5ff", data: P(o, 20) },
|
|
4432
|
+
{ id: "port1", label: "PORT-1", unit: "kbps", color: "#22aaff", data: P(60, 25) },
|
|
4433
|
+
{ id: "port2", label: "PORT-2", unit: "kbps", color: "#22aaff", data: P(45, 20) },
|
|
4434
|
+
{ id: "port3", label: "PORT-3", unit: "kbps", color: "#22aaff", data: P(70, 30) },
|
|
4435
|
+
{ id: "worker", label: "WORKER", unit: "%", color: "#bb55ff", data: P(o * 0.9, 15) }
|
|
4410
4436
|
];
|
|
4411
4437
|
}
|
|
4412
4438
|
if (t === "database") {
|
|
4413
4439
|
const o = n.capacity ?? 70;
|
|
4414
4440
|
return [
|
|
4415
|
-
{ id: "platter0", label: "PLATTER-0 I/O", unit: "%", color: "#ff8c00", data:
|
|
4416
|
-
{ id: "platter1", label: "PLATTER-1 I/O", unit: "%", color: "#ff8c00", data:
|
|
4417
|
-
{ id: "platter2", label: "PLATTER-2 I/O", unit: "%", color: "#ff8c00", data:
|
|
4418
|
-
{ id: "connpool", label: "CONN-POOL", unit: "%", color: "#00e5ff", data:
|
|
4419
|
-
{ id: "cache", label: "QUERY-CACHE", unit: "%", color: "#00ff88", data:
|
|
4441
|
+
{ id: "platter0", label: "PLATTER-0 I/O", unit: "%", color: "#ff8c00", data: P(40, 20) },
|
|
4442
|
+
{ id: "platter1", label: "PLATTER-1 I/O", unit: "%", color: "#ff8c00", data: P(55, 25) },
|
|
4443
|
+
{ id: "platter2", label: "PLATTER-2 I/O", unit: "%", color: "#ff8c00", data: P(35, 18) },
|
|
4444
|
+
{ id: "connpool", label: "CONN-POOL", unit: "%", color: "#00e5ff", data: P(o, 15) },
|
|
4445
|
+
{ id: "cache", label: "QUERY-CACHE", unit: "%", color: "#00ff88", data: P(75, 12) }
|
|
4420
4446
|
];
|
|
4421
4447
|
}
|
|
4422
4448
|
return [];
|
|
@@ -4430,7 +4456,7 @@ function ht({
|
|
|
4430
4456
|
delay: a = "0s",
|
|
4431
4457
|
children: s
|
|
4432
4458
|
}) {
|
|
4433
|
-
const l = r ?
|
|
4459
|
+
const l = r ? w[r]?.glow ?? "rgba(0,229,255,0.4)" : "rgba(0,229,255,0.4)";
|
|
4434
4460
|
return /* @__PURE__ */ d(
|
|
4435
4461
|
"div",
|
|
4436
4462
|
{
|
|
@@ -4471,8 +4497,8 @@ function ht({
|
|
|
4471
4497
|
width: 4,
|
|
4472
4498
|
height: 4,
|
|
4473
4499
|
borderRadius: "50%",
|
|
4474
|
-
background:
|
|
4475
|
-
boxShadow: `0 0 6px ${
|
|
4500
|
+
background: w[r]?.color,
|
|
4501
|
+
boxShadow: `0 0 6px ${w[r]?.color}`,
|
|
4476
4502
|
animation: "holo-led-blink 1.2s infinite"
|
|
4477
4503
|
}
|
|
4478
4504
|
}
|
|
@@ -4514,7 +4540,7 @@ function ht({
|
|
|
4514
4540
|
}
|
|
4515
4541
|
);
|
|
4516
4542
|
}
|
|
4517
|
-
function
|
|
4543
|
+
function De({
|
|
4518
4544
|
color: t = "#00e5ff",
|
|
4519
4545
|
label: n = "CPU-0",
|
|
4520
4546
|
status: o = "online",
|
|
@@ -4598,8 +4624,8 @@ function Oe({
|
|
|
4598
4624
|
width: 4,
|
|
4599
4625
|
height: 4,
|
|
4600
4626
|
borderRadius: "50%",
|
|
4601
|
-
background:
|
|
4602
|
-
boxShadow: `0 0 6px ${
|
|
4627
|
+
background: w[o]?.color,
|
|
4628
|
+
boxShadow: `0 0 6px ${w[o]?.color}`,
|
|
4603
4629
|
animation: "holo-led-blink 1.2s infinite"
|
|
4604
4630
|
}
|
|
4605
4631
|
}
|
|
@@ -4625,7 +4651,7 @@ function Oe({
|
|
|
4625
4651
|
)
|
|
4626
4652
|
] });
|
|
4627
4653
|
}
|
|
4628
|
-
function
|
|
4654
|
+
function We({
|
|
4629
4655
|
color: t = "#00e5ff",
|
|
4630
4656
|
label: n = "HEAP-0",
|
|
4631
4657
|
status: o = "online",
|
|
@@ -4696,7 +4722,7 @@ function De({
|
|
|
4696
4722
|
width: 3,
|
|
4697
4723
|
height: 3,
|
|
4698
4724
|
borderRadius: "50%",
|
|
4699
|
-
background:
|
|
4725
|
+
background: w[o]?.color,
|
|
4700
4726
|
animation: "holo-led-blink 1.2s infinite"
|
|
4701
4727
|
}
|
|
4702
4728
|
}
|
|
@@ -4825,14 +4851,14 @@ function ut({
|
|
|
4825
4851
|
}
|
|
4826
4852
|
);
|
|
4827
4853
|
}
|
|
4828
|
-
function
|
|
4854
|
+
function I({
|
|
4829
4855
|
color: t = "#00e5ff",
|
|
4830
4856
|
label: n = "THREAD",
|
|
4831
4857
|
status: o = "online"
|
|
4832
4858
|
}) {
|
|
4833
4859
|
return /* @__PURE__ */ e(ht, { w: 44, h: 28, color: t, label: n, status: o });
|
|
4834
4860
|
}
|
|
4835
|
-
function
|
|
4861
|
+
function Ie({
|
|
4836
4862
|
color: t = "#ff8c00",
|
|
4837
4863
|
label: n = "PLATTER-0",
|
|
4838
4864
|
status: o = "online",
|
|
@@ -4890,7 +4916,7 @@ function Le({
|
|
|
4890
4916
|
width: 4,
|
|
4891
4917
|
height: 4,
|
|
4892
4918
|
borderRadius: "50%",
|
|
4893
|
-
background:
|
|
4919
|
+
background: w[o]?.color,
|
|
4894
4920
|
animation: "holo-led-blink 1.2s infinite"
|
|
4895
4921
|
}
|
|
4896
4922
|
}
|
|
@@ -4916,7 +4942,7 @@ function Le({
|
|
|
4916
4942
|
)
|
|
4917
4943
|
] });
|
|
4918
4944
|
}
|
|
4919
|
-
function
|
|
4945
|
+
function N({
|
|
4920
4946
|
color: t = "#00e5ff",
|
|
4921
4947
|
label: n = "PORT-1",
|
|
4922
4948
|
status: o = "online"
|
|
@@ -4945,7 +4971,7 @@ function M({
|
|
|
4945
4971
|
width: 4,
|
|
4946
4972
|
height: 4,
|
|
4947
4973
|
borderRadius: "50%",
|
|
4948
|
-
background: o && o !== "online" ?
|
|
4974
|
+
background: o && o !== "online" ? w[o]?.color ?? t : t,
|
|
4949
4975
|
boxShadow: `0 0 4px ${t}`,
|
|
4950
4976
|
animation: o && o !== "online" && o !== "offline" ? "holo-led-blink 1s infinite" : "none"
|
|
4951
4977
|
}
|
|
@@ -5125,14 +5151,14 @@ function ri({
|
|
|
5125
5151
|
internal: i,
|
|
5126
5152
|
revealPhase: r
|
|
5127
5153
|
}) {
|
|
5128
|
-
const a =
|
|
5154
|
+
const a = w[n]?.color ?? w.online.color, s = "#ff8c00";
|
|
5129
5155
|
if (t === "server") {
|
|
5130
5156
|
const l = o.cpuLoad ?? 50, f = o.memLoad ?? 60, c = [
|
|
5131
5157
|
{
|
|
5132
5158
|
key: "cpu0",
|
|
5133
5159
|
delay: 0,
|
|
5134
5160
|
el: /* @__PURE__ */ e(
|
|
5135
|
-
|
|
5161
|
+
De,
|
|
5136
5162
|
{
|
|
5137
5163
|
color: a,
|
|
5138
5164
|
label: "CPU-0",
|
|
@@ -5146,7 +5172,7 @@ function ri({
|
|
|
5146
5172
|
key: "cpu1",
|
|
5147
5173
|
delay: 1,
|
|
5148
5174
|
el: /* @__PURE__ */ e(
|
|
5149
|
-
|
|
5175
|
+
De,
|
|
5150
5176
|
{
|
|
5151
5177
|
color: a,
|
|
5152
5178
|
label: "CPU-1",
|
|
@@ -5160,7 +5186,7 @@ function ri({
|
|
|
5160
5186
|
key: "heap0",
|
|
5161
5187
|
delay: 2,
|
|
5162
5188
|
el: /* @__PURE__ */ e(
|
|
5163
|
-
|
|
5189
|
+
We,
|
|
5164
5190
|
{
|
|
5165
5191
|
color: "#8855ee",
|
|
5166
5192
|
label: "HEAP-0",
|
|
@@ -5174,7 +5200,7 @@ function ri({
|
|
|
5174
5200
|
key: "heap1",
|
|
5175
5201
|
delay: 3,
|
|
5176
5202
|
el: /* @__PURE__ */ e(
|
|
5177
|
-
|
|
5203
|
+
We,
|
|
5178
5204
|
{
|
|
5179
5205
|
color: "#8855ee",
|
|
5180
5206
|
label: "HEAP-1",
|
|
@@ -5218,7 +5244,7 @@ function ri({
|
|
|
5218
5244
|
{
|
|
5219
5245
|
key: "thread",
|
|
5220
5246
|
delay: 7,
|
|
5221
|
-
el: /* @__PURE__ */ e(
|
|
5247
|
+
el: /* @__PURE__ */ e(I, { color: a, label: "THREAD-POOL", status: i[7]?.status })
|
|
5222
5248
|
},
|
|
5223
5249
|
{
|
|
5224
5250
|
key: "net",
|
|
@@ -5237,7 +5263,7 @@ function ri({
|
|
|
5237
5263
|
alignItems: "center",
|
|
5238
5264
|
padding: 24
|
|
5239
5265
|
},
|
|
5240
|
-
children: c.map(({ key: p, delay: h, el:
|
|
5266
|
+
children: c.map(({ key: p, delay: h, el: y }) => /* @__PURE__ */ e(
|
|
5241
5267
|
"div",
|
|
5242
5268
|
{
|
|
5243
5269
|
style: {
|
|
@@ -5245,7 +5271,7 @@ function ri({
|
|
|
5245
5271
|
transform: `scale(${r >= 0.2 + h * 0.08 ? 1 : 0.6})`,
|
|
5246
5272
|
transition: `opacity 0.4s ${E} ${h * 0.06}s, transform 0.45s ${E} ${h * 0.06}s`
|
|
5247
5273
|
},
|
|
5248
|
-
children:
|
|
5274
|
+
children: y
|
|
5249
5275
|
},
|
|
5250
5276
|
p
|
|
5251
5277
|
))
|
|
@@ -5263,7 +5289,7 @@ function ri({
|
|
|
5263
5289
|
transform: `scale(${r >= 0.25 + c * 0.04 ? 1 : 0.5})`,
|
|
5264
5290
|
transition: `opacity 0.35s ${E} ${c * 0.04}s, transform 0.4s ${E} ${c * 0.04}s`
|
|
5265
5291
|
},
|
|
5266
|
-
children: /* @__PURE__ */ e(
|
|
5292
|
+
children: /* @__PURE__ */ e(N, { color: a, label: `PORT-${c + 1}`, status: p?.status })
|
|
5267
5293
|
},
|
|
5268
5294
|
`p${c}`
|
|
5269
5295
|
);
|
|
@@ -5289,7 +5315,7 @@ function ri({
|
|
|
5289
5315
|
transform: `scale(${r >= 0.7 ? 1 : 0.6})`,
|
|
5290
5316
|
transition: `all 0.4s ${E} 0.3s`
|
|
5291
5317
|
},
|
|
5292
|
-
children: /* @__PURE__ */ e(
|
|
5318
|
+
children: /* @__PURE__ */ e(I, { color: a, label: "HTTP-WORKER", status: i[8]?.status })
|
|
5293
5319
|
}
|
|
5294
5320
|
),
|
|
5295
5321
|
/* @__PURE__ */ e(
|
|
@@ -5300,7 +5326,7 @@ function ri({
|
|
|
5300
5326
|
transform: `scale(${r >= 0.8 ? 1 : 0.6})`,
|
|
5301
5327
|
transition: `all 0.4s ${E} 0.4s`
|
|
5302
5328
|
},
|
|
5303
|
-
children: /* @__PURE__ */ e(
|
|
5329
|
+
children: /* @__PURE__ */ e(I, { color: "#bb55ff", label: "HTTPS-WORKER", status: i[9]?.status })
|
|
5304
5330
|
}
|
|
5305
5331
|
)
|
|
5306
5332
|
] })
|
|
@@ -5329,7 +5355,7 @@ function ri({
|
|
|
5329
5355
|
transform: `scale(${r >= 0.25 + l * 0.1 ? 1 : 0.6})`,
|
|
5330
5356
|
transition: `all 0.4s ${E} ${l * 0.08}s`
|
|
5331
5357
|
},
|
|
5332
|
-
children: /* @__PURE__ */ e(
|
|
5358
|
+
children: /* @__PURE__ */ e(N, { color: "#bb55ff", label: `INST-${l}`, status: i[l]?.status })
|
|
5333
5359
|
},
|
|
5334
5360
|
l
|
|
5335
5361
|
)),
|
|
@@ -5341,7 +5367,7 @@ function ri({
|
|
|
5341
5367
|
transform: `scale(${r >= 0.6 ? 1 : 0.6})`,
|
|
5342
5368
|
transition: `all 0.4s ${E} 0.25s`
|
|
5343
5369
|
},
|
|
5344
|
-
children: /* @__PURE__ */ e(
|
|
5370
|
+
children: /* @__PURE__ */ e(I, { color: "#bb55ff", label: "QUEUE-0", status: i[3]?.status })
|
|
5345
5371
|
}
|
|
5346
5372
|
),
|
|
5347
5373
|
[4, 5, 6].map((l) => /* @__PURE__ */ e(
|
|
@@ -5353,7 +5379,7 @@ function ri({
|
|
|
5353
5379
|
transition: `all 0.4s ${E} ${0.35 + (l - 4) * 0.05}s`
|
|
5354
5380
|
},
|
|
5355
5381
|
children: /* @__PURE__ */ e(
|
|
5356
|
-
|
|
5382
|
+
I,
|
|
5357
5383
|
{
|
|
5358
5384
|
color: "#bb55ff",
|
|
5359
5385
|
label: `WORKER-${l - 3}`,
|
|
@@ -5389,7 +5415,7 @@ function ri({
|
|
|
5389
5415
|
transition: `all 0.45s ${E} ${f * 0.1}s`
|
|
5390
5416
|
},
|
|
5391
5417
|
children: /* @__PURE__ */ e(
|
|
5392
|
-
|
|
5418
|
+
Ie,
|
|
5393
5419
|
{
|
|
5394
5420
|
color: s,
|
|
5395
5421
|
label: `PLATTER-${f}`,
|
|
@@ -5408,7 +5434,7 @@ function ri({
|
|
|
5408
5434
|
transform: `scale(${r >= 0.6 ? 1 : 0.6})`,
|
|
5409
5435
|
transition: `all 0.4s ${E} 0.3s`
|
|
5410
5436
|
},
|
|
5411
|
-
children: /* @__PURE__ */ e(
|
|
5437
|
+
children: /* @__PURE__ */ e(I, { color: s, label: "CONN-POOL", status: i[3]?.status })
|
|
5412
5438
|
}
|
|
5413
5439
|
),
|
|
5414
5440
|
/* @__PURE__ */ e(
|
|
@@ -5419,7 +5445,7 @@ function ri({
|
|
|
5419
5445
|
transform: `scale(${r >= 0.75 ? 1 : 0.6})`,
|
|
5420
5446
|
transition: `all 0.4s ${E} 0.4s`
|
|
5421
5447
|
},
|
|
5422
|
-
children: /* @__PURE__ */ e(
|
|
5448
|
+
children: /* @__PURE__ */ e(I, { color: "#00ff88", label: "QUERY-CACHE", status: i[4]?.status })
|
|
5423
5449
|
}
|
|
5424
5450
|
)
|
|
5425
5451
|
]
|
|
@@ -5438,7 +5464,7 @@ function wi({
|
|
|
5438
5464
|
subComponents: s,
|
|
5439
5465
|
graphSeries: l
|
|
5440
5466
|
}) {
|
|
5441
|
-
const f = ii(t, n, o, a), c =
|
|
5467
|
+
const f = ii(t, n, o, a), c = w[o]?.color ?? w.online.color, p = r >= 0.1 ? 1 : r * 10, h = r >= 0.2 ? "-50%" : "0%", y = r >= 0.2 ? "50%" : "0%", b = r >= 0.25 ? Math.min(1, (r - 0.25) * 1.5) : 0;
|
|
5442
5468
|
return /* @__PURE__ */ d(
|
|
5443
5469
|
"div",
|
|
5444
5470
|
{
|
|
@@ -5526,7 +5552,7 @@ function wi({
|
|
|
5526
5552
|
background: "linear-gradient(90deg, rgba(2, 12, 28, 0.95) 0%, rgba(2, 8, 20, 0.98) 100%)",
|
|
5527
5553
|
borderLeft: `2px solid ${c}44`,
|
|
5528
5554
|
boxShadow: "-4px 0 32px rgba(0,0,0,0.6)",
|
|
5529
|
-
transform: `translateX(${
|
|
5555
|
+
transform: `translateX(${y})`,
|
|
5530
5556
|
transition: `transform 0.7s ${E}`
|
|
5531
5557
|
}
|
|
5532
5558
|
}
|
|
@@ -5549,7 +5575,7 @@ function wi({
|
|
|
5549
5575
|
boxShadow: `0 0 40px ${c}18, inset 0 0 60px rgba(0,0,0,0.4)`,
|
|
5550
5576
|
display: "flex",
|
|
5551
5577
|
flexDirection: "column",
|
|
5552
|
-
opacity:
|
|
5578
|
+
opacity: b >= 0.1 ? 1 : 0,
|
|
5553
5579
|
transition: `opacity 0.5s ${E} 0.2s`
|
|
5554
5580
|
},
|
|
5555
5581
|
children: [
|
|
@@ -5638,7 +5664,7 @@ function wi({
|
|
|
5638
5664
|
}
|
|
5639
5665
|
}
|
|
5640
5666
|
),
|
|
5641
|
-
/* @__PURE__ */ e("div", { style: { flex: 1, padding: "8px 0 24px" }, children: s ? /* @__PURE__ */ e(oi, { items: s, revealPhase:
|
|
5667
|
+
/* @__PURE__ */ e("div", { style: { flex: 1, padding: "8px 0 24px" }, children: s ? /* @__PURE__ */ e(oi, { items: s, revealPhase: b }) : /* @__PURE__ */ e(
|
|
5642
5668
|
ri,
|
|
5643
5669
|
{
|
|
5644
5670
|
type: t,
|
|
@@ -5646,7 +5672,7 @@ function wi({
|
|
|
5646
5672
|
status: o,
|
|
5647
5673
|
context: a,
|
|
5648
5674
|
internal: f,
|
|
5649
|
-
revealPhase:
|
|
5675
|
+
revealPhase: b
|
|
5650
5676
|
}
|
|
5651
5677
|
) })
|
|
5652
5678
|
]
|
|
@@ -5669,28 +5695,28 @@ function Si({
|
|
|
5669
5695
|
fontFamily: s,
|
|
5670
5696
|
children: l
|
|
5671
5697
|
}) {
|
|
5672
|
-
const [f] =
|
|
5673
|
-
|
|
5698
|
+
const [f] = L(20), [c] = L(!1), [p] = L(!0), [h] = L(0.45), [y] = L(3.3), [b, g] = L("compact"), [m, x] = L(0), [v, k] = L(null), [u, R] = L(null), [A, $] = L(0), V = (C) => {
|
|
5699
|
+
b === "compact" && (k(C), g("expanding"), x(0), setTimeout(() => x(1), 50), setTimeout(() => x(2), 800), setTimeout(() => x(3), 1200), setTimeout(() => x(4), 1600), setTimeout(() => x(5), 2e3), setTimeout(() => {
|
|
5674
5700
|
x(6), g("expanded");
|
|
5675
5701
|
}, 2400));
|
|
5676
|
-
},
|
|
5677
|
-
|
|
5702
|
+
}, W = () => {
|
|
5703
|
+
u ? (R(null), $(0)) : b === "expanded" && (g("collapsing"), x(0), k(null), setTimeout(() => {
|
|
5678
5704
|
g((C) => C === "collapsing" ? "compact" : C);
|
|
5679
5705
|
}, 1e3));
|
|
5680
|
-
},
|
|
5681
|
-
|
|
5706
|
+
}, B = (C) => {
|
|
5707
|
+
R(C), $(0);
|
|
5682
5708
|
};
|
|
5683
5709
|
J.useEffect(() => {
|
|
5684
|
-
if (!
|
|
5710
|
+
if (!u) return;
|
|
5685
5711
|
const C = performance.now(), ke = 1200, oe = () => {
|
|
5686
5712
|
const Ne = performance.now() - C, Te = Math.min(1, Ne / ke);
|
|
5687
|
-
|
|
5713
|
+
$(Te), Te < 1 && requestAnimationFrame(oe);
|
|
5688
5714
|
}, le = requestAnimationFrame(oe);
|
|
5689
5715
|
return () => cancelAnimationFrame(le);
|
|
5690
|
-
}, [
|
|
5716
|
+
}, [u]);
|
|
5691
5717
|
const X = () => {
|
|
5692
|
-
|
|
5693
|
-
}, z = o.find((C) => C.name ===
|
|
5718
|
+
R(null), $(0);
|
|
5719
|
+
}, z = o.find((C) => C.name === v), te = z?.status ?? "online", ie = z?.dbSync ?? !0, O = z?.metrics, F = z?.alerts, ne = 330, Se = 340, $e = u ? 1.15 : 1, Q = u ? -(u.ex - ne) * 0.06 : 0, M = u ? -(u.ey - Se) * 0.06 : 0;
|
|
5694
5720
|
return /* @__PURE__ */ d("div", { className: "app", style: s ? { fontFamily: s } : void 0, children: [
|
|
5695
5721
|
/* @__PURE__ */ e(
|
|
5696
5722
|
"div",
|
|
@@ -5705,7 +5731,7 @@ function Si({
|
|
|
5705
5731
|
backgroundPosition: "center center",
|
|
5706
5732
|
backgroundRepeat: "no-repeat",
|
|
5707
5733
|
transition: "transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1)",
|
|
5708
|
-
transform: `translate(${Q}px, ${
|
|
5734
|
+
transform: `translate(${Q}px, ${M}px) scale(${$e})`,
|
|
5709
5735
|
willChange: "transform"
|
|
5710
5736
|
}
|
|
5711
5737
|
}
|
|
@@ -5722,31 +5748,31 @@ function Si({
|
|
|
5722
5748
|
{
|
|
5723
5749
|
className: "scene",
|
|
5724
5750
|
style: {
|
|
5725
|
-
cursor:
|
|
5751
|
+
cursor: b === "expanded" ? "zoom-out" : "default"
|
|
5726
5752
|
},
|
|
5727
|
-
onClick:
|
|
5753
|
+
onClick: W,
|
|
5728
5754
|
children: /* @__PURE__ */ e(
|
|
5729
5755
|
Wt,
|
|
5730
5756
|
{
|
|
5731
|
-
viewState:
|
|
5757
|
+
viewState: b,
|
|
5732
5758
|
animPhase: m,
|
|
5733
|
-
selectedSystem:
|
|
5734
|
-
selectedComponent:
|
|
5735
|
-
drillAnimPhase:
|
|
5759
|
+
selectedSystem: v,
|
|
5760
|
+
selectedComponent: u,
|
|
5761
|
+
drillAnimPhase: A,
|
|
5736
5762
|
rotateY: f,
|
|
5737
5763
|
autoRotateComponents: c,
|
|
5738
5764
|
componentScale: h,
|
|
5739
|
-
drillZoom:
|
|
5765
|
+
drillZoom: y,
|
|
5740
5766
|
autoRotateCarousel: p,
|
|
5741
5767
|
carouselSpeed: a,
|
|
5742
5768
|
logoUrl: r,
|
|
5743
5769
|
onSelectSystem: V,
|
|
5744
|
-
onBackgroundClick:
|
|
5745
|
-
onComponentClick:
|
|
5770
|
+
onBackgroundClick: W,
|
|
5771
|
+
onComponentClick: B,
|
|
5746
5772
|
onCloseDrill: X,
|
|
5747
5773
|
selectedSystemStatus: te,
|
|
5748
5774
|
selectedSystemDbSync: ie,
|
|
5749
|
-
selectedSystemMetrics:
|
|
5775
|
+
selectedSystemMetrics: O,
|
|
5750
5776
|
selectedSystemAlerts: F,
|
|
5751
5777
|
children: l
|
|
5752
5778
|
}
|
|
@@ -5755,7 +5781,7 @@ function Si({
|
|
|
5755
5781
|
)
|
|
5756
5782
|
] });
|
|
5757
5783
|
}
|
|
5758
|
-
function
|
|
5784
|
+
function S(t, n, o = 24) {
|
|
5759
5785
|
return Array.from({ length: o }, (i, r) => {
|
|
5760
5786
|
const a = r / o;
|
|
5761
5787
|
return Math.min(100, Math.max(0, t + Math.sin(a * Math.PI * 2) * n + (Math.random() - 0.5) * 10));
|
|
@@ -5767,95 +5793,95 @@ function bt(t) {
|
|
|
5767
5793
|
function me(t, n, o) {
|
|
5768
5794
|
const i = t === "online" ? "online" : t, r = bt(t), a = o?.cpuLoad ?? 50, s = o?.memLoad ?? 60, l = i === "critical" || i === "warning" && a > 80 ? i : "online", f = i === "warning" && s > 85 ? "warning" : i === "critical" ? "critical" : "online", c = i === "critical" && n === "APP-03" ? "critical" : "online", p = i === "offline" ? "offline" : "online";
|
|
5769
5795
|
return [
|
|
5770
|
-
{ id: "cpu-0", label: "CPU-0", status: l, detail: i === "critical" ? "Core overload" : i === "warning" ? "Load spike" : void 0, element: /* @__PURE__ */ e(
|
|
5771
|
-
{ id: "cpu-1", label: "CPU-1", status: "online", element: /* @__PURE__ */ e(
|
|
5772
|
-
{ id: "heap-0", label: "HEAP-0", status: f, detail: f === "warning" ? "Memory heap usage" : f === "critical" ? "OOM risk" : void 0, element: /* @__PURE__ */ e(
|
|
5773
|
-
{ id: "heap-1", label: "HEAP-1", status: "online", element: /* @__PURE__ */ e(
|
|
5796
|
+
{ id: "cpu-0", label: "CPU-0", status: l, detail: i === "critical" ? "Core overload" : i === "warning" ? "Load spike" : void 0, element: /* @__PURE__ */ e(De, { color: r, label: "CPU-0", status: l, load: a }) },
|
|
5797
|
+
{ id: "cpu-1", label: "CPU-1", status: "online", element: /* @__PURE__ */ e(De, { color: r, label: "CPU-1", status: "online", load: a * 0.7 }) },
|
|
5798
|
+
{ id: "heap-0", label: "HEAP-0", status: f, detail: f === "warning" ? "Memory heap usage" : f === "critical" ? "OOM risk" : void 0, element: /* @__PURE__ */ e(We, { color: "#8855ee", label: "HEAP-0", status: f, usedPercent: s }) },
|
|
5799
|
+
{ id: "heap-1", label: "HEAP-1", status: "online", element: /* @__PURE__ */ e(We, { color: "#8855ee", label: "HEAP-1", status: "online", usedPercent: s * 0.85 }) },
|
|
5774
5800
|
{ id: "drive-1", label: "DRIVE-1", status: "online", element: /* @__PURE__ */ e(ye, { color: r, label: "DRIVE-1", status: "online", activity: !0 }) },
|
|
5775
5801
|
{ id: "drive-2", label: "DRIVE-2", status: "online", element: /* @__PURE__ */ e(ye, { color: r, label: "DRIVE-2", status: "online", activity: a > 30 }) },
|
|
5776
5802
|
{ id: "drive-3", label: "DRIVE-3", status: "online", element: /* @__PURE__ */ e(ye, { color: r, label: "DRIVE-3", status: "online", activity: a > 50 }) },
|
|
5777
|
-
{ id: "thread-pool", label: "THREAD-POOL", status: c, detail: c === "critical" ? "Thread exhaustion" : void 0, element: /* @__PURE__ */ e(
|
|
5803
|
+
{ id: "thread-pool", label: "THREAD-POOL", status: c, detail: c === "critical" ? "Thread exhaustion" : void 0, element: /* @__PURE__ */ e(I, { color: r, label: "THREAD-POOL", status: c }) },
|
|
5778
5804
|
{ id: "network", label: "NET", status: p, element: /* @__PURE__ */ e(ut, { color: r, label: "NET", status: p }) }
|
|
5779
5805
|
];
|
|
5780
5806
|
}
|
|
5781
5807
|
function xe(t) {
|
|
5782
5808
|
const n = t?.cpuLoad ?? 50, o = t?.memLoad ?? 60;
|
|
5783
5809
|
return [
|
|
5784
|
-
{ id: "cpu", label: "CPU-0", unit: "%", color: "#00e5ff", data:
|
|
5785
|
-
{ id: "cpu1", label: "CPU-1", unit: "%", color: "#00e5ff", data:
|
|
5786
|
-
{ id: "heap0", label: "HEAP-0", unit: "%", color: "#8855ee", data:
|
|
5787
|
-
{ id: "heap1", label: "HEAP-1", unit: "%", color: "#8855ee", data:
|
|
5788
|
-
{ id: "drive1", label: "DRIVE-1 I/O", unit: "%", color: "#ff8c00", data:
|
|
5789
|
-
{ id: "drive2", label: "DRIVE-2 I/O", unit: "%", color: "#ff8c00", data:
|
|
5790
|
-
{ id: "drive3", label: "DRIVE-3 I/O", unit: "%", color: "#ff8c00", data:
|
|
5791
|
-
{ id: "thread", label: "THREAD-POOL", unit: "%", color: "#22aaff", data:
|
|
5810
|
+
{ id: "cpu", label: "CPU-0", unit: "%", color: "#00e5ff", data: S(n, 15) },
|
|
5811
|
+
{ id: "cpu1", label: "CPU-1", unit: "%", color: "#00e5ff", data: S(n * 0.7, 12) },
|
|
5812
|
+
{ id: "heap0", label: "HEAP-0", unit: "%", color: "#8855ee", data: S(o, 18) },
|
|
5813
|
+
{ id: "heap1", label: "HEAP-1", unit: "%", color: "#8855ee", data: S(o * 0.85, 14) },
|
|
5814
|
+
{ id: "drive1", label: "DRIVE-1 I/O", unit: "%", color: "#ff8c00", data: S(40, 25) },
|
|
5815
|
+
{ id: "drive2", label: "DRIVE-2 I/O", unit: "%", color: "#ff8c00", data: S(35, 20) },
|
|
5816
|
+
{ id: "drive3", label: "DRIVE-3 I/O", unit: "%", color: "#ff8c00", data: S(30, 22) },
|
|
5817
|
+
{ id: "thread", label: "THREAD-POOL", unit: "%", color: "#22aaff", data: S(55, 20) }
|
|
5792
5818
|
];
|
|
5793
5819
|
}
|
|
5794
5820
|
function gt(t, n, o) {
|
|
5795
5821
|
const i = t === "online" ? "online" : t, r = bt(t), a = i === "critical" || i === "offline" ? i : "online", s = i === "warning" ? "warning" : "online", l = i === "critical" ? "critical" : "online";
|
|
5796
5822
|
return [
|
|
5797
|
-
{ id: "port-1", label: "PORT-1", status: "online", element: /* @__PURE__ */ e(
|
|
5798
|
-
{ id: "port-2", label: "PORT-2", status: "online", element: /* @__PURE__ */ e(
|
|
5799
|
-
{ id: "port-3", label: "PORT-3", status: a, detail: i === "critical" ? "Gateway timeout" : i === "offline" ? "Unreachable" : void 0, element: /* @__PURE__ */ e(
|
|
5800
|
-
{ id: "port-4", label: "PORT-4", status: "online", element: /* @__PURE__ */ e(
|
|
5801
|
-
{ id: "port-5", label: "PORT-5", status: s, detail: s === "warning" ? "Latency spike" : void 0, element: /* @__PURE__ */ e(
|
|
5802
|
-
{ id: "port-6", label: "PORT-6", status: "online", element: /* @__PURE__ */ e(
|
|
5803
|
-
{ id: "port-7", label: "PORT-7", status: "online", element: /* @__PURE__ */ e(
|
|
5804
|
-
{ id: "port-8", label: "PORT-8", status: "online", element: /* @__PURE__ */ e(
|
|
5805
|
-
{ id: "http-worker", label: "HTTP-WORKER", status: l, detail: l === "critical" ? "Worker timeout" : void 0, element: /* @__PURE__ */ e(
|
|
5806
|
-
{ id: "https-worker", label: "HTTPS-WORKER", status: "online", element: /* @__PURE__ */ e(
|
|
5823
|
+
{ id: "port-1", label: "PORT-1", status: "online", element: /* @__PURE__ */ e(N, { color: r, label: "PORT-1", status: "online" }) },
|
|
5824
|
+
{ id: "port-2", label: "PORT-2", status: "online", element: /* @__PURE__ */ e(N, { color: r, label: "PORT-2", status: "online" }) },
|
|
5825
|
+
{ id: "port-3", label: "PORT-3", status: a, detail: i === "critical" ? "Gateway timeout" : i === "offline" ? "Unreachable" : void 0, element: /* @__PURE__ */ e(N, { color: r, label: "PORT-3", status: a }) },
|
|
5826
|
+
{ id: "port-4", label: "PORT-4", status: "online", element: /* @__PURE__ */ e(N, { color: r, label: "PORT-4", status: "online" }) },
|
|
5827
|
+
{ id: "port-5", label: "PORT-5", status: s, detail: s === "warning" ? "Latency spike" : void 0, element: /* @__PURE__ */ e(N, { color: r, label: "PORT-5", status: s }) },
|
|
5828
|
+
{ id: "port-6", label: "PORT-6", status: "online", element: /* @__PURE__ */ e(N, { color: r, label: "PORT-6", status: "online" }) },
|
|
5829
|
+
{ id: "port-7", label: "PORT-7", status: "online", element: /* @__PURE__ */ e(N, { color: r, label: "PORT-7", status: "online" }) },
|
|
5830
|
+
{ id: "port-8", label: "PORT-8", status: "online", element: /* @__PURE__ */ e(N, { color: r, label: "PORT-8", status: "online" }) },
|
|
5831
|
+
{ id: "http-worker", label: "HTTP-WORKER", status: l, detail: l === "critical" ? "Worker timeout" : void 0, element: /* @__PURE__ */ e(I, { color: r, label: "HTTP-WORKER", status: l }) },
|
|
5832
|
+
{ id: "https-worker", label: "HTTPS-WORKER", status: "online", element: /* @__PURE__ */ e(I, { color: "#bb55ff", label: "HTTPS-WORKER", status: "online" }) }
|
|
5807
5833
|
];
|
|
5808
5834
|
}
|
|
5809
5835
|
function yt(t) {
|
|
5810
5836
|
const n = t?.traffic ?? 50;
|
|
5811
5837
|
return [
|
|
5812
|
-
{ id: "traffic", label: "TRAFFIC", unit: "%", color: "#00e5ff", data:
|
|
5813
|
-
{ id: "port1", label: "PORT-1", unit: "kbps", color: "#22aaff", data:
|
|
5814
|
-
{ id: "port2", label: "PORT-2", unit: "kbps", color: "#22aaff", data:
|
|
5815
|
-
{ id: "port3", label: "PORT-3", unit: "kbps", color: "#22aaff", data:
|
|
5816
|
-
{ id: "worker", label: "WORKER", unit: "%", color: "#bb55ff", data:
|
|
5838
|
+
{ id: "traffic", label: "TRAFFIC", unit: "%", color: "#00e5ff", data: S(n, 20) },
|
|
5839
|
+
{ id: "port1", label: "PORT-1", unit: "kbps", color: "#22aaff", data: S(60, 25) },
|
|
5840
|
+
{ id: "port2", label: "PORT-2", unit: "kbps", color: "#22aaff", data: S(45, 20) },
|
|
5841
|
+
{ id: "port3", label: "PORT-3", unit: "kbps", color: "#22aaff", data: S(70, 30) },
|
|
5842
|
+
{ id: "worker", label: "WORKER", unit: "%", color: "#bb55ff", data: S(n * 0.9, 15) }
|
|
5817
5843
|
];
|
|
5818
5844
|
}
|
|
5819
5845
|
function ai(t, n, o) {
|
|
5820
5846
|
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";
|
|
5821
5847
|
return [
|
|
5822
|
-
{ id: "inst-0", label: "INST-0", status: "online", element: /* @__PURE__ */ e(
|
|
5823
|
-
{ id: "inst-1", label: "INST-1", status: "online", element: /* @__PURE__ */ e(
|
|
5824
|
-
{ id: "inst-2", label: "INST-2", status: r, detail: r === "critical" ? "Instance unreachable" : void 0, element: /* @__PURE__ */ e(
|
|
5825
|
-
{ 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(
|
|
5826
|
-
{ id: "worker-1", label: "WORKER-1", status: "online", element: /* @__PURE__ */ e(
|
|
5827
|
-
{ id: "worker-2", label: "WORKER-2", status: "online", element: /* @__PURE__ */ e(
|
|
5828
|
-
{ id: "worker-3", label: "WORKER-3", status: s, detail: s === "critical" ? "Worker timeout" : void 0, element: /* @__PURE__ */ e(
|
|
5848
|
+
{ id: "inst-0", label: "INST-0", status: "online", element: /* @__PURE__ */ e(N, { color: "#bb55ff", label: "INST-0", status: "online" }) },
|
|
5849
|
+
{ id: "inst-1", label: "INST-1", status: "online", element: /* @__PURE__ */ e(N, { color: "#bb55ff", label: "INST-1", status: "online" }) },
|
|
5850
|
+
{ id: "inst-2", label: "INST-2", status: r, detail: r === "critical" ? "Instance unreachable" : void 0, element: /* @__PURE__ */ e(N, { color: "#bb55ff", label: "INST-2", status: r }) },
|
|
5851
|
+
{ 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(I, { color: "#bb55ff", label: "QUEUE-0", status: a }) },
|
|
5852
|
+
{ id: "worker-1", label: "WORKER-1", status: "online", element: /* @__PURE__ */ e(I, { color: "#bb55ff", label: "WORKER-1", status: "online" }) },
|
|
5853
|
+
{ id: "worker-2", label: "WORKER-2", status: "online", element: /* @__PURE__ */ e(I, { color: "#bb55ff", label: "WORKER-2", status: "online" }) },
|
|
5854
|
+
{ id: "worker-3", label: "WORKER-3", status: s, detail: s === "critical" ? "Worker timeout" : void 0, element: /* @__PURE__ */ e(I, { color: "#bb55ff", label: "WORKER-3", status: s }) }
|
|
5829
5855
|
];
|
|
5830
5856
|
}
|
|
5831
5857
|
function li(t) {
|
|
5832
5858
|
const n = t?.queueDepth ?? 50;
|
|
5833
5859
|
return [
|
|
5834
|
-
{ id: "traffic", label: "TRAFFIC", unit: "%", color: "#00e5ff", data:
|
|
5835
|
-
{ id: "port1", label: "PORT-1", unit: "kbps", color: "#22aaff", data:
|
|
5836
|
-
{ id: "port2", label: "PORT-2", unit: "kbps", color: "#22aaff", data:
|
|
5837
|
-
{ id: "port3", label: "PORT-3", unit: "kbps", color: "#22aaff", data:
|
|
5838
|
-
{ id: "worker", label: "WORKER", unit: "%", color: "#bb55ff", data:
|
|
5860
|
+
{ id: "traffic", label: "TRAFFIC", unit: "%", color: "#00e5ff", data: S(n, 20) },
|
|
5861
|
+
{ id: "port1", label: "PORT-1", unit: "kbps", color: "#22aaff", data: S(60, 25) },
|
|
5862
|
+
{ id: "port2", label: "PORT-2", unit: "kbps", color: "#22aaff", data: S(45, 20) },
|
|
5863
|
+
{ id: "port3", label: "PORT-3", unit: "kbps", color: "#22aaff", data: S(70, 30) },
|
|
5864
|
+
{ id: "worker", label: "WORKER", unit: "%", color: "#bb55ff", data: S(n * 0.9, 15) }
|
|
5839
5865
|
];
|
|
5840
5866
|
}
|
|
5841
|
-
function
|
|
5867
|
+
function ze(t, n, o) {
|
|
5842
5868
|
const i = t === "online" ? "online" : t, r = "#ff8c00", a = o?.capacity ?? 72, s = i === "critical" || i === "offline" ? i : i === "warning" ? "warning" : "online", l = i === "warning" && n === "DB-STB" ? "warning" : "online", f = i === "critical" ? "critical" : "online", c = i === "warning" ? "warning" : "online";
|
|
5843
5869
|
return [
|
|
5844
|
-
{ id: "platter-0", label: "PLATTER-0", status: "online", element: /* @__PURE__ */ e(
|
|
5845
|
-
{ id: "platter-1", label: "PLATTER-1", status: s, detail: i === "critical" ? "I/O failure" : i === "offline" ? "Connection lost" : i === "warning" ? "Slow queries" : void 0, element: /* @__PURE__ */ e(
|
|
5846
|
-
{ id: "platter-2", label: "PLATTER-2", status: l, detail: l === "warning" ? "Replication lag" : void 0, element: /* @__PURE__ */ e(
|
|
5847
|
-
{ id: "conn-pool", label: "CONN-POOL", status: f, detail: f === "critical" ? "Pool exhausted" : void 0, element: /* @__PURE__ */ e(
|
|
5848
|
-
{ id: "query-cache", label: "QUERY-CACHE", status: c, detail: c === "warning" ? "Cache miss rate" : void 0, element: /* @__PURE__ */ e(
|
|
5870
|
+
{ id: "platter-0", label: "PLATTER-0", status: "online", element: /* @__PURE__ */ e(Ie, { color: r, label: "PLATTER-0", status: "online", capacityPercent: a }) },
|
|
5871
|
+
{ id: "platter-1", label: "PLATTER-1", status: s, detail: i === "critical" ? "I/O failure" : i === "offline" ? "Connection lost" : i === "warning" ? "Slow queries" : void 0, element: /* @__PURE__ */ e(Ie, { color: r, label: "PLATTER-1", status: s, capacityPercent: a }) },
|
|
5872
|
+
{ id: "platter-2", label: "PLATTER-2", status: l, detail: l === "warning" ? "Replication lag" : void 0, element: /* @__PURE__ */ e(Ie, { color: r, label: "PLATTER-2", status: l, capacityPercent: a }) },
|
|
5873
|
+
{ id: "conn-pool", label: "CONN-POOL", status: f, detail: f === "critical" ? "Pool exhausted" : void 0, element: /* @__PURE__ */ e(I, { color: r, label: "CONN-POOL", status: f }) },
|
|
5874
|
+
{ id: "query-cache", label: "QUERY-CACHE", status: c, detail: c === "warning" ? "Cache miss rate" : void 0, element: /* @__PURE__ */ e(I, { color: "#00ff88", label: "QUERY-CACHE", status: c }) }
|
|
5849
5875
|
];
|
|
5850
5876
|
}
|
|
5851
|
-
function
|
|
5877
|
+
function Me(t) {
|
|
5852
5878
|
const n = t?.capacity ?? 70;
|
|
5853
5879
|
return [
|
|
5854
|
-
{ id: "platter0", label: "PLATTER-0 I/O", unit: "%", color: "#ff8c00", data:
|
|
5855
|
-
{ id: "platter1", label: "PLATTER-1 I/O", unit: "%", color: "#ff8c00", data:
|
|
5856
|
-
{ id: "platter2", label: "PLATTER-2 I/O", unit: "%", color: "#ff8c00", data:
|
|
5857
|
-
{ id: "connpool", label: "CONN-POOL", unit: "%", color: "#00e5ff", data:
|
|
5858
|
-
{ id: "cache", label: "QUERY-CACHE", unit: "%", color: "#00ff88", data:
|
|
5880
|
+
{ id: "platter0", label: "PLATTER-0 I/O", unit: "%", color: "#ff8c00", data: S(40, 20) },
|
|
5881
|
+
{ id: "platter1", label: "PLATTER-1 I/O", unit: "%", color: "#ff8c00", data: S(55, 25) },
|
|
5882
|
+
{ id: "platter2", label: "PLATTER-2 I/O", unit: "%", color: "#ff8c00", data: S(35, 18) },
|
|
5883
|
+
{ id: "connpool", label: "CONN-POOL", unit: "%", color: "#00e5ff", data: S(n, 15) },
|
|
5884
|
+
{ id: "cache", label: "QUERY-CACHE", unit: "%", color: "#00ff88", data: S(75, 12) }
|
|
5859
5885
|
];
|
|
5860
5886
|
}
|
|
5861
5887
|
function Je(t) {
|
|
@@ -6111,11 +6137,11 @@ function di({ config: t }) {
|
|
|
6111
6137
|
name: "DB-PRI",
|
|
6112
6138
|
status: c,
|
|
6113
6139
|
context: { capacity: 72 },
|
|
6114
|
-
subComponents:
|
|
6115
|
-
graphSeries:
|
|
6140
|
+
subComponents: ze(c, "DB-PRI", { capacity: 72 }),
|
|
6141
|
+
graphSeries: Me({ capacity: 72 })
|
|
6116
6142
|
},
|
|
6117
6143
|
children: /* @__PURE__ */ e(
|
|
6118
|
-
|
|
6144
|
+
Oe,
|
|
6119
6145
|
{
|
|
6120
6146
|
rotateY: -o,
|
|
6121
6147
|
autoRotate: i,
|
|
@@ -6144,11 +6170,11 @@ function di({ config: t }) {
|
|
|
6144
6170
|
name: "DB-STB",
|
|
6145
6171
|
status: p,
|
|
6146
6172
|
context: { capacity: 72 },
|
|
6147
|
-
subComponents:
|
|
6148
|
-
graphSeries:
|
|
6173
|
+
subComponents: ze(p, "DB-STB", { capacity: 72 }),
|
|
6174
|
+
graphSeries: Me({ capacity: 72 })
|
|
6149
6175
|
},
|
|
6150
6176
|
children: /* @__PURE__ */ e(
|
|
6151
|
-
|
|
6177
|
+
Oe,
|
|
6152
6178
|
{
|
|
6153
6179
|
rotateY: o,
|
|
6154
6180
|
autoRotate: i,
|
|
@@ -6181,7 +6207,7 @@ function ci({ config: t }) {
|
|
|
6181
6207
|
const n = J.useContext(ae), { wdStatus: o, msStatus: i, srv1Status: r, srv2Status: a, srv3Status: s, pdbStatus: l, sdbStatus: f, dbSync: c } = t, p = n?.isSelected && n?.isExpandedPos;
|
|
6182
6208
|
return n?.isSelected ? /* @__PURE__ */ d("div", { style: { pointerEvents: "none" }, children: [
|
|
6183
6209
|
/* @__PURE__ */ e(
|
|
6184
|
-
|
|
6210
|
+
D,
|
|
6185
6211
|
{
|
|
6186
6212
|
ex: 220,
|
|
6187
6213
|
ey: 260,
|
|
@@ -6196,7 +6222,7 @@ function ci({ config: t }) {
|
|
|
6196
6222
|
}
|
|
6197
6223
|
),
|
|
6198
6224
|
/* @__PURE__ */ e(
|
|
6199
|
-
|
|
6225
|
+
D,
|
|
6200
6226
|
{
|
|
6201
6227
|
ex: 440,
|
|
6202
6228
|
ey: 260,
|
|
@@ -6211,7 +6237,7 @@ function ci({ config: t }) {
|
|
|
6211
6237
|
}
|
|
6212
6238
|
),
|
|
6213
6239
|
/* @__PURE__ */ e(
|
|
6214
|
-
|
|
6240
|
+
D,
|
|
6215
6241
|
{
|
|
6216
6242
|
ex: 165,
|
|
6217
6243
|
ey: 390,
|
|
@@ -6226,7 +6252,7 @@ function ci({ config: t }) {
|
|
|
6226
6252
|
}
|
|
6227
6253
|
),
|
|
6228
6254
|
/* @__PURE__ */ e(
|
|
6229
|
-
|
|
6255
|
+
D,
|
|
6230
6256
|
{
|
|
6231
6257
|
ex: 330,
|
|
6232
6258
|
ey: 390,
|
|
@@ -6241,7 +6267,7 @@ function ci({ config: t }) {
|
|
|
6241
6267
|
}
|
|
6242
6268
|
),
|
|
6243
6269
|
/* @__PURE__ */ e(
|
|
6244
|
-
|
|
6270
|
+
D,
|
|
6245
6271
|
{
|
|
6246
6272
|
ex: 495,
|
|
6247
6273
|
ey: 390,
|
|
@@ -6256,7 +6282,7 @@ function ci({ config: t }) {
|
|
|
6256
6282
|
}
|
|
6257
6283
|
),
|
|
6258
6284
|
/* @__PURE__ */ e(
|
|
6259
|
-
|
|
6285
|
+
D,
|
|
6260
6286
|
{
|
|
6261
6287
|
ex: 200,
|
|
6262
6288
|
ey: 520,
|
|
@@ -6271,7 +6297,7 @@ function ci({ config: t }) {
|
|
|
6271
6297
|
}
|
|
6272
6298
|
),
|
|
6273
6299
|
/* @__PURE__ */ e(
|
|
6274
|
-
|
|
6300
|
+
D,
|
|
6275
6301
|
{
|
|
6276
6302
|
ex: 460,
|
|
6277
6303
|
ey: 520,
|
|
@@ -6286,7 +6312,7 @@ function ci({ config: t }) {
|
|
|
6286
6312
|
}
|
|
6287
6313
|
),
|
|
6288
6314
|
!c && /* @__PURE__ */ e(
|
|
6289
|
-
|
|
6315
|
+
D,
|
|
6290
6316
|
{
|
|
6291
6317
|
ex: 330,
|
|
6292
6318
|
ey: 520,
|
|
@@ -6528,11 +6554,11 @@ function fi({ config: t }) {
|
|
|
6528
6554
|
name: "DB-PRI",
|
|
6529
6555
|
status: f,
|
|
6530
6556
|
context: { capacity: 72 },
|
|
6531
|
-
subComponents:
|
|
6532
|
-
graphSeries:
|
|
6557
|
+
subComponents: ze(f, "DB-PRI", { capacity: 72 }),
|
|
6558
|
+
graphSeries: Me({ capacity: 72 })
|
|
6533
6559
|
},
|
|
6534
6560
|
children: /* @__PURE__ */ e(
|
|
6535
|
-
|
|
6561
|
+
Oe,
|
|
6536
6562
|
{
|
|
6537
6563
|
rotateY: -o,
|
|
6538
6564
|
autoRotate: i,
|
|
@@ -6561,11 +6587,11 @@ function fi({ config: t }) {
|
|
|
6561
6587
|
name: "DB-STB",
|
|
6562
6588
|
status: c,
|
|
6563
6589
|
context: { capacity: 72 },
|
|
6564
|
-
subComponents:
|
|
6565
|
-
graphSeries:
|
|
6590
|
+
subComponents: ze(c, "DB-STB", { capacity: 72 }),
|
|
6591
|
+
graphSeries: Me({ capacity: 72 })
|
|
6566
6592
|
},
|
|
6567
6593
|
children: /* @__PURE__ */ e(
|
|
6568
|
-
|
|
6594
|
+
Oe,
|
|
6569
6595
|
{
|
|
6570
6596
|
rotateY: o,
|
|
6571
6597
|
autoRotate: i,
|
|
@@ -6598,7 +6624,7 @@ function hi({ config: t }) {
|
|
|
6598
6624
|
const n = J.useContext(ae), { dispStatus: o, srv1Status: i, srv2Status: r, srv3Status: a, pdbStatus: s, sdbStatus: l, dbSync: f } = t, c = n?.isSelected && n?.isExpandedPos;
|
|
6599
6625
|
return n?.isSelected ? /* @__PURE__ */ d("div", { style: { pointerEvents: "none" }, children: [
|
|
6600
6626
|
/* @__PURE__ */ e(
|
|
6601
|
-
|
|
6627
|
+
D,
|
|
6602
6628
|
{
|
|
6603
6629
|
ex: 330,
|
|
6604
6630
|
ey: 260,
|
|
@@ -6613,7 +6639,7 @@ function hi({ config: t }) {
|
|
|
6613
6639
|
}
|
|
6614
6640
|
),
|
|
6615
6641
|
/* @__PURE__ */ e(
|
|
6616
|
-
|
|
6642
|
+
D,
|
|
6617
6643
|
{
|
|
6618
6644
|
ex: 165,
|
|
6619
6645
|
ey: 390,
|
|
@@ -6628,7 +6654,7 @@ function hi({ config: t }) {
|
|
|
6628
6654
|
}
|
|
6629
6655
|
),
|
|
6630
6656
|
/* @__PURE__ */ e(
|
|
6631
|
-
|
|
6657
|
+
D,
|
|
6632
6658
|
{
|
|
6633
6659
|
ex: 330,
|
|
6634
6660
|
ey: 390,
|
|
@@ -6643,7 +6669,7 @@ function hi({ config: t }) {
|
|
|
6643
6669
|
}
|
|
6644
6670
|
),
|
|
6645
6671
|
/* @__PURE__ */ e(
|
|
6646
|
-
|
|
6672
|
+
D,
|
|
6647
6673
|
{
|
|
6648
6674
|
ex: 495,
|
|
6649
6675
|
ey: 390,
|
|
@@ -6658,7 +6684,7 @@ function hi({ config: t }) {
|
|
|
6658
6684
|
}
|
|
6659
6685
|
),
|
|
6660
6686
|
/* @__PURE__ */ e(
|
|
6661
|
-
|
|
6687
|
+
D,
|
|
6662
6688
|
{
|
|
6663
6689
|
ex: 200,
|
|
6664
6690
|
ey: 520,
|
|
@@ -6673,7 +6699,7 @@ function hi({ config: t }) {
|
|
|
6673
6699
|
}
|
|
6674
6700
|
),
|
|
6675
6701
|
/* @__PURE__ */ e(
|
|
6676
|
-
|
|
6702
|
+
D,
|
|
6677
6703
|
{
|
|
6678
6704
|
ex: 460,
|
|
6679
6705
|
ey: 520,
|
|
@@ -6688,7 +6714,7 @@ function hi({ config: t }) {
|
|
|
6688
6714
|
}
|
|
6689
6715
|
),
|
|
6690
6716
|
!f && /* @__PURE__ */ e(
|
|
6691
|
-
|
|
6717
|
+
D,
|
|
6692
6718
|
{
|
|
6693
6719
|
ex: 330,
|
|
6694
6720
|
ey: 520,
|
|
@@ -6718,13 +6744,13 @@ function Ei({ config: t, ...n }) {
|
|
|
6718
6744
|
}
|
|
6719
6745
|
export {
|
|
6720
6746
|
Si as AIOPsDashboard,
|
|
6721
|
-
|
|
6747
|
+
De as CPU3D,
|
|
6722
6748
|
Wt as Carousel,
|
|
6723
6749
|
Ge as CarouselContext,
|
|
6724
6750
|
Ke as CarouselItemContext,
|
|
6725
6751
|
It as ComponentDialog,
|
|
6726
6752
|
wi as ComponentDrillView,
|
|
6727
|
-
|
|
6753
|
+
Oe as Database3D,
|
|
6728
6754
|
ye as DriveBay3D,
|
|
6729
6755
|
pi as EXCHANGE_CONNECTIONS,
|
|
6730
6756
|
Ei as ExchangeService,
|
|
@@ -6733,17 +6759,17 @@ export {
|
|
|
6733
6759
|
Qe as HOLO_GLASS,
|
|
6734
6760
|
we as HOLO_SURFACE,
|
|
6735
6761
|
ei as HistoricalGraphPanel,
|
|
6736
|
-
|
|
6762
|
+
Nt as HoloBase,
|
|
6737
6763
|
ft as Human3D,
|
|
6738
|
-
|
|
6764
|
+
We as Memory3D,
|
|
6739
6765
|
Zt as MessageServer3D,
|
|
6740
6766
|
ut as NetworkBlock3D,
|
|
6741
|
-
|
|
6742
|
-
|
|
6743
|
-
|
|
6767
|
+
D as NodeCallout,
|
|
6768
|
+
Ie as Platter3D,
|
|
6769
|
+
N as Port3D,
|
|
6744
6770
|
Ri as SAPService,
|
|
6745
6771
|
si as SAP_CONNECTIONS,
|
|
6746
|
-
|
|
6772
|
+
w as STATUS_CFG,
|
|
6747
6773
|
ue as Server3D,
|
|
6748
6774
|
dt as Service,
|
|
6749
6775
|
ae as ServiceContext,
|
|
@@ -6751,7 +6777,7 @@ export {
|
|
|
6751
6777
|
T as ServiceNode,
|
|
6752
6778
|
zt as SvgConnection,
|
|
6753
6779
|
ct as SyncBridge,
|
|
6754
|
-
|
|
6780
|
+
I as ThreadPool3D,
|
|
6755
6781
|
pt as WebDispatcher3D,
|
|
6756
6782
|
Ci as computeExchangeDialogAlerts,
|
|
6757
6783
|
Pi as computeExchangeDialogMetrics,
|
|
@@ -6759,8 +6785,8 @@ export {
|
|
|
6759
6785
|
ki as computeSAPDialogAlerts,
|
|
6760
6786
|
$i as computeSAPDialogMetrics,
|
|
6761
6787
|
Je as computeSAPServiceStatus,
|
|
6762
|
-
|
|
6763
|
-
|
|
6788
|
+
Me as getDatabaseGraphSeries,
|
|
6789
|
+
ze as getDatabaseSubComponents,
|
|
6764
6790
|
yt as getDispatcherGraphSeries,
|
|
6765
6791
|
gt as getDispatcherSubComponents,
|
|
6766
6792
|
li as getMessageServerGraphSeries,
|