sevago-sso-fe 1.0.27 → 1.0.29
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 +1 -5
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +1 -5
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -10656,7 +10656,6 @@ const initSockets = (store2) => {
|
|
|
10656
10656
|
};
|
|
10657
10657
|
const socketConfig = (namespace, roomId) => {
|
|
10658
10658
|
if (sockets[namespace]) return sockets[namespace];
|
|
10659
|
-
console.log("namespace", namespace);
|
|
10660
10659
|
if (!manager) throw new Error("Please initial socket at app!");
|
|
10661
10660
|
const socket = manager.socket(`/${namespace}`, {
|
|
10662
10661
|
auth: { token: currentToken, roomId }
|
|
@@ -12865,11 +12864,10 @@ const truncateText = (text, maxLength = 27) => {
|
|
|
12865
12864
|
return `${text.substring(0, maxLength)}...`;
|
|
12866
12865
|
};
|
|
12867
12866
|
const timeUtils = timeUtilsMethods;
|
|
12868
|
-
const useApps = (tab) => {
|
|
12867
|
+
const useApps = (tab = AppCategory.ALL) => {
|
|
12869
12868
|
const userType = reactRedux.useSelector(
|
|
12870
12869
|
(state) => state.account.user?.type
|
|
12871
12870
|
);
|
|
12872
|
-
console.log("userType", userType);
|
|
12873
12871
|
const listApp = React.useMemo(() => {
|
|
12874
12872
|
let filteredApps = SYSTEM_MODULES.filter((app2) => {
|
|
12875
12873
|
return app2.allowUserTypes.includes(userType);
|
|
@@ -12879,7 +12877,6 @@ const useApps = (tab) => {
|
|
|
12879
12877
|
}
|
|
12880
12878
|
return filteredApps;
|
|
12881
12879
|
}, [tab, userType]);
|
|
12882
|
-
console.log("listApp", listApp);
|
|
12883
12880
|
return listApp;
|
|
12884
12881
|
};
|
|
12885
12882
|
const useIsSystemMonitor = () => {
|
|
@@ -33822,7 +33819,6 @@ const AppsSidebar = ({
|
|
|
33822
33819
|
const { setActiveExpandMenu } = useSidebar();
|
|
33823
33820
|
const { palette } = useTheme();
|
|
33824
33821
|
if (!isOpen) return null;
|
|
33825
|
-
console.log("allApps", allApps);
|
|
33826
33822
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
33827
33823
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
33828
33824
|
material.Box,
|