Commit Graph

2842 Commits

Author SHA1 Message Date
translatewiki.net
72f334114b Localisation updates from https://translatewiki.net. 2018-08-27 07:38:48 +02:00
Neil Fraser
cb3ea2f56e Remove goog.ui.ColorPicker (#2020)
Adds the ability to set the tooltip titles for each colour.

Note that Closure’s colour picker in Blockly used to have keyboard controls (as of > 3 years ago); but no longer seems to.  This replacement does not currently have keyboard controls either.
2018-08-24 12:14:42 -07:00
RoboErikG
9eacd7d3b9 Disable/enable function calls along with their definitions (#2019)
Fixes #1344

Extends the event listener on procedure caller blocks to also check
for their definition being enabled/disabled and update their own
state in response.
2018-08-23 11:18:29 -07:00
Andrew n marshall
57aa2e966b Improving field validator docs (PR #2018)
Merge pull request #2018 from AnmAtAnm/field-validator-doc
2018-08-23 10:57:19 -07:00
translatewiki.net
30ce093cd2 Localisation updates from https://translatewiki.net. 2018-08-23 08:12:54 +02:00
Andrew n marshall
6c6bd040d5 Correcting annotations of procedure block mixin functions (PR #2017)
Merging pull request #2017 from AnmAtAnm/proc-override
2018-08-22 17:09:56 -07:00
Andrew n marshall
26903a8ca5 Update the docs related to fieldvalidators. 2018-08-22 13:27:07 -07:00
Andrew n marshall
dec9a2c743 Correcting annotations of procedure block mixin functions. 2018-08-22 12:55:16 -07:00
picklesrus
962fcd5c2e Fix #1959 by calling bring to front when a block drag starts inside a mutator. (#2013) 2018-08-21 12:51:43 -07:00
RoboErikG
a8bb9091bb Add support for eslint5 (#2009)
Fixes #2006

- Makes a copy of .eslintrc in .eslintrc.json
- Updates eslint rules to support eslint5.
- Changes travis to use eslint5
2018-08-20 14:42:57 -07:00
Andrew n marshall
46ee2d90fb Moving media/test_* files (PR #2004)
...to tests/media/.
2018-08-15 14:42:53 -07:00
RoboErikG
22fc0f8af9 Add test for replacing a rendered shadow block (#1981)
PR #1970 created a bug that only occurred when replacing a rendered
shadow block. Add a test for this case to prevent breaking it again.
2018-08-14 09:52:02 -07:00
Andrew n marshall
05e0dc62e6 Merge pull request #1996 from fsih/bugfix/hidden_workspace
Bug fix for keyboard events to headless workspaces and non-main workspaces.
2018-08-14 09:50:03 -07:00
translatewiki.net
2312dfef98 Localisation updates from https://translatewiki.net. 2018-08-13 08:07:26 +02:00
Andrew n marshall
7c5204f7c9 Resizable demo: Call svgResize in the resize handler (PR #2001) 2018-08-09 16:26:11 -07:00
Andrew n marshall
4dbf201e0f Call svgResize in the resize handler.
Resolves #2000
2018-08-09 16:01:50 -07:00
translatewiki.net
72eb088fe7 Localisation updates from https://translatewiki.net. 2018-08-09 09:19:24 +02:00
DD
4a34663d49 Fix lint 2018-08-08 21:10:02 -04:00
DD
8d3dea4c74 Add issue to todo and getter for isVisible on workspace 2018-08-08 20:44:23 -04:00
DD
e06807155d Add todo per code review 2018-08-07 18:04:04 -04:00
Rachel Fenichel
2eeee8b9af Stop handling keypresses when the workspace is hidden. 2018-08-07 18:03:23 -04:00
Andrew n marshall
e064a147c7 Create a common helper function for Comment[Create|Delete]) (PR #1988)
Resolves #1871
2018-08-07 12:54:47 -07:00
Rachel Fenichel
341865c80c Merge pull request #1995 from rachel-fenichel/feature/unplug_horizontal
Heal rows when unplugging, and add tests
2018-08-06 11:28:12 -07:00
Rachel Fenichel
b89487e332 Ignore whether parent has multiple inputs 2018-08-06 11:18:00 -07:00
Rachel Fenichel
a8d52903e2 update comment with todo 2018-08-06 10:29:12 -07:00
Dhruv
3ab37dbe46 #1871 Create a common helper function for Comment[Create|Delete] 2018-08-07 00:17:55 +08:00
Neil Fraser
c6afb08c4b Add unit tests and code cleanup to utils (#1993)
* Add unit tests for new util functions
* Utils functions shouldn’t be package, not private.
* Use existing utility function for insertAfter
2018-08-03 14:31:50 -07:00
Rachel Fenichel
b65491e656 Heal rows when unplugging, and add tests 2018-08-03 13:54:29 -07:00
Rachel Fenichel
cc60346cf0 Merge pull request #1992 from rachel-fenichel/tests/block_unplug
Tests for block.unplug
2018-08-03 10:11:36 -07:00
Rachel Fenichel
b52267bee9 Tests for block.unplug 2018-08-02 17:35:10 -07:00
translatewiki.net
4e6fb831ed Localisation updates from https://translatewiki.net. 2018-08-02 10:11:50 +02:00
Neil Fraser
6ce31942e0 Some goog.dom removal (#1991) 2018-08-01 15:47:28 -07:00
Neil Fraser
1fa4a8d856 Rebuild (#1990) 2018-07-31 12:58:16 -07:00
translatewiki.net
adce2c6d12 Localisation updates from https://translatewiki.net. 2018-07-30 08:17:36 +02:00
translatewiki.net
f2af7a2983 Localisation updates from https://translatewiki.net. 2018-07-26 10:01:43 +02:00
Rachel Fenichel
2517eb40ef Merge pull request #1986 from gokula-krishna-dev/resolve-xml-attribute
Change XML attribute for procedure from varId to var-id
2018-07-25 10:33:47 -07:00
Gokula Krishna
eef7e8f923 Change the XML attribute key from var-id to varid 2018-07-25 10:56:22 +08:00
Gokula Krishna
2c3ef64609 Remove varId attribute while saving 2018-07-24 17:29:35 +08:00
Gokula Krishna
97d3956c43 Prioritize current key var-id 2018-07-24 13:31:04 +08:00
Gokula Krishna
6275c6eef7 Change XML attribute for procedure from varId to var-id 2018-07-24 11:12:17 +08:00
RoboErikG
61803167d8 Add test for deleting a rendered block with a comment (#1984)
Disabled for now as it fails due to #1960.
2018-07-23 10:56:37 -07:00
translatewiki.net
eca22c9bd2 Localisation updates from https://translatewiki.net. 2018-07-23 09:31:27 +02:00
Andrew n marshall
f42291ea64 Do not escape % in python strings. (#1982)
Rebase of PR-1890, commit 793055… from Ellipsis753:patch-1
2018-07-20 15:54:11 -07:00
translatewiki.net
49955bd984 Localisation updates from https://translatewiki.net. 2018-07-20 14:59:28 +02:00
RoboErikG
c815608fdf Fix failing svg canvas test (#1977)
Partial fix for #1976. This fixes the broken test by initializing the
svg for blocks when they're created.
2018-07-17 09:35:53 -07:00
Andrew n marshall
4860e34f51 Removing goog.* uses from blocks/*.js files (#1975)
* Removing goog.arrays.equals() in blocks/procedures.js, with minor refactor.
* Replacing goog.dom.createDom() in blocks/procedures.js, blocks/variables.js,  blocks/variables_dynamic.js, and blocks/loops.js.
2018-07-16 17:01:12 -07:00
Neil Fraser
c8bfc888c8 Throw errors instead of strings. (#1974)
Blocks and generators
2018-07-16 16:33:44 -07:00
RoboErikG
99ebefa1bf Revert "Fix #1960 by collecting block info before icons are destroyed" (#1973)
* Revert "Localisation updates from https://translatewiki.net."

This reverts commit c4a0b64945.

* Revert "Fix #1960 by collecting block info before icons are destroyed (#1970)"

This reverts commit 9a3bd45b22.
2018-07-16 10:18:40 -07:00
translatewiki.net
c4a0b64945 Localisation updates from https://translatewiki.net. 2018-07-16 16:49:05 +02:00
RoboErikG
9a3bd45b22 Fix #1960 by collecting block info before icons are destroyed (#1970)
The icons in rendered Blockly currently own the comment text. When
a block was deleted the icons were being disposed of before the block
info was recorded in the event, which meant the comment was lost. This
adds some additional logic to block_svg to make sure the event is
captured before the icons are removed.
2018-07-12 15:34:32 -07:00