phx-uikit 1.0.84 → 1.0.85
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.
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
exports.__esModule = true;
|
|
3
|
+
var tslib_1 = require("tslib");
|
|
3
4
|
var constants_1 = require("../../utils/constants");
|
|
5
|
+
var js_cookie_1 = tslib_1.__importDefault(require("js-cookie"));
|
|
4
6
|
function PHXFuncGetLoggedInfo() {
|
|
5
7
|
if (typeof window !== 'undefined') {
|
|
6
|
-
var
|
|
7
|
-
return
|
|
8
|
+
var sessionInfo = js_cookie_1["default"].get(constants_1.AUTH_TOKEN);
|
|
9
|
+
return sessionInfo ? JSON.parse(sessionInfo).userInfo : null;
|
|
8
10
|
}
|
|
9
11
|
return null;
|
|
10
12
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getLoginInfo.js","sourceRoot":"","sources":["../../../../src/components/Func/getLoginInfo.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getLoginInfo.js","sourceRoot":"","sources":["../../../../src/components/Func/getLoginInfo.ts"],"names":[],"mappings":";;;AAAA,mDAAkD;AAClD,gEAA+B;AAE/B,SAAwB,oBAAoB;IAC1C,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE;QACjC,IAAM,WAAW,GAAG,sBAAO,CAAC,GAAG,CAAC,sBAAU,CAAC,CAAA;QAC3C,OAAO,WAAW,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAA;KAC7D;IACD,OAAO,IAAI,CAAA;AACb,CAAC;AAND,0CAMC"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AUTH_TOKEN } from '../../utils/constants';
|
|
2
|
+
import Cookies from 'js-cookie';
|
|
2
3
|
export default function PHXFuncGetLoggedInfo() {
|
|
3
4
|
if (typeof window !== 'undefined') {
|
|
4
|
-
var
|
|
5
|
-
return
|
|
5
|
+
var sessionInfo = Cookies.get(AUTH_TOKEN);
|
|
6
|
+
return sessionInfo ? JSON.parse(sessionInfo).userInfo : null;
|
|
6
7
|
}
|
|
7
8
|
return null;
|
|
8
9
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getLoginInfo.js","sourceRoot":"","sources":["../../../../src/components/Func/getLoginInfo.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"getLoginInfo.js","sourceRoot":"","sources":["../../../../src/components/Func/getLoginInfo.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAA;AAClD,OAAO,OAAO,MAAM,WAAW,CAAA;AAE/B,MAAM,CAAC,OAAO,UAAU,oBAAoB;IAC1C,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE;QACjC,IAAM,WAAW,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,CAAA;QAC3C,OAAO,WAAW,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAA;KAC7D;IACD,OAAO,IAAI,CAAA;AACb,CAAC"}
|