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.cjs.js
CHANGED
|
@@ -9790,6 +9790,13 @@ const SystemMonitorSidebarPart = ({
|
|
|
9790
9790
|
const SystemMonitorScreen = ({ blacklist, env, onClickApp }) => {
|
|
9791
9791
|
const theme = useTheme();
|
|
9792
9792
|
const [tab, setTab] = React.useState(AppGroup.ALL);
|
|
9793
|
+
const getAppsForGroup = (group) => Object.keys(APP_OBJ).filter((key) => {
|
|
9794
|
+
const e = APP_OBJ[key];
|
|
9795
|
+
const isBlacklisted = !!blacklist?.includes(key);
|
|
9796
|
+
const isInSelectedGroup = group === AppGroup.ALL ? true : e.group === group;
|
|
9797
|
+
return !isBlacklisted && isInSelectedGroup;
|
|
9798
|
+
}).map((key) => APP_OBJ[key]);
|
|
9799
|
+
const appsForCurrentTab = getAppsForGroup(tab);
|
|
9793
9800
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
9794
9801
|
MotionBox,
|
|
9795
9802
|
{
|
|
@@ -9821,28 +9828,29 @@ const SystemMonitorScreen = ({ blacklist, env, onClickApp }) => {
|
|
|
9821
9828
|
width: "100%",
|
|
9822
9829
|
justifyContent: "flex-start"
|
|
9823
9830
|
},
|
|
9824
|
-
children: Object.values(AppGroup).map((g) =>
|
|
9825
|
-
|
|
9826
|
-
{
|
|
9827
|
-
|
|
9828
|
-
sx: {
|
|
9829
|
-
cursor: "pointer",
|
|
9830
|
-
color: tab === g ? theme.palette.common.white : theme.palette.grey[300]
|
|
9831
|
-
},
|
|
9832
|
-
children: g
|
|
9831
|
+
children: Object.values(AppGroup).map((g) => {
|
|
9832
|
+
const appsForGroup = getAppsForGroup(g);
|
|
9833
|
+
if (appsForGroup.length === 0) {
|
|
9834
|
+
return null;
|
|
9833
9835
|
}
|
|
9834
|
-
|
|
9836
|
+
return /* @__PURE__ */ jsxRuntime.jsx(MotionBox, { sx: { position: "relative" }, preset: "tabUnderline", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
9837
|
+
material.Typography,
|
|
9838
|
+
{
|
|
9839
|
+
onClick: () => setTab(g),
|
|
9840
|
+
sx: {
|
|
9841
|
+
cursor: "pointer",
|
|
9842
|
+
color: tab === g ? theme.palette.common.white : theme.palette.grey[300]
|
|
9843
|
+
},
|
|
9844
|
+
children: g
|
|
9845
|
+
}
|
|
9846
|
+
) }, g);
|
|
9847
|
+
})
|
|
9835
9848
|
}
|
|
9836
9849
|
),
|
|
9837
9850
|
/* @__PURE__ */ jsxRuntime.jsx(MotionBox, { preset: "tabContent", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
9838
9851
|
AppGrid,
|
|
9839
9852
|
{
|
|
9840
|
-
apps:
|
|
9841
|
-
const e = APP_OBJ[key];
|
|
9842
|
-
const isBlacklisted = !!blacklist?.includes(key);
|
|
9843
|
-
const isInSelectedGroup = tab === AppGroup.ALL ? true : e.group === tab;
|
|
9844
|
-
return !isBlacklisted && isInSelectedGroup;
|
|
9845
|
-
}).map((key) => APP_OBJ[key]),
|
|
9853
|
+
apps: appsForCurrentTab,
|
|
9846
9854
|
iconSize: 80,
|
|
9847
9855
|
iconRadius: 7,
|
|
9848
9856
|
gap: PADDING_GAP_TAB,
|