Commit Graph

3025 Commits

Author SHA1 Message Date
translatewiki.net
74b1584d30 Localisation updates from https://translatewiki.net. 2018-11-29 17:46:51 +01:00
BeksOmega
1c4ba38300 Added Max Instances Property to Workspace Options (#2130)
* Added Max Instances property to Blocks

* eslint cleanup

* eslint cleanup 2

* Moved maxInstances property from block to workspace (as a map of block type to max instances). isDuplicate() changed to correctly handle siblings/branches.

* eslint cleanup

* Changed checking types to map. Added hasBlockLimits. Fixed Nits.

* Added limit_instances test block. eslint fixes.

* fixup! Added limit_instances test block. eslint fixes.

* Changed sorting objects to a private static function of the workspace. Fixed nits. Undeleted .eslintrc

* Reverted .gitignore file.

* Added getBlockTypeCounts() to utils. Added isCapacityAvailable() to workspace. Changed clipboard to save typeCountsMap rather than object.
2018-11-27 16:34:21 -08:00
Rachel Fenichel
6169a6488f Merge pull request #2139 from rachel-fenichel/bugfix/2107
Bugfix/2107
2018-11-27 13:57:10 -08:00
Rachel Fenichel
9ed9dd2f08 Add tests 2018-11-27 13:48:23 -08:00
alschmiedt
76538e67e7 Merge pull request #2133 from alschmiedt/single_code_block
Generate Code For Single Block
2018-11-27 13:38:20 -08:00
alschmiedt
d64b6fe9e0 Changes function name 2018-11-27 13:31:32 -08:00
Rachel Fenichel
2ad4333d12 Look up variable by name if not found by ID 2018-11-27 13:02:33 -08:00
alschmiedt
f06bee4eca Fixes pull request comments 2018-11-27 09:55:15 -08:00
alschmiedt
e9773be499 Adds tests for a nested loop and disabled block 2018-11-27 09:32:48 -08:00
translatewiki.net
c03ea23000 Localisation updates from https://translatewiki.net. 2018-11-26 07:51:57 +01:00
translatewiki.net
b0601d3e5e Localisation updates from https://translatewiki.net. 2018-11-22 07:23:58 +01:00
alschmiedt
6366d7be24 Tests blockToCode function for all generators 2018-11-21 11:45:25 -08:00
Abby Schmiedt
26a4774b35 Adds option to generate code for a single block 2018-11-21 09:00:29 -08:00
Rachel Fenichel
c7b502820b Merge pull request #1987 from rachel-fenichel/feature/insertion_markers
Insertion markers in Blockly!
2018-11-19 16:32:15 -08:00
Rachel Fenichel
ff901a7773 Comment cleanup; remove logs 2018-11-19 16:26:18 -08:00
Rachel Fenichel
24492967ce Merge pull request #2126 from rachel-fenichel/update_selenium
Update selenium version
2018-11-19 15:20:39 -08:00
Rachel Fenichel
13740f4c84 Add tests for canConnectToPrevious 2018-11-19 14:50:00 -08:00
Rachel Fenichel
779e70f640 Update selenium version 2018-11-19 13:28:59 -08:00
Rachel Fenichel
ef23820b83 Add private annotation 2018-11-19 13:00:10 -08:00
Rachel Fenichel
a8b0b90c6f Add warning for default case in canConnectToPrevious_ 2018-11-19 12:55:04 -08:00
Rachel Fenichel
d70e89d1e0 Cleanup 2018-11-19 12:51:18 -08:00
Rachel Fenichel
991b70410e Minor cleanup 2018-11-19 12:44:43 -08:00
Rachel Fenichel
f2208a626e Merge pull request #2125 from gomercin/python3_further_upgrade
Fix issues related to Python 3 compatibility
2018-11-19 11:33:58 -08:00
Rachel Fenichel
53d8ac8b0b Prefer inserting to wrapping for c-shape blocks 2018-11-19 11:16:03 -08:00
translatewiki.net
233b1561a4 Localisation updates from https://translatewiki.net. 2018-11-19 08:35:48 +01:00
Omer Karaduman
8a58c71e76 Merge branch 'python3_further_upgrade' of https://github.com/gomercin/blockly into python3_further_upgrade 2018-11-18 21:38:04 +01:00
Omer Karaduman
3235c6c831 Fix issues related to Python 3 compatibility 2018-11-18 21:37:50 +01:00
Omer Karaduman
bf825d06a9 Fix issues related to Python 3 compatibility 2018-11-17 23:40:52 +01:00
Rachel Fenichel
246580b76f Merge pull request #2123 from gomercin/python3_upgrade
Make build.py compatible with Python 2 and 3
2018-11-16 17:03:37 -08:00
Omer Karaduman
cf050069c1 Make build.py compatible with Python 2 and 3
Following changes are made with minimal touches;
- version dependent module imports
- codecs.open instead of open (for encoding errors)
- string_is_ascii modified for better compatibility
- In create_messages.py, synonym_defs are sorted as well to increase
  testability, as Python 3 does not guarantee key order.
  Note that this will cause previously generated files to have different
  orders from the files generated without this patch.
- small changes; paranthesis around "print"s, has_key -> in,
  "except x, y" -> "except x as y", sorted -> sort

Other files need similar small changes but are not touched as they are not
referenced from build.py

Fixes https://github.com/google/blockly/issues/2112
2018-11-16 22:58:05 +01:00
Andrew n marshall
ca15234bdc Add support for handling window.prompt(..) etc in iOS mobile demo (PR #2121)
Merge from AnmAtAnm/ios-js-prompt
2018-11-15 11:36:55 -08:00
translatewiki.net
5d8b4cd505 Localisation updates from https://translatewiki.net. 2018-11-15 08:10:25 +01:00
Andrew n marshall
182ba961de Doc comments and style corrections. 2018-11-14 13:34:33 -08:00
Andrew n marshall
4ce4544cc6 Temp save of work 2018-11-14 12:57:14 -08:00
Andrew n marshall
31a723bf32 Add handlers for console.alert and console.confirm. 2018-11-14 12:57:14 -08:00
Andrew n marshall
57bffc0ecd Removing comment around <meta> in demos/mobile (PR #2120)
Merge from AnmAtAnm/mobile-meta-bug
2018-11-14 12:27:08 -08:00
Rachel Fenichel
17823db4df Fix problem with connecting a statement into a stack, but not a c-shape block 2018-11-14 11:22:57 -08:00
Rachel Fenichel
e794b6883f Make insertion markers match the size of the source block 2018-11-14 11:19:17 -08:00
Rachel Fenichel
9aa54ac487 Make replaceable child blocks opaque 2018-11-14 11:19:17 -08:00
Rachel Fenichel
4c133e9ecd Highlight and unhilight the closest connection 2018-11-14 11:19:17 -08:00
Rachel Fenichel
565569fa61 Fix horizontal insertion markers for blockly 2018-11-14 11:19:17 -08:00
Rachel Fenichel
dfc1f0094b Mark the dragged connection manager deprecated 2018-11-14 11:18:32 -08:00
Rachel Fenichel
df888eb32d Remove setOpacity and getOpacity 2018-11-14 11:18:32 -08:00
Rachel Fenichel
7d775908b9 Add insertion markers. 2018-11-14 11:18:32 -08:00
Andrew n marshall
97caca6cc1 Removing comment around <meta>
Bad commit during debugging.
2018-11-14 11:08:17 -08:00
Rachel Fenichel
d677023d86 Merge pull request #2111 from rachel-fenichel/feature/run_gen_tests_in_browser
Run generator tests on Travis
2018-11-14 11:04:47 -08:00
Rachel Fenichel
898810d709 Use firefox for generator tests 2018-11-14 10:56:33 -08:00
Rachel Fenichel
d3ba3eb144 Disable osx build 2018-11-14 10:50:52 -08:00
Rachel Fenichel
b33d832373 Check whether generator tests work under chrome + osx 2018-11-12 11:48:09 -08:00
translatewiki.net
b0dfbb1671 Localisation updates from https://translatewiki.net. 2018-11-12 08:35:21 +01:00