sevago-sso-fe 1.0.82 → 1.0.83
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +24 -16
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +24 -16
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -9772,6 +9772,13 @@ const SystemMonitorSidebarPart = ({
|
|
|
9772
9772
|
const SystemMonitorScreen = ({ blacklist, env, onClickApp }) => {
|
|
9773
9773
|
const theme = useTheme();
|
|
9774
9774
|
const [tab, setTab] = useState(AppGroup.ALL);
|
|
9775
|
+
const getAppsForGroup = (group) => Object.keys(APP_OBJ).filter((key) => {
|
|
9776
|
+
const e = APP_OBJ[key];
|
|
9777
|
+
const isBlacklisted = !!blacklist?.includes(key);
|
|
9778
|
+
const isInSelectedGroup = group === AppGroup.ALL ? true : e.group === group;
|
|
9779
|
+
return !isBlacklisted && isInSelectedGroup;
|
|
9780
|
+
}).map((key) => APP_OBJ[key]);
|
|
9781
|
+
const appsForCurrentTab = getAppsForGroup(tab);
|
|
9775
9782
|
return /* @__PURE__ */ jsx(
|
|
9776
9783
|
MotionBox,
|
|
9777
9784
|
{
|
|
@@ -9803,28 +9810,29 @@ const SystemMonitorScreen = ({ blacklist, env, onClickApp }) => {
|
|
|
9803
9810
|
width: "100%",
|
|
9804
9811
|
justifyContent: "flex-start"
|
|
9805
9812
|
},
|
|
9806
|
-
children: Object.values(AppGroup).map((g) =>
|
|
9807
|
-
|
|
9808
|
-
{
|
|
9809
|
-
|
|
9810
|
-
sx: {
|
|
9811
|
-
cursor: "pointer",
|
|
9812
|
-
color: tab === g ? theme.palette.common.white : theme.palette.grey[300]
|
|
9813
|
-
},
|
|
9814
|
-
children: g
|
|
9813
|
+
children: Object.values(AppGroup).map((g) => {
|
|
9814
|
+
const appsForGroup = getAppsForGroup(g);
|
|
9815
|
+
if (appsForGroup.length === 0) {
|
|
9816
|
+
return null;
|
|
9815
9817
|
}
|
|
9816
|
-
|
|
9818
|
+
return /* @__PURE__ */ jsx(MotionBox, { sx: { position: "relative" }, preset: "tabUnderline", children: /* @__PURE__ */ jsx(
|
|
9819
|
+
Typography,
|
|
9820
|
+
{
|
|
9821
|
+
onClick: () => setTab(g),
|
|
9822
|
+
sx: {
|
|
9823
|
+
cursor: "pointer",
|
|
9824
|
+
color: tab === g ? theme.palette.common.white : theme.palette.grey[300]
|
|
9825
|
+
},
|
|
9826
|
+
children: g
|
|
9827
|
+
}
|
|
9828
|
+
) }, g);
|
|
9829
|
+
})
|
|
9817
9830
|
}
|
|
9818
9831
|
),
|
|
9819
9832
|
/* @__PURE__ */ jsx(MotionBox, { preset: "tabContent", children: /* @__PURE__ */ jsx(
|
|
9820
9833
|
AppGrid,
|
|
9821
9834
|
{
|
|
9822
|
-
apps:
|
|
9823
|
-
const e = APP_OBJ[key];
|
|
9824
|
-
const isBlacklisted = !!blacklist?.includes(key);
|
|
9825
|
-
const isInSelectedGroup = tab === AppGroup.ALL ? true : e.group === tab;
|
|
9826
|
-
return !isBlacklisted && isInSelectedGroup;
|
|
9827
|
-
}).map((key) => APP_OBJ[key]),
|
|
9835
|
+
apps: appsForCurrentTab,
|
|
9828
9836
|
iconSize: 80,
|
|
9829
9837
|
iconRadius: 7,
|
|
9830
9838
|
gap: PADDING_GAP_TAB,
|