Skip to content

Commit 0a4ea60

Browse files
committed
Fixed issue #156 and added additional icons for the sections.
1 parent c9ab890 commit 0a4ea60

File tree

7 files changed

+130
-3
lines changed

7 files changed

+130
-3
lines changed

app/chrome_app/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"short_name": "Coding with Chrome",
1010
"description": "Learn, improve, or teach coding skills within a Chrome browser.",
1111
"key": "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAgSWdCJSwkgFTY9d993Quot277oCS2PCM2H/F6U28NE8D3Z21GXS/7qW8XCGShB054Wboq62pP679f9tB9F+GRHzOh/an4zIu+Uhb3ZKVzZLJbHsP8N+E5wk3wgwOBgE+UXCy9I8i1RpfzutJ4aha+YEzvCsVpo6UwsuWiXORB9yRU5NuooYX+fhVpWZmrZJo4vqzQhuoJ/uWiQujABXXo4qdrclwSw8+JlpWLMqHHQ6HE8Sf7VWDdGvRdYP6LRZobWqovb659qEumJ0bxhwXtHkWgPHQWtW35T/r/oH8uuke35pH+YtBtaOqN5U3bYGPinP0bYrI33OSLUJx/DrC1wIDAQAB",
12-
"version": "5.4.24",
12+
"version": "5.4.25",
1313
"oauth2": {
1414
"client_id": "418162477970-2qmsb2sp3m522hf292154favsjgpsj9n.apps.googleusercontent.com",
1515
"scopes": [

app/nw_app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "binary",
3-
"version": "5.4.24",
3+
"version": "5.4.25",
44
"main": "js/background.js",
55
"window": {
66
"title": "Coding with Chrome",

locales/deu/blocks/blocks.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,5 @@ Object.assign(Locales['deu'], {
3030
'BLOCKS_CHANGE': 'ändere',
3131
'BLOCKS_DEFINE': 'definiere',
3232
'BLOCKS_DO': 'mache',
33+
'BLOCKS_LISTS': 'Listen',
3334
});

locales/eng/blocks/blocks.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,5 @@ Object.assign(Locales['eng'], {
3030
'BLOCKS_CHANGE': 'change',
3131
'BLOCKS_DEFINE': 'define',
3232
'BLOCKS_DO': 'do',
33+
'BLOCKS_LISTS': 'Lists',
3334
});

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "coding-with-chrome",
33
"description": "Coding with Chrome",
4-
"version": "5.4.24",
4+
"version": "5.4.25",
55
"author": "Markus Bordihn ([email protected])",
66
"license": "Apache-2.0",
77
"private": true,

src/mode/blocks.soy

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,83 @@
273273
</block>
274274
</category>
275275

276+
<category name="BLOCKS_LISTS" colour="260">
277+
278+
<block type="variables_set">
279+
<field name="VAR">list</field>
280+
<value name="VALUE">
281+
<block type="lists_create_with">
282+
<mutation items="3"></mutation>
283+
<value name="ADD0">
284+
<block type="text">
285+
<field name="TEXT"></field>
286+
</block>
287+
</value>
288+
<value name="ADD1">
289+
<block type="text">
290+
<field name="TEXT"></field>
291+
</block>
292+
</value>
293+
<value name="ADD2">
294+
<block type="text">
295+
<field name="TEXT"></field>
296+
</block>
297+
</value>
298+
</block>
299+
</value>
300+
</block>
301+
302+
<block type="lists_create_with">
303+
<mutation items="0"></mutation>
304+
</block>
305+
<block type="lists_create_with"></block>
306+
<block type="lists_repeat">
307+
<value name="NUM">
308+
<shadow type="math_number">
309+
<field name="NUM">5</field>
310+
</shadow>
311+
</value>
312+
</block>
313+
<block type="lists_length"></block>
314+
<block type="lists_isEmpty"></block>
315+
<block type="lists_indexOf">
316+
<value name="VALUE">
317+
<block type="variables_get">
318+
<field name="VAR">list</field>
319+
</block>
320+
</value>
321+
</block>
322+
<block type="lists_getIndex">
323+
<value name="VALUE">
324+
<block type="variables_get">
325+
<field name="VAR">list</field>
326+
</block>
327+
</value>
328+
</block>
329+
<block type="lists_setIndex">
330+
<value name="LIST">
331+
<block type="variables_get">
332+
<field name="VAR">list</field>
333+
</block>
334+
</value>
335+
</block>
336+
<block type="lists_getSublist">
337+
<value name="LIST">
338+
<block type="variables_get">
339+
<field name="VAR">list</field>
340+
</block>
341+
</value>
342+
</block>
343+
<block type="lists_split">
344+
<value name="DELIM">
345+
<shadow type="text">
346+
<field name="TEXT">,</field>
347+
</shadow>
348+
</value>
349+
</block>
350+
<block type="lists_sort"></block>
351+
</category>
352+
276353
{/template}
277354

278355

static_files/css/blockly/toolbox.css

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,10 @@
125125
/**
126126
* Default Icons for the toolbox
127127
*/
128+
.blocklyTreeRowItem_blocks_lists::before {
129+
content: 'list';
130+
}
131+
128132
.blocklyTreeRowItem_logic::before,
129133
.blocklyTreeRowItem_logik::before {
130134
content: 'call_split';
@@ -227,3 +231,47 @@
227231
.blocklyTreeRowItem_blocks_phaser_world::before {
228232
content: 'computer';
229233
}
234+
235+
.blocklyTreeRowItem_attachments::before {
236+
content: 'rv_hookup';
237+
}
238+
239+
.blocklyTreeRowItem_command::before {
240+
content: 'send';
241+
}
242+
243+
.blocklyTreeRowItem_draw::before {
244+
content: 'brush';
245+
}
246+
247+
.blocklyTreeRowItem_events::before {
248+
content: 'input';
249+
}
250+
251+
.blocklyTreeRowItem_sounds::before {
252+
content: 'audiotrack';
253+
}
254+
255+
.blocklyTreeRowItem_sensors::before {
256+
content: 'developer_board';
257+
}
258+
259+
.blocklyTreeRowItem_movements::before {
260+
content: 'open_with';
261+
}
262+
263+
.blocklyTreeRowItem_movements_advance::before {
264+
content: 'gamepad';
265+
}
266+
267+
.blocklyTreeRowItem_robot_settings::before {
268+
content: 'settings_input_component';
269+
}
270+
271+
.blocklyTreeRowItem_movements_vehicle::before {
272+
content: 'directions_car';
273+
}
274+
275+
.blocklyTreeRowItem_lights::before {
276+
content: 'lightbulb_outline';
277+
}

0 commit comments

Comments
 (0)