Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
507 commits
Select commit Hold shift + click to select a range
fc162cf
Merge pull request #1659 from kyleplo/patch-3
kchadha Jul 31, 2018
f3745d0
Set pointer-events all on flyout
ericrosenbaum Jul 31, 2018
be77232
Merge branch 'bugfix/edge-status-button' of https://github.com/ericro…
ericrosenbaum Aug 1, 2018
d794251
Set pointer-events: all on FlyoutButton instead
ericrosenbaum Aug 1, 2018
c217572
Merge pull request #1667 from ericrosenbaum/bugfix/edge-status-button
ericrosenbaum Aug 2, 2018
7d153b7
RTL positioning for category labels and buttons in the flyout.
kchadha Aug 2, 2018
28795e0
Merge pull request #1668 from kchadha/RTL-category-labels-buttons
chrisgarrity Aug 2, 2018
0d09104
Translations update - adds Azerbaijani
chrisgarrity Aug 3, 2018
89b4fe2
Merge pull request #1669 from chrisgarrity/translations-aug3
chrisgarrity Aug 3, 2018
a3b1020
Make holding shift to scroll work on Firefox
towerofnix Aug 3, 2018
6f14a2b
Merge pull request #1665 from rachel-fenichel/bugfix/null_mutation
rachel-fenichel Aug 6, 2018
4e6707b
Only take keypresses when visible
fsih Aug 7, 2018
a1cb780
Add issue to todo and getter for isVisible on workspace
fsih Aug 9, 2018
4eec9df
Fix lint
fsih Aug 9, 2018
968088e
Merge pull request #1674 from fsih/keyWhenVisible
fsih Aug 9, 2018
802ce85
Avoid dragging comment's line
eqot Aug 9, 2018
e4f7316
Place newly-created custom blocks in the top left of the visible work…
towerofnix Aug 10, 2018
e2d54e4
Sync transtions with Transifex
chrisgarrity Aug 10, 2018
f5ff602
Merge pull request #1678 from chrisgarrity/translations-aug10
chrisgarrity Aug 10, 2018
be4feca
Comment about block positioning
towerofnix Aug 10, 2018
14cd73b
Place new custom blocks in top right if RTL
towerofnix Aug 10, 2018
731ab04
Merge pull request #1670 from towerofnix/shift-scroll-firefox
fsih Aug 13, 2018
698af3f
Merge pull request #1664 from rachel-fenichel/cleanup/throw_errors
rachel-fenichel Aug 16, 2018
7e25f38
Utility function cleanup for merges
rachel-fenichel Aug 16, 2018
733ff20
Move isRecyclable into scratchblocksutils
rachel-fenichel Aug 17, 2018
c8b820d
Move duplicateAndDragCallback into scratchBlocksUtils
rachel-fenichel Aug 17, 2018
0b16cb5
Sync translations from Transifex
chrisgarrity Aug 17, 2018
dc4944a
Merge pull request #1689 from chrisgarrity/translations-aug17
chrisgarrity Aug 17, 2018
209005e
Add Latvian
chrisgarrity Aug 17, 2018
d4b879e
Merge pull request #1690 from chrisgarrity/translations-add-latvian
chrisgarrity Aug 17, 2018
442b311
Remove realtime references from options.js
rachel-fenichel Aug 17, 2018
ecad2b9
Move code for pasing colour options into colours.js
rachel-fenichel Aug 17, 2018
0d17039
Remove copy-paste error
rachel-fenichel Aug 20, 2018
6cec8dc
Merge pull request #1692 from rachel-fenichel/remove_realtime
rachel-fenichel Aug 20, 2018
d5c7722
Merge branch 'develop' into feature/colours_file
rachel-fenichel Aug 20, 2018
dfad64b
Merge pull request #1693 from rachel-fenichel/feature/colours_file
rachel-fenichel Aug 20, 2018
fcedac0
Merge pull request #1688 from rachel-fenichel/move_to_utils
rachel-fenichel Aug 20, 2018
9389c7a
Merge branch 'procedure-top-left' of https://github.com/towerofnix/sc…
kchadha Aug 20, 2018
7c511f5
Merge branch 'develop' of github.com:LLK/scratch-blocks into develop
kchadha Aug 20, 2018
7cb1705
Merge pull request #1677 from towerofnix/procedure-top-left
kchadha Aug 20, 2018
0fcce48
Merge branch 'develop' of github.com:LLK/scratch-blocks into develop
kchadha Aug 22, 2018
30bac55
Merge pull request #1676 from eqot/avoid-dragging-comment-line
kchadha Aug 22, 2018
5b34893
Revert "Throw Errors instead of using goog.asserts"
thisandagain Aug 22, 2018
6758860
Merge branch 'develop' of github.com:LLK/scratch-blocks into develop
kchadha Aug 22, 2018
9624dbe
Merge pull request #1698 from LLK/revert-1664-cleanup/throw_errors
thisandagain Aug 22, 2018
de1c8fc
Sync new translations from transifex
chrisgarrity Aug 24, 2018
b537fc4
Merge pull request #1699 from chrisgarrity/translations-aug24
chrisgarrity Aug 24, 2018
30a6e67
Handle RTL text (#1702)
chrisgarrity Aug 30, 2018
e196ddc
sync translations with Transifex
chrisgarrity Aug 30, 2018
cdef57d
Merge pull request #1710 from chrisgarrity/translations-aug31
chrisgarrity Aug 30, 2018
0af59db
Merge branch 'develop' of github.com:LLK/scratch-blocks into develop
kchadha Sep 12, 2018
5e88c4f
Localize 'item # of value in list' block
towerofnix Sep 12, 2018
9e5089a
Sync translations with Transifex
benjiwheeler Sep 18, 2018
fb9c0ee
Merge pull request #1718 from benjiwheeler/translations-sep18
benjiwheeler Sep 18, 2018
7efba4b
Merge branch 'develop' of github.com:LLK/scratch-blocks into develop
kchadha Sep 21, 2018
9a686af
add block transformer
peeratham Sep 26, 2018
fe2852f
Merge pull request #1714 from towerofnix/localize-itemnum
chrisgarrity Sep 26, 2018
b4746c8
Update source files and sync new translations
chrisgarrity Sep 26, 2018
c9982e5
Merge pull request #1722 from chrisgarrity/translations-sep26
chrisgarrity Sep 26, 2018
0715ff9
add basic transformations(varcreate, blockcreate, insert,replace block)
peeratham Sep 26, 2018
4c7c133
grouping of refactoring transformations as single event
peeratham Sep 30, 2018
0cb93a5
fix bug block insert in cshape block
peeratham Oct 2, 2018
0fa3ef6
Fix RTL block comment positioning and RTL workspace comment rendering
kchadha Oct 2, 2018
1fef923
Block and comment events should report language agnostic coordinates …
kchadha Oct 2, 2018
7ec8864
Fix comment for getRelativeToSurfaceXY
kchadha Oct 2, 2018
d17f0e0
Update tests
kchadha Oct 4, 2018
c190de6
Remove unnecessary assignment of 'this.workspace'
kchadha Oct 4, 2018
1c9eb7c
Sync translations from Transifex
chrisgarrity Oct 4, 2018
365f905
Merge pull request #1727 from chrisgarrity/translations-oct4
chrisgarrity Oct 4, 2018
6cd3887
Remove generators
thisandagain Oct 4, 2018
f2309f7
Update README to clarify recommended usage of the Scratch VM
thisandagain Oct 4, 2018
955c7c4
Add dart to gitignore
thisandagain Oct 4, 2018
88b5303
Fix typo in cleanup.sh file
thisandagain Oct 4, 2018
416f496
add execute action
peeratham Oct 4, 2018
880de9f
Merge pull request #1726 from kchadha/fix-comment-auto-positioning-rtl
kchadha Oct 5, 2018
25030e7
undo each action
peeratham Oct 5, 2018
485062d
Merge pull request #1728 from thisandagain/bugfix/generators
thisandagain Oct 9, 2018
723d655
Field dropdown calls menu item values that are functions
ericrosenbaum Oct 9, 2018
e9169be
Add SOUND_RECORD localization
ericrosenbaum Oct 3, 2018
62c88b7
Sync translations with transifex
chrisgarrity Oct 10, 2018
f45e257
Merge pull request #1732 from chrisgarrity/translations-oct10
chrisgarrity Oct 10, 2018
f8a9eeb
Merge pull request #1731 from ericrosenbaum/feature/menus-call-functi…
ericrosenbaum Oct 11, 2018
3763e93
fix bug handle replace stmt block when the target has no next connection
peeratham Oct 15, 2018
6fa4b28
Fixes webpack problem breaking 'npm install' (#1739)
ErikMejerHansen Oct 23, 2018
86cfaae
fixed missing argType declaration (#1738)
ZenithRogue Oct 23, 2018
53d0c73
Fix #1506 (#1741)
rachel-fenichel Oct 23, 2018
d398e99
Fix #1647 (#1742)
rachel-fenichel Oct 23, 2018
16e0024
Fix #1408 (#1740)
rachel-fenichel Oct 23, 2018
6da220d
Use grandparent block colours for number picker dropdowns (#1744)
rachel-fenichel Oct 23, 2018
a5ff0e1
Fix #1345. Android triggers a window resize event when the soft keyb…
picklesrus Oct 23, 2018
b42ca51
Choose sensible defaults for custom procedure parameters.
kchadha Oct 23, 2018
9060794
Merge pull request #1746 from kchadha/procedure-param-defaults
kchadha Oct 24, 2018
1ae4f85
Initialize currentDragDeltaXY_ correctly (#1747)
rachel-fenichel Oct 24, 2018
1ad1d98
Remove unneeded logs (#1748)
rachel-fenichel Oct 24, 2018
d5ecd39
Use different text for variable and list deletion/renaming (#1750)
rachel-fenichel Oct 24, 2018
149dd3f
Add a context menu to the list getter block (#1749)
rachel-fenichel Oct 24, 2018
05b9930
Don't allow illegal connections to procedure prototype blocks (#1751)
rachel-fenichel Oct 24, 2018
6e88b92
Update translations
chrisgarrity Oct 24, 2018
e8da98c
Merge pull request #1753 from chrisgarrity/translations-oct24
chrisgarrity Oct 24, 2018
1e750d5
Merge pull request #1687 from rachel-fenichel/merge_cleanup_1
thisandagain Oct 25, 2018
dc33650
Add some missing utility functions
rachel-fenichel Oct 25, 2018
d03a3fe
Merge pull request #1754 from rachel-fenichel/bugfix/add_startswith
ericrosenbaum Oct 25, 2018
d17267b
Add play note block to default toolbox for testing
ericrosenbaum Oct 25, 2018
bdb1770
Fix procedure definition blocks with trailing text (#1755)
rachel-fenichel Oct 25, 2018
3bc701a
Automate translation update (#1752)
chrisgarrity Oct 26, 2018
f7c8e15
fix bug transformer inserting at the first pos of statement type input
peeratham Oct 26, 2018
c9b5159
Remove custom touch handling for dropdowns (#1756)
rachel-fenichel Oct 26, 2018
d76d657
fix bug insert statement block
peeratham Oct 26, 2018
174b1d0
Add note field with SVG piano keys
ericrosenbaum Oct 26, 2018
68f3a84
Draw black and white keys in a single loop
ericrosenbaum Oct 27, 2018
e4bc15d
Key highlighting
ericrosenbaum Oct 29, 2018
fee8ae7
Add note name indicator
ericrosenbaum Oct 29, 2018
2357ecd
Add playNote function to override
ericrosenbaum Oct 29, 2018
640a2ad
Add octave buttons
ericrosenbaum Oct 29, 2018
45d65c8
Labels on low and high C keys
ericrosenbaum Oct 29, 2018
cfab08d
function to add C key labels
ericrosenbaum Oct 30, 2018
ef77396
Only show one octave (13 keys)
ericrosenbaum Oct 30, 2018
5a130d5
Handle octave display state
ericrosenbaum Oct 30, 2018
61ff2aa
Fix C key fill color
ericrosenbaum Oct 30, 2018
de40fb1
Remove extra bottom padding
ericrosenbaum Oct 30, 2018
f9b2c35
Allow block comments to be editable on mobile by catching the mousedo…
picklesrus Oct 30, 2018
c19c795
Octave shift animation
ericrosenbaum Oct 31, 2018
b538842
Fix octave change bugs
ericrosenbaum Oct 31, 2018
4eb9338
Add validator
ericrosenbaum Oct 31, 2018
6bf5f4b
sync translations (#1761)
chrisgarrity Oct 31, 2018
aca556d
Cleanup and JSDOC
ericrosenbaum Oct 31, 2018
392e72f
Precisely position the piano keys, so the stroke appears the same on …
ericrosenbaum Nov 1, 2018
fc59f9d
Update octave button and fix positioning
ericrosenbaum Nov 1, 2018
b926c5b
Adjust piano key positioning
ericrosenbaum Nov 1, 2018
e139d08
Remove console.log
ericrosenbaum Nov 1, 2018
d3f903f
Hide and show C key labels
ericrosenbaum Nov 1, 2018
441713b
Animate C key label visibility
ericrosenbaum Nov 1, 2018
cd36159
Cleanup
ericrosenbaum Nov 1, 2018
3d9d8a4
Use unicode sharp and flat symbols
ericrosenbaum Nov 2, 2018
5ab5db5
Disable pointer events on field angle arrow to fix firefox dragging
paulkaplan Nov 5, 2018
8601813
Ensmallen the delete area to not extend above and below the flyout
paulkaplan Nov 5, 2018
02bedc7
Merge pull request #1769 from paulkaplan/fix-firefox-arrow
paulkaplan Nov 5, 2018
75f7b3c
Merge pull request #1770 from paulkaplan/update-vertical-flyout-bounds
paulkaplan Nov 5, 2018
18f9b23
Fix comment
ericrosenbaum Nov 5, 2018
f5aa450
Optimize SVG
ericrosenbaum Nov 5, 2018
ec32be0
Clarify variable names for fieldEditorWidth_ and fieldEditorHeight_
ericrosenbaum Nov 5, 2018
0044907
Dispose SVG elements
ericrosenbaum Nov 5, 2018
b688375
Octave button handlers directly call octave changers
ericrosenbaum Nov 5, 2018
7aed71b
Gave the drag handle a bit more spaceing to avoid glow getting cut (#…
ErikMejerHansen Nov 6, 2018
259ac00
Correctly dispose keySVGs array
ericrosenbaum Nov 7, 2018
68f1a8b
Merge pull request #1763 from ericrosenbaum/feature/note-picker
ericrosenbaum Nov 7, 2018
c5d8159
Fix local compile on Windows
Nov 7, 2018
153ea8c
Sync translations with Transifex
chrisgarrity Nov 8, 2018
b63e5c6
Merge pull request #1774 from chrisgarrity/translations-nov8
chrisgarrity Nov 8, 2018
4ffecde
Merge pull request #1772 from cwillisf/windows-fix-local-compile
cwillisf Nov 9, 2018
1465a9e
Revert "Merge pull request #1772 from cwillisf/windows-fix-local-comp…
Nov 9, 2018
72ceccc
Support scientific notation in numerical inputs
towerofnix Nov 10, 2018
88091d2
Make insertion markers for define blocks have the correct width (#1781)
ErikMejerHansen Nov 13, 2018
6a05f43
Allow uppercase E in numbers as well
towerofnix Nov 13, 2018
93bbd0b
Track cloud variable info and handle naming and renaming cloud variab…
kchadha Nov 13, 2018
bf91929
feat: (try to) add 'random position' dropdown in 'point towards'
joker314 Nov 11, 2018
82c8f27
Merge pull request #1780 from towerofnix/scientific-notation
paulkaplan Nov 14, 2018
54ab2ef
Update varcreate json tests to include cloud variable info.
kchadha Nov 14, 2018
d5c0c16
Merge pull request #1782 from kchadha/cloud-vars
kchadha Nov 14, 2018
748de4c
sync translations with Transifex
chrisgarrity Nov 14, 2018
ef6cfad
Merge pull request #1785 from chrisgarrity/translations-nov14
chrisgarrity Nov 15, 2018
c31746d
add ‘random direction’ to translations
chrisgarrity Nov 15, 2018
b7088bb
Merge pull request #1786 from joker314/feat/point-towards-dropdown
chrisgarrity Nov 15, 2018
737fa6f
Update scratch-l10n to the latest version
chrisgarrity Nov 15, 2018
fcf38a3
Merge pull request #1787 from chrisgarrity/refresh-translations
chrisgarrity Nov 15, 2018
b941299
wip
peeratham Nov 16, 2018
f4721f2
Merge remote-tracking branch 'origin/develop' into develop
peeratham Nov 16, 2018
5cff1ad
Merge branch 'develop' into refactoring-support
peeratham Nov 16, 2018
7a0c8cc
Sync translations with transifex
chrisgarrity Nov 20, 2018
2dae2f1
Merge pull request #1791 from chrisgarrity/translations-nov20
chrisgarrity Nov 20, 2018
5b520c4
Add hint object (a copy of Blockly warning)
peeratham Nov 20, 2018
89c8225
add test code
peeratham Nov 20, 2018
ba82f7e
move hint icon to end of block
peeratham Nov 20, 2018
6855a27
replace text with svg icon
peeratham Nov 21, 2018
aa69537
fix bug
peeratham Nov 22, 2018
5acfe71
disable drag on hint bubble
peeratham Nov 22, 2018
1d160fe
context menu on right click hint bubble
peeratham Nov 22, 2018
a788f28
add hint menu options
peeratham Nov 23, 2018
d78e2f7
Update scratch-l10n
chrisgarrity Nov 29, 2018
559b17c
Fix importing cloud vars from xml.
kchadha Nov 30, 2018
10b1b7a
Merge pull request #1799 from chrisgarrity/translations-nov29
chrisgarrity Dec 3, 2018
b4eb123
Merge pull request #1801 from kchadha/cloud-rename-bugfix
kchadha Dec 3, 2018
07ada2d
fixed lack of category id under ([sensing] of [object]) (#1798)
ZenithRogue Dec 4, 2018
3a22dae
Merge branch 'contextual-hint-icon' into refactoring-support
peeratham Dec 4, 2018
2a0bd8b
Fix the "Create Variable" button in the playground by providing default
paulkaplan Dec 4, 2018
2f659d4
Use variable IDs and setValue instead of variable names and setText f…
paulkaplan Dec 4, 2018
d8e6f71
Merge pull request #1803 from paulkaplan/fix-var-context-menu
paulkaplan Dec 5, 2018
9d07404
Update and switch to reviewed translations
chrisgarrity Dec 6, 2018
30b2443
Use variable name as rename prompt's default value
towerofnix Dec 7, 2018
cc6545e
Merge pull request #1806 from chrisgarrity/translations-dec6
chrisgarrity Dec 7, 2018
5b3bffb
Update min height on drop down div, to fix reporters having extra spa…
kchadha Dec 7, 2018
ea6a0cc
Merge pull request #1810 from LLK/kchadha-fix-reporter-bubble-css
paulkaplan Dec 7, 2018
15098b2
Use fill-opacity for notepicker shadow
epicfaace Dec 10, 2018
4fd0c1e
Make SHADOW_OPACITY a number, not a string
epicfaace Dec 10, 2018
25d816f
Clear dropdown width
epicfaace Dec 10, 2018
1215b47
Fix extra events being emitted from the color slider
paulkaplan Dec 10, 2018
2b7bb62
Move binding callbacks below showing dropdown div so sliders update
paulkaplan Dec 11, 2018
cecd643
Merge pull request #1815 from paulkaplan/fix-color-slider-events
kchadha Dec 11, 2018
0aa6869
Conditionally turn off slider handle callbacks.
kchadha Dec 11, 2018
f17d389
Merge pull request #1812 from epicfaace/feature/notepicker-width
picklesrus Dec 12, 2018
bf9f037
Merge pull request #1816 from kchadha/fix-touching-color-purple
paulkaplan Dec 12, 2018
6042702
Do not include own variable name in variable reporter context menu.
kchadha Dec 12, 2018
799c7bd
Don't include cloud symbol in default value of "rename variable" prompt
kchadha Dec 12, 2018
273d5c2
Use CLOUD_PREFIX.length instead of assuming it
towerofnix Dec 12, 2018
9bb62e6
Change the order of the arrow keys
chrisgarrity Dec 12, 2018
0f1d91a
Merge pull request #1818 from chrisgarrity/issue/2173-arrow-order
chrisgarrity Dec 13, 2018
9d9b1ad
Merge pull request #1817 from kchadha/skip-self-in-var-context-menu
kchadha Dec 13, 2018
28ee2a6
Lint (fix long line)
kchadha Dec 13, 2018
ae423b3
Merge pull request #1811 from epicfaace/feature/notepicker-shadow
picklesrus Dec 13, 2018
1fead2c
Update translations
chrisgarrity Dec 13, 2018
d0c79de
Merge pull request #1819 from chrisgarrity/translations-dec13
chrisgarrity Dec 13, 2018
202d671
Merge pull request #1807 from towerofnix/rename-default-value
kchadha Dec 13, 2018
f2bd666
scroll very long context menus
epicfaace Dec 13, 2018
31dd997
Don't bind on mouseup for toolbox when block is being dragged over it
epicfaace Dec 18, 2018
684a18c
Merge pull request #1831 from epicfaace/feature/toolbox-drag
picklesrus Dec 18, 2018
79b9cf6
Comment formatting improvements
epicfaace Dec 19, 2018
57d1090
pull new translations from transifex
chrisgarrity Dec 21, 2018
02eb9e7
Merge pull request #1838 from chrisgarrity/translations-dec21
chrisgarrity Dec 21, 2018
1f6c091
add var rename action
peeratham Dec 22, 2018
0a092d6
"Say something" for block comment
apple502j Dec 27, 2018
d762d54
Merge pull request #1821 from epicfaace/feature/context-menu
picklesrus Jan 15, 2019
5d832c3
Merge pull request #1835 from epicfaace/feature/comment-format
picklesrus Jan 15, 2019
da3e22b
Merge pull request #1841 from apple502j/patch-1
kchadha Jan 16, 2019
5763192
Pull new translations from transifex
chrisgarrity Jan 17, 2019
ca5f56e
Merge pull request #1868 from chrisgarrity/translations-jan17
chrisgarrity Jan 17, 2019
2700029
Add new langauges.
chrisgarrity Jan 17, 2019
2bcb761
Merge pull request #1870 from chrisgarrity/add-languages
chrisgarrity Jan 17, 2019
59ac318
add HintClick custom event
peeratham Jan 22, 2019
b0691e7
Merge remote-tracking branch 'LLK/develop' into develop
peeratham Jan 22, 2019
3de8a85
add block transformer
peeratham Sep 26, 2018
c263aba
add basic transformations(varcreate, blockcreate, insert,replace block)
peeratham Sep 26, 2018
b20635d
grouping of refactoring transformations as single event
peeratham Sep 30, 2018
b2f7243
fix bug block insert in cshape block
peeratham Oct 2, 2018
f10333f
add execute action
peeratham Oct 4, 2018
f76ad74
undo each action
peeratham Oct 5, 2018
174524d
fix bug handle replace stmt block when the target has no next connection
peeratham Oct 15, 2018
6864a3a
fix bug transformer inserting at the first pos of statement type input
peeratham Oct 26, 2018
2030b87
fix bug insert statement block
peeratham Oct 26, 2018
d09f8df
wip
peeratham Nov 16, 2018
94d0464
Add hint object (a copy of Blockly warning)
peeratham Nov 20, 2018
2984185
add test code
peeratham Nov 20, 2018
c104971
move hint icon to end of block
peeratham Nov 20, 2018
91326ce
replace text with svg icon
peeratham Nov 21, 2018
582b7a3
fix bug
peeratham Nov 22, 2018
c957683
disable drag on hint bubble
peeratham Nov 22, 2018
82092f2
context menu on right click hint bubble
peeratham Nov 22, 2018
7ef6da5
add hint menu options
peeratham Nov 23, 2018
c38ece5
add var rename action
peeratham Dec 22, 2018
d1d7ebd
add HintClick custom event
peeratham Jan 22, 2019
133bbe3
Merge remote-tracking branch 'origin/refactoring-support' into refact…
peeratham Jan 22, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
/tests/jsunit/*
/tests/workspace_svg/*
/tests/blocks/*
/tests/generators/*
/generators/*
/demos/*
/accessible/*
/appengine/*
Expand Down
1 change: 1 addition & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
"quotes": ["off"], # Blockly mixes single and double quotes
"semi": ["error", "always"],
"space-before-function-paren": ["error", "never"], # Blockly doesn't have space before function paren
"space-infix-ops": ["error"],
"strict": ["off"], # Blockly uses 'use strict' in files
"no-cond-assign": ["off"], # Blockly often uses cond-assignment in loops
"no-redeclare": ["off"], # Closure style allows redeclarations
Expand Down
17 changes: 15 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,22 @@ common.pyc
*.komodoproject
/nbproject/private/

# Unused by scratch-blocks
dart_compressed.js
javascript_compressed.js
lua_compressed.js
php_compressed.js
python_compressed.js

# Editor
.vscode

/accessible/*
/dist
/msg/json/synonyms.json
/msg/json/qqq.json
/msg/js/*
!/msg/js/en.js
/msg/json/*
!/msg/json/en.json
/blockly_compressed_horizontal.js
/blockly_compressed_vertical.js
/blockly_uncompressed_horizontal.js
Expand All @@ -31,3 +43,4 @@ common.pyc
/gh-pages/_site
/*compiler*.jar
/local_blockly_compressed_vertical.js
/chromedriver
17 changes: 17 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
# Development files
.eslintrc
/.editorconfig
/.eslintignore
/.gitattributes
/.github
/.travis.yml
/.tx
/tests
/webpack.config.js

# Localization / I18N
common.pyc
.settings
Expand All @@ -7,3 +18,9 @@ common.pyc
/nbproject/private/

/accessible/*

# Build created files
/gh-pages

# Exclude already built packages from testing with npm pack
/scratch-blocks-*.{tar,tgz}
9 changes: 9 additions & 0 deletions .tx/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[main]
host = https://www.transifex.com
lang_map = zh_CN:zh-cn, zh_TW:zh-tw, pt_BR:pt-br, es_419:es-419

[scratch-editor.blocks]
file_filter = msg/json/<lang>.json
source_file = msg/json/en.json
source_lang = en
type = KEYVALUEJSON
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,11 @@
![](https://cloud.githubusercontent.com/assets/747641/15227351/c37c09da-1854-11e6-8dc7-9a298f2b1f01.jpg)

## Introduction
Scratch Blocks is a fork of Google's [Blockly](https://github.com/google/blockly) project that provides a design specification and codebase for building creative computing interfaces. Together with the [Scratch Virtual Machine (VM)](https://github.com/LLK/scratch-vm) this codebase allows for the rapid design and development of visual programming interfaces.
Scratch Blocks is a fork of Google's [Blockly](https://github.com/google/blockly) project that provides a design specification and codebase for building creative computing interfaces. Together with the [Scratch Virtual Machine (VM)](https://github.com/LLK/scratch-vm) this codebase allows for the rapid design and development of visual programming interfaces. Unlike [Blockly](https://github.com/google/blockly), Scratch Blocks does not use [code generators](https://developers.google.com/blockly/guides/configure/web/code-generators), but rather leverages the [Scratch Virtual Machine](https://github.com/LLK/scratch-vm) to create highly dynamic, interactive programming environments.

*This project is in active development and should be considered a "developer preview" at this time.*

## Two Types of Blocks

![](https://cloud.githubusercontent.com/assets/747641/15255731/dad4d028-190b-11e6-9c16-8df7445adc96.png)

Scratch Blocks brings together two different programming "grammars" that the Scratch Team has designed and continued to refine over the past decade. The standard [Scratch](https://scratch.mit.edu) grammar uses blocks that snap together vertically, much like LEGO bricks. For our [ScratchJr](https://scratchjr.org) software, intended for younger children, we developed blocks that are labelled with icons rather than words, and snap together horizontally rather than vertically. We have found that the horizontal grammar is not only friendlier for beginning programmers but also better suited for devices with small screens.
Expand All @@ -21,4 +20,4 @@ Scratch Blocks brings together two different programming "grammars" that the Scr
The "getting started" guide including [FAQ](https://scratch.mit.edu/developers#faq) and [design documentation](https://github.com/LLK/scratch-blocks/wiki/Design) can be found in the [wiki](https://github.com/LLK/scratch-blocks/wiki).

## Donate
We provide [Scratch](https://scratch.mit.edu) free of charge, and want to keep it that way! Please consider making a [donation](https://secure.donationpay.org/scratchfoundation/) to support our continued engineering, design, community, and resource development efforts. Donations of any size are appreciated. Thank you!
We provide [Scratch](https://scratch.mit.edu) free of charge, and want to keep it that way! Please consider making a [donation](https://secure.donationpay.org/scratchfoundation/) to support our continued engineering, design, community, and resource development efforts. Donations of any size are appreciated. Thank you!
8 changes: 1 addition & 7 deletions TRADEMARK
Original file line number Diff line number Diff line change
@@ -1,7 +1 @@
The Scratch trademarks, including the Scratch name, logo, the Scratch Cat, Gobo, Pico, Nano, Tera and Giga graphics (the "Marks"), are property of the Massachusetts Institute of Technology (MIT), and the use of the Marks is governed by this policy.

You may use the Marks to refer to Scratch in Substantially Unmodified form.

"Substantially Unmodified" means the source code provided by MIT, possibly with minor modifications including but not limited to: bug fixes (including security), changing the locations of files for better integration with the host operating system, adding documentation, and changes to the dynamic linking of libraries.

A version is not "Substantially Unmodified" if it incorporates features not present in a release of Scratch by MIT. If you do make a substantial modification, to avoid confusion with versions of Scratch produced by MIT you must remove all Marks from your version of the software and refrain from using any of the Marks to refer to your version.
The Scratch trademarks, including the Scratch name, logo, the Scratch Cat, Gobo, Pico, Nano, Tera and Giga graphics (the "Marks"), are property of the Massachusetts Institute of Technology (MIT). Marks may not be used to endorse or promote products derived from this software without specific prior written permission.
54 changes: 54 additions & 0 deletions blocks_common/matrix.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
/**
* @license
* Visual Blocks Editor
*
* Copyright 2012 Google Inc.
* https://developers.google.com/blockly/
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

/**
* @fileoverview Matrix blocks for Blockly.
* @author khanning@gmail.com (Kreg Hanning)
*/
'use strict';

goog.provide('Blockly.Blocks.matrix');

goog.require('Blockly.Blocks');

goog.require('Blockly.Colours');

goog.require('Blockly.constants');

Blockly.Blocks['matrix'] = {
/**
* Block for matrix value.
* @this Blockly.Block
*/
init: function() {
this.jsonInit({
"message0": "%1",
"args0": [
{
"type": "field_matrix",
"name": "MATRIX"
}
],
"outputShape": Blockly.OUTPUT_SHAPE_ROUND,
"output": "Number",
"extensions": ["colours_pen"]
});
}
};
57 changes: 57 additions & 0 deletions blocks_common/note.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
/**
* @license
* Visual Blocks Editor
*
* Copyright 2012 Google Inc.
* https://developers.google.com/blockly/
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

/**
* @fileoverview Note block.
* @author ericr@media.mit.edu (Eric Rosenbaum)
*/
'use strict';

goog.provide('Blockly.Blocks.note');

goog.require('Blockly.Blocks');

goog.require('Blockly.Colours');

goog.require('Blockly.constants');

Blockly.Blocks['note'] = {
/**
* Block for musical note value.
* @this Blockly.Block
*/
init: function() {
this.jsonInit({
"message0": "%1",
"args0": [
{
"type": "field_note",
"name": "NOTE",
"value": 60
}
],
"outputShape": Blockly.OUTPUT_SHAPE_ROUND,
"output": "Number",
"colour": Blockly.Colours.textField,
"colourSecondary": Blockly.Colours.textField,
"colourTertiary": Blockly.Colours.textField
});
}
};
12 changes: 6 additions & 6 deletions blocks_vertical/control.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,12 +183,12 @@ Blockly.Blocks['control_stop'] = {
this.sourceBlock_.nextConnection &&
this.sourceBlock_.nextConnection.isConnected()) {
return [
['other scripts in sprite', OTHER_SCRIPTS]
[Blockly.Msg.CONTROL_STOP_OTHER, OTHER_SCRIPTS]
];
}
return [['all', ALL_SCRIPTS],
['this script', THIS_SCRIPT],
['other scripts in sprite', OTHER_SCRIPTS]
return [[Blockly.Msg.CONTROL_STOP_ALL, ALL_SCRIPTS],
[Blockly.Msg.CONTROL_STOP_THIS, THIS_SCRIPT],
[Blockly.Msg.CONTROL_STOP_OTHER, OTHER_SCRIPTS]
];
}, function(option) {
// Create an event group to keep field value and mutator in sync
Expand All @@ -204,7 +204,7 @@ Blockly.Blocks['control_stop'] = {
return null;
});
this.appendDummyInput()
.appendField('stop')
.appendField(Blockly.Msg.CONTROL_STOP)
.appendField(stopDropdown, 'STOP_OPTION');
this.setCategory(Blockly.Categories.control);
this.setColour(Blockly.Colours.control.primary,
Expand Down Expand Up @@ -409,7 +409,7 @@ Blockly.Blocks['control_create_clone_of_menu'] = {
"type": "field_dropdown",
"name": "CLONE_OPTION",
"options": [
['myself', '_myself_']
[Blockly.Msg.CONTROL_CREATECLONEOF_MYSELF, '_myself_']
]
}
],
Expand Down
Loading