@gamelearn/arcade-components 0.24.0 → 0.24.2
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/components/arcade-render/mocks/index.js +20 -2
- package/dist/components/auto-evaluation-component/mocks/mockForStory.js +3 -12
- package/dist/components/cards-selector-puzzle-component/mocks/mockForStory.js +13 -17
- package/dist/components/chained-image-click-puzzle-component/mocks/mockForStory.js +7 -18
- package/dist/components/comic-component/mocks/mockForStory.js +6 -0
- package/dist/components/conversational-pro-component/mocks/mockForStory.js +21 -0
- package/dist/components/cracker-puzzle-component/mocks/mockForStory.js +16 -19
- package/dist/components/decision-component/mocks/mockForStory.js +10 -70
- package/dist/components/dialog-component/mocks/mockForStory.js +294 -6
- package/dist/components/drag-item-puzzle-component/mocks/mockForStory.js +3 -12
- package/dist/components/feedback-component/mocks/mockForStory.js +11 -16
- package/dist/components/frame-click-puzzle-component/mocks/mockForStory.js +10 -17
- package/dist/components/hacker-puzzle-component/mocks/mockForStory.js +10 -15
- package/dist/components/hanged-puzzle-component/mocks/mockForStory.js +16 -17
- package/dist/components/image-click-puzzle-component/mocks/mockForStory.js +13 -20
- package/dist/components/image-click-wrapper-component/mocks/mockForStory.js +14 -28
- package/dist/components/image-component/mocks/mockForStory.js +7 -15
- package/dist/components/inventory-item/mocks/mockForStory.js +6 -4
- package/dist/components/keyboard-puzzle-component/mocks/mockForStory.js +4 -11
- package/dist/components/lectures-component/mocks/mockForStory.js +3 -11
- package/dist/components/login-puzzle-component/mocks/mockForStory.js +4 -11
- package/dist/components/notice-component/mocks/mockForStory.js +3 -5
- package/dist/components/pattern-component/mocks/mockForStory.js +5 -5
- package/dist/components/pdf-component/mocks/mockForProps.js +5 -11
- package/dist/components/rewards-component/mocks/mockForStory.js +11 -76
- package/dist/components/survey-component/mocks/mockForStory.js +3 -12
- package/dist/components/terminal-puzzle-component/components/TerminalPuzzleComponent.js +3 -1
- package/dist/components/terminal-puzzle-component/mocks/mockForStory.js +10 -14
- package/dist/components/test-component/mocks/mockForStory.js +5 -72
- package/dist/components/text-click-puzzle-component/mocks/mockForStory.js +7 -18
- package/dist/components/url-component/mocks/mockForProps.js +19 -1
- package/dist/components/video-component/mocks/mockForStory.js +13 -9
- package/dist/components/video-visor/mocks/mockForStory.js +13 -4
- package/dist/components/web-builder-puzzle-component/mocks/mockForStory.js +4 -9
- package/dist/components/writer-puzzle-component/components/WriterPuzzleComponent.js +4 -4
- package/dist/components/writer-puzzle-component/mocks/mockForStory.js +28 -48
- package/dist/helpers/mocker.js +121 -0
- package/package.json +4 -2
|
@@ -3,13 +3,301 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.mockProps = void 0;
|
|
6
|
+
exports.mockScene = exports.mockProps = void 0;
|
|
7
7
|
|
|
8
|
-
var
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
var _bg001_street = _interopRequireDefault(require("components/arcade-render/mocks/scenes/bg001_street.json"));
|
|
9
|
+
|
|
10
|
+
var _characters = require("components/arcade-render/mocks/scenes/characters.json");
|
|
11
|
+
|
|
12
|
+
var _mocker = require("helpers/mocker");
|
|
11
13
|
|
|
14
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
+
|
|
16
|
+
var animations = {
|
|
17
|
+
neutral: {
|
|
18
|
+
url: 'https://min.int.gamelearn.io/cooked.gl-lms-storage/clients/5981fca94d82290bcbe957fe/animation/5f06e116f9efdd00112fcc6f/male_missunderstand_1.glb'
|
|
19
|
+
},
|
|
20
|
+
angry: {
|
|
21
|
+
url: 'https://min.int.gamelearn.io/cooked.gl-lms-storage/clients/5981fca94d82290bcbe957fe/animation/5e4a5b4a8487c3000fb7a3bd/standmale_1_angry.glb'
|
|
22
|
+
},
|
|
23
|
+
sad: {
|
|
24
|
+
url: 'https://min.int.gamelearn.io/cooked.gl-lms-storage/clients/5981fca94d82290bcbe957fe/animation/5f06e116f9efdd00112fcc6f/male_missunderstand_1.glb'
|
|
25
|
+
}
|
|
26
|
+
};
|
|
12
27
|
var mockProps = {
|
|
13
|
-
emitEvent: emitEvent
|
|
28
|
+
emitEvent: _mocker.emitEvent,
|
|
29
|
+
soundActions: _mocker.soundActions,
|
|
30
|
+
setShowPoints: _mocker.setShowPoints,
|
|
31
|
+
lines: [{
|
|
32
|
+
flex: true,
|
|
33
|
+
slots: [{
|
|
34
|
+
emotion: '',
|
|
35
|
+
text: '',
|
|
36
|
+
uid: 'DbKslR',
|
|
37
|
+
talking: false,
|
|
38
|
+
alias: 'paco',
|
|
39
|
+
text_labelId: 'text_0_0_nlrZh8Np',
|
|
40
|
+
alias_labelId: 'alias_0_0_nlrZh2Iq'
|
|
41
|
+
}, {
|
|
42
|
+
emotion: 'neutral',
|
|
43
|
+
text: '',
|
|
44
|
+
uid: null,
|
|
45
|
+
talking: false,
|
|
46
|
+
text_labelId: 'text_0_1_nlrZiNfB',
|
|
47
|
+
alias_labelId: 'alias_0_1_nlrZijhw'
|
|
48
|
+
}, {
|
|
49
|
+
emotion: 'neutral',
|
|
50
|
+
text: '',
|
|
51
|
+
uid: null,
|
|
52
|
+
talking: false,
|
|
53
|
+
text_labelId: 'text_0_2_nlrZiBF3',
|
|
54
|
+
alias_labelId: 'alias_0_2_nlrZiR6G'
|
|
55
|
+
}, {
|
|
56
|
+
emotion: 'neutral',
|
|
57
|
+
text: '',
|
|
58
|
+
uid: null,
|
|
59
|
+
talking: false,
|
|
60
|
+
text_labelId: 'text_0_3_nlrZinJN',
|
|
61
|
+
alias_labelId: 'alias_0_3_nlrZjLWB'
|
|
62
|
+
}, {
|
|
63
|
+
emotion: 'neutral',
|
|
64
|
+
text: 'Hola!',
|
|
65
|
+
uid: 'kjTHqt',
|
|
66
|
+
talking: true,
|
|
67
|
+
alias: 'manolo',
|
|
68
|
+
text_labelId: 'text_0_4_nlrZjUV9',
|
|
69
|
+
alias_labelId: 'alias_0_4_nlrZj81d'
|
|
70
|
+
}],
|
|
71
|
+
audioId: '5f1078861d84860011e179d0',
|
|
72
|
+
hasAlias: true,
|
|
73
|
+
text_labelId: 'text_0_nlrZj4Nr',
|
|
74
|
+
audioId_labelId: 'audioId_0_nlrZkkdo'
|
|
75
|
+
}, {
|
|
76
|
+
flex: true,
|
|
77
|
+
slots: [{
|
|
78
|
+
emotion: '',
|
|
79
|
+
text: '',
|
|
80
|
+
uid: 'DbKslR',
|
|
81
|
+
talking: false,
|
|
82
|
+
alias: 'paco',
|
|
83
|
+
text_labelId: 'text_0_0_nlrZh8Np',
|
|
84
|
+
alias_labelId: 'alias_0_0_nlrZh2Iq'
|
|
85
|
+
}, {
|
|
86
|
+
emotion: 'neutral',
|
|
87
|
+
text: '',
|
|
88
|
+
uid: null,
|
|
89
|
+
talking: false,
|
|
90
|
+
text_labelId: 'text_0_1_nlrZiNfB',
|
|
91
|
+
alias_labelId: 'alias_0_1_nlrZijhw'
|
|
92
|
+
}, {
|
|
93
|
+
emotion: 'neutral',
|
|
94
|
+
text: '',
|
|
95
|
+
uid: null,
|
|
96
|
+
talking: false,
|
|
97
|
+
text_labelId: 'text_0_2_nlrZiBF3',
|
|
98
|
+
alias_labelId: 'alias_0_2_nlrZiR6G'
|
|
99
|
+
}, {
|
|
100
|
+
emotion: 'neutral',
|
|
101
|
+
text: '',
|
|
102
|
+
uid: null,
|
|
103
|
+
talking: false,
|
|
104
|
+
text_labelId: 'text_0_3_nlrZinJN',
|
|
105
|
+
alias_labelId: 'alias_0_3_nlrZjLWB'
|
|
106
|
+
}, {
|
|
107
|
+
emotion: 'neutral',
|
|
108
|
+
text: 'Hola!',
|
|
109
|
+
uid: 'kjTHqi',
|
|
110
|
+
talking: true,
|
|
111
|
+
alias: 'manolo',
|
|
112
|
+
text_labelId: 'text_0_4_nlrZjUV9',
|
|
113
|
+
alias_labelId: 'alias_0_4_nlrZj81d'
|
|
114
|
+
}],
|
|
115
|
+
audioId: '5f1078861d84860011e179d0',
|
|
116
|
+
hasAlias: true,
|
|
117
|
+
text_labelId: 'text_0_nlrZj4Nr',
|
|
118
|
+
audioId_labelId: 'audioId_0_nlrZkkdo'
|
|
119
|
+
}, {
|
|
120
|
+
flex: true,
|
|
121
|
+
slots: [{
|
|
122
|
+
emotion: '',
|
|
123
|
+
text: '',
|
|
124
|
+
uid: 'DbKslR',
|
|
125
|
+
talking: false,
|
|
126
|
+
alias: 'paco',
|
|
127
|
+
text_labelId: 'text_0_0_nlrZh8Np',
|
|
128
|
+
alias_labelId: 'alias_0_0_nlrZh2Iq'
|
|
129
|
+
}, {
|
|
130
|
+
emotion: 'neutral',
|
|
131
|
+
text: '',
|
|
132
|
+
uid: null,
|
|
133
|
+
talking: false,
|
|
134
|
+
text_labelId: 'text_0_1_nlrZiNfB',
|
|
135
|
+
alias_labelId: 'alias_0_1_nlrZijhw'
|
|
136
|
+
}, {
|
|
137
|
+
emotion: 'neutral',
|
|
138
|
+
text: '',
|
|
139
|
+
uid: null,
|
|
140
|
+
talking: false,
|
|
141
|
+
text_labelId: 'text_0_2_nlrZiBF3',
|
|
142
|
+
alias_labelId: 'alias_0_2_nlrZiR6G'
|
|
143
|
+
}, {
|
|
144
|
+
emotion: 'neutral',
|
|
145
|
+
text: '',
|
|
146
|
+
uid: null,
|
|
147
|
+
talking: false,
|
|
148
|
+
text_labelId: 'text_0_3_nlrZinJN',
|
|
149
|
+
alias_labelId: 'alias_0_3_nlrZjLWB'
|
|
150
|
+
}, {
|
|
151
|
+
emotion: 'neutral',
|
|
152
|
+
text: 'Hola!',
|
|
153
|
+
uid: 'kjTHqx',
|
|
154
|
+
talking: true,
|
|
155
|
+
alias: 'manolo',
|
|
156
|
+
text_labelId: 'text_0_4_nlrZjUV9',
|
|
157
|
+
alias_labelId: 'alias_0_4_nlrZj81d'
|
|
158
|
+
}],
|
|
159
|
+
audioId: '5f1078861d84860011e179d0',
|
|
160
|
+
hasAlias: true,
|
|
161
|
+
text_labelId: 'text_0_nlrZj4Nr',
|
|
162
|
+
audioId_labelId: 'audioId_0_nlrZkkdo'
|
|
163
|
+
}, {
|
|
164
|
+
payload: {
|
|
165
|
+
options: [{
|
|
166
|
+
id: 0,
|
|
167
|
+
right: false,
|
|
168
|
+
feedback: 'dfgsdfgsdfgsdfghdfgh',
|
|
169
|
+
text: 'Si',
|
|
170
|
+
rewards: [],
|
|
171
|
+
audioId: '',
|
|
172
|
+
text_labelId: 'text_3_0_u4s8j5fa',
|
|
173
|
+
feedback_labelId: 'feedback_3_0_u4s8jVTv',
|
|
174
|
+
audioId_labelId: 'audioId_3_0_u4s8jyiK'
|
|
175
|
+
}, {
|
|
176
|
+
id: 1,
|
|
177
|
+
right: false,
|
|
178
|
+
feedback: 'fasdfasdfg',
|
|
179
|
+
text: 'No',
|
|
180
|
+
rewards: [],
|
|
181
|
+
audioId: '',
|
|
182
|
+
text_labelId: 'text_3_1_u4s8jzBF',
|
|
183
|
+
feedback_labelId: 'feedback_3_1_u4s8jWNa',
|
|
184
|
+
audioId_labelId: 'audioId_3_1_u4s8jaJY'
|
|
185
|
+
}, {
|
|
186
|
+
id: 2,
|
|
187
|
+
right: true,
|
|
188
|
+
feedback: 'asdfasd',
|
|
189
|
+
text: 'Patata',
|
|
190
|
+
rewards: [],
|
|
191
|
+
audioId: '',
|
|
192
|
+
text_labelId: 'text_3_2_u4s8jA2Z',
|
|
193
|
+
feedback_labelId: 'feedback_3_2_u4s8jBIJ',
|
|
194
|
+
audioId_labelId: 'audioId_3_2_u4s8j23g'
|
|
195
|
+
}],
|
|
196
|
+
required: true,
|
|
197
|
+
question: 'Funciona la decisión',
|
|
198
|
+
question_labelId: 'question_3_u4s8i10a'
|
|
199
|
+
},
|
|
200
|
+
decision: true
|
|
201
|
+
}, {
|
|
202
|
+
flex: true,
|
|
203
|
+
slots: [{
|
|
204
|
+
emotion: 'angry',
|
|
205
|
+
text: '',
|
|
206
|
+
uid: 'DbKslR',
|
|
207
|
+
talking: false,
|
|
208
|
+
alias: 'paco',
|
|
209
|
+
text_labelId: 'text_0_0_nlrZh8Np',
|
|
210
|
+
alias_labelId: 'alias_0_0_nlrZh2Iq'
|
|
211
|
+
}, {
|
|
212
|
+
emotion: 'neutral',
|
|
213
|
+
text: '',
|
|
214
|
+
uid: null,
|
|
215
|
+
talking: false,
|
|
216
|
+
text_labelId: 'text_0_1_nlrZiNfB',
|
|
217
|
+
alias_labelId: 'alias_0_1_nlrZijhw'
|
|
218
|
+
}, {
|
|
219
|
+
emotion: 'neutral',
|
|
220
|
+
text: '',
|
|
221
|
+
uid: null,
|
|
222
|
+
talking: false,
|
|
223
|
+
text_labelId: 'text_0_2_nlrZiBF3',
|
|
224
|
+
alias_labelId: 'alias_0_2_nlrZiR6G'
|
|
225
|
+
}, {
|
|
226
|
+
emotion: 'neutral',
|
|
227
|
+
text: '',
|
|
228
|
+
uid: null,
|
|
229
|
+
talking: false,
|
|
230
|
+
text_labelId: 'text_0_3_nlrZinJN',
|
|
231
|
+
alias_labelId: 'alias_0_3_nlrZjLWB'
|
|
232
|
+
}, {
|
|
233
|
+
emotion: 'neutral',
|
|
234
|
+
text: 'Hola!',
|
|
235
|
+
uid: 'kjTHqi',
|
|
236
|
+
talking: true,
|
|
237
|
+
alias: 'manolo',
|
|
238
|
+
text_labelId: 'text_0_4_nlrZjUV9',
|
|
239
|
+
alias_labelId: 'alias_0_4_nlrZj81d'
|
|
240
|
+
}],
|
|
241
|
+
audioId: '5f1078861d84860011e179d0',
|
|
242
|
+
hasAlias: true,
|
|
243
|
+
text_labelId: 'text_0_nlrZj4Nr',
|
|
244
|
+
audioId_labelId: 'audioId_0_nlrZkkdo'
|
|
245
|
+
}],
|
|
246
|
+
background: {
|
|
247
|
+
imgId: '605369a5901f3e00123b81ca',
|
|
248
|
+
imgName: 'b27bb40dcb1189d14012131a35b48a36.jpeg',
|
|
249
|
+
img: {
|
|
250
|
+
url: 'https://min.int.gamelearn.io/cooked.gl-lms-storage/clients/58dccfba26561500117caf53/image/605369a5901f3e00123b81ca/b27bb40dcb1189d14012131a35b48a36.jpeg'
|
|
251
|
+
}
|
|
252
|
+
},
|
|
253
|
+
characters: [{
|
|
254
|
+
name: 'Testing',
|
|
255
|
+
resourceId: '5f68d7b6a373890011a78a11',
|
|
256
|
+
resource: {
|
|
257
|
+
url: 'https://min.int.gamelearn.io/cooked.gl-lms-storage/clients/5981fca94d82290bcbe957fe/object/5eff09c2085be00011aae087/pr0238_yacht_001.glb'
|
|
258
|
+
},
|
|
259
|
+
type: 'object',
|
|
260
|
+
uid: 'DbKslR'
|
|
261
|
+
}, {
|
|
262
|
+
name: 'Male senior dark-skinned 01',
|
|
263
|
+
resourceId: '5f5214cec39e26001123797f',
|
|
264
|
+
resource: {
|
|
265
|
+
url: 'https://min.int.gamelearn.io/cooked.gl-lms-storage/clients/5981fca94d82290bcbe957fe/character/5f5214cec39e26001123797f/ch0112_philip_001.glb',
|
|
266
|
+
animations: animations
|
|
267
|
+
},
|
|
268
|
+
type: 'character',
|
|
269
|
+
uid: 'kjTHqi'
|
|
270
|
+
}, {
|
|
271
|
+
name: 'Female senior light-skinned 01',
|
|
272
|
+
resourceId: '5f5214cec39e26001123797f',
|
|
273
|
+
resource: {
|
|
274
|
+
url: 'https://min.int.gamelearn.io/cooked.gl-lms-storage/clients/5981fca94d82290bcbe957fe/character/5f60759328beb100113b694c/ch0116_bima_001_rig_v01_llaveronuevo.glb',
|
|
275
|
+
animations: {
|
|
276
|
+
neutral: {
|
|
277
|
+
resource: {}
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
},
|
|
281
|
+
type: 'character',
|
|
282
|
+
uid: 'kjTHqt'
|
|
283
|
+
}, {
|
|
284
|
+
name: 'Taxi',
|
|
285
|
+
resourceId: '5f5214cec39e26001123797f',
|
|
286
|
+
resource: {
|
|
287
|
+
url: 'https://min.int.gamelearn.io/cooked.gl-lms-storage/clients/5981fca94d82290bcbe957fe/object/5e53b649ef1f60000fb9cc1c/draco_pr0065_car_004.glb'
|
|
288
|
+
},
|
|
289
|
+
type: 'object',
|
|
290
|
+
uid: 'kjTHqx'
|
|
291
|
+
}]
|
|
292
|
+
};
|
|
293
|
+
exports.mockProps = mockProps;
|
|
294
|
+
var mockScene = {
|
|
295
|
+
background: _bg001_street.default,
|
|
296
|
+
elements: _characters.elements,
|
|
297
|
+
scene: {
|
|
298
|
+
sceneChanged: true,
|
|
299
|
+
loadingText: 'Cargando... {percent}%',
|
|
300
|
+
hasControls: false
|
|
301
|
+
}
|
|
14
302
|
};
|
|
15
|
-
exports.
|
|
303
|
+
exports.mockScene = mockScene;
|
|
@@ -5,20 +5,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.mockProps = void 0;
|
|
7
7
|
|
|
8
|
-
var
|
|
9
|
-
var type = _ref.type,
|
|
10
|
-
payload = _ref.payload;
|
|
11
|
-
console.log('Emit event called');
|
|
8
|
+
var _mocker = require("helpers/mocker");
|
|
12
9
|
|
|
13
|
-
if (type === 'translate') {
|
|
14
|
-
return payload;
|
|
15
|
-
}
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
var soundActions = [function () {}, function () {}];
|
|
19
10
|
var mockProps = {
|
|
20
|
-
emitEvent: emitEvent,
|
|
21
|
-
soundActions: soundActions,
|
|
11
|
+
emitEvent: _mocker.emitEvent,
|
|
12
|
+
soundActions: _mocker.soundActions,
|
|
22
13
|
resolveObject: {
|
|
23
14
|
uid: '123',
|
|
24
15
|
name: 'cube',
|
|
@@ -4,37 +4,32 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.mockProps4 = exports.mockProps3 = exports.mockProps2 = exports.mockProps = void 0;
|
|
7
|
-
var soundActions = [function (sound) {
|
|
8
|
-
console.log('PlaySound called :', sound);
|
|
9
|
-
}, function () {}];
|
|
10
7
|
|
|
11
|
-
var
|
|
12
|
-
return payload;
|
|
13
|
-
};
|
|
8
|
+
var _mocker = require("helpers/mocker");
|
|
14
9
|
|
|
15
10
|
var mockProps = {
|
|
16
|
-
functionOnClose:
|
|
17
|
-
|
|
11
|
+
functionOnClose: _mocker.functionOnClose,
|
|
12
|
+
playSound: _mocker.soundActions[0],
|
|
18
13
|
success: true,
|
|
19
|
-
translate: translate,
|
|
14
|
+
translate: _mocker.translate,
|
|
20
15
|
text: '500A while back I needed to count the amount of letters that a piece of text in an email template had (to avoid passing any character limits)asd asdf sdf A while back I needed to count the amount of letters that a piece of text in an email template had (to avoid passing any character limits)asd asdf sdf A while back I needed to count the amount of letters that a piece of text in an email template had (to avoid passing any character limits)asd asdf sdf A while back I needed to count thea sf as'
|
|
21
16
|
};
|
|
22
17
|
exports.mockProps = mockProps;
|
|
23
18
|
var mockProps2 = {
|
|
24
|
-
functionOnClose:
|
|
25
|
-
|
|
26
|
-
translate: translate,
|
|
19
|
+
functionOnClose: _mocker.functionOnClose,
|
|
20
|
+
playSound: _mocker.soundActions[0],
|
|
21
|
+
translate: _mocker.translate,
|
|
27
22
|
text: '500A while back I needed to count the amount of letters that a piece of text in an email template had (to avoid passing any character limits)asd asdf sdf A while back I needed to count the amount of letters that a piece of text in an email template had (to avoid passing any character limits)asd asdf sdf A while back I needed to count the amount of letters that a piece of text in an email template had (to avoid passing any character limits)asd asdf sdf A while back I needed to count thea sf as'
|
|
28
23
|
};
|
|
29
24
|
exports.mockProps2 = mockProps2;
|
|
30
25
|
var mockProps3 = {
|
|
31
26
|
success: true,
|
|
32
|
-
|
|
33
|
-
translate: translate
|
|
27
|
+
playSound: _mocker.soundActions[0],
|
|
28
|
+
translate: _mocker.translate
|
|
34
29
|
};
|
|
35
30
|
exports.mockProps3 = mockProps3;
|
|
36
31
|
var mockProps4 = {
|
|
37
|
-
|
|
38
|
-
translate: translate
|
|
32
|
+
playSound: _mocker.soundActions[0],
|
|
33
|
+
translate: _mocker.translate
|
|
39
34
|
};
|
|
40
35
|
exports.mockProps4 = mockProps4;
|
|
@@ -5,26 +5,17 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.mockProps2 = exports.mockPropsOnce = exports.mockProps = void 0;
|
|
7
7
|
|
|
8
|
-
var
|
|
9
|
-
var type = _ref.type,
|
|
10
|
-
payload = _ref.payload;
|
|
8
|
+
var _mocker = require("helpers/mocker");
|
|
11
9
|
|
|
12
|
-
if (type === 'translate') {
|
|
13
|
-
return payload;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
console.log('Emit event called', type);
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
var soundActions = [function () {}, function () {}];
|
|
20
10
|
var mockProps = {
|
|
21
11
|
nodeId: 'xxas',
|
|
22
12
|
description: 'Dale al arma',
|
|
23
13
|
isFrame: true,
|
|
24
14
|
showFrames: true,
|
|
25
15
|
setInfo: function setInfo() {},
|
|
26
|
-
emitEvent: emitEvent,
|
|
27
|
-
soundActions: soundActions,
|
|
16
|
+
emitEvent: _mocker.emitEvent,
|
|
17
|
+
soundActions: _mocker.soundActions,
|
|
18
|
+
setShowPoints: _mocker.setShowPoints,
|
|
28
19
|
disableExit: function disableExit() {},
|
|
29
20
|
setResolveAction: function setResolveAction() {},
|
|
30
21
|
list: [{
|
|
@@ -177,8 +168,9 @@ var mockPropsOnce = {
|
|
|
177
168
|
isFrame: true,
|
|
178
169
|
showFrames: true,
|
|
179
170
|
setInfo: function setInfo() {},
|
|
180
|
-
emitEvent: emitEvent,
|
|
181
|
-
soundActions: soundActions,
|
|
171
|
+
emitEvent: _mocker.emitEvent,
|
|
172
|
+
soundActions: _mocker.soundActions,
|
|
173
|
+
setShowPoints: _mocker.setShowPoints,
|
|
182
174
|
disableExit: function disableExit() {},
|
|
183
175
|
setResolveAction: function setResolveAction() {},
|
|
184
176
|
list: [{
|
|
@@ -328,8 +320,9 @@ var mockProps2 = {
|
|
|
328
320
|
isFrame: true,
|
|
329
321
|
showFrames: true,
|
|
330
322
|
setInfo: function setInfo() {},
|
|
331
|
-
emitEvent: emitEvent,
|
|
332
|
-
soundActions: soundActions,
|
|
323
|
+
emitEvent: _mocker.emitEvent,
|
|
324
|
+
soundActions: _mocker.soundActions,
|
|
325
|
+
setShowPoints: _mocker.setShowPoints,
|
|
333
326
|
disableExit: function disableExit() {},
|
|
334
327
|
setResolveAction: function setResolveAction() {},
|
|
335
328
|
list: [{
|
|
@@ -5,21 +5,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.mockProps3 = exports.mockProps2 = exports.mockProps = void 0;
|
|
7
7
|
|
|
8
|
-
var
|
|
9
|
-
var type = _ref.type,
|
|
10
|
-
payload = _ref.payload;
|
|
11
|
-
console.log('Emit event called', type);
|
|
12
|
-
|
|
13
|
-
if (type === 'translate') {
|
|
14
|
-
return payload;
|
|
15
|
-
}
|
|
16
|
-
};
|
|
8
|
+
var _mocker = require("helpers/mocker");
|
|
17
9
|
|
|
18
10
|
var mockProps = {
|
|
19
|
-
emitEvent: emitEvent,
|
|
11
|
+
emitEvent: _mocker.emitEvent,
|
|
12
|
+
soundActions: _mocker.soundActions,
|
|
13
|
+
setShowPoints: _mocker.setShowPoints,
|
|
20
14
|
disableExit: function disableExit() {},
|
|
21
15
|
setResolveAction: function setResolveAction() {},
|
|
22
|
-
soundActions: [function () {}, function () {}],
|
|
23
16
|
type: 'js',
|
|
24
17
|
writingSpeed: 5,
|
|
25
18
|
info: {
|
|
@@ -47,10 +40,11 @@ var mockProps = {
|
|
|
47
40
|
};
|
|
48
41
|
exports.mockProps = mockProps;
|
|
49
42
|
var mockProps2 = {
|
|
50
|
-
emitEvent: emitEvent,
|
|
43
|
+
emitEvent: _mocker.emitEvent,
|
|
44
|
+
soundActions: _mocker.soundActions,
|
|
45
|
+
setShowPoints: _mocker.setShowPoints,
|
|
51
46
|
disableExit: function disableExit() {},
|
|
52
47
|
setResolveAction: function setResolveAction() {},
|
|
53
|
-
soundActions: [function () {}, function () {}],
|
|
54
48
|
type: 'python',
|
|
55
49
|
writingSpeed: 5,
|
|
56
50
|
info: {
|
|
@@ -78,10 +72,11 @@ var mockProps2 = {
|
|
|
78
72
|
};
|
|
79
73
|
exports.mockProps2 = mockProps2;
|
|
80
74
|
var mockProps3 = {
|
|
81
|
-
emitEvent: emitEvent,
|
|
75
|
+
emitEvent: _mocker.emitEvent,
|
|
76
|
+
soundActions: _mocker.soundActions,
|
|
77
|
+
setShowPoints: _mocker.setShowPoints,
|
|
82
78
|
disableExit: function disableExit() {},
|
|
83
79
|
setResolveAction: function setResolveAction() {},
|
|
84
|
-
soundActions: [function () {}, function () {}],
|
|
85
80
|
type: 'lua',
|
|
86
81
|
writingSpeed: 5,
|
|
87
82
|
info: {
|
|
@@ -5,27 +5,16 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.mockProps = void 0;
|
|
7
7
|
|
|
8
|
-
var
|
|
9
|
-
var type = _ref.type,
|
|
10
|
-
payload = _ref.payload;
|
|
11
|
-
console.log('Emit event called');
|
|
12
|
-
|
|
13
|
-
if (type === "translate") {
|
|
14
|
-
return payload;
|
|
15
|
-
}
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
var soundActions = [function (sound) {
|
|
19
|
-
console.log('PlaySound called :', sound);
|
|
20
|
-
}, function () {}];
|
|
8
|
+
var _mocker = require("helpers/mocker");
|
|
21
9
|
|
|
22
10
|
var disableExit = function disableExit(attr) {
|
|
23
11
|
return attr;
|
|
24
12
|
};
|
|
25
13
|
|
|
26
14
|
var mockProps = {
|
|
27
|
-
emitEvent: emitEvent,
|
|
28
|
-
soundActions: soundActions,
|
|
15
|
+
emitEvent: _mocker.emitEvent,
|
|
16
|
+
soundActions: _mocker.soundActions,
|
|
17
|
+
setShowPoints: _mocker.setShowPoints,
|
|
29
18
|
disableExit: disableExit,
|
|
30
19
|
setResolveAction: function setResolveAction() {},
|
|
31
20
|
image: {
|
|
@@ -47,11 +36,21 @@ var mockProps = {
|
|
|
47
36
|
solution: {
|
|
48
37
|
right: {
|
|
49
38
|
desc: 'correctSolution',
|
|
50
|
-
rewards: [
|
|
39
|
+
rewards: [{
|
|
40
|
+
id: 'hangmocko',
|
|
41
|
+
name: 'Power',
|
|
42
|
+
points: 1000,
|
|
43
|
+
type: 'score'
|
|
44
|
+
}]
|
|
51
45
|
},
|
|
52
46
|
wrong: {
|
|
53
47
|
desc: 'wrongSolution',
|
|
54
|
-
rewards: [
|
|
48
|
+
rewards: [{
|
|
49
|
+
id: 'hangmocko',
|
|
50
|
+
name: 'Power',
|
|
51
|
+
points: -1000,
|
|
52
|
+
type: 'score'
|
|
53
|
+
}]
|
|
55
54
|
}
|
|
56
55
|
},
|
|
57
56
|
instructions: 'cghgfdhgch',
|
|
@@ -5,22 +5,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.mockProps4 = exports.mockProps3 = exports.mockProps2 = exports.mockProps = void 0;
|
|
7
7
|
|
|
8
|
-
var
|
|
9
|
-
var type = _ref.type,
|
|
10
|
-
payload = _ref.payload;
|
|
11
|
-
console.log('Emit event called', type);
|
|
8
|
+
var _mocker = require("helpers/mocker");
|
|
12
9
|
|
|
13
|
-
if (type === 'translate') {
|
|
14
|
-
return payload;
|
|
15
|
-
}
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
var soundActions = [function (sound) {
|
|
19
|
-
console.log('PlaySound called :', sound);
|
|
20
|
-
}, function () {}];
|
|
21
10
|
var mockProps = {
|
|
22
|
-
emitEvent: emitEvent,
|
|
23
|
-
soundActions: soundActions,
|
|
11
|
+
emitEvent: _mocker.emitEvent,
|
|
12
|
+
soundActions: _mocker.soundActions,
|
|
13
|
+
setShowPoints: _mocker.setShowPoints,
|
|
24
14
|
disableExit: function disableExit() {},
|
|
25
15
|
setResolveAction: function setResolveAction() {},
|
|
26
16
|
info: {
|
|
@@ -123,8 +113,9 @@ var mockProps = {
|
|
|
123
113
|
};
|
|
124
114
|
exports.mockProps = mockProps;
|
|
125
115
|
var mockProps2 = {
|
|
126
|
-
emitEvent: emitEvent,
|
|
127
|
-
soundActions: soundActions,
|
|
116
|
+
emitEvent: _mocker.emitEvent,
|
|
117
|
+
soundActions: _mocker.soundActions,
|
|
118
|
+
setShowPoints: _mocker.setShowPoints,
|
|
128
119
|
disableExit: function disableExit() {},
|
|
129
120
|
setResolveAction: function setResolveAction() {},
|
|
130
121
|
info: {
|
|
@@ -227,8 +218,9 @@ var mockProps2 = {
|
|
|
227
218
|
};
|
|
228
219
|
exports.mockProps2 = mockProps2;
|
|
229
220
|
var mockProps3 = {
|
|
230
|
-
emitEvent: emitEvent,
|
|
231
|
-
soundActions: soundActions,
|
|
221
|
+
emitEvent: _mocker.emitEvent,
|
|
222
|
+
soundActions: _mocker.soundActions,
|
|
223
|
+
setShowPoints: _mocker.setShowPoints,
|
|
232
224
|
disableExit: function disableExit() {},
|
|
233
225
|
setResolveAction: function setResolveAction() {},
|
|
234
226
|
info: {
|
|
@@ -331,8 +323,9 @@ var mockProps3 = {
|
|
|
331
323
|
};
|
|
332
324
|
exports.mockProps3 = mockProps3;
|
|
333
325
|
var mockProps4 = {
|
|
334
|
-
emitEvent: emitEvent,
|
|
335
|
-
soundActions: soundActions,
|
|
326
|
+
emitEvent: _mocker.emitEvent,
|
|
327
|
+
soundActions: _mocker.soundActions,
|
|
328
|
+
setShowPoints: _mocker.setShowPoints,
|
|
336
329
|
disableExit: function disableExit() {},
|
|
337
330
|
setResolveAction: function setResolveAction() {},
|
|
338
331
|
info: {
|
|
@@ -5,30 +5,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.mockPropsOnce = exports.mockProps4 = exports.mockProps3 = exports.mockProps2 = exports.mockProps = void 0;
|
|
7
7
|
|
|
8
|
-
var
|
|
9
|
-
var type = _ref.type,
|
|
10
|
-
payload = _ref.payload;
|
|
11
|
-
console.log('Emit event called', type, payload);
|
|
8
|
+
var _mocker = require("helpers/mocker");
|
|
12
9
|
|
|
13
|
-
if (type === 'translate') {
|
|
14
|
-
return payload;
|
|
15
|
-
}
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
var audio = {
|
|
19
|
-
fail: new Audio('https://www.soundjay.com/buttons/button-10.mp3'),
|
|
20
|
-
'click-ui': new Audio('https://www.soundjay.com/buttons/button-16.mp3'),
|
|
21
|
-
score: new Audio('https://www.soundjay.com/mechanical/camera-shutter-click-01.mp3')
|
|
22
|
-
};
|
|
23
|
-
var soundActions = [function (sound) {
|
|
24
|
-
console.log('PlaySound called :', sound);
|
|
25
|
-
sound && audio[sound].play();
|
|
26
|
-
}, function () {}];
|
|
27
10
|
var mockProps = {
|
|
28
|
-
emitEvent: emitEvent,
|
|
11
|
+
emitEvent: _mocker.emitEvent,
|
|
29
12
|
disableExit: function disableExit() {},
|
|
30
13
|
setResolveAction: function setResolveAction() {},
|
|
31
|
-
soundActions: soundActions,
|
|
14
|
+
soundActions: _mocker.soundActions,
|
|
15
|
+
setShowPoints: _mocker.setShowPoints,
|
|
32
16
|
transitionEffects: null,
|
|
33
17
|
audioId: '',
|
|
34
18
|
itemOrder: 1,
|
|
@@ -126,8 +110,8 @@ var mockProps = {
|
|
|
126
110
|
};
|
|
127
111
|
exports.mockProps = mockProps;
|
|
128
112
|
var mockProps2 = {
|
|
129
|
-
emitEvent: emitEvent,
|
|
130
|
-
soundActions: soundActions,
|
|
113
|
+
emitEvent: _mocker.emitEvent,
|
|
114
|
+
soundActions: _mocker.soundActions,
|
|
131
115
|
disableExit: function disableExit() {},
|
|
132
116
|
setResolveAction: function setResolveAction() {},
|
|
133
117
|
transitionEffects: null,
|
|
@@ -200,8 +184,9 @@ var mockProps2 = {
|
|
|
200
184
|
};
|
|
201
185
|
exports.mockProps2 = mockProps2;
|
|
202
186
|
var mockProps3 = {
|
|
203
|
-
emitEvent: emitEvent,
|
|
204
|
-
soundActions: soundActions,
|
|
187
|
+
emitEvent: _mocker.emitEvent,
|
|
188
|
+
soundActions: _mocker.soundActions,
|
|
189
|
+
setShowPoints: _mocker.setShowPoints,
|
|
205
190
|
disableExit: function disableExit() {},
|
|
206
191
|
setResolveAction: function setResolveAction() {},
|
|
207
192
|
transitionEffects: null,
|
|
@@ -274,8 +259,8 @@ var mockProps3 = {
|
|
|
274
259
|
};
|
|
275
260
|
exports.mockProps3 = mockProps3;
|
|
276
261
|
var mockProps4 = {
|
|
277
|
-
emitEvent: emitEvent,
|
|
278
|
-
soundActions: soundActions,
|
|
262
|
+
emitEvent: _mocker.emitEvent,
|
|
263
|
+
soundActions: _mocker.soundActions,
|
|
279
264
|
disableExit: function disableExit() {},
|
|
280
265
|
setResolveAction: function setResolveAction() {},
|
|
281
266
|
transitionEffects: null,
|
|
@@ -348,8 +333,9 @@ var mockProps4 = {
|
|
|
348
333
|
};
|
|
349
334
|
exports.mockProps4 = mockProps4;
|
|
350
335
|
var mockPropsOnce = {
|
|
351
|
-
emitEvent: emitEvent,
|
|
352
|
-
soundActions: soundActions,
|
|
336
|
+
emitEvent: _mocker.emitEvent,
|
|
337
|
+
soundActions: _mocker.soundActions,
|
|
338
|
+
setShowPoints: _mocker.setShowPoints,
|
|
353
339
|
disableExit: function disableExit() {},
|
|
354
340
|
setResolveAction: function setResolveAction() {},
|
|
355
341
|
transitionEffects: null,
|