react-aiops 0.1.3 → 0.1.5
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/NodeCallout.d.ts.map +1 -1
- package/dist/components/Server3D.d.ts +3 -1
- package/dist/components/Server3D.d.ts.map +1 -1
- package/dist/components/ServiceNode.d.ts.map +1 -1
- package/dist/components/SimpleService.d.ts +22 -0
- package/dist/components/SimpleService.d.ts.map +1 -0
- package/dist/components/index.d.ts +3 -1
- package/dist/components/index.d.ts.map +1 -1
- package/dist/index.js +795 -653
- package/dist/types.d.ts +12 -2
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsxs as d, jsx as e, Fragment as Ce } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
const
|
|
2
|
+
import ee, { createContext as Ge, useContext as ve, useState as I, useEffect as Ae, useMemo as Xe, useRef as te } from "react";
|
|
3
|
+
const It = {
|
|
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 Ot({
|
|
9
9
|
name: t,
|
|
10
10
|
status: n,
|
|
11
11
|
dbSync: o = !0,
|
|
@@ -146,7 +146,7 @@ function At({
|
|
|
146
146
|
}
|
|
147
147
|
),
|
|
148
148
|
c.map((p, h) => {
|
|
149
|
-
const y =
|
|
149
|
+
const y = It[p.level];
|
|
150
150
|
return /* @__PURE__ */ d(
|
|
151
151
|
"div",
|
|
152
152
|
{
|
|
@@ -182,8 +182,8 @@ const w = {
|
|
|
182
182
|
warning: { color: "#ff8c00", glow: "rgba(255,140,0,0.55)" },
|
|
183
183
|
critical: { color: "#ff2255", glow: "rgba(255,34,85,0.55)" },
|
|
184
184
|
offline: { color: "#1e3a5a", glow: "rgba(30,58,90,0.25)" }
|
|
185
|
-
},
|
|
186
|
-
function
|
|
185
|
+
}, ki = "#00e5ff", Ri = "#0055cc", we = "linear-gradient(180deg, #071428 0%, #040c1c 60%, #030810 100%)", Ke = "linear-gradient(180deg, rgba(10,25,50,0.35) 0%, rgba(5,15,35,0.25) 60%, rgba(3,10,20,0.15) 100%)";
|
|
186
|
+
function Ze(t, n, o) {
|
|
187
187
|
const i = {
|
|
188
188
|
position: "absolute",
|
|
189
189
|
overflow: "hidden",
|
|
@@ -233,56 +233,56 @@ function qe(t, n, o) {
|
|
|
233
233
|
}
|
|
234
234
|
};
|
|
235
235
|
}
|
|
236
|
-
const
|
|
237
|
-
function
|
|
236
|
+
const je = "cubic-bezier(0.34, 1.56, 0.64, 1)", Qe = "cubic-bezier(0.16, 1, 0.3, 1)";
|
|
237
|
+
function ht(t) {
|
|
238
238
|
return w[t]?.color ?? w.online.color;
|
|
239
239
|
}
|
|
240
|
-
function
|
|
240
|
+
function Dt(t, n, o) {
|
|
241
241
|
return t >= o ? "#ff2255" : t >= n ? "#ff8c00" : "#00e5ff";
|
|
242
242
|
}
|
|
243
|
-
function
|
|
243
|
+
function Ie(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 Wt({
|
|
247
247
|
component: t,
|
|
248
248
|
onClose: n,
|
|
249
249
|
visible: o,
|
|
250
250
|
sceneWidth: i = 660,
|
|
251
251
|
sceneHeight: r = 600
|
|
252
252
|
}) {
|
|
253
|
-
const { type: a, name: s, status: l, ex: f, ey: c, context: p = {} } = t, h =
|
|
253
|
+
const { type: a, name: s, status: l, ex: f, ey: c, context: p = {} } = t, h = ht(l), y = f >= i / 2, u = c >= r / 2, g = {
|
|
254
254
|
position: "fixed",
|
|
255
255
|
...y ? { right: 28 } : { left: 28 },
|
|
256
|
-
...
|
|
257
|
-
}, m = y ? 40 : -40, x =
|
|
258
|
-
let
|
|
256
|
+
...u ? { bottom: 110 } : { top: 72 }
|
|
257
|
+
}, m = y ? 40 : -40, x = u ? 30 : -30, v = t.dialogMetrics ?? p.dialogMetrics;
|
|
258
|
+
let $;
|
|
259
259
|
if (v && v.length > 0)
|
|
260
|
-
|
|
261
|
-
const
|
|
260
|
+
$ = v.map((b, k) => {
|
|
261
|
+
const T = b.warnAt ?? 70, R = b.critAt ?? 85;
|
|
262
262
|
return {
|
|
263
|
-
id:
|
|
264
|
-
label:
|
|
265
|
-
sublabel:
|
|
266
|
-
value:
|
|
267
|
-
unit:
|
|
268
|
-
status:
|
|
269
|
-
icon:
|
|
270
|
-
delay:
|
|
271
|
-
colorOverride:
|
|
272
|
-
warnAt:
|
|
273
|
-
critAt:
|
|
263
|
+
id: b.id,
|
|
264
|
+
label: b.label,
|
|
265
|
+
sublabel: b.sublabel,
|
|
266
|
+
value: b.value,
|
|
267
|
+
unit: b.unit ?? "%",
|
|
268
|
+
status: Ie(l, b.value, T, R),
|
|
269
|
+
icon: b.icon ?? "cpu",
|
|
270
|
+
delay: k,
|
|
271
|
+
colorOverride: b.color,
|
|
272
|
+
warnAt: T,
|
|
273
|
+
critAt: R
|
|
274
274
|
};
|
|
275
275
|
});
|
|
276
276
|
else {
|
|
277
|
-
const
|
|
278
|
-
|
|
277
|
+
const b = p.cpuLoad ?? p.traffic ?? 50, k = p.memLoad ?? p.queueDepth ?? 60, T = p.capacity ?? 72, R = Ie(l, b, 70, 85), L = Ie(l, k, 75, 88), z = Ie(l, T, 75, 90);
|
|
278
|
+
$ = [
|
|
279
279
|
{
|
|
280
280
|
id: "cpu",
|
|
281
281
|
label: a === "dispatcher" ? "TRAFFIC" : a === "messageServer" ? "QUEUE" : "CPU",
|
|
282
282
|
sublabel: a === "dispatcher" ? "PORT LOAD" : a === "messageServer" ? "QUEUE DEPTH" : "PROCESSOR",
|
|
283
|
-
value:
|
|
283
|
+
value: b,
|
|
284
284
|
unit: "%",
|
|
285
|
-
status:
|
|
285
|
+
status: R,
|
|
286
286
|
icon: "cpu",
|
|
287
287
|
delay: 0
|
|
288
288
|
},
|
|
@@ -290,9 +290,9 @@ function It({
|
|
|
290
290
|
id: "mem",
|
|
291
291
|
label: "MEMORY",
|
|
292
292
|
sublabel: a === "database" ? "BUFFER POOL" : "HEAP USAGE",
|
|
293
|
-
value:
|
|
293
|
+
value: k,
|
|
294
294
|
unit: "%",
|
|
295
|
-
status:
|
|
295
|
+
status: L,
|
|
296
296
|
icon: "mem",
|
|
297
297
|
delay: 1
|
|
298
298
|
},
|
|
@@ -300,9 +300,9 @@ function It({
|
|
|
300
300
|
id: "storage",
|
|
301
301
|
label: "STORAGE",
|
|
302
302
|
sublabel: a === "database" ? "TABLESPACE" : "DISK I/O",
|
|
303
|
-
value:
|
|
303
|
+
value: T,
|
|
304
304
|
unit: "%",
|
|
305
|
-
status:
|
|
305
|
+
status: z,
|
|
306
306
|
icon: "disk",
|
|
307
307
|
delay: 2
|
|
308
308
|
}
|
|
@@ -323,13 +323,13 @@ function It({
|
|
|
323
323
|
overflow: "hidden",
|
|
324
324
|
opacity: o ? 1 : 0,
|
|
325
325
|
transform: o ? "scale(1) translate(0, 0)" : `scale(0.7) translate(${m}px, ${x}px)`,
|
|
326
|
-
transition: `opacity 0.45s ${
|
|
326
|
+
transition: `opacity 0.45s ${Qe}, transform 0.55s ${je}`,
|
|
327
327
|
pointerEvents: o ? "auto" : "none",
|
|
328
328
|
zIndex: 9999,
|
|
329
329
|
animation: o ? "comp-dialog-border-glow 3s ease-in-out infinite" : "none",
|
|
330
330
|
"--dialog-color": h
|
|
331
331
|
},
|
|
332
|
-
onClick: (
|
|
332
|
+
onClick: (b) => b.stopPropagation(),
|
|
333
333
|
children: [
|
|
334
334
|
/* @__PURE__ */ e(
|
|
335
335
|
"div",
|
|
@@ -393,12 +393,12 @@ function It({
|
|
|
393
393
|
borderRight: `2px solid ${h}66`,
|
|
394
394
|
borderRadius: "0 0 14px 0"
|
|
395
395
|
}
|
|
396
|
-
].map((
|
|
396
|
+
].map((b, k) => /* @__PURE__ */ e(
|
|
397
397
|
"div",
|
|
398
398
|
{
|
|
399
|
-
style: { position: "absolute", width: 18, height: 18, pointerEvents: "none", ...
|
|
399
|
+
style: { position: "absolute", width: 18, height: 18, pointerEvents: "none", ...b }
|
|
400
400
|
},
|
|
401
|
-
|
|
401
|
+
k
|
|
402
402
|
)),
|
|
403
403
|
/* @__PURE__ */ d(
|
|
404
404
|
"div",
|
|
@@ -477,8 +477,8 @@ function It({
|
|
|
477
477
|
/* @__PURE__ */ e(
|
|
478
478
|
"button",
|
|
479
479
|
{
|
|
480
|
-
onClick: (
|
|
481
|
-
|
|
480
|
+
onClick: (b) => {
|
|
481
|
+
b.stopPropagation(), n();
|
|
482
482
|
},
|
|
483
483
|
style: {
|
|
484
484
|
width: 34,
|
|
@@ -496,11 +496,11 @@ function It({
|
|
|
496
496
|
lineHeight: 1,
|
|
497
497
|
flexShrink: 0
|
|
498
498
|
},
|
|
499
|
-
onMouseEnter: (
|
|
500
|
-
|
|
499
|
+
onMouseEnter: (b) => {
|
|
500
|
+
b.currentTarget.style.background = `${h}22`, b.currentTarget.style.boxShadow = `0 0 12px ${h}44`;
|
|
501
501
|
},
|
|
502
|
-
onMouseLeave: (
|
|
503
|
-
|
|
502
|
+
onMouseLeave: (b) => {
|
|
503
|
+
b.currentTarget.style.background = `linear-gradient(135deg, rgba(0,0,0,0.5) 0%, ${h}08 100%)`, b.currentTarget.style.boxShadow = "none";
|
|
504
504
|
},
|
|
505
505
|
children: "×"
|
|
506
506
|
}
|
|
@@ -519,7 +519,7 @@ function It({
|
|
|
519
519
|
position: "relative",
|
|
520
520
|
zIndex: 2
|
|
521
521
|
},
|
|
522
|
-
children:
|
|
522
|
+
children: $.map((b) => /* @__PURE__ */ e(zt, { metric: b, visible: o, accentColor: h }, b.id))
|
|
523
523
|
}
|
|
524
524
|
),
|
|
525
525
|
/* @__PURE__ */ d(
|
|
@@ -568,12 +568,23 @@ function It({
|
|
|
568
568
|
}
|
|
569
569
|
);
|
|
570
570
|
}
|
|
571
|
-
function
|
|
571
|
+
function zt({
|
|
572
572
|
metric: t,
|
|
573
573
|
visible: n,
|
|
574
574
|
accentColor: o
|
|
575
575
|
}) {
|
|
576
|
-
const {
|
|
576
|
+
const {
|
|
577
|
+
label: i,
|
|
578
|
+
sublabel: r,
|
|
579
|
+
value: a,
|
|
580
|
+
unit: s,
|
|
581
|
+
status: l,
|
|
582
|
+
icon: f,
|
|
583
|
+
delay: c,
|
|
584
|
+
colorOverride: p,
|
|
585
|
+
warnAt: h = 70,
|
|
586
|
+
critAt: y = 85
|
|
587
|
+
} = t, u = p ?? Dt(a, h, y), g = p ?? ht(l);
|
|
577
588
|
return /* @__PURE__ */ d(
|
|
578
589
|
"div",
|
|
579
590
|
{
|
|
@@ -583,7 +594,7 @@ function Ot({
|
|
|
583
594
|
gap: 16,
|
|
584
595
|
opacity: n ? 1 : 0,
|
|
585
596
|
transform: n ? "translateY(0)" : "translateY(12px)",
|
|
586
|
-
transition: `opacity 0.4s ${
|
|
597
|
+
transition: `opacity 0.4s ${Qe} ${0.3 + c * 0.12}s, transform 0.5s ${je} ${0.3 + c * 0.12}s`
|
|
587
598
|
},
|
|
588
599
|
children: [
|
|
589
600
|
/* @__PURE__ */ d(
|
|
@@ -601,10 +612,10 @@ function Ot({
|
|
|
601
612
|
flexShrink: 0,
|
|
602
613
|
position: "relative",
|
|
603
614
|
overflow: "hidden",
|
|
604
|
-
animation: n ? `comp-dialog-icon-pop 0.5s ${
|
|
615
|
+
animation: n ? `comp-dialog-icon-pop 0.5s ${je} ${0.35 + c * 0.12}s both` : "none"
|
|
605
616
|
},
|
|
606
617
|
children: [
|
|
607
|
-
/* @__PURE__ */ e(
|
|
618
|
+
/* @__PURE__ */ e(Mt, { type: f, color: g }),
|
|
608
619
|
(l === "warning" || l === "critical") && /* @__PURE__ */ e(
|
|
609
620
|
"div",
|
|
610
621
|
{
|
|
@@ -667,8 +678,8 @@ function Ot({
|
|
|
667
678
|
style: {
|
|
668
679
|
fontSize: 20,
|
|
669
680
|
fontWeight: 700,
|
|
670
|
-
color:
|
|
671
|
-
textShadow: `0 0 8px ${
|
|
681
|
+
color: u,
|
|
682
|
+
textShadow: `0 0 8px ${u}44`,
|
|
672
683
|
fontFamily: "'Courier New', monospace"
|
|
673
684
|
},
|
|
674
685
|
children: [
|
|
@@ -700,10 +711,10 @@ function Ot({
|
|
|
700
711
|
width: `${a}%`,
|
|
701
712
|
height: "100%",
|
|
702
713
|
borderRadius: 3,
|
|
703
|
-
background: `linear-gradient(90deg, ${
|
|
704
|
-
boxShadow: `0 0 8px ${
|
|
714
|
+
background: `linear-gradient(90deg, ${u}66, ${u})`,
|
|
715
|
+
boxShadow: `0 0 8px ${u}44`,
|
|
705
716
|
transformOrigin: "left center",
|
|
706
|
-
animation: n ? `comp-dialog-metric-fill 0.8s ${
|
|
717
|
+
animation: n ? `comp-dialog-metric-fill 0.8s ${Qe} ${0.4 + c * 0.12}s both` : "none"
|
|
707
718
|
}
|
|
708
719
|
}
|
|
709
720
|
),
|
|
@@ -737,7 +748,19 @@ function Ot({
|
|
|
737
748
|
}
|
|
738
749
|
),
|
|
739
750
|
/* @__PURE__ */ d("div", { style: { position: "relative", height: 10, marginTop: 2 }, children: [
|
|
740
|
-
/* @__PURE__ */ e(
|
|
751
|
+
/* @__PURE__ */ e(
|
|
752
|
+
"span",
|
|
753
|
+
{
|
|
754
|
+
style: {
|
|
755
|
+
position: "absolute",
|
|
756
|
+
left: 0,
|
|
757
|
+
fontSize: 6,
|
|
758
|
+
color: "rgba(255,255,255,0.15)",
|
|
759
|
+
letterSpacing: "0.1em"
|
|
760
|
+
},
|
|
761
|
+
children: "0"
|
|
762
|
+
}
|
|
763
|
+
),
|
|
741
764
|
/* @__PURE__ */ e(
|
|
742
765
|
"span",
|
|
743
766
|
{
|
|
@@ -766,14 +789,26 @@ function Ot({
|
|
|
766
789
|
children: "CRIT"
|
|
767
790
|
}
|
|
768
791
|
),
|
|
769
|
-
/* @__PURE__ */ e(
|
|
792
|
+
/* @__PURE__ */ e(
|
|
793
|
+
"span",
|
|
794
|
+
{
|
|
795
|
+
style: {
|
|
796
|
+
position: "absolute",
|
|
797
|
+
right: 0,
|
|
798
|
+
fontSize: 6,
|
|
799
|
+
color: "rgba(255,255,255,0.15)",
|
|
800
|
+
letterSpacing: "0.1em"
|
|
801
|
+
},
|
|
802
|
+
children: "100"
|
|
803
|
+
}
|
|
804
|
+
)
|
|
770
805
|
] })
|
|
771
806
|
] })
|
|
772
807
|
]
|
|
773
808
|
}
|
|
774
809
|
);
|
|
775
810
|
}
|
|
776
|
-
function
|
|
811
|
+
function Mt({ type: t, color: n }) {
|
|
777
812
|
return t === "cpu" ? /* @__PURE__ */ d("svg", { width: 28, height: 28, viewBox: "0 0 24 24", fill: "none", children: [
|
|
778
813
|
/* @__PURE__ */ e("rect", { x: "6", y: "6", width: "12", height: "12", rx: "2", stroke: n, strokeWidth: "1.5" }),
|
|
779
814
|
/* @__PURE__ */ e(
|
|
@@ -858,14 +893,14 @@ function Dt({ type: t, color: n }) {
|
|
|
858
893
|
/* @__PURE__ */ e("line", { x1: "18", y1: "12", x2: "21", y2: "12", stroke: n, strokeWidth: "0.8" })
|
|
859
894
|
] });
|
|
860
895
|
}
|
|
861
|
-
const
|
|
862
|
-
function
|
|
863
|
-
return ve(
|
|
896
|
+
const Je = Ge(null), et = Ge({ index: 0 });
|
|
897
|
+
function Pi() {
|
|
898
|
+
return ve(Je);
|
|
864
899
|
}
|
|
865
|
-
function
|
|
866
|
-
return ve(
|
|
900
|
+
function Ci() {
|
|
901
|
+
return ve(et);
|
|
867
902
|
}
|
|
868
|
-
function
|
|
903
|
+
function Nt({
|
|
869
904
|
children: t,
|
|
870
905
|
logoUrl: n,
|
|
871
906
|
viewState: o,
|
|
@@ -879,31 +914,31 @@ function Wt({
|
|
|
879
914
|
drillZoom: p = 3.3,
|
|
880
915
|
autoRotateCarousel: h = !0,
|
|
881
916
|
carouselSpeed: y = 6e-3,
|
|
882
|
-
width:
|
|
917
|
+
width: u = 950,
|
|
883
918
|
height: g = 790,
|
|
884
919
|
onSelectSystem: m,
|
|
885
920
|
onBackgroundClick: x,
|
|
886
921
|
onComponentClick: v,
|
|
887
|
-
onCloseDrill:
|
|
888
|
-
selectedSystemStatus:
|
|
889
|
-
selectedSystemDbSync:
|
|
890
|
-
selectedSystemMetrics:
|
|
891
|
-
selectedSystemAlerts:
|
|
922
|
+
onCloseDrill: $,
|
|
923
|
+
selectedSystemStatus: b = "online",
|
|
924
|
+
selectedSystemDbSync: k = !0,
|
|
925
|
+
selectedSystemMetrics: T,
|
|
926
|
+
selectedSystemAlerts: R
|
|
892
927
|
}) {
|
|
893
|
-
const [
|
|
894
|
-
|
|
895
|
-
let
|
|
928
|
+
const [L, z] = I(0);
|
|
929
|
+
Ae(() => {
|
|
930
|
+
let W;
|
|
896
931
|
if ((o === "compact" || o === "collapsing") && h) {
|
|
897
|
-
const
|
|
898
|
-
|
|
932
|
+
const H = () => {
|
|
933
|
+
z((oe) => oe + y), W = requestAnimationFrame(H);
|
|
899
934
|
};
|
|
900
|
-
|
|
935
|
+
W = requestAnimationFrame(H);
|
|
901
936
|
}
|
|
902
|
-
return () => cancelAnimationFrame(
|
|
937
|
+
return () => cancelAnimationFrame(W);
|
|
903
938
|
}, [o, h, y]);
|
|
904
|
-
const
|
|
905
|
-
totalSystems:
|
|
906
|
-
carouselRotation:
|
|
939
|
+
const F = ee.Children.toArray(t), j = F.length, M = Xe(() => ({
|
|
940
|
+
totalSystems: j,
|
|
941
|
+
carouselRotation: L,
|
|
907
942
|
viewState: o,
|
|
908
943
|
animPhase: i,
|
|
909
944
|
selectedSystem: r,
|
|
@@ -914,10 +949,10 @@ function Wt({
|
|
|
914
949
|
drillZoom: p,
|
|
915
950
|
onSelectSystem: m,
|
|
916
951
|
onComponentClick: v,
|
|
917
|
-
containerWidth:
|
|
952
|
+
containerWidth: u
|
|
918
953
|
}), [
|
|
919
|
-
|
|
920
|
-
|
|
954
|
+
j,
|
|
955
|
+
L,
|
|
921
956
|
o,
|
|
922
957
|
i,
|
|
923
958
|
r,
|
|
@@ -928,10 +963,10 @@ function Wt({
|
|
|
928
963
|
p,
|
|
929
964
|
m,
|
|
930
965
|
v,
|
|
931
|
-
|
|
932
|
-
]),
|
|
933
|
-
return /* @__PURE__ */ d(
|
|
934
|
-
/* @__PURE__ */ d("div", { style: { position: "relative", width:
|
|
966
|
+
u
|
|
967
|
+
]), ie = F.map((W, H) => /* @__PURE__ */ e(et.Provider, { value: { index: H }, children: W }, H)), ne = o === "expanded" || o === "expanding" && i >= 4;
|
|
968
|
+
return /* @__PURE__ */ d(Je.Provider, { value: M, children: [
|
|
969
|
+
/* @__PURE__ */ d("div", { style: { position: "relative", width: u, height: g, margin: "0 auto", flexShrink: 0 }, children: [
|
|
935
970
|
n && (o === "compact" || o === "collapsing") && /* @__PURE__ */ e(
|
|
936
971
|
"img",
|
|
937
972
|
{
|
|
@@ -952,32 +987,32 @@ function Wt({
|
|
|
952
987
|
}
|
|
953
988
|
}
|
|
954
989
|
),
|
|
955
|
-
|
|
990
|
+
ie
|
|
956
991
|
] }),
|
|
957
|
-
r && /* @__PURE__ */ e("div", { onClick: (
|
|
958
|
-
|
|
992
|
+
r && /* @__PURE__ */ e("div", { onClick: (W) => W.stopPropagation(), children: /* @__PURE__ */ e(
|
|
993
|
+
Ot,
|
|
959
994
|
{
|
|
960
995
|
name: r,
|
|
961
|
-
status:
|
|
962
|
-
dbSync:
|
|
963
|
-
visible:
|
|
964
|
-
metrics:
|
|
965
|
-
alerts:
|
|
996
|
+
status: b,
|
|
997
|
+
dbSync: k,
|
|
998
|
+
visible: ne && !a,
|
|
999
|
+
metrics: T,
|
|
1000
|
+
alerts: R
|
|
966
1001
|
}
|
|
967
1002
|
) }),
|
|
968
|
-
a && /* @__PURE__ */ e("div", { onClick: (
|
|
969
|
-
|
|
1003
|
+
a && /* @__PURE__ */ e("div", { onClick: (W) => W.stopPropagation(), children: /* @__PURE__ */ e(
|
|
1004
|
+
Wt,
|
|
970
1005
|
{
|
|
971
1006
|
component: a,
|
|
972
|
-
onClose:
|
|
1007
|
+
onClose: $,
|
|
973
1008
|
visible: s >= 0.3,
|
|
974
|
-
sceneWidth:
|
|
1009
|
+
sceneWidth: u,
|
|
975
1010
|
sceneHeight: g
|
|
976
1011
|
}
|
|
977
1012
|
) })
|
|
978
1013
|
] });
|
|
979
1014
|
}
|
|
980
|
-
function
|
|
1015
|
+
function Bt({
|
|
981
1016
|
x1: t,
|
|
982
1017
|
y1: n,
|
|
983
1018
|
x2: o,
|
|
@@ -1044,14 +1079,14 @@ function zt({
|
|
|
1044
1079
|
] })
|
|
1045
1080
|
] });
|
|
1046
1081
|
}
|
|
1047
|
-
const
|
|
1082
|
+
const Ft = [
|
|
1048
1083
|
{ scale: 1, op: 1, delay: "0.0s", bw: "2px", glow: 1 },
|
|
1049
1084
|
{ scale: 0.82, op: 0.88, delay: "0.5s", bw: "1.5px", glow: 0.7 },
|
|
1050
1085
|
{ scale: 0.64, op: 0.72, delay: "1.0s", bw: "1px", glow: 0.5 },
|
|
1051
1086
|
{ scale: 0.47, op: 0.58, delay: "1.5s", bw: "1px", glow: 0.35 },
|
|
1052
1087
|
{ scale: 0.3, op: 0.45, delay: "2.0s", bw: "1px", glow: 0.25 }
|
|
1053
1088
|
];
|
|
1054
|
-
function
|
|
1089
|
+
function Ht({
|
|
1055
1090
|
children: t,
|
|
1056
1091
|
size: n = 230,
|
|
1057
1092
|
widthRatio: o = 1,
|
|
@@ -1217,7 +1252,7 @@ function Nt({
|
|
|
1217
1252
|
background: `radial-gradient(ellipse, ${i}88 0%, ${i}33 40%, transparent 72%)`,
|
|
1218
1253
|
filter: "blur(12px)"
|
|
1219
1254
|
} }),
|
|
1220
|
-
|
|
1255
|
+
Ft.map((s, l) => /* @__PURE__ */ e("div", { style: {
|
|
1221
1256
|
position: "absolute",
|
|
1222
1257
|
width: a * s.scale,
|
|
1223
1258
|
height: n * s.scale,
|
|
@@ -1260,8 +1295,8 @@ function Nt({
|
|
|
1260
1295
|
}, children: r })
|
|
1261
1296
|
] });
|
|
1262
1297
|
}
|
|
1263
|
-
const
|
|
1264
|
-
function
|
|
1298
|
+
const le = Ge(null), Ut = "cubic-bezier(0.34, 1.56, 0.64, 1)", lt = 330, st = 340, Yt = 660;
|
|
1299
|
+
function tt({
|
|
1265
1300
|
name: t,
|
|
1266
1301
|
status: n = "online",
|
|
1267
1302
|
connections: o = [],
|
|
@@ -1275,31 +1310,31 @@ function dt({
|
|
|
1275
1310
|
_selectedSystem: p,
|
|
1276
1311
|
_selectedComponent: h,
|
|
1277
1312
|
_rotateY: y,
|
|
1278
|
-
_autoRotateComponents:
|
|
1313
|
+
_autoRotateComponents: u,
|
|
1279
1314
|
_componentScale: g,
|
|
1280
1315
|
_drillZoom: m,
|
|
1281
1316
|
_onSelectSystem: x,
|
|
1282
1317
|
_onComponentClick: v,
|
|
1283
|
-
_containerWidth:
|
|
1318
|
+
_containerWidth: $
|
|
1284
1319
|
}) {
|
|
1285
|
-
const
|
|
1320
|
+
const b = ve(Je), k = ve(et), T = a ?? k.index, R = s ?? b?.totalSystems ?? 1, L = l ?? b?.carouselRotation ?? 0, z = f ?? b?.viewState ?? "compact", F = c ?? b?.animPhase ?? 0, j = p ?? b?.selectedSystem ?? null, M = h ?? b?.selectedComponent ?? null, ie = y ?? b?.rotateY ?? 20, ne = u ?? b?.autoRotateComponents ?? !0, W = g ?? b?.componentScale ?? 0.35, H = m ?? b?.drillZoom ?? 3.3, oe = x ?? b?.onSelectSystem, Se = v ?? b?.onComponentClick, $e = $ ?? b?.containerWidth ?? 950, Q = j === t, N = Q && (z === "expanded" || z === "expanding" && F >= 1), E = !N, ke = ($e - Yt) / 2, re = lt + ke, se = T / R * Math.PI * 2 + L, Be = 420, Te = 160, Re = re + Math.cos(se) * Be, de = 450 + Math.sin(se) * Te, St = Math.round(de), Fe = !Q && (z === "expanding" || z === "expanded"), $t = Fe ? 0 : 1, Pe = E ? 0.3 + (Math.sin(se) + 1) * 0.1 : 1, kt = E ? Pe : W, Le = z === "compact" || z === "collapsing" ? "none" : "all 1s cubic-bezier(0.34, 1.56, 0.64, 1)", at = Q && M, He = at ? H : 1, Rt = M?.ex ?? 330, Pt = M?.ey ?? 300, { size: Ct = 90, color: Et = "#00e5ff", widthRatio: At = 3 } = i ?? {}, Tt = {
|
|
1286
1321
|
name: t,
|
|
1287
1322
|
isSelected: Q,
|
|
1288
|
-
isExpandedPos:
|
|
1289
|
-
isCompact:
|
|
1290
|
-
animPhase:
|
|
1323
|
+
isExpandedPos: N,
|
|
1324
|
+
isCompact: E,
|
|
1325
|
+
animPhase: F,
|
|
1291
1326
|
compactCx: Re,
|
|
1292
|
-
compactCy:
|
|
1327
|
+
compactCy: de,
|
|
1293
1328
|
groupScale: Pe,
|
|
1294
|
-
effectiveScale:
|
|
1295
|
-
transitionValue:
|
|
1296
|
-
rotateY:
|
|
1297
|
-
autoRotateComponents:
|
|
1329
|
+
effectiveScale: kt,
|
|
1330
|
+
transitionValue: Le,
|
|
1331
|
+
rotateY: ie,
|
|
1332
|
+
autoRotateComponents: ne,
|
|
1298
1333
|
onComponentClick: Se,
|
|
1299
|
-
selectedComponentName:
|
|
1334
|
+
selectedComponentName: M?.name ?? null,
|
|
1300
1335
|
expandedOffsetX: ke
|
|
1301
1336
|
};
|
|
1302
|
-
return /* @__PURE__ */ e(
|
|
1337
|
+
return /* @__PURE__ */ e(le.Provider, { value: Tt, children: /* @__PURE__ */ d(
|
|
1303
1338
|
"div",
|
|
1304
1339
|
{
|
|
1305
1340
|
style: {
|
|
@@ -1309,21 +1344,21 @@ function dt({
|
|
|
1309
1344
|
width: "100%",
|
|
1310
1345
|
height: "100%",
|
|
1311
1346
|
pointerEvents: "none",
|
|
1312
|
-
opacity:
|
|
1313
|
-
transition: `opacity 0.8s ease, filter 0.5s ease, transform 0.6s ${
|
|
1314
|
-
filter:
|
|
1315
|
-
zIndex: Q ? 500 :
|
|
1316
|
-
transformOrigin: `${
|
|
1317
|
-
transform:
|
|
1347
|
+
opacity: $t,
|
|
1348
|
+
transition: `opacity 0.8s ease, filter 0.5s ease, transform 0.6s ${Ut}`,
|
|
1349
|
+
filter: E && Math.sin(se) < -0.5 ? "brightness(0.5) blur(2px)" : "none",
|
|
1350
|
+
zIndex: Q ? 500 : Fe ? 0 : St,
|
|
1351
|
+
transformOrigin: `${re}px ${st}px`,
|
|
1352
|
+
transform: at ? `translate(${-(Rt - lt) * He}px, ${-(Pt - st) * He}px) scale(${He})` : "none"
|
|
1318
1353
|
},
|
|
1319
1354
|
children: [
|
|
1320
|
-
|
|
1355
|
+
E && !Fe && /* @__PURE__ */ e(
|
|
1321
1356
|
"div",
|
|
1322
1357
|
{
|
|
1323
1358
|
style: {
|
|
1324
1359
|
position: "absolute",
|
|
1325
1360
|
left: Re,
|
|
1326
|
-
top:
|
|
1361
|
+
top: de,
|
|
1327
1362
|
width: 160,
|
|
1328
1363
|
height: 180,
|
|
1329
1364
|
transform: "translate(-50%, -80%)",
|
|
@@ -1331,18 +1366,18 @@ function dt({
|
|
|
1331
1366
|
cursor: "pointer",
|
|
1332
1367
|
zIndex: 101
|
|
1333
1368
|
},
|
|
1334
|
-
onClick: (
|
|
1335
|
-
|
|
1369
|
+
onClick: (X) => {
|
|
1370
|
+
X.stopPropagation(), oe?.(t);
|
|
1336
1371
|
}
|
|
1337
1372
|
}
|
|
1338
1373
|
),
|
|
1339
|
-
|
|
1374
|
+
E && (n === "warning" || n === "critical") && /* @__PURE__ */ e(
|
|
1340
1375
|
"div",
|
|
1341
1376
|
{
|
|
1342
1377
|
style: {
|
|
1343
1378
|
position: "absolute",
|
|
1344
1379
|
left: Re,
|
|
1345
|
-
top:
|
|
1380
|
+
top: de - 200,
|
|
1346
1381
|
transform: `translate(-50%, -50%) scale(${Pe})`,
|
|
1347
1382
|
zIndex: 110,
|
|
1348
1383
|
pointerEvents: "none",
|
|
@@ -1389,13 +1424,13 @@ function dt({
|
|
|
1389
1424
|
{
|
|
1390
1425
|
style: {
|
|
1391
1426
|
position: "absolute",
|
|
1392
|
-
left:
|
|
1393
|
-
top:
|
|
1394
|
-
transform: `translate(-50%, -50%) scale(${
|
|
1427
|
+
left: N ? re : Re,
|
|
1428
|
+
top: N ? 48 : de - 180,
|
|
1429
|
+
transform: `translate(-50%, -50%) scale(${N ? 1.2 : Pe * 1.5})`,
|
|
1395
1430
|
opacity: 1,
|
|
1396
1431
|
pointerEvents: "none",
|
|
1397
1432
|
zIndex: 100,
|
|
1398
|
-
transition:
|
|
1433
|
+
transition: Le,
|
|
1399
1434
|
fontSize: 36,
|
|
1400
1435
|
fontWeight: 700,
|
|
1401
1436
|
letterSpacing: "0.18em",
|
|
@@ -1415,25 +1450,25 @@ function dt({
|
|
|
1415
1450
|
style: {
|
|
1416
1451
|
position: "absolute",
|
|
1417
1452
|
top: 0,
|
|
1418
|
-
left:
|
|
1453
|
+
left: N ? ke : 0,
|
|
1419
1454
|
width: 660,
|
|
1420
1455
|
height: 640,
|
|
1421
1456
|
pointerEvents: "none",
|
|
1422
1457
|
zIndex: 0,
|
|
1423
|
-
transition:
|
|
1458
|
+
transition: Le
|
|
1424
1459
|
},
|
|
1425
|
-
children: o.map((
|
|
1426
|
-
|
|
1460
|
+
children: o.map((X, Lt) => /* @__PURE__ */ e(
|
|
1461
|
+
Bt,
|
|
1427
1462
|
{
|
|
1428
|
-
x1:
|
|
1429
|
-
y1:
|
|
1430
|
-
x2:
|
|
1431
|
-
y2:
|
|
1432
|
-
show: Q &&
|
|
1433
|
-
color:
|
|
1434
|
-
dur:
|
|
1463
|
+
x1: X.from[0],
|
|
1464
|
+
y1: X.from[1],
|
|
1465
|
+
x2: X.to[0],
|
|
1466
|
+
y2: X.to[1],
|
|
1467
|
+
show: Q && F >= (X.visibleAtPhase ?? 0),
|
|
1468
|
+
color: X.color,
|
|
1469
|
+
dur: X.duration
|
|
1435
1470
|
},
|
|
1436
|
-
|
|
1471
|
+
Lt
|
|
1437
1472
|
))
|
|
1438
1473
|
}
|
|
1439
1474
|
),
|
|
@@ -1442,13 +1477,13 @@ function dt({
|
|
|
1442
1477
|
{
|
|
1443
1478
|
style: {
|
|
1444
1479
|
position: "absolute",
|
|
1445
|
-
left:
|
|
1446
|
-
top:
|
|
1447
|
-
transform: `translate(-50%, -50%) scaleX(${
|
|
1448
|
-
transition:
|
|
1480
|
+
left: N ? re : Re,
|
|
1481
|
+
top: N ? 570 : de + 70,
|
|
1482
|
+
transform: `translate(-50%, -50%) scaleX(${N ? 1 : 0.4}) scaleY(${N ? 1 : 0.6}) scale(${N ? 1 : Pe})`,
|
|
1483
|
+
transition: Le,
|
|
1449
1484
|
zIndex: 1
|
|
1450
1485
|
},
|
|
1451
|
-
children: /* @__PURE__ */ e(
|
|
1486
|
+
children: /* @__PURE__ */ e(Ht, { size: Ct, color: Et, widthRatio: At, children: /* @__PURE__ */ e("div", { className: "base-hotspot" }) })
|
|
1452
1487
|
}
|
|
1453
1488
|
),
|
|
1454
1489
|
r
|
|
@@ -1456,7 +1491,7 @@ function dt({
|
|
|
1456
1491
|
}
|
|
1457
1492
|
) });
|
|
1458
1493
|
}
|
|
1459
|
-
function
|
|
1494
|
+
function C({
|
|
1460
1495
|
ex: t,
|
|
1461
1496
|
ey: n,
|
|
1462
1497
|
compactOffset: o,
|
|
@@ -1471,27 +1506,28 @@ function T({
|
|
|
1471
1506
|
fixedScale: h,
|
|
1472
1507
|
bare: y = !1
|
|
1473
1508
|
}) {
|
|
1474
|
-
const
|
|
1475
|
-
if (!
|
|
1509
|
+
const u = ve(le);
|
|
1510
|
+
if (!u)
|
|
1476
1511
|
throw new Error("ServiceNode must be used inside a <Service> component.");
|
|
1477
1512
|
const {
|
|
1478
1513
|
isExpandedPos: g,
|
|
1479
1514
|
animPhase: m,
|
|
1480
1515
|
compactCx: x,
|
|
1481
1516
|
compactCy: v,
|
|
1482
|
-
groupScale:
|
|
1483
|
-
effectiveScale:
|
|
1484
|
-
transitionValue:
|
|
1485
|
-
onComponentClick:
|
|
1486
|
-
selectedComponentName:
|
|
1487
|
-
expandedOffsetX:
|
|
1488
|
-
} =
|
|
1517
|
+
groupScale: $,
|
|
1518
|
+
effectiveScale: b,
|
|
1519
|
+
transitionValue: k,
|
|
1520
|
+
onComponentClick: T,
|
|
1521
|
+
selectedComponentName: R,
|
|
1522
|
+
expandedOffsetX: L
|
|
1523
|
+
} = u, F = p === 0 || u.isSelected && m >= p ? 1 : 0, j = x + o.x, M = v + o.y, ie = g ? t + L : j, ne = g ? n : M, W = h !== void 0 ? h : u.isCompact ? $ : b, H = !!c && !!R && c.name === R, oe = c?.status ? w[c.status]?.color ?? a : a, Se = c?.status === "offline" ? "#4a6a8a" : oe, $e = c && g && T ? () => T({
|
|
1489
1524
|
type: c.type,
|
|
1490
1525
|
name: c.name,
|
|
1491
1526
|
status: c.status,
|
|
1492
1527
|
ex: c.ex ?? t,
|
|
1493
1528
|
ey: c.ey ?? n,
|
|
1494
1529
|
context: c.context,
|
|
1530
|
+
dialogMetrics: c.dialogMetrics,
|
|
1495
1531
|
subComponents: c.subComponents,
|
|
1496
1532
|
graphSeries: c.graphSeries
|
|
1497
1533
|
}) : void 0;
|
|
@@ -1500,32 +1536,32 @@ function T({
|
|
|
1500
1536
|
{
|
|
1501
1537
|
style: {
|
|
1502
1538
|
position: "absolute",
|
|
1503
|
-
left:
|
|
1504
|
-
top:
|
|
1505
|
-
transform: `translate(-50%, -50%) scale(${
|
|
1506
|
-
opacity:
|
|
1539
|
+
left: ie,
|
|
1540
|
+
top: ne,
|
|
1541
|
+
transform: `translate(-50%, -50%) scale(${W})`,
|
|
1542
|
+
opacity: F,
|
|
1507
1543
|
zIndex: i,
|
|
1508
|
-
transition:
|
|
1509
|
-
pointerEvents: g &&
|
|
1544
|
+
transition: k || "all 1s cubic-bezier(0.34, 1.56, 0.64, 1)",
|
|
1545
|
+
pointerEvents: g && F >= 0.5 ? "auto" : "none"
|
|
1510
1546
|
},
|
|
1511
1547
|
children: y ? r : /* @__PURE__ */ e(
|
|
1512
|
-
|
|
1548
|
+
Vt,
|
|
1513
1549
|
{
|
|
1514
1550
|
statusColor: Se,
|
|
1515
1551
|
label: s,
|
|
1516
1552
|
subLabel: l,
|
|
1517
1553
|
delay: f,
|
|
1518
1554
|
showLabels: g,
|
|
1519
|
-
isCompact:
|
|
1555
|
+
isCompact: u.isCompact,
|
|
1520
1556
|
onClick: $e,
|
|
1521
|
-
isSelected:
|
|
1557
|
+
isSelected: H,
|
|
1522
1558
|
children: r
|
|
1523
1559
|
}
|
|
1524
1560
|
)
|
|
1525
1561
|
}
|
|
1526
1562
|
);
|
|
1527
1563
|
}
|
|
1528
|
-
function
|
|
1564
|
+
function Vt({
|
|
1529
1565
|
children: t,
|
|
1530
1566
|
statusColor: n,
|
|
1531
1567
|
label: o,
|
|
@@ -1536,7 +1572,7 @@ function Ht({
|
|
|
1536
1572
|
onClick: l,
|
|
1537
1573
|
isSelected: f = !1
|
|
1538
1574
|
}) {
|
|
1539
|
-
const [c, p] =
|
|
1575
|
+
const [c, p] = I(!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)` : "";
|
|
1540
1576
|
return /* @__PURE__ */ d(
|
|
1541
1577
|
"div",
|
|
1542
1578
|
{
|
|
@@ -1565,7 +1601,7 @@ function Ht({
|
|
|
1565
1601
|
}
|
|
1566
1602
|
}
|
|
1567
1603
|
),
|
|
1568
|
-
/* @__PURE__ */ e("div", { style: s ? { background: "#040c1a", borderRadius: 2 } : void 0, children: s &&
|
|
1604
|
+
/* @__PURE__ */ e("div", { style: s ? { background: "#040c1a", borderRadius: 2 } : void 0, children: s && ee.isValidElement(t) ? ee.cloneElement(t, {
|
|
1569
1605
|
_compact: !0
|
|
1570
1606
|
}) : t })
|
|
1571
1607
|
] }),
|
|
@@ -1586,7 +1622,7 @@ function Ht({
|
|
|
1586
1622
|
}
|
|
1587
1623
|
);
|
|
1588
1624
|
}
|
|
1589
|
-
function
|
|
1625
|
+
function ut({ synced: t, latencyMs: n }) {
|
|
1590
1626
|
const o = t ? "#00ff88" : "#ff8c00";
|
|
1591
1627
|
return /* @__PURE__ */ d("div", { className: "sync-bridge", children: [
|
|
1592
1628
|
/* @__PURE__ */ d("div", { className: "sync-arrows", children: [
|
|
@@ -1621,7 +1657,7 @@ function ct({ synced: t, latencyMs: n }) {
|
|
|
1621
1657
|
] })
|
|
1622
1658
|
] });
|
|
1623
1659
|
}
|
|
1624
|
-
function
|
|
1660
|
+
function O({
|
|
1625
1661
|
ex: t,
|
|
1626
1662
|
ey: n,
|
|
1627
1663
|
status: o,
|
|
@@ -1633,20 +1669,20 @@ function D({
|
|
|
1633
1669
|
align: f = "right",
|
|
1634
1670
|
internalRef: c
|
|
1635
1671
|
}) {
|
|
1636
|
-
const
|
|
1672
|
+
const p = ve(le), h = p?.expandedOffsetX ?? 0;
|
|
1637
1673
|
if (o === "online") return null;
|
|
1638
|
-
const y = w[o]?.color ?? w.warning.color,
|
|
1639
|
-
let
|
|
1640
|
-
if (
|
|
1641
|
-
const
|
|
1642
|
-
|
|
1674
|
+
const y = l && !!p?.isExpandedPos, u = w[o]?.color ?? w.warning.color, g = Math.abs(a) > Math.abs(s), m = t + h + (g ? Math.sign(a) * 45 : 0), x = n + (g ? 0 : Math.sign(s) * 40), v = t + h + a, $ = n + s;
|
|
1675
|
+
let b = "";
|
|
1676
|
+
if (g) {
|
|
1677
|
+
const L = m + (v - m) / 2;
|
|
1678
|
+
b = `M ${m} ${x} L ${L} ${x} L ${L} ${$} L ${v} ${$}`;
|
|
1643
1679
|
} else {
|
|
1644
|
-
const
|
|
1645
|
-
|
|
1680
|
+
const L = x + ($ - x) / 2;
|
|
1681
|
+
b = `M ${m} ${x} L ${m} ${L} L ${v} ${L} L ${v} ${$}`;
|
|
1646
1682
|
}
|
|
1647
|
-
let
|
|
1648
|
-
f === "left" && (
|
|
1649
|
-
const
|
|
1683
|
+
let k = "translate(0, -50%)";
|
|
1684
|
+
f === "left" && (k = "translate(-100%, -50%)"), f === "top" && (k = "translate(-50%, -100%)"), f === "bottom" && (k = "translate(-50%, 0)");
|
|
1685
|
+
const T = f === "left" ? -8 : f === "right" ? 8 : 0, R = f === "top" ? -8 : f === "bottom" ? 8 : 0;
|
|
1650
1686
|
return /* @__PURE__ */ d(
|
|
1651
1687
|
"div",
|
|
1652
1688
|
{
|
|
@@ -1657,7 +1693,7 @@ function D({
|
|
|
1657
1693
|
width: "100%",
|
|
1658
1694
|
height: "100%",
|
|
1659
1695
|
pointerEvents: "none",
|
|
1660
|
-
opacity:
|
|
1696
|
+
opacity: y ? 1 : 0,
|
|
1661
1697
|
transition: "opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.8s",
|
|
1662
1698
|
zIndex: 150
|
|
1663
1699
|
},
|
|
@@ -1677,12 +1713,12 @@ function D({
|
|
|
1677
1713
|
children: /* @__PURE__ */ e(
|
|
1678
1714
|
"path",
|
|
1679
1715
|
{
|
|
1680
|
-
d:
|
|
1716
|
+
d: b,
|
|
1681
1717
|
fill: "none",
|
|
1682
|
-
stroke:
|
|
1718
|
+
stroke: u,
|
|
1683
1719
|
strokeWidth: "1.5",
|
|
1684
1720
|
strokeDasharray: "5 4",
|
|
1685
|
-
style: { filter: `drop-shadow(0 0 4px ${
|
|
1721
|
+
style: { filter: `drop-shadow(0 0 4px ${u})`, opacity: 0.55 }
|
|
1686
1722
|
}
|
|
1687
1723
|
)
|
|
1688
1724
|
}
|
|
@@ -1692,14 +1728,14 @@ function D({
|
|
|
1692
1728
|
{
|
|
1693
1729
|
style: {
|
|
1694
1730
|
position: "absolute",
|
|
1695
|
-
left:
|
|
1696
|
-
top:
|
|
1697
|
-
transform:
|
|
1698
|
-
marginLeft:
|
|
1699
|
-
marginTop:
|
|
1731
|
+
left: v,
|
|
1732
|
+
top: $,
|
|
1733
|
+
transform: k,
|
|
1734
|
+
marginLeft: T,
|
|
1735
|
+
marginTop: R,
|
|
1700
1736
|
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)",
|
|
1701
|
-
border: `1px solid ${
|
|
1702
|
-
borderLeft: `2px solid ${
|
|
1737
|
+
border: `1px solid ${u}55`,
|
|
1738
|
+
borderLeft: `2px solid ${u}`,
|
|
1703
1739
|
backdropFilter: "blur(8px)",
|
|
1704
1740
|
WebkitBackdropFilter: "blur(8px)",
|
|
1705
1741
|
padding: "6px 10px",
|
|
@@ -1707,7 +1743,7 @@ function D({
|
|
|
1707
1743
|
color: "#fff",
|
|
1708
1744
|
fontFamily: "'Courier New', monospace",
|
|
1709
1745
|
width: 140,
|
|
1710
|
-
boxShadow: `0 4px 12px rgba(0,0,0,0.4), 0 0 8px ${
|
|
1746
|
+
boxShadow: `0 4px 12px rgba(0,0,0,0.4), 0 0 8px ${u}22 inset`
|
|
1711
1747
|
},
|
|
1712
1748
|
children: [
|
|
1713
1749
|
/* @__PURE__ */ d(
|
|
@@ -1727,8 +1763,8 @@ function D({
|
|
|
1727
1763
|
width: 4,
|
|
1728
1764
|
height: 4,
|
|
1729
1765
|
borderRadius: "50%",
|
|
1730
|
-
background:
|
|
1731
|
-
boxShadow: `0 0 6px ${
|
|
1766
|
+
background: u,
|
|
1767
|
+
boxShadow: `0 0 6px ${u}`,
|
|
1732
1768
|
animation: "holo-led-blink 1.5s infinite"
|
|
1733
1769
|
}
|
|
1734
1770
|
}
|
|
@@ -1737,12 +1773,12 @@ function D({
|
|
|
1737
1773
|
"div",
|
|
1738
1774
|
{
|
|
1739
1775
|
style: {
|
|
1740
|
-
color:
|
|
1776
|
+
color: u,
|
|
1741
1777
|
fontWeight: "600",
|
|
1742
1778
|
fontSize: 10,
|
|
1743
1779
|
letterSpacing: "1px",
|
|
1744
1780
|
textTransform: "uppercase",
|
|
1745
|
-
textShadow: `0 0 4px ${
|
|
1781
|
+
textShadow: `0 0 4px ${u}88`
|
|
1746
1782
|
},
|
|
1747
1783
|
children: c ? `${i} · ${c}` : i
|
|
1748
1784
|
}
|
|
@@ -1768,16 +1804,17 @@ function D({
|
|
|
1768
1804
|
}
|
|
1769
1805
|
);
|
|
1770
1806
|
}
|
|
1771
|
-
const q = 140,
|
|
1772
|
-
function
|
|
1807
|
+
const q = 140, U = 240, Z = 160, ce = Ze(q, U, Z);
|
|
1808
|
+
function _t({
|
|
1773
1809
|
cfg: t,
|
|
1774
1810
|
name: n,
|
|
1775
1811
|
cpuLoad: o,
|
|
1776
1812
|
memLoad: i,
|
|
1777
1813
|
status: r,
|
|
1778
|
-
compact: a
|
|
1814
|
+
compact: a,
|
|
1815
|
+
brandLabel: s
|
|
1779
1816
|
}) {
|
|
1780
|
-
const
|
|
1817
|
+
const l = Math.ceil(o / 100 * 3), f = r === "offline" ? "#4a6a8a" : t.color, c = [
|
|
1781
1818
|
{ color: t.color, on: r !== "offline", label: "PWR" },
|
|
1782
1819
|
{ color: t.color, on: r === "online" || r === "warning", label: "NET" },
|
|
1783
1820
|
{ color: t.color, on: o > 15, label: "DSK" },
|
|
@@ -1788,8 +1825,8 @@ function Ut({
|
|
|
1788
1825
|
{
|
|
1789
1826
|
style: {
|
|
1790
1827
|
width: q,
|
|
1791
|
-
height:
|
|
1792
|
-
background: a ? we :
|
|
1828
|
+
height: U,
|
|
1829
|
+
background: a ? we : Ke,
|
|
1793
1830
|
position: "relative",
|
|
1794
1831
|
overflow: "hidden",
|
|
1795
1832
|
fontFamily: "'Courier New', monospace",
|
|
@@ -1827,7 +1864,7 @@ function Ut({
|
|
|
1827
1864
|
},
|
|
1828
1865
|
children: [
|
|
1829
1866
|
/* @__PURE__ */ d("div", { style: { display: "flex", justifyContent: "space-between", alignItems: "center" }, children: [
|
|
1830
|
-
/* @__PURE__ */ e("span", { style: { fontSize: 7, color: t.color + "55", letterSpacing: "0.22em" }, children:
|
|
1867
|
+
/* @__PURE__ */ e("span", { style: { fontSize: 7, color: t.color + "55", letterSpacing: "0.22em" }, children: s }),
|
|
1831
1868
|
/* @__PURE__ */ e(
|
|
1832
1869
|
"div",
|
|
1833
1870
|
{
|
|
@@ -1863,26 +1900,26 @@ function Ut({
|
|
|
1863
1900
|
{
|
|
1864
1901
|
style: {
|
|
1865
1902
|
fontSize: 7,
|
|
1866
|
-
color:
|
|
1903
|
+
color: f,
|
|
1867
1904
|
letterSpacing: "0.08em",
|
|
1868
|
-
textShadow: `0 0 4px ${
|
|
1905
|
+
textShadow: `0 0 4px ${f}66`
|
|
1869
1906
|
},
|
|
1870
1907
|
children: n
|
|
1871
1908
|
}
|
|
1872
1909
|
),
|
|
1873
|
-
/* @__PURE__ */ e("div", { style: { display: "flex", gap: 5 }, children:
|
|
1910
|
+
/* @__PURE__ */ e("div", { style: { display: "flex", gap: 5 }, children: c.map((p, h) => /* @__PURE__ */ e(
|
|
1874
1911
|
"div",
|
|
1875
1912
|
{
|
|
1876
1913
|
style: {
|
|
1877
1914
|
width: 4,
|
|
1878
1915
|
height: 4,
|
|
1879
1916
|
borderRadius: "50%",
|
|
1880
|
-
background:
|
|
1881
|
-
boxShadow:
|
|
1882
|
-
animation:
|
|
1917
|
+
background: p.on ? p.color : "#0a1830",
|
|
1918
|
+
boxShadow: p.on ? `0 0 6px ${p.color}, 0 0 12px ${p.color}88` : "none",
|
|
1919
|
+
animation: p.on && h === 1 ? "holo-led-blink 2.5s linear infinite" : "none"
|
|
1883
1920
|
}
|
|
1884
1921
|
},
|
|
1885
|
-
|
|
1922
|
+
h
|
|
1886
1923
|
)) })
|
|
1887
1924
|
] })
|
|
1888
1925
|
]
|
|
@@ -1949,8 +1986,8 @@ function Ut({
|
|
|
1949
1986
|
}
|
|
1950
1987
|
}
|
|
1951
1988
|
),
|
|
1952
|
-
Array.from({ length: 3 }, (
|
|
1953
|
-
const
|
|
1989
|
+
Array.from({ length: 3 }, (p, h) => {
|
|
1990
|
+
const y = h < l;
|
|
1954
1991
|
return /* @__PURE__ */ d(
|
|
1955
1992
|
"div",
|
|
1956
1993
|
{
|
|
@@ -1958,7 +1995,7 @@ function Ut({
|
|
|
1958
1995
|
position: "absolute",
|
|
1959
1996
|
left: 8,
|
|
1960
1997
|
right: 8,
|
|
1961
|
-
top: 75 +
|
|
1998
|
+
top: 75 + h * 31,
|
|
1962
1999
|
height: 27,
|
|
1963
2000
|
background: "linear-gradient(90deg, #040a16, #030710, #040a16)",
|
|
1964
2001
|
border: "1px solid #1a2d40",
|
|
@@ -1977,8 +2014,8 @@ function Ut({
|
|
|
1977
2014
|
height: 5,
|
|
1978
2015
|
borderRadius: "50%",
|
|
1979
2016
|
flexShrink: 0,
|
|
1980
|
-
background:
|
|
1981
|
-
boxShadow:
|
|
2017
|
+
background: y ? t.color : "#08142a",
|
|
2018
|
+
boxShadow: y ? `0 0 6px ${t.color}, 0 0 12px ${t.color}66` : "none"
|
|
1982
2019
|
}
|
|
1983
2020
|
}
|
|
1984
2021
|
),
|
|
@@ -1994,7 +2031,7 @@ function Ut({
|
|
|
1994
2031
|
position: "relative",
|
|
1995
2032
|
overflow: "hidden"
|
|
1996
2033
|
},
|
|
1997
|
-
children:
|
|
2034
|
+
children: y && /* @__PURE__ */ e(
|
|
1998
2035
|
"div",
|
|
1999
2036
|
{
|
|
2000
2037
|
style: {
|
|
@@ -2002,7 +2039,7 @@ function Ut({
|
|
|
2002
2039
|
top: 0,
|
|
2003
2040
|
left: 0,
|
|
2004
2041
|
bottom: 0,
|
|
2005
|
-
width: `${30 + o / 100 * 45 +
|
|
2042
|
+
width: `${30 + o / 100 * 45 + h * 8}%`,
|
|
2006
2043
|
background: `linear-gradient(90deg, ${t.color}22, transparent)`
|
|
2007
2044
|
}
|
|
2008
2045
|
}
|
|
@@ -2025,7 +2062,7 @@ function Ut({
|
|
|
2025
2062
|
)
|
|
2026
2063
|
]
|
|
2027
2064
|
},
|
|
2028
|
-
|
|
2065
|
+
h
|
|
2029
2066
|
);
|
|
2030
2067
|
}),
|
|
2031
2068
|
/* @__PURE__ */ e(
|
|
@@ -2054,7 +2091,7 @@ function Ut({
|
|
|
2054
2091
|
alignItems: "center"
|
|
2055
2092
|
},
|
|
2056
2093
|
children: [
|
|
2057
|
-
[0, 1].map((
|
|
2094
|
+
[0, 1].map((p) => /* @__PURE__ */ e(
|
|
2058
2095
|
"div",
|
|
2059
2096
|
{
|
|
2060
2097
|
style: {
|
|
@@ -2065,7 +2102,7 @@ function Ut({
|
|
|
2065
2102
|
borderRadius: "1px 1px 2px 2px"
|
|
2066
2103
|
}
|
|
2067
2104
|
},
|
|
2068
|
-
|
|
2105
|
+
p
|
|
2069
2106
|
)),
|
|
2070
2107
|
/* @__PURE__ */ e(
|
|
2071
2108
|
"div",
|
|
@@ -2095,7 +2132,7 @@ function Ut({
|
|
|
2095
2132
|
/* @__PURE__ */ e("div", { style: { flex: 1, display: "flex", flexDirection: "column", gap: 4 }, children: [
|
|
2096
2133
|
{ val: o, color: t.color },
|
|
2097
2134
|
{ val: i, color: t.color + "bb" }
|
|
2098
|
-
].map((
|
|
2135
|
+
].map((p, h) => /* @__PURE__ */ e(
|
|
2099
2136
|
"div",
|
|
2100
2137
|
{
|
|
2101
2138
|
style: {
|
|
@@ -2108,15 +2145,15 @@ function Ut({
|
|
|
2108
2145
|
"div",
|
|
2109
2146
|
{
|
|
2110
2147
|
style: {
|
|
2111
|
-
width: `${
|
|
2148
|
+
width: `${p.val}%`,
|
|
2112
2149
|
height: "100%",
|
|
2113
|
-
background: `linear-gradient(90deg, ${
|
|
2150
|
+
background: `linear-gradient(90deg, ${p.color}55, ${p.color})`,
|
|
2114
2151
|
borderRadius: 1.5
|
|
2115
2152
|
}
|
|
2116
2153
|
}
|
|
2117
2154
|
)
|
|
2118
2155
|
},
|
|
2119
|
-
|
|
2156
|
+
h
|
|
2120
2157
|
)) })
|
|
2121
2158
|
]
|
|
2122
2159
|
}
|
|
@@ -2149,7 +2186,7 @@ function Ut({
|
|
|
2149
2186
|
overflow: "hidden",
|
|
2150
2187
|
opacity: 0.22
|
|
2151
2188
|
},
|
|
2152
|
-
children: Array.from({ length: 100 }).map((
|
|
2189
|
+
children: Array.from({ length: 100 }).map((p, h) => /* @__PURE__ */ e(
|
|
2153
2190
|
"div",
|
|
2154
2191
|
{
|
|
2155
2192
|
style: {
|
|
@@ -2159,7 +2196,7 @@ function Ut({
|
|
|
2159
2196
|
background: "#2a6090"
|
|
2160
2197
|
}
|
|
2161
2198
|
},
|
|
2162
|
-
|
|
2199
|
+
h
|
|
2163
2200
|
))
|
|
2164
2201
|
}
|
|
2165
2202
|
),
|
|
@@ -2180,13 +2217,13 @@ function Ut({
|
|
|
2180
2217
|
}
|
|
2181
2218
|
);
|
|
2182
2219
|
}
|
|
2183
|
-
function
|
|
2220
|
+
function Xt() {
|
|
2184
2221
|
return /* @__PURE__ */ d(
|
|
2185
2222
|
"div",
|
|
2186
2223
|
{
|
|
2187
2224
|
style: {
|
|
2188
2225
|
width: q,
|
|
2189
|
-
height:
|
|
2226
|
+
height: U,
|
|
2190
2227
|
background: "linear-gradient(180deg, #040c1a 0%, #030810 100%)",
|
|
2191
2228
|
position: "relative",
|
|
2192
2229
|
overflow: "hidden",
|
|
@@ -2294,15 +2331,19 @@ function Yt() {
|
|
|
2294
2331
|
}
|
|
2295
2332
|
);
|
|
2296
2333
|
}
|
|
2297
|
-
function
|
|
2298
|
-
|
|
2334
|
+
function dt({
|
|
2335
|
+
side: t,
|
|
2336
|
+
color: n,
|
|
2337
|
+
brandLabel: o
|
|
2338
|
+
}) {
|
|
2339
|
+
const i = t === "right";
|
|
2299
2340
|
return /* @__PURE__ */ d(
|
|
2300
2341
|
"div",
|
|
2301
2342
|
{
|
|
2302
2343
|
style: {
|
|
2303
2344
|
width: Z,
|
|
2304
|
-
height:
|
|
2305
|
-
background:
|
|
2345
|
+
height: U,
|
|
2346
|
+
background: i ? "linear-gradient(90deg, #040c1c 0%, #071428 60%, #040c1c 100%)" : "linear-gradient(90deg, #040c1c 0%, #071428 40%, #040c1c 100%)",
|
|
2306
2347
|
position: "relative",
|
|
2307
2348
|
overflow: "hidden"
|
|
2308
2349
|
},
|
|
@@ -2320,13 +2361,13 @@ function ot({ side: t, color: n }) {
|
|
|
2320
2361
|
}
|
|
2321
2362
|
}
|
|
2322
2363
|
),
|
|
2323
|
-
[8,
|
|
2364
|
+
[8, U - 20].map((r) => /* @__PURE__ */ e(
|
|
2324
2365
|
"div",
|
|
2325
2366
|
{
|
|
2326
2367
|
style: {
|
|
2327
2368
|
position: "absolute",
|
|
2328
|
-
top:
|
|
2329
|
-
left:
|
|
2369
|
+
top: r,
|
|
2370
|
+
left: i ? 10 : Z - 18,
|
|
2330
2371
|
width: 8,
|
|
2331
2372
|
height: 8,
|
|
2332
2373
|
borderRadius: 1,
|
|
@@ -2335,23 +2376,23 @@ function ot({ side: t, color: n }) {
|
|
|
2335
2376
|
boxShadow: "inset 0 1px 2px rgba(0,0,0,0.8)"
|
|
2336
2377
|
}
|
|
2337
2378
|
},
|
|
2338
|
-
|
|
2379
|
+
r
|
|
2339
2380
|
)),
|
|
2340
2381
|
/* @__PURE__ */ e(
|
|
2341
2382
|
"div",
|
|
2342
2383
|
{
|
|
2343
2384
|
style: {
|
|
2344
2385
|
position: "absolute",
|
|
2345
|
-
top:
|
|
2346
|
-
bottom:
|
|
2347
|
-
left:
|
|
2348
|
-
right:
|
|
2386
|
+
top: U * 0.35,
|
|
2387
|
+
bottom: U * 0.15,
|
|
2388
|
+
left: i ? 22 : 18,
|
|
2389
|
+
right: i ? 18 : 22,
|
|
2349
2390
|
display: "flex",
|
|
2350
2391
|
flexDirection: "column",
|
|
2351
2392
|
gap: 5,
|
|
2352
2393
|
justifyContent: "center"
|
|
2353
2394
|
},
|
|
2354
|
-
children: Array.from({ length: 6 }).map((
|
|
2395
|
+
children: Array.from({ length: 6 }).map((r, a) => /* @__PURE__ */ e(
|
|
2355
2396
|
"div",
|
|
2356
2397
|
{
|
|
2357
2398
|
style: {
|
|
@@ -2362,17 +2403,17 @@ function ot({ side: t, color: n }) {
|
|
|
2362
2403
|
boxShadow: "inset 0 1px 2px rgba(0,0,0,0.5)"
|
|
2363
2404
|
}
|
|
2364
2405
|
},
|
|
2365
|
-
|
|
2406
|
+
a
|
|
2366
2407
|
))
|
|
2367
2408
|
}
|
|
2368
2409
|
),
|
|
2369
|
-
/* @__PURE__ */
|
|
2410
|
+
/* @__PURE__ */ d(
|
|
2370
2411
|
"div",
|
|
2371
2412
|
{
|
|
2372
2413
|
style: {
|
|
2373
2414
|
position: "absolute",
|
|
2374
|
-
top:
|
|
2375
|
-
left:
|
|
2415
|
+
top: U * 0.18,
|
|
2416
|
+
left: i ? 12 : Z - 78,
|
|
2376
2417
|
fontSize: 7,
|
|
2377
2418
|
color: "#1a3050",
|
|
2378
2419
|
letterSpacing: "0.2em",
|
|
@@ -2380,14 +2421,17 @@ function ot({ side: t, color: n }) {
|
|
|
2380
2421
|
whiteSpace: "nowrap",
|
|
2381
2422
|
fontFamily: "'Courier New', monospace"
|
|
2382
2423
|
},
|
|
2383
|
-
children:
|
|
2424
|
+
children: [
|
|
2425
|
+
o,
|
|
2426
|
+
" SYS"
|
|
2427
|
+
]
|
|
2384
2428
|
}
|
|
2385
2429
|
)
|
|
2386
2430
|
]
|
|
2387
2431
|
}
|
|
2388
2432
|
);
|
|
2389
2433
|
}
|
|
2390
|
-
function
|
|
2434
|
+
function jt({ cpuLoad: t }) {
|
|
2391
2435
|
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((Z - 18) / 7);
|
|
2392
2436
|
return /* @__PURE__ */ d(
|
|
2393
2437
|
"div",
|
|
@@ -2467,7 +2511,7 @@ function Vt({ cpuLoad: t }) {
|
|
|
2467
2511
|
}
|
|
2468
2512
|
);
|
|
2469
2513
|
}
|
|
2470
|
-
function
|
|
2514
|
+
function J({
|
|
2471
2515
|
rotateX: t = -22,
|
|
2472
2516
|
rotateY: n = 20,
|
|
2473
2517
|
rotateZ: o = 0,
|
|
@@ -2477,28 +2521,29 @@ function ue({
|
|
|
2477
2521
|
name: s = "SRV-001",
|
|
2478
2522
|
cpuLoad: l = 67,
|
|
2479
2523
|
memLoad: f = 82,
|
|
2480
|
-
|
|
2524
|
+
brandLabel: c = "BUSAUD",
|
|
2525
|
+
_compact: p
|
|
2481
2526
|
}) {
|
|
2482
|
-
const [
|
|
2483
|
-
|
|
2527
|
+
const [h, y] = I(n), u = te(0), g = te(0);
|
|
2528
|
+
Ae(() => {
|
|
2484
2529
|
if (!r) {
|
|
2485
|
-
|
|
2530
|
+
y(n);
|
|
2486
2531
|
return;
|
|
2487
2532
|
}
|
|
2488
|
-
const
|
|
2489
|
-
|
|
2533
|
+
const x = (v) => {
|
|
2534
|
+
g.current && y(($) => $ + (v - g.current) * 0.027), g.current = v, u.current = requestAnimationFrame(x);
|
|
2490
2535
|
};
|
|
2491
|
-
return
|
|
2492
|
-
cancelAnimationFrame(
|
|
2536
|
+
return u.current = requestAnimationFrame(x), () => {
|
|
2537
|
+
cancelAnimationFrame(u.current), g.current = 0;
|
|
2493
2538
|
};
|
|
2494
2539
|
}, [r, n]);
|
|
2495
|
-
const
|
|
2540
|
+
const m = w[a] ?? w.online;
|
|
2496
2541
|
return /* @__PURE__ */ d(
|
|
2497
2542
|
"div",
|
|
2498
2543
|
{
|
|
2499
2544
|
style: {
|
|
2500
2545
|
width: q * i,
|
|
2501
|
-
height:
|
|
2546
|
+
height: U * i,
|
|
2502
2547
|
position: "relative",
|
|
2503
2548
|
display: "flex",
|
|
2504
2549
|
alignItems: "center",
|
|
@@ -2516,17 +2561,17 @@ function ue({
|
|
|
2516
2561
|
zIndex: 110,
|
|
2517
2562
|
pointerEvents: "none",
|
|
2518
2563
|
animation: "holo-led-blink 1.5s infinite",
|
|
2519
|
-
filter: `drop-shadow(0 0 10px ${
|
|
2564
|
+
filter: `drop-shadow(0 0 10px ${m.color})`
|
|
2520
2565
|
},
|
|
2521
2566
|
children: /* @__PURE__ */ d("svg", { width: "44", height: "44", viewBox: "0 0 28 28", fill: "none", children: [
|
|
2522
2567
|
/* @__PURE__ */ e(
|
|
2523
2568
|
"path",
|
|
2524
2569
|
{
|
|
2525
2570
|
d: "M14 3L1.5 25.5h25L14 3z",
|
|
2526
|
-
stroke:
|
|
2571
|
+
stroke: m.color,
|
|
2527
2572
|
strokeWidth: "2",
|
|
2528
2573
|
strokeLinejoin: "round",
|
|
2529
|
-
fill:
|
|
2574
|
+
fill: m.color + "22"
|
|
2530
2575
|
}
|
|
2531
2576
|
),
|
|
2532
2577
|
/* @__PURE__ */ e(
|
|
@@ -2536,12 +2581,12 @@ function ue({
|
|
|
2536
2581
|
y1: "11",
|
|
2537
2582
|
x2: "14",
|
|
2538
2583
|
y2: "18",
|
|
2539
|
-
stroke:
|
|
2584
|
+
stroke: m.color,
|
|
2540
2585
|
strokeWidth: "2.5",
|
|
2541
2586
|
strokeLinecap: "round"
|
|
2542
2587
|
}
|
|
2543
2588
|
),
|
|
2544
|
-
/* @__PURE__ */ e("circle", { cx: "14", cy: "21.5", r: "1.5", fill:
|
|
2589
|
+
/* @__PURE__ */ e("circle", { cx: "14", cy: "21.5", r: "1.5", fill: m.color })
|
|
2545
2590
|
] })
|
|
2546
2591
|
}
|
|
2547
2592
|
),
|
|
@@ -2551,8 +2596,8 @@ function ue({
|
|
|
2551
2596
|
style: {
|
|
2552
2597
|
position: "absolute",
|
|
2553
2598
|
width: q * 1.4 * i,
|
|
2554
|
-
height:
|
|
2555
|
-
background: `radial-gradient(ellipse, ${
|
|
2599
|
+
height: U * 0.8 * i,
|
|
2600
|
+
background: `radial-gradient(ellipse, ${m.glow} 0%, transparent 65%)`,
|
|
2556
2601
|
filter: `blur(${Math.round(45 * i)}px)`,
|
|
2557
2602
|
pointerEvents: "none",
|
|
2558
2603
|
top: "40%",
|
|
@@ -2575,29 +2620,30 @@ function ue({
|
|
|
2575
2620
|
{
|
|
2576
2621
|
style: {
|
|
2577
2622
|
width: q,
|
|
2578
|
-
height:
|
|
2623
|
+
height: U,
|
|
2579
2624
|
position: "relative",
|
|
2580
2625
|
transformStyle: "preserve-3d",
|
|
2581
|
-
transform: `rotateX(${t}deg) rotateY(${
|
|
2626
|
+
transform: `rotateX(${t}deg) rotateY(${h}deg) rotateZ(${o}deg)`,
|
|
2582
2627
|
transition: r ? "none" : "transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94)"
|
|
2583
2628
|
},
|
|
2584
2629
|
children: [
|
|
2585
|
-
/* @__PURE__ */ e("div", { style:
|
|
2586
|
-
|
|
2630
|
+
/* @__PURE__ */ e("div", { style: ce.front, children: /* @__PURE__ */ e(
|
|
2631
|
+
_t,
|
|
2587
2632
|
{
|
|
2588
|
-
cfg:
|
|
2633
|
+
cfg: m,
|
|
2589
2634
|
name: s,
|
|
2590
2635
|
cpuLoad: l,
|
|
2591
2636
|
memLoad: f,
|
|
2592
2637
|
status: a,
|
|
2593
|
-
compact:
|
|
2638
|
+
compact: p,
|
|
2639
|
+
brandLabel: c
|
|
2594
2640
|
}
|
|
2595
2641
|
) }),
|
|
2596
|
-
/* @__PURE__ */ e("div", { style:
|
|
2597
|
-
/* @__PURE__ */ e("div", { style:
|
|
2598
|
-
/* @__PURE__ */ e("div", { style:
|
|
2599
|
-
/* @__PURE__ */ e("div", { style:
|
|
2600
|
-
/* @__PURE__ */ e("div", { style:
|
|
2642
|
+
/* @__PURE__ */ e("div", { style: ce.back, children: /* @__PURE__ */ e(Xt, {}) }),
|
|
2643
|
+
/* @__PURE__ */ e("div", { style: ce.left, children: /* @__PURE__ */ e(dt, { side: "left", color: m.color, brandLabel: c }) }),
|
|
2644
|
+
/* @__PURE__ */ e("div", { style: ce.right, children: /* @__PURE__ */ e(dt, { side: "right", color: m.color, brandLabel: c }) }),
|
|
2645
|
+
/* @__PURE__ */ e("div", { style: ce.top, children: /* @__PURE__ */ e(jt, { cpuLoad: l }) }),
|
|
2646
|
+
/* @__PURE__ */ e("div", { style: ce.bottom, children: /* @__PURE__ */ e(
|
|
2601
2647
|
"div",
|
|
2602
2648
|
{
|
|
2603
2649
|
style: {
|
|
@@ -2616,11 +2662,11 @@ function ue({
|
|
|
2616
2662
|
}
|
|
2617
2663
|
);
|
|
2618
2664
|
}
|
|
2619
|
-
const
|
|
2620
|
-
function
|
|
2665
|
+
const qe = 12, ae = 55, _ = ae * 2, ue = 52, it = 10, Ue = 3 * ue + 2 * it, pe = 2 * Math.PI * ae / qe, Ye = Array.from({ length: qe }, (t, n) => n / qe * 360);
|
|
2666
|
+
function Ve(t) {
|
|
2621
2667
|
return Math.cos(t * Math.PI / 180) * 0.42 + 0.58;
|
|
2622
2668
|
}
|
|
2623
|
-
function
|
|
2669
|
+
function Qt({
|
|
2624
2670
|
diskY: t,
|
|
2625
2671
|
diskIdx: n,
|
|
2626
2672
|
cfg: o,
|
|
@@ -2629,21 +2675,21 @@ function _t({
|
|
|
2629
2675
|
compact: a
|
|
2630
2676
|
}) {
|
|
2631
2677
|
return /* @__PURE__ */ d(Ce, { children: [
|
|
2632
|
-
|
|
2633
|
-
const f =
|
|
2678
|
+
Ye.map((s, l) => {
|
|
2679
|
+
const f = Ve(s), c = l === 0, p = Math.round(4 + f * 9), h = Math.round(12 + f * 22), y = Math.round(28 + f * 44), u = Math.round(f * 0.55 * 255).toString(16).padStart(2, "0");
|
|
2634
2680
|
return /* @__PURE__ */ e(
|
|
2635
2681
|
"div",
|
|
2636
2682
|
{
|
|
2637
2683
|
style: {
|
|
2638
2684
|
position: "absolute",
|
|
2639
|
-
width:
|
|
2640
|
-
height:
|
|
2641
|
-
left: (_ -
|
|
2685
|
+
width: pe,
|
|
2686
|
+
height: ue,
|
|
2687
|
+
left: (_ - pe) / 2,
|
|
2642
2688
|
top: t,
|
|
2643
|
-
transform: `rotateY(${s}deg) translateZ(${
|
|
2689
|
+
transform: `rotateY(${s}deg) translateZ(${ae}px)`,
|
|
2644
2690
|
backfaceVisibility: "hidden",
|
|
2645
2691
|
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}${
|
|
2692
|
+
borderLeft: `1px solid ${o.color}${u}`,
|
|
2647
2693
|
boxShadow: c ? `inset 0 0 18px ${o.color}28` : "none"
|
|
2648
2694
|
},
|
|
2649
2695
|
children: c && /* @__PURE__ */ d(Ce, { children: [
|
|
@@ -2702,7 +2748,7 @@ function _t({
|
|
|
2702
2748
|
width: _ + 4,
|
|
2703
2749
|
height: _ + 4,
|
|
2704
2750
|
left: -2,
|
|
2705
|
-
top: t -
|
|
2751
|
+
top: t - ae,
|
|
2706
2752
|
borderRadius: "50%",
|
|
2707
2753
|
transform: "rotateX(90deg)",
|
|
2708
2754
|
backfaceVisibility: "hidden",
|
|
@@ -2763,7 +2809,7 @@ function _t({
|
|
|
2763
2809
|
width: _ + 4,
|
|
2764
2810
|
height: _ + 4,
|
|
2765
2811
|
left: -2,
|
|
2766
|
-
top: t +
|
|
2812
|
+
top: t + ue - ae,
|
|
2767
2813
|
borderRadius: "50%",
|
|
2768
2814
|
transform: "rotateX(-90deg)",
|
|
2769
2815
|
backfaceVisibility: "hidden",
|
|
@@ -2787,18 +2833,18 @@ function _t({
|
|
|
2787
2833
|
)
|
|
2788
2834
|
}
|
|
2789
2835
|
),
|
|
2790
|
-
i &&
|
|
2791
|
-
const f =
|
|
2836
|
+
i && Ye.map((s, l) => {
|
|
2837
|
+
const f = Ve(s);
|
|
2792
2838
|
return /* @__PURE__ */ e(
|
|
2793
2839
|
"div",
|
|
2794
2840
|
{
|
|
2795
2841
|
style: {
|
|
2796
2842
|
position: "absolute",
|
|
2797
|
-
width:
|
|
2843
|
+
width: pe + 1.5,
|
|
2798
2844
|
height: 6,
|
|
2799
|
-
left: (_ -
|
|
2800
|
-
top: t +
|
|
2801
|
-
transform: `rotateY(${s}deg) translateZ(${
|
|
2845
|
+
left: (_ - pe - 1.5) / 2,
|
|
2846
|
+
top: t + ue - 3,
|
|
2847
|
+
transform: `rotateY(${s}deg) translateZ(${ae + 1.5}px)`,
|
|
2802
2848
|
backfaceVisibility: "hidden",
|
|
2803
2849
|
background: o.color,
|
|
2804
2850
|
boxShadow: `0 0 8px ${o.color}, 0 0 18px ${o.color}aa, 0 0 30px ${o.glow}`,
|
|
@@ -2808,18 +2854,18 @@ function _t({
|
|
|
2808
2854
|
`rng${n}${l}`
|
|
2809
2855
|
);
|
|
2810
2856
|
}),
|
|
2811
|
-
i &&
|
|
2812
|
-
const f =
|
|
2857
|
+
i && Ye.map((s, l) => {
|
|
2858
|
+
const f = Ve(s), c = Math.round(2 + f * 4), p = Math.round(5 + f * 10), h = Math.round(12 + f * 20);
|
|
2813
2859
|
return /* @__PURE__ */ e(
|
|
2814
2860
|
"div",
|
|
2815
2861
|
{
|
|
2816
2862
|
style: {
|
|
2817
2863
|
position: "absolute",
|
|
2818
|
-
width:
|
|
2819
|
-
height:
|
|
2820
|
-
left: (_ -
|
|
2821
|
-
top: t +
|
|
2822
|
-
transform: `rotateY(${s}deg) translateZ(${
|
|
2864
|
+
width: pe,
|
|
2865
|
+
height: it,
|
|
2866
|
+
left: (_ - pe) / 2,
|
|
2867
|
+
top: t + ue,
|
|
2868
|
+
transform: `rotateY(${s}deg) translateZ(${ae}px)`,
|
|
2823
2869
|
backfaceVisibility: "hidden",
|
|
2824
2870
|
background: `rgb(${c},${p},${h})`
|
|
2825
2871
|
}
|
|
@@ -2829,7 +2875,7 @@ function _t({
|
|
|
2829
2875
|
})
|
|
2830
2876
|
] });
|
|
2831
2877
|
}
|
|
2832
|
-
function
|
|
2878
|
+
function Ee({
|
|
2833
2879
|
rotateX: t = -22,
|
|
2834
2880
|
rotateY: n = -15,
|
|
2835
2881
|
rotateZ: o = 0,
|
|
@@ -2841,16 +2887,16 @@ function Oe({
|
|
|
2841
2887
|
// connections = 284,
|
|
2842
2888
|
_compact: l
|
|
2843
2889
|
}) {
|
|
2844
|
-
const [f, c] =
|
|
2845
|
-
|
|
2890
|
+
const [f, c] = I(n), p = te(0), h = te(0);
|
|
2891
|
+
Ae(() => {
|
|
2846
2892
|
if (!r) {
|
|
2847
2893
|
c(n);
|
|
2848
2894
|
return;
|
|
2849
2895
|
}
|
|
2850
|
-
const
|
|
2851
|
-
h.current && c((m) => m + (g - h.current) * 0.027), h.current = g, p.current = requestAnimationFrame(
|
|
2896
|
+
const u = (g) => {
|
|
2897
|
+
h.current && c((m) => m + (g - h.current) * 0.027), h.current = g, p.current = requestAnimationFrame(u);
|
|
2852
2898
|
};
|
|
2853
|
-
return p.current = requestAnimationFrame(
|
|
2899
|
+
return p.current = requestAnimationFrame(u), () => {
|
|
2854
2900
|
cancelAnimationFrame(p.current), h.current = 0;
|
|
2855
2901
|
};
|
|
2856
2902
|
}, [r, n]);
|
|
@@ -2860,7 +2906,7 @@ function Oe({
|
|
|
2860
2906
|
{
|
|
2861
2907
|
style: {
|
|
2862
2908
|
width: _ * i,
|
|
2863
|
-
height:
|
|
2909
|
+
height: Ue * i,
|
|
2864
2910
|
position: "relative",
|
|
2865
2911
|
display: "flex",
|
|
2866
2912
|
alignItems: "center",
|
|
@@ -2921,7 +2967,7 @@ function Oe({
|
|
|
2921
2967
|
style: {
|
|
2922
2968
|
position: "absolute",
|
|
2923
2969
|
width: _ * 2.8 * i,
|
|
2924
|
-
height:
|
|
2970
|
+
height: Ue * 0.85 * i,
|
|
2925
2971
|
background: `radial-gradient(ellipse, ${y.glow} 0%, transparent 65%)`,
|
|
2926
2972
|
filter: `blur(${Math.round(50 * i)}px)`,
|
|
2927
2973
|
pointerEvents: "none",
|
|
@@ -2945,23 +2991,23 @@ function Oe({
|
|
|
2945
2991
|
{
|
|
2946
2992
|
style: {
|
|
2947
2993
|
width: _,
|
|
2948
|
-
height:
|
|
2994
|
+
height: Ue,
|
|
2949
2995
|
position: "relative",
|
|
2950
2996
|
transformStyle: "preserve-3d",
|
|
2951
2997
|
transform: `rotateX(${t}deg) rotateY(${f}deg) rotateZ(${o}deg)`,
|
|
2952
2998
|
transition: r ? "none" : "transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94)"
|
|
2953
2999
|
},
|
|
2954
|
-
children: [0, 1, 2].map((
|
|
2955
|
-
|
|
3000
|
+
children: [0, 1, 2].map((u) => /* @__PURE__ */ e(
|
|
3001
|
+
Qt,
|
|
2956
3002
|
{
|
|
2957
|
-
diskY:
|
|
2958
|
-
diskIdx:
|
|
3003
|
+
diskY: u * (ue + it),
|
|
3004
|
+
diskIdx: u,
|
|
2959
3005
|
cfg: y,
|
|
2960
|
-
hasRingBelow:
|
|
3006
|
+
hasRingBelow: u < 2,
|
|
2961
3007
|
capacity: s,
|
|
2962
3008
|
compact: l
|
|
2963
3009
|
},
|
|
2964
|
-
|
|
3010
|
+
u
|
|
2965
3011
|
))
|
|
2966
3012
|
}
|
|
2967
3013
|
)
|
|
@@ -2971,8 +3017,8 @@ function Oe({
|
|
|
2971
3017
|
}
|
|
2972
3018
|
);
|
|
2973
3019
|
}
|
|
2974
|
-
const G = 190,
|
|
2975
|
-
function
|
|
3020
|
+
const G = 190, Y = 72, be = 120, fe = Ze(G, Y, be);
|
|
3021
|
+
function qt({
|
|
2976
3022
|
cfg: t,
|
|
2977
3023
|
name: n,
|
|
2978
3024
|
traffic: o,
|
|
@@ -2985,8 +3031,8 @@ function jt({
|
|
|
2985
3031
|
{
|
|
2986
3032
|
style: {
|
|
2987
3033
|
width: G,
|
|
2988
|
-
height:
|
|
2989
|
-
background: r ? we :
|
|
3034
|
+
height: Y,
|
|
3035
|
+
background: r ? we : Ke,
|
|
2990
3036
|
position: "relative",
|
|
2991
3037
|
overflow: "hidden",
|
|
2992
3038
|
fontFamily: "'Courier New', monospace",
|
|
@@ -3234,13 +3280,13 @@ function jt({
|
|
|
3234
3280
|
}
|
|
3235
3281
|
);
|
|
3236
3282
|
}
|
|
3237
|
-
function
|
|
3283
|
+
function Gt() {
|
|
3238
3284
|
return /* @__PURE__ */ d(
|
|
3239
3285
|
"div",
|
|
3240
3286
|
{
|
|
3241
3287
|
style: {
|
|
3242
3288
|
width: G,
|
|
3243
|
-
height:
|
|
3289
|
+
height: Y,
|
|
3244
3290
|
background: "linear-gradient(180deg, #040c1a, #030810)",
|
|
3245
3291
|
position: "relative",
|
|
3246
3292
|
overflow: "hidden",
|
|
@@ -3255,7 +3301,7 @@ function Xt() {
|
|
|
3255
3301
|
{
|
|
3256
3302
|
style: {
|
|
3257
3303
|
width: 40,
|
|
3258
|
-
height:
|
|
3304
|
+
height: Y - 16,
|
|
3259
3305
|
background: "#020710",
|
|
3260
3306
|
border: "1px solid #1a2d40",
|
|
3261
3307
|
borderRadius: 2,
|
|
@@ -3311,7 +3357,7 @@ function Xt() {
|
|
|
3311
3357
|
style: {
|
|
3312
3358
|
marginLeft: "auto",
|
|
3313
3359
|
width: 12,
|
|
3314
|
-
height:
|
|
3360
|
+
height: Y - 16,
|
|
3315
3361
|
background: "#020710",
|
|
3316
3362
|
border: "1px solid #1a3050",
|
|
3317
3363
|
borderRadius: 1
|
|
@@ -3322,13 +3368,13 @@ function Xt() {
|
|
|
3322
3368
|
}
|
|
3323
3369
|
);
|
|
3324
3370
|
}
|
|
3325
|
-
function
|
|
3371
|
+
function ct({ side: t, color: n }) {
|
|
3326
3372
|
return /* @__PURE__ */ d(
|
|
3327
3373
|
"div",
|
|
3328
3374
|
{
|
|
3329
3375
|
style: {
|
|
3330
3376
|
width: be,
|
|
3331
|
-
height:
|
|
3377
|
+
height: Y,
|
|
3332
3378
|
background: t === "right" ? "linear-gradient(90deg, #04091a 0%, #071428 60%, #040c1c 100%)" : "linear-gradient(90deg, #040c1c 0%, #071428 40%, #04091a 100%)",
|
|
3333
3379
|
position: "relative",
|
|
3334
3380
|
overflow: "hidden"
|
|
@@ -3352,8 +3398,8 @@ function rt({ side: t, color: n }) {
|
|
|
3352
3398
|
{
|
|
3353
3399
|
style: {
|
|
3354
3400
|
position: "absolute",
|
|
3355
|
-
top:
|
|
3356
|
-
bottom:
|
|
3401
|
+
top: Y * 0.25,
|
|
3402
|
+
bottom: Y * 0.25,
|
|
3357
3403
|
left: 14,
|
|
3358
3404
|
right: 14,
|
|
3359
3405
|
display: "flex",
|
|
@@ -3379,7 +3425,7 @@ function rt({ side: t, color: n }) {
|
|
|
3379
3425
|
}
|
|
3380
3426
|
);
|
|
3381
3427
|
}
|
|
3382
|
-
function
|
|
3428
|
+
function Kt({ traffic: t }) {
|
|
3383
3429
|
const n = Math.floor((be - 14) / 7);
|
|
3384
3430
|
return /* @__PURE__ */ d(
|
|
3385
3431
|
"div",
|
|
@@ -3438,7 +3484,7 @@ function Qt({ traffic: t }) {
|
|
|
3438
3484
|
}
|
|
3439
3485
|
);
|
|
3440
3486
|
}
|
|
3441
|
-
function
|
|
3487
|
+
function nt({
|
|
3442
3488
|
rotateX: t = -20,
|
|
3443
3489
|
rotateY: n = 20,
|
|
3444
3490
|
rotateZ: o = 0,
|
|
@@ -3450,17 +3496,17 @@ function pt({
|
|
|
3450
3496
|
activeRoutes: f = 12,
|
|
3451
3497
|
_compact: c
|
|
3452
3498
|
}) {
|
|
3453
|
-
const [p, h] =
|
|
3454
|
-
|
|
3499
|
+
const [p, h] = I(n), y = te(0), u = te(0);
|
|
3500
|
+
Ae(() => {
|
|
3455
3501
|
if (!r) {
|
|
3456
3502
|
h(n);
|
|
3457
3503
|
return;
|
|
3458
3504
|
}
|
|
3459
3505
|
const m = (x) => {
|
|
3460
|
-
|
|
3506
|
+
u.current && h((v) => v + (x - u.current) * 0.027), u.current = x, y.current = requestAnimationFrame(m);
|
|
3461
3507
|
};
|
|
3462
3508
|
return y.current = requestAnimationFrame(m), () => {
|
|
3463
|
-
cancelAnimationFrame(y.current),
|
|
3509
|
+
cancelAnimationFrame(y.current), u.current = 0;
|
|
3464
3510
|
};
|
|
3465
3511
|
}, [r, n]);
|
|
3466
3512
|
const g = w[a] ?? w.online;
|
|
@@ -3469,7 +3515,7 @@ function pt({
|
|
|
3469
3515
|
{
|
|
3470
3516
|
style: {
|
|
3471
3517
|
width: G * i,
|
|
3472
|
-
height:
|
|
3518
|
+
height: Y * i,
|
|
3473
3519
|
position: "relative",
|
|
3474
3520
|
display: "flex",
|
|
3475
3521
|
alignItems: "center",
|
|
@@ -3530,7 +3576,7 @@ function pt({
|
|
|
3530
3576
|
style: {
|
|
3531
3577
|
position: "absolute",
|
|
3532
3578
|
width: G * 1.3 * i,
|
|
3533
|
-
height:
|
|
3579
|
+
height: Y * 2 * i,
|
|
3534
3580
|
background: `radial-gradient(ellipse, ${g.glow} 0%, transparent 65%)`,
|
|
3535
3581
|
filter: `blur(${Math.round(40 * i)}px)`,
|
|
3536
3582
|
pointerEvents: "none",
|
|
@@ -3554,15 +3600,15 @@ function pt({
|
|
|
3554
3600
|
{
|
|
3555
3601
|
style: {
|
|
3556
3602
|
width: G,
|
|
3557
|
-
height:
|
|
3603
|
+
height: Y,
|
|
3558
3604
|
position: "relative",
|
|
3559
3605
|
transformStyle: "preserve-3d",
|
|
3560
3606
|
transform: `rotateX(${t}deg) rotateY(${p}deg) rotateZ(${o}deg)`,
|
|
3561
3607
|
transition: r ? "none" : "transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94)"
|
|
3562
3608
|
},
|
|
3563
3609
|
children: [
|
|
3564
|
-
/* @__PURE__ */ e("div", { style:
|
|
3565
|
-
|
|
3610
|
+
/* @__PURE__ */ e("div", { style: fe.front, children: /* @__PURE__ */ e(
|
|
3611
|
+
qt,
|
|
3566
3612
|
{
|
|
3567
3613
|
cfg: g,
|
|
3568
3614
|
name: s,
|
|
@@ -3571,11 +3617,11 @@ function pt({
|
|
|
3571
3617
|
compact: c
|
|
3572
3618
|
}
|
|
3573
3619
|
) }),
|
|
3574
|
-
/* @__PURE__ */ e("div", { style:
|
|
3575
|
-
/* @__PURE__ */ e("div", { style:
|
|
3576
|
-
/* @__PURE__ */ e("div", { style:
|
|
3577
|
-
/* @__PURE__ */ e("div", { style:
|
|
3578
|
-
/* @__PURE__ */ e("div", { style:
|
|
3620
|
+
/* @__PURE__ */ e("div", { style: fe.back, children: /* @__PURE__ */ e(Gt, {}) }),
|
|
3621
|
+
/* @__PURE__ */ e("div", { style: fe.left, children: /* @__PURE__ */ e(ct, { side: "left", color: g.color }) }),
|
|
3622
|
+
/* @__PURE__ */ e("div", { style: fe.right, children: /* @__PURE__ */ e(ct, { side: "right", color: g.color }) }),
|
|
3623
|
+
/* @__PURE__ */ e("div", { style: fe.top, children: /* @__PURE__ */ e(Kt, { traffic: l }) }),
|
|
3624
|
+
/* @__PURE__ */ e("div", { style: fe.bottom, children: /* @__PURE__ */ e("div", { style: { width: G, height: be, background: "#020508" } }) })
|
|
3579
3625
|
]
|
|
3580
3626
|
}
|
|
3581
3627
|
)
|
|
@@ -3585,13 +3631,13 @@ function pt({
|
|
|
3585
3631
|
}
|
|
3586
3632
|
);
|
|
3587
3633
|
}
|
|
3588
|
-
const K = 190,
|
|
3634
|
+
const K = 190, V = 72, ge = 120, he = Ze(K, V, ge), pt = {
|
|
3589
3635
|
online: { color: "#bb55ff", glow: "rgba(187,85,255,0.50)" },
|
|
3590
3636
|
warning: { color: "#ff8c00", glow: "rgba(255,140,0,0.50)" },
|
|
3591
3637
|
critical: { color: "#ff2255", glow: "rgba(255,34,85,0.50)" },
|
|
3592
3638
|
offline: { color: "#1e3a5a", glow: "rgba(30,58,90,0.25)" }
|
|
3593
3639
|
};
|
|
3594
|
-
function
|
|
3640
|
+
function Zt({
|
|
3595
3641
|
cfg: t,
|
|
3596
3642
|
name: n,
|
|
3597
3643
|
queueDepth: o,
|
|
@@ -3605,8 +3651,8 @@ function qt({
|
|
|
3605
3651
|
{
|
|
3606
3652
|
style: {
|
|
3607
3653
|
width: K,
|
|
3608
|
-
height:
|
|
3609
|
-
background: a ? we :
|
|
3654
|
+
height: V,
|
|
3655
|
+
background: a ? we : Ke,
|
|
3610
3656
|
position: "relative",
|
|
3611
3657
|
overflow: "hidden",
|
|
3612
3658
|
fontFamily: "'Courier New', monospace",
|
|
@@ -3850,13 +3896,13 @@ function qt({
|
|
|
3850
3896
|
}
|
|
3851
3897
|
);
|
|
3852
3898
|
}
|
|
3853
|
-
function
|
|
3899
|
+
function Jt() {
|
|
3854
3900
|
return /* @__PURE__ */ d(
|
|
3855
3901
|
"div",
|
|
3856
3902
|
{
|
|
3857
3903
|
style: {
|
|
3858
3904
|
width: K,
|
|
3859
|
-
height:
|
|
3905
|
+
height: V,
|
|
3860
3906
|
background: "linear-gradient(180deg, #040c1a, #030810)",
|
|
3861
3907
|
position: "relative",
|
|
3862
3908
|
overflow: "hidden",
|
|
@@ -3871,7 +3917,7 @@ function Gt() {
|
|
|
3871
3917
|
{
|
|
3872
3918
|
style: {
|
|
3873
3919
|
width: 40,
|
|
3874
|
-
height:
|
|
3920
|
+
height: V - 16,
|
|
3875
3921
|
background: "#020710",
|
|
3876
3922
|
border: "1px solid #1a2d40",
|
|
3877
3923
|
borderRadius: 2,
|
|
@@ -3927,7 +3973,7 @@ function Gt() {
|
|
|
3927
3973
|
style: {
|
|
3928
3974
|
marginLeft: "auto",
|
|
3929
3975
|
width: 12,
|
|
3930
|
-
height:
|
|
3976
|
+
height: V - 16,
|
|
3931
3977
|
background: "#020710",
|
|
3932
3978
|
border: "1px solid #1a3050",
|
|
3933
3979
|
borderRadius: 1
|
|
@@ -3938,13 +3984,13 @@ function Gt() {
|
|
|
3938
3984
|
}
|
|
3939
3985
|
);
|
|
3940
3986
|
}
|
|
3941
|
-
function
|
|
3987
|
+
function ft({ side: t, color: n }) {
|
|
3942
3988
|
return /* @__PURE__ */ d(
|
|
3943
3989
|
"div",
|
|
3944
3990
|
{
|
|
3945
3991
|
style: {
|
|
3946
3992
|
width: ge,
|
|
3947
|
-
height:
|
|
3993
|
+
height: V,
|
|
3948
3994
|
background: t === "right" ? "linear-gradient(90deg, #04091a 0%, #071428 60%, #040c1c 100%)" : "linear-gradient(90deg, #040c1c 0%, #071428 40%, #04091a 100%)",
|
|
3949
3995
|
position: "relative",
|
|
3950
3996
|
overflow: "hidden"
|
|
@@ -3968,8 +4014,8 @@ function lt({ side: t, color: n }) {
|
|
|
3968
4014
|
{
|
|
3969
4015
|
style: {
|
|
3970
4016
|
position: "absolute",
|
|
3971
|
-
top:
|
|
3972
|
-
bottom:
|
|
4017
|
+
top: V * 0.25,
|
|
4018
|
+
bottom: V * 0.25,
|
|
3973
4019
|
left: 14,
|
|
3974
4020
|
right: 14,
|
|
3975
4021
|
display: "flex",
|
|
@@ -3995,7 +4041,7 @@ function lt({ side: t, color: n }) {
|
|
|
3995
4041
|
}
|
|
3996
4042
|
);
|
|
3997
4043
|
}
|
|
3998
|
-
function
|
|
4044
|
+
function ei({ queueDepth: t, color: n }) {
|
|
3999
4045
|
const o = Math.floor((ge - 14) / 7);
|
|
4000
4046
|
return /* @__PURE__ */ d(
|
|
4001
4047
|
"div",
|
|
@@ -4054,7 +4100,7 @@ function Kt({ queueDepth: t, color: n }) {
|
|
|
4054
4100
|
}
|
|
4055
4101
|
);
|
|
4056
4102
|
}
|
|
4057
|
-
function
|
|
4103
|
+
function bt({
|
|
4058
4104
|
rotateX: t = -20,
|
|
4059
4105
|
rotateY: n = 20,
|
|
4060
4106
|
rotateZ: o = 0,
|
|
@@ -4067,26 +4113,26 @@ function Zt({
|
|
|
4067
4113
|
instances: c = 3,
|
|
4068
4114
|
_compact: p
|
|
4069
4115
|
}) {
|
|
4070
|
-
const [h, y] =
|
|
4071
|
-
|
|
4116
|
+
const [h, y] = I(n), u = te(0), g = te(0);
|
|
4117
|
+
Ae(() => {
|
|
4072
4118
|
if (!r) {
|
|
4073
4119
|
y(n);
|
|
4074
4120
|
return;
|
|
4075
4121
|
}
|
|
4076
4122
|
const x = (v) => {
|
|
4077
|
-
g.current && y((
|
|
4123
|
+
g.current && y(($) => $ + (v - g.current) * 0.027), g.current = v, u.current = requestAnimationFrame(x);
|
|
4078
4124
|
};
|
|
4079
|
-
return
|
|
4080
|
-
cancelAnimationFrame(
|
|
4125
|
+
return u.current = requestAnimationFrame(x), () => {
|
|
4126
|
+
cancelAnimationFrame(u.current), g.current = 0;
|
|
4081
4127
|
};
|
|
4082
4128
|
}, [r, n]);
|
|
4083
|
-
const m =
|
|
4129
|
+
const m = pt[a] ?? pt.online;
|
|
4084
4130
|
return /* @__PURE__ */ d(
|
|
4085
4131
|
"div",
|
|
4086
4132
|
{
|
|
4087
4133
|
style: {
|
|
4088
4134
|
width: K * i,
|
|
4089
|
-
height:
|
|
4135
|
+
height: V * i,
|
|
4090
4136
|
position: "relative",
|
|
4091
4137
|
display: "flex",
|
|
4092
4138
|
alignItems: "center",
|
|
@@ -4147,7 +4193,7 @@ function Zt({
|
|
|
4147
4193
|
style: {
|
|
4148
4194
|
position: "absolute",
|
|
4149
4195
|
width: K * 1.3 * i,
|
|
4150
|
-
height:
|
|
4196
|
+
height: V * 2 * i,
|
|
4151
4197
|
background: `radial-gradient(ellipse, ${m.glow} 0%, transparent 65%)`,
|
|
4152
4198
|
filter: `blur(${Math.round(40 * i)}px)`,
|
|
4153
4199
|
pointerEvents: "none",
|
|
@@ -4171,15 +4217,15 @@ function Zt({
|
|
|
4171
4217
|
{
|
|
4172
4218
|
style: {
|
|
4173
4219
|
width: K,
|
|
4174
|
-
height:
|
|
4220
|
+
height: V,
|
|
4175
4221
|
position: "relative",
|
|
4176
4222
|
transformStyle: "preserve-3d",
|
|
4177
4223
|
transform: `rotateX(${t}deg) rotateY(${h}deg) rotateZ(${o}deg)`,
|
|
4178
4224
|
transition: r ? "none" : "transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94)"
|
|
4179
4225
|
},
|
|
4180
4226
|
children: [
|
|
4181
|
-
/* @__PURE__ */ e("div", { style:
|
|
4182
|
-
|
|
4227
|
+
/* @__PURE__ */ e("div", { style: he.front, children: /* @__PURE__ */ e(
|
|
4228
|
+
Zt,
|
|
4183
4229
|
{
|
|
4184
4230
|
cfg: m,
|
|
4185
4231
|
name: s,
|
|
@@ -4189,11 +4235,11 @@ function Zt({
|
|
|
4189
4235
|
compact: p
|
|
4190
4236
|
}
|
|
4191
4237
|
) }),
|
|
4192
|
-
/* @__PURE__ */ e("div", { style:
|
|
4193
|
-
/* @__PURE__ */ e("div", { style:
|
|
4194
|
-
/* @__PURE__ */ e("div", { style:
|
|
4195
|
-
/* @__PURE__ */ e("div", { style:
|
|
4196
|
-
/* @__PURE__ */ e("div", { style:
|
|
4238
|
+
/* @__PURE__ */ e("div", { style: he.back, children: /* @__PURE__ */ e(Jt, {}) }),
|
|
4239
|
+
/* @__PURE__ */ e("div", { style: he.left, children: /* @__PURE__ */ e(ft, { side: "left", color: m.color }) }),
|
|
4240
|
+
/* @__PURE__ */ e("div", { style: he.right, children: /* @__PURE__ */ e(ft, { side: "right", color: m.color }) }),
|
|
4241
|
+
/* @__PURE__ */ e("div", { style: he.top, children: /* @__PURE__ */ e(ei, { queueDepth: l, color: m.color }) }),
|
|
4242
|
+
/* @__PURE__ */ e("div", { style: he.bottom, children: /* @__PURE__ */ e("div", { style: { width: K, height: ge, background: "#020508" } }) })
|
|
4197
4243
|
]
|
|
4198
4244
|
}
|
|
4199
4245
|
)
|
|
@@ -4203,7 +4249,7 @@ function Zt({
|
|
|
4203
4249
|
}
|
|
4204
4250
|
);
|
|
4205
4251
|
}
|
|
4206
|
-
function
|
|
4252
|
+
function gt({ status: t = "online", scale: n = 1 }) {
|
|
4207
4253
|
const i = (w[t] ?? w.online).color;
|
|
4208
4254
|
return /* @__PURE__ */ e(
|
|
4209
4255
|
"div",
|
|
@@ -4321,7 +4367,7 @@ function P(t, n, o = 24) {
|
|
|
4321
4367
|
return Math.min(100, Math.max(0, t + Math.sin(a * Math.PI * 2) * n + (Math.random() - 0.5) * 10));
|
|
4322
4368
|
});
|
|
4323
4369
|
}
|
|
4324
|
-
function
|
|
4370
|
+
function ti({ data: t, color: n, height: o = 28 }) {
|
|
4325
4371
|
const r = o, a = Math.max(...t, 1), s = t.map((l, f) => {
|
|
4326
4372
|
const c = f / (t.length - 1) * 120, p = r - l / a * (r - 4) - 2;
|
|
4327
4373
|
return `${c},${p}`;
|
|
@@ -4339,7 +4385,7 @@ function Jt({ data: t, color: n, height: o = 28 }) {
|
|
|
4339
4385
|
}
|
|
4340
4386
|
) });
|
|
4341
4387
|
}
|
|
4342
|
-
function
|
|
4388
|
+
function ii({
|
|
4343
4389
|
type: t,
|
|
4344
4390
|
name: n,
|
|
4345
4391
|
context: o = {},
|
|
@@ -4347,7 +4393,7 @@ function ei({
|
|
|
4347
4393
|
animPhase: r,
|
|
4348
4394
|
series: a
|
|
4349
4395
|
}) {
|
|
4350
|
-
const s = i === "critical" || i === "offline" ? "#ff2255" : i === "warning" ? "#ff8c00" : "#00e5ff", l = a ? a.map((p) => ({ ...p })) :
|
|
4396
|
+
const s = i === "critical" || i === "offline" ? "#ff2255" : i === "warning" ? "#ff8c00" : "#00e5ff", l = a ? a.map((p) => ({ ...p })) : ni(t, o), f = r >= 0.3 ? 0 : -280, c = r >= 0.2 ? 1 : 0;
|
|
4351
4397
|
return /* @__PURE__ */ d(
|
|
4352
4398
|
"div",
|
|
4353
4399
|
{
|
|
@@ -4402,7 +4448,7 @@ function ei({
|
|
|
4402
4448
|
p.unit
|
|
4403
4449
|
] })
|
|
4404
4450
|
] }),
|
|
4405
|
-
/* @__PURE__ */ e(
|
|
4451
|
+
/* @__PURE__ */ e(ti, { data: p.data, color: p.color, height: 26 })
|
|
4406
4452
|
]
|
|
4407
4453
|
},
|
|
4408
4454
|
p.id
|
|
@@ -4411,7 +4457,7 @@ function ei({
|
|
|
4411
4457
|
}
|
|
4412
4458
|
);
|
|
4413
4459
|
}
|
|
4414
|
-
function
|
|
4460
|
+
function ni(t, n) {
|
|
4415
4461
|
if (t === "server") {
|
|
4416
4462
|
const o = n.cpuLoad ?? 50, i = n.memLoad ?? 60;
|
|
4417
4463
|
return [
|
|
@@ -4447,7 +4493,7 @@ function ti(t, n) {
|
|
|
4447
4493
|
}
|
|
4448
4494
|
return [];
|
|
4449
4495
|
}
|
|
4450
|
-
function
|
|
4496
|
+
function yt({
|
|
4451
4497
|
w: t,
|
|
4452
4498
|
h: n,
|
|
4453
4499
|
color: o,
|
|
@@ -4540,7 +4586,7 @@ function ht({
|
|
|
4540
4586
|
}
|
|
4541
4587
|
);
|
|
4542
4588
|
}
|
|
4543
|
-
function
|
|
4589
|
+
function We({
|
|
4544
4590
|
color: t = "#00e5ff",
|
|
4545
4591
|
label: n = "CPU-0",
|
|
4546
4592
|
status: o = "online",
|
|
@@ -4651,7 +4697,7 @@ function De({
|
|
|
4651
4697
|
)
|
|
4652
4698
|
] });
|
|
4653
4699
|
}
|
|
4654
|
-
function
|
|
4700
|
+
function ze({
|
|
4655
4701
|
color: t = "#00e5ff",
|
|
4656
4702
|
label: n = "HEAP-0",
|
|
4657
4703
|
status: o = "online",
|
|
@@ -4754,7 +4800,7 @@ function ye({
|
|
|
4754
4800
|
status: o = "online",
|
|
4755
4801
|
activity: i = !1
|
|
4756
4802
|
}) {
|
|
4757
|
-
return /* @__PURE__ */ d(
|
|
4803
|
+
return /* @__PURE__ */ d(yt, { w: 56, h: 22, color: t, label: n, status: o, children: [
|
|
4758
4804
|
/* @__PURE__ */ e(
|
|
4759
4805
|
"div",
|
|
4760
4806
|
{
|
|
@@ -4787,7 +4833,7 @@ function ye({
|
|
|
4787
4833
|
)
|
|
4788
4834
|
] });
|
|
4789
4835
|
}
|
|
4790
|
-
function
|
|
4836
|
+
function mt({
|
|
4791
4837
|
color: t = "#00e5ff",
|
|
4792
4838
|
label: n = "NET",
|
|
4793
4839
|
status: o = "online"
|
|
@@ -4851,14 +4897,14 @@ function ut({
|
|
|
4851
4897
|
}
|
|
4852
4898
|
);
|
|
4853
4899
|
}
|
|
4854
|
-
function
|
|
4900
|
+
function D({
|
|
4855
4901
|
color: t = "#00e5ff",
|
|
4856
4902
|
label: n = "THREAD",
|
|
4857
4903
|
status: o = "online"
|
|
4858
4904
|
}) {
|
|
4859
|
-
return /* @__PURE__ */ e(
|
|
4905
|
+
return /* @__PURE__ */ e(yt, { w: 44, h: 28, color: t, label: n, status: o });
|
|
4860
4906
|
}
|
|
4861
|
-
function
|
|
4907
|
+
function Oe({
|
|
4862
4908
|
color: t = "#ff8c00",
|
|
4863
4909
|
label: n = "PLATTER-0",
|
|
4864
4910
|
status: o = "online",
|
|
@@ -4942,7 +4988,7 @@ function Ie({
|
|
|
4942
4988
|
)
|
|
4943
4989
|
] });
|
|
4944
4990
|
}
|
|
4945
|
-
function
|
|
4991
|
+
function B({
|
|
4946
4992
|
color: t = "#00e5ff",
|
|
4947
4993
|
label: n = "PORT-1",
|
|
4948
4994
|
status: o = "online"
|
|
@@ -5012,7 +5058,7 @@ function N({
|
|
|
5012
5058
|
}
|
|
5013
5059
|
);
|
|
5014
5060
|
}
|
|
5015
|
-
function
|
|
5061
|
+
function oi(t, n, o, i) {
|
|
5016
5062
|
const r = o === "online" ? "online" : o;
|
|
5017
5063
|
return t === "server" ? [
|
|
5018
5064
|
{
|
|
@@ -5116,8 +5162,8 @@ function ii(t, n, o, i) {
|
|
|
5116
5162
|
}
|
|
5117
5163
|
] : [];
|
|
5118
5164
|
}
|
|
5119
|
-
const
|
|
5120
|
-
function
|
|
5165
|
+
const A = "cubic-bezier(0.34, 1.56, 0.64, 1)", ri = "cubic-bezier(0.16, 1, 0.3, 1)";
|
|
5166
|
+
function ai({ items: t, revealPhase: n }) {
|
|
5121
5167
|
return /* @__PURE__ */ e(
|
|
5122
5168
|
"div",
|
|
5123
5169
|
{
|
|
@@ -5135,7 +5181,7 @@ function oi({ items: t, revealPhase: n }) {
|
|
|
5135
5181
|
style: {
|
|
5136
5182
|
opacity: n >= 0.2 + i * 0.06 ? 1 : 0,
|
|
5137
5183
|
transform: `scale(${n >= 0.2 + i * 0.06 ? 1 : 0.6})`,
|
|
5138
|
-
transition: `opacity 0.4s ${
|
|
5184
|
+
transition: `opacity 0.4s ${A} ${i * 0.06}s, transform 0.45s ${A} ${i * 0.06}s`
|
|
5139
5185
|
},
|
|
5140
5186
|
children: o.element
|
|
5141
5187
|
},
|
|
@@ -5144,7 +5190,7 @@ function oi({ items: t, revealPhase: n }) {
|
|
|
5144
5190
|
}
|
|
5145
5191
|
);
|
|
5146
5192
|
}
|
|
5147
|
-
function
|
|
5193
|
+
function li({
|
|
5148
5194
|
type: t,
|
|
5149
5195
|
status: n,
|
|
5150
5196
|
context: o,
|
|
@@ -5158,7 +5204,7 @@ function ri({
|
|
|
5158
5204
|
key: "cpu0",
|
|
5159
5205
|
delay: 0,
|
|
5160
5206
|
el: /* @__PURE__ */ e(
|
|
5161
|
-
|
|
5207
|
+
We,
|
|
5162
5208
|
{
|
|
5163
5209
|
color: a,
|
|
5164
5210
|
label: "CPU-0",
|
|
@@ -5172,7 +5218,7 @@ function ri({
|
|
|
5172
5218
|
key: "cpu1",
|
|
5173
5219
|
delay: 1,
|
|
5174
5220
|
el: /* @__PURE__ */ e(
|
|
5175
|
-
|
|
5221
|
+
We,
|
|
5176
5222
|
{
|
|
5177
5223
|
color: a,
|
|
5178
5224
|
label: "CPU-1",
|
|
@@ -5186,7 +5232,7 @@ function ri({
|
|
|
5186
5232
|
key: "heap0",
|
|
5187
5233
|
delay: 2,
|
|
5188
5234
|
el: /* @__PURE__ */ e(
|
|
5189
|
-
|
|
5235
|
+
ze,
|
|
5190
5236
|
{
|
|
5191
5237
|
color: "#8855ee",
|
|
5192
5238
|
label: "HEAP-0",
|
|
@@ -5200,7 +5246,7 @@ function ri({
|
|
|
5200
5246
|
key: "heap1",
|
|
5201
5247
|
delay: 3,
|
|
5202
5248
|
el: /* @__PURE__ */ e(
|
|
5203
|
-
|
|
5249
|
+
ze,
|
|
5204
5250
|
{
|
|
5205
5251
|
color: "#8855ee",
|
|
5206
5252
|
label: "HEAP-1",
|
|
@@ -5244,12 +5290,12 @@ function ri({
|
|
|
5244
5290
|
{
|
|
5245
5291
|
key: "thread",
|
|
5246
5292
|
delay: 7,
|
|
5247
|
-
el: /* @__PURE__ */ e(
|
|
5293
|
+
el: /* @__PURE__ */ e(D, { color: a, label: "THREAD-POOL", status: i[7]?.status })
|
|
5248
5294
|
},
|
|
5249
5295
|
{
|
|
5250
5296
|
key: "net",
|
|
5251
5297
|
delay: 8,
|
|
5252
|
-
el: /* @__PURE__ */ e(
|
|
5298
|
+
el: /* @__PURE__ */ e(mt, { color: a, label: "NET", status: i[8]?.status })
|
|
5253
5299
|
}
|
|
5254
5300
|
];
|
|
5255
5301
|
return /* @__PURE__ */ e(
|
|
@@ -5269,7 +5315,7 @@ function ri({
|
|
|
5269
5315
|
style: {
|
|
5270
5316
|
opacity: r >= 0.2 + h * 0.08 ? 1 : 0,
|
|
5271
5317
|
transform: `scale(${r >= 0.2 + h * 0.08 ? 1 : 0.6})`,
|
|
5272
|
-
transition: `opacity 0.4s ${
|
|
5318
|
+
transition: `opacity 0.4s ${A} ${h * 0.06}s, transform 0.45s ${A} ${h * 0.06}s`
|
|
5273
5319
|
},
|
|
5274
5320
|
children: y
|
|
5275
5321
|
},
|
|
@@ -5287,9 +5333,9 @@ function ri({
|
|
|
5287
5333
|
style: {
|
|
5288
5334
|
opacity: r >= 0.25 + c * 0.04 ? 1 : 0,
|
|
5289
5335
|
transform: `scale(${r >= 0.25 + c * 0.04 ? 1 : 0.5})`,
|
|
5290
|
-
transition: `opacity 0.35s ${
|
|
5336
|
+
transition: `opacity 0.35s ${A} ${c * 0.04}s, transform 0.4s ${A} ${c * 0.04}s`
|
|
5291
5337
|
},
|
|
5292
|
-
children: /* @__PURE__ */ e(
|
|
5338
|
+
children: /* @__PURE__ */ e(B, { color: a, label: `PORT-${c + 1}`, status: p?.status })
|
|
5293
5339
|
},
|
|
5294
5340
|
`p${c}`
|
|
5295
5341
|
);
|
|
@@ -5313,9 +5359,9 @@ function ri({
|
|
|
5313
5359
|
style: {
|
|
5314
5360
|
opacity: r >= 0.7 ? 1 : 0,
|
|
5315
5361
|
transform: `scale(${r >= 0.7 ? 1 : 0.6})`,
|
|
5316
|
-
transition: `all 0.4s ${
|
|
5362
|
+
transition: `all 0.4s ${A} 0.3s`
|
|
5317
5363
|
},
|
|
5318
|
-
children: /* @__PURE__ */ e(
|
|
5364
|
+
children: /* @__PURE__ */ e(D, { color: a, label: "HTTP-WORKER", status: i[8]?.status })
|
|
5319
5365
|
}
|
|
5320
5366
|
),
|
|
5321
5367
|
/* @__PURE__ */ e(
|
|
@@ -5324,9 +5370,9 @@ function ri({
|
|
|
5324
5370
|
style: {
|
|
5325
5371
|
opacity: r >= 0.8 ? 1 : 0,
|
|
5326
5372
|
transform: `scale(${r >= 0.8 ? 1 : 0.6})`,
|
|
5327
|
-
transition: `all 0.4s ${
|
|
5373
|
+
transition: `all 0.4s ${A} 0.4s`
|
|
5328
5374
|
},
|
|
5329
|
-
children: /* @__PURE__ */ e(
|
|
5375
|
+
children: /* @__PURE__ */ e(D, { color: "#bb55ff", label: "HTTPS-WORKER", status: i[9]?.status })
|
|
5330
5376
|
}
|
|
5331
5377
|
)
|
|
5332
5378
|
] })
|
|
@@ -5353,9 +5399,9 @@ function ri({
|
|
|
5353
5399
|
style: {
|
|
5354
5400
|
opacity: r >= 0.25 + l * 0.1 ? 1 : 0,
|
|
5355
5401
|
transform: `scale(${r >= 0.25 + l * 0.1 ? 1 : 0.6})`,
|
|
5356
|
-
transition: `all 0.4s ${
|
|
5402
|
+
transition: `all 0.4s ${A} ${l * 0.08}s`
|
|
5357
5403
|
},
|
|
5358
|
-
children: /* @__PURE__ */ e(
|
|
5404
|
+
children: /* @__PURE__ */ e(B, { color: "#bb55ff", label: `INST-${l}`, status: i[l]?.status })
|
|
5359
5405
|
},
|
|
5360
5406
|
l
|
|
5361
5407
|
)),
|
|
@@ -5365,9 +5411,9 @@ function ri({
|
|
|
5365
5411
|
style: {
|
|
5366
5412
|
opacity: r >= 0.6 ? 1 : 0,
|
|
5367
5413
|
transform: `scale(${r >= 0.6 ? 1 : 0.6})`,
|
|
5368
|
-
transition: `all 0.4s ${
|
|
5414
|
+
transition: `all 0.4s ${A} 0.25s`
|
|
5369
5415
|
},
|
|
5370
|
-
children: /* @__PURE__ */ e(
|
|
5416
|
+
children: /* @__PURE__ */ e(D, { color: "#bb55ff", label: "QUEUE-0", status: i[3]?.status })
|
|
5371
5417
|
}
|
|
5372
5418
|
),
|
|
5373
5419
|
[4, 5, 6].map((l) => /* @__PURE__ */ e(
|
|
@@ -5376,10 +5422,10 @@ function ri({
|
|
|
5376
5422
|
style: {
|
|
5377
5423
|
opacity: r >= 0.7 + (l - 4) * 0.08 ? 1 : 0,
|
|
5378
5424
|
transform: `scale(${r >= 0.7 ? 1 : 0.6})`,
|
|
5379
|
-
transition: `all 0.4s ${
|
|
5425
|
+
transition: `all 0.4s ${A} ${0.35 + (l - 4) * 0.05}s`
|
|
5380
5426
|
},
|
|
5381
5427
|
children: /* @__PURE__ */ e(
|
|
5382
|
-
|
|
5428
|
+
D,
|
|
5383
5429
|
{
|
|
5384
5430
|
color: "#bb55ff",
|
|
5385
5431
|
label: `WORKER-${l - 3}`,
|
|
@@ -5412,10 +5458,10 @@ function ri({
|
|
|
5412
5458
|
style: {
|
|
5413
5459
|
opacity: r >= 0.2 + f * 0.12 ? 1 : 0,
|
|
5414
5460
|
transform: `scale(${r >= 0.2 + f * 0.12 ? 1 : 0.5})`,
|
|
5415
|
-
transition: `all 0.45s ${
|
|
5461
|
+
transition: `all 0.45s ${A} ${f * 0.1}s`
|
|
5416
5462
|
},
|
|
5417
5463
|
children: /* @__PURE__ */ e(
|
|
5418
|
-
|
|
5464
|
+
Oe,
|
|
5419
5465
|
{
|
|
5420
5466
|
color: s,
|
|
5421
5467
|
label: `PLATTER-${f}`,
|
|
@@ -5432,9 +5478,9 @@ function ri({
|
|
|
5432
5478
|
style: {
|
|
5433
5479
|
opacity: r >= 0.6 ? 1 : 0,
|
|
5434
5480
|
transform: `scale(${r >= 0.6 ? 1 : 0.6})`,
|
|
5435
|
-
transition: `all 0.4s ${
|
|
5481
|
+
transition: `all 0.4s ${A} 0.3s`
|
|
5436
5482
|
},
|
|
5437
|
-
children: /* @__PURE__ */ e(
|
|
5483
|
+
children: /* @__PURE__ */ e(D, { color: s, label: "CONN-POOL", status: i[3]?.status })
|
|
5438
5484
|
}
|
|
5439
5485
|
),
|
|
5440
5486
|
/* @__PURE__ */ e(
|
|
@@ -5443,9 +5489,9 @@ function ri({
|
|
|
5443
5489
|
style: {
|
|
5444
5490
|
opacity: r >= 0.75 ? 1 : 0,
|
|
5445
5491
|
transform: `scale(${r >= 0.75 ? 1 : 0.6})`,
|
|
5446
|
-
transition: `all 0.4s ${
|
|
5492
|
+
transition: `all 0.4s ${A} 0.4s`
|
|
5447
5493
|
},
|
|
5448
|
-
children: /* @__PURE__ */ e(
|
|
5494
|
+
children: /* @__PURE__ */ e(D, { color: "#00ff88", label: "QUERY-CACHE", status: i[4]?.status })
|
|
5449
5495
|
}
|
|
5450
5496
|
)
|
|
5451
5497
|
]
|
|
@@ -5454,7 +5500,7 @@ function ri({
|
|
|
5454
5500
|
}
|
|
5455
5501
|
return null;
|
|
5456
5502
|
}
|
|
5457
|
-
function
|
|
5503
|
+
function Ei({
|
|
5458
5504
|
type: t,
|
|
5459
5505
|
name: n,
|
|
5460
5506
|
status: o,
|
|
@@ -5464,7 +5510,7 @@ function wi({
|
|
|
5464
5510
|
subComponents: s,
|
|
5465
5511
|
graphSeries: l
|
|
5466
5512
|
}) {
|
|
5467
|
-
const f =
|
|
5513
|
+
const f = oi(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%", u = r >= 0.25 ? Math.min(1, (r - 0.25) * 1.5) : 0;
|
|
5468
5514
|
return /* @__PURE__ */ d(
|
|
5469
5515
|
"div",
|
|
5470
5516
|
{
|
|
@@ -5488,13 +5534,13 @@ function wi({
|
|
|
5488
5534
|
backdropFilter: "blur(10px)",
|
|
5489
5535
|
WebkitBackdropFilter: "blur(10px)",
|
|
5490
5536
|
opacity: p,
|
|
5491
|
-
transition: `opacity 0.4s ${
|
|
5537
|
+
transition: `opacity 0.4s ${ri}`
|
|
5492
5538
|
},
|
|
5493
5539
|
onClick: i
|
|
5494
5540
|
}
|
|
5495
5541
|
),
|
|
5496
5542
|
/* @__PURE__ */ e(
|
|
5497
|
-
|
|
5543
|
+
ii,
|
|
5498
5544
|
{
|
|
5499
5545
|
type: t,
|
|
5500
5546
|
name: n,
|
|
@@ -5538,7 +5584,7 @@ function wi({
|
|
|
5538
5584
|
borderRight: `2px solid ${c}44`,
|
|
5539
5585
|
boxShadow: "4px 0 32px rgba(0,0,0,0.6)",
|
|
5540
5586
|
transform: `translateX(${h})`,
|
|
5541
|
-
transition: `transform 0.7s ${
|
|
5587
|
+
transition: `transform 0.7s ${A}`
|
|
5542
5588
|
}
|
|
5543
5589
|
}
|
|
5544
5590
|
),
|
|
@@ -5553,7 +5599,7 @@ function wi({
|
|
|
5553
5599
|
borderLeft: `2px solid ${c}44`,
|
|
5554
5600
|
boxShadow: "-4px 0 32px rgba(0,0,0,0.6)",
|
|
5555
5601
|
transform: `translateX(${y})`,
|
|
5556
|
-
transition: `transform 0.7s ${
|
|
5602
|
+
transition: `transform 0.7s ${A}`
|
|
5557
5603
|
}
|
|
5558
5604
|
}
|
|
5559
5605
|
)
|
|
@@ -5575,8 +5621,8 @@ function wi({
|
|
|
5575
5621
|
boxShadow: `0 0 40px ${c}18, inset 0 0 60px rgba(0,0,0,0.4)`,
|
|
5576
5622
|
display: "flex",
|
|
5577
5623
|
flexDirection: "column",
|
|
5578
|
-
opacity:
|
|
5579
|
-
transition: `opacity 0.5s ${
|
|
5624
|
+
opacity: u >= 0.1 ? 1 : 0,
|
|
5625
|
+
transition: `opacity 0.5s ${A} 0.2s`
|
|
5580
5626
|
},
|
|
5581
5627
|
children: [
|
|
5582
5628
|
/* @__PURE__ */ d(
|
|
@@ -5664,15 +5710,15 @@ function wi({
|
|
|
5664
5710
|
}
|
|
5665
5711
|
}
|
|
5666
5712
|
),
|
|
5667
|
-
/* @__PURE__ */ e("div", { style: { flex: 1, padding: "8px 0 24px" }, children: s ? /* @__PURE__ */ e(
|
|
5668
|
-
|
|
5713
|
+
/* @__PURE__ */ e("div", { style: { flex: 1, padding: "8px 0 24px" }, children: s ? /* @__PURE__ */ e(ai, { items: s, revealPhase: u }) : /* @__PURE__ */ e(
|
|
5714
|
+
li,
|
|
5669
5715
|
{
|
|
5670
5716
|
type: t,
|
|
5671
5717
|
name: n,
|
|
5672
5718
|
status: o,
|
|
5673
5719
|
context: a,
|
|
5674
5720
|
internal: f,
|
|
5675
|
-
revealPhase:
|
|
5721
|
+
revealPhase: u
|
|
5676
5722
|
}
|
|
5677
5723
|
) })
|
|
5678
5724
|
]
|
|
@@ -5685,7 +5731,102 @@ function wi({
|
|
|
5685
5731
|
}
|
|
5686
5732
|
);
|
|
5687
5733
|
}
|
|
5688
|
-
|
|
5734
|
+
const De = 330, _e = 350, si = 30;
|
|
5735
|
+
function di(t) {
|
|
5736
|
+
if (t === 1) return [{ ex: De, compactX: 0 }];
|
|
5737
|
+
const n = Math.min(260, 520 / t), o = n * (t - 1), i = De - o / 2;
|
|
5738
|
+
return Array.from({ length: t }, (r, a) => {
|
|
5739
|
+
const s = i + a * n, l = (s - De) / o * si * 2;
|
|
5740
|
+
return { ex: s, compactX: l };
|
|
5741
|
+
});
|
|
5742
|
+
}
|
|
5743
|
+
function ci(t, n) {
|
|
5744
|
+
switch (t.type) {
|
|
5745
|
+
case "server":
|
|
5746
|
+
return /* @__PURE__ */ e(
|
|
5747
|
+
J,
|
|
5748
|
+
{
|
|
5749
|
+
status: n,
|
|
5750
|
+
cpuLoad: t.context?.cpuLoad,
|
|
5751
|
+
memLoad: t.context?.memLoad,
|
|
5752
|
+
brandLabel: t.brandLabel
|
|
5753
|
+
}
|
|
5754
|
+
);
|
|
5755
|
+
case "database":
|
|
5756
|
+
return /* @__PURE__ */ e(Ee, { status: n, capacity: t.context?.capacity });
|
|
5757
|
+
case "dispatcher":
|
|
5758
|
+
return /* @__PURE__ */ e(nt, { status: n, traffic: t.context?.traffic });
|
|
5759
|
+
case "messageServer":
|
|
5760
|
+
return /* @__PURE__ */ e(bt, { status: n, queueDepth: t.context?.queueDepth });
|
|
5761
|
+
default:
|
|
5762
|
+
return /* @__PURE__ */ e(J, { status: n, brandLabel: t.brandLabel });
|
|
5763
|
+
}
|
|
5764
|
+
}
|
|
5765
|
+
const pi = {
|
|
5766
|
+
server: "APP SERVER",
|
|
5767
|
+
database: "DATABASE",
|
|
5768
|
+
dispatcher: "WEB DISPATCHER",
|
|
5769
|
+
messageServer: "MSG SERVER"
|
|
5770
|
+
};
|
|
5771
|
+
function fi(t, n) {
|
|
5772
|
+
return t < n / 2 ? { offsetX: -160, align: "left" } : { offsetX: 160, align: "right" };
|
|
5773
|
+
}
|
|
5774
|
+
function Ai({ name: t, status: n = "online", components: o }) {
|
|
5775
|
+
const i = Xe(() => di(o.length), [o.length]), r = Xe(
|
|
5776
|
+
() => i.map(({ ex: a }) => ({
|
|
5777
|
+
from: [De, 200],
|
|
5778
|
+
to: [a, _e],
|
|
5779
|
+
visibleAtPhase: 3
|
|
5780
|
+
})),
|
|
5781
|
+
[i]
|
|
5782
|
+
);
|
|
5783
|
+
return /* @__PURE__ */ d(tt, { name: t, status: n, connections: r, children: [
|
|
5784
|
+
o.map((a, s) => {
|
|
5785
|
+
const { ex: l, compactX: f } = i[s], c = a.status ?? "online";
|
|
5786
|
+
return /* @__PURE__ */ e(
|
|
5787
|
+
C,
|
|
5788
|
+
{
|
|
5789
|
+
ex: l,
|
|
5790
|
+
ey: _e,
|
|
5791
|
+
compactOffset: { x: f, y: -20 },
|
|
5792
|
+
zIndex: 8 - s,
|
|
5793
|
+
label: a.name,
|
|
5794
|
+
subLabel: a.subLabel ?? pi[a.type] ?? a.type.toUpperCase(),
|
|
5795
|
+
componentInfo: {
|
|
5796
|
+
type: a.type,
|
|
5797
|
+
name: a.name,
|
|
5798
|
+
status: c,
|
|
5799
|
+
context: a.context,
|
|
5800
|
+
dialogMetrics: a.dialogMetrics
|
|
5801
|
+
},
|
|
5802
|
+
children: ci(a, c)
|
|
5803
|
+
},
|
|
5804
|
+
a.name
|
|
5805
|
+
);
|
|
5806
|
+
}),
|
|
5807
|
+
o.map((a, s) => {
|
|
5808
|
+
if (!a.alert) return null;
|
|
5809
|
+
const { ex: l } = i[s], f = a.status ?? "online", { offsetX: c, align: p } = fi(s, o.length);
|
|
5810
|
+
return /* @__PURE__ */ e(
|
|
5811
|
+
O,
|
|
5812
|
+
{
|
|
5813
|
+
ex: l,
|
|
5814
|
+
ey: _e,
|
|
5815
|
+
status: f,
|
|
5816
|
+
title: a.name,
|
|
5817
|
+
msg: a.alert.msg,
|
|
5818
|
+
internalRef: a.alert.internalRef,
|
|
5819
|
+
offsetX: c,
|
|
5820
|
+
offsetY: -60,
|
|
5821
|
+
align: p,
|
|
5822
|
+
isVisible: !0
|
|
5823
|
+
},
|
|
5824
|
+
`alert-${a.name}`
|
|
5825
|
+
);
|
|
5826
|
+
})
|
|
5827
|
+
] });
|
|
5828
|
+
}
|
|
5829
|
+
function Ti({
|
|
5689
5830
|
brandName: t = "BUSAUD AIOps",
|
|
5690
5831
|
brandTag: n = "3D MONITOR",
|
|
5691
5832
|
services: o = [],
|
|
@@ -5695,28 +5836,28 @@ function Si({
|
|
|
5695
5836
|
fontFamily: s,
|
|
5696
5837
|
children: l
|
|
5697
5838
|
}) {
|
|
5698
|
-
const [f] =
|
|
5699
|
-
|
|
5839
|
+
const [f] = I(20), [c] = I(!1), [p] = I(!0), [h] = I(0.45), [y] = I(3.3), [u, g] = I("compact"), [m, x] = I(0), [v, $] = I(null), [b, k] = I(null), [T, R] = I(0), L = (E) => {
|
|
5840
|
+
u === "compact" && ($(E), 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(() => {
|
|
5700
5841
|
x(6), g("expanded");
|
|
5701
5842
|
}, 2400));
|
|
5702
|
-
},
|
|
5703
|
-
|
|
5704
|
-
g((
|
|
5843
|
+
}, z = () => {
|
|
5844
|
+
b ? (k(null), R(0)) : u === "expanded" && (g("collapsing"), x(0), $(null), setTimeout(() => {
|
|
5845
|
+
g((E) => E === "collapsing" ? "compact" : E);
|
|
5705
5846
|
}, 1e3));
|
|
5706
|
-
},
|
|
5707
|
-
|
|
5847
|
+
}, F = (E) => {
|
|
5848
|
+
k(E), R(0);
|
|
5708
5849
|
};
|
|
5709
|
-
|
|
5710
|
-
if (!
|
|
5711
|
-
const
|
|
5712
|
-
const
|
|
5713
|
-
|
|
5714
|
-
},
|
|
5715
|
-
return () => cancelAnimationFrame(
|
|
5716
|
-
}, [
|
|
5717
|
-
const
|
|
5718
|
-
|
|
5719
|
-
},
|
|
5850
|
+
ee.useEffect(() => {
|
|
5851
|
+
if (!b) return;
|
|
5852
|
+
const E = performance.now(), ke = 1200, re = () => {
|
|
5853
|
+
const Be = performance.now() - E, Te = Math.min(1, Be / ke);
|
|
5854
|
+
R(Te), Te < 1 && requestAnimationFrame(re);
|
|
5855
|
+
}, se = requestAnimationFrame(re);
|
|
5856
|
+
return () => cancelAnimationFrame(se);
|
|
5857
|
+
}, [b]);
|
|
5858
|
+
const j = () => {
|
|
5859
|
+
k(null), R(0);
|
|
5860
|
+
}, M = o.find((E) => E.name === v), ie = M?.status ?? "online", ne = M?.dbSync ?? !0, W = M?.metrics, H = M?.alerts, oe = 330, Se = 340, $e = b ? 1.15 : 1, Q = b ? -(b.ex - oe) * 0.06 : 0, N = b ? -(b.ey - Se) * 0.06 : 0;
|
|
5720
5861
|
return /* @__PURE__ */ d("div", { className: "app", style: s ? { fontFamily: s } : void 0, children: [
|
|
5721
5862
|
/* @__PURE__ */ e(
|
|
5722
5863
|
"div",
|
|
@@ -5731,7 +5872,7 @@ function Si({
|
|
|
5731
5872
|
backgroundPosition: "center center",
|
|
5732
5873
|
backgroundRepeat: "no-repeat",
|
|
5733
5874
|
transition: "transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1)",
|
|
5734
|
-
transform: `translate(${Q}px, ${
|
|
5875
|
+
transform: `translate(${Q}px, ${N}px) scale(${$e})`,
|
|
5735
5876
|
willChange: "transform"
|
|
5736
5877
|
}
|
|
5737
5878
|
}
|
|
@@ -5748,17 +5889,17 @@ function Si({
|
|
|
5748
5889
|
{
|
|
5749
5890
|
className: "scene",
|
|
5750
5891
|
style: {
|
|
5751
|
-
cursor:
|
|
5892
|
+
cursor: u === "expanded" ? "zoom-out" : "default"
|
|
5752
5893
|
},
|
|
5753
|
-
onClick:
|
|
5894
|
+
onClick: z,
|
|
5754
5895
|
children: /* @__PURE__ */ e(
|
|
5755
|
-
|
|
5896
|
+
Nt,
|
|
5756
5897
|
{
|
|
5757
|
-
viewState:
|
|
5898
|
+
viewState: u,
|
|
5758
5899
|
animPhase: m,
|
|
5759
5900
|
selectedSystem: v,
|
|
5760
|
-
selectedComponent:
|
|
5761
|
-
drillAnimPhase:
|
|
5901
|
+
selectedComponent: b,
|
|
5902
|
+
drillAnimPhase: T,
|
|
5762
5903
|
rotateY: f,
|
|
5763
5904
|
autoRotateComponents: c,
|
|
5764
5905
|
componentScale: h,
|
|
@@ -5766,14 +5907,14 @@ function Si({
|
|
|
5766
5907
|
autoRotateCarousel: p,
|
|
5767
5908
|
carouselSpeed: a,
|
|
5768
5909
|
logoUrl: r,
|
|
5769
|
-
onSelectSystem:
|
|
5770
|
-
onBackgroundClick:
|
|
5771
|
-
onComponentClick:
|
|
5772
|
-
onCloseDrill:
|
|
5773
|
-
selectedSystemStatus:
|
|
5774
|
-
selectedSystemDbSync:
|
|
5775
|
-
selectedSystemMetrics:
|
|
5776
|
-
selectedSystemAlerts:
|
|
5910
|
+
onSelectSystem: L,
|
|
5911
|
+
onBackgroundClick: z,
|
|
5912
|
+
onComponentClick: F,
|
|
5913
|
+
onCloseDrill: j,
|
|
5914
|
+
selectedSystemStatus: ie,
|
|
5915
|
+
selectedSystemDbSync: ne,
|
|
5916
|
+
selectedSystemMetrics: W,
|
|
5917
|
+
selectedSystemAlerts: H,
|
|
5777
5918
|
children: l
|
|
5778
5919
|
}
|
|
5779
5920
|
)
|
|
@@ -5787,21 +5928,21 @@ function S(t, n, o = 24) {
|
|
|
5787
5928
|
return Math.min(100, Math.max(0, t + Math.sin(a * Math.PI * 2) * n + (Math.random() - 0.5) * 10));
|
|
5788
5929
|
});
|
|
5789
5930
|
}
|
|
5790
|
-
function
|
|
5931
|
+
function xt(t) {
|
|
5791
5932
|
return t === "critical" || t === "offline" ? "#ff2255" : t === "warning" ? "#ff8c00" : "#00e5ff";
|
|
5792
5933
|
}
|
|
5793
5934
|
function me(t, n, o) {
|
|
5794
|
-
const i = t === "online" ? "online" : t, r =
|
|
5935
|
+
const i = t === "online" ? "online" : t, r = xt(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";
|
|
5795
5936
|
return [
|
|
5796
|
-
{ id: "cpu-0", label: "CPU-0", status: l, detail: i === "critical" ? "Core overload" : i === "warning" ? "Load spike" : void 0, element: /* @__PURE__ */ e(
|
|
5797
|
-
{ id: "cpu-1", label: "CPU-1", status: "online", element: /* @__PURE__ */ e(
|
|
5798
|
-
{ id: "heap-0", label: "HEAP-0", status: f, detail: f === "warning" ? "Memory heap usage" : f === "critical" ? "OOM risk" : void 0, element: /* @__PURE__ */ e(
|
|
5799
|
-
{ id: "heap-1", label: "HEAP-1", status: "online", element: /* @__PURE__ */ e(
|
|
5937
|
+
{ id: "cpu-0", label: "CPU-0", status: l, detail: i === "critical" ? "Core overload" : i === "warning" ? "Load spike" : void 0, element: /* @__PURE__ */ e(We, { color: r, label: "CPU-0", status: l, load: a }) },
|
|
5938
|
+
{ id: "cpu-1", label: "CPU-1", status: "online", element: /* @__PURE__ */ e(We, { color: r, label: "CPU-1", status: "online", load: a * 0.7 }) },
|
|
5939
|
+
{ id: "heap-0", label: "HEAP-0", status: f, detail: f === "warning" ? "Memory heap usage" : f === "critical" ? "OOM risk" : void 0, element: /* @__PURE__ */ e(ze, { color: "#8855ee", label: "HEAP-0", status: f, usedPercent: s }) },
|
|
5940
|
+
{ id: "heap-1", label: "HEAP-1", status: "online", element: /* @__PURE__ */ e(ze, { color: "#8855ee", label: "HEAP-1", status: "online", usedPercent: s * 0.85 }) },
|
|
5800
5941
|
{ id: "drive-1", label: "DRIVE-1", status: "online", element: /* @__PURE__ */ e(ye, { color: r, label: "DRIVE-1", status: "online", activity: !0 }) },
|
|
5801
5942
|
{ id: "drive-2", label: "DRIVE-2", status: "online", element: /* @__PURE__ */ e(ye, { color: r, label: "DRIVE-2", status: "online", activity: a > 30 }) },
|
|
5802
5943
|
{ id: "drive-3", label: "DRIVE-3", status: "online", element: /* @__PURE__ */ e(ye, { color: r, label: "DRIVE-3", status: "online", activity: a > 50 }) },
|
|
5803
|
-
{ id: "thread-pool", label: "THREAD-POOL", status: c, detail: c === "critical" ? "Thread exhaustion" : void 0, element: /* @__PURE__ */ e(
|
|
5804
|
-
{ id: "network", label: "NET", status: p, element: /* @__PURE__ */ e(
|
|
5944
|
+
{ id: "thread-pool", label: "THREAD-POOL", status: c, detail: c === "critical" ? "Thread exhaustion" : void 0, element: /* @__PURE__ */ e(D, { color: r, label: "THREAD-POOL", status: c }) },
|
|
5945
|
+
{ id: "network", label: "NET", status: p, element: /* @__PURE__ */ e(mt, { color: r, label: "NET", status: p }) }
|
|
5805
5946
|
];
|
|
5806
5947
|
}
|
|
5807
5948
|
function xe(t) {
|
|
@@ -5817,22 +5958,22 @@ function xe(t) {
|
|
|
5817
5958
|
{ id: "thread", label: "THREAD-POOL", unit: "%", color: "#22aaff", data: S(55, 20) }
|
|
5818
5959
|
];
|
|
5819
5960
|
}
|
|
5820
|
-
function
|
|
5821
|
-
const i = t === "online" ? "online" : t, r =
|
|
5961
|
+
function vt(t, n, o) {
|
|
5962
|
+
const i = t === "online" ? "online" : t, r = xt(t), a = i === "critical" || i === "offline" ? i : "online", s = i === "warning" ? "warning" : "online", l = i === "critical" ? "critical" : "online";
|
|
5822
5963
|
return [
|
|
5823
|
-
{ id: "port-1", label: "PORT-1", status: "online", element: /* @__PURE__ */ e(
|
|
5824
|
-
{ id: "port-2", label: "PORT-2", status: "online", element: /* @__PURE__ */ e(
|
|
5825
|
-
{ id: "port-3", label: "PORT-3", status: a, detail: i === "critical" ? "Gateway timeout" : i === "offline" ? "Unreachable" : void 0, element: /* @__PURE__ */ e(
|
|
5826
|
-
{ id: "port-4", label: "PORT-4", status: "online", element: /* @__PURE__ */ e(
|
|
5827
|
-
{ id: "port-5", label: "PORT-5", status: s, detail: s === "warning" ? "Latency spike" : void 0, element: /* @__PURE__ */ e(
|
|
5828
|
-
{ id: "port-6", label: "PORT-6", status: "online", element: /* @__PURE__ */ e(
|
|
5829
|
-
{ id: "port-7", label: "PORT-7", status: "online", element: /* @__PURE__ */ e(
|
|
5830
|
-
{ id: "port-8", label: "PORT-8", status: "online", element: /* @__PURE__ */ e(
|
|
5831
|
-
{ id: "http-worker", label: "HTTP-WORKER", status: l, detail: l === "critical" ? "Worker timeout" : void 0, element: /* @__PURE__ */ e(
|
|
5832
|
-
{ id: "https-worker", label: "HTTPS-WORKER", status: "online", element: /* @__PURE__ */ e(
|
|
5964
|
+
{ id: "port-1", label: "PORT-1", status: "online", element: /* @__PURE__ */ e(B, { color: r, label: "PORT-1", status: "online" }) },
|
|
5965
|
+
{ id: "port-2", label: "PORT-2", status: "online", element: /* @__PURE__ */ e(B, { color: r, label: "PORT-2", status: "online" }) },
|
|
5966
|
+
{ id: "port-3", label: "PORT-3", status: a, detail: i === "critical" ? "Gateway timeout" : i === "offline" ? "Unreachable" : void 0, element: /* @__PURE__ */ e(B, { color: r, label: "PORT-3", status: a }) },
|
|
5967
|
+
{ id: "port-4", label: "PORT-4", status: "online", element: /* @__PURE__ */ e(B, { color: r, label: "PORT-4", status: "online" }) },
|
|
5968
|
+
{ id: "port-5", label: "PORT-5", status: s, detail: s === "warning" ? "Latency spike" : void 0, element: /* @__PURE__ */ e(B, { color: r, label: "PORT-5", status: s }) },
|
|
5969
|
+
{ id: "port-6", label: "PORT-6", status: "online", element: /* @__PURE__ */ e(B, { color: r, label: "PORT-6", status: "online" }) },
|
|
5970
|
+
{ id: "port-7", label: "PORT-7", status: "online", element: /* @__PURE__ */ e(B, { color: r, label: "PORT-7", status: "online" }) },
|
|
5971
|
+
{ id: "port-8", label: "PORT-8", status: "online", element: /* @__PURE__ */ e(B, { color: r, label: "PORT-8", status: "online" }) },
|
|
5972
|
+
{ id: "http-worker", label: "HTTP-WORKER", status: l, detail: l === "critical" ? "Worker timeout" : void 0, element: /* @__PURE__ */ e(D, { color: r, label: "HTTP-WORKER", status: l }) },
|
|
5973
|
+
{ id: "https-worker", label: "HTTPS-WORKER", status: "online", element: /* @__PURE__ */ e(D, { color: "#bb55ff", label: "HTTPS-WORKER", status: "online" }) }
|
|
5833
5974
|
];
|
|
5834
5975
|
}
|
|
5835
|
-
function
|
|
5976
|
+
function wt(t) {
|
|
5836
5977
|
const n = t?.traffic ?? 50;
|
|
5837
5978
|
return [
|
|
5838
5979
|
{ id: "traffic", label: "TRAFFIC", unit: "%", color: "#00e5ff", data: S(n, 20) },
|
|
@@ -5842,19 +5983,19 @@ function yt(t) {
|
|
|
5842
5983
|
{ id: "worker", label: "WORKER", unit: "%", color: "#bb55ff", data: S(n * 0.9, 15) }
|
|
5843
5984
|
];
|
|
5844
5985
|
}
|
|
5845
|
-
function
|
|
5986
|
+
function hi(t, n, o) {
|
|
5846
5987
|
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";
|
|
5847
5988
|
return [
|
|
5848
|
-
{ id: "inst-0", label: "INST-0", status: "online", element: /* @__PURE__ */ e(
|
|
5849
|
-
{ id: "inst-1", label: "INST-1", status: "online", element: /* @__PURE__ */ e(
|
|
5850
|
-
{ id: "inst-2", label: "INST-2", status: r, detail: r === "critical" ? "Instance unreachable" : void 0, element: /* @__PURE__ */ e(
|
|
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(
|
|
5852
|
-
{ id: "worker-1", label: "WORKER-1", status: "online", element: /* @__PURE__ */ e(
|
|
5853
|
-
{ id: "worker-2", label: "WORKER-2", status: "online", element: /* @__PURE__ */ e(
|
|
5854
|
-
{ id: "worker-3", label: "WORKER-3", status: s, detail: s === "critical" ? "Worker timeout" : void 0, element: /* @__PURE__ */ e(
|
|
5989
|
+
{ id: "inst-0", label: "INST-0", status: "online", element: /* @__PURE__ */ e(B, { color: "#bb55ff", label: "INST-0", status: "online" }) },
|
|
5990
|
+
{ id: "inst-1", label: "INST-1", status: "online", element: /* @__PURE__ */ e(B, { color: "#bb55ff", label: "INST-1", status: "online" }) },
|
|
5991
|
+
{ id: "inst-2", label: "INST-2", status: r, detail: r === "critical" ? "Instance unreachable" : void 0, element: /* @__PURE__ */ e(B, { color: "#bb55ff", label: "INST-2", status: r }) },
|
|
5992
|
+
{ 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(D, { color: "#bb55ff", label: "QUEUE-0", status: a }) },
|
|
5993
|
+
{ id: "worker-1", label: "WORKER-1", status: "online", element: /* @__PURE__ */ e(D, { color: "#bb55ff", label: "WORKER-1", status: "online" }) },
|
|
5994
|
+
{ id: "worker-2", label: "WORKER-2", status: "online", element: /* @__PURE__ */ e(D, { color: "#bb55ff", label: "WORKER-2", status: "online" }) },
|
|
5995
|
+
{ id: "worker-3", label: "WORKER-3", status: s, detail: s === "critical" ? "Worker timeout" : void 0, element: /* @__PURE__ */ e(D, { color: "#bb55ff", label: "WORKER-3", status: s }) }
|
|
5855
5996
|
];
|
|
5856
5997
|
}
|
|
5857
|
-
function
|
|
5998
|
+
function ui(t) {
|
|
5858
5999
|
const n = t?.queueDepth ?? 50;
|
|
5859
6000
|
return [
|
|
5860
6001
|
{ id: "traffic", label: "TRAFFIC", unit: "%", color: "#00e5ff", data: S(n, 20) },
|
|
@@ -5864,17 +6005,17 @@ function li(t) {
|
|
|
5864
6005
|
{ id: "worker", label: "WORKER", unit: "%", color: "#bb55ff", data: S(n * 0.9, 15) }
|
|
5865
6006
|
];
|
|
5866
6007
|
}
|
|
5867
|
-
function
|
|
6008
|
+
function Me(t, n, o) {
|
|
5868
6009
|
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";
|
|
5869
6010
|
return [
|
|
5870
|
-
{ id: "platter-0", label: "PLATTER-0", status: "online", element: /* @__PURE__ */ e(
|
|
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(
|
|
5872
|
-
{ id: "platter-2", label: "PLATTER-2", status: l, detail: l === "warning" ? "Replication lag" : void 0, element: /* @__PURE__ */ e(
|
|
5873
|
-
{ id: "conn-pool", label: "CONN-POOL", status: f, detail: f === "critical" ? "Pool exhausted" : void 0, element: /* @__PURE__ */ e(
|
|
5874
|
-
{ id: "query-cache", label: "QUERY-CACHE", status: c, detail: c === "warning" ? "Cache miss rate" : void 0, element: /* @__PURE__ */ e(
|
|
6011
|
+
{ id: "platter-0", label: "PLATTER-0", status: "online", element: /* @__PURE__ */ e(Oe, { color: r, label: "PLATTER-0", status: "online", capacityPercent: a }) },
|
|
6012
|
+
{ 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(Oe, { color: r, label: "PLATTER-1", status: s, capacityPercent: a }) },
|
|
6013
|
+
{ id: "platter-2", label: "PLATTER-2", status: l, detail: l === "warning" ? "Replication lag" : void 0, element: /* @__PURE__ */ e(Oe, { color: r, label: "PLATTER-2", status: l, capacityPercent: a }) },
|
|
6014
|
+
{ id: "conn-pool", label: "CONN-POOL", status: f, detail: f === "critical" ? "Pool exhausted" : void 0, element: /* @__PURE__ */ e(D, { color: r, label: "CONN-POOL", status: f }) },
|
|
6015
|
+
{ id: "query-cache", label: "QUERY-CACHE", status: c, detail: c === "warning" ? "Cache miss rate" : void 0, element: /* @__PURE__ */ e(D, { color: "#00ff88", label: "QUERY-CACHE", status: c }) }
|
|
5875
6016
|
];
|
|
5876
6017
|
}
|
|
5877
|
-
function
|
|
6018
|
+
function Ne(t) {
|
|
5878
6019
|
const n = t?.capacity ?? 70;
|
|
5879
6020
|
return [
|
|
5880
6021
|
{ id: "platter0", label: "PLATTER-0 I/O", unit: "%", color: "#ff8c00", data: S(40, 20) },
|
|
@@ -5884,7 +6025,7 @@ function Me(t) {
|
|
|
5884
6025
|
{ id: "cache", label: "QUERY-CACHE", unit: "%", color: "#00ff88", data: S(75, 12) }
|
|
5885
6026
|
];
|
|
5886
6027
|
}
|
|
5887
|
-
function
|
|
6028
|
+
function ot(t) {
|
|
5888
6029
|
const n = [
|
|
5889
6030
|
t.wdStatus,
|
|
5890
6031
|
t.msStatus,
|
|
@@ -5896,8 +6037,8 @@ function Je(t) {
|
|
|
5896
6037
|
];
|
|
5897
6038
|
return n.includes("critical") ? "critical" : n.includes("warning") ? "warning" : n.includes("offline") ? "offline" : "online";
|
|
5898
6039
|
}
|
|
5899
|
-
function
|
|
5900
|
-
const n =
|
|
6040
|
+
function Li(t) {
|
|
6041
|
+
const n = ot(t), o = n === "critical" || n === "offline", i = n === "warning";
|
|
5901
6042
|
return [
|
|
5902
6043
|
{
|
|
5903
6044
|
label: "Uptime",
|
|
@@ -5918,8 +6059,8 @@ function $i(t) {
|
|
|
5918
6059
|
}
|
|
5919
6060
|
];
|
|
5920
6061
|
}
|
|
5921
|
-
function
|
|
5922
|
-
const n =
|
|
6062
|
+
function Ii(t) {
|
|
6063
|
+
const n = ot(t), o = n === "critical" || n === "offline", i = n === "warning";
|
|
5923
6064
|
return [
|
|
5924
6065
|
...t.dbSync ? [] : [{ level: "warning", message: "DB Replication Lag Detected" }],
|
|
5925
6066
|
...o ? [{ level: "critical", message: "Critical Component Failure" }] : [],
|
|
@@ -5927,7 +6068,7 @@ function ki(t) {
|
|
|
5927
6068
|
...!o && !i && t.dbSync ? [{ level: "info", message: "All Systems Nominal" }] : []
|
|
5928
6069
|
];
|
|
5929
6070
|
}
|
|
5930
|
-
const
|
|
6071
|
+
const bi = [
|
|
5931
6072
|
{ from: [330, 120], to: [220, 260], visibleAtPhase: 3 },
|
|
5932
6073
|
{ from: [330, 120], to: [440, 260], visibleAtPhase: 3 },
|
|
5933
6074
|
{ from: [220, 260], to: [165, 390], visibleAtPhase: 4 },
|
|
@@ -5940,11 +6081,11 @@ const si = [
|
|
|
5940
6081
|
{ from: [330, 390], to: [200, 520], visibleAtPhase: 5, color: "#ff8c00" },
|
|
5941
6082
|
{ from: [495, 390], to: [200, 520], visibleAtPhase: 5, color: "#ff8c00" }
|
|
5942
6083
|
];
|
|
5943
|
-
function
|
|
5944
|
-
const n =
|
|
6084
|
+
function gi({ config: t }) {
|
|
6085
|
+
const n = ee.useContext(le), o = n?.rotateY ?? 20, i = n?.autoRotateComponents ?? !0, { wdStatus: r, msStatus: a, srv1Status: s, srv2Status: l, srv3Status: f, pdbStatus: c, sdbStatus: p, dbSync: h } = t;
|
|
5945
6086
|
return /* @__PURE__ */ d(Ce, { children: [
|
|
5946
6087
|
/* @__PURE__ */ e(
|
|
5947
|
-
|
|
6088
|
+
C,
|
|
5948
6089
|
{
|
|
5949
6090
|
ex: 330,
|
|
5950
6091
|
ey: 120,
|
|
@@ -5952,11 +6093,11 @@ function di({ config: t }) {
|
|
|
5952
6093
|
zIndex: 10,
|
|
5953
6094
|
visibleAtPhase: 2,
|
|
5954
6095
|
color: "#00e5ff",
|
|
5955
|
-
children: /* @__PURE__ */ e(
|
|
6096
|
+
children: /* @__PURE__ */ e(gt, { status: "online", scale: 1.5 })
|
|
5956
6097
|
}
|
|
5957
6098
|
),
|
|
5958
6099
|
/* @__PURE__ */ e(
|
|
5959
|
-
|
|
6100
|
+
C,
|
|
5960
6101
|
{
|
|
5961
6102
|
ex: 220,
|
|
5962
6103
|
ey: 260,
|
|
@@ -5971,11 +6112,11 @@ function di({ config: t }) {
|
|
|
5971
6112
|
name: "WEB-DISP",
|
|
5972
6113
|
status: r,
|
|
5973
6114
|
context: { traffic: 78 },
|
|
5974
|
-
subComponents:
|
|
5975
|
-
graphSeries:
|
|
6115
|
+
subComponents: vt(r),
|
|
6116
|
+
graphSeries: wt({ traffic: 78 })
|
|
5976
6117
|
},
|
|
5977
6118
|
children: /* @__PURE__ */ e(
|
|
5978
|
-
|
|
6119
|
+
nt,
|
|
5979
6120
|
{
|
|
5980
6121
|
rotateY: o,
|
|
5981
6122
|
autoRotate: i,
|
|
@@ -5989,7 +6130,7 @@ function di({ config: t }) {
|
|
|
5989
6130
|
}
|
|
5990
6131
|
),
|
|
5991
6132
|
/* @__PURE__ */ e(
|
|
5992
|
-
|
|
6133
|
+
C,
|
|
5993
6134
|
{
|
|
5994
6135
|
ex: 440,
|
|
5995
6136
|
ey: 260,
|
|
@@ -6004,11 +6145,11 @@ function di({ config: t }) {
|
|
|
6004
6145
|
name: "MSG-SRV",
|
|
6005
6146
|
status: a,
|
|
6006
6147
|
context: { queueDepth: 45 },
|
|
6007
|
-
subComponents:
|
|
6008
|
-
graphSeries:
|
|
6148
|
+
subComponents: hi(a),
|
|
6149
|
+
graphSeries: ui({ queueDepth: 45 })
|
|
6009
6150
|
},
|
|
6010
6151
|
children: /* @__PURE__ */ e(
|
|
6011
|
-
|
|
6152
|
+
bt,
|
|
6012
6153
|
{
|
|
6013
6154
|
rotateY: -o,
|
|
6014
6155
|
autoRotate: i,
|
|
@@ -6023,7 +6164,7 @@ function di({ config: t }) {
|
|
|
6023
6164
|
}
|
|
6024
6165
|
),
|
|
6025
6166
|
/* @__PURE__ */ e(
|
|
6026
|
-
|
|
6167
|
+
C,
|
|
6027
6168
|
{
|
|
6028
6169
|
ex: 165,
|
|
6029
6170
|
ey: 390,
|
|
@@ -6042,7 +6183,7 @@ function di({ config: t }) {
|
|
|
6042
6183
|
graphSeries: xe({ cpuLoad: 67, memLoad: 72 })
|
|
6043
6184
|
},
|
|
6044
6185
|
children: /* @__PURE__ */ e(
|
|
6045
|
-
|
|
6186
|
+
J,
|
|
6046
6187
|
{
|
|
6047
6188
|
rotateY: o,
|
|
6048
6189
|
autoRotate: i,
|
|
@@ -6056,7 +6197,7 @@ function di({ config: t }) {
|
|
|
6056
6197
|
}
|
|
6057
6198
|
),
|
|
6058
6199
|
/* @__PURE__ */ e(
|
|
6059
|
-
|
|
6200
|
+
C,
|
|
6060
6201
|
{
|
|
6061
6202
|
ex: 330,
|
|
6062
6203
|
ey: 390,
|
|
@@ -6075,7 +6216,7 @@ function di({ config: t }) {
|
|
|
6075
6216
|
graphSeries: xe({ cpuLoad: 89, memLoad: 91 })
|
|
6076
6217
|
},
|
|
6077
6218
|
children: /* @__PURE__ */ e(
|
|
6078
|
-
|
|
6219
|
+
J,
|
|
6079
6220
|
{
|
|
6080
6221
|
rotateY: o,
|
|
6081
6222
|
autoRotate: i,
|
|
@@ -6089,7 +6230,7 @@ function di({ config: t }) {
|
|
|
6089
6230
|
}
|
|
6090
6231
|
),
|
|
6091
6232
|
/* @__PURE__ */ e(
|
|
6092
|
-
|
|
6233
|
+
C,
|
|
6093
6234
|
{
|
|
6094
6235
|
ex: 495,
|
|
6095
6236
|
ey: 390,
|
|
@@ -6108,7 +6249,7 @@ function di({ config: t }) {
|
|
|
6108
6249
|
graphSeries: xe({ cpuLoad: 45, memLoad: 63 })
|
|
6109
6250
|
},
|
|
6110
6251
|
children: /* @__PURE__ */ e(
|
|
6111
|
-
|
|
6252
|
+
J,
|
|
6112
6253
|
{
|
|
6113
6254
|
rotateY: o,
|
|
6114
6255
|
autoRotate: i,
|
|
@@ -6122,7 +6263,7 @@ function di({ config: t }) {
|
|
|
6122
6263
|
}
|
|
6123
6264
|
),
|
|
6124
6265
|
/* @__PURE__ */ e(
|
|
6125
|
-
|
|
6266
|
+
C,
|
|
6126
6267
|
{
|
|
6127
6268
|
ex: 200,
|
|
6128
6269
|
ey: 520,
|
|
@@ -6137,11 +6278,11 @@ function di({ config: t }) {
|
|
|
6137
6278
|
name: "DB-PRI",
|
|
6138
6279
|
status: c,
|
|
6139
6280
|
context: { capacity: 72 },
|
|
6140
|
-
subComponents:
|
|
6141
|
-
graphSeries:
|
|
6281
|
+
subComponents: Me(c, "DB-PRI", { capacity: 72 }),
|
|
6282
|
+
graphSeries: Ne({ capacity: 72 })
|
|
6142
6283
|
},
|
|
6143
6284
|
children: /* @__PURE__ */ e(
|
|
6144
|
-
|
|
6285
|
+
Ee,
|
|
6145
6286
|
{
|
|
6146
6287
|
rotateY: -o,
|
|
6147
6288
|
autoRotate: i,
|
|
@@ -6155,7 +6296,7 @@ function di({ config: t }) {
|
|
|
6155
6296
|
}
|
|
6156
6297
|
),
|
|
6157
6298
|
/* @__PURE__ */ e(
|
|
6158
|
-
|
|
6299
|
+
C,
|
|
6159
6300
|
{
|
|
6160
6301
|
ex: 460,
|
|
6161
6302
|
ey: 520,
|
|
@@ -6170,11 +6311,11 @@ function di({ config: t }) {
|
|
|
6170
6311
|
name: "DB-STB",
|
|
6171
6312
|
status: p,
|
|
6172
6313
|
context: { capacity: 72 },
|
|
6173
|
-
subComponents:
|
|
6174
|
-
graphSeries:
|
|
6314
|
+
subComponents: Me(p, "DB-STB", { capacity: 72 }),
|
|
6315
|
+
graphSeries: Ne({ capacity: 72 })
|
|
6175
6316
|
},
|
|
6176
6317
|
children: /* @__PURE__ */ e(
|
|
6177
|
-
|
|
6318
|
+
Ee,
|
|
6178
6319
|
{
|
|
6179
6320
|
rotateY: o,
|
|
6180
6321
|
autoRotate: i,
|
|
@@ -6188,7 +6329,7 @@ function di({ config: t }) {
|
|
|
6188
6329
|
}
|
|
6189
6330
|
),
|
|
6190
6331
|
/* @__PURE__ */ e(
|
|
6191
|
-
|
|
6332
|
+
C,
|
|
6192
6333
|
{
|
|
6193
6334
|
ex: 330,
|
|
6194
6335
|
ey: 520,
|
|
@@ -6197,17 +6338,17 @@ function di({ config: t }) {
|
|
|
6197
6338
|
visibleAtPhase: 6,
|
|
6198
6339
|
fixedScale: 1,
|
|
6199
6340
|
bare: !0,
|
|
6200
|
-
children: /* @__PURE__ */ e(
|
|
6341
|
+
children: /* @__PURE__ */ e(ut, { synced: h, latencyMs: h ? 8 : 342 })
|
|
6201
6342
|
}
|
|
6202
6343
|
),
|
|
6203
|
-
/* @__PURE__ */ e(
|
|
6344
|
+
/* @__PURE__ */ e(yi, { config: t })
|
|
6204
6345
|
] });
|
|
6205
6346
|
}
|
|
6206
|
-
function
|
|
6207
|
-
const n =
|
|
6347
|
+
function yi({ config: t }) {
|
|
6348
|
+
const n = ee.useContext(le), { wdStatus: o, msStatus: i, srv1Status: r, srv2Status: a, srv3Status: s, pdbStatus: l, sdbStatus: f, dbSync: c } = t, p = n?.isSelected && n?.isExpandedPos;
|
|
6208
6349
|
return n?.isSelected ? /* @__PURE__ */ d("div", { style: { pointerEvents: "none" }, children: [
|
|
6209
6350
|
/* @__PURE__ */ e(
|
|
6210
|
-
|
|
6351
|
+
O,
|
|
6211
6352
|
{
|
|
6212
6353
|
ex: 220,
|
|
6213
6354
|
ey: 260,
|
|
@@ -6222,7 +6363,7 @@ function ci({ config: t }) {
|
|
|
6222
6363
|
}
|
|
6223
6364
|
),
|
|
6224
6365
|
/* @__PURE__ */ e(
|
|
6225
|
-
|
|
6366
|
+
O,
|
|
6226
6367
|
{
|
|
6227
6368
|
ex: 440,
|
|
6228
6369
|
ey: 260,
|
|
@@ -6237,7 +6378,7 @@ function ci({ config: t }) {
|
|
|
6237
6378
|
}
|
|
6238
6379
|
),
|
|
6239
6380
|
/* @__PURE__ */ e(
|
|
6240
|
-
|
|
6381
|
+
O,
|
|
6241
6382
|
{
|
|
6242
6383
|
ex: 165,
|
|
6243
6384
|
ey: 390,
|
|
@@ -6252,7 +6393,7 @@ function ci({ config: t }) {
|
|
|
6252
6393
|
}
|
|
6253
6394
|
),
|
|
6254
6395
|
/* @__PURE__ */ e(
|
|
6255
|
-
|
|
6396
|
+
O,
|
|
6256
6397
|
{
|
|
6257
6398
|
ex: 330,
|
|
6258
6399
|
ey: 390,
|
|
@@ -6267,7 +6408,7 @@ function ci({ config: t }) {
|
|
|
6267
6408
|
}
|
|
6268
6409
|
),
|
|
6269
6410
|
/* @__PURE__ */ e(
|
|
6270
|
-
|
|
6411
|
+
O,
|
|
6271
6412
|
{
|
|
6272
6413
|
ex: 495,
|
|
6273
6414
|
ey: 390,
|
|
@@ -6282,7 +6423,7 @@ function ci({ config: t }) {
|
|
|
6282
6423
|
}
|
|
6283
6424
|
),
|
|
6284
6425
|
/* @__PURE__ */ e(
|
|
6285
|
-
|
|
6426
|
+
O,
|
|
6286
6427
|
{
|
|
6287
6428
|
ex: 200,
|
|
6288
6429
|
ey: 520,
|
|
@@ -6297,7 +6438,7 @@ function ci({ config: t }) {
|
|
|
6297
6438
|
}
|
|
6298
6439
|
),
|
|
6299
6440
|
/* @__PURE__ */ e(
|
|
6300
|
-
|
|
6441
|
+
O,
|
|
6301
6442
|
{
|
|
6302
6443
|
ex: 460,
|
|
6303
6444
|
ey: 520,
|
|
@@ -6312,7 +6453,7 @@ function ci({ config: t }) {
|
|
|
6312
6453
|
}
|
|
6313
6454
|
),
|
|
6314
6455
|
!c && /* @__PURE__ */ e(
|
|
6315
|
-
|
|
6456
|
+
O,
|
|
6316
6457
|
{
|
|
6317
6458
|
ex: 330,
|
|
6318
6459
|
ey: 520,
|
|
@@ -6328,19 +6469,19 @@ function ci({ config: t }) {
|
|
|
6328
6469
|
)
|
|
6329
6470
|
] }) : null;
|
|
6330
6471
|
}
|
|
6331
|
-
function
|
|
6472
|
+
function Oi({ config: t, ...n }) {
|
|
6332
6473
|
return /* @__PURE__ */ e(
|
|
6333
|
-
|
|
6474
|
+
tt,
|
|
6334
6475
|
{
|
|
6335
6476
|
name: t.name,
|
|
6336
|
-
status:
|
|
6337
|
-
connections:
|
|
6477
|
+
status: ot(t),
|
|
6478
|
+
connections: bi,
|
|
6338
6479
|
...n,
|
|
6339
|
-
children: /* @__PURE__ */ e(
|
|
6480
|
+
children: /* @__PURE__ */ e(gi, { config: t })
|
|
6340
6481
|
}
|
|
6341
6482
|
);
|
|
6342
6483
|
}
|
|
6343
|
-
function
|
|
6484
|
+
function rt(t) {
|
|
6344
6485
|
const n = [
|
|
6345
6486
|
t.dispStatus,
|
|
6346
6487
|
t.srv1Status,
|
|
@@ -6351,8 +6492,8 @@ function et(t) {
|
|
|
6351
6492
|
];
|
|
6352
6493
|
return n.includes("critical") ? "critical" : n.includes("warning") ? "warning" : n.includes("offline") ? "offline" : "online";
|
|
6353
6494
|
}
|
|
6354
|
-
function
|
|
6355
|
-
const n =
|
|
6495
|
+
function Di(t) {
|
|
6496
|
+
const n = rt(t), o = n === "critical" || n === "offline", i = n === "warning";
|
|
6356
6497
|
return [
|
|
6357
6498
|
{
|
|
6358
6499
|
label: "Uptime",
|
|
@@ -6373,8 +6514,8 @@ function Pi(t) {
|
|
|
6373
6514
|
}
|
|
6374
6515
|
];
|
|
6375
6516
|
}
|
|
6376
|
-
function
|
|
6377
|
-
const n =
|
|
6517
|
+
function Wi(t) {
|
|
6518
|
+
const n = rt(t), o = n === "critical" || n === "offline", i = n === "warning";
|
|
6378
6519
|
return [
|
|
6379
6520
|
...t.dbSync ? [] : [{ level: "warning", message: "DB Replication Lag Detected" }],
|
|
6380
6521
|
...o ? [{ level: "critical", message: "Critical Component Failure" }] : [],
|
|
@@ -6382,7 +6523,7 @@ function Ci(t) {
|
|
|
6382
6523
|
...!o && !i && t.dbSync ? [{ level: "info", message: "All Systems Nominal" }] : []
|
|
6383
6524
|
];
|
|
6384
6525
|
}
|
|
6385
|
-
const
|
|
6526
|
+
const mi = [
|
|
6386
6527
|
{ from: [330, 120], to: [330, 260], visibleAtPhase: 3 },
|
|
6387
6528
|
{ from: [330, 260], to: [165, 390], visibleAtPhase: 4 },
|
|
6388
6529
|
{ from: [330, 260], to: [330, 390], visibleAtPhase: 4 },
|
|
@@ -6391,11 +6532,11 @@ const pi = [
|
|
|
6391
6532
|
{ from: [330, 390], to: [200, 520], visibleAtPhase: 5, color: "#ff8c00" },
|
|
6392
6533
|
{ from: [495, 390], to: [200, 520], visibleAtPhase: 5, color: "#ff8c00" }
|
|
6393
6534
|
];
|
|
6394
|
-
function
|
|
6395
|
-
const n =
|
|
6535
|
+
function xi({ config: t }) {
|
|
6536
|
+
const n = ee.useContext(le), o = n?.rotateY ?? 20, i = n?.autoRotateComponents ?? !0, { dispStatus: r, srv1Status: a, srv2Status: s, srv3Status: l, pdbStatus: f, sdbStatus: c, dbSync: p } = t;
|
|
6396
6537
|
return /* @__PURE__ */ d(Ce, { children: [
|
|
6397
6538
|
/* @__PURE__ */ e(
|
|
6398
|
-
|
|
6539
|
+
C,
|
|
6399
6540
|
{
|
|
6400
6541
|
ex: 330,
|
|
6401
6542
|
ey: 120,
|
|
@@ -6403,11 +6544,11 @@ function fi({ config: t }) {
|
|
|
6403
6544
|
zIndex: 10,
|
|
6404
6545
|
visibleAtPhase: 2,
|
|
6405
6546
|
color: "#00e5ff",
|
|
6406
|
-
children: /* @__PURE__ */ e(
|
|
6547
|
+
children: /* @__PURE__ */ e(gt, { status: "online", scale: 1.5 })
|
|
6407
6548
|
}
|
|
6408
6549
|
),
|
|
6409
6550
|
/* @__PURE__ */ e(
|
|
6410
|
-
|
|
6551
|
+
C,
|
|
6411
6552
|
{
|
|
6412
6553
|
ex: 330,
|
|
6413
6554
|
ey: 260,
|
|
@@ -6422,11 +6563,11 @@ function fi({ config: t }) {
|
|
|
6422
6563
|
name: "DISP-01",
|
|
6423
6564
|
status: r,
|
|
6424
6565
|
context: { traffic: 78 },
|
|
6425
|
-
subComponents:
|
|
6426
|
-
graphSeries:
|
|
6566
|
+
subComponents: vt(r),
|
|
6567
|
+
graphSeries: wt({ traffic: 78 })
|
|
6427
6568
|
},
|
|
6428
6569
|
children: /* @__PURE__ */ e(
|
|
6429
|
-
|
|
6570
|
+
nt,
|
|
6430
6571
|
{
|
|
6431
6572
|
rotateY: o,
|
|
6432
6573
|
autoRotate: i,
|
|
@@ -6440,7 +6581,7 @@ function fi({ config: t }) {
|
|
|
6440
6581
|
}
|
|
6441
6582
|
),
|
|
6442
6583
|
/* @__PURE__ */ e(
|
|
6443
|
-
|
|
6584
|
+
C,
|
|
6444
6585
|
{
|
|
6445
6586
|
ex: 165,
|
|
6446
6587
|
ey: 390,
|
|
@@ -6459,7 +6600,7 @@ function fi({ config: t }) {
|
|
|
6459
6600
|
graphSeries: xe({ cpuLoad: 67, memLoad: 72 })
|
|
6460
6601
|
},
|
|
6461
6602
|
children: /* @__PURE__ */ e(
|
|
6462
|
-
|
|
6603
|
+
J,
|
|
6463
6604
|
{
|
|
6464
6605
|
rotateY: o,
|
|
6465
6606
|
autoRotate: i,
|
|
@@ -6473,7 +6614,7 @@ function fi({ config: t }) {
|
|
|
6473
6614
|
}
|
|
6474
6615
|
),
|
|
6475
6616
|
/* @__PURE__ */ e(
|
|
6476
|
-
|
|
6617
|
+
C,
|
|
6477
6618
|
{
|
|
6478
6619
|
ex: 330,
|
|
6479
6620
|
ey: 390,
|
|
@@ -6492,7 +6633,7 @@ function fi({ config: t }) {
|
|
|
6492
6633
|
graphSeries: xe({ cpuLoad: 89, memLoad: 91 })
|
|
6493
6634
|
},
|
|
6494
6635
|
children: /* @__PURE__ */ e(
|
|
6495
|
-
|
|
6636
|
+
J,
|
|
6496
6637
|
{
|
|
6497
6638
|
rotateY: o,
|
|
6498
6639
|
autoRotate: i,
|
|
@@ -6506,7 +6647,7 @@ function fi({ config: t }) {
|
|
|
6506
6647
|
}
|
|
6507
6648
|
),
|
|
6508
6649
|
/* @__PURE__ */ e(
|
|
6509
|
-
|
|
6650
|
+
C,
|
|
6510
6651
|
{
|
|
6511
6652
|
ex: 495,
|
|
6512
6653
|
ey: 390,
|
|
@@ -6525,7 +6666,7 @@ function fi({ config: t }) {
|
|
|
6525
6666
|
graphSeries: xe({ cpuLoad: 45, memLoad: 63 })
|
|
6526
6667
|
},
|
|
6527
6668
|
children: /* @__PURE__ */ e(
|
|
6528
|
-
|
|
6669
|
+
J,
|
|
6529
6670
|
{
|
|
6530
6671
|
rotateY: o,
|
|
6531
6672
|
autoRotate: i,
|
|
@@ -6539,7 +6680,7 @@ function fi({ config: t }) {
|
|
|
6539
6680
|
}
|
|
6540
6681
|
),
|
|
6541
6682
|
/* @__PURE__ */ e(
|
|
6542
|
-
|
|
6683
|
+
C,
|
|
6543
6684
|
{
|
|
6544
6685
|
ex: 200,
|
|
6545
6686
|
ey: 520,
|
|
@@ -6554,11 +6695,11 @@ function fi({ config: t }) {
|
|
|
6554
6695
|
name: "DB-PRI",
|
|
6555
6696
|
status: f,
|
|
6556
6697
|
context: { capacity: 72 },
|
|
6557
|
-
subComponents:
|
|
6558
|
-
graphSeries:
|
|
6698
|
+
subComponents: Me(f, "DB-PRI", { capacity: 72 }),
|
|
6699
|
+
graphSeries: Ne({ capacity: 72 })
|
|
6559
6700
|
},
|
|
6560
6701
|
children: /* @__PURE__ */ e(
|
|
6561
|
-
|
|
6702
|
+
Ee,
|
|
6562
6703
|
{
|
|
6563
6704
|
rotateY: -o,
|
|
6564
6705
|
autoRotate: i,
|
|
@@ -6572,7 +6713,7 @@ function fi({ config: t }) {
|
|
|
6572
6713
|
}
|
|
6573
6714
|
),
|
|
6574
6715
|
/* @__PURE__ */ e(
|
|
6575
|
-
|
|
6716
|
+
C,
|
|
6576
6717
|
{
|
|
6577
6718
|
ex: 460,
|
|
6578
6719
|
ey: 520,
|
|
@@ -6587,11 +6728,11 @@ function fi({ config: t }) {
|
|
|
6587
6728
|
name: "DB-STB",
|
|
6588
6729
|
status: c,
|
|
6589
6730
|
context: { capacity: 72 },
|
|
6590
|
-
subComponents:
|
|
6591
|
-
graphSeries:
|
|
6731
|
+
subComponents: Me(c, "DB-STB", { capacity: 72 }),
|
|
6732
|
+
graphSeries: Ne({ capacity: 72 })
|
|
6592
6733
|
},
|
|
6593
6734
|
children: /* @__PURE__ */ e(
|
|
6594
|
-
|
|
6735
|
+
Ee,
|
|
6595
6736
|
{
|
|
6596
6737
|
rotateY: o,
|
|
6597
6738
|
autoRotate: i,
|
|
@@ -6605,7 +6746,7 @@ function fi({ config: t }) {
|
|
|
6605
6746
|
}
|
|
6606
6747
|
),
|
|
6607
6748
|
/* @__PURE__ */ e(
|
|
6608
|
-
|
|
6749
|
+
C,
|
|
6609
6750
|
{
|
|
6610
6751
|
ex: 330,
|
|
6611
6752
|
ey: 520,
|
|
@@ -6614,17 +6755,17 @@ function fi({ config: t }) {
|
|
|
6614
6755
|
visibleAtPhase: 6,
|
|
6615
6756
|
fixedScale: 1,
|
|
6616
6757
|
bare: !0,
|
|
6617
|
-
children: /* @__PURE__ */ e(
|
|
6758
|
+
children: /* @__PURE__ */ e(ut, { synced: p, latencyMs: p ? 8 : 342 })
|
|
6618
6759
|
}
|
|
6619
6760
|
),
|
|
6620
|
-
/* @__PURE__ */ e(
|
|
6761
|
+
/* @__PURE__ */ e(vi, { config: t })
|
|
6621
6762
|
] });
|
|
6622
6763
|
}
|
|
6623
|
-
function
|
|
6624
|
-
const n =
|
|
6764
|
+
function vi({ config: t }) {
|
|
6765
|
+
const n = ee.useContext(le), { dispStatus: o, srv1Status: i, srv2Status: r, srv3Status: a, pdbStatus: s, sdbStatus: l, dbSync: f } = t, c = n?.isSelected && n?.isExpandedPos;
|
|
6625
6766
|
return n?.isSelected ? /* @__PURE__ */ d("div", { style: { pointerEvents: "none" }, children: [
|
|
6626
6767
|
/* @__PURE__ */ e(
|
|
6627
|
-
|
|
6768
|
+
O,
|
|
6628
6769
|
{
|
|
6629
6770
|
ex: 330,
|
|
6630
6771
|
ey: 260,
|
|
@@ -6639,7 +6780,7 @@ function hi({ config: t }) {
|
|
|
6639
6780
|
}
|
|
6640
6781
|
),
|
|
6641
6782
|
/* @__PURE__ */ e(
|
|
6642
|
-
|
|
6783
|
+
O,
|
|
6643
6784
|
{
|
|
6644
6785
|
ex: 165,
|
|
6645
6786
|
ey: 390,
|
|
@@ -6654,7 +6795,7 @@ function hi({ config: t }) {
|
|
|
6654
6795
|
}
|
|
6655
6796
|
),
|
|
6656
6797
|
/* @__PURE__ */ e(
|
|
6657
|
-
|
|
6798
|
+
O,
|
|
6658
6799
|
{
|
|
6659
6800
|
ex: 330,
|
|
6660
6801
|
ey: 390,
|
|
@@ -6669,7 +6810,7 @@ function hi({ config: t }) {
|
|
|
6669
6810
|
}
|
|
6670
6811
|
),
|
|
6671
6812
|
/* @__PURE__ */ e(
|
|
6672
|
-
|
|
6813
|
+
O,
|
|
6673
6814
|
{
|
|
6674
6815
|
ex: 495,
|
|
6675
6816
|
ey: 390,
|
|
@@ -6684,7 +6825,7 @@ function hi({ config: t }) {
|
|
|
6684
6825
|
}
|
|
6685
6826
|
),
|
|
6686
6827
|
/* @__PURE__ */ e(
|
|
6687
|
-
|
|
6828
|
+
O,
|
|
6688
6829
|
{
|
|
6689
6830
|
ex: 200,
|
|
6690
6831
|
ey: 520,
|
|
@@ -6699,7 +6840,7 @@ function hi({ config: t }) {
|
|
|
6699
6840
|
}
|
|
6700
6841
|
),
|
|
6701
6842
|
/* @__PURE__ */ e(
|
|
6702
|
-
|
|
6843
|
+
O,
|
|
6703
6844
|
{
|
|
6704
6845
|
ex: 460,
|
|
6705
6846
|
ey: 520,
|
|
@@ -6714,7 +6855,7 @@ function hi({ config: t }) {
|
|
|
6714
6855
|
}
|
|
6715
6856
|
),
|
|
6716
6857
|
!f && /* @__PURE__ */ e(
|
|
6717
|
-
|
|
6858
|
+
O,
|
|
6718
6859
|
{
|
|
6719
6860
|
ex: 330,
|
|
6720
6861
|
ey: 520,
|
|
@@ -6730,70 +6871,71 @@ function hi({ config: t }) {
|
|
|
6730
6871
|
)
|
|
6731
6872
|
] }) : null;
|
|
6732
6873
|
}
|
|
6733
|
-
function
|
|
6874
|
+
function zi({ config: t, ...n }) {
|
|
6734
6875
|
return /* @__PURE__ */ e(
|
|
6735
|
-
|
|
6876
|
+
tt,
|
|
6736
6877
|
{
|
|
6737
6878
|
name: t.name,
|
|
6738
|
-
status:
|
|
6739
|
-
connections:
|
|
6879
|
+
status: rt(t),
|
|
6880
|
+
connections: mi,
|
|
6740
6881
|
...n,
|
|
6741
|
-
children: /* @__PURE__ */ e(
|
|
6882
|
+
children: /* @__PURE__ */ e(xi, { config: t })
|
|
6742
6883
|
}
|
|
6743
6884
|
);
|
|
6744
6885
|
}
|
|
6745
6886
|
export {
|
|
6746
|
-
|
|
6747
|
-
|
|
6748
|
-
|
|
6749
|
-
|
|
6750
|
-
|
|
6751
|
-
|
|
6752
|
-
|
|
6753
|
-
|
|
6887
|
+
Ti as AIOPsDashboard,
|
|
6888
|
+
We as CPU3D,
|
|
6889
|
+
Nt as Carousel,
|
|
6890
|
+
Je as CarouselContext,
|
|
6891
|
+
et as CarouselItemContext,
|
|
6892
|
+
Wt as ComponentDialog,
|
|
6893
|
+
Ei as ComponentDrillView,
|
|
6894
|
+
Ee as Database3D,
|
|
6754
6895
|
ye as DriveBay3D,
|
|
6755
|
-
|
|
6756
|
-
|
|
6757
|
-
|
|
6758
|
-
|
|
6759
|
-
|
|
6896
|
+
mi as EXCHANGE_CONNECTIONS,
|
|
6897
|
+
zi as ExchangeService,
|
|
6898
|
+
Ri as HOLO_BLUE,
|
|
6899
|
+
ki as HOLO_CYAN,
|
|
6900
|
+
Ke as HOLO_GLASS,
|
|
6760
6901
|
we as HOLO_SURFACE,
|
|
6761
|
-
|
|
6762
|
-
|
|
6763
|
-
|
|
6764
|
-
|
|
6765
|
-
|
|
6766
|
-
|
|
6767
|
-
|
|
6768
|
-
|
|
6769
|
-
|
|
6770
|
-
|
|
6771
|
-
|
|
6902
|
+
ii as HistoricalGraphPanel,
|
|
6903
|
+
Ht as HoloBase,
|
|
6904
|
+
gt as Human3D,
|
|
6905
|
+
ze as Memory3D,
|
|
6906
|
+
bt as MessageServer3D,
|
|
6907
|
+
mt as NetworkBlock3D,
|
|
6908
|
+
O as NodeCallout,
|
|
6909
|
+
Oe as Platter3D,
|
|
6910
|
+
B as Port3D,
|
|
6911
|
+
Oi as SAPService,
|
|
6912
|
+
bi as SAP_CONNECTIONS,
|
|
6772
6913
|
w as STATUS_CFG,
|
|
6773
|
-
|
|
6774
|
-
|
|
6775
|
-
|
|
6776
|
-
|
|
6777
|
-
|
|
6778
|
-
|
|
6779
|
-
|
|
6780
|
-
|
|
6781
|
-
|
|
6782
|
-
|
|
6783
|
-
|
|
6784
|
-
|
|
6785
|
-
|
|
6786
|
-
|
|
6787
|
-
|
|
6788
|
-
|
|
6789
|
-
|
|
6790
|
-
|
|
6791
|
-
|
|
6792
|
-
|
|
6793
|
-
|
|
6914
|
+
J as Server3D,
|
|
6915
|
+
tt as Service,
|
|
6916
|
+
le as ServiceContext,
|
|
6917
|
+
Ot as ServiceDialog,
|
|
6918
|
+
C as ServiceNode,
|
|
6919
|
+
Ai as SimpleService,
|
|
6920
|
+
Bt as SvgConnection,
|
|
6921
|
+
ut as SyncBridge,
|
|
6922
|
+
D as ThreadPool3D,
|
|
6923
|
+
nt as WebDispatcher3D,
|
|
6924
|
+
Wi as computeExchangeDialogAlerts,
|
|
6925
|
+
Di as computeExchangeDialogMetrics,
|
|
6926
|
+
rt as computeExchangeServiceStatus,
|
|
6927
|
+
Ii as computeSAPDialogAlerts,
|
|
6928
|
+
Li as computeSAPDialogMetrics,
|
|
6929
|
+
ot as computeSAPServiceStatus,
|
|
6930
|
+
Ne as getDatabaseGraphSeries,
|
|
6931
|
+
Me as getDatabaseSubComponents,
|
|
6932
|
+
wt as getDispatcherGraphSeries,
|
|
6933
|
+
vt as getDispatcherSubComponents,
|
|
6934
|
+
ui as getMessageServerGraphSeries,
|
|
6935
|
+
hi as getMessageServerSubComponents,
|
|
6794
6936
|
xe as getServerGraphSeries,
|
|
6795
6937
|
me as getServerSubComponents,
|
|
6796
|
-
|
|
6797
|
-
|
|
6798
|
-
|
|
6938
|
+
Ze as makeFaceStyles,
|
|
6939
|
+
Pi as useCarouselContext,
|
|
6940
|
+
Ci as useCarouselItemContext
|
|
6799
6941
|
};
|