Commit Graph

1678 Commits

Author SHA1 Message Date
Sean Lip
4bef8cc329 Rename workspace-tree to workspace-block. 2017-01-17 13:32:33 -08:00
Sean Lip
ed0c9868c6 Fix bug in audioService where attached event callbacks were not being cleared properly. 2017-01-17 11:48:01 -08:00
Neil Fraser
59f408592a Replace 'const' with 'var'.
This unbreaks IE10 and advanced compiled apps such as Blockly Games.
2017-01-16 20:35:28 -08:00
Rachel Fenichel
48df04eb72 Merge pull request #800 from groklearning/add-allInputsFilled-methods
Adds `allInputsFilled` methods to Block and Workspace.
2017-01-16 15:33:21 -08:00
Neil Fraser
90b63f49cb Python false is False. Issue #828. 2017-01-16 09:33:02 -08:00
Tim Dawborn
69df716ef5 Fixes as per code review on PR. 2017-01-16 08:48:11 +11:00
Andrew n marshall
4fdd16b499 JSON support for message lookup in colour, tooltip, and help URL. (#825)
String replacement for the colour, tooltip text and help URL attributes of JSON defined blocks.
Demonstrated in logic_boolean.
2017-01-13 16:54:27 -08:00
Andrew n marshall
560d373c93 Adding support for untranslated messages. (#819)
This will be used to define constants accessible in JSON block definitions. Messages with descriptions that include `{{Notranslate}}` will not be included in the translation files sent to TranslateWiki. Instead, they are written to `msg/json/constants.json`, and later merged back into the `.js` files, similar to synonyms.

Template details: https://translatewiki.net/wiki/Template:Notranslate
2017-01-13 15:32:00 -08:00
Rachel Fenichel
45be30432a Merge pull request #821 from rachel-fenichel/cleanup/mirror_naming
Naming changes in mirror demo
2017-01-12 16:35:16 -08:00
Rachel Fenichel
2867a3a85d Naming changes in mirror demo 2017-01-12 16:27:37 -08:00
Andrew n marshall
98dc0ed344 Integrating qqq.json changes into messages.json. (#820)
From commits b77f8cbebc and 4ecdedec9f
2017-01-12 15:31:11 -08:00
Andrew n marshall
ac3df2759c PR #818: Adding support for string table lookups in dropdown field labels
Adding support for string table lookups in dropdown field labels specified in JSON.

Adds Blockly.utils.replaceMessageReferences() method to handle string replacement without interpolation tokens.  Effectively uses the same old code, now moved into tokenizeInterpolation_(), which takes a parseInterpolationTokens option.

Replaces the direct JavaScript references (not pure JSON, and thus not portable).

Demonstrating this behavior in the logic_boolean dropdown.
2017-01-11 15:47:56 -08:00
Rachel Fenichel
35d83a576f Merge pull request #814 from justingeeslin/use-closure-compiler-npm-module
Use the npm closure library
2017-01-11 11:31:43 -08:00
Neil Fraser
bea74dbbe3 Fix undo/redo for FieldCheckbox
Thanks to PR #813 by ademenev
2017-01-10 22:18:37 -08:00
Justin Geeslin
7b72dbf773 Use the npm closure library instead of the same library installed at a parallel directory 2017-01-10 23:02:26 -06:00
Andrew n marshall
827ec93ab4 Adding unit tests for ifelse block. 2017-01-09 16:07:48 -08:00
Andrew n marshall
51868a2162 <field>, <value> reorder due to load/save. 2017-01-09 16:07:48 -08:00
Andrew n marshall
9fca356705 Improvements to the generator test framework. 2017-01-09 16:07:48 -08:00
Rachel Fenichel
efa976e109 Merge pull request #808 from harbaum/master
Fix german translation
2017-01-09 14:32:24 -08:00
Rachel Fenichel
37a4e8ece2 Merge pull request #807 from rachel-fenichel/bugfix/connect_under_flyout
Don't connect to blocks under the flyout.
2017-01-09 14:21:36 -08:00
Till Harbaum
761678239e Fix german translation of 'delete x blocks' 2017-01-09 10:11:02 +01:00
Till Harbaum
0a30d176d8 Fix german translation 2017-01-07 22:42:22 +01:00
Katelyn Mann
f5f6d69d5e Merge branch 'develop' 2017-01-06 10:16:08 -08:00
picklesrus
5ab6f41fd3 recompile again. (#806) 2017-01-05 20:08:28 -08:00
Rachel Fenichel
a0e6d4bbb5 Don't connect to blocks under the flyout. 2017-01-05 16:06:15 -08:00
picklesrus
25ed815320 Make cursor stay as a closed hand when dragging blocks around in the drag surface. Do this by applying the same style to text elements in the drag surface that we do in the main svg. (#805) 2017-01-05 15:39:06 -08:00
Rachel Fenichel
3cd62050a2 Merge pull request #802 from rachel-fenichel/bugfix/field_undo
Fix two event bugs on fields
2017-01-05 13:14:20 -08:00
picklesrus
9f3e15cd82 Move createDom call into the constructor of block drag surface. (#790) 2017-01-04 17:02:06 -08:00
Rachel Fenichel
791af631e8 Merge pull request #804 from rachel-fenichel/develop
Routine rebuild
2017-01-04 13:40:25 -08:00
Rachel Fenichel
4188226808 Routine rebuild 2017-01-04 13:26:58 -08:00
Rachel Fenichel
12ffc655b8 Merge pull request #803 from rachel-fenichel/bugfix/xml_function_rename
Init procedure blocks with empty name, and set default name in xml in…
2017-01-04 13:22:41 -08:00
Katelyn Mann
700e284a57 Merge branch 'master' into develop 2017-01-04 11:02:14 -08:00
Rachel Fenichel
158df44a94 Init procedure blocks with empty name, and set default name in xml in Blockly.Procedures.flyoutCategory 2017-01-03 18:41:28 -08:00
Rachel Fenichel
528ea86cbf Check if the text has changed before firing an event 2017-01-03 14:58:05 -08:00
Rachel Fenichel
056824593e Now that text input's setText skips setValue, it needs to explicitly create a change event 2017-01-03 14:51:28 -08:00
picklesrus
eb64921da5 Fix #794 and make the workspace grid drag along with the workspace. (#801)
There was some IE specific code that also applies to Edge so just updated
a conditional to include Edge.
2017-01-03 14:36:31 -08:00
Rachel Fenichel
20cf6abb5f End event groups when you finish editing a field 2017-01-03 14:09:41 -08:00
picklesrus
91938c3fb8 Use the drag surface when scrolling using the scrollbars. #783 (#789) 2017-01-03 10:02:28 -08:00
Niklas Laxström
7f4e21f388 Localisation updates from https://translatewiki.net. 2017-01-02 08:57:25 +01:00
Niklas Laxström
4c00de9125 Localisation updates from https://translatewiki.net. 2016-12-29 08:21:02 +01:00
Tim Dawborn
f9e0552c11 Add an allInputsConnected method to Block and Workspace to test whether all trees in the block forest have their inputs filled. An optional argument controls whether or not shadow blocks are counted as being filled. Recommitting changes off develop instead of master as per discussion in PR #791. 2016-12-28 12:26:53 +11:00
Niklas Laxström
67e852990f Localisation updates from https://translatewiki.net. 2016-12-22 07:32:48 +01:00
Neil Fraser
06c2ebcba8 Merge pull request #795 from groklearning/python-string-quoting-repr
Change string quoting in Python codegen to match what `repr` does.
2016-12-21 22:03:54 -08:00
Tim Dawborn
48e58859fe Change the Python codegen for string quoting to match the behaviour of repr on a string in CPython. 2016-12-22 15:51:23 +11:00
Niklas Laxström
3831a61f43 Localisation updates from https://translatewiki.net. 2016-12-19 07:32:46 +01:00
picklesrus
6aee3ed2da Fixes #786 by checking if getComputedStyle is null in is3dSupported. We do not cache the value in this case and try again later. is3dSupported is only called while users are interacting with blockly which they cannot do while hidden so the performance implications of running the check again are minimal. (#787) 2016-12-16 09:52:19 -08:00
Rachel Fenichel
6b39c7d646 Merge pull request #782 from rachel-fenichel/feature/flyout_disable_resize
Disable workspace resizing while loading the flyout from XML
2016-12-15 11:15:39 -08:00
picklesrus
e1cd21842a Add a workspace drag surface that blocks and bubble get moved to duri… (#778)
* Add a workspace drag surface that blocks and bubble get moved to during a workspace drag.
The surface is translated using translate3d instead of svg's translate attribute so that
the browser does not have to repaint the entire workspace on every mouse move.
This is very similar to the block drag surface.

* Address code review comments

* add back hasClass_ utility removed in #748 and stop using contains since it is not supported in IE
2016-12-15 11:02:49 -08:00
Niklas Laxström
d7f8e45930 Localisation updates from https://translatewiki.net. 2016-12-15 07:27:45 +01:00
Rachel Fenichel
f54f229bc2 Disable workspace resizing while loading the flyout from XML 2016-12-14 17:06:09 -08:00