@evlop/commons 1.0.101 → 1.0.104
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/src/constants/index.d.ts +2 -3
- package/dist/src/constants/index.d.ts.map +1 -1
- package/dist/src/constants/index.js +4 -14
- package/dist/src/constants/index.js.map +1 -1
- package/dist/src/constants/platformSpecific.d.ts +2 -1
- package/dist/src/constants/platformSpecific.d.ts.map +1 -1
- package/dist/src/constants/platformSpecific.js +3 -0
- package/dist/src/constants/platformSpecific.js.map +1 -1
- package/dist/src/helpers/index.d.ts +1 -0
- package/dist/src/helpers/index.d.ts.map +1 -1
- package/dist/src/helpers/index.js +1 -0
- package/dist/src/helpers/index.js.map +1 -1
- package/dist/src/helpers/themeHelpers.d.ts +16 -0
- package/dist/src/helpers/themeHelpers.d.ts.map +1 -0
- package/dist/src/helpers/themeHelpers.js +84 -0
- package/dist/src/helpers/themeHelpers.js.map +1 -0
- package/dist/src/reducers/{config.d.ts → config/index.d.ts} +7 -2
- package/dist/src/reducers/config/index.d.ts.map +1 -0
- package/dist/src/reducers/{config.js → config/index.js} +11 -7
- package/dist/src/reducers/config/index.js.map +1 -0
- package/dist/src/reducers/config/initialState.d.ts +6 -0
- package/dist/src/reducers/config/initialState.d.ts.map +1 -0
- package/dist/src/reducers/config/initialState.js +8 -0
- package/dist/src/reducers/config/initialState.js.map +1 -0
- package/dist/src/reducers/config/initialState.native.d.ts +6 -0
- package/dist/src/reducers/config/initialState.native.d.ts.map +1 -0
- package/dist/src/reducers/config/initialState.native.js +19 -0
- package/dist/src/reducers/config/initialState.native.js.map +1 -0
- package/dist/src/reducers/index.d.ts +7 -1
- package/dist/src/reducers/index.d.ts.map +1 -1
- package/dist/src/reducers/{pages.d.ts → pages/index.d.ts} +1 -1
- package/dist/src/reducers/pages/index.d.ts.map +1 -0
- package/dist/src/reducers/{pages.js → pages/index.js} +6 -2
- package/dist/src/reducers/pages/index.js.map +1 -0
- package/dist/src/reducers/pages/initialState.d.ts +10 -0
- package/dist/src/reducers/pages/initialState.d.ts.map +1 -0
- package/dist/src/reducers/pages/initialState.js +5 -0
- package/dist/src/reducers/pages/initialState.js.map +1 -0
- package/dist/src/reducers/pages/initialState.native.d.ts +10 -0
- package/dist/src/reducers/pages/initialState.native.d.ts.map +1 -0
- package/dist/src/reducers/pages/initialState.native.js +22 -0
- package/dist/src/reducers/pages/initialState.native.js.map +1 -0
- package/package.json +1 -1
- package/dist/src/adapters/setUserToken/index.d.ts +0 -2
- package/dist/src/adapters/setUserToken/index.d.ts.map +0 -1
- package/dist/src/adapters/setUserToken/index.js +0 -22
- package/dist/src/adapters/setUserToken/index.js.map +0 -1
- package/dist/src/adapters/setUserToken/index.native.d.ts +0 -2
- package/dist/src/adapters/setUserToken/index.native.d.ts.map +0 -1
- package/dist/src/adapters/setUserToken/index.native.js +0 -28
- package/dist/src/adapters/setUserToken/index.native.js.map +0 -1
- package/dist/src/reducers/config.d.ts.map +0 -1
- package/dist/src/reducers/config.js.map +0 -1
- package/dist/src/reducers/pages.d.ts.map +0 -1
- package/dist/src/reducers/pages.js.map +0 -1
@@ -1,3 +1,4 @@
|
|
1
|
+
import { API_BASE_URL, SOCKET_URL } from './platformSpecific';
|
1
2
|
export declare const IS_SSR: boolean;
|
2
3
|
export declare const DIRECTION_TOP = "direction/Top";
|
3
4
|
export declare const DIRECTION_RIGHT = "direction/Right";
|
@@ -6,9 +7,7 @@ export declare const DIRECTION_LEFT = "direction/Left";
|
|
6
7
|
export declare const VERTICAL_LAYOUT = "layout/vertical";
|
7
8
|
export declare const HORIZONTAL_LAYOUT = "layout/horizontal";
|
8
9
|
export declare const TYPE_COMPONENT = "type/component";
|
9
|
-
export declare const API_BASE_URL: string;
|
10
|
-
export declare const SOCKET_URL: string;
|
11
10
|
export declare const DATA_SOURCE_KEY_NAMESPACE = "a0aec1c8-4fed-4d5d-b399-504887b3b8e4";
|
11
|
+
export { API_BASE_URL, SOCKET_URL };
|
12
12
|
export { default as iconInfo } from './iconInfo';
|
13
|
-
export * from './platformSpecific';
|
14
13
|
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/constants/index.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM,SAAgE,CAAC;AAEpF,eAAO,MAAM,aAAa,kBAAkB,CAAC;AAC7C,eAAO,MAAM,eAAe,oBAAoB,CAAC;AACjD,eAAO,MAAM,gBAAgB,qBAAqB,CAAC;AACnD,eAAO,MAAM,cAAc,mBAAmB,CAAC;AAG/C,eAAO,MAAM,eAAe,oBAAoB,CAAC;AACjD,eAAO,MAAM,iBAAiB,sBAAsB,CAAC;AAErD,eAAO,MAAM,cAAc,mBAAmB,CAAC;
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/constants/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAC9D,eAAO,MAAM,MAAM,SAAgE,CAAC;AAEpF,eAAO,MAAM,aAAa,kBAAkB,CAAC;AAC7C,eAAO,MAAM,eAAe,oBAAoB,CAAC;AACjD,eAAO,MAAM,gBAAgB,qBAAqB,CAAC;AACnD,eAAO,MAAM,cAAc,mBAAmB,CAAC;AAG/C,eAAO,MAAM,eAAe,oBAAoB,CAAC;AACjD,eAAO,MAAM,iBAAiB,sBAAsB,CAAC;AAErD,eAAO,MAAM,cAAc,mBAAmB,CAAC;AAE/C,eAAO,MAAM,yBAAyB,yCAAyC,CAAC;AAChF,OAAO,EAAC,YAAY,EAAE,UAAU,EAAC,CAAA;AAEjC,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC"}
|
@@ -1,19 +1,12 @@
|
|
1
1
|
"use strict";
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
-
if (k2 === undefined) k2 = k;
|
4
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
5
|
-
}) : (function(o, m, k, k2) {
|
6
|
-
if (k2 === undefined) k2 = k;
|
7
|
-
o[k2] = m[k];
|
8
|
-
}));
|
9
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
10
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
11
|
-
};
|
12
2
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
13
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
14
4
|
};
|
15
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
16
|
-
exports.iconInfo = exports.
|
6
|
+
exports.iconInfo = exports.SOCKET_URL = exports.API_BASE_URL = exports.DATA_SOURCE_KEY_NAMESPACE = exports.TYPE_COMPONENT = exports.HORIZONTAL_LAYOUT = exports.VERTICAL_LAYOUT = exports.DIRECTION_LEFT = exports.DIRECTION_BOTTOM = exports.DIRECTION_RIGHT = exports.DIRECTION_TOP = exports.IS_SSR = void 0;
|
7
|
+
const platformSpecific_1 = require("./platformSpecific");
|
8
|
+
Object.defineProperty(exports, "API_BASE_URL", { enumerable: true, get: function () { return platformSpecific_1.API_BASE_URL; } });
|
9
|
+
Object.defineProperty(exports, "SOCKET_URL", { enumerable: true, get: function () { return platformSpecific_1.SOCKET_URL; } });
|
17
10
|
exports.IS_SSR = ['true', '1'].includes(String(process.env.SSR).toLowerCase());
|
18
11
|
exports.DIRECTION_TOP = "direction/Top";
|
19
12
|
exports.DIRECTION_RIGHT = "direction/Right";
|
@@ -22,10 +15,7 @@ exports.DIRECTION_LEFT = "direction/Left";
|
|
22
15
|
exports.VERTICAL_LAYOUT = 'layout/vertical';
|
23
16
|
exports.HORIZONTAL_LAYOUT = 'layout/horizontal';
|
24
17
|
exports.TYPE_COMPONENT = "type/component";
|
25
|
-
exports.API_BASE_URL = process.env.API_BASE_URL || process.env.REACT_APP_API_BASE_URL;
|
26
|
-
exports.SOCKET_URL = process.env.SOCKET_URL || process.env.REACT_APP_SOCKET_URL || exports.API_BASE_URL;
|
27
18
|
exports.DATA_SOURCE_KEY_NAMESPACE = "a0aec1c8-4fed-4d5d-b399-504887b3b8e4";
|
28
19
|
var iconInfo_1 = require("./iconInfo");
|
29
20
|
Object.defineProperty(exports, "iconInfo", { enumerable: true, get: function () { return __importDefault(iconInfo_1).default; } });
|
30
|
-
__exportStar(require("./platformSpecific"), exports);
|
31
21
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/constants/index.tsx"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/constants/index.tsx"],"names":[],"mappings":";;;;;;AAAA,yDAA8D;AAetD,6FAfC,+BAAY,OAeD;AAAE,2FAfC,6BAAU,OAeD;AAdnB,QAAA,MAAM,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC;AAEvE,QAAA,aAAa,GAAG,eAAe,CAAC;AAChC,QAAA,eAAe,GAAG,iBAAiB,CAAC;AACpC,QAAA,gBAAgB,GAAG,kBAAkB,CAAC;AACtC,QAAA,cAAc,GAAG,gBAAgB,CAAC;AAGlC,QAAA,eAAe,GAAG,iBAAiB,CAAC;AACpC,QAAA,iBAAiB,GAAG,mBAAmB,CAAC;AAExC,QAAA,cAAc,GAAG,gBAAgB,CAAC;AAElC,QAAA,yBAAyB,GAAG,sCAAsC,CAAC;AAGhF,uCAAiD;AAAxC,qHAAA,OAAO,OAAY"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"platformSpecific.d.ts","sourceRoot":"","sources":["../../../src/constants/platformSpecific.ts"],"names":[],"mappings":"AAAA,
|
1
|
+
{"version":3,"file":"platformSpecific.d.ts","sourceRoot":"","sources":["../../../src/constants/platformSpecific.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,QAAiE,CAAC;AAC3F,eAAO,MAAM,UAAU,QAA6E,CAAC"}
|
@@ -1,3 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.SOCKET_URL = exports.API_BASE_URL = void 0;
|
4
|
+
exports.API_BASE_URL = process.env.API_BASE_URL || process.env.REACT_APP_API_BASE_URL;
|
5
|
+
exports.SOCKET_URL = process.env.SOCKET_URL || process.env.REACT_APP_SOCKET_URL || exports.API_BASE_URL;
|
3
6
|
//# sourceMappingURL=platformSpecific.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"platformSpecific.js","sourceRoot":"","sources":["../../../src/constants/platformSpecific.ts"],"names":[],"mappings":""}
|
1
|
+
{"version":3,"file":"platformSpecific.js","sourceRoot":"","sources":["../../../src/constants/platformSpecific.ts"],"names":[],"mappings":";;;AAAa,QAAA,YAAY,GAAG,OAAO,CAAC,GAAG,CAAC,YAAY,IAAI,OAAO,CAAC,GAAG,CAAC,sBAAsB,CAAC;AAC9E,QAAA,UAAU,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,IAAI,OAAO,CAAC,GAAG,CAAC,oBAAoB,IAAI,oBAAY,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/helpers/index.tsx"],"names":[],"mappings":"AAAA,OAAO,oBAAoB,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC"}
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/helpers/index.tsx"],"names":[],"mappings":"AAAA,OAAO,oBAAoB,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC"}
|
@@ -13,4 +13,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
13
|
require("./handlebarHelpers");
|
14
14
|
__exportStar(require("./functions"), exports);
|
15
15
|
__exportStar(require("./commonStyles"), exports);
|
16
|
+
__exportStar(require("./themeHelpers"), exports);
|
16
17
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/helpers/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,8BAA4B;AAC5B,8CAA4B;AAC5B,iDAA+B"}
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/helpers/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,8BAA4B;AAC5B,8CAA4B;AAC5B,iDAA+B;AAC/B,iDAA+B"}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
export declare const generateSizeScale: (baseSize: number, variants: {
|
2
|
+
scale: number;
|
3
|
+
name: string;
|
4
|
+
}[]) => {};
|
5
|
+
export declare const fontVariations: {
|
6
|
+
scale: number;
|
7
|
+
name: string;
|
8
|
+
}[];
|
9
|
+
export declare const generateFontSizes: (baseFont: number) => {};
|
10
|
+
export declare const spacingVariations: {
|
11
|
+
scale: number;
|
12
|
+
name: string;
|
13
|
+
}[];
|
14
|
+
export declare const generateSpacingSizes: (baseSpacing: number) => {};
|
15
|
+
export declare function getColorVariants(colors: Object[]): Object[];
|
16
|
+
//# sourceMappingURL=themeHelpers.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"themeHelpers.d.ts","sourceRoot":"","sources":["../../../src/helpers/themeHelpers.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,iBAAiB,aAAa,MAAM,YAAY;IAAC,KAAK,EAAC,MAAM,CAAC;IAAC,MAAK,MAAM,CAAA;CAAC,EAAE,OAGpF,CAAC;AAGP,eAAO,MAAM,cAAc;;;GAa1B,CAAA;AAED,eAAO,MAAM,iBAAiB,aAAc,MAAM,OAAgD,CAAC;AAGnG,eAAO,MAAM,iBAAiB;;;GAc7B,CAAA;AAED,eAAO,MAAM,oBAAoB,gBAAiB,MAAM,OAAsD,CAAC;AAI/G,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,MAAM,EAAE,YAoChD"}
|
@@ -0,0 +1,84 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.getColorVariants = exports.generateSpacingSizes = exports.spacingVariations = exports.generateFontSizes = exports.fontVariations = exports.generateSizeScale = void 0;
|
4
|
+
const lodash_1 = require("lodash");
|
5
|
+
const polished_1 = require("polished");
|
6
|
+
const generateSizeScale = (baseSize, variants) => variants.reduce((sizes, { name, scale }) => {
|
7
|
+
sizes[name] = baseSize * scale;
|
8
|
+
return sizes;
|
9
|
+
}, {});
|
10
|
+
exports.generateSizeScale = generateSizeScale;
|
11
|
+
// font sizes
|
12
|
+
exports.fontVariations = [
|
13
|
+
{ scale: 7 / 16, name: 'xxxs' },
|
14
|
+
{ scale: 9 / 16, name: 'xxs' },
|
15
|
+
{ scale: 10 / 16, name: 'xs' },
|
16
|
+
{ scale: 13 / 16, name: 'sm' },
|
17
|
+
{ scale: 16 / 16, name: 'md' },
|
18
|
+
{ scale: 18 / 16, name: 'lg' },
|
19
|
+
{ scale: 24 / 16, name: 'xl' },
|
20
|
+
{ scale: 32 / 16, name: 'xxl' },
|
21
|
+
{ scale: 40 / 16, name: 'xxxl' },
|
22
|
+
{ scale: 48 / 16, name: 'xxxxl' },
|
23
|
+
{ scale: 60 / 16, name: 'xxxxxl' },
|
24
|
+
{ scale: 72 / 16, name: 'xxxxxxl' },
|
25
|
+
];
|
26
|
+
const generateFontSizes = (baseFont) => exports.generateSizeScale(baseFont, exports.fontVariations);
|
27
|
+
exports.generateFontSizes = generateFontSizes;
|
28
|
+
// spacing
|
29
|
+
exports.spacingVariations = [
|
30
|
+
{ scale: 0 / 16, name: 'none' },
|
31
|
+
{ scale: 2 / 16, name: 'xxxs' },
|
32
|
+
{ scale: 4 / 16, name: 'xxs' },
|
33
|
+
{ scale: 8 / 16, name: 'xs' },
|
34
|
+
{ scale: 12 / 16, name: 'sm' },
|
35
|
+
{ scale: 16 / 16, name: 'md' },
|
36
|
+
{ scale: 18 / 16, name: 'lg' },
|
37
|
+
{ scale: 24 / 16, name: 'xl' },
|
38
|
+
{ scale: 32 / 16, name: 'xxl' },
|
39
|
+
{ scale: 40 / 16, name: 'xxxl' },
|
40
|
+
{ scale: 48 / 16, name: 'xxxxl' },
|
41
|
+
{ scale: 64 / 16, name: 'xxxxxl' },
|
42
|
+
{ scale: 72 / 16, name: 'xxxxxxl' },
|
43
|
+
];
|
44
|
+
const generateSpacingSizes = (baseSpacing) => exports.generateSizeScale(baseSpacing, exports.spacingVariations);
|
45
|
+
exports.generateSpacingSizes = generateSpacingSizes;
|
46
|
+
// colors
|
47
|
+
function getColorVariants(colors) {
|
48
|
+
return new Proxy(colors, {
|
49
|
+
get: (target, color) => {
|
50
|
+
const colorParams = lodash_1.split(color, '-');
|
51
|
+
let resultColor = target[colorParams.shift()];
|
52
|
+
if (!resultColor)
|
53
|
+
return;
|
54
|
+
while (!lodash_1.isEmpty(colorParams) && resultColor) {
|
55
|
+
const op = colorParams.shift();
|
56
|
+
switch (op) {
|
57
|
+
case 'lighten':
|
58
|
+
const lightenAmount = +colorParams.shift() / 100;
|
59
|
+
resultColor = polished_1.lighten(lightenAmount, resultColor);
|
60
|
+
break;
|
61
|
+
case 'darken':
|
62
|
+
const darkenAmount = +colorParams.shift() / 100;
|
63
|
+
resultColor = polished_1.darken(darkenAmount, resultColor);
|
64
|
+
break;
|
65
|
+
case 'transparentize':
|
66
|
+
const transparentizeAmount = +colorParams.shift() / 100;
|
67
|
+
resultColor = polished_1.transparentize(transparentizeAmount, resultColor);
|
68
|
+
break;
|
69
|
+
case 'invert':
|
70
|
+
resultColor = lodash_1.invert(resultColor);
|
71
|
+
break;
|
72
|
+
case 'grayscale':
|
73
|
+
resultColor = polished_1.grayscale(resultColor);
|
74
|
+
break;
|
75
|
+
default:
|
76
|
+
}
|
77
|
+
}
|
78
|
+
return resultColor;
|
79
|
+
},
|
80
|
+
set() { return false; }
|
81
|
+
});
|
82
|
+
}
|
83
|
+
exports.getColorVariants = getColorVariants;
|
84
|
+
//# sourceMappingURL=themeHelpers.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"themeHelpers.js","sourceRoot":"","sources":["../../../src/helpers/themeHelpers.tsx"],"names":[],"mappings":";;;AAAA,mCAAgD;AAChD,uCAAsE;AAE/D,MAAM,iBAAiB,GAAG,CAAC,QAAe,EAAE,QAAuC,EAAE,EAAE,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,EAAC,IAAI,EAAE,KAAK,EAAC,EAAC,EAAE;IACnI,KAAK,CAAC,IAAI,CAAC,GAAG,QAAQ,GAAC,KAAK,CAAC;IAC7B,OAAO,KAAK,CAAC;AACjB,CAAC,EAAE,EAAE,CAAC,CAAC;AAHM,QAAA,iBAAiB,qBAGvB;AAEP,aAAa;AACA,QAAA,cAAc,GAAG;IAC1B,EAAC,KAAK,EAAE,CAAC,GAAC,EAAE,EAAE,IAAI,EAAE,MAAM,EAAC;IAC3B,EAAC,KAAK,EAAE,CAAC,GAAC,EAAE,EAAE,IAAI,EAAE,KAAK,EAAC;IAC1B,EAAC,KAAK,EAAE,EAAE,GAAC,EAAE,EAAE,IAAI,EAAE,IAAI,EAAC;IAC1B,EAAC,KAAK,EAAE,EAAE,GAAC,EAAE,EAAE,IAAI,EAAE,IAAI,EAAC;IAC1B,EAAC,KAAK,EAAE,EAAE,GAAC,EAAE,EAAE,IAAI,EAAE,IAAI,EAAC;IAC1B,EAAC,KAAK,EAAE,EAAE,GAAC,EAAE,EAAE,IAAI,EAAE,IAAI,EAAC;IAC1B,EAAC,KAAK,EAAE,EAAE,GAAC,EAAE,EAAE,IAAI,EAAE,IAAI,EAAC;IAC1B,EAAC,KAAK,EAAE,EAAE,GAAC,EAAE,EAAE,IAAI,EAAE,KAAK,EAAC;IA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AG,CAAC;wBACxD,WAAW,GAAG,yBAAc,CAAC,oBAAoB,EAAE,WAAW,CAAC,CAAC;wBAChE,MAAM;oBACV,KAAK,QAAQ;wBACT,WAAW,GAAG,eAAM,CAAC,WAAW,CAAC,CAAC;wBAClC,MAAM;oBACV,KAAK,WAAW;wBACZ,WAAW,GAAG,oBAAS,CAAC,WAAW,CAAC,CAAC;wBACrC,MAAM;oBACV,QAAQ;iBACX;aACJ;YAED,OAAO,WAAW,CAAC;QACvB,CAAC;QACD,GAAG,KAAI,OAAO,KAAK,CAAA,CAAC,CAAC;KACxB,CAAC,CAAA;AACN,CAAC;AApCD,4CAoCC"}
|
@@ -1,6 +1,7 @@
|
|
1
1
|
export declare const ADD_SETTINGS_FIELD = "ADD_SETTINGS_FIELD";
|
2
2
|
export declare const ADD_SITE_PAGE = "ADD_SITE_PAGE";
|
3
3
|
export declare const UPDATE_THEME = "UPDATE_SITE_THEME";
|
4
|
+
export declare const UPDATE_CONFIG = "UPDATE_CONFIG";
|
4
5
|
export declare const GET_CONFIG_REQUEST = "GET_CONFIG_REQUEST";
|
5
6
|
export declare const GET_CONFIG_SUCCESS = "GET_CONFIG_SUCCESS";
|
6
7
|
export declare const GET_CONFIG_FAILURE = "GET_CONFIG_FAILURE";
|
@@ -33,9 +34,13 @@ export declare const saveConfig: (data: any, configName?: string) => {
|
|
33
34
|
method: any;
|
34
35
|
isRestRequest: boolean;
|
35
36
|
};
|
37
|
+
declare type ConfigState = {
|
38
|
+
data: any;
|
39
|
+
fields: any;
|
40
|
+
};
|
36
41
|
declare const config: {
|
37
|
-
(state:
|
42
|
+
(state: ConfigState, action: any): ConfigState;
|
38
43
|
persist: boolean;
|
39
44
|
};
|
40
45
|
export default config;
|
41
|
-
//# sourceMappingURL=
|
46
|
+
//# sourceMappingURL=index.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/reducers/config/index.tsx"],"names":[],"mappings":"AAIA,eAAO,MAAM,kBAAkB,uBAAuB,CAAC;AACvD,eAAO,MAAM,aAAa,kBAAkB,CAAC;AAC7C,eAAO,MAAM,YAAY,sBAAsB,CAAC;AAChD,eAAO,MAAM,aAAa,kBAAkB,CAAC;AAE7C,eAAO,MAAM,kBAAkB,uBAAuB,CAAC;AACvD,eAAO,MAAM,kBAAkB,uBAAuB,CAAC;AACvD,eAAO,MAAM,kBAAkB,uBAAuB,CAAC;AAEvD,eAAO,MAAM,mBAAmB,wBAAwB,CAAC;AACzD,eAAO,MAAM,mBAAmB,wBAAwB,CAAC;AACzD,eAAO,MAAM,mBAAmB,wBAAwB,CAAC;AAEzD,wBAAgB,gBAAgB,CAAC,KAAK,KAAA,EAAE,UAAU,SAAQ;;;;EAMzD;AAED,eAAO,MAAM,SAAS;;;;;;;;;CAOpB,CAAC;AAEH,eAAO,MAAM,UAAU;;;;;;;;;;CAQrB,CAAC;AAEH,aAAK,WAAW,GAAG;IAAE,IAAI,EAAE,GAAG,CAAC;IAAC,MAAM,EAAE,GAAG,CAAA;CAAE,CAAC;AAE9C,QAAA,MAAM,MAAM;;;CA6BX,CAAA;AAID,eAAe,MAAM,CAAC"}
|
@@ -1,20 +1,22 @@
|
|
1
1
|
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.saveConfig = exports.getConfig = exports.addSettingsField = exports.SAVE_CONFIG_FAILURE = exports.SAVE_CONFIG_SUCCESS = exports.SAVE_CONFIG_REQUEST = exports.GET_CONFIG_FAILURE = exports.GET_CONFIG_SUCCESS = exports.GET_CONFIG_REQUEST = exports.UPDATE_THEME = exports.ADD_SITE_PAGE = exports.ADD_SETTINGS_FIELD = void 0;
|
6
|
+
exports.saveConfig = exports.getConfig = exports.addSettingsField = exports.SAVE_CONFIG_FAILURE = exports.SAVE_CONFIG_SUCCESS = exports.SAVE_CONFIG_REQUEST = exports.GET_CONFIG_FAILURE = exports.GET_CONFIG_SUCCESS = exports.GET_CONFIG_REQUEST = exports.UPDATE_CONFIG = exports.UPDATE_THEME = exports.ADD_SITE_PAGE = exports.ADD_SETTINGS_FIELD = void 0;
|
4
7
|
const redux_rest_1 = require("@mukti107/redux-rest");
|
8
|
+
const lodash_1 = require("lodash");
|
9
|
+
const initialState_1 = __importDefault(require("./initialState"));
|
5
10
|
exports.ADD_SETTINGS_FIELD = 'ADD_SETTINGS_FIELD';
|
6
11
|
exports.ADD_SITE_PAGE = 'ADD_SITE_PAGE';
|
7
12
|
exports.UPDATE_THEME = 'UPDATE_SITE_THEME';
|
13
|
+
exports.UPDATE_CONFIG = 'UPDATE_CONFIG';
|
8
14
|
exports.GET_CONFIG_REQUEST = 'GET_CONFIG_REQUEST';
|
9
15
|
exports.GET_CONFIG_SUCCESS = 'GET_CONFIG_SUCCESS';
|
10
16
|
exports.GET_CONFIG_FAILURE = 'GET_CONFIG_FAILURE';
|
11
17
|
exports.SAVE_CONFIG_REQUEST = 'SAVE_CONFIG_REQUEST';
|
12
18
|
exports.SAVE_CONFIG_SUCCESS = 'SAVE_CONFIG_SUCCESS';
|
13
19
|
exports.SAVE_CONFIG_FAILURE = 'SAVE_CONFIG_FAILURE';
|
14
|
-
let initialState = {
|
15
|
-
fields: {},
|
16
|
-
data: {},
|
17
|
-
};
|
18
20
|
function addSettingsField(field, configName = 'web') {
|
19
21
|
return {
|
20
22
|
type: exports.ADD_SETTINGS_FIELD,
|
@@ -42,11 +44,13 @@ const saveConfig = (data, configName = "web") => ({
|
|
42
44
|
isRestRequest: true,
|
43
45
|
});
|
44
46
|
exports.saveConfig = saveConfig;
|
45
|
-
const config = (state =
|
47
|
+
const config = (state = initialState_1.default, action) => {
|
46
48
|
switch (action.type) {
|
47
49
|
case exports.SAVE_CONFIG_SUCCESS:
|
48
50
|
case exports.GET_CONFIG_SUCCESS:
|
49
51
|
return Object.assign(Object.assign({}, state), { data: Object.assign(Object.assign({}, state.data), { [action.configName]: action.response }) });
|
52
|
+
case exports.UPDATE_CONFIG:
|
53
|
+
return Object.assign(Object.assign({}, state), { data: lodash_1.set(lodash_1.cloneDeep(state.data), action.key, action.value) });
|
50
54
|
case exports.ADD_SETTINGS_FIELD: {
|
51
55
|
const { fields: { [action.configName]: fields = [] } } = state;
|
52
56
|
return Object.assign(Object.assign({}, state), { fields: Object.assign(Object.assign({}, state.fields), { [action.configName]: [...fields, action.field] }) });
|
@@ -57,4 +61,4 @@ const config = (state = initialState, action) => {
|
|
57
61
|
};
|
58
62
|
config.persist = true;
|
59
63
|
exports.default = config;
|
60
|
-
//# sourceMappingURL=
|
64
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/reducers/config/index.tsx"],"names":[],"mappings":";;;;;;AAAA,qDAAgD;AAChD,mCAAwC;AACxC,kEAAgD;AAEnC,QAAA,kBAAkB,GAAG,oBAAoB,CAAC;AAC1C,QAAA,aAAa,GAAG,eAAe,CAAC;AAChC,QAAA,YAAY,GAAG,mBAAmB,CAAC;AACnC,QAAA,aAAa,GAAG,eAAe,CAAC;AAEhC,QAAA,kBAAkB,GAAG,oBAAoB,CAAC;AAC1C,QAAA,kBAAkB,GAAG,oBAAoB,CAAC;AAC1C,QAAA,kBAAkB,GAAG,oBAAoB,CAAC;AAE1C,QAAA,mBAAmB,GAAG,qBAAqB,CAAC;AAC5C,QAAA,mBAAmB,GAAG,qBAAqB,CAAC;AAC5C,QAAA,mBAAmB,GAAG,qBAAqB,CAAC;AAEzD,SAAgB,gBAAgB,CAAC,KAAK,EAAE,UAAU,GAAG,KAAK;IACtD,OAAO;QACH,IAAI,EAAE,0BAAkB;QACxB,UAAU;QACV,KAAK;KACR,CAAA;AACL,CAAC;AAND,4CAMC;AAEM,MAAM,SAAS,GAAG,CAAC,UAAU,GAAI,KAAK,EAAC,E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AC,MAAM,CAAC,UAAU,CAAC,EAAE,CAAC,GAAG,MAAM,EAAE,MAAM,CAAC,KAAK,CAAE,OAErD;SACL;QACD;YACI,OAAO,KAAK,CAAC;KACpB;AACL,CAAC,CAAA;AAED,MAAM,CAAC,OAAO,GAAG,IAAI,CAAC;AAEtB,kBAAe,MAAM,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"initialState.d.ts","sourceRoot":"","sources":["../../../../src/reducers/config/initialState.tsx"],"names":[],"mappings":"AAAA,QAAA,MAAM,kBAAkB;;;CAGvB,CAAA;AAED,eAAe,kBAAkB,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"initialState.js","sourceRoot":"","sources":["../../../../src/reducers/config/initialState.tsx"],"names":[],"mappings":";;AAAA,MAAM,kBAAkB,GAAG;IACvB,MAAM,EAAE,EAAE;IACV,IAAI,EAAC,EAAE;CACV,CAAA;AAED,kBAAe,kBAAkB,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"initialState.native.d.ts","sourceRoot":"","sources":["../../../../src/reducers/config/initialState.native.tsx"],"names":[],"mappings":"AAcA,QAAA,MAAM,kBAAkB;;;CAGvB,CAAA;AAED,eAAe,kBAAkB,CAAC"}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
const react_native_1 = require("react-native");
|
4
|
+
const { AppConstants } = react_native_1.NativeModules;
|
5
|
+
const configDataJSON = AppConstants.getConfigDataJSON();
|
6
|
+
let configData = null;
|
7
|
+
try {
|
8
|
+
configData = JSON.parse(configDataJSON);
|
9
|
+
}
|
10
|
+
catch (e) {
|
11
|
+
console.log('Error redux initial state for config');
|
12
|
+
configData = {};
|
13
|
+
}
|
14
|
+
const configInitialState = {
|
15
|
+
fields: {},
|
16
|
+
data: configData,
|
17
|
+
};
|
18
|
+
exports.default = configInitialState;
|
19
|
+
//# sourceMappingURL=initialState.native.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"initialState.native.js","sourceRoot":"","sources":["../../../../src/reducers/config/initialState.native.tsx"],"names":[],"mappings":";;AAAA,+CAA2C;AAC3C,MAAM,EAAC,YAAY,EAAC,GAAG,4BAAa,CAAC;AAErC,MAAM,cAAc,GAAG,YAAY,CAAC,iBAAiB,EAAE,CAAC;AAExD,IAAI,UAAU,GAAG,IAAI,CAAC;AAEtB,IAAG;IACC,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC;CAC3C;AAAA,OAAM,CAAC,EAAC;IACL,OAAO,CAAC,GAAG,CAAC,sCAAsC,CAAC,CAAC;IACpD,UAAU,GAAG,EAAE,CAAA;CAClB;AAED,MAAM,kBAAkB,GAAG;IACvB,MAAM,EAAE,EAAE;IACV,IAAI,EAAC,UAAU;CAClB,CAAA;AAED,kBAAe,kBAAkB,CAAC"}
|
@@ -23,7 +23,13 @@ export declare const reducers: {
|
|
23
23
|
icons: (state: any, action: any) => any;
|
24
24
|
fonts: (state: any, action: any) => any;
|
25
25
|
config: {
|
26
|
-
(state:
|
26
|
+
(state: {
|
27
|
+
data: any;
|
28
|
+
fields: any;
|
29
|
+
}, action: any): {
|
30
|
+
data: any;
|
31
|
+
fields: any;
|
32
|
+
};
|
27
33
|
persist: boolean;
|
28
34
|
};
|
29
35
|
routes: (state: any, action: any) => any;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/reducers/index.tsx"],"names":[],"mappings":"AAkBA,eAAO,MAAM,eAAe,KAAyB,CAAC;AACtD,eAAO,MAAM,iBAAiB,KAA2B,CAAC;AAC1D,eAAO,MAAM,qBAAqB,KAAgC,CAAC;AACnE,eAAO,MAAM,eAAe,KAAyB,CAAC;AACtD,eAAO,MAAM,iBAAiB,KAA2B,CAAC;AAC1D,eAAO,MAAM,gBAAgB,KAA2B,CAAC;AAEzD,eAAO,MAAM,QAAQ
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/reducers/index.tsx"],"names":[],"mappings":"AAkBA,eAAO,MAAM,eAAe,KAAyB,CAAC;AACtD,eAAO,MAAM,iBAAiB,KAA2B,CAAC;AAC1D,eAAO,MAAM,qBAAqB,KAAgC,CAAC;AACnE,eAAO,MAAM,eAAe,KAAyB,CAAC;AACtD,eAAO,MAAM,iBAAiB,KAA2B,CAAC;AAC1D,eAAO,MAAM,gBAAgB,KAA2B,CAAC;AAEzD,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmBpB,CAAC;AAEF,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AAEvB,eAAe,QAAQ,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/reducers/pages/index.tsx"],"names":[],"mappings":"AAeA,QAAA,MAAM,KAAK;yBAA2C,GAAG;;CA0HxD,CAAC;AAIF,eAAe,KAAK,CAAC"}
|
@@ -10,7 +10,11 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
10
10
|
}
|
11
11
|
return t;
|
12
12
|
};
|
13
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
14
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
15
|
+
};
|
13
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
+
const initialState_1 = __importDefault(require("./initialState"));
|
14
18
|
const REST_LIST_PAGES_SUCCESS = "REST_LIST_PAGES_SUCCESS";
|
15
19
|
const REST_FIND_PAGE_SUCCESS = "REST_FIND_PAGE_SUCCESS";
|
16
20
|
const REST_FIND_ID_PAGE_SUCCESS = "REST_FIND_ID_PAGE_SUCCESS";
|
@@ -21,7 +25,7 @@ const REST_QUERY_PAGE_RUNNING = "REST_QUERY_PAGE_RUNNING";
|
|
21
25
|
const REST_QUERY_PAGE_FAILED = "REST_QUERY_PAGE_FAILED";
|
22
26
|
const PAGE_BLOCKS_UPDATED = "PAGE_BLOCKS_UPDATED";
|
23
27
|
// reducer copied from @mukti107/redux-rest
|
24
|
-
const initialState =
|
28
|
+
const initialState = initialState_1.default;
|
25
29
|
const pages = function (state = initialState, action) {
|
26
30
|
switch (action.type) {
|
27
31
|
case REST_FIND_PAGE_SUCCESS:
|
@@ -95,4 +99,4 @@ const pages = function (state = initialState, action) {
|
|
95
99
|
};
|
96
100
|
pages.persist = true;
|
97
101
|
exports.default = pages;
|
98
|
-
//# sourceMappingURL=
|
102
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/reducers/pages/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kEAA+C;AAE/C,MAAM,uBAAuB,GAAG,yBAAyB,CAAC;AAC1D,MAAM,sBAAsB,GAAG,wBAAwB,CAAC;AACxD,MAAM,yBAAyB,GAAG,2BAA2B,CAAC;AAC9D,MAAM,qBAAqB,GAAG,uBAAuB,CAAC;AACtD,MAAM,wBAAwB,GAAG,0BAA0B,CAAC;AAC5D,MAAM,wBAAwB,GAAG,0BAA0B,CAAC;AAC5D,MAAM,uBAAuB,GAAG,yBAAyB,CAAC;AAC1D,MAAM,sBAAsB,GAAG,wBAAwB,CAAC;AACxD,MAAM,mBAAmB,GAAG,qBAAqB,CAAC;AAElD,2CAA2C;AAE3C,MAAM,YAAY,GAAO,sBAAiB,CAAA;AAC1C,MAAM,KAAK,G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MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;YAC7B,MAAM,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,KAAK,MAAM,CAAC,CAAA;YAEjE,IAAI,SAAS,GAAG,CAAC,CAAC,EAAC;gBACf,MAAM,OAAO,mCAAO,OAAO,CAAC,SAAS,CAAC,KAAE,MAAM,EAAE,SAAS,GAAC,CAAC;gBAC3D,OAAO,CAAC,MAAM,CAAC,SAAS,EAAE,CAAC,EAAE,OAAO,CAAC,CAAA;gBACrC,aAAa,CAAC,MAAM,CAAC,GAAG,OAAO,CAAC;aACnC;YAED,uCACO,KAAK,KACR,UAAU,EAAE,aAAa,EACzB,OAAO,kCACA,cAAc,KACjB,IAAI,EAAE,OAAO,OAEnB;SACL;QACD;YACI,OAAO,KAAK,CAAC;KACpB;AAET,CAAC,CAAC;AAEF,KAAK,CAAC,OAAO,GAAG,IAAI,CAAC;AAErB,kBAAe,KAAK,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"initialState.d.ts","sourceRoot":"","sources":["../../../../src/reducers/pages/initialState.tsx"],"names":[],"mappings":"AAAA,QAAA,MAAM,iBAAiB;;;;;;;CAA4E,CAAA;AAEnG,eAAe,iBAAiB,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"initialState.js","sourceRoot":"","sources":["../../../../src/reducers/pages/initialState.tsx"],"names":[],"mappings":";;AAAA,MAAM,iBAAiB,GAAG,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,SAAS,EAAE,KAAK,EAAE,EAAE,UAAU,EAAE,EAAE,EAAE,SAAS,EAAE,CAAC,EAAE,CAAA;AAEnG,kBAAe,iBAAiB,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"initialState.native.d.ts","sourceRoot":"","sources":["../../../../src/reducers/pages/initialState.native.tsx"],"names":[],"mappings":"AAmBA,QAAA,MAAM,iBAAiB;;;;;;;CAA2F,CAAA;AAElH,eAAe,iBAAiB,CAAC"}
|
@@ -0,0 +1,22 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
const lodash_1 = require("lodash");
|
4
|
+
const react_native_1 = require("react-native");
|
5
|
+
const { AppConstants } = react_native_1.NativeModules;
|
6
|
+
const configDataJSON = AppConstants.getPagesJSON();
|
7
|
+
let pagesArray = [];
|
8
|
+
let pagesById = {};
|
9
|
+
try {
|
10
|
+
pagesArray = JSON.parse(configDataJSON);
|
11
|
+
if (!Array.isArray(pagesArray))
|
12
|
+
throw new Error('Pages must be an array');
|
13
|
+
pagesById = lodash_1.keyBy(pagesArray, 'id');
|
14
|
+
}
|
15
|
+
catch (e) {
|
16
|
+
console.log('Error redux initial state for pages');
|
17
|
+
pagesArray = [];
|
18
|
+
pagesById = {};
|
19
|
+
}
|
20
|
+
const pagesInitialState = { records: { data: pagesArray, isLoading: false }, collection: pagesById, isLoading: 0 };
|
21
|
+
exports.default = pagesInitialState;
|
22
|
+
//# sourceMappingURL=initialState.native.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"initialState.native.js","sourceRoot":"","sources":["../../../../src/reducers/pages/initialState.native.tsx"],"names":[],"mappings":";;AAAA,mCAA+B;AAC/B,+CAA2C;AAC3C,MAAM,EAAC,YAAY,EAAC,GAAG,4BAAa,CAAC;AAErC,MAAM,cAAc,GAAG,YAAY,CAAC,YAAY,EAAE,CAAC;AAEnD,IAAI,UAAU,GAAQ,EAAE,CAAC;AACzB,IAAI,SAAS,GAAQ,EAAE,CAAC;AAExB,IAAG;IACC,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC;IACxC,IAAG,CAAC,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC;QAAE,MAAM,IAAI,KAAK,CAAC,wBAAwB,CAAC,CAAC;IACzE,SAAS,GAAG,cAAK,CAAC,UAAU,EAAE,IAAI,CAAC,CAAC;CACvC;AAAA,OAAM,CAAC,EAAC;IACL,OAAO,CAAC,GAAG,CAAC,qCAAqC,CAAC,CAAC;IACnD,UAAU,GAAG,EAAE,CAAC;IAChB,SAAS,GAAG,EAAE,CAAC;CAClB;AAED,MAAM,iBAAiB,GAAG,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,SAAS,EAAE,KAAK,EAAE,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,EAAE,CAAC,EAAE,CAAA;AAElH,kBAAe,iBAAiB,CAAC"}
|
package/package.json
CHANGED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/adapters/setUserToken/index.ts"],"names":[],"mappings":"AAAA,wBAA8B,YAAY,CAAC,KAAK,EAAE,MAAM,iBAKvD"}
|
@@ -1,22 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
9
|
-
});
|
10
|
-
};
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
12
|
-
function setUserToken(token) {
|
13
|
-
return __awaiter(this, void 0, void 0, function* () {
|
14
|
-
try {
|
15
|
-
localStorage.setItem('token', token);
|
16
|
-
}
|
17
|
-
catch (e) {
|
18
|
-
}
|
19
|
-
});
|
20
|
-
}
|
21
|
-
exports.default = setUserToken;
|
22
|
-
//# sourceMappingURL=index.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/adapters/setUserToken/index.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,SAA8B,YAAY,CAAC,KAAa;;QACpD,IAAG;YACC,YAAY,CAAC,OAAO,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;SACxC;QAAC,OAAM,CAAC,EAAC;SACT;IACL,CAAC;CAAA;AALD,+BAKC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.native.d.ts","sourceRoot":"","sources":["../../../../src/adapters/setUserToken/index.native.ts"],"names":[],"mappings":"AAEA,wBAA8B,YAAY,CAAC,KAAK,EAAE,MAAM,gBAOvD"}
|
@@ -1,28 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
9
|
-
});
|
10
|
-
};
|
11
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
12
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
13
|
-
};
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
15
|
-
const async_storage_1 = __importDefault(require("@react-native-async-storage/async-storage"));
|
16
|
-
function setUserToken(token) {
|
17
|
-
return __awaiter(this, void 0, void 0, function* () {
|
18
|
-
try {
|
19
|
-
yield async_storage_1.default.setItem('@User:token', token);
|
20
|
-
}
|
21
|
-
catch (e) {
|
22
|
-
console.log('Error setting token');
|
23
|
-
}
|
24
|
-
return null;
|
25
|
-
});
|
26
|
-
}
|
27
|
-
exports.default = setUserToken;
|
28
|
-
//# sourceMappingURL=index.native.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.native.js","sourceRoot":"","sources":["../../../../src/adapters/setUserToken/index.native.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,8FAAqE;AAErE,SAA8B,YAAY,CAAC,KAAa;;QACpD,IAAG;YACC,MAAM,uBAAY,CAAC,OAAO,CAAC,aAAa,EAAE,KAAK,CAAC,CAAC;SACpD;QAAC,OAAM,CAAC,EAAC;YACN,OAAO,CAAC,GAAG,CAAC,qBAAqB,CAAC,CAAC;SACtC;QACD,OAAO,IAAI,CAAC;IAChB,CAAC;CAAA;AAPD,+BAOC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/reducers/config.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,kBAAkB,uBAAuB,CAAC;AACvD,eAAO,MAAM,aAAa,kBAAkB,CAAC;AAC7C,eAAO,MAAM,YAAY,sBAAsB,CAAC;AAEhD,eAAO,MAAM,kBAAkB,uBAAuB,CAAC;AACvD,eAAO,MAAM,kBAAkB,uBAAuB,CAAC;AACvD,eAAO,MAAM,kBAAkB,uBAAuB,CAAC;AAEvD,eAAO,MAAM,mBAAmB,wBAAwB,CAAC;AACzD,eAAO,MAAM,mBAAmB,wBAAwB,CAAC;AACzD,eAAO,MAAM,mBAAmB,wBAAwB,CAAC;AAOzD,wBAAgB,gBAAgB,CAAC,KAAK,KAAA,EAAE,UAAU,SAAQ;;;;EAMzD;AAED,eAAO,MAAM,SAAS;;;;;;;;;CAOpB,CAAC;AAEH,eAAO,MAAM,UAAU;;;;;;;;;;CAQrB,CAAC;AAEH,QAAA,MAAM,MAAM;;;CAwBX,CAAA;AAID,eAAe,MAAM,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"config.js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AAE,gBAAG;IACX,aAAa,EAAE,IAAI;CACtB,CAAC,CAAC;AARU,QAAA,UAAU,cAQpB;AAEH,MAAM,MAAM,GAAG,CAAC,KAAK,GAAG,YAAY,EAAE,MAAM,EAAC,EAAE;IAC3C,QAAQ,MAAM,CAAC,IAAI,EAAE;QACjB,KAAK,2BAAmB,CAAC;QACzB,KAAK,0BAAkB;YACnB,uCACO,KAAK,KACR,IAAI,kCACG,KAAK,CAAC,IAAI,KACb,CAAC,MAAM,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC,QAAQ,OAE1C;QACN,KAAK,0BAAkB,CAAC,CAAA;YACpB,MAAM,EAAE,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,UAAU,CAAC,EAAE,MAAM,GAAG,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;YAC/D,uCACO,KAAK,KACR,MAAM,kCACC,KAAK,CAAC,MAAM,KACf,CAAC,MAAM,CAAC,UAAU,CAAC,EAAE,CAAC,GAAG,MAAM,EAAE,MAAM,CAAC,KAAK,CAAE,OAErD;SACL;QACD;YACI,OAAO,KAAK,CAAC;KACpB;AACL,CAAC,CAAA;AAED,MAAM,CAAC,OAAO,GAAG,IAAI,CAAC;AAEtB,kBAAe,MAAM,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"pages.d.ts","sourceRoot":"","sources":["../../../src/reducers/pages.tsx"],"names":[],"mappings":"AAcA,QAAA,MAAM,KAAK;yBAA2C,GAAG;;CA0HxD,CAAC;AAIF,eAAe,KAAK,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"pages.js","sourceRoot":"","sources":["../../../src/reducers/pages.tsx"],"names":[],"mappings":";;;;;;;;;;;;;AACA,MAAM,uBAAuB,GAAG,yBAAyB,CAAC;AAC1D,MAAM,sBAAsB,GAAG,wBAAwB,CAAC;AACxD,MAAM,yBAAyB,GAAG,2BAA2B,CAAC;AAC9D,MAAM,qBAAqB,GAAG,uBAA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