Beka Westberg
33e6fa6ed9
Fixed Block Factory XML not Getting Properly Cleaned ( #2801 )
...
* Fixed factory XML not getting properly cleaned.
* Added jsdoc.
2019-08-21 15:59:21 -07:00
Neil Fraser
b52de5cac2
Remove self-closing XML tags in workspace factory ( #2769 )
2019-08-15 10:20:49 -07:00
Neil Fraser
939bbd072b
Lint
2019-08-02 11:00:40 -07:00
Neil Fraser
ae24b544f3
Fix injection vulnerability in Block Factories.
...
Fixes issue #756 .
2019-08-02 11:00:40 -07:00
Neil Fraser
e77a9b7e81
Change parseFloat() to Number()
...
Number() is a bit less forgiving than parseFloat() and is more likely to generate NaN rather than some random number. An audit of each case shows nowhere that parseFloat()’s features are needed.
2019-08-01 11:36:58 -07:00
Neil Fraser
6aedfab4d1
Misc JSDoc fixes. ( #2747 )
2019-07-30 16:28:48 -07:00
Neil Fraser
d1fb3f0480
Fix typo in Blockly Factory.
2019-07-08 13:29:43 -07:00
Neil Fraser
52b6ce18a5
Fix unit tests
2019-07-08 13:29:43 -07:00
Neil Fraser
cbd944106c
Strip silly code
...
Sigh.
2019-06-26 13:55:55 -07:00
Neil Fraser
3a77a3d7ce
Define colours of standard categories by hue.
...
Previously they were defined in hex.
This meant that saturation and value were hardcoded.
This also resulted in off-by-one errors (Math was hardcoded as #5C68A6, but is calculated as #5B67A5) which in turn resulted in the colour not being highlighted in the picker.
2019-06-26 13:55:55 -07:00
Neil Fraser
ef28773a52
Enable selection of “no colour” on categories.
...
Near complete rewrite of colour picker for Blockly Factory.
* Drop IE6 support.
* Flip picker as needed so it doesn’t go offscreen.
* Add support for no colour.
* Factor CSS out of JS.
* Provide palette of our standard colours.
2019-06-26 13:55:55 -07:00
Neil Fraser
7e048f2e09
Remove last Closure from Block Factory.
...
Improves UI, but is still pretty clunky. For example there’s still not way to choose “no colour”.
Closes #668 .
2019-06-26 13:55:55 -07:00
Beka Westberg
73ff710a4d
Added getSourceBlock function to field. ( #2508 )
2019-05-29 12:50:00 -07:00
Beka Westberg
ce816b93bf
Added field_label_serializable. ( #2399 )
2019-04-24 10:43:09 -07:00
ahigerd
bc77024670
Reorganize conditionals for block context menu ( #2390 )
...
* Reorganize conditionals for block context menu
* Disable comments and disabling in block factory
2019-04-18 08:49:07 -07:00
Beka Westberg
969687ec34
Added flipRtl Support for FieldImages ( #2203 )
...
* Added flipRtl support for FieldImages. Added a flipRtl test block.
* Added blockfactory support.
* Fixed JSDoc.
2019-01-10 08:59:35 -08:00
Rachel Fenichel
6092e4c517
Calls to getAllBlocks should pass a value for _ordered_
2018-09-13 16:06:19 -07:00
Andrew n marshall
2747396cd3
Fixes to handling <pre> text content.
2018-06-25 13:20:10 -07:00
Andrew n marshall
b4cfe263fa
Removing (most) Closure from BlockFactory ( #1925 )
...
Replacing all Closure goog. library calls from BlockFactory, with the exception of the ColorPicker and the test for the warning about running without Closure. This includes (almost) all goog.provide and goog.require statements.
2018-06-15 15:29:41 -07:00
Andrew n marshall
2aadfa6ac2
BlockFactory: Fixing incorrect <button> html ( #1622 )
...
Applies changes suggested in #1176 , based off of develop.
2018-02-20 13:00:44 -08:00
Andrew n marshall
03538c19a7
Fix #1601
...
Correct deprecated argument order in domToWorksapce call in WorkspaceFactory.
2018-02-12 12:52:34 -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
Neil Fraser
8779a8c3d9
Introduce minimap to style guide.
2017-10-24 14:06:29 -07:00
Andrew n marshall
1956baa963
BlockFactory: Adding JSON/JavaScript import support ( #1235 )
...
Updates the BlockFactory main workspace based on the preview block generated from manual construction.
This is a continuation of PR #1216 by @JC-Orozco, rebased on latest develop branch. Bring it latest code up to Google styling and standards.
2017-08-17 12:40:58 -07:00
marisaleung
103c10eddb
Change workspace name to playgroundWorkspace.
2017-08-02 17:03:22 -07:00
Andrew n marshall
abcc9b82a1
Adding BlocklyDevTools.Analytics ( #1217 )
...
Adding BlocklyDevTools.Analytics, an interface for integrating an analytics
library to track basic usage, including:
* navigation.
* saving, importing, and exporting.
* warnings and errors.
2017-07-11 15:39:35 -07:00
marisaleung
aff9c4867c
Correctly named block events called.
2017-06-08 15:44:43 -07:00
Andrew n marshall
3840b3804f
Replacing latest prettifier hosted in repo with latest version at rawgit CDN. ( #1120 )
2017-05-22 12:09:23 -07:00
Rachel Fenichel
7395c24bf0
Fix apostrophe in tooltips and helpurls ( #1111 )
2017-05-19 16:14:53 -07:00
Andrew n marshall
7e178af49c
Fix #950 : BlockFactory typo and copypasta
2017-02-23 08:53:01 -08:00
picklesrus
bdc5a02922
Fix #698 by adjusting the regex to not have \. Still not 100% sure w… ( #700 )
...
* Fix #698 by adjusting the regex to not have \. Still not 100% sure why that was there.
Also replaces bad names on input. There are probably more invalid names but this is
a start.
2016-12-09 17:19:17 -08:00
picklesrus
ccbaa4664e
remove overflow-y on the block exporter labels so scroll bars do not show upin firefox. Also fix up the styles on the labels so that they display better in firefox. ( #699 )
2016-12-09 16:34:33 -08:00
Rachel Fenichel
99c30007a7
Generate helpURL and tooltip for Javascript block definition
2016-12-08 14:41:40 -08:00
Rachel Fenichel
4871ff9fda
Start getting helpurl and tooltip in
2016-12-08 14:26:53 -08:00
Rachel Fenichel
1d55e28610
Add colour block to the block factory base block initial state
2016-12-08 14:26:53 -08:00
Neil Fraser
fbd9276e9c
Lint
2016-11-18 20:26:56 -08:00
Neil Fraser
f6aef459fc
API-breaking cleanup. But doubtful anyone will be affected. ( #748 )
...
* Make add/removeClass return whether they did anything.
* Move more functions onto utils.
* Move bind functions to Blockly.
* Routine recompile.
2016-11-15 13:54:33 -08:00
Neil Fraser
98c341bcfb
Allow images in dropdown menus.
2016-11-05 00:17:07 -07:00
Neil Fraser
5b033e2f7b
Misc cleanup.
2016-11-05 00:15:39 -07:00
Neil Fraser
4f08f2536f
Replace category colour pallet with correctly calculated colours.
2016-10-23 01:05:13 -07:00
Neil Fraser
9fe29a9cc2
Block Factory: Add missing workspace options, fix reset button.
2016-10-17 17:32:14 -07:00
Neil Fraser
728284ab61
Disable options in readonly mode. (Block Factory)
2016-10-14 08:57:39 -07:00
Neil Fraser
a2e7481d04
Stop block exporter options from jumping around.
2016-10-14 08:29:48 -07:00
Neil Fraser
ea1d0d7d3a
Add labels to Block Factory.
2016-10-14 07:47:23 -07:00
Neil Fraser
8b7ce77f8e
Rotate Block Factory colour picker 90deg for more room.
2016-10-14 07:29:41 -07:00
Neil Fraser
5e797c704c
Fix orphaned and overlapping menus in Block Factory.
2016-10-14 07:16:31 -07:00
Neil Fraser
5fc9e04b5c
Untangle modal buttons.
2016-10-14 06:57:21 -07:00
Neil Fraser
32d09de62f
Make dropdown in Block Factory modal.
2016-10-14 05:39:10 -07:00
Neil Fraser
c677a8efe4
Fix two incorrect URLs in Closure dialog.
2016-10-14 02:39:10 -07:00