Commit graph

1994 commits

Author SHA1 Message Date
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
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
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
Tim Mickel
d74e6652ac Allow text in "set var"; default "change var" = 1 (#627) 2016-09-27 14:22:46 -04: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
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
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
958d1fc1e3 Remove contributing.md again 2016-09-22 15:04:04 -07:00
Rachel Fenichel
892a6d0f5f Rebuild 2016-09-22 14:56:42 -07:00
Rachel Fenichel
029148dd25 Merge branch 'develop' of https://github.com/google/blockly into merge_sept_22 2016-09-22 14:55:57 -07:00
Rachel Fenichel
f7b7347a20 Merge pull request #490 from rachel-fenichel/feature/simple_multitouch
Ignore everything but the first touch stream
2016-09-22 14:21:27 -07:00
Rachel Fenichel
705d373317 Merge branch 'develop' into feature/simple_multitouch 2016-09-22 13:57:41 -07:00
Tim Mickel
eb18c2c402 Stop block to match 2.0 (#619)
* Stop block with mutator

* Insertion marker takes mutations

* Remove shadow from playground

* Drop list options when connected

* Constants
2016-09-22 16:52:50 -04:00
Tim Mickel
a6f34ae519 Merge google/develop, recompile (#617)
* Check result of window.confirm before deleting variables.

* Create CONTRIBUTING.md

* Localisation updates from https://translatewiki.net.

* Cherrypick fixes made directly to master back into develop (#619)

* Check result of window.confirm before deleting variables.

* Create CONTRIBUTING.md

* rebuild

* Localisation updates from https://translatewiki.net.

* Minor wording change.

* Localisation updates from https://translatewiki.net.

* Localisation updates from https://translatewiki.net.

* Simplify the handling of the active desc for a toolbox without categories.

* Remove tables from the HTML. Move the toolbar buttons to the end so that they don't impede switching between the toolbox and workspace.

* When cutting or copying a block, do not include blocks joined to it.

* Add shadow to flyout buttons.

* Move 'create new group' button to the bottom of each toolbox block, and remove other buttons if there is nothing in the workspace.

* Add keyboard shortcuts for cut, copy and paste operations.

* Remove clipboard buttons to simplify UI.

* Prevent setting a number value to NaN. Select the field value on entry to an input field. State the contents of the input field when describing the field.

* Add aria-level and aria-selected attrs to dropdowns.

* routine recompile

* Update demo to latest interpreter.

* Move 'move to marked spot' button to the top of the block options list.

* Fix incorrect aria-levels in toolbox tree component.

* Add new fields to toolbarButtonConfig.

* Recompile

* Remove CONTRIBUTING
2016-09-22 16:39:52 -04:00
Ray Schamp
a9c9f925b8 Merge pull request #616 from rschamp/postinstall
Fix paths for scripts
2016-09-22 12:50:51 -04:00
Ray Schamp
1831890a7d Fix paths for scripts
The explicit path is necessary when installing as a dependency (e.g., when postinstall runs)
2016-09-22 12:49:54 -04:00
Rachel Fenichel
1d1321a00d Changes per neil's comments, plus a rebuild 2016-09-21 16:25:44 -07:00
Sean Lip
3b84076c93 Add new fields to toolbarButtonConfig. 2016-09-21 15:41:58 -07:00
Rachel Fenichel
7d435bdb99 Review cleanup 2016-09-21 13:44:55 -07:00
Tim Mickel
4bbfa87b05 Stack glow proportional to scale (#615) 2016-09-21 13:21:13 -04:00
Sean Lip
bcd8b999b2 Fix incorrect aria-levels in toolbox tree component. 2016-09-20 17:50:35 -07:00
Sean Lip
9cdee00425 Merge branch 'develop' of https://github.com/google/blockly into develop 2016-09-20 17:50:16 -07:00
Sean Lip
0779c959d7 Move 'move to marked spot' button to the top of the block options list. 2016-09-20 17:44:18 -07:00
Rachel Fenichel
10c6d998c3 Get rid of a console.trace and allow drops on the toolbox 2016-09-20 15:10:33 -07:00
Neil Fraser
5cdb843f3e Update demo to latest interpreter. 2016-09-20 12:52:22 -07:00
Ray Schamp
3ed6f33815 Merge pull request #614 from rschamp/postinstall
Use postinstall instead of prepublish
2016-09-20 15:29:56 -04:00
Katelyn Mann
27199b8a3c routine recompile 2016-09-20 10:59:44 -07:00
Katelyn Mann
21841dcc14 Merge branch 'master' into develop 2016-09-20 10:51:00 -07:00
Sean Lip
270ed961bf Add aria-level and aria-selected attrs to dropdowns. 2016-09-19 19:33:35 -07:00
Sean Lip
f4e316e8a9 Prevent setting a number value to NaN. Select the field value on entry to an input field. State the contents of the input field when describing the field. 2016-09-19 16:59:24 -07:00
Sean Lip
284f71c46a Remove clipboard buttons to simplify UI. 2016-09-19 16:04:08 -07:00
Ray Schamp
604a2b111c Use postinstall instead of prepublish
When installing from github, npm doesn't run prepublish on install, like it does when you're using npm link.

npm also doesn't install the devDependencies of its dependencies, so since these are needed for installation, move them to dependencies.
2016-09-19 19:01:30 -04:00
Sean Lip
ee403c6a95 Add keyboard shortcuts for cut, copy and paste operations. 2016-09-19 15:45:46 -07:00