forked from scratchfoundation/scratch-gui
-
-
Notifications
You must be signed in to change notification settings - Fork 196
/
Copy pathindex.jsx
434 lines (419 loc) · 15.2 KB
/
index.jsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
import React from 'react';
import {FormattedMessage} from 'react-intl';
import musicIconURL from './music/music.png';
import musicInsetIconURL from './music/music-small.svg';
import penIconURL from './pen/pen.png';
import penInsetIconURL from './pen/pen-small.svg';
import videoSensingIconURL from './videoSensing/video-sensing.png';
import videoSensingInsetIconURL from './videoSensing/video-sensing-small.svg';
import text2speechIconURL from './text2speech/text2speech.png';
import text2speechInsetIconURL from './text2speech/text2speech-small.svg';
import translateIconURL from './translate/translate.png';
import translateInsetIconURL from './translate/translate-small.png';
import makeymakeyIconURL from './makeymakey/makeymakey.png';
import makeymakeyInsetIconURL from './makeymakey/makeymakey-small.svg';
import microbitIconURL from './microbit/microbit.png';
import microbitInsetIconURL from './microbit/microbit-small.svg';
import microbitConnectionIconURL from './microbit/microbit-illustration.svg';
import microbitConnectionSmallIconURL from './microbit/microbit-small.svg';
import ev3IconURL from './ev3/ev3.png';
import ev3InsetIconURL from './ev3/ev3-small.svg';
import ev3ConnectionIconURL from './ev3/ev3-hub-illustration.svg';
import ev3ConnectionSmallIconURL from './ev3/ev3-small.svg';
import wedo2IconURL from './wedo2/wedo.png'; // TODO: Rename file names to match variable/prop names?
import wedo2InsetIconURL from './wedo2/wedo-small.svg';
import wedo2ConnectionIconURL from './wedo2/wedo-illustration.svg';
import wedo2ConnectionSmallIconURL from './wedo2/wedo-small.svg';
import wedo2ConnectionTipIconURL from './wedo2/wedo-button-illustration.svg';
import boostIconURL from './boost/boost.png';
import boostInsetIconURL from './boost/boost-small.svg';
import boostConnectionIconURL from './boost/boost-illustration.svg';
import boostConnectionSmallIconURL from './boost/boost-small.svg';
import boostConnectionTipIconURL from './boost/boost-button-illustration.svg';
import gdxforIconURL from './gdxfor/gdxfor.png';
import gdxforInsetIconURL from './gdxfor/gdxfor-small.svg';
import gdxforConnectionIconURL from './gdxfor/gdxfor-illustration.svg';
import gdxforConnectionSmallIconURL from './gdxfor/gdxfor-small.svg';
import twIcon from './tw/tw.svg';
import customExtensionIcon from './custom/custom.svg';
import galleryIcon from './gallery/gallery.svg';
import stretchIcon from './gallery/stretch.svg';
import gamepadIcon from './gallery/gamepad.svg';
import cursorIcon from './gallery/cursor.svg';
export default [
{
name: (
<FormattedMessage
defaultMessage="Music"
description="Name for the 'Music' extension"
id="gui.extension.music.name"
/>
),
extensionId: 'music',
iconURL: musicIconURL,
insetIconURL: musicInsetIconURL,
description: (
<FormattedMessage
defaultMessage="Play instruments and drums."
description="Description for the 'Music' extension"
id="gui.extension.music.description"
/>
),
tags: ['scratch'],
featured: true
},
{
name: (
<FormattedMessage
defaultMessage="Pen"
description="Name for the 'Pen' extension"
id="gui.extension.pen.name"
/>
),
extensionId: 'pen',
iconURL: penIconURL,
insetIconURL: penInsetIconURL,
description: (
<FormattedMessage
defaultMessage="Draw with your sprites."
description="Description for the 'Pen' extension"
id="gui.extension.pen.description"
/>
),
tags: ['scratch'],
featured: true
},
{
name: (
<FormattedMessage
defaultMessage="Video Sensing"
description="Name for the 'Video Sensing' extension"
id="gui.extension.videosensing.name"
/>
),
extensionId: 'videoSensing',
iconURL: videoSensingIconURL,
insetIconURL: videoSensingInsetIconURL,
description: (
<FormattedMessage
defaultMessage="Sense motion with the camera."
description="Description for the 'Video Sensing' extension"
id="gui.extension.videosensing.description"
/>
),
tags: ['scratch'],
featured: true
},
{
name: (
<FormattedMessage
defaultMessage="Text to Speech"
description="Name for the Text to Speech extension"
id="gui.extension.text2speech.name"
/>
),
extensionId: 'text2speech',
collaborator: 'Amazon Web Services',
iconURL: text2speechIconURL,
insetIconURL: text2speechInsetIconURL,
description: (
<FormattedMessage
defaultMessage="Make your projects talk."
description="Description for the Text to speech extension"
id="gui.extension.text2speech.description"
/>
),
tags: ['scratch'],
featured: true,
internetConnectionRequired: true
},
{
name: (
<FormattedMessage
defaultMessage="Translate"
description="Name for the Translate extension"
id="gui.extension.translate.name"
/>
),
extensionId: 'translate',
collaborator: 'Google',
iconURL: translateIconURL,
insetIconURL: translateInsetIconURL,
description: (
<FormattedMessage
defaultMessage="Translate text into many languages."
description="Description for the Translate extension"
id="gui.extension.translate.description"
/>
),
tags: ['scratch'],
featured: true,
internetConnectionRequired: true
},
{
name: 'Makey Makey',
extensionId: 'makeymakey',
collaborator: 'JoyLabz',
iconURL: makeymakeyIconURL,
insetIconURL: makeymakeyInsetIconURL,
description: (
<FormattedMessage
defaultMessage="Make anything into a key."
description="Description for the 'Makey Makey' extension"
id="gui.extension.makeymakey.description"
/>
),
tags: ['scratch'],
featured: true
},
{
name: 'micro:bit',
extensionId: 'microbit',
collaborator: 'micro:bit',
iconURL: microbitIconURL,
insetIconURL: microbitInsetIconURL,
description: (
<FormattedMessage
defaultMessage="Connect your projects with the world."
description="Description for the 'micro:bit' extension"
id="gui.extension.microbit.description"
/>
),
tags: ['scratch'],
featured: true,
disabled: false,
bluetoothRequired: true,
internetConnectionRequired: true,
launchPeripheralConnectionFlow: true,
useAutoScan: false,
connectionIconURL: microbitConnectionIconURL,
connectionSmallIconURL: microbitConnectionSmallIconURL,
connectingMessage: (
<FormattedMessage
defaultMessage="Connecting"
description="Message to help people connect to their micro:bit."
id="gui.extension.microbit.connectingMessage"
/>
),
helpLink: 'https://scratch.mit.edu/microbit'
},
{
name: 'LEGO MINDSTORMS EV3',
extensionId: 'ev3',
collaborator: 'LEGO',
iconURL: ev3IconURL,
insetIconURL: ev3InsetIconURL,
description: (
<FormattedMessage
defaultMessage="Build interactive robots and more."
description="Description for the 'LEGO MINDSTORMS EV3' extension"
id="gui.extension.ev3.description"
/>
),
tags: ['scratch'],
featured: true,
disabled: false,
bluetoothRequired: true,
internetConnectionRequired: true,
launchPeripheralConnectionFlow: true,
useAutoScan: false,
connectionIconURL: ev3ConnectionIconURL,
connectionSmallIconURL: ev3ConnectionSmallIconURL,
connectingMessage: (
<FormattedMessage
defaultMessage="Connecting. Make sure the pin on your EV3 is set to 1234."
description="Message to help people connect to their EV3. Must note the PIN should be 1234."
id="gui.extension.ev3.connectingMessage"
/>
),
helpLink: 'https://scratch.mit.edu/ev3'
},
{
name: 'LEGO BOOST',
extensionId: 'boost',
collaborator: 'LEGO',
iconURL: boostIconURL,
insetIconURL: boostInsetIconURL,
description: (
<FormattedMessage
defaultMessage="Bring robotic creations to life."
description="Description for the 'LEGO BOOST' extension"
id="gui.extension.boost.description"
/>
),
tags: ['scratch'],
featured: true,
disabled: false,
bluetoothRequired: true,
internetConnectionRequired: true,
launchPeripheralConnectionFlow: true,
useAutoScan: true,
connectionIconURL: boostConnectionIconURL,
connectionSmallIconURL: boostConnectionSmallIconURL,
connectionTipIconURL: boostConnectionTipIconURL,
connectingMessage: (
<FormattedMessage
defaultMessage="Connecting"
description="Message to help people connect to their BOOST."
id="gui.extension.boost.connectingMessage"
/>
),
helpLink: 'https://scratch.mit.edu/boost'
},
{
name: 'LEGO Education WeDo 2.0',
extensionId: 'wedo2',
collaborator: 'LEGO',
iconURL: wedo2IconURL,
insetIconURL: wedo2InsetIconURL,
description: (
<FormattedMessage
defaultMessage="Build with motors and sensors."
description="Description for the 'LEGO WeDo 2.0' extension"
id="gui.extension.wedo2.description"
/>
),
tags: ['scratch'],
featured: true,
disabled: false,
bluetoothRequired: true,
internetConnectionRequired: true,
launchPeripheralConnectionFlow: true,
useAutoScan: true,
connectionIconURL: wedo2ConnectionIconURL,
connectionSmallIconURL: wedo2ConnectionSmallIconURL,
connectionTipIconURL: wedo2ConnectionTipIconURL,
connectingMessage: (
<FormattedMessage
defaultMessage="Connecting"
description="Message to help people connect to their WeDo."
id="gui.extension.wedo2.connectingMessage"
/>
),
helpLink: 'https://scratch.mit.edu/wedo'
},
{
name: 'Go Direct Force & Acceleration',
extensionId: 'gdxfor',
collaborator: 'Vernier',
iconURL: gdxforIconURL,
insetIconURL: gdxforInsetIconURL,
description: (
<FormattedMessage
defaultMessage="Sense push, pull, motion, and spin."
description="Description for the Vernier Go Direct Force and Acceleration sensor extension"
id="gui.extension.gdxfor.description"
/>
),
tags: ['scratch'],
featured: true,
disabled: false,
bluetoothRequired: true,
internetConnectionRequired: true,
launchPeripheralConnectionFlow: true,
useAutoScan: false,
connectionIconURL: gdxforConnectionIconURL,
connectionSmallIconURL: gdxforConnectionSmallIconURL,
connectingMessage: (
<FormattedMessage
defaultMessage="Connecting"
description="Message to help people connect to their force and acceleration sensor."
id="gui.extension.gdxfor.connectingMessage"
/>
),
helpLink: 'https://scratch.mit.edu/vernier'
},
{
name: (
<FormattedMessage
defaultMessage="TurboWarp Blocks"
description="Name of TW extension"
id="tw.twExtension.name"
/>
),
extensionId: 'tw',
iconURL: twIcon,
description: (
<FormattedMessage
defaultMessage="Weird new blocks."
description="Description of TW extension"
id="tw.twExtension.description"
/>
),
incompatibleWithScratch: true,
tags: ['tw'],
featured: true
},
// Extensions loaded from URLs do not support localization, so unfortunately we will just leave English names here.
{
name: 'Stretch',
extensionId: 'stretch',
extensionURL: 'https://extensions.turbowarp.org/stretch.js',
iconURL: stretchIcon,
description: 'Stretch sprites horizontally or vertically.',
tags: ['tw'],
incompatibleWithScratch: true,
featured: true
},
{
name: 'Gamepad',
extensionId: 'Gamepad',
extensionURL: 'https://extensions.turbowarp.org/gamepad.js',
iconURL: gamepadIcon,
description: 'Directly access gamepads instead of just mapping buttons to keys.',
tags: ['tw'],
incompatibleWithScratch: true,
featured: true
},
{
name: 'Mouse Cursor',
extensionId: 'MouseCursor',
extensionURL: 'https://extensions.turbowarp.org/cursor.js',
iconURL: cursorIcon,
description: 'Use custom cursors or hide the cursor. Also allows replacing the cursor with any costume image.',
tags: ['tw'],
incompatibleWithScratch: true,
featured: true
},
{
name: (
<FormattedMessage
defaultMessage="TurboWarp Extension Gallery"
description="Name of extensions.turbowarp.org in extension library"
id="tw.extensionGallery.name"
/>
),
href: 'https://extensions.turbowarp.org/',
extensionId: '',
iconURL: galleryIcon,
description: (
<FormattedMessage
defaultMessage="extensions.turbowarp.org is the place to find powerful and safe custom extensions."
description="Description of extensions.turbowarp.org in extension library"
id="tw.extensionGallery.description"
/>
),
tags: ['tw'],
featured: true
},
{
name: (
<FormattedMessage
defaultMessage="Custom Extension"
description="Name of custom extension category"
id="tw.customExtension.name"
/>
),
extensionId: '',
iconURL: customExtensionIcon,
description: (
<FormattedMessage
defaultMessage="Load custom extensions from URLs."
description="Description of custom extension category"
id="tw.customExtension.description"
/>
),
tags: ['tw'],
featured: true
}
];