Commit Graph

64 Commits

Author SHA1 Message Date
Rachel Fenichel
729c442c31 lint 2016-12-05 15:14:02 -08:00
Rachel Fenichel
7b783dc30a change 'class' to 'web-style' 2016-12-02 14:08:50 -08:00
Rachel Fenichel
ff87c76557 Don't make labels clickable 2016-12-02 14:03:49 -08:00
Rachel Fenichel
effc1d5f1c Add ability to specify a css class for labels and buttons 2016-12-02 14:01:36 -08:00
Andrew n marshall
e5d25bb686 String reference in JSON string messages (#741)
* Adds message references to message string interpolation, in the form of %{BKY_STRING}.
 * Re-adding CONTROLS_IFELSE block using the new syntax, referencing to CONTROL_IF equivalents.
2016-11-15 15:51:51 -08:00
Rachel Fenichel
82261e3d68 Remove ifelse block and messages' 2016-11-11 17:21:29 -08:00
Rachel Fenichel
b5822e2925 Revert "Revert "Rebuild nov 3 16""
This reverts commit c8ca24a000.
2016-11-11 17:05:13 -08:00
Neil Fraser
c8ca24a000 Revert "Rebuild nov 3 16" 2016-11-08 16:46:00 -08:00
Andrew n marshall
72ff6d9ead Adding controls_ifelse block (#722)
Adding controls_ifelse, an if/else block that is loaded from JSON and does not use mutators. This gives "else" capability to Android & iOS implementations, which don't support JavaScript mutators.

Added this block to the playground simple toolbox and all generators.
2016-10-31 11:00:39 -07:00
Neil Fraser
4d65b606bd Set current workspace when clicking zoom controls. Issue #440 2016-10-23 06:38:04 -07:00
Rachel Fenichel
5418843c12 Move the change block to the variables category 2016-07-07 14:39:45 -07:00
picklesrus
e4900fc27c Fix airstrike by grabbing the correct toolbox element. (#411)
Probably broken in 266e2ffa9a.
2016-06-08 10:03:14 -07:00
Neil Fraser
f642fa80d5 Increase commonality between playgrounds. 2016-06-05 15:32:54 -07:00
Neil Fraser
266e2ffa9a Add toolbox location and toolbox mode options to playground. 2016-06-05 04:16:09 -07:00
Rachel Fenichel
1f2107ee08 add missing return in fake drag 2016-06-01 16:20:56 -07:00
Rachel Fenichel
53cf0be791 lint 2016-06-01 15:24:23 -07:00
Rachel Fenichel
dd205feda0 Add a button to randomly click and drag blocks in the playground. 2016-05-31 15:42:28 -07:00
Dan LaLiberte
c1cfec8dbd Add lists_sort block. 2016-05-04 17:03:24 -04:00
Neil Fraser
2d696aa731 Normalize order of languages. 2016-04-08 22:56:42 -07:00
Neil Fraser
99f332f749 Fix getBlockById unit test. Issue #323 2016-04-07 14:35:01 -07:00
Neil Fraser
4e42a1b78e Swap order of arguments on domToWorkspace. 2016-04-04 18:31:41 -07:00
Rodrigo Queiro
a5d3f340e5 Add a Lua code generator
This is based on the JS generator, with a lot of inspiration from Ellen
Spertus's blockly-lua: https://github.com/espertus/blockly-lua

All unit tests pass with Lua 5.3.2.
2016-03-10 10:24:25 +01:00
Neil Fraser
016d2e74d7 IE does not have sessionStorage on file:// URLs. 2016-03-02 16:38:58 -08:00
Neil Fraser
5097963cb1 Reduce code duplication in 'if' block. 2016-03-01 18:21:02 -08:00
Neil Fraser
6eb652cf70 Fix persistence of logging in playground. 2016-02-29 15:02:05 -08:00
Neil Fraser
a0a61d2f33 Add event grouping. Add event monitoring to playground. 2016-02-12 22:09:21 -08:00
Neil Fraser
4253de041a Remove old realtime. 2016-01-08 13:03:22 -08:00
Neil Fraser
6acaf35967 Add workspace.newBlock, deprecate Blockly.Block.obtain. 2015-12-07 16:40:45 +01:00
Neil Fraser
96e130d113 Remove old realtime files. 2015-12-02 22:37:55 -08:00
Neil Fraser
b10ef6da48 Allow custom gaps to be specified between toolbox blocks. 2015-10-25 22:20:08 -04:00
Neil Fraser
1026d353ce Allow blocks in toolbox to be disabled individually. 2015-10-21 15:21:51 -07:00
Neil Fraser
a485e63df2 Allow zooming of non-scrolling workspaces. 2015-10-21 14:38:39 -07:00
Neil Fraser
dcd463b550 Add 'startScale' and remove 'enabled' options on zoom. 2015-10-21 13:25:02 -07:00
Neil Fraser
59cadcb2d7 Add optional colour tabs on toolbox categories. 2015-10-12 17:30:41 -07:00
Neil Fraser
799835943a Shadow Blocks 2015-10-06 18:09:27 -07:00
Neil Fraser
ac9de0d915 Deprecate empty list block. 2015-10-02 15:38:39 -07:00
Neil Fraser
2d11522c0e Stop Firefox from jumping when widget div is displayed. Issue 186. 2015-10-01 20:23:46 -07:00
Neil Fraser
510d96276e Improve a couple of XML literal strings. 2015-09-24 15:20:31 -07:00
Neil Fraser
5b7fec7092 Add zooming feature.
By carloslfu.
2015-08-19 17:21:05 -07:00
Neil Fraser
9050e32954 Adding JsonInit method of creating blocks. 2015-06-08 15:54:18 -07:00
Neil Fraser
9c1e8588ba Merge pull request #101 from daarond/master
PHP Generator Support
2015-06-04 15:06:26 -07:00
Neil Fraser
e8ab929b6a Fix visibility changes with toolbox. 2015-05-22 17:08:59 -07:00
daarond
58b41c9c46 changes from Neil's comments 2015-05-21 11:26:32 -05:00
daarond
f0c837bb2d starting php support addition 2015-05-09 16:52:36 -05:00
Neil Fraser
3ff69d47fe Inject can now take an ID. Also, fix unit tests. 2015-04-29 20:26:04 -07:00
Neil Fraser
17961f7f58 Support multiple Blockly instances. 2015-04-28 13:51:25 -07:00
Neil Fraser
4d2aac4f19 Bug-fixes to background grid. 2015-03-08 17:39:30 -07:00
Neil Fraser
612b190ef4 Add background grid for snapping. 2015-03-08 12:48:42 -07:00
Neil Fraser
aa5afd18f6 Improve rendering speed. 2015-01-26 04:56:58 -08:00
Neil Fraser
816aa86992 Replace <hr> with <sep></sep> (issue 50). Alphabetize CSS. 2015-01-23 18:24:15 -08:00