jett.admin.npmpackage 1.0.30 → 1.0.33
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 +5 -30
- package/dist/index.mjs +5 -30
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -497,7 +497,7 @@ var navItemsConstant = [
|
|
|
497
497
|
{
|
|
498
498
|
label: "Tags",
|
|
499
499
|
onClick: () => {
|
|
500
|
-
window.location.href = "/orgselector/?path=tag"
|
|
500
|
+
window.location.href = "/orgselector/?path=tag";
|
|
501
501
|
}
|
|
502
502
|
}
|
|
503
503
|
],
|
|
@@ -540,27 +540,19 @@ var navItemsConstant = [
|
|
|
540
540
|
{
|
|
541
541
|
label: "Pricing Policy",
|
|
542
542
|
onClick: () => {
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
options: [
|
|
546
|
-
{ label: "Pricing Policy", onClick: () => {
|
|
547
|
-
window.location.href = "/orgselector/?path=pricing-policy" + encodedAuthData;
|
|
548
|
-
} },
|
|
549
|
-
{ label: "Travel Policy", onClick: () => {
|
|
550
|
-
window.location.href = "/orgselector/?path=travel-policy" + encodedAuthData;
|
|
551
|
-
} }
|
|
552
|
-
]
|
|
543
|
+
window.location.href = "/orgselector/?path=pricing-policy";
|
|
544
|
+
}
|
|
553
545
|
},
|
|
554
546
|
{
|
|
555
547
|
label: "Offers",
|
|
556
548
|
onClick: () => {
|
|
557
|
-
window.location.href = "/orgselector/?path=offer"
|
|
549
|
+
window.location.href = "/orgselector/?path=offer";
|
|
558
550
|
}
|
|
559
551
|
},
|
|
560
552
|
{
|
|
561
553
|
label: "Vouchers",
|
|
562
554
|
onClick: () => {
|
|
563
|
-
window.location.href = "/orgselector/?path=voucher"
|
|
555
|
+
window.location.href = "/orgselector/?path=voucher";
|
|
564
556
|
}
|
|
565
557
|
},
|
|
566
558
|
{
|
|
@@ -650,23 +642,6 @@ var AppSideBar = ({ username, role, navItems, additionalItems, sideBarLogo }) =>
|
|
|
650
642
|
optionsContainer.classList.add("max-h-0");
|
|
651
643
|
}
|
|
652
644
|
};
|
|
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
645
|
(0, import_react11.useEffect)(() => {
|
|
671
646
|
const storedAuthData = localStorage.getItem("authData");
|
|
672
647
|
if (storedAuthData) {
|
package/dist/index.mjs
CHANGED
|
@@ -449,7 +449,7 @@ var navItemsConstant = [
|
|
|
449
449
|
{
|
|
450
450
|
label: "Tags",
|
|
451
451
|
onClick: () => {
|
|
452
|
-
window.location.href = "/orgselector/?path=tag"
|
|
452
|
+
window.location.href = "/orgselector/?path=tag";
|
|
453
453
|
}
|
|
454
454
|
}
|
|
455
455
|
],
|
|
@@ -492,27 +492,19 @@ var navItemsConstant = [
|
|
|
492
492
|
{
|
|
493
493
|
label: "Pricing Policy",
|
|
494
494
|
onClick: () => {
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
options: [
|
|
498
|
-
{ label: "Pricing Policy", onClick: () => {
|
|
499
|
-
window.location.href = "/orgselector/?path=pricing-policy" + encodedAuthData;
|
|
500
|
-
} },
|
|
501
|
-
{ label: "Travel Policy", onClick: () => {
|
|
502
|
-
window.location.href = "/orgselector/?path=travel-policy" + encodedAuthData;
|
|
503
|
-
} }
|
|
504
|
-
]
|
|
495
|
+
window.location.href = "/orgselector/?path=pricing-policy";
|
|
496
|
+
}
|
|
505
497
|
},
|
|
506
498
|
{
|
|
507
499
|
label: "Offers",
|
|
508
500
|
onClick: () => {
|
|
509
|
-
window.location.href = "/orgselector/?path=offer"
|
|
501
|
+
window.location.href = "/orgselector/?path=offer";
|
|
510
502
|
}
|
|
511
503
|
},
|
|
512
504
|
{
|
|
513
505
|
label: "Vouchers",
|
|
514
506
|
onClick: () => {
|
|
515
|
-
window.location.href = "/orgselector/?path=voucher"
|
|
507
|
+
window.location.href = "/orgselector/?path=voucher";
|
|
516
508
|
}
|
|
517
509
|
},
|
|
518
510
|
{
|
|
@@ -602,23 +594,6 @@ var AppSideBar = ({ username, role, navItems, additionalItems, sideBarLogo }) =>
|
|
|
602
594
|
optionsContainer.classList.add("max-h-0");
|
|
603
595
|
}
|
|
604
596
|
};
|
|
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
597
|
useEffect(() => {
|
|
623
598
|
const storedAuthData = localStorage.getItem("authData");
|
|
624
599
|
if (storedAuthData) {
|