jett.admin.npmpackage 1.0.30 → 1.0.31
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.js +0 -17
- package/dist/index.mjs +0 -17
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -650,23 +650,6 @@ var AppSideBar = ({ username, role, navItems, additionalItems, sideBarLogo }) =>
|
|
|
650
650
|
optionsContainer.classList.add("max-h-0");
|
|
651
651
|
}
|
|
652
652
|
};
|
|
653
|
-
const checkForAuthData = () => {
|
|
654
|
-
const params = new URLSearchParams(window.location.search);
|
|
655
|
-
let authData2 = params.get("authData");
|
|
656
|
-
if (authData2) {
|
|
657
|
-
localStorage.setItem("encodedAuthData", authData2);
|
|
658
|
-
authData2 = atob(authData2);
|
|
659
|
-
localStorage.setItem("authData", authData2);
|
|
660
|
-
const parsedAuthData = JSON.parse(authData2);
|
|
661
|
-
setAuthData(parsedAuthData);
|
|
662
|
-
params.delete("authData");
|
|
663
|
-
const newUrl = window.location.pathname + (params.toString() ? "?" + params.toString() : "");
|
|
664
|
-
window.history.replaceState({}, document.title, newUrl);
|
|
665
|
-
}
|
|
666
|
-
};
|
|
667
|
-
(0, import_react11.useEffect)(() => {
|
|
668
|
-
checkForAuthData();
|
|
669
|
-
}, []);
|
|
670
653
|
(0, import_react11.useEffect)(() => {
|
|
671
654
|
const storedAuthData = localStorage.getItem("authData");
|
|
672
655
|
if (storedAuthData) {
|
package/dist/index.mjs
CHANGED
|
@@ -602,23 +602,6 @@ var AppSideBar = ({ username, role, navItems, additionalItems, sideBarLogo }) =>
|
|
|
602
602
|
optionsContainer.classList.add("max-h-0");
|
|
603
603
|
}
|
|
604
604
|
};
|
|
605
|
-
const checkForAuthData = () => {
|
|
606
|
-
const params = new URLSearchParams(window.location.search);
|
|
607
|
-
let authData2 = params.get("authData");
|
|
608
|
-
if (authData2) {
|
|
609
|
-
localStorage.setItem("encodedAuthData", authData2);
|
|
610
|
-
authData2 = atob(authData2);
|
|
611
|
-
localStorage.setItem("authData", authData2);
|
|
612
|
-
const parsedAuthData = JSON.parse(authData2);
|
|
613
|
-
setAuthData(parsedAuthData);
|
|
614
|
-
params.delete("authData");
|
|
615
|
-
const newUrl = window.location.pathname + (params.toString() ? "?" + params.toString() : "");
|
|
616
|
-
window.history.replaceState({}, document.title, newUrl);
|
|
617
|
-
}
|
|
618
|
-
};
|
|
619
|
-
useEffect(() => {
|
|
620
|
-
checkForAuthData();
|
|
621
|
-
}, []);
|
|
622
605
|
useEffect(() => {
|
|
623
606
|
const storedAuthData = localStorage.getItem("authData");
|
|
624
607
|
if (storedAuthData) {
|