@educabot/educablocks-cosmos 0.1.21 → 0.1.23
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/src/cosmos.js +12 -12
- package/dist/src/cosmos.js.map +1 -1
- package/dist/src/types.js +0 -6
- package/dist/src/types.js.map +1 -1
- package/package.json +1 -1
- package/src/cosmos.ts +12 -12
- package/src/types.ts +12 -10
package/dist/src/cosmos.js
CHANGED
|
@@ -21,7 +21,7 @@ const getCosmos = (key, domain = '', newEnv = '') => {
|
|
|
21
21
|
|| hostname === customers_1.customers.EDUCABOT[environment].cosmosBackUrl
|
|
22
22
|
|| hostname === customers_1.customers.EDUCABOT[environment].cosmosFrontAnimationsUrl
|
|
23
23
|
|| hostname === customers_1.customers.EDUCABOT[environment].cosmosFrontGamesUrl
|
|
24
|
-
|| hostname === customers_1.customers.EDUCABOT[environment].
|
|
24
|
+
|| hostname === customers_1.customers.EDUCABOT[environment].cosmosTrainUrl)) {
|
|
25
25
|
return (typeof customers_1.customers.EDUCABOT[environment][key] !== 'undefined') ? customers_1.customers.EDUCABOT[environment][key] : getDefaultCosmos(key);
|
|
26
26
|
///////// CODIT /////////
|
|
27
27
|
}
|
|
@@ -29,7 +29,7 @@ const getCosmos = (key, domain = '', newEnv = '') => {
|
|
|
29
29
|
&& (hostname === customers_1.customers.CODIT[environment].cosmosFrontUrl
|
|
30
30
|
|| hostname === customers_1.customers.CODIT[environment].cosmosBackUrl
|
|
31
31
|
|| hostname === customers_1.customers.CODIT[environment].cosmosFrontAnimationsUrl
|
|
32
|
-
|| hostname === customers_1.customers.CODIT[environment].
|
|
32
|
+
|| hostname === customers_1.customers.CODIT[environment].cosmosTrainUrl)) {
|
|
33
33
|
return (typeof customers_1.customers.CODIT[environment][key] !== 'undefined') ? customers_1.customers.CODIT[environment][key] : getDefaultCosmos(key);
|
|
34
34
|
///////// COPA_ROBOTICA /////////
|
|
35
35
|
}
|
|
@@ -37,7 +37,7 @@ const getCosmos = (key, domain = '', newEnv = '') => {
|
|
|
37
37
|
&& (hostname === customers_1.customers.COPA_ROBOTICA[environment].cosmosFrontUrl
|
|
38
38
|
|| hostname === customers_1.customers.COPA_ROBOTICA[environment].cosmosBackUrl
|
|
39
39
|
|| hostname === customers_1.customers.COPA_ROBOTICA[environment].cosmosFrontAnimationsUrl
|
|
40
|
-
|| hostname === customers_1.customers.COPA_ROBOTICA[environment].
|
|
40
|
+
|| hostname === customers_1.customers.COPA_ROBOTICA[environment].cosmosTrainUrl)) {
|
|
41
41
|
return (typeof customers_1.customers.COPA_ROBOTICA[environment][key] !== 'undefined') ? customers_1.customers.COPA_ROBOTICA[environment][key] : getDefaultCosmos(key);
|
|
42
42
|
///////// REV_ROBOTICS /////////
|
|
43
43
|
}
|
|
@@ -45,7 +45,7 @@ const getCosmos = (key, domain = '', newEnv = '') => {
|
|
|
45
45
|
&& (hostname === customers_1.customers.REV_ROBOTICS[environment].cosmosFrontUrl
|
|
46
46
|
|| hostname === customers_1.customers.REV_ROBOTICS[environment].cosmosBackUrl
|
|
47
47
|
|| hostname === customers_1.customers.REV_ROBOTICS[environment].cosmosFrontAnimationsUrl
|
|
48
|
-
|| hostname === customers_1.customers.REV_ROBOTICS[environment].
|
|
48
|
+
|| hostname === customers_1.customers.REV_ROBOTICS[environment].cosmosTrainUrl)) {
|
|
49
49
|
return (typeof customers_1.customers.REV_ROBOTICS[environment][key] !== 'undefined') ? customers_1.customers.REV_ROBOTICS[environment][key] : getDefaultCosmos(key);
|
|
50
50
|
///////// CREATEC /////////
|
|
51
51
|
}
|
|
@@ -53,7 +53,7 @@ const getCosmos = (key, domain = '', newEnv = '') => {
|
|
|
53
53
|
&& (hostname === customers_1.customers.CREATEC[environment].cosmosFrontUrl
|
|
54
54
|
|| hostname === customers_1.customers.CREATEC[environment].cosmosBackUrl
|
|
55
55
|
|| hostname === customers_1.customers.CREATEC[environment].cosmosFrontAnimationsUrl
|
|
56
|
-
|| hostname === customers_1.customers.CREATEC[environment].
|
|
56
|
+
|| hostname === customers_1.customers.CREATEC[environment].cosmosTrainUrl)) {
|
|
57
57
|
return (typeof customers_1.customers.CREATEC[environment][key] !== 'undefined') ? customers_1.customers.CREATEC[environment][key] : getDefaultCosmos(key);
|
|
58
58
|
///////// FIFA /////////
|
|
59
59
|
}
|
|
@@ -61,7 +61,7 @@ const getCosmos = (key, domain = '', newEnv = '') => {
|
|
|
61
61
|
&& (hostname === customers_1.customers.FIFA[environment].cosmosFrontUrl
|
|
62
62
|
|| hostname === customers_1.customers.FIFA[environment].cosmosBackUrl
|
|
63
63
|
|| hostname === customers_1.customers.FIFA[environment].cosmosFrontAnimationsUrl
|
|
64
|
-
|| hostname === customers_1.customers.FIFA[environment].
|
|
64
|
+
|| hostname === customers_1.customers.FIFA[environment].cosmosTrainUrl)) {
|
|
65
65
|
return (typeof customers_1.customers.FIFA[environment][key] !== 'undefined') ? customers_1.customers.FIFA[environment][key] : getDefaultCosmos(key);
|
|
66
66
|
///////// FIFA FOUNDATION /////////
|
|
67
67
|
}
|
|
@@ -69,7 +69,7 @@ const getCosmos = (key, domain = '', newEnv = '') => {
|
|
|
69
69
|
&& (hostname === customers_1.customers.FIFA_FOUNDATION[environment].cosmosFrontUrl
|
|
70
70
|
|| hostname === customers_1.customers.FIFA_FOUNDATION[environment].cosmosBackUrl
|
|
71
71
|
|| hostname === customers_1.customers.FIFA_FOUNDATION[environment].cosmosFrontAnimationsUrl
|
|
72
|
-
|| hostname === customers_1.customers.FIFA_FOUNDATION[environment].
|
|
72
|
+
|| hostname === customers_1.customers.FIFA_FOUNDATION[environment].cosmosTrainUrl)) {
|
|
73
73
|
return (typeof customers_1.customers.FIFA_FOUNDATION[environment][key] !== 'undefined') ? customers_1.customers.FIFA_FOUNDATION[environment][key] : getDefaultCosmos(key);
|
|
74
74
|
///////// CREABOTS /////////
|
|
75
75
|
}
|
|
@@ -77,7 +77,7 @@ const getCosmos = (key, domain = '', newEnv = '') => {
|
|
|
77
77
|
&& (hostname === customers_1.customers.CREABOTS[environment].cosmosFrontUrl
|
|
78
78
|
|| hostname === customers_1.customers.CREABOTS[environment].cosmosBackUrl
|
|
79
79
|
|| hostname === customers_1.customers.CREABOTS[environment].cosmosFrontAnimationsUrl
|
|
80
|
-
|| hostname === customers_1.customers.CREABOTS[environment].
|
|
80
|
+
|| hostname === customers_1.customers.CREABOTS[environment].cosmosTrainUrl)) {
|
|
81
81
|
return (typeof customers_1.customers.CREABOTS[environment][key] !== 'undefined') ? customers_1.customers.CREABOTS[environment][key] : getDefaultCosmos(key);
|
|
82
82
|
///////// CREABOTS_LANDING /////////
|
|
83
83
|
}
|
|
@@ -85,7 +85,7 @@ const getCosmos = (key, domain = '', newEnv = '') => {
|
|
|
85
85
|
&& (hostname === customers_1.customers.CREABOTS_LANDING[environment].cosmosFrontUrl
|
|
86
86
|
|| hostname === customers_1.customers.CREABOTS_LANDING[environment].cosmosBackUrl
|
|
87
87
|
|| hostname === customers_1.customers.CREABOTS_LANDING[environment].cosmosFrontAnimationsUrl
|
|
88
|
-
|| hostname === customers_1.customers.CREABOTS_LANDING[environment].
|
|
88
|
+
|| hostname === customers_1.customers.CREABOTS_LANDING[environment].cosmosTrainUrl)) {
|
|
89
89
|
return (typeof customers_1.customers.CREABOTS_LANDING[environment][key] !== 'undefined') ? customers_1.customers.CREABOTS_LANDING[environment][key] : getDefaultCosmos(key);
|
|
90
90
|
///////// TICMAS /////////
|
|
91
91
|
}
|
|
@@ -93,7 +93,7 @@ const getCosmos = (key, domain = '', newEnv = '') => {
|
|
|
93
93
|
&& (hostname === customers_1.customers.TICMAS[environment].cosmosFrontUrl
|
|
94
94
|
|| hostname === customers_1.customers.TICMAS[environment].cosmosBackUrl
|
|
95
95
|
|| hostname === customers_1.customers.TICMAS[environment].cosmosFrontAnimationsUrl
|
|
96
|
-
|| hostname === customers_1.customers.TICMAS[environment].
|
|
96
|
+
|| hostname === customers_1.customers.TICMAS[environment].cosmosTrainUrl)) {
|
|
97
97
|
return (typeof customers_1.customers.TICMAS[environment][key] !== 'undefined') ? customers_1.customers.TICMAS[environment][key] : getDefaultCosmos(key);
|
|
98
98
|
///////// TICMAS_ROBOTICA /////////
|
|
99
99
|
}
|
|
@@ -101,7 +101,7 @@ const getCosmos = (key, domain = '', newEnv = '') => {
|
|
|
101
101
|
&& (hostname === customers_1.customers.TICMAS_ROBOTICA[environment].cosmosFrontUrl
|
|
102
102
|
|| hostname === customers_1.customers.TICMAS_ROBOTICA[environment].cosmosBackUrl
|
|
103
103
|
|| hostname === customers_1.customers.TICMAS_ROBOTICA[environment].cosmosFrontAnimationsUrl
|
|
104
|
-
|| hostname === customers_1.customers.TICMAS_ROBOTICA[environment].
|
|
104
|
+
|| hostname === customers_1.customers.TICMAS_ROBOTICA[environment].cosmosTrainUrl)) {
|
|
105
105
|
return (typeof customers_1.customers.TICMAS_ROBOTICA[environment][key] !== 'undefined') ? customers_1.customers.TICMAS_ROBOTICA[environment][key] : getDefaultCosmos(key);
|
|
106
106
|
///////// ROBOTS 2 /////////
|
|
107
107
|
}
|
|
@@ -109,7 +109,7 @@ const getCosmos = (key, domain = '', newEnv = '') => {
|
|
|
109
109
|
&& (hostname === customers_1.customers.ROBOTS_2[environment].cosmosFrontUrl
|
|
110
110
|
|| hostname === customers_1.customers.ROBOTS_2[environment].cosmosBackUrl
|
|
111
111
|
|| hostname === customers_1.customers.ROBOTS_2[environment].cosmosFrontAnimationsUrl
|
|
112
|
-
|| hostname === customers_1.customers.ROBOTS_2[environment].
|
|
112
|
+
|| hostname === customers_1.customers.ROBOTS_2[environment].cosmosTrainUrl)) {
|
|
113
113
|
return (typeof customers_1.customers.ROBOTS_2[environment][key] !== 'undefined') ? customers_1.customers.ROBOTS_2[environment][key] : getDefaultCosmos(key);
|
|
114
114
|
///////// DEFAULT /////////
|
|
115
115
|
}
|
package/dist/src/cosmos.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cosmos.js","sourceRoot":"","sources":["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AC,OAAO,qBAAS,CAAC,eAAe,CAAC,WAAW,CAAC,CAAC,GAAG,CAAC,KAAK,WAAW,CAAC,CAAC,CAAC,CAAC,qBAAS,CAAC,eAAe,CAAC,WAAW,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,gBAAgB,CAAC,GAAG,CAAC,CAAC;QAElJ,4BAA4B;KAC7B;SAAM,IAAI,qBAAS,CAAC,QAAQ,CAAC,WAAW,CAAC;WACrC,CACD,QAAQ,KAAK,qBAAS,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,cAAc;eACxD,QAAQ,KAAK,qBAAS,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,aAAa;eAC1D,QAAQ,KAAK,qBAAS,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,wBAAwB;eACrE,QAAQ,KAAK,qBAAS,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,cAAc,CAC/D,EACD;QACA,OAAO,CAAC,OAAO,qBAAS,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,GAAG,CAAC,KAAK,WAAW,CAAC,CAAC,CAAC,CAAC,qBAAS,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,gBAAgB,CAAC,GAAG,CAAC,CAAC;QAEpI,2BAA2B;KAC5B;SAAM;QACL,OAAO,gBAAgB,CAAC,GAAG,CAAC,CAAA;KAC7B;AACH,CAAC,CAAA;AA/IY,QAAA,SAAS,aA+IrB"}
|
package/dist/src/types.js
CHANGED
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
var ENVIRONMENT_TYPE;
|
|
4
|
-
(function (ENVIRONMENT_TYPE) {
|
|
5
|
-
ENVIRONMENT_TYPE["development"] = "development";
|
|
6
|
-
ENVIRONMENT_TYPE["staging"] = "staging";
|
|
7
|
-
ENVIRONMENT_TYPE["production"] = "production";
|
|
8
|
-
})(ENVIRONMENT_TYPE || (ENVIRONMENT_TYPE = {}));
|
|
9
3
|
var CUSTOMER_TYPE;
|
|
10
4
|
(function (CUSTOMER_TYPE) {
|
|
11
5
|
CUSTOMER_TYPE["DEFAULT"] = "DEFAULT";
|
package/dist/src/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":";;AA+FA,IAAK,
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":";;AA+FA,IAAK,aAcJ;AAdD,WAAK,aAAa;IAChB,oCAAmB,CAAA;IACnB,sCAAqB,CAAA;IACrB,gCAAe,CAAA;IACf,gDAA+B,CAAA;IAC/B,oCAAmB,CAAA;IACnB,8CAA6B,CAAA;IAC7B,8BAAa,CAAA;IACb,oDAAmC,CAAA;IACnC,sCAAqB,CAAA;IACrB,sDAAqC,CAAA;IACrC,kCAAiB,CAAA;IACjB,oDAAmC,CAAA;IACnC,sCAAqB,CAAA;AACvB,CAAC,EAdI,aAAa,KAAb,aAAa,QAcjB"}
|
package/package.json
CHANGED
package/src/cosmos.ts
CHANGED
|
@@ -22,7 +22,7 @@ export const getCosmos = (key: string, domain: string = '', newEnv: string = '')
|
|
|
22
22
|
|| hostname === customers.EDUCABOT[environment].cosmosBackUrl
|
|
23
23
|
|| hostname === customers.EDUCABOT[environment].cosmosFrontAnimationsUrl
|
|
24
24
|
|| hostname === customers.EDUCABOT[environment].cosmosFrontGamesUrl
|
|
25
|
-
|| hostname === customers.EDUCABOT[environment].
|
|
25
|
+
|| hostname === customers.EDUCABOT[environment].cosmosTrainUrl
|
|
26
26
|
)
|
|
27
27
|
) {
|
|
28
28
|
return (typeof customers.EDUCABOT[environment][key] !== 'undefined') ? customers.EDUCABOT[environment][key] : getDefaultCosmos(key);
|
|
@@ -33,7 +33,7 @@ export const getCosmos = (key: string, domain: string = '', newEnv: string = '')
|
|
|
33
33
|
hostname === customers.CODIT[environment].cosmosFrontUrl
|
|
34
34
|
|| hostname === customers.CODIT[environment].cosmosBackUrl
|
|
35
35
|
|| hostname === customers.CODIT[environment].cosmosFrontAnimationsUrl
|
|
36
|
-
|| hostname === customers.CODIT[environment].
|
|
36
|
+
|| hostname === customers.CODIT[environment].cosmosTrainUrl
|
|
37
37
|
|
|
38
38
|
)
|
|
39
39
|
) {
|
|
@@ -45,7 +45,7 @@ export const getCosmos = (key: string, domain: string = '', newEnv: string = '')
|
|
|
45
45
|
hostname === customers.COPA_ROBOTICA[environment].cosmosFrontUrl
|
|
46
46
|
|| hostname === customers.COPA_ROBOTICA[environment].cosmosBackUrl
|
|
47
47
|
|| hostname === customers.COPA_ROBOTICA[environment].cosmosFrontAnimationsUrl
|
|
48
|
-
|| hostname === customers.COPA_ROBOTICA[environment].
|
|
48
|
+
|| hostname === customers.COPA_ROBOTICA[environment].cosmosTrainUrl
|
|
49
49
|
)
|
|
50
50
|
) {
|
|
51
51
|
return (typeof customers.COPA_ROBOTICA[environment][key] !== 'undefined') ? customers.COPA_ROBOTICA[environment][key] : getDefaultCosmos(key);
|
|
@@ -56,7 +56,7 @@ export const getCosmos = (key: string, domain: string = '', newEnv: string = '')
|
|
|
56
56
|
hostname === customers.REV_ROBOTICS[environment].cosmosFrontUrl
|
|
57
57
|
|| hostname === customers.REV_ROBOTICS[environment].cosmosBackUrl
|
|
58
58
|
|| hostname === customers.REV_ROBOTICS[environment].cosmosFrontAnimationsUrl
|
|
59
|
-
|| hostname === customers.REV_ROBOTICS[environment].
|
|
59
|
+
|| hostname === customers.REV_ROBOTICS[environment].cosmosTrainUrl
|
|
60
60
|
)
|
|
61
61
|
) {
|
|
62
62
|
return (typeof customers.REV_ROBOTICS[environment][key] !== 'undefined') ? customers.REV_ROBOTICS[environment][key] : getDefaultCosmos(key);
|
|
@@ -67,7 +67,7 @@ export const getCosmos = (key: string, domain: string = '', newEnv: string = '')
|
|
|
67
67
|
hostname === customers.CREATEC[environment].cosmosFrontUrl
|
|
68
68
|
|| hostname === customers.CREATEC[environment].cosmosBackUrl
|
|
69
69
|
|| hostname === customers.CREATEC[environment].cosmosFrontAnimationsUrl
|
|
70
|
-
|| hostname === customers.CREATEC[environment].
|
|
70
|
+
|| hostname === customers.CREATEC[environment].cosmosTrainUrl
|
|
71
71
|
)
|
|
72
72
|
) {
|
|
73
73
|
return (typeof customers.CREATEC[environment][key] !== 'undefined') ? customers.CREATEC[environment][key] : getDefaultCosmos(key);
|
|
@@ -78,7 +78,7 @@ export const getCosmos = (key: string, domain: string = '', newEnv: string = '')
|
|
|
78
78
|
hostname === customers.FIFA[environment].cosmosFrontUrl
|
|
79
79
|
|| hostname === customers.FIFA[environment].cosmosBackUrl
|
|
80
80
|
|| hostname === customers.FIFA[environment].cosmosFrontAnimationsUrl
|
|
81
|
-
|| hostname === customers.FIFA[environment].
|
|
81
|
+
|| hostname === customers.FIFA[environment].cosmosTrainUrl
|
|
82
82
|
)
|
|
83
83
|
) {
|
|
84
84
|
return (typeof customers.FIFA[environment][key] !== 'undefined') ? customers.FIFA[environment][key] : getDefaultCosmos(key);
|
|
@@ -89,7 +89,7 @@ export const getCosmos = (key: string, domain: string = '', newEnv: string = '')
|
|
|
89
89
|
hostname === customers.FIFA_FOUNDATION[environment].cosmosFrontUrl
|
|
90
90
|
|| hostname === customers.FIFA_FOUNDATION[environment].cosmosBackUrl
|
|
91
91
|
|| hostname === customers.FIFA_FOUNDATION[environment].cosmosFrontAnimationsUrl
|
|
92
|
-
|| hostname === customers.FIFA_FOUNDATION[environment].
|
|
92
|
+
|| hostname === customers.FIFA_FOUNDATION[environment].cosmosTrainUrl
|
|
93
93
|
)
|
|
94
94
|
) {
|
|
95
95
|
return (typeof customers.FIFA_FOUNDATION[environment][key] !== 'undefined') ? customers.FIFA_FOUNDATION[environment][key] : getDefaultCosmos(key);
|
|
@@ -100,7 +100,7 @@ export const getCosmos = (key: string, domain: string = '', newEnv: string = '')
|
|
|
100
100
|
hostname === customers.CREABOTS[environment].cosmosFrontUrl
|
|
101
101
|
|| hostname === customers.CREABOTS[environment].cosmosBackUrl
|
|
102
102
|
|| hostname === customers.CREABOTS[environment].cosmosFrontAnimationsUrl
|
|
103
|
-
|| hostname === customers.CREABOTS[environment].
|
|
103
|
+
|| hostname === customers.CREABOTS[environment].cosmosTrainUrl
|
|
104
104
|
)
|
|
105
105
|
) {
|
|
106
106
|
return (typeof customers.CREABOTS[environment][key] !== 'undefined') ? customers.CREABOTS[environment][key] : getDefaultCosmos(key);
|
|
@@ -111,7 +111,7 @@ export const getCosmos = (key: string, domain: string = '', newEnv: string = '')
|
|
|
111
111
|
hostname === customers.CREABOTS_LANDING[environment].cosmosFrontUrl
|
|
112
112
|
|| hostname === customers.CREABOTS_LANDING[environment].cosmosBackUrl
|
|
113
113
|
|| hostname === customers.CREABOTS_LANDING[environment].cosmosFrontAnimationsUrl
|
|
114
|
-
|| hostname === customers.CREABOTS_LANDING[environment].
|
|
114
|
+
|| hostname === customers.CREABOTS_LANDING[environment].cosmosTrainUrl
|
|
115
115
|
)
|
|
116
116
|
) {
|
|
117
117
|
return (typeof customers.CREABOTS_LANDING[environment][key] !== 'undefined') ? customers.CREABOTS_LANDING[environment][key] : getDefaultCosmos(key);
|
|
@@ -122,7 +122,7 @@ export const getCosmos = (key: string, domain: string = '', newEnv: string = '')
|
|
|
122
122
|
hostname === customers.TICMAS[environment].cosmosFrontUrl
|
|
123
123
|
|| hostname === customers.TICMAS[environment].cosmosBackUrl
|
|
124
124
|
|| hostname === customers.TICMAS[environment].cosmosFrontAnimationsUrl
|
|
125
|
-
|| hostname === customers.TICMAS[environment].
|
|
125
|
+
|| hostname === customers.TICMAS[environment].cosmosTrainUrl
|
|
126
126
|
)
|
|
127
127
|
) {
|
|
128
128
|
return (typeof customers.TICMAS[environment][key] !== 'undefined') ? customers.TICMAS[environment][key] : getDefaultCosmos(key);
|
|
@@ -133,7 +133,7 @@ export const getCosmos = (key: string, domain: string = '', newEnv: string = '')
|
|
|
133
133
|
hostname === customers.TICMAS_ROBOTICA[environment].cosmosFrontUrl
|
|
134
134
|
|| hostname === customers.TICMAS_ROBOTICA[environment].cosmosBackUrl
|
|
135
135
|
|| hostname === customers.TICMAS_ROBOTICA[environment].cosmosFrontAnimationsUrl
|
|
136
|
-
|| hostname === customers.TICMAS_ROBOTICA[environment].
|
|
136
|
+
|| hostname === customers.TICMAS_ROBOTICA[environment].cosmosTrainUrl
|
|
137
137
|
)
|
|
138
138
|
) {
|
|
139
139
|
return (typeof customers.TICMAS_ROBOTICA[environment][key] !== 'undefined') ? customers.TICMAS_ROBOTICA[environment][key] : getDefaultCosmos(key);
|
|
@@ -144,7 +144,7 @@ export const getCosmos = (key: string, domain: string = '', newEnv: string = '')
|
|
|
144
144
|
hostname === customers.ROBOTS_2[environment].cosmosFrontUrl
|
|
145
145
|
|| hostname === customers.ROBOTS_2[environment].cosmosBackUrl
|
|
146
146
|
|| hostname === customers.ROBOTS_2[environment].cosmosFrontAnimationsUrl
|
|
147
|
-
|| hostname === customers.ROBOTS_2[environment].
|
|
147
|
+
|| hostname === customers.ROBOTS_2[environment].cosmosTrainUrl
|
|
148
148
|
)
|
|
149
149
|
) {
|
|
150
150
|
return (typeof customers.ROBOTS_2[environment][key] !== 'undefined') ? customers.ROBOTS_2[environment][key] : getDefaultCosmos(key);
|
package/src/types.ts
CHANGED
|
@@ -41,7 +41,7 @@ interface BoardsOptions {
|
|
|
41
41
|
include?: number[];
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
interface EnvironmentConfig {
|
|
44
|
+
export interface EnvironmentConfig {
|
|
45
45
|
lang?: string;
|
|
46
46
|
title?: string;
|
|
47
47
|
titleAnimations?: string;
|
|
@@ -93,12 +93,6 @@ interface EnvironmentConfig {
|
|
|
93
93
|
boardsOptions?: BoardsOptions;
|
|
94
94
|
}
|
|
95
95
|
|
|
96
|
-
enum ENVIRONMENT_TYPE {
|
|
97
|
-
development = 'development',
|
|
98
|
-
staging = 'staging',
|
|
99
|
-
production = 'production',
|
|
100
|
-
}
|
|
101
|
-
|
|
102
96
|
enum CUSTOMER_TYPE {
|
|
103
97
|
DEFAULT = 'DEFAULT',
|
|
104
98
|
EDUCABOT = 'EDUCABOT',
|
|
@@ -115,8 +109,16 @@ enum CUSTOMER_TYPE {
|
|
|
115
109
|
ROBOTS_2 = 'ROBOTS_2',
|
|
116
110
|
}
|
|
117
111
|
|
|
112
|
+
export type EnvironmentType = 'development' | 'staging' | 'production';
|
|
113
|
+
|
|
114
|
+
export interface EnvironmentConfig {
|
|
115
|
+
[key: string]: any;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
118
|
export type CustomersConfig = {
|
|
119
119
|
[key in CUSTOMER_TYPE]: {
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
120
|
+
development?: EnvironmentConfig;
|
|
121
|
+
staging?: EnvironmentConfig;
|
|
122
|
+
production?: EnvironmentConfig;
|
|
123
|
+
};
|
|
124
|
+
};
|