Commit Graph

2407 Commits

Author SHA1 Message Date
Andrew n marshall cf1c69686d In Code demo, give warning if a generator function is missing. (#1585)
Refactored renderContent() to use new attemptCodeGeneration()
function, reducing code duplication.
attemptCodeGeneration() now calls checkAllGeneratorFunctionsDefined()
before running the generator.
2018-02-08 13:01:33 -08:00
Rachel Fenichel e58c8a32d4 Merge pull request #1590 from rachel-fenichel/feature/bubble_dragger
Create a Dragger for moving bubbles around
2018-02-07 14:19:23 -08:00
Rachel Fenichel 85cb2b8c41 Merge pull request #1592 from jollytoad/feature-1486-fields-fromJson
Fields should implement fromJson #1486
2018-02-07 11:22:15 -08:00
Mark Gibson 28d3d68b62 Fix fromJson_ to fromJson in tests 2018-02-07 18:30:22 +00:00
Mark Gibson 2308ae8c22 Remove underscore from fromJson_ 2018-02-07 18:18:35 +00:00
Mark Gibson 6ab7cd25f5 Missing semi-colon! 2018-02-07 12:44:01 +00:00
Mark Gibson d40ef474ae See issue #1486 - adds fromJson_ fn to every Blockly.Field, removing Block.newField*FromJson_ helpers 2018-02-07 12:22:26 +00:00
Rachel Fenichel 4ddba5aadb rebuild 2018-02-06 19:00:32 -08:00
Rachel Fenichel 9d2cb829a9 Move code into the bubble dragger where possible 2018-02-06 18:56:26 -08:00
Rachel Fenichel 7acd4133aa Remove unused code in the bubble dragger. 2018-02-06 18:07:21 -08:00
RoboErikG 531c459147 Update the comment on eslint quotes checks (#1589)
We turn quotes checking off in eslint because the JSON blobs in Blockly's files must use double quotes. Everywhere else we prefer single quotes. This updates the comment to make that clearer.
2018-02-06 13:22:00 -08:00
Rachel Fenichel 68914be67d Wire up bubble dragging, with coordinate problems 2018-02-05 16:57:44 -08:00
Andrew n marshall f497c70be0 Ran ./build.py 2018-01-31 14:29:09 -08:00
Rachel Fenichel 6d96e4003b Merge pull request #1576 from rachel-fenichel/bugfix/1574
Add generators for dynamic variable blocks.
2018-01-29 16:20:28 -08:00
Rachel Fenichel c744664ad5 Merge pull request #1575 from rachel-fenichel/bugfix/1538
Fix #1538
2018-01-29 16:17:30 -08:00
Rachel Fenichel 4a059b23f8 Add tests 2018-01-29 16:04:47 -08:00
Rachel Fenichel 4c130aab83 Rename createVarBlock to createMockVarBlock, and pass in the workspace as a parameter 2018-01-29 15:15:32 -08:00
Rachel Fenichel fa38913f42 Merge pull request #1578 from windwood-xmu/issue/1571
Fix #1571
2018-01-29 10:47:35 -08:00
windwood-xmu 0023fb6837 Fix #1571
the Class Gen_compressed in build.py has two gen_accessible method.
The problem was produced by the commit 2bd056a and the PR #1243.

Delete the accidental incoming L266-L292 to fix that problem.
2018-01-29 22:42:57 +08:00
Rachel Fenichel bce24fef6b Add generators for dynamic variable blocks. 2018-01-26 17:10:45 -08:00
Rachel Fenichel 3b168f5370 Fix #1538 2018-01-26 15:20:19 -08:00
Rachel Fenichel 5913f42b0a Merge pull request #1569 from rachel-fenichel/cleanup/lint
Get rid of the last indentation lint (that is checked by eslint) and …
2018-01-26 10:15:04 -08:00
Rachel Fenichel 870219e750 Get rid of the last indentation lint (that is checked by eslint) and turn indentation back to erroring instead of warning. 2018-01-25 17:33:43 -08:00
Rachel Fenichel f19d7a811c Merge pull request #1562 from rachel-fenichel/bugfix/matching_names
Fix #1559
2018-01-25 17:08:46 -08:00
Rachel Fenichel 412f1c7030 Merge pull request #1567 from rachel-fenichel/lint/update_eslintrc
Lint/update eslintrc
2018-01-25 14:21:40 -08:00
Rachel Fenichel 68ff863ea9 Fix indentation 2018-01-25 13:00:08 -08:00
Rachel Fenichel ee248d9596 Update eslint version 2018-01-25 12:44:38 -08:00
Rachel Fenichel cb75946a3c Set indent problems to warnings, and fix all errors. 2018-01-25 12:43:11 -08:00
Rachel Fenichel 9072563a00 Update eslintrc to more explicitly describe indentation rules. 2018-01-25 12:43:11 -08:00
Neil Fraser a4ec65d85d Improve support >ES5 and Node.
Adds ‘yield’ and ‘**’ to JS order list.
Build generates files (more) parsable by Node.
This PR should have no effect on existing code.
2018-01-25 11:47:11 -08:00
jschanker f0b68fad66 Fixed JS/PHP generators for math_number
It was returning ORDER_ATOMIC for the block for any number; changed it so that it now returns ORDER_UNARY_NEGATION for negative numbers.
2018-01-25 09:02:38 -08:00
Nat Zimmermann 9ce13d8883 Add ORDER_AWAIT constant to JavaScript generator 2018-01-25 09:02:18 -08:00
Rachel Fenichel 794520e225 Add documentation 2018-01-24 17:17:31 -08:00
Rachel Fenichel 96e2d7d102 Fix #1559 2018-01-24 17:05:58 -08:00
Rachel Fenichel c6881677ad Merge pull request #1561 from rachel-fenichel/cleanup/lint
Indentation lint that blocks moving to eslint 4.0
2018-01-24 16:48:18 -08:00
Rachel Fenichel 2b7b4bf3af More lint 2018-01-24 16:40:07 -08:00
Rachel Fenichel 3e62ffc20a Split at higher level for multiline function calls 2018-01-24 11:26:41 -08:00
Rachel Fenichel b9b1105448 Set indent to 'warn' so that it doens't error on lint fixes for eslint 4.0 2018-01-24 10:41:12 -08:00
Rachel Fenichel 799148da7e More spaces 2018-01-24 10:22:13 -08:00
Andrew n marshall 36993430e1 createVariable(..) => createVariableButtonHandler(..)
Clarifying the role of Blockly.Variables.createVariableButtonHandler(..).
Updating documentation a making sure it (and its deprecated previous name)
are properly exported.
2018-01-24 09:54:21 -08:00
Rachel Fenichel 3575d53018 57 errors remaining 2018-01-23 18:42:45 -08:00
Rachel Fenichel fb897d7786 Even more lint. 90 errors remaining. 2018-01-23 18:33:30 -08:00
Rachel Fenichel 9a53e96d53 More lint fixes 2018-01-23 18:22:53 -08:00
Rachel Fenichel 1e3450a051 Indentation lint that blocks moving to eslint 4.0 2018-01-23 17:27:35 -08:00
Rachel Fenichel e61b51afcb Merge pull request #1546 from rachel-fenichel/bugfix/1499
Fix #1499 and add some validation
2018-01-22 17:54:11 -08:00
Ziya ERKOC 97daddb01e Update block_exporter_controller.js
Generator stub file type is set to javascript; unnecesarry conditions removed.
2018-01-22 11:26:35 -08:00
Ziya ERKOC 4bbd83820c Update block_exporter_controller.js
Default export type of Generator Stub section is set to '.js' while downloading it in Block Export (in Block Factory)
2018-01-22 11:26:35 -08:00
Rachel Fenichel 06ae9ade8e Don't update the field until all checks pass 2018-01-19 15:49:39 -08:00
Andrew n marshall 0d085c27b2 Removing Events.disable()/.enable() from disableOrphans.
Tested in Blockly Games and BlockFactory. Tests also pass.
2018-01-19 10:40:18 -08:00
Rachel Fenichel ae7da6c7a8 Merge pull request #1550 from rachel-fenichel/bugfix/annotations
Make another function public
2018-01-18 16:00:23 -08:00