Skip to content

Commit

Permalink
Fixed issue #156 and added additional icons for the sections.
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkusBordihn committed Apr 25, 2018
1 parent c9ab890 commit 0a4ea60
Show file tree
Hide file tree
Showing 7 changed files with 130 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/chrome_app/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"short_name": "Coding with Chrome",
"description": "Learn, improve, or teach coding skills within a Chrome browser.",
"key": "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAgSWdCJSwkgFTY9d993Quot277oCS2PCM2H/F6U28NE8D3Z21GXS/7qW8XCGShB054Wboq62pP679f9tB9F+GRHzOh/an4zIu+Uhb3ZKVzZLJbHsP8N+E5wk3wgwOBgE+UXCy9I8i1RpfzutJ4aha+YEzvCsVpo6UwsuWiXORB9yRU5NuooYX+fhVpWZmrZJo4vqzQhuoJ/uWiQujABXXo4qdrclwSw8+JlpWLMqHHQ6HE8Sf7VWDdGvRdYP6LRZobWqovb659qEumJ0bxhwXtHkWgPHQWtW35T/r/oH8uuke35pH+YtBtaOqN5U3bYGPinP0bYrI33OSLUJx/DrC1wIDAQAB",
"version": "5.4.24",
"version": "5.4.25",
"oauth2": {
"client_id": "418162477970-2qmsb2sp3m522hf292154favsjgpsj9n.apps.googleusercontent.com",
"scopes": [
Expand Down
2 changes: 1 addition & 1 deletion app/nw_app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "binary",
"version": "5.4.24",
"version": "5.4.25",
"main": "js/background.js",
"window": {
"title": "Coding with Chrome",
Expand Down
1 change: 1 addition & 0 deletions locales/deu/blocks/blocks.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,5 @@ Object.assign(Locales['deu'], {
'BLOCKS_CHANGE': 'ändere',
'BLOCKS_DEFINE': 'definiere',
'BLOCKS_DO': 'mache',
'BLOCKS_LISTS': 'Listen',
});
1 change: 1 addition & 0 deletions locales/eng/blocks/blocks.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,5 @@ Object.assign(Locales['eng'], {
'BLOCKS_CHANGE': 'change',
'BLOCKS_DEFINE': 'define',
'BLOCKS_DO': 'do',
'BLOCKS_LISTS': 'Lists',
});
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "coding-with-chrome",
"description": "Coding with Chrome",
"version": "5.4.24",
"version": "5.4.25",
"author": "Markus Bordihn ([email protected])",
"license": "Apache-2.0",
"private": true,
Expand Down
77 changes: 77 additions & 0 deletions src/mode/blocks.soy
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,83 @@
</block>
</category>

<category name="BLOCKS_LISTS" colour="260">

<block type="variables_set">
<field name="VAR">list</field>
<value name="VALUE">
<block type="lists_create_with">
<mutation items="3"></mutation>
<value name="ADD0">
<block type="text">
<field name="TEXT"></field>
</block>
</value>
<value name="ADD1">
<block type="text">
<field name="TEXT"></field>
</block>
</value>
<value name="ADD2">
<block type="text">
<field name="TEXT"></field>
</block>
</value>
</block>
</value>
</block>

<block type="lists_create_with">
<mutation items="0"></mutation>
</block>
<block type="lists_create_with"></block>
<block type="lists_repeat">
<value name="NUM">
<shadow type="math_number">
<field name="NUM">5</field>
</shadow>
</value>
</block>
<block type="lists_length"></block>
<block type="lists_isEmpty"></block>
<block type="lists_indexOf">
<value name="VALUE">
<block type="variables_get">
<field name="VAR">list</field>
</block>
</value>
</block>
<block type="lists_getIndex">
<value name="VALUE">
<block type="variables_get">
<field name="VAR">list</field>
</block>
</value>
</block>
<block type="lists_setIndex">
<value name="LIST">
<block type="variables_get">
<field name="VAR">list</field>
</block>
</value>
</block>
<block type="lists_getSublist">
<value name="LIST">
<block type="variables_get">
<field name="VAR">list</field>
</block>
</value>
</block>
<block type="lists_split">
<value name="DELIM">
<shadow type="text">
<field name="TEXT">,</field>
</shadow>
</value>
</block>
<block type="lists_sort"></block>
</category>

{/template}


Expand Down
48 changes: 48 additions & 0 deletions static_files/css/blockly/toolbox.css
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,10 @@
/**
* Default Icons for the toolbox
*/
.blocklyTreeRowItem_blocks_lists::before {
content: 'list';
}

.blocklyTreeRowItem_logic::before,
.blocklyTreeRowItem_logik::before {
content: 'call_split';
Expand Down Expand Up @@ -227,3 +231,47 @@
.blocklyTreeRowItem_blocks_phaser_world::before {
content: 'computer';
}

.blocklyTreeRowItem_attachments::before {
content: 'rv_hookup';
}

.blocklyTreeRowItem_command::before {
content: 'send';
}

.blocklyTreeRowItem_draw::before {
content: 'brush';
}

.blocklyTreeRowItem_events::before {
content: 'input';
}

.blocklyTreeRowItem_sounds::before {
content: 'audiotrack';
}

.blocklyTreeRowItem_sensors::before {
content: 'developer_board';
}

.blocklyTreeRowItem_movements::before {
content: 'open_with';
}

.blocklyTreeRowItem_movements_advance::before {
content: 'gamepad';
}

.blocklyTreeRowItem_robot_settings::before {
content: 'settings_input_component';
}

.blocklyTreeRowItem_movements_vehicle::before {
content: 'directions_car';
}

.blocklyTreeRowItem_lights::before {
content: 'lightbulb_outline';
}

0 comments on commit 0a4ea60

Please sign in to comment.