Commit graph

2241 commits

Author SHA1 Message Date
Tim Mickel
ec362557a4 Explicit disabling of workspace resizing (#653)
* Add explicit mechanism for enabling/disabling resizes

* Disable workspace resizing on block drag
2016-10-03 20:15:54 -04:00
Sean Lip
5a11ce8842 Make delete sound louder for Accessible Blockly. 2016-10-03 15:37:30 -07:00
Tim Mickel
727b386aa2 Shim goog.global => this!!!! (#655) 2016-10-03 17:16:22 -04:00
Tim Mickel
f0d00095f3 Add compressed vertical playground (#654) 2016-10-03 14:37:21 -04:00
Airhogs777
640f25dfbe Add classes for insertion-markers and replacement-rings (#646)
* add class for replacement rings

* add class for insertion-markers
2016-10-03 11:32:41 -04:00
Tim Mickel
675d091a27 Remove build assets (#652) 2016-10-03 09:06:08 -04:00
Tim Mickel
d9b0dcfc6d Fix input shape widths (#651) 2016-10-03 09:05:27 -04:00
Tim Mickel
2f03a21f2f Rename more.js; recompile 10/3 (#650) 2016-10-03 08:41:17 -04:00
Tim Mickel
efb3d41483 Thinner scrollbars (#649) 2016-10-03 08:32:07 -04:00
Airhogs777
d00c2942e4 Dropdown menu categories (#647)
* add getter for category

* set dropdown's data-category to parent block's category

* remove unused parameter
2016-10-03 08:17:45 -04:00
Airhogs777
bac07dc65a Add attribute for argument type (take 2) (#645)
* a more robust way to add an attribute to arguments

* always run superclass constructor before setting argtype
2016-10-02 13:36:32 -04:00
Airhogs777
3538cb503e add an explicit class for block background (#643) 2016-09-30 17:48:57 -04:00
Troy McKinnon
ad3541992e add a few type definitions 2016-09-30 16:26:44 -05:00
Airhogs777
d7745b12fd Classify blocks by category (#638)
* boilerplate for category attribute

* style tweaks for Travis

* I read up on valid-jsdoc

* add to horizontal as well

* categories for vertical/event

* categories for vertical/data

* categories for vertical/control

* categories for vertical/looks

* categories for vertical/more

* categories for vertical/motion

* categories for vertical/operators

* categories for vertical/pen

* categories for vertical/senising

* rename Blockly.Categories.sounds to Blockly.Categories.sound

* add categories for vertical/sound

* categories for horizontal/control

* categories for horizontal/event

* categories for horizontal/wedo -- based off of color instead of adding wedo category
2016-09-30 16:42:39 -04:00
Tim Mickel
d929da38c5 Restore including statement width in this.width calculation (#642) 2016-09-30 16:18:21 -04:00
Tim Mickel
02a9a6d607 Position drop-down based on actual block dimensions (#630)
* Position drop-down based on actual block dimensions

* Calculate dropdown positioning based on actual field position
2016-09-30 13:36:29 -04:00
Tim Mickel
b14a80738f Set checkboxes in drop-downs to scroll with menu (#632)
* Set checkboxes in drop-downs to scroll with menu

* Fix RTL support
2016-09-30 13:33:20 -04:00
Sean Lip
966cda6088 Make aria-levels 1-indexed. Allow pressing Enter to go down a level, and pressing Escape to go up a level. Add a guard against incorrect status message when reaching the top of the outermost level. 2016-09-29 15:31:13 -07:00
Neil Fraser
48f181e1e3 Merge branch 'pr/657' into develop 2016-09-28 23:13:22 -07:00
Neil Fraser
c0b3a765f7 Merge branch 'develop' into pr/657 2016-09-28 23:10:57 -07:00
Neil Fraser
8dd96a24f2 Merge branch 'master' into develop 2016-09-28 23:07:08 -07:00
Neil Fraser
918da99f39 Wrapping lines > 80 char. 2016-09-28 23:06:09 -07:00
Chris Johnson
90d924b84a Adds default def comment only if comments enabled. 2016-09-29 00:49:06 -05:00
Niklas Laxström
0fb77e09d0 Localisation updates from https://translatewiki.net. 2016-09-29 07:23:00 +02:00
Rachel Fenichel
3d6a9b8a4d Merge pull request #655 from google/RoboErikG-chkBox-uc
Make field checkbox setValue case insensitive
2016-09-28 16:26:53 -07:00
RoboErikG
5b3eb8a9e5 Update field_checkbox.js 2016-09-28 16:25:24 -07:00
Tim Mickel
6edc1b4ba0 Move checked menu item when new value set (#633) 2016-09-28 16:42:42 -04:00
Tim Mickel
dec82e2551 Hide DropDownDivs and WidgetDivs on workspace clear (#629) 2016-09-28 16:41:35 -04:00
Airhogs777
dd539e16eb Classify blocks by shape (#621)
* add shapes list

* distinguish shadow blocks from reporters

* remove comparison to current attribute value around setAttribute -- this was to avoid CSS flickering but I believe the browser does this automatically

* naming/style tweaks

* add horizontal support

* add arguments to horizontal

* only reclassify if redrawing

* style tweaks
2016-09-28 11:20:30 -04:00
Tim Mickel
8669fa2459 Constants adjustments (#635)
* Slight increase to STACK_GLOW_RADIUS

* Move glow radii to constants

* Adjustment of SNAP_RADIUS and CONNECTING_SNAP_RADIUS
2016-09-28 11:17:55 -04:00
Neil Fraser
13c5d9b3dd Improve bubble arrow paths for extreme ratios. 2016-09-27 18:26:29 -07:00
Sean Lip
972e3b00eb Make help text clearer and less verbose. 2016-09-27 12:05:12 -07:00
Tim Mickel
d74e6652ac Allow text in "set var"; default "change var" = 1 (#627) 2016-09-27 14:22:46 -04:00
Sean Lip
298f237d7b Update notification messages. 2016-09-27 11:06:24 -07:00
Tim Mickel
b00dcd7ace Rename data_list -> data_listcontents, fix #612 (#628) 2016-09-27 12:01:36 -04:00
Ray Schamp
37aea861c8 Merge pull request #624 from LLK/travis-build-compressed
Build compressed js before publishing
2016-09-27 11:07:25 -04:00
Ray Schamp
0842dd5552 Build compressed js before publishing 2016-09-27 11:03:15 -04:00
Ray Schamp
67dddff5bb Merge pull request #625 from rschamp/version-format
Use semver-friendly version format when publishing to npm
2016-09-27 11:02:06 -04:00
Tim Mickel
4659245d4d Drop goog.Timer, replacing with setTimeout/clearTimeout (#623)
* Drop goog.Timer

* Recompile
2016-09-27 10:42:37 -04:00
Ray Schamp
4486b3ce19 Use semver-friendly version format
x.x.x-prerelease.x is semver friendly.
Move the git commit data to package.json's repo field.
2016-09-27 10:18:27 -04:00
Niklas Laxström
641d720842 Localisation updates from https://translatewiki.net. 2016-09-27 13:48:34 +02:00
Rachel Fenichel
cc2ffb991a Merge pull request #620 from rachel-fenichel/merge_sept_22
Merge sept 22
2016-09-26 10:35:54 -07:00
Ray Schamp
83463b6787 Merge pull request #622 from LLK/npm
Publish to NPM
2016-09-26 09:00:17 -04:00
Ray Schamp
27fbeaa175 Add explanatory comments 2016-09-25 13:53:10 -04:00
Ray Schamp
8084954983 Publish to NPM
Move build dependencies back to devDependencies.

The build is now a prepublish step, not a postinstall step since the build will be supplied with the package when installed.

Use travis-after-all to deploy to npm only after all tests pass in all Node environments.

Only release non-PR builds for master and develop branches. For convenience, these branches are defined in the Settings panel for the repo in Travis. This way builds can be rerun without a new push with different values for these vars (e.g. if the token needs to change or a release should happen outside of the normal release branches)

Since this happens in `after_script`, we can't use Travis's built-in npm deployment. So create an .npmrc for authentication for `npm publish`.

Publish versions with the package.json version + "-<git sha>", e.g. 0.1.0-93d2f. This allows us to deploy every push to GitHub without considering version bumps. This is intended to be a temporary solution until we have more systematic releases.
2016-09-24 14:51:59 -04:00
Sean Lip
09f25f618f Add information about the surrounding parent to the block description, for context. 2016-09-23 18:33:59 -07:00
Rachel Fenichel
de936e0954 Check startFlyout_ correctly 2016-09-23 16:28:42 -07:00
Rachel Fenichel
d76d155198 Decompose out sound loading, and call bindEvent with opt_noCaptureIdentifier=true, as google/blockly does. 2016-09-23 15:19:47 -07:00
Rachel Fenichel
dfcf66c063 Call longStop in createBlockFunc 2016-09-23 14:50:04 -07:00
Rachel Fenichel
63410dd719 rebuild 2016-09-23 13:49:15 -07:00