sixseconds-modules 1.6.41 → 1.6.43
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 +14 -10
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +14 -10
- package/dist/index.es.js.map +1 -1
- package/dist/utils/common.d.ts +8 -0
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -2641,7 +2641,7 @@ function createEnv(opts) {
|
|
|
2641
2641
|
}
|
|
2642
2642
|
return runtimeEnv;
|
|
2643
2643
|
}
|
|
2644
|
-
const __vite_import_meta_env__ = { "BASE_URL": "/", "DEV": false, "MODE": "
|
|
2644
|
+
const __vite_import_meta_env__ = { "BASE_URL": "/", "DEV": false, "MODE": "production", "PROD": true, "SSR": false, "VITE_MODULES_CARDS_ADMIN_FRONTEND_BASE_URL": "https://admin-cards.6seconds.org", "VITE_MODULES_CARDS_HOME_FRONTEND_BASE_URL": "https://cards.6seconds.org", "VITE_MODULES_CERT_FRONTEND_BASE_URL": "https://cert.6seconds.org", "VITE_MODULES_EVENTS_FRONTEND_BASE_URL": "https://newevents.6seconds.org", "VITE_MODULES_SSO_BACKEND_BASE_URL": "https://ssoapi.6seconds.org", "VITE_MODULES_SSO_FRONTEND_BASE_URL": "https://sso.6seconds.org", "VITE_MODULES_TOOLS_FRONTEND_BASE_URL": "https://newtools.6seconds.org" };
|
|
2645
2645
|
const env = createEnv({
|
|
2646
2646
|
runtimeEnv: __vite_import_meta_env__
|
|
2647
2647
|
});
|
|
@@ -2816,17 +2816,21 @@ const handleRedirection = (type, source) => {
|
|
|
2816
2816
|
}
|
|
2817
2817
|
};
|
|
2818
2818
|
const CookiesUtil = {
|
|
2819
|
+
COOKIE_OPTIONS: {
|
|
2820
|
+
path: "/",
|
|
2821
|
+
domain: DEV ? "localhost" : ".6seconds.org",
|
|
2822
|
+
secure: true,
|
|
2823
|
+
sameSite: "None",
|
|
2824
|
+
expires: 7
|
|
2825
|
+
},
|
|
2819
2826
|
get: (name) => {
|
|
2820
2827
|
return JSON.parse(Cookies.get(name) || "{}");
|
|
2821
2828
|
},
|
|
2822
2829
|
set: (name, val) => {
|
|
2823
|
-
Cookies.set(name, JSON.stringify(val),
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
|
|
2827
|
-
sameSite: "None",
|
|
2828
|
-
expires: 7
|
|
2829
|
-
});
|
|
2830
|
+
Cookies.set(name, JSON.stringify(val), CookiesUtil.COOKIE_OPTIONS);
|
|
2831
|
+
},
|
|
2832
|
+
remove: (name) => {
|
|
2833
|
+
Cookies.remove(name, CookiesUtil.COOKIE_OPTIONS);
|
|
2830
2834
|
}
|
|
2831
2835
|
};
|
|
2832
2836
|
//! moment.js
|
|
@@ -9781,7 +9785,7 @@ function ViewProfileDialog({ userData, setInitialState, isOpen }) {
|
|
|
9781
9785
|
) }),
|
|
9782
9786
|
/* @__PURE__ */ jsxs(Box, { sx: { pl: { md: 3, lg: 3, xs: 0 } }, children: [
|
|
9783
9787
|
/* @__PURE__ */ jsxs(Stack$1, { direction: "column", spacing: 1.5, sx: { fontSize: "14px" }, children: [
|
|
9784
|
-
Boolean(userData?.certification
|
|
9788
|
+
Boolean(userData?.certification?.length) && /* @__PURE__ */ jsxs(Stack$1, { direction: "row", alignItems: "center", flexWrap: "wrap", spacing: 0.5, useFlexGap: true, children: [
|
|
9785
9789
|
"Certification:",
|
|
9786
9790
|
userData?.certification?.map((itm, idx) => /* @__PURE__ */ jsx(Chip, { sx: { mr: 0.5, mb: 0.5 }, label: `${itm}` }, idx))
|
|
9787
9791
|
] }),
|
|
@@ -10758,6 +10762,7 @@ const PreviousLoginBanner = ({ t: t2, router }) => {
|
|
|
10758
10762
|
try {
|
|
10759
10763
|
const res = await autoLoginApi(previousLoginDetails?.id);
|
|
10760
10764
|
if (res.remote === "success") {
|
|
10765
|
+
CookiesUtil.remove("previousLoginDetails");
|
|
10761
10766
|
if (router) {
|
|
10762
10767
|
router.reload();
|
|
10763
10768
|
router.replace(ROUTES.home);
|
|
@@ -10765,7 +10770,6 @@ const PreviousLoginBanner = ({ t: t2, router }) => {
|
|
|
10765
10770
|
window.location.reload();
|
|
10766
10771
|
window.location.href = ROUTES.home;
|
|
10767
10772
|
}
|
|
10768
|
-
Cookies.remove("previousLoginDetails");
|
|
10769
10773
|
}
|
|
10770
10774
|
} catch (err) {
|
|
10771
10775
|
toast.error(t2(ALERT_MESSAGES.fallbackError));
|