@evlop/commons 1.0.173 → 1.0.175
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/src/reducers/icons.d.ts +1 -1
- package/dist/src/reducers/icons.d.ts.map +1 -1
- package/dist/src/reducers/icons.js +19 -1
- package/dist/src/reducers/icons.js.map +1 -1
- package/dist/src/reducers/index.d.ts +0 -1
- package/dist/src/reducers/index.d.ts.map +1 -1
- package/dist/src/reducers/index.js +0 -2
- package/dist/src/reducers/index.js.map +1 -1
- package/package.json +1 -1
@@ -8,7 +8,7 @@ export declare function registerIcons(icons: any[]): {
|
|
8
8
|
type: string;
|
9
9
|
icons: any[];
|
10
10
|
};
|
11
|
-
export declare const getIcons: (() => Promise<any>) & import("lodash").MemoizedFunction;
|
11
|
+
export declare const getIcons: (() => Promise<any[]>) & import("lodash").MemoizedFunction;
|
12
12
|
export declare function fetchIcons(): (dispatch: Function) => Promise<void>;
|
13
13
|
declare const _default: (state: any, action: any) => any;
|
14
14
|
export default _default;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../../../src/reducers/icons.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,aAAa,kBAAkB,CAAC;AAC7C,eAAO,MAAM,cAAc,mBAAmB,CAAC;AAE/C,wBAAgB,YAAY,CAAC,IAAI,EAAE,GAAG;;;EAKrC;AAED,wBAAgB,aAAa,CAAC,KAAK,EAAE,GAAG,EAAE;;;EAKzC;AAED,eAAO,MAAM,QAAQ,
|
1
|
+
{"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../../../src/reducers/icons.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,aAAa,kBAAkB,CAAC;AAC7C,eAAO,MAAM,cAAc,mBAAmB,CAAC;AAE/C,wBAAgB,YAAY,CAAC,IAAI,EAAE,GAAG;;;EAKrC;AAED,wBAAgB,aAAa,CAAC,KAAK,EAAE,GAAG,EAAE;;;EAKzC;AAED,eAAO,MAAM,QAAQ,4DAalB,CAAA;AAEH,wBAAgB,UAAU,eACE,QAAQ,mBAInC;;AAKD,wBAeC"}
|
@@ -8,6 +8,17 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
8
8
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
9
9
|
});
|
10
10
|
};
|
11
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
12
|
+
var t = {};
|
13
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
14
|
+
t[p] = s[p];
|
15
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
16
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
17
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
18
|
+
t[p[i]] = s[p[i]];
|
19
|
+
}
|
20
|
+
return t;
|
21
|
+
};
|
11
22
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
12
23
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
13
24
|
};
|
@@ -31,7 +42,14 @@ function registerIcons(icons) {
|
|
31
42
|
};
|
32
43
|
}
|
33
44
|
exports.registerIcons = registerIcons;
|
34
|
-
exports.getIcons = lodash_1.memoize(() => axios_1.default.get('https://cdn.evlop.com/assets-info/icons.json?v=9').then(r =>
|
45
|
+
exports.getIcons = lodash_1.memoize(() => axios_1.default.get('https://cdn.evlop.com/assets-info/icons.min.json?v=9').then(r => {
|
46
|
+
const iconsMin = r.data;
|
47
|
+
const icons = Object.keys(iconsMin).reduce((acc, key) => {
|
48
|
+
const _a = iconsMin[key], { c } = _a, rest = __rest(_a, ["c"]);
|
49
|
+
return [...acc, ...Object.keys(c).map((name) => (Object.assign(Object.assign({ id: `${key}:${name}` }, rest), { n: name, c: c[name] })))];
|
50
|
+
}, []);
|
51
|
+
return icons;
|
52
|
+
}));
|
35
53
|
function fetchIcons() {
|
36
54
|
return (dispatch) => __awaiter(this, void 0, void 0, function* () {
|
37
55
|
const icons = yield exports.getIcons();
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"icons.js","sourceRoot":"","sources":["../../../src/reducers/icons.tsx"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"icons.js","sourceRoot":"","sources":["../../../src/reducers/icons.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mCAAwD;AACxD,6DAAqC;AAExB,QAAA,aAAa,GAAG,eAAe,CAAC;AAChC,QAAA,cAAc,GAAG,gBAAgB,CAAC;AAE/C,SAAgB,YAAY,CAAC,IAAS;IAClC,OAAO;QACH,IAAI,EAAE,qBAAa;QACnB,IAAI;KACP,CAAC;AACN,CAAC;AALD,oCAKC;AAED,SAAgB,aAAa,CAAC,KAAY;IACtC,OAAO;QACH,IAAI,EAAE,sBAAc;QACpB,KAAK;KACR,CAAC;AACN,CAAC;AALD,sCAKC;AAEY,QAAA,QAAQ,GAAG,gBAAO,CAAC,GAAE,EAAE,CAAA,eAAK,CAAC,GAAG,CAAC,sDAAsD,CAAC,CAAC,IAAI,CAAC,CAAC,CAAA,EAAE;IAC1G,MAAM,QAAQ,GAAG,CAAC,CAAC,IAAI,CAAC;IACxB,MAAM,KAAK,GAAG,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,GAAG,EAAC,EAAE;QACnD,MAAM,KAAe,QAAQ,CAAC,GAAG,CAAC,EAA5B,EAAC,CAAC,OAA0B,EAArB,IAAI,cAAX,KAAY,CAAgB,CAAC;QACnC,OAAO,CAAC,GAAG,GAAG,EAAE,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAC,EAAE,CAAA,+BAC1C,EAAE,EAAE,GAAG,GAAG,IAAI,IAAI,EAAE,IACjB,IAAI,KACP,CAAC,EAAE,IAAI,EACP,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,IACZ,CAAC,CAAC,CAAA;IACR,CAAC,EACA,EAAE,CAAC,CAAC;IACL,OAAO,KAAK,CAAC;AACjB,CAAC,CAAC,CAAC,CAAA;AAEH,SAAgB,UAAU;IACtB,OAAO,CAAO,QAAkB,EAAC,EAAE;QAC/B,MAAM,KAAK,GAAG,MAAM,gBAAQ,EAAE,CAAC;QAC/B,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,CAAC;IACnC,CAAC,CAAA,CAAA;AACL,CAAC;AALD,gCAKC;AAED,IAAI,YAAY,GAAO,EACtB,CAAC;AAEF,kBAAe,CAAC,KAAK,GAAG,YAAY,EAAE,MAAM,EAAC,EAAE;IAC3C,QAAQ,MAAM,CAAC,IAAI,EAAE;QACjB,KAAK,qBAAa,CAAC,CAAA;YACf,MAAM,QAAQ,GAAG,eAAM,CAAC,CAAC,GAAG,KAAK,EAAE,MAAM,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,CAAA;YACtD,eAAM,CAAC,QAAQ,EAAE,cAAK,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC,CAAC;YACxC,OAAO,QAAQ,CAAC;SACnB;QACD,KAAK,sBAAc,CAAC,CAAA;YAChB,MAAM,QAAQ,GAAG,eAAM,CAAC,CAAC,GAAG,KAAK,EAAE,GAAG,MAAM,CAAC,KAAK,CAAC,EAAE,IAAI,CAAC,CAAA;YAC1D,eAAM,CAAC,QAAQ,EAAE,cAAK,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC,CAAC;YACxC,OAAO,QAAQ,CAAC;SACnB;QACD;YACI,OAAO,KAAK,CAAC;KACpB;AACL,CAAC,CAAA"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/reducers/index.tsx"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/reducers/index.tsx"],"names":[],"mappings":"AAmBA,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoBpB,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,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAE1B,eAAe,QAAQ,CAAC"}
|
@@ -14,7 +14,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
14
|
};
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
16
16
|
exports.reducers = exports.domainCollection = exports.layoutsCollection = exports.menusCollection = exports.collectionsCollection = exports.pluginsCollection = exports.pagesCollection = void 0;
|
17
|
-
const redux_form_1 = require("redux-form");
|
18
17
|
const redux_rest_1 = require("@mukti107/redux-rest");
|
19
18
|
const config_1 = __importDefault(require("./config"));
|
20
19
|
const components_1 = __importDefault(require("./components"));
|
@@ -45,7 +44,6 @@ exports.reducers = {
|
|
45
44
|
domains: exports.domainCollection.reducer,
|
46
45
|
layouts: exports.layoutsCollection.reducer,
|
47
46
|
adminMenus: adminMenus_1.default,
|
48
|
-
form: redux_form_1.reducer,
|
49
47
|
user: user_1.default,
|
50
48
|
session: session_1.default,
|
51
49
|
context: context_1.default,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/reducers/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/reducers/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAuD;AACvD,sDAA8B;AAC9B,8DAAsC;AACtC,wDAAgC;AAChC,wDAAgC;AAChC,kDAA0B;AAC1B,sDAA8B;AAC9B,oDAA4B;AAC5B,sDAA8B;AAC9B,oEAA4C;AAC5C,oDAA4B;AAC5B,oDAA4B;AAC5B,oDAA4B;AAC5B,8DAAsC;AACtC,8DAAsC;AACtC,8DAAsC;AAEtC,MAAM,cAAc,GAAG,8BAAiB,CAAC;AAE5B,QAAA,eAAe,GAAG,cAAc,CAAC,MAAM,CAAC,CAAC;AACzC,QAAA,iBAAiB,GAAG,cAAc,CAAC,QAAQ,CAAC,CAAC;AAC7C,QAAA,qBAAqB,GAAG,cAAc,CAAC,aAAa,CAAC,CAAC;AACtD,QAAA,eAAe,GAAG,cAAc,CAAC,MAAM,CAAC,CAAC;AACzC,QAAA,iBAAiB,GAAG,cAAc,CAAC,QAAQ,CAAC,CAAC;AAC7C,QAAA,gBAAgB,GAAG,cAAc,CAAC,QAAQ,CAAC,CAAC;AAE5C,QAAA,QAAQ,GAAG;IACpB,KAAK,EAAL,eAAK;IACL,KAAK,EAAE,uBAAe,CAAC,OAAO;IAC9B,OAAO,EAAE,yBAAiB,CAAC,OAAO;IAClC,OAAO,EAAE,wBAAgB,CAAC,OAAO;IACjC,OAAO,EAAE,yBAAiB,CAAC,OAAO;IAClC,UAAU,EAAV,oBAAU;IACV,IAAI,EAAJ,cAAI;IACJ,OAAO,EAAP,iBAAO;IACP,OAAO,EAAP,iBAAO;IACP,UAAU,EAAV,oBAAU;IACV,UAAU,EAAV,oBAAU;IACV,UAAU,EAAV,oBAAU;IACV,KAAK,EAAL,eAAK;IACL,KAAK,EAAL,eAAK;IACL,MAAM,EAAN,gBAAM;IACN,MAAM,EAAN,gBAAM;IACN,MAAM,EAAN,gBAAM;IACN,aAAa,EAAb,uBAAa;IACb,KAAK,EAAL,eAAK;CACR,CAAC;AAEF,+CAA6B;AAC7B,+CAA6B;AAC7B,+CAA6B;AAC7B,+CAA6B;AAC7B,2CAAyB;AACzB,4CAA0B;AAC1B,0CAAwB;AACxB,0CAAwB;AACxB,0CAAwB;AACxB,0CAAwB;AACxB,2CAAyB;AACzB,kDAAgC;AAChC,2CAAyB;AACzB,yCAAuB;AACvB,4CAA0B;AAE1B,kBAAe,gBAAQ,CAAC"}
|