Compare commits

...
Author SHA1 Message Date
dependabot-preview[bot] d755f94663 Merge pull request #6005 from LLK/dependabot/npm_and_yarn/scratch-paint-0.2.0-prerelease.20200717024459 2020-07-17 03:00:45 +00:00
dependabot-preview[bot] af490a3b9e build(deps-dev): bump scratch-paint
Bumps [scratch-paint](https://github.com/LLK/scratch-paint) from 0.2.0-prerelease.20200714203549 to 0.2.0-prerelease.20200717024459.
- [Release notes](https://github.com/LLK/scratch-paint/releases)
- [Commits](https://github.com/LLK/scratch-paint/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-07-17 02:49:55 +00:00
dependabot-preview[bot] 3c5942cfe1 Merge pull request #6001 from LLK/dependabot/npm_and_yarn/scratch-render-0.1.0-prerelease.20200716193608 2020-07-16 19:51:06 +00:00
dependabot-preview[bot] 115849551c build(deps-dev): bump scratch-render
Bumps [scratch-render](https://github.com/LLK/scratch-render) from 0.1.0-prerelease.20200714205428 to 0.1.0-prerelease.20200716193608.
- [Release notes](https://github.com/LLK/scratch-render/releases)
- [Commits](https://github.com/LLK/scratch-render/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-07-16 19:41:46 +00:00
dependabot-preview[bot] 27f10283f1 Merge pull request #5997 from LLK/dependabot/npm_and_yarn/lodash-4.17.19 2020-07-16 15:19:59 +00:00
dependabot-preview[bot] 4bcddd7378 build(deps): [security] bump lodash from 4.17.15 to 4.17.19
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.15 to 4.17.19. **This update includes a security fix.**
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.15...4.17.19)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-07-16 15:10:23 +00:00
Benjamin Wheeler 920f5ac659 Merge pull request #5996 from benjiwheeler/readme-troubleshooting
add troubleshooting section to README
2020-07-16 10:58:52 -04:00
Ben Wheeler 89d91c18ca add troubleshooting section to README 2020-07-16 10:55:14 -04:00
dependabot-preview[bot] fe067ea705 Merge pull request #5987 from LLK/dependabot/npm_and_yarn/scratch-l10n-3.10.20200715030910 2020-07-15 03:24:36 +00:00
dependabot-preview[bot] ed8ddce504 build(deps-dev): bump scratch-l10n
Bumps [scratch-l10n](https://github.com/LLK/scratch-l10n) from 3.10.20200708030815 to 3.10.20200715030910.
- [Release notes](https://github.com/LLK/scratch-l10n/releases)
- [Commits](https://github.com/LLK/scratch-l10n/compare/3.10.20200708030815...3.10.20200715030910)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-07-15 03:15:03 +00:00
dependabot-preview[bot] c7ac7fbc47 Merge pull request #5985 from LLK/dependabot/npm_and_yarn/scratch-vm-0.2.0-prerelease.20200714185213 2020-07-14 21:18:16 +00:00
dependabot-preview[bot] db0b8cbf8b build(deps-dev): bump scratch-vm
Bumps [scratch-vm](https://github.com/LLK/scratch-vm) from 0.2.0-prerelease.20200709173451 to 0.2.0-prerelease.20200714185213.
- [Release notes](https://github.com/LLK/scratch-vm/releases)
- [Commits](https://github.com/LLK/scratch-vm/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-07-14 21:04:50 +00:00
DD Liu 2792ad7950 Merge pull request #5986 from fsih/updatePaintAndRender
Update paint and render
2020-07-14 17:01:43 -04:00
DD Liu e2cbc75842 Update paint and render 2020-07-14 16:59:49 -04:00
dependabot-preview[bot] 2b8aed3b19 Merge pull request #5984 from LLK/dependabot/npm_and_yarn/babel/cli-7.10.5 2020-07-14 20:46:33 +00:00
dependabot-preview[bot] d5677e314b Merge pull request #5983 from LLK/dependabot/npm_and_yarn/babel/core-7.10.5 2020-07-14 20:42:46 +00:00
dependabot-preview[bot] 1f25b1ed48 build(deps-dev): bump @babel/cli from 7.10.4 to 7.10.5
Bumps [@babel/cli](https://github.com/babel/babel/tree/HEAD/packages/babel-cli) from 7.10.4 to 7.10.5.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.10.5/packages/babel-cli)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-07-14 20:37:01 +00:00
dependabot-preview[bot] 2631054729 build(deps-dev): bump @babel/core from 7.10.4 to 7.10.5
Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) from 7.10.4 to 7.10.5.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.10.5/packages/babel-core)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-07-14 20:32:42 +00:00
Chris Willis-Ford dcc8caa6f4 Merge pull request #5397 from cwillisf/init-ga-only-if-id
initialize Google Analytics only if GA_ID is set
2020-07-14 09:56:41 -07:00
dependabot-preview[bot] 874371d56f Merge pull request #5978 from LLK/dependabot/npm_and_yarn/scratch-render-0.1.0-prerelease.20200709194750 2020-07-14 16:21:12 +00:00
dependabot-preview[bot] 5be54a1e7a build(deps-dev): bump scratch-render
Bumps [scratch-render](https://github.com/LLK/scratch-render) from 0.1.0-prerelease.20200622210757 to 0.1.0-prerelease.20200709194750.
- [Release notes](https://github.com/LLK/scratch-render/releases)
- [Commits](https://github.com/LLK/scratch-render/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-07-14 16:11:47 +00:00
dependabot-preview[bot] 0e5bec8f07 Merge pull request #5982 from LLK/dependabot/npm_and_yarn/scratch-blocks-0.1.0-prerelease.20200714135908 2020-07-14 16:08:53 +00:00
dependabot-preview[bot] 1ffbaf890a build(deps-dev): bump scratch-blocks
Bumps [scratch-blocks](https://github.com/LLK/scratch-blocks) from 0.1.0-prerelease.20200709183415 to 0.1.0-prerelease.20200714135908.
- [Release notes](https://github.com/LLK/scratch-blocks/releases)
- [Commits](https://github.com/LLK/scratch-blocks/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-07-14 15:59:42 +00:00
dependabot-preview[bot] 8166488002 Merge pull request #5979 from LLK/dependabot/npm_and_yarn/autoprefixer-9.8.5 2020-07-11 06:03:52 +00:00
dependabot-preview[bot] f0e13aeac7 build(deps-dev): bump autoprefixer from 9.8.2 to 9.8.5
Bumps [autoprefixer](https://github.com/postcss/autoprefixer) from 9.8.2 to 9.8.5.
- [Release notes](https://github.com/postcss/autoprefixer/releases)
- [Changelog](https://github.com/postcss/autoprefixer/blob/master/CHANGELOG.md)
- [Commits](https://github.com/postcss/autoprefixer/compare/9.8.2...9.8.5)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-07-11 05:55:08 +00:00
dependabot-preview[bot] 7e7b8ffa60 Merge pull request #5976 from LLK/dependabot/npm_and_yarn/scratch-blocks-0.1.0-prerelease.20200709183415 2020-07-09 20:50:47 +00:00
dependabot-preview[bot] 2e37ccb646 build(deps-dev): bump scratch-blocks
Bumps [scratch-blocks](https://github.com/LLK/scratch-blocks) from 0.1.0-prerelease.20200630140237 to 0.1.0-prerelease.20200709183415.
- [Release notes](https://github.com/LLK/scratch-blocks/releases)
- [Commits](https://github.com/LLK/scratch-blocks/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-07-09 20:40:54 +00:00
dependabot-preview[bot] 5826fceea7 Merge pull request #5975 from LLK/dependabot/npm_and_yarn/scratch-vm-0.2.0-prerelease.20200709173451 2020-07-09 20:30:01 +00:00
dependabot-preview[bot] cf3aa60358 build(deps-dev): bump scratch-vm
Bumps [scratch-vm](https://github.com/LLK/scratch-vm) from 0.2.0-prerelease.20200625173937 to 0.2.0-prerelease.20200709173451.
- [Release notes](https://github.com/LLK/scratch-vm/releases)
- [Commits](https://github.com/LLK/scratch-vm/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-07-09 20:20:28 +00:00
Chris Willis-Ford de49bebd1d Merge pull request #5962 from cwillisf/ci-no-progress
disable webpack progress plugin on CI
2020-07-09 08:55:50 -07:00
dependabot-preview[bot] d74a5ca29b Merge pull request #5957 from LLK/dependabot/npm_and_yarn/scratch-blocks-0.1.0-prerelease.20200630140237 2020-07-08 03:35:58 +00:00
dependabot-preview[bot] cec927053d build(deps-dev): bump scratch-blocks
Bumps [scratch-blocks](https://github.com/LLK/scratch-blocks) from 0.1.0-prerelease.20200623135713 to 0.1.0-prerelease.20200630140237.
- [Release notes](https://github.com/LLK/scratch-blocks/releases)
- [Commits](https://github.com/LLK/scratch-blocks/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-07-08 03:26:25 +00:00
dependabot-preview[bot] 5eecc06733 Merge pull request #5971 from LLK/dependabot/npm_and_yarn/scratch-l10n-3.10.20200708030815 2020-07-08 03:23:39 +00:00
dependabot-preview[bot] 2c5504d909 build(deps-dev): bump scratch-l10n
Bumps [scratch-l10n](https://github.com/LLK/scratch-l10n) from 3.10.20200624030914 to 3.10.20200708030815.
- [Release notes](https://github.com/LLK/scratch-l10n/releases)
- [Commits](https://github.com/LLK/scratch-l10n/compare/3.10.20200624030914...3.10.20200708030815)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-07-08 03:13:16 +00:00
Christopher Willis-Ford 0647270674 disable webpack progress plugin on CI 2020-07-02 11:59:11 -07:00
zoebentley 1d7806198c Merge pull request #5934 from zoebentley/tutorial-reorder-6-2020
Reorder tutorials to their order pre-HOC
2020-06-30 12:05:38 -04:00
dependabot-preview[bot] d4e3fc8f6e Merge pull request #5956 from LLK/dependabot/npm_and_yarn/babel/cli-7.10.4 2020-06-30 14:03:29 +00:00
dependabot-preview[bot] cc07513d28 Merge pull request #5955 from LLK/dependabot/npm_and_yarn/babel/preset-react-7.10.4 2020-06-30 13:55:21 +00:00
dependabot-preview[bot] 8d1c575c57 Merge pull request #5954 from LLK/dependabot/npm_and_yarn/babel/plugin-proposal-object-rest-spread-7.10.4 2020-06-30 13:54:42 +00:00
dependabot-preview[bot] 3af719db43 Merge pull request #5953 from LLK/dependabot/npm_and_yarn/babel/preset-env-7.10.4 2020-06-30 13:53:26 +00:00
dependabot-preview[bot] 39429710be Merge pull request #5952 from LLK/dependabot/npm_and_yarn/babel/plugin-transform-async-to-generator-7.10.4 2020-06-30 13:44:53 +00:00
dependabot-preview[bot] c0dff9828d Merge pull request #5951 from LLK/dependabot/npm_and_yarn/babel/core-7.10.4 2020-06-30 13:43:49 +00:00
dependabot-preview[bot] 2612b95cbb build(deps-dev): bump @babel/cli from 7.10.3 to 7.10.4
Bumps [@babel/cli](https://github.com/babel/babel/tree/HEAD/packages/babel-cli) from 7.10.3 to 7.10.4.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.10.4/packages/babel-cli)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-30 13:39:31 +00:00
dependabot-preview[bot] 2eccd1d000 build(deps-dev): bump @babel/preset-react from 7.10.1 to 7.10.4
Bumps [@babel/preset-react](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-react) from 7.10.1 to 7.10.4.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.10.4/packages/babel-preset-react)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-30 13:38:49 +00:00
dependabot-preview[bot] cf6e7a314c build(deps-dev): bump @babel/plugin-proposal-object-rest-spread
Bumps [@babel/plugin-proposal-object-rest-spread](https://github.com/babel/babel/tree/HEAD/packages/babel-plugin-proposal-object-rest-spread) from 7.10.3 to 7.10.4.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.10.4/packages/babel-plugin-proposal-object-rest-spread)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-30 13:37:03 +00:00
dependabot-preview[bot] 3c46cfa624 build(deps-dev): bump @babel/preset-env from 7.10.3 to 7.10.4
Bumps [@babel/preset-env](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-env) from 7.10.3 to 7.10.4.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.10.4/packages/babel-preset-env)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-30 13:35:53 +00:00
dependabot-preview[bot] 72f85c30c3 build(deps-dev): bump @babel/plugin-transform-async-to-generator
Bumps [@babel/plugin-transform-async-to-generator](https://github.com/babel/babel/tree/HEAD/packages/babel-plugin-transform-async-to-generator) from 7.5.0 to 7.10.4.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.10.4/packages/babel-plugin-transform-async-to-generator)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-30 13:35:07 +00:00
dependabot-preview[bot] 3980f5d6fe build(deps-dev): bump @babel/core from 7.10.3 to 7.10.4
Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) from 7.10.3 to 7.10.4.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.10.4/packages/babel-core)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-30 13:33:20 +00:00
dependabot-preview[bot] f7b81d288d Merge pull request #5945 from LLK/dependabot/npm_and_yarn/eslint-plugin-import-2.22.0 2020-06-27 07:06:39 +00:00
dependabot-preview[bot] 8cfa4ee0f2 build(deps-dev): bump eslint-plugin-import from 2.21.2 to 2.22.0
Bumps [eslint-plugin-import](https://github.com/benmosher/eslint-plugin-import) from 2.21.2 to 2.22.0.
- [Release notes](https://github.com/benmosher/eslint-plugin-import/releases)
- [Changelog](https://github.com/benmosher/eslint-plugin-import/blob/master/CHANGELOG.md)
- [Commits](https://github.com/benmosher/eslint-plugin-import/compare/v2.21.2...v2.22.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-27 06:56:41 +00:00
dependabot-preview[bot] 950a3c749e Merge pull request #5929 from LLK/dependabot/npm_and_yarn/scratch-blocks-0.1.0-prerelease.20200623135713 2020-06-27 02:54:14 +00:00
dependabot-preview[bot] 7d796e4def Merge pull request #5924 from LLK/dependabot/npm_and_yarn/scratch-render-0.1.0-prerelease.20200622210757 2020-06-27 02:53:58 +00:00
dependabot-preview[bot] 3ab570d12c build(deps-dev): bump scratch-blocks
Bumps [scratch-blocks](https://github.com/LLK/scratch-blocks) from 0.1.0-prerelease.20200622190622 to 0.1.0-prerelease.20200623135713.
- [Release notes](https://github.com/LLK/scratch-blocks/releases)
- [Commits](https://github.com/LLK/scratch-blocks/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-27 02:38:38 +00:00
dependabot-preview[bot] 7786c30895 build(deps-dev): bump scratch-render
Bumps [scratch-render](https://github.com/LLK/scratch-render) from 0.1.0-prerelease.20200617185826 to 0.1.0-prerelease.20200622210757.
- [Release notes](https://github.com/LLK/scratch-render/releases)
- [Commits](https://github.com/LLK/scratch-render/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-27 02:38:35 +00:00
dependabot-preview[bot] f4680a3a4e Merge pull request #5931 from LLK/dependabot/npm_and_yarn/scratch-l10n-3.10.20200624030914 2020-06-27 02:35:48 +00:00
dependabot-preview[bot] 0fae1d0f68 build(deps-dev): bump scratch-l10n
Bumps [scratch-l10n](https://github.com/LLK/scratch-l10n) from 3.10.20200622132359 to 3.10.20200624030914.
- [Release notes](https://github.com/LLK/scratch-l10n/releases)
- [Commits](https://github.com/LLK/scratch-l10n/compare/3.10.20200622132359...3.10.20200624030914)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-27 02:25:20 +00:00
dependabot-preview[bot] 834e26a06c Merge pull request #5944 from LLK/dependabot/npm_and_yarn/scratch-paint-0.2.0-prerelease.20200627020736 2020-06-27 02:22:25 +00:00
dependabot-preview[bot] f6a6633336 build(deps-dev): bump scratch-paint
Bumps [scratch-paint](https://github.com/LLK/scratch-paint) from 0.2.0-prerelease.20200619164738 to 0.2.0-prerelease.20200627020736.
- [Release notes](https://github.com/LLK/scratch-paint/releases)
- [Commits](https://github.com/LLK/scratch-paint/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-27 02:12:40 +00:00
Eric Rosenbaum 44be3df489 Merge pull request #5927 from ericrosenbaum/prevent-ios-download-crash-timeout
Prevent crash when saving locally on iOS 13 safari
2020-06-26 15:15:54 -04:00
dependabot-preview[bot] 3f0389179c Merge pull request #5939 from LLK/dependabot/npm_and_yarn/scratch-vm-0.2.0-prerelease.20200625173937 2020-06-25 21:29:47 +00:00
dependabot-preview[bot] a6a4675cf7 build(deps-dev): bump scratch-vm
Bumps [scratch-vm](https://github.com/LLK/scratch-vm) from 0.2.0-prerelease.20200622143012 to 0.2.0-prerelease.20200625173937.
- [Release notes](https://github.com/LLK/scratch-vm/releases)
- [Commits](https://github.com/LLK/scratch-vm/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-25 21:19:33 +00:00
Benjamin Wheeler 33364bfc93 Merge pull request #5508 from adroitwhiz/stage-layout-refactor
Refactor stage layout
2020-06-25 14:52:42 -04:00
adroitwhiz 02fa66b09d Fix scrollbars doubling up
I'm disappointed that this CSS ever worked
2020-06-24 20:04:23 -04:00
adroitwhiz 3c65986564 Move sprite highlight box back inside stage border
I'm not sure why I thought the sprite highlight box extended outside the
stage
2020-06-24 19:08:45 -04:00
Zoë Bentley c73da68c3f Reorder tutorials to their order pre-HOC 2020-06-24 10:11:51 -04:00
chrisgarrity 609ff1cc50 Merge pull request #5463 from apple502j/apple-banana
Fix default parameter text loading in English
2020-06-23 16:23:53 -04:00
Eric Rosenbaum e7177b27ef use timeout to prevent file saving crash on iOS 13 safari 2020-06-23 11:45:52 -04:00
apple502j eb7a44991f Merge branch 'develop' into apple-banana 2020-06-23 14:42:14 +09:00
apple502j 7c4b126e9d Use isInitialSetup everywhere 2020-06-23 14:38:36 +09:00
dependabot-preview[bot] c7e347941b Merge pull request #5923 from LLK/dependabot/npm_and_yarn/scratch-blocks-0.1.0-prerelease.20200622190622 2020-06-22 20:29:04 +00:00
dependabot-preview[bot] 7c268a72ed Merge pull request #5922 from LLK/dependabot/npm_and_yarn/autoprefixer-9.8.2 2020-06-22 20:11:05 +00:00
dependabot-preview[bot] 469ca0568e build(deps-dev): bump scratch-blocks
Bumps [scratch-blocks](https://github.com/LLK/scratch-blocks) from 0.1.0-prerelease.20200617163252 to 0.1.0-prerelease.20200622190622.
- [Release notes](https://github.com/LLK/scratch-blocks/releases)
- [Commits](https://github.com/LLK/scratch-blocks/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-22 20:07:50 +00:00
dependabot-preview[bot] 341e902ff2 Merge pull request #5921 from LLK/dependabot/npm_and_yarn/scratch-l10n-3.10.20200622132359 2020-06-22 20:04:53 +00:00
adroitwhiz 4e3dd2bf60 Merge pull request #5740 from adroitwhiz/fix-edge-hsla
Fix sprite tile highlight color on Edge
2020-06-22 15:42:02 -04:00
dependabot-preview[bot] 3fb54957aa build(deps-dev): bump autoprefixer from 9.8.0 to 9.8.2
Bumps [autoprefixer](https://github.com/postcss/autoprefixer) from 9.8.0 to 9.8.2.
- [Release notes](https://github.com/postcss/autoprefixer/releases)
- [Changelog](https://github.com/postcss/autoprefixer/blob/master/CHANGELOG.md)
- [Commits](https://github.com/postcss/autoprefixer/compare/9.8.0...9.8.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-22 19:41:58 +00:00
dependabot-preview[bot] b588f25e6f build(deps-dev): bump scratch-l10n
Bumps [scratch-l10n](https://github.com/LLK/scratch-l10n) from 3.10.20200617210158 to 3.10.20200622132359.
- [Release notes](https://github.com/LLK/scratch-l10n/releases)
- [Commits](https://github.com/LLK/scratch-l10n/compare/3.10.20200617210158...3.10.20200622132359)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-22 19:41:14 +00:00
dependabot-preview[bot] 229cf99bcd Merge pull request #5917 from LLK/dependabot/npm_and_yarn/babel/core-7.10.3 2020-06-22 19:20:23 +00:00
dependabot-preview[bot] 5d8713b361 Merge pull request #5916 from LLK/dependabot/npm_and_yarn/babel/preset-env-7.10.3 2020-06-22 19:14:01 +00:00
dependabot-preview[bot] 5ec936b3c0 build(deps-dev): bump @babel/core from 7.10.2 to 7.10.3
Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) from 7.10.2 to 7.10.3.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.10.3/packages/babel-core)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-22 19:08:57 +00:00
dependabot-preview[bot] 0f8cd87c87 build(deps-dev): bump @babel/preset-env from 7.10.2 to 7.10.3
Bumps [@babel/preset-env](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-env) from 7.10.2 to 7.10.3.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.10.3/packages/babel-preset-env)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-22 19:03:16 +00:00
dependabot-preview[bot] f2e6af2fc9 Merge pull request #5915 from LLK/dependabot/npm_and_yarn/babel/plugin-proposal-object-rest-spread-7.10.3 2020-06-22 18:45:28 +00:00
dependabot-preview[bot] bacfe604ad Merge pull request #5914 from LLK/dependabot/npm_and_yarn/babel/cli-7.10.3 2020-06-22 18:38:12 +00:00
dependabot-preview[bot] daedd135a0 build(deps-dev): bump @babel/plugin-proposal-object-rest-spread
Bumps [@babel/plugin-proposal-object-rest-spread](https://github.com/babel/babel/tree/HEAD/packages/babel-plugin-proposal-object-rest-spread) from 7.10.1 to 7.10.3.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.10.3/packages/babel-plugin-proposal-object-rest-spread)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-22 18:35:32 +00:00
dependabot-preview[bot] 5dd6daea04 build(deps-dev): bump @babel/cli from 7.10.1 to 7.10.3
Bumps [@babel/cli](https://github.com/babel/babel/tree/HEAD/packages/babel-cli) from 7.10.1 to 7.10.3.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.10.3/packages/babel-cli)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-22 18:27:51 +00:00
dependabot-preview[bot] 4aaf9909a1 Merge pull request #5911 from LLK/dependabot/npm_and_yarn/scratch-vm-0.2.0-prerelease.20200622143012 2020-06-22 16:51:34 +00:00
dependabot-preview[bot] b78187b03a Merge pull request #5912 from LLK/dependabot/npm_and_yarn/scratch-paint-0.2.0-prerelease.20200619164738 2020-06-22 16:51:04 +00:00
dependabot-preview[bot] 4a18d3699f build(deps-dev): bump scratch-paint
Bumps [scratch-paint](https://github.com/LLK/scratch-paint) from 0.2.0-prerelease.20200615150428 to 0.2.0-prerelease.20200619164738.
- [Release notes](https://github.com/LLK/scratch-paint/releases)
- [Commits](https://github.com/LLK/scratch-paint/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-22 16:41:29 +00:00
dependabot-preview[bot] f5eb7207be build(deps-dev): bump scratch-vm
Bumps [scratch-vm](https://github.com/LLK/scratch-vm) from 0.2.0-prerelease.20200618162938 to 0.2.0-prerelease.20200622143012.
- [Release notes](https://github.com/LLK/scratch-vm/releases)
- [Commits](https://github.com/LLK/scratch-vm/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-22 16:40:51 +00:00
adroitwhiz 99c291781c Replace Stage <div> with React.Fragment
The Stage component will sometimes have a color picker background,
which darkens the entire screen when the color picker loupe is active.
This color picker background element should appear in the same level as
the stage's wrapper, not inside of it. Previously, this was done by
wrapping both the stage's wrapper and color picker background in a div.
Now, they're both wrapped in a React.Fragment to avoid a completely
unnecessary div wrapper.
2020-06-19 14:46:27 -04:00
adroitwhiz 63d67c87fd Change how stage overlays & fullscreen are handled
This makes the layout behavior for stage overlays much more consistent.

Items whose overflow *should* be contained within the stage, like the
monitors and color picker loupe, are now placed within the "stage"
element directly.

Items whose overflow should *not* be contained within the stage, like
the target highlight box and dragged sprite, are now inside a "stage
overlays" container element, which is properly positioned (taking into
account the stage's border width) and sized.

This is made possible by unifying stage layout across both fullscreen &
non-fullscreen modes via moving the fullscreen overlay styles to the
StageWrapper component. Whereas previously, the stage overlays were
positioned *outside* of the stage in fullscreen and had to reposition
themselves correctly, they are now positioned the same in both
fullscreen and regular modes.
2020-06-19 14:41:28 -04:00
adroitwhiz b02595922e Replace hack from #2354 with flexbox solution
The stage + target pane wrapper's width must be constrained to that of
the stage, even when there are lots of sprite tiles. Otherwise, once you
add enough sprites, it'll grow horizontally past the stage size. The old
code set its maximum width explicitly to stop that from happening, but
it can also be done more elegantly with the flex-basis property.
This also has the benefit of taking the stage border width into account.
2020-06-19 14:12:44 -04:00
adroitwhiz 15c74d998b Remove isStarted prop from GreenFlagOverlay
Since #3885, the GreenFlagOverlay has been hidden by the Stage component
instead of having to hide itself if the project has been started. Thus
there's no need for GreenFlagOverlay to know whether the project has
been started.
2020-06-19 14:12:43 -04:00
adroitwhiz 48c3cf6764 Merge pull request #5510 from adroitwhiz/drag-refactor
Call renderer.draw immediately on drag start/stop
2020-06-19 12:37:58 -04:00
dependabot-preview[bot] 4caddcec2c Merge pull request #5906 from LLK/dependabot/npm_and_yarn/scratch-vm-0.2.0-prerelease.20200618162938 2020-06-18 18:58:42 +00:00
dependabot-preview[bot] c33b6882c9 build(deps-dev): bump scratch-vm
Bumps [scratch-vm](https://github.com/LLK/scratch-vm) from 0.2.0-prerelease.20200616200729 to 0.2.0-prerelease.20200618162938.
- [Release notes](https://github.com/LLK/scratch-vm/releases)
- [Commits](https://github.com/LLK/scratch-vm/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-18 18:47:35 +00:00
dependabot-preview[bot] 4aa77e5cd9 Merge pull request #5904 from LLK/dependabot/npm_and_yarn/webpack-cli-3.3.12 2020-06-18 13:53:19 +00:00
dependabot-preview[bot] 707240e7cb build(deps-dev): bump webpack-cli from 3.3.9 to 3.3.12
Bumps [webpack-cli](https://github.com/webpack/webpack-cli) from 3.3.9 to 3.3.12.
- [Release notes](https://github.com/webpack/webpack-cli/releases)
- [Changelog](https://github.com/webpack/webpack-cli/blob/v3.3.12/CHANGELOG.md)
- [Commits](https://github.com/webpack/webpack-cli/compare/v3.3.9...v3.3.12)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-18 13:43:07 +00:00
dependabot-preview[bot] 3f10da2918 Merge pull request #5901 from LLK/dependabot/npm_and_yarn/scratch-blocks-0.1.0-prerelease.20200617163252 2020-06-17 22:34:03 +00:00
dependabot-preview[bot] b3ffd587a6 build(deps-dev): bump scratch-blocks
Bumps [scratch-blocks](https://github.com/LLK/scratch-blocks) from 0.1.0-prerelease.20200617153418 to 0.1.0-prerelease.20200617163252.
- [Release notes](https://github.com/LLK/scratch-blocks/releases)
- [Commits](https://github.com/LLK/scratch-blocks/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-17 22:16:42 +00:00
dependabot-preview[bot] 58ab777269 Merge pull request #5903 from LLK/dependabot/npm_and_yarn/scratch-l10n-3.10.20200617210158 2020-06-17 22:13:53 +00:00
dependabot-preview[bot] 7719a3131c build(deps-dev): bump scratch-l10n
Bumps [scratch-l10n](https://github.com/LLK/scratch-l10n) from 3.10.20200617135753 to 3.10.20200617210158.
- [Release notes](https://github.com/LLK/scratch-l10n/releases)
- [Commits](https://github.com/LLK/scratch-l10n/compare/3.10.20200617135753...3.10.20200617210158)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-17 22:02:57 +00:00
dependabot-preview[bot] fbd95135a5 Merge pull request #5902 from LLK/dependabot/npm_and_yarn/scratch-render-0.1.0-prerelease.20200617185826 2020-06-17 22:02:18 +00:00
dependabot-preview[bot] f5cd6ef4d7 build(deps-dev): bump scratch-render
Bumps [scratch-render](https://github.com/LLK/scratch-render) from 0.1.0-prerelease.20200615201428 to 0.1.0-prerelease.20200617185826.
- [Release notes](https://github.com/LLK/scratch-render/releases)
- [Commits](https://github.com/LLK/scratch-render/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-17 21:52:00 +00:00
chrisgarrity 3f4424ee5f Merge pull request #5899 from chrisgarrity/update-dependencies-mongolian
Update dependencies to add Mongolian
2020-06-17 12:17:00 -04:00
Chris Garrity 42193a64f0 Update dependencies to add Mongolian 2020-06-17 12:01:36 -04:00
dependabot-preview[bot] d800214667 Merge pull request #5895 from LLK/dependabot/npm_and_yarn/scratch-blocks-0.1.0-prerelease.20200616140139 2020-06-17 04:15:32 +00:00
dependabot-preview[bot] 8f51dae51c build(deps-dev): bump scratch-blocks
Bumps [scratch-blocks](https://github.com/LLK/scratch-blocks) from 0.1.0-prerelease.20200615150854 to 0.1.0-prerelease.20200616140139.
- [Release notes](https://github.com/LLK/scratch-blocks/releases)
- [Commits](https://github.com/LLK/scratch-blocks/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-17 04:04:11 +00:00
dependabot-preview[bot] 8a82741626 Merge pull request #5897 from LLK/dependabot/npm_and_yarn/scratch-vm-0.2.0-prerelease.20200616200729 2020-06-17 04:02:46 +00:00
dependabot-preview[bot] 18f59c0015 Merge pull request #5896 from LLK/dependabot/npm_and_yarn/scratch-l10n-3.9.20200616200843 2020-06-17 04:01:20 +00:00
dependabot-preview[bot] a49b9ad996 build(deps-dev): bump scratch-vm
Bumps [scratch-vm](https://github.com/LLK/scratch-vm) from 0.2.0-prerelease.20200611202828 to 0.2.0-prerelease.20200616200729.
- [Release notes](https://github.com/LLK/scratch-vm/releases)
- [Commits](https://github.com/LLK/scratch-vm/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-17 03:51:19 +00:00
dependabot-preview[bot] 41d708f123 build(deps-dev): bump scratch-l10n
Bumps [scratch-l10n](https://github.com/LLK/scratch-l10n) from 3.9.20200615152937 to 3.9.20200616200843.
- [Release notes](https://github.com/LLK/scratch-l10n/releases)
- [Commits](https://github.com/LLK/scratch-l10n/compare/3.9.20200615152937...3.9.20200616200843)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-17 03:51:00 +00:00
adroitwhiz 12d72f1a61 Merge pull request #5826 from adroitwhiz/filter-extension-blocks
Pass current editing target to getBlocksXML
2020-06-16 16:02:29 -04:00
dependabot-preview[bot] 5a714e7c32 Merge pull request #5884 from LLK/dependabot/npm_and_yarn/scratch-vm-0.2.0-prerelease.20200611202828 2020-06-16 16:41:35 +00:00
dependabot-preview[bot] 93ece03830 build(deps-dev): bump scratch-vm
Bumps [scratch-vm](https://github.com/LLK/scratch-vm) from 0.2.0-prerelease.20200602151852 to 0.2.0-prerelease.20200611202828.
- [Release notes](https://github.com/LLK/scratch-vm/releases)
- [Commits](https://github.com/LLK/scratch-vm/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-16 16:31:18 +00:00
dependabot-preview[bot] a555a8c10f Merge pull request #5893 from LLK/dependabot/npm_and_yarn/scratch-render-0.1.0-prerelease.20200615201428 2020-06-16 16:28:21 +00:00
dependabot-preview[bot] 4633f512e6 build(deps-dev): bump scratch-render
Bumps [scratch-render](https://github.com/LLK/scratch-render) from 0.1.0-prerelease.20200610224308 to 0.1.0-prerelease.20200615201428.
- [Release notes](https://github.com/LLK/scratch-render/releases)
- [Commits](https://github.com/LLK/scratch-render/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-16 16:17:43 +00:00
Bryce Taylor c2b9d41343 Merge pull request #5885 from BryceLTaylor/update-localization-test
Update localization test
2020-06-16 09:52:25 -04:00
dependabot-preview[bot] a3cfbcae80 Merge pull request #5890 from LLK/dependabot/npm_and_yarn/scratch-paint-0.2.0-prerelease.20200615150428 2020-06-15 16:46:57 +00:00
dependabot-preview[bot] e94ed032e9 build(deps-dev): bump scratch-paint
Bumps [scratch-paint](https://github.com/LLK/scratch-paint) from 0.2.0-prerelease.20200610221942 to 0.2.0-prerelease.20200615150428.
- [Release notes](https://github.com/LLK/scratch-paint/releases)
- [Commits](https://github.com/LLK/scratch-paint/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-15 16:24:09 +00:00
dependabot-preview[bot] b8d6d52515 Merge pull request #5892 from LLK/dependabot/npm_and_yarn/scratch-blocks-0.1.0-prerelease.20200615150854 2020-06-15 16:21:01 +00:00
dependabot-preview[bot] 21ac3dd330 build(deps-dev): bump scratch-blocks
Bumps [scratch-blocks](https://github.com/LLK/scratch-blocks) from 0.1.0-prerelease.20200609135544 to 0.1.0-prerelease.20200615150854.
- [Release notes](https://github.com/LLK/scratch-blocks/releases)
- [Commits](https://github.com/LLK/scratch-blocks/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-15 16:04:10 +00:00
dependabot-preview[bot] e32fdb8ab2 Merge pull request #5889 from LLK/dependabot/npm_and_yarn/scratch-l10n-3.9.20200615152937 2020-06-15 16:01:16 +00:00
dependabot-preview[bot] cb9492570b build(deps-dev): bump scratch-l10n
Bumps [scratch-l10n](https://github.com/LLK/scratch-l10n) from 3.9.20200609200912 to 3.9.20200615152937.
- [Release notes](https://github.com/LLK/scratch-l10n/releases)
- [Commits](https://github.com/LLK/scratch-l10n/compare/3.9.20200609200912...3.9.20200615152937)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-15 15:50:28 +00:00
BryceLTaylor 051a04c613 Remove unnecessary steps from flaky localization test that was timing out. 2020-06-12 16:54:03 -04:00
BryceLTaylor c5aa2468ae Update to latest Chromedriver 2020-06-12 16:53:46 -04:00
DD Liu 202238a3d1 Merge pull request #5879 from fsih/updateDeps
Update to revert svg-render change
2020-06-10 18:51:18 -04:00
DD Liu f6c44b85a3 Update to revert svg-render change: https://github.com/LLK/scratch-svg-renderer/issues/148 2020-06-10 18:49:39 -04:00
Benjamin Wheeler 560a057e15 Merge pull request #5444 from watilde/fix/audio-context
fix: initialize audio context only with user interaction
2020-06-10 11:40:03 -04:00
dependabot-preview[bot] 9b0edd6590 Merge pull request #5874 from LLK/dependabot/npm_and_yarn/scratch-svg-renderer-0.2.0-prerelease.20200609210443 2020-06-10 14:05:01 +00:00
dependabot-preview[bot] 3ab338167f Merge pull request #5872 from LLK/dependabot/npm_and_yarn/eslint-plugin-import-2.21.2 2020-06-10 14:03:52 +00:00
dependabot-preview[bot] 1d701912c3 Merge pull request #5870 from LLK/dependabot/npm_and_yarn/scratch-l10n-3.9.20200609200912 2020-06-10 13:54:39 +00:00
dependabot-preview[bot] 1576e11347 Bump scratch-svg-renderer
Bumps [scratch-svg-renderer](https://github.com/LLK/scratch-svg-renderer) from 0.2.0-prerelease.20200604203226 to 0.2.0-prerelease.20200609210443.
- [Release notes](https://github.com/LLK/scratch-svg-renderer/releases)
- [Commits](https://github.com/LLK/scratch-svg-renderer/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-10 13:47:51 +00:00
dependabot-preview[bot] 9c07bee5a0 Bump eslint-plugin-import from 2.18.2 to 2.21.2
Bumps [eslint-plugin-import](https://github.com/benmosher/eslint-plugin-import) from 2.18.2 to 2.21.2.
- [Release notes](https://github.com/benmosher/eslint-plugin-import/releases)
- [Changelog](https://github.com/benmosher/eslint-plugin-import/blob/master/CHANGELOG.md)
- [Commits](https://github.com/benmosher/eslint-plugin-import/compare/v2.18.2...v2.21.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-10 13:45:51 +00:00
dependabot-preview[bot] de9ef4b0c3 Bump scratch-l10n from 3.9.20200603151351 to 3.9.20200609200912
Bumps [scratch-l10n](https://github.com/LLK/scratch-l10n) from 3.9.20200603151351 to 3.9.20200609200912.
- [Release notes](https://github.com/LLK/scratch-l10n/releases)
- [Commits](https://github.com/LLK/scratch-l10n/compare/3.9.20200603151351...3.9.20200609200912)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-10 13:44:09 +00:00
DD Liu bc801cb009 Merge pull request #5869 from fsih/updateDeps
Update render and svg-renderer with changes that Dependabot missed
2020-06-09 16:41:24 -04:00
DD Liu 61dfcc7fcb Update render and svg-renderer with changes that Dependabot missed 2020-06-09 16:12:38 -04:00
dependabot-preview[bot] 80eecb6cb4 Merge pull request #5859 from LLK/dependabot/npm_and_yarn/scratch-render-0.1.0-prerelease.20200604210444 2020-06-09 15:31:16 +00:00
dependabot-preview[bot] e130705823 Bump scratch-render
Bumps [scratch-render](https://github.com/LLK/scratch-render) from 0.1.0-prerelease.20200602200702 to 0.1.0-prerelease.20200604210444.
- [Release notes](https://github.com/LLK/scratch-render/releases)
- [Commits](https://github.com/LLK/scratch-render/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-09 15:19:12 +00:00
dependabot-preview[bot] 090eadd1a9 Merge pull request #5868 from LLK/dependabot/npm_and_yarn/scratch-blocks-0.1.0-prerelease.20200609135544 2020-06-09 15:16:23 +00:00
dependabot-preview[bot] 3bb819b0ed Bump scratch-blocks
Bumps [scratch-blocks](https://github.com/LLK/scratch-blocks) from 0.1.0-prerelease.20200528193139 to 0.1.0-prerelease.20200609135544.
- [Release notes](https://github.com/LLK/scratch-blocks/releases)
- [Commits](https://github.com/LLK/scratch-blocks/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-09 15:05:32 +00:00
chrisgarrity 82571e03f6 Merge pull request #5867 from LLK/update-contributor-guidelines
Update contributor guidelines
2020-06-08 14:54:28 -04:00
chrisgarrity 6410108da7 Update contributor guidelines 2020-06-08 14:53:53 -04:00
dependabot-preview[bot] 81efb99fbe Merge pull request #5862 from LLK/dependabot/npm_and_yarn/websocket-extensions-0.1.4 2020-06-05 20:29:32 +00:00
dependabot-preview[bot] 999d143d0b [Security] Bump websocket-extensions from 0.1.3 to 0.1.4
Bumps [websocket-extensions](https://github.com/faye/websocket-extensions-node) from 0.1.3 to 0.1.4. **This update includes a security fix.**
- [Release notes](https://github.com/faye/websocket-extensions-node/releases)
- [Changelog](https://github.com/faye/websocket-extensions-node/blob/master/CHANGELOG.md)
- [Commits](https://github.com/faye/websocket-extensions-node/compare/0.1.3...0.1.4)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-05 20:19:48 +00:00
picklesrus dae95150ab Merge pull request #5861 from picklesrus/ghpages-dependabot
Stop building gh pages branches for dependabot
2020-06-05 15:21:32 -04:00
picklesrus 79d5fff426 Stop builind gh pages branches for dependabot instead of greenkeeper since we switched. 2020-06-05 10:41:25 -04:00
dependabot-preview[bot] aebeb7ba75 Merge pull request #5858 from LLK/dependabot/npm_and_yarn/scratch-svg-renderer-0.2.0-prerelease.20200604203226 2020-06-05 12:58:23 +00:00
dependabot-preview[bot] 874841157a Bump scratch-svg-renderer
Bumps [scratch-svg-renderer](https://github.com/LLK/scratch-svg-renderer) from 0.2.0-prerelease.20200507183648 to 0.2.0-prerelease.20200604203226.
- [Release notes](https://github.com/LLK/scratch-svg-renderer/releases)
- [Commits](https://github.com/LLK/scratch-svg-renderer/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-05 12:38:41 +00:00
dependabot-preview[bot] 1767dbd7d3 Merge pull request #5857 from LLK/dependabot/npm_and_yarn/scratch-paint-0.2.0-prerelease.20200604192759 2020-06-04 21:45:34 +00:00
dependabot-preview[bot] fa0b6e9f71 Bump scratch-paint
Bumps [scratch-paint](https://github.com/LLK/scratch-paint) from 0.2.0-prerelease.20200604013720 to 0.2.0-prerelease.20200604192759.
- [Release notes](https://github.com/LLK/scratch-paint/releases)
- [Commits](https://github.com/LLK/scratch-paint/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-04 21:26:01 +00:00
dependabot-preview[bot] 8fb88f25af Merge pull request #5854 from LLK/dependabot/npm_and_yarn/scratch-paint-0.2.0-prerelease.20200604013720 2020-06-04 02:05:26 +00:00
dependabot-preview[bot] 073f0e5315 Bump scratch-paint
Bumps [scratch-paint](https://github.com/LLK/scratch-paint) from 0.2.0-prerelease.20200603154236 to 0.2.0-prerelease.20200604013720.
- [Release notes](https://github.com/LLK/scratch-paint/releases)
- [Commits](https://github.com/LLK/scratch-paint/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-04 01:48:05 +00:00
DD Liu dcbf575d93 Merge pull request #5851 from LLK/dependabot/npm_and_yarn/scratch-paint-0.2.0-prerelease.20200603154236
Bump scratch-paint from 0.2.0-prerelease.20200602154954 to 0.2.0-prerelease.20200603154236
2020-06-03 16:36:56 -04:00
DD Liu d1bedf6e37 Merge branch 'develop' into dependabot/npm_and_yarn/scratch-paint-0.2.0-prerelease.20200603154236 2020-06-03 15:51:31 -04:00
dependabot-preview[bot] 64d375ca3f Bump scratch-paint
Bumps [scratch-paint](https://github.com/LLK/scratch-paint) from 0.2.0-prerelease.20200602154954 to 0.2.0-prerelease.20200603154236.
- [Release notes](https://github.com/LLK/scratch-paint/releases)
- [Commits](https://github.com/LLK/scratch-paint/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-03 18:37:20 +00:00
dependabot-preview[bot] 5ef39df14a Merge pull request #5849 from LLK/dependabot/npm_and_yarn/scratch-l10n-3.9.20200603151351 2020-06-03 18:35:42 +00:00
dependabot-preview[bot] 16f467041f Bump scratch-l10n from 3.9.20200528181319 to 3.9.20200603151351
Bumps [scratch-l10n](https://github.com/LLK/scratch-l10n) from 3.9.20200528181319 to 3.9.20200603151351.
- [Release notes](https://github.com/LLK/scratch-l10n/releases)
- [Commits](https://github.com/LLK/scratch-l10n/compare/3.9.20200528181319...3.9.20200603151351)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-03 18:18:44 +00:00
dependabot-preview[bot] 9ed27cffaa Merge pull request #5846 from LLK/dependabot/npm_and_yarn/scratch-render-0.1.0-prerelease.20200602200702 2020-06-02 22:08:28 +00:00
dependabot-preview[bot] 4d8ecc3e41 Bump scratch-render
Bumps [scratch-render](https://github.com/LLK/scratch-render) from 0.1.0-prerelease.20200512203149 to 0.1.0-prerelease.20200602200702.
- [Release notes](https://github.com/LLK/scratch-render/releases)
- [Commits](https://github.com/LLK/scratch-render/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-02 21:52:07 +00:00
dependabot-preview[bot] cdf0a9d545 Merge pull request #5845 from LLK/dependabot/npm_and_yarn/scratch-paint-0.2.0-prerelease.20200602154954 2020-06-02 20:48:11 +00:00
dependabot-preview[bot] 41e1fc4825 Bump scratch-paint
Bumps [scratch-paint](https://github.com/LLK/scratch-paint) from 0.2.0-prerelease.20200602002610 to 0.2.0-prerelease.20200602154954.
- [Release notes](https://github.com/LLK/scratch-paint/releases)
- [Commits](https://github.com/LLK/scratch-paint/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-02 20:29:14 +00:00
dependabot-preview[bot] d87d0c0770 Merge pull request #5842 from LLK/dependabot/npm_and_yarn/scratch-vm-0.2.0-prerelease.20200602151852 2020-06-02 16:09:36 +00:00
dependabot-preview[bot] 0474b49f25 Bump scratch-vm
Bumps [scratch-vm](https://github.com/LLK/scratch-vm) from 0.2.0-prerelease.20200527195112 to 0.2.0-prerelease.20200602151852.
- [Release notes](https://github.com/LLK/scratch-vm/releases)
- [Commits](https://github.com/LLK/scratch-vm/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-02 15:50:34 +00:00
adroitwhiz 5c0e7737d6 Merge pull request #5704 from adroitwhiz/target-highlight-border-box
Remove box-sizing: content-box from sprite highlight box CSS
2020-06-02 11:05:00 -04:00
dependabot-preview[bot] 91d5035592 Merge pull request #5841 from LLK/dependabot/npm_and_yarn/scratch-paint-0.2.0-prerelease.20200602002610 2020-06-02 04:19:36 +00:00
dependabot-preview[bot] e7764c5676 Bump scratch-paint
Bumps [scratch-paint](https://github.com/LLK/scratch-paint) from 0.2.0-prerelease.20200529184518 to 0.2.0-prerelease.20200602002610.
- [Release notes](https://github.com/LLK/scratch-paint/releases)
- [Commits](https://github.com/LLK/scratch-paint/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-02 04:02:01 +00:00
dependabot-preview[bot] ccb60e399f Merge pull request #5837 from LLK/dependabot/npm_and_yarn/babel/core-7.10.2 2020-05-30 20:49:11 +00:00
dependabot-preview[bot] 130428e4a8 Merge pull request #5836 from LLK/dependabot/npm_and_yarn/babel/preset-env-7.10.2 2020-05-30 20:32:47 +00:00
dependabot-preview[bot] 0fba935ec9 Bump @babel/core from 7.6.4 to 7.10.2
Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) from 7.6.4 to 7.10.2.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/master/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.10.2/packages/babel-core)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-30 20:32:03 +00:00
dependabot-preview[bot] 23527096c0 Bump @babel/preset-env from 7.10.0 to 7.10.2
Bumps [@babel/preset-env](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-env) from 7.10.0 to 7.10.2.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/master/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.10.2/packages/babel-preset-env)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-30 20:16:00 +00:00
dependabot-preview[bot] e34a453f8f Merge pull request #5833 from LLK/dependabot/npm_and_yarn/scratch-paint-0.2.0-prerelease.20200529184518 2020-05-29 19:07:15 +00:00
dependabot-preview[bot] 17e6e59d89 Bump scratch-paint
Bumps [scratch-paint](https://github.com/LLK/scratch-paint) from 0.2.0-prerelease.20200519194740 to 0.2.0-prerelease.20200529184518.
- [Release notes](https://github.com/LLK/scratch-paint/releases)
- [Commits](https://github.com/LLK/scratch-paint/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-29 18:50:14 +00:00
dependabot-preview[bot] 568d642e48 Merge pull request #5829 from LLK/dependabot/npm_and_yarn/scratch-blocks-0.1.0-prerelease.20200528193139 2020-05-28 20:39:22 +00:00
dependabot-preview[bot] 9532c3dab2 Bump scratch-blocks
Bumps [scratch-blocks](https://github.com/LLK/scratch-blocks) from 0.1.0-prerelease.20200526135421 to 0.1.0-prerelease.20200528193139.
- [Release notes](https://github.com/LLK/scratch-blocks/releases)
- [Commits](https://github.com/LLK/scratch-blocks/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-28 20:23:15 +00:00
dependabot-preview[bot] 7d88656ec5 Merge pull request #5830 from LLK/dependabot/npm_and_yarn/scratch-audio-0.1.0-prerelease.20200528195344 2020-05-28 20:20:26 +00:00
dependabot-preview[bot] a0abf3ca19 Bump scratch-audio
Bumps [scratch-audio](https://github.com/LLK/scratch-audio) from 0.1.0-prerelease.20190925183642 to 0.1.0-prerelease.20200528195344.
- [Release notes](https://github.com/LLK/scratch-audio/releases)
- [Commits](https://github.com/LLK/scratch-audio/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-28 20:10:53 +00:00
dependabot-preview[bot] d86db2c66a Merge pull request #5827 from LLK/dependabot/npm_and_yarn/scratch-l10n-3.9.20200528181319 2020-05-28 19:04:36 +00:00
dependabot-preview[bot] c342463415 Bump scratch-l10n from 3.9.20200528120215 to 3.9.20200528181319
Bumps [scratch-l10n](https://github.com/LLK/scratch-l10n) from 3.9.20200528120215 to 3.9.20200528181319.
- [Release notes](https://github.com/LLK/scratch-l10n/releases)
- [Commits](https://github.com/LLK/scratch-l10n/compare/3.9.20200528120215...3.9.20200528181319)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-28 18:47:23 +00:00
adroitwhiz bcc8f787b1 Pass current editing target to getBlocksXML 2020-05-28 12:22:36 -04:00
dependabot-preview[bot] 6129c6dd46 Merge pull request #5818 from LLK/dependabot/npm_and_yarn/babel/cli-7.10.1 2020-05-28 15:16:50 +00:00
dependabot-preview[bot] 37beb338da Bump @babel/cli from 7.10.0 to 7.10.1
Bumps [@babel/cli](https://github.com/babel/babel/tree/HEAD/packages/babel-cli) from 7.10.0 to 7.10.1.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/master/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.10.1/packages/babel-cli)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-28 14:59:33 +00:00
dependabot-preview[bot] 7ba07c805e Merge pull request #5825 from LLK/dependabot/npm_and_yarn/scratch-l10n-3.9.20200528120215 2020-05-28 14:56:37 +00:00
dependabot-preview[bot] 6c03b8e034 Bump scratch-l10n from 3.9.20200527202656 to 3.9.20200528120215
Bumps [scratch-l10n](https://github.com/LLK/scratch-l10n) from 3.9.20200527202656 to 3.9.20200528120215.
- [Release notes](https://github.com/LLK/scratch-l10n/releases)
- [Commits](https://github.com/LLK/scratch-l10n/compare/3.9.20200527202656...3.9.20200528120215)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-28 14:38:53 +00:00
dependabot-preview[bot] 6e6288a2ab Merge pull request #5820 from LLK/dependabot/npm_and_yarn/babel/preset-react-7.10.1 2020-05-27 23:44:03 +00:00
dependabot-preview[bot] a9a4b1b79b Merge pull request #5819 from LLK/dependabot/npm_and_yarn/babel/plugin-proposal-object-rest-spread-7.10.1 2020-05-27 23:41:45 +00:00
dependabot-preview[bot] 54d7ce2b9b Bump @babel/preset-react from 7.6.3 to 7.10.1
Bumps [@babel/preset-react](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-react) from 7.6.3 to 7.10.1.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/master/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.10.1/packages/babel-preset-react)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-27 23:26:20 +00:00
dependabot-preview[bot] c17edd0e05 Bump @babel/plugin-proposal-object-rest-spread from 7.10.0 to 7.10.1
Bumps [@babel/plugin-proposal-object-rest-spread](https://github.com/babel/babel/tree/HEAD/packages/babel-plugin-proposal-object-rest-spread) from 7.10.0 to 7.10.1.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/master/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.10.1/packages/babel-plugin-proposal-object-rest-spread)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-27 23:24:32 +00:00
dependabot-preview[bot] 4d22bf270b Merge pull request #5817 from LLK/dependabot/npm_and_yarn/scratch-l10n-3.9.20200527202656 2020-05-27 20:59:17 +00:00
dependabot-preview[bot] 7206495177 Bump scratch-l10n from 3.9.20200527185330 to 3.9.20200527202656
Bumps [scratch-l10n](https://github.com/LLK/scratch-l10n) from 3.9.20200527185330 to 3.9.20200527202656.
- [Release notes](https://github.com/LLK/scratch-l10n/releases)
- [Commits](https://github.com/LLK/scratch-l10n/commits/3.9.20200527202656)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-27 20:41:39 +00:00
dependabot-preview[bot] 24323842bf Merge pull request #5816 from LLK/dependabot/npm_and_yarn/scratch-vm-0.2.0-prerelease.20200527195112 2020-05-27 20:39:28 +00:00
dependabot-preview[bot] 3703fa618e Bump scratch-vm
Bumps [scratch-vm](https://github.com/LLK/scratch-vm) from 0.2.0-prerelease.20200522203113 to 0.2.0-prerelease.20200527195112.
- [Release notes](https://github.com/LLK/scratch-vm/releases)
- [Commits](https://github.com/LLK/scratch-vm/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-27 20:15:46 +00:00
dependabot-preview[bot] ff2921c605 Merge pull request #5815 from LLK/dependabot/npm_and_yarn/scratch-l10n-3.9.20200527185330 2020-05-27 20:08:40 +00:00
dependabot-preview[bot] 35399063f3 Bump scratch-l10n from 3.9.20200526213608 to 3.9.20200527185330
Bumps [scratch-l10n](https://github.com/LLK/scratch-l10n) from 3.9.20200526213608 to 3.9.20200527185330.
- [Release notes](https://github.com/LLK/scratch-l10n/releases)
- [Commits](https://github.com/LLK/scratch-l10n/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-27 19:51:40 +00:00
Benjamin Wheeler d4a77c6f38 Merge pull request #4916 from apple502j/patch-10
Add pointer-events to alert container CSS
2020-05-27 13:55:36 -04:00
dependabot-preview[bot] d4d794e730 Merge pull request #5814 from LLK/dependabot/npm_and_yarn/babel/preset-env-7.10.0 2020-05-26 23:04:19 +00:00
dependabot-preview[bot] 85fa229d94 Bump @babel/preset-env from 7.9.6 to 7.10.0
Bumps [@babel/preset-env](https://github.com/babel/babel) from 7.9.6 to 7.10.0.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/master/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/compare/v7.9.6...v7.10.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-26 22:47:54 +00:00
dependabot-preview[bot] 6164327b45 Merge pull request #5811 from LLK/dependabot/npm_and_yarn/babel/plugin-proposal-object-rest-spread-7.10.0 2020-05-26 22:21:51 +00:00
dependabot-preview[bot] 1a0ee34f0b Merge pull request #5810 from LLK/dependabot/npm_and_yarn/babel/cli-7.10.0 2020-05-26 22:16:46 +00:00
dependabot-preview[bot] 86a1ffde90 Bump @babel/plugin-proposal-object-rest-spread from 7.6.2 to 7.10.0
Bumps [@babel/plugin-proposal-object-rest-spread](https://github.com/babel/babel) from 7.6.2 to 7.10.0.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/master/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/compare/v7.6.2...v7.10.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-26 22:05:43 +00:00
dependabot-preview[bot] 17088f64b4 Bump @babel/cli from 7.6.4 to 7.10.0
Bumps [@babel/cli](https://github.com/babel/babel) from 7.6.4 to 7.10.0.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/master/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/compare/v7.6.4...v7.10.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-26 22:00:54 +00:00
dependabot-preview[bot] e7c2abed13 Merge pull request #5809 from LLK/dependabot/npm_and_yarn/scratch-l10n-3.9.20200526213608 2020-05-26 21:58:03 +00:00
dependabot-preview[bot] 719ef3b388 Bump scratch-l10n from 3.9.20200519213537 to 3.9.20200526213608
Bumps [scratch-l10n](https://github.com/LLK/scratch-l10n) from 3.9.20200519213537 to 3.9.20200526213608.
- [Release notes](https://github.com/LLK/scratch-l10n/releases)
- [Commits](https://github.com/LLK/scratch-l10n/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-26 21:40:53 +00:00
dependabot-preview[bot] e4e9ab5e1b Merge pull request #5807 from LLK/dependabot/npm_and_yarn/scratch-blocks-0.1.0-prerelease.20200526135421 2020-05-26 15:02:08 +00:00
dependabot-preview[bot] 4d92e92709 Bump scratch-blocks
Bumps [scratch-blocks](https://github.com/LLK/scratch-blocks) from 0.1.0-prerelease.20200520151625 to 0.1.0-prerelease.20200526135421.
- [Release notes](https://github.com/LLK/scratch-blocks/releases)
- [Commits](https://github.com/LLK/scratch-blocks/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-26 14:45:41 +00:00
dependabot-preview[bot] 4b2222fa3e Merge pull request #5804 from LLK/dependabot/npm_and_yarn/scratch-vm-0.2.0-prerelease.20200522203113 2020-05-22 20:54:29 +00:00
dependabot-preview[bot] 7dfaebd263 Bump scratch-vm
Bumps [scratch-vm](https://github.com/LLK/scratch-vm) from 0.2.0-prerelease.20200519202709 to 0.2.0-prerelease.20200522203113.
- [Release notes](https://github.com/LLK/scratch-vm/releases)
- [Commits](https://github.com/LLK/scratch-vm/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-22 20:36:43 +00:00
chrisgarrity 884843fb82 Merge pull request #5794 from chrisgarrity/update-scratch-dependencies
Pull the latest scratch-* dependencies
2020-05-20 15:21:11 -04:00
Chris Garrity 432c448e5c Pull the latest scratch-* dependencies 2020-05-20 15:07:57 -04:00
chrisgarrity a1fa132280 Merge pull request #5793 from chrisgarrity/update-node-version
use node 10 for travis builds
2020-05-20 14:56:32 -04:00
Chris Garrity ad1af074fc use node 10 for travis builds
* chromedriver will no longer work on node 8
* paper.js has a problem with node 12
* node 10 is just right ;)
2020-05-20 14:48:39 -04:00
Chris Willis-Ford 952a584d74 Merge pull request #5434 from cwillisf/add-about-menu-button
Add about menu button
2020-05-20 11:15:51 -07:00
adroitwhiz 501caf7793 Merge pull request #5643 from adroitwhiz/fix-stage-costume-drag
Omit componentRef from DropAreaHOC's passed props
2020-05-19 23:54:21 -04:00
Daijiro Wachi c3b32570be fix: follow eslint rule 2020-05-19 22:45:59 +09:00
Daijiro Wachi f9183b954b test: add unit test for shared-audio-context.js 2020-05-19 22:34:42 +09:00
Daijiro Wachi 39ceac4abf fix: initialize audio context only with user interaction 2020-05-19 19:27:16 +09:00
dependabot-preview[bot] cc22bfc636 Merge pull request #5779 from LLK/dependabot/npm_and_yarn/scratch-paint-0.2.0-prerelease.20200519001920 2020-05-19 02:46:16 +00:00
dependabot-preview[bot] ed945d392d Bump scratch-paint
Bumps [scratch-paint](https://github.com/LLK/scratch-paint) from 0.2.0-prerelease.20200516002830 to 0.2.0-prerelease.20200519001920.
- [Release notes](https://github.com/LLK/scratch-paint/releases)
- [Commits](https://github.com/LLK/scratch-paint/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-19 02:29:17 +00:00
Christopher Willis-Ford 2e1c1b0784 log a message if we skip GA init 2020-05-18 16:02:27 -07:00
Christopher Willis-Ford 18186fb4c1 provide empty window.ga(...) when GA_ID is absent 2020-05-18 16:02:27 -07:00
Christopher Willis-Ford e91713c262 initialize Google Analytics only if GA_ID is set 2020-05-18 16:02:27 -07:00
dependabot-preview[bot] dee7462c57 Merge pull request #5692 from LLK/dependabot/npm_and_yarn/babel/preset-env-7.9.6 2020-05-17 05:57:45 +00:00
dependabot-preview[bot] 87b076c6a1 Bump @babel/preset-env from 7.6.3 to 7.9.6
Bumps [@babel/preset-env](https://github.com/babel/babel) from 7.6.3 to 7.9.6.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/master/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/compare/v7.6.3...v7.9.6)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-17 05:41:17 +00:00
dependabot-preview[bot] c966acd987 Merge pull request #5771 from LLK/dependabot/npm_and_yarn/autoprefixer-9.8.0 2020-05-17 05:38:30 +00:00
dependabot-preview[bot] 84d000a277 Bump autoprefixer from 9.6.4 to 9.8.0
Bumps [autoprefixer](https://github.com/postcss/autoprefixer) from 9.6.4 to 9.8.0.
- [Release notes](https://github.com/postcss/autoprefixer/releases)
- [Changelog](https://github.com/postcss/autoprefixer/blob/master/CHANGELOG.md)
- [Commits](https://github.com/postcss/autoprefixer/compare/9.6.4...9.8.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-17 05:22:39 +00:00
dependabot-preview[bot] fde5ecf24d Merge pull request #5764 from LLK/dependabot/npm_and_yarn/scratch-paint-0.2.0-prerelease.20200516002830 2020-05-16 00:50:06 +00:00
dependabot-preview[bot] 932542e30a Bump scratch-paint
Bumps [scratch-paint](https://github.com/LLK/scratch-paint) from 0.2.0-prerelease.20200515190220 to 0.2.0-prerelease.20200516002830.
- [Release notes](https://github.com/LLK/scratch-paint/releases)
- [Commits](https://github.com/LLK/scratch-paint/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-16 00:33:25 +00:00
Chris Willis-Ford 886e2ebb8f Merge pull request #5451 from cwillisf/telemetry-onShowPrivacyPolicy
add hook on telemetry dialog for displaying privacy policy
2020-05-15 16:15:01 -07:00
dependabot-preview[bot] d2f120da7e Merge pull request #5763 from LLK/dependabot/npm_and_yarn/scratch-paint-0.2.0-prerelease.20200515190220 2020-05-15 19:34:25 +00:00
dependabot-preview[bot] 45752c2660 Bump scratch-paint
Bumps [scratch-paint](https://github.com/LLK/scratch-paint) from 0.2.0-prerelease.20200514182959 to 0.2.0-prerelease.20200515190220.
- [Release notes](https://github.com/LLK/scratch-paint/releases)
- [Commits](https://github.com/LLK/scratch-paint/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-15 19:18:13 +00:00
DD Liu 2f7e9967ab Merge pull request #5759 from LLK/greenkeeper/scratch-paint-0.2.0-prerelease.20200514182959
Update scratch-paint to the latest version 🚀
2020-05-14 14:44:33 -04:00
greenkeeper[bot] fe7a943780 chore(package): update lockfile package-lock.json 2020-05-14 18:31:41 +00:00
greenkeeper[bot] 637a09d4e9 chore(package): update scratch-paint to version 0.2.0-prerelease.20200514182959 2020-05-14 18:31:36 +00:00
dependabot-preview[bot] cf52d1ee6c Merge pull request #5757 from LLK/dependabot/npm_and_yarn/handlebars-4.7.6 2020-05-14 13:31:28 +00:00
dependabot-preview[bot] 2eabf2aefd [Security] Bump handlebars from 4.4.3 to 4.7.6
Bumps [handlebars](https://github.com/wycats/handlebars.js) from 4.4.3 to 4.7.6. **This update includes a security fix.**
- [Release notes](https://github.com/wycats/handlebars.js/releases)
- [Changelog](https://github.com/handlebars-lang/handlebars.js/blob/master/release-notes.md)
- [Commits](https://github.com/wycats/handlebars.js/compare/v4.4.3...v4.7.6)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-14 13:15:29 +00:00
dependabot-preview[bot] 832cf69e5d Merge pull request #5754 from LLK/dependabot/npm_and_yarn/eslint-plugin-react-7.20.0 2020-05-13 04:08:36 +00:00
dependabot-preview[bot] c039845b26 Bump eslint-plugin-react from 7.16.0 to 7.20.0
Bumps [eslint-plugin-react](https://github.com/yannickcr/eslint-plugin-react) from 7.16.0 to 7.20.0.
- [Release notes](https://github.com/yannickcr/eslint-plugin-react/releases)
- [Changelog](https://github.com/yannickcr/eslint-plugin-react/blob/master/CHANGELOG.md)
- [Commits](https://github.com/yannickcr/eslint-plugin-react/compare/v7.16.0...v7.20.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-13 03:51:55 +00:00
dependabot-preview[bot] f6c586cec6 Merge pull request #5753 from LLK/dependabot/npm_and_yarn/scratch-l10n-3.9.20200512220101 2020-05-13 00:47:32 +00:00
dependabot-preview[bot] b36b300fc2 Bump scratch-l10n from 3.9.20200512112117 to 3.9.20200512220101
Bumps [scratch-l10n](https://github.com/LLK/scratch-l10n) from 3.9.20200512112117 to 3.9.20200512220101.
- [Release notes](https://github.com/LLK/scratch-l10n/releases)
- [Commits](https://github.com/LLK/scratch-l10n/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-12 22:05:37 +00:00
dependabot-preview[bot] 5c0a0c58e5 Merge pull request #5747 from LLK/dependabot/npm_and_yarn/scratch-render-0.1.0-prerelease.20200512203149 2020-05-12 21:52:01 +00:00
dependabot-preview[bot] a64f623c20 Bump scratch-render
Bumps [scratch-render](https://github.com/LLK/scratch-render) from 0.1.0-prerelease.20200511203322 to 0.1.0-prerelease.20200512203149.
- [Release notes](https://github.com/LLK/scratch-render/releases)
- [Commits](https://github.com/LLK/scratch-render/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-12 21:22:10 +00:00
dependabot-preview[bot] c688210751 Merge pull request #5749 from LLK/dependabot/npm_and_yarn/scratch-vm-0.2.0-prerelease.20200512204241 2020-05-12 21:19:26 +00:00
dependabot-preview[bot] c740407aea Merge pull request #5744 from LLK/dependabot/npm_and_yarn/scratch-paint-0.2.0-prerelease.20200512201624 2020-05-12 21:07:32 +00:00
dependabot-preview[bot] 05afad1f73 Bump scratch-vm
Bumps [scratch-vm](https://github.com/LLK/scratch-vm) from 0.2.0-prerelease.20200402182733 to 0.2.0-prerelease.20200512204241.
- [Release notes](https://github.com/LLK/scratch-vm/releases)
- [Commits](https://github.com/LLK/scratch-vm/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-12 20:48:21 +00:00
dependabot-preview[bot] c4676cc5a6 Bump scratch-paint
Bumps [scratch-paint](https://github.com/LLK/scratch-paint) from 0.2.0-prerelease.20200507195338 to 0.2.0-prerelease.20200512201624.
- [Release notes](https://github.com/LLK/scratch-paint/releases)
- [Commits](https://github.com/LLK/scratch-paint/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-12 20:42:03 +00:00
dependabot-preview[bot] f4c09b35e9 Merge pull request #5743 from LLK/dependabot/npm_and_yarn/scratch-blocks-0.1.0-prerelease.20200512201140 2020-05-12 20:39:19 +00:00
dependabot-preview[bot] 25136598e3 Bump scratch-blocks
Bumps [scratch-blocks](https://github.com/LLK/scratch-blocks) from 0.1.0-prerelease.20200507190920 to 0.1.0-prerelease.20200512201140.
- [Release notes](https://github.com/LLK/scratch-blocks/releases)
- [Commits](https://github.com/LLK/scratch-blocks/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-12 20:23:47 +00:00
adroitwhiz b73dd7214a Add alpha to $drop-highlight color for Edge
Edge can't parse CSS hsla() values without an alpha component.
2020-05-12 12:53:00 -04:00
dependabot-preview[bot] a7d141a83a Merge pull request #5739 from LLK/dependabot/npm_and_yarn/scratch-l10n-3.9.20200512112117 2020-05-12 13:40:11 +00:00
dependabot-preview[bot] 4366b08f94 Bump scratch-l10n from 3.8.20200505213509 to 3.9.20200512112117
Bumps [scratch-l10n](https://github.com/LLK/scratch-l10n) from 3.8.20200505213509 to 3.9.20200512112117.
- [Release notes](https://github.com/LLK/scratch-l10n/releases)
- [Commits](https://github.com/LLK/scratch-l10n/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-12 13:21:46 +00:00
Paul Kaplan dd43c53db8 Merge pull request #5164 from paulkaplan/moar-saving-telemetry
Emit projectDidSave for all types of saves, not just file exports
2020-05-12 08:12:37 -04:00
adroitwhiz aeb8238ecb Omit componentRef from DropAreaHOC's passed props 2020-05-05 17:50:16 -04:00
adroitwhiz 266350153e Remove box-sizing: content-box on sprite highlight 2020-05-05 08:34:49 -04:00
adroitwhiz 10a27aae45 Call renderer.draw immediately on drag start/stop 2020-03-12 11:53:39 -04:00
apple502j ac0467db64 Fix default parameter text loading in English 2020-02-17 22:33:09 +09:00
Christopher Willis-Ford 89a748dd2b add hook on telemetry dialog for displaying privacy policy 2020-02-11 10:11:23 -08:00
Christopher Willis-Ford 8c6b52f43c mock editor-msgs.js to fix Jest/Babel error 2020-02-10 15:09:35 -08:00
Christopher Willis-Ford 2ebcd850d6 add unit tests for About button on menu bar 2020-02-10 13:49:54 -08:00
Christopher Willis-Ford 9d307f0e08 show clickable 'About' button if handler is present 2020-02-10 13:49:54 -08:00
Christopher Willis-Ford fde7349b2b optimize About icon SVG 2020-02-10 13:49:54 -08:00
Christopher Willis-Ford 8690b696a5 add 'About' icon from @carljbowman 2020-02-05 15:59:34 -08:00
Paul Kaplan 2429f63e02 Emit projectDidSave for server saves, not just file exports 2019-09-12 12:12:01 -04:00
apple502j 42375da2e1 Add pointer-events:all to alert 2019-06-12 22:11:56 +09:00
apple502j 79fa9bef65 Add pointer-events to alert container CSS 2019-06-12 13:58:43 +09:00
33 changed files with 6200 additions and 1458 deletions

No files matched your search

+1
View File
@@ -12,6 +12,7 @@
*.svg binary
# Prefer LF for most file types
*.css text eol=lf
*.frag text eol=lf
*.htm text eol=lf
*.html text eol=lf
+56 -3
View File
@@ -1,11 +1,64 @@
## Contributing
The development of Scratch is an ongoing process, and we love to have people in the Scratch and open source communities help us along the way.
If you're interested in contributing, please take a look at the [issues](https://github.com/LLK/scratch-gui/issues) on this repository.
Two great ways of helping are by identifying bugs and documenting them as issues, or fixing issues and creating pull requests. When looking for bugs to fix, please look for the ["Help Wanted" label](https://github.com/LLK/scratch-gui/issues?q=label%3A%22help+wanted%22). Bugs with this label have been specifically set aside for Open Source contributors. Issues without the label can also be worked on but we ask that you comment on the issue prior to starting work. When submitting pull requests please be patient -- it can take a while to find time to review them. The organization and class structures can't be radically changed without significant coordination and collaboration from the Scratch Team, so these types of changes should be avoided.
### Ways to Help
It's been said that the Scratch Team spends about one hour of design discussion for every pixel in Scratch, but some think that estimate is a little low. While we welcome suggestions for new features in our [suggestions forum](https://scratch.mit.edu/discuss/1/) (especially ones that come with mockups), we are unlikely to accept PRs with new features that haven't been thought through and discussed as a group. Why? Because we have a strong belief in the value of keeping things simple for new users. To learn more about our design philosophy, see [the Scratch Developers page](https://scratch.mit.edu/developers), or [this paper](http://web.media.mit.edu/~mres/papers/Scratch-CACM-final.pdf).
* **Documenting bugs**
* If you've identified a bug in Scratch you should first check to see if it's been filed as an issue, if not you can file one. Make sure you follow the issue template.
* It's important that we can consistently reproduce issues. When writing an issue, be sure to follow our [reproduction step guidelines](https://github.com/LLK/scratch-gui/wiki/Writing-good-repro-steps).
* Some issues are marked "Needs Repro". Adding a comment with good reproduction steps to those issues is a great way to help.
* If you don't have an issue in mind already, you can look through the [Bugs & Glitches forum.](https://scratch.mit.edu/discuss/3/) Look for users reporting problems, reproduce the problem yourself, and file new issues following our guidelines.
* **Fixing bugs**
* You can request to fix a bug in a comment on the issue if you at mention the repo coordinator, who for this repo is @chrisgarrity.
* If the issue is marked "Help Wanted" you can go ahead and start working on it!
* **We will only accept Pull Requests for bugs that have an issue filed that has a priority label**
* If you're interested in fixing a bug with no issue, file the issue first and wait for it to have a priority added to it.
* We are not looking for Pull Requests ("PR") for every issue and may deny a PR if it doesn't fit our criteria.
* We are far more likely to accept a PR if it is for an issue marked with Help Wanted.
* We will not accept PRs for issues marked with "Needs Discussion" or "Needs Design."
* Wait until the Repo Coordinator assigns the issue to you before you begin work or submit a PR.
### Learning Git and Github
If you want to work on fixing issues, you should be familiar with Git and Github.
* [Learn Git branching](https://learngitbranching.js.org/) includes an introduction to basic git commands and useful branching features.
* Here's a general introduction to [contributing to an open source project](https://egghead.io/courses/how-to-contribute-to-an-open-source-project-on-github).
**Important:** we follow the [Github Flow process](https://guides.github.com/introduction/flow/) as our development process.
### How to Fix Bugs
1. Identify which Github issue you are working on. Leave a comment on the issue to let us (and other contributors) know you're working on it.
2. Make sure you have a fork of this repo (see [Github's forking a repo](https://help.github.com/en/github/getting-started-with-github/fork-a-repo) for details)
3. Switch to the `develop` branch, and pull down the latest changes from upstream
4. Run the code, and reproduce the problem
5. Create your branch from the `develop` branch
6. Make code changes to fix the problem
7. Run `npm test` to make sure that your changes pass our tests
8. Commit your changes
9. Push your branch to your fork
10. Create your pull request
1. Make sure to follow the template in the PR description
1. Remember to check the “[Allow edits from maintainers](https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/allowing-changes-to-a-pull-request-branch-created-from-a-fork)” box
When submitting pull requests keep in mind:
* please be patient -- it can take a while to find time to review them
* try to change the least amount of code necessary to fix the bug
* the code can't be radically changed without significant coordination with the Scratch Team, so these types of changes should be avoided
* if you find yourself changing a substantial amount of code or considering radical changes, please ask for clarification -- we may have envisioned a different approach, or underestimated the amount of effort
### Suggestions
![Block sketch](https://user-images.githubusercontent.com/3431616/77192550-1dcebe00-6ab3-11ea-9606-8ecd8500c958.png)
Please note: **_we are unlikely to accept PRs with new features that haven't been thought through and discussed as a group_**.
Why? Because we have a strong belief in the value of keeping things simple for new users. It's been said that the Scratch Team spends about one hour of design discussion for every pixel in Scratch. To learn more about our design philosophy, see [the Scratch Developers page](https://scratch.mit.edu/developers), or [this paper](http://web.media.mit.edu/~mres/papers/Scratch-CACM-final.pdf).
We welcome suggestions! If you want to suggest a feature, please post in our [suggestions forum](https://scratch.mit.edu/discuss/1/). Your suggestion will be helped if you include a mockup design; this can be simple, even hand-drawn.
### Other resources
Beyond this repo, there are also some other resources that you might want to take a look at:
* [Community Guidelines](https://github.com/LLK/scratch-www/wiki/Community-Guidelines) (we find it important to maintain a constructive and welcoming community, just like on Scratch)
* [Open Source forum](https://scratch.mit.edu/discuss/49/) on Scratch
+2 -2
View File
@@ -4,7 +4,7 @@ dist: xenial
addons:
chrome: stable
node_js:
- 8
- 10
env:
global:
- CHROMEDRIVER_VERSION=LATEST
@@ -54,7 +54,7 @@ deploy:
- provider: script
on:
all_branches: true
condition: $TRAVIS_EVENT_TYPE != cron && ! $TRAVIS_BRANCH =~ ^greenkeeper/
condition: $TRAVIS_EVENT_TYPE != cron && ! $TRAVIS_BRANCH =~ ^dependabot/
tags: false # Don't push tags to gh-pages
skip_cleanup: true
script: npm run deploy -- -x -e $TRAVIS_BRANCH -r https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git
+7
View File
@@ -191,6 +191,13 @@ npm install --no-optional --save-dev react-responsive@^5.0.0
Further reading: [Stack Overflow](https://stackoverflow.com/questions/46602286/npm-requires-a-peer-of-but-all-peers-are-in-package-json-and-node-modules)
## Troubleshooting
If you run into npm install errors, try these steps:
1. run `npm cache clean --force`
2. Delete the node_modules directory
3. Delete package-lock.json
4. run `npm install` again
## Publishing to GitHub Pages
You can publish the GUI to github.io so that others on the Internet can view it.
+5282 -769
View File
File diff suppressed because it is too large. Load diff
+12 -11
View File
@@ -4,7 +4,7 @@
"description": "GraphicaL User Interface for creating and running Scratch 3.0 projects",
"main": "./dist/scratch-gui.js",
"scripts": {
"build": "npm run clean && webpack --progress --colors --bail",
"build": "npm run clean && webpack --colors --bail",
"clean": "rimraf ./build && mkdirp build && rimraf ./dist && mkdirp dist",
"deploy": "touch build/.nojekyll && gh-pages -t -d build -m \"Build for $(git log --pretty=format:%H -n1) [skip ci]\"",
"prune": "./prune-gh-pages.sh",
@@ -16,7 +16,7 @@
"test:lint": "eslint . --ext .js,.jsx",
"test:unit": "jest test[\\\\/]unit",
"test:smoke": "jest --runInBand test[\\\\/]smoke",
"watch": "webpack --progress --colors --watch"
"watch": "webpack --colors --watch"
},
"author": "Massachusetts Institute of Technology",
"license": "BSD-3-Clause",
@@ -44,7 +44,7 @@
"babel-loader": "^8.0.4",
"base64-loader": "1.0.0",
"bowser": "1.9.4",
"chromedriver": "80.0.0",
"chromedriver": "83.0.0",
"classnames": "2.2.6",
"computed-style-to-inline-style": "3.0.0",
"copy-webpack-plugin": "^4.5.1",
@@ -107,14 +107,14 @@
"redux-mock-store": "^1.2.3",
"redux-throttle": "0.1.1",
"rimraf": "^2.6.1",
"scratch-audio": "0.1.0-prerelease.20190925183642",
"scratch-blocks": "0.1.0-prerelease.20200507190920",
"scratch-l10n": "3.8.20200505213509",
"scratch-paint": "0.2.0-prerelease.20200507195338",
"scratch-render": "0.1.0-prerelease.20200511203322",
"scratch-audio": "0.1.0-prerelease.20200528195344",
"scratch-blocks": "0.1.0-prerelease.20200714135908",
"scratch-l10n": "3.10.20200715030910",
"scratch-paint": "0.2.0-prerelease.20200717024459",
"scratch-render": "0.1.0-prerelease.20200716193608",
"scratch-storage": "1.3.3",
"scratch-svg-renderer": "0.2.0-prerelease.20200507183648",
"scratch-vm": "0.2.0-prerelease.20200402182733",
"scratch-svg-renderer": "0.2.0-prerelease.20200610220938",
"scratch-vm": "0.2.0-prerelease.20200714185213",
"selenium-webdriver": "3.6.0",
"startaudiocontext": "1.2.1",
"style-loader": "^0.23.0",
@@ -139,7 +139,8 @@
],
"moduleNameMapper": {
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/test/__mocks__/fileMock.js",
"\\.(css|less)$": "<rootDir>/test/__mocks__/styleMock.js"
"\\.(css|less)$": "<rootDir>/test/__mocks__/styleMock.js",
"editor-msgs(\\.js)?$": "<rootDir>/test/__mocks__/editor-msgs-mock.js"
}
}
}
+1
View File
@@ -15,6 +15,7 @@
padding-right: 1rem;
margin-bottom: 7px;
min-height: 1.5rem;
pointer-events: all;
}
.alert.warn {
+14 -15
View File
@@ -34,7 +34,17 @@
}
.editor-wrapper {
flex-basis: 600px;
/*
This is carefully balanced-- the minimum width at which the GUI will be displayed is 1024px.
At that size, the stage pane is 408px wide, with $space of padding to each side.
However, we must also add the border width to the stage pane. All-in-all, the stage pane's final width is
408px + ($space + $stage-standard-border-width * 2) (one border & padding per left/right side).
@todo This is in place to prevent "doubling up" of horizontal scrollbars in narrow windows, but there are likely
much better ways to solve that (e.g. undo #2124, remove this flex-basis entirely). However, they run their own
risks of breaking things, so let's just leave this as-is for the time being.
*/
flex-basis: calc(1024px - 408px - (($space + $stage-standard-border-width) * 2));
flex-grow: 1;
flex-shrink: 0;
position: relative;
@@ -197,21 +207,9 @@
/* pad entire wrapper to the left and right; allow children to fill width */
padding-left: $space;
padding-right: $space;
}
.stage-and-target-wrapper.large {
/* Fix the max width to max large stage size (defined in layout_constants.js) + gutter size */
max-width: calc(480px + calc($space * 2));
}
.stage-and-target-wrapper.large-constrained {
/* Fix the max width to max largeConstrained stage size (defined in layout_constants.js) + gutter size */
max-width: calc(408px + calc($space * 2));
}
.stage-and-target-wrapper.small {
/* Fix the max width to max small stage size (defined in layout_constants.js) + gutter size */
max-width: calc(240px + calc($space * 2));
/* this will only ever be as wide as the stage */
flex-basis: 0;
}
.target-wrapper {
@@ -309,6 +307,7 @@ $fade-out-distance: 15px;
z-index: $z-index-alerts;
position: absolute;
margin-top: 53px;
pointer-events: none;
}
/*
+7
View File
@@ -89,6 +89,7 @@ const GUIComponent = props => {
loading,
logo,
renderLogin,
onClickAbout,
onClickAccountNav,
onCloseAccountNav,
onLogOut,
@@ -105,6 +106,7 @@ const GUIComponent = props => {
onRequestCloseTelemetryModal,
onSeeCommunity,
onShare,
onShowPrivacyPolicy,
onTelemetryModalCancel,
onTelemetryModalOptIn,
onTelemetryModalOptOut,
@@ -162,6 +164,7 @@ const GUIComponent = props => {
onOptIn={onTelemetryModalOptIn}
onOptOut={onTelemetryModalOptOut}
onRequestClose={onRequestCloseTelemetryModal}
onShowPrivacyPolicy={onShowPrivacyPolicy}
/>
) : null}
{loading ? (
@@ -218,6 +221,7 @@ const GUIComponent = props => {
logo={logo}
renderLogin={renderLogin}
showComingSoon={showComingSoon}
onClickAbout={onClickAbout}
onClickAccountNav={onClickAccountNav}
onClickLogo={onClickLogo}
onCloseAccountNav={onCloseAccountNav}
@@ -332,6 +336,7 @@ const GUIComponent = props => {
<Box className={classNames(styles.stageAndTargetWrapper, styles[stageSize])}>
<StageWrapper
isFullScreen={isFullScreen}
isRendererSupported={isRendererSupported}
isRtl={isRtl}
stageSize={stageSize}
@@ -388,6 +393,7 @@ GUIComponent.propTypes = {
onActivateCostumesTab: PropTypes.func,
onActivateSoundsTab: PropTypes.func,
onActivateTab: PropTypes.func,
onClickAbout: PropTypes.func,
onClickAccountNav: PropTypes.func,
onClickLogo: PropTypes.func,
onCloseAccountNav: PropTypes.func,
@@ -399,6 +405,7 @@ GUIComponent.propTypes = {
onRequestCloseTelemetryModal: PropTypes.func,
onSeeCommunity: PropTypes.func,
onShare: PropTypes.func,
onShowPrivacyPolicy: PropTypes.func,
onTabSelect: PropTypes.func,
onTelemetryModalCancel: PropTypes.func,
onTelemetryModalOptIn: PropTypes.func,
+1
View File
@@ -0,0 +1 @@
<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><defs><path d="M10 2c4.418 0 8 3.582 8 8s-3.582 8-8 8-8-3.582-8-8 3.582-8 8-8zm-.072 10.42c-.256 0-.472.076-.648.227-.176.151-.264.338-.264.56 0 .25.091.445.273.584.182.139.395.209.639.209.236 0 .444-.07.624-.211s.27-.335.27-.581c0-.222-.086-.409-.258-.56-.172-.151-.384-.227-.636-.227zm.144-6.42c-.624 0-1.17.113-1.638.338-.468.225-.824.51-1.068.853-.244.343-.366.683-.366 1.017 0 .162.077.313.231.452.154.139.343.209.567.209.38 0 .638-.199.774-.597.144-.38.32-.668.528-.864.208-.196.532-.293.972-.293.376 0 .683.097.921.291.238.194.357.432.357.713 0 .144-.039.278-.117.402-.078.123-.174.235-.288.336-.114.1-.299.249-.555.446-.292.225-.524.42-.696.584-.172.164-.31.354-.414.571-.104.217-.156.473-.156.769 0 .236.071.414.213.534.142.12.317.18.525.18.4 0 .638-.183.714-.55l.099-.362.093-.206.183-.227.327-.288c.492-.387.833-.663 1.023-.827.19-.164.354-.358.492-.584.138-.225.207-.488.207-.787 0-.38-.121-.733-.363-1.057-.242-.324-.585-.58-1.029-.769-.444-.188-.956-.283-1.536-.283z" id="a"/></defs><g transform="translate(-2 -2)" fill="none"><mask><use xlink:href="#a"/></mask><use fill="#fff" xlink:href="#a"/></g></svg>

After

Width:  |  Height:  |  Size: 1.2 KiB

+6
View File
@@ -218,3 +218,9 @@
.mystuff > a {
background-image: url("/images/mystuff.png");
}
.about-icon {
height: 1.25rem;
margin: 0.5rem;
vertical-align: middle;
}
+19
View File
@@ -69,6 +69,7 @@ import profileIcon from './icon--profile.png';
import remixIcon from './icon--remix.svg';
import dropdownCaret from './dropdown-caret.svg';
import languageIcon from '../language-selector/language-icon.svg';
import aboutIcon from './icon--about.svg';
import scratchLogo from './scratch-logo.svg';
@@ -141,6 +142,19 @@ MenuItemTooltip.propTypes = {
isRtl: PropTypes.bool
};
const AboutButton = props => (
<Button
className={classNames(styles.menuBarItem, styles.hoverable)}
iconClassName={styles.aboutIcon}
iconSrc={aboutIcon}
onClick={props.onClick}
/>
);
AboutButton.propTypes = {
onClick: PropTypes.func.isRequired
};
class MenuBar extends React.Component {
constructor (props) {
super(props);
@@ -311,6 +325,8 @@ class MenuBar extends React.Component {
{remixMessage}
</Button>
);
// Show the About button only if we have a handler for it (like in the desktop app)
const aboutButton = this.props.onClickAbout ? <AboutButton onClick={this.props.onClickAbout} /> : null;
return (
<Box
className={classNames(
@@ -689,6 +705,8 @@ class MenuBar extends React.Component {
</React.Fragment>
)}
</div>
{aboutButton}
</Box>
);
}
@@ -722,6 +740,7 @@ MenuBar.propTypes = {
locale: PropTypes.string.isRequired,
loginMenuOpen: PropTypes.bool,
logo: PropTypes.string,
onClickAbout: PropTypes.func,
onClickAccount: PropTypes.func,
onClickEdit: PropTypes.func,
onClickFile: PropTypes.func,
@@ -1,5 +1,6 @@
@import "../../css/units.css";
@import "../../css/colors.css";
@import "../../css/z-index.css";
.stage-wrapper * {
box-sizing: border-box;
@@ -9,3 +10,21 @@
/* Hides negative space between edge of rounded corners + container, when selected */
user-select: none;
}
.stage-wrapper.full-screen {
position: fixed;
top: $stage-menu-height;
left: 0;
right: 0;
bottom: 0;
z-index: $z-index-stage-wrapper-overlay;
background-color: $ui-white;
/* spacing between stage and control bar (on the top), or between
stage and window edges (on left/right/bottom) */
padding: $stage-full-screen-stage-padding;
/* this centers the stage */
display: flex;
flex-direction: column;
align-items: center;
}
@@ -1,5 +1,6 @@
import PropTypes from 'prop-types';
import React from 'react';
import classNames from 'classnames';
import VM from 'scratch-vm';
import Box from '../box/box.jsx';
@@ -22,7 +23,10 @@ const StageWrapperComponent = function (props) {
return (
<Box
className={styles.stageWrapper}
className={classNames(
styles.stageWrapper,
{[styles.fullScreen]: isFullScreen}
)}
dir={isRtl ? 'rtl' : 'ltr'}
>
<Box className={styles.stageMenuWrapper}>
+22 -45
View File
@@ -21,6 +21,13 @@
/* Make sure border is not included in size calculation */
box-sizing: content-box !important;
/* enforce overflow + reset position of absolutely-positioned children */
position: relative;
}
.stage.full-screen {
border: $stage-full-screen-border-width solid rgb(126, 133, 151);
}
.with-color-picker {
@@ -43,62 +50,30 @@
position: relative;
}
.stage-wrapper-overlay {
position: fixed;
top: $stage-menu-height;
left: 0;
right: 0;
bottom: 0;
z-index: $z-index-stage-wrapper-overlay;
background-color: $ui-white;
/* spacing between stage and control bar (on the top), or between
stage and window edges (on left/right/bottom) */
padding: $stage-full-screen-stage-padding;
}
/* wraps only main content of overlay player, not monitors */
.stage-overlay-content {
outline: none;
margin: auto;
border: $stage-full-screen-border-width solid rgb(126, 133, 151);
padding: 0;
border-radius: $space;
overflow: hidden;
display: flex;
justify-content: center;
}
.stage-overlay-content-border-override {
border: none;
}
/* adjust monitors when stage is standard size:
shift them down and right to compensate for the stage's border */
.stage-wrapper .monitor-wrapper {
/* we want stage overlays to all be positioned in the same spot as the stage, but can't put them inside the border
because we want their overflow to be visible, and the bordered element must have overflow: hidden set so that the
stage doesn't "spill" out from under its rounded corners. instead, shift these over by the border width. */
.stage-overlays {
position: absolute;
top: $stage-standard-border-width;
left: $stage-standard-border-width;
/* the overlay itself should not capture pointer events; only its child elements can do that */
pointer-events: none;
}
/* adjust monitors when stage is full screen:
.stage-wrapper-overlay uses position: fixed instead of relative, so we need
to adjust for the border using a different method */
.stage-wrapper-overlay .monitor-wrapper {
padding-top: calc($stage-full-screen-stage-padding + $stage-full-screen-border-width);
padding-bottom: calc($stage-full-screen-stage-padding + $stage-full-screen-border-width);
.stage-overlays.full-screen {
top: $stage-full-screen-border-width;
left: $stage-full-screen-border-width;
}
.monitor-wrapper,
.color-picker-wrapper,
.frame-wrapper,
.green-flag-overlay-wrapper {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
overflow: hidden;
}
.dragging-sprite {
@@ -107,7 +82,7 @@ to adjust for the border using a different method */
left: 0;
z-index: $z-index-dragging-sprite;
filter: drop-shadow(5px 5px 5px $ui-black-transparent);
}
}
.stage-bottom-wrapper {
position: absolute;
@@ -115,6 +90,7 @@ to adjust for the border using a different method */
flex-direction: column;
justify-content: flex-end;
top: 0;
left: 0;
overflow: hidden;
pointer-events: none;
}
@@ -132,7 +108,6 @@ to adjust for the border using a different method */
}
.frame {
box-sizing: content-box !important;
background: $motion-transparent;
border: 2px solid $motion-primary;
border-radius: 0.5rem;
@@ -142,6 +117,8 @@ to adjust for the border using a different method */
}
.green-flag-overlay-wrapper {
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
+60 -61
View File
@@ -35,23 +35,17 @@ const StageComponent = props => {
const stageDimensions = getStageDimensions(stageSize, isFullScreen);
return (
<div>
<React.Fragment>
<Box
className={classNames({
[styles.stageWrapper]: !isFullScreen,
[styles.stageWrapperOverlay]: isFullScreen,
[styles.withColorPicker]: !isFullScreen && isColorPicking
})}
style={{
minHeight: stageDimensions.height,
minWidth: stageDimensions.width
}}
className={classNames(
styles.stageWrapper,
{[styles.withColorPicker]: !isFullScreen && isColorPicking})}
onDoubleClick={onDoubleClick}
>
<Box
className={classNames(
styles.stage,
{[styles.stageOverlayContent]: isFullScreen}
{[styles.fullScreen]: isFullScreen}
)}
style={{
height: stageDimensions.height,
@@ -66,18 +60,61 @@ const StageComponent = props => {
}}
{...boxProps}
/>
<Box className={styles.monitorWrapper}>
<MonitorList
draggable={useEditorDragStyle}
stageSize={stageDimensions}
/>
</Box>
<Box className={styles.frameWrapper}>
<TargetHighlight
className={styles.frame}
stageHeight={stageDimensions.height}
stageWidth={stageDimensions.width}
/>
</Box>
{isColorPicking && colorInfo ? (
<Loupe colorInfo={colorInfo} />
) : null}
</Box>
<Box className={styles.monitorWrapper}>
<MonitorList
draggable={useEditorDragStyle}
stageSize={stageDimensions}
/>
</Box>
<Box className={styles.frameWrapper}>
<TargetHighlight
className={styles.frame}
stageHeight={stageDimensions.height}
stageWidth={stageDimensions.width}
{/* `stageOverlays` is for items that should *not* have their overflow contained within the stage */}
<Box
className={classNames(
styles.stageOverlays,
{[styles.fullScreen]: isFullScreen}
)}
>
<div
className={styles.stageBottomWrapper}
style={{
width: stageDimensions.width,
height: stageDimensions.height
}}
>
{micIndicator ? (
<MicIndicator
className={styles.micIndicator}
stageSize={stageDimensions}
/>
) : null}
{question === null ? null : (
<div
className={styles.questionWrapper}
style={{width: stageDimensions.width}}
>
<Question
question={question}
onQuestionAnswered={onQuestionAnswered}
/>
</div>
)}
</div>
<canvas
className={styles.draggingSprite}
height={0}
ref={dragRef}
width={0}
/>
</Box>
{isStarted ? null : (
@@ -86,44 +123,6 @@ const StageComponent = props => {
wrapperClass={styles.greenFlagOverlayWrapper}
/>
)}
{isColorPicking && colorInfo ? (
<Box className={styles.colorPickerWrapper}>
<Loupe colorInfo={colorInfo} />
</Box>
) : null}
<div
className={styles.stageBottomWrapper}
style={{
width: stageDimensions.width,
height: stageDimensions.height,
left: '50%',
marginLeft: stageDimensions.width * -0.5
}}
>
{micIndicator ? (
<MicIndicator
className={styles.micIndicator}
stageSize={stageDimensions}
/>
) : null}
{question === null ? null : (
<div
className={styles.questionWrapper}
style={{width: stageDimensions.width}}
>
<Question
question={question}
onQuestionAnswered={onQuestionAnswered}
/>
</div>
)}
</div>
<canvas
className={styles.draggingSprite}
height={0}
ref={dragRef}
width={0}
/>
</Box>
{isColorPicking ? (
<Box
@@ -131,7 +130,7 @@ const StageComponent = props => {
onClick={onDeactivateColorPicker}
/>
) : null}
</div>
</React.Fragment>
);
};
StageComponent.propTypes = {
@@ -101,6 +101,9 @@ class TelemetryModal extends React.PureComponent {
privacyPolicyLink: (<a
className={styles.privacyPolicyLink}
href="https://scratch.mit.edu/privacy_policy/"
onClick={this.props.onShowPrivacyPolicy}
target="_blank"
rel="noopener noreferrer"
>
<FormattedMessage {...messages.privacyPolicyLink} />
</a>)
@@ -134,7 +137,8 @@ TelemetryModal.propTypes = {
onCancel: PropTypes.func,
onOptIn: PropTypes.func.isRequired,
onOptOut: PropTypes.func.isRequired,
onRequestClose: PropTypes.func
onRequestClose: PropTypes.func,
onShowPrivacyPolicy: PropTypes.func
};
export default injectIntl(TelemetryModal);
+2 -2
View File
@@ -338,8 +338,8 @@ class Blocks extends React.Component {
const stageCostumes = stage.getCostumes();
const targetCostumes = target.getCostumes();
const targetSounds = target.getSounds();
const dynamicBlocksXML = this.props.vm.runtime.getBlocksXML();
return makeToolboxXML(target.isStage, target.id, dynamicBlocksXML,
const dynamicBlocksXML = this.props.vm.runtime.getBlocksXML(target);
return makeToolboxXML(false, target.isStage, target.id, dynamicBlocksXML,
targetCostumes[targetCostumes.length - 1].name,
stageCostumes[stageCostumes.length - 1].name,
targetSounds.length > 0 ? targetSounds[targetSounds.length - 1].name : ''
-4
View File
@@ -21,8 +21,6 @@ class GreenFlagOverlay extends React.Component {
}
render () {
if (this.props.isStarted) return null;
return (
<Box
className={this.props.wrapperClass}
@@ -42,13 +40,11 @@ class GreenFlagOverlay extends React.Component {
GreenFlagOverlay.propTypes = {
className: PropTypes.string,
isStarted: PropTypes.bool,
vm: PropTypes.instanceOf(VM),
wrapperClass: PropTypes.string
};
const mapStateToProps = state => ({
isStarted: state.scratchGui.vmStatus.started,
vm: state.scratchGui.vm
});
+4 -6
View File
@@ -362,6 +362,7 @@ class Stage extends React.Component {
this.drawDragCanvas(drawableData);
this.positionDragCanvas(x, y);
this.props.vm.postSpriteInfo({visible: false});
this.props.vm.renderer.draw();
}
}
onStopDrag (mouseX, mouseY) {
@@ -387,12 +388,9 @@ class Stage extends React.Component {
}
this.props.vm.postSpriteInfo(spriteInfo);
// Then clear the dragging canvas and stop drag (potentially slow if selecting sprite)
setTimeout(() => {
this.clearDragCanvas();
setTimeout(() => {
commonStopDragActions();
}, 30);
}, 30);
this.clearDragCanvas();
commonStopDragActions();
this.props.vm.renderer.draw();
} else {
commonStopDragActions();
}
+1 -1
View File
@@ -41,4 +41,4 @@ $extensions-tertiary: hsla(163, 85%, 30%, 1); /* #0B8E69 */
$extensions-transparent: hsla(163, 85%, 40%, 0.35); /* 35% transparent version of extensions-primary */
$extensions-light: hsla(163, 57%, 85%, 1); /* opaque version of extensions-transparent, on white bg */
$drop-highlight: hsla(215, 100%, 77%); /* lighter than motion-primary */
$drop-highlight: hsla(215, 100%, 77%, 1); /* lighter than motion-primary */
+19 -6
View File
@@ -1,10 +1,23 @@
import GoogleAnalytics from 'react-ga';
GoogleAnalytics.initialize(process.env.GA_ID || window.GA_ID, {
debug: (process.env.NODE_ENV !== 'production'),
titleCase: true,
sampleRate: (process.env.NODE_ENV === 'production') ? 100 : 0,
forceSSL: true
});
import log from './log';
const GA_ID = (process.env.GA_ID || window.GA_ID);
if (GA_ID) {
GoogleAnalytics.initialize(GA_ID, {
debug: (process.env.NODE_ENV !== 'production'),
titleCase: true,
sampleRate: (process.env.NODE_ENV === 'production') ? 100 : 0,
forceSSL: true
});
} else {
log.info('Disabling GA because GA_ID is not set.');
window.ga = () => {
// The `react-ga` module calls this function to implement all Google Analytics calls. Providing an empty
// function effectively disables `react-ga`. This is similar to the `testModeAPI` feature of `react-ga` except
// that `testModeAPI` logs the arguments of every call into an array. That's nice for testing purposes but
// would look like a memory leak in a live program.
};
}
export default GoogleAnalytics;
+15 -3
View File
@@ -2,10 +2,22 @@ import StartAudioContext from 'startaudiocontext';
import bowser from 'bowser';
let AUDIO_CONTEXT;
if (!bowser.msie) {
AUDIO_CONTEXT = new (window.AudioContext || window.webkitAudioContext)();
StartAudioContext(AUDIO_CONTEXT);
if (!bowser.msie) {
/**
* AudioContext can be initialized only when user interaction event happens
*/
const event =
typeof document.ontouchstart === 'undefined' ?
'mousedown' :
'touchstart';
const initAudioContext = () => {
document.removeEventListener(event, initAudioContext);
AUDIO_CONTEXT = new (window.AudioContext ||
window.webkitAudioContext)();
StartAudioContext(AUDIO_CONTEXT);
};
document.addEventListener(event, initAudioContext);
}
/**
+6 -3
View File
@@ -14,10 +14,13 @@ export default (filename, blob) => {
downloadLink.download = filename;
downloadLink.type = blob.type;
downloadLink.click();
document.body.removeChild(downloadLink);
window.URL.revokeObjectURL(url);
// remove the link after a timeout to prevent a crash on iOS 13 Safari
window.setTimeout(() => {
document.body.removeChild(downloadLink);
window.URL.revokeObjectURL(url);
}, 1000);
} else {
// iOS Safari, open a new page and set href to data-uri
// iOS 12 Safari, open a new page and set href to data-uri
let popup = window.open('', '_blank');
const reader = new FileReader();
reader.onloadend = function () {
+1 -1
View File
@@ -78,7 +78,7 @@ const DropAreaHOC = function (dragTypes) {
}
}
render () {
const componentProps = omit(this.props, ['onDrop', 'dragInfo']);
const componentProps = omit(this.props, ['onDrop', 'dragInfo', 'componentRef']);
return (
<WrappedComponent
containerRef={this.setRef}
+452 -452
View File
@@ -104,6 +104,82 @@ export default {
urlId: 'getStarted'
},
'animate-a-name': {
name: (
<FormattedMessage
defaultMessage="Animate a Name"
description="Name for the 'Animate a Name' how-to"
id="gui.howtos.animate-a-name.name"
/>
),
img: libraryAnimate,
tags: ['animation', 'art', 'spin', 'grow'],
steps: [{
video: 'animate-a-name'
}, {
title: (
<FormattedMessage
defaultMessage="Pick a Letter Sprite"
description="Step name for 'Pick a Letter Sprite' step"
id="gui.howtos.animate-a-name.step_AnimatePickLetter"
/>
),
image: 'namePickLetter'
}, {
title: (
<FormattedMessage
defaultMessage="Play a Sound When Clicked"
description="Step name for 'Play a Sound When Clicked' step"
id="gui.howtos.animate-a-name.step_AnimatePlaySound"
/>
),
image: 'namePlaySound'
}, {
title: (
<FormattedMessage
defaultMessage="Pick Another Letter Sprite"
description="Step name for 'Pick Another Letter Sprite"
id="gui.howtos.animate-a-name.step_AnimatePickLetter2"
/>
),
image: 'namePickLetter2'
}, {
title: (
<FormattedMessage
defaultMessage="Change color"
description="Step name for 'Change color' step"
id="gui.howtos.animate-a-name.step_AnimateChangeColor"
/>
),
image: 'nameChangeColor'
}, {
title: (
<FormattedMessage
defaultMessage="Pick Another Letter Sprite & Make It Spin"
description="Step name for 'Pick Another Letter Sprite & Make It Spin' step"
id="gui.howtos.animate-a-name.step_AnimateSpin"
/>
),
image: 'nameSpin'
}, {
title: (
<FormattedMessage
defaultMessage="Pick Another Letter Sprite & Make It Grow"
description="Step name for 'Pick Another Letter Sprite & Make It Grow!' step"
id="gui.howtos.animate-a-name.step_AnimateGrow"
/>
),
image: 'nameGrow'
}, {
deckIds: [
'add-a-backdrop',
'glide-around'
]
}
],
urlId: 'name'
},
'imagine': {
name: (
<FormattedMessage
@@ -260,458 +336,7 @@ export default {
],
urlId: 'imagine'
},
'code-cartoon': {
name: (
<FormattedMessage
defaultMessage="Code a Cartoon"
description="Name for the 'Code a Cartoon' how-to"
id="gui.howtos.code-cartoon"
/>
),
tags: ['code-cartoon'],
requiredProjectId: '331474033',
img: libraryCodeCartoon,
steps: [{
video: 'code-cartoon'
}, {
title: (
<FormattedMessage
defaultMessage="Say Something When You Click the Green Flag"
description="Step name for 'Say Something When You Click the Green Flag' step"
id="gui.howtos.code-cartoon.step_codeCartoonSaySomething"
/>
),
image: 'codeCartoonSaySomething'
}, {
title: (
<FormattedMessage
defaultMessage="Animate a Character When You Click It"
description="Step name for 'Animate a Character When You Click It' step"
id="gui.howtos.code-cartoon.step_codeCartoonAnimate"
/>
),
image: 'codeCartoonAnimate'
}, {
title: (
<FormattedMessage
defaultMessage="Select a Different Character"
description="Step name for 'Select a Different Character' step"
id="gui.howtos.code-cartoon.step_codeCartoonSelectDifferentCharacter"
/>
),
image: 'codeCartoonSelectDifferentCharacter'
}, {
title: (
<FormattedMessage
defaultMessage="Use a Minus Sign to Get Smaller"
description="Step name for 'Use a Minus Sign to Get Smaller' step"
id="gui.howtos.code-cartoon.step_codeCartoonUseMinusSign"
/>
),
image: 'codeCartoonUseMinusSign'
}, {
title: (
<FormattedMessage
defaultMessage="Make a Character Grow and Shrink"
description="Step name for 'Make a Character Grow and Shrink' step"
id="gui.howtos.code-cartoon.step_codeCartoonGrowShrink"
/>
),
image: 'codeCartoonGrowShrink'
}, {
title: (
<FormattedMessage
defaultMessage="Select a Different Character"
description="Step name for 'Select a Different Character' step"
id="gui.howtos.code-cartoon.step_codeCartoonSelectDifferentCharacter2"
/>
),
image: 'codeCartoonSelectDifferentCharacter2'
}, {
title: (
<FormattedMessage
defaultMessage="Jump Up and Down"
description="Step name for 'Jump Up and Down' step"
id="gui.howtos.code-cartoon.step_codeCartoonJump"
/>
),
image: 'codeCartoonJump'
}, {
title: (
<FormattedMessage
defaultMessage="Click a Character to Change Scenes"
description="Step name for 'Click a Character to Change Scenes' step"
id="gui.howtos.code-cartoon.step_codeCartoonChangeScenes"
/>
),
image: 'codeCartoonChangeScenes'
}, {
title: (
<FormattedMessage
defaultMessage="Glide Around"
description="Step name for 'Glide Around' step"
id="gui.howtos.code-cartoon.step_codeCartoonGlideAround"
/>
),
image: 'codeCartoonGlideAround'
}, {
title: (
<FormattedMessage
defaultMessage="Change Costumes"
description="Step name for 'Change Costumes' step"
id="gui.howtos.code-cartoon.step_codeCartoonChangeCostumes"
/>
),
image: 'codeCartoonChangeCostumes'
}, {
title: (
<FormattedMessage
defaultMessage="Choose More Characters to Add to Your Cartoon"
description="Step name for 'Choose More Characters to Add to Your Cartoon' step"
id="gui.howtos.code-cartoon.step_codeCartoonChooseMoreCharacters"
/>
),
image: 'codeCartoonChooseMoreCharacters'
}, {
deckIds: [
'Chase-Game',
'Tell-A-Story'
]
}
],
urlId: 'code-cartoon'
},
'say-it-out-loud': {
name: (
<FormattedMessage
defaultMessage="Create Animations That Talk"
description="Name for the 'Create Animations That Talk' how-to"
id="gui.howtos.say-it-out-loud"
/>
),
img: libraryTXTSpeech,
steps: [{
video: 'k54n8uwcty',
trackingPixel: (
<img src="https://code.org/api/hour/begin_scratch_talk.png" />
)
}, {
title: (
<FormattedMessage
defaultMessage="Add the Text to Speech blocks"
description="Step name for 'Add the Text to Speech blocks' step"
id="gui.howtos.say-it-out-loud.step_AddTXTextension"
/>
),
image: 'speechAddExtension'
}, {
title: (
<FormattedMessage
defaultMessage="Say Something"
description="Step name for 'Say Something' step"
id="gui.howtos.say-it-out-loud.step_TXTSpeech"
/>
),
image: 'speechSaySomething'
}, {
title: (
<FormattedMessage
defaultMessage="Set a Voice"
description="Step name for 'Set a Voice"
id="gui.howtos.say-it-out-loud_TXTSetVoice"
/>
),
image: 'speechSetVoice'
}, {
title: (
<FormattedMessage
defaultMessage="Move Around"
description="Step name for 'Move Around' step"
id="gui.howtos.say-it-out-loud.step_TXTMove"
/>
),
image: 'speechMoveAround'
}, {
title: (
<FormattedMessage
defaultMessage="Add a Backdrop"
description="Step name for 'Add a Backdrop' step"
id="gui.howtos.say-it-out-loud.step_TXTBackdrop"
/>
),
image: 'speechAddBackdrop'
}, {
title: (
<FormattedMessage
defaultMessage="Add Another Character"
description="Step name for 'Add Another Character' step"
id="gui.howtos.say-it-out-loud.step_TXTAddSprite"
/>
),
image: 'speechAddSprite'
}, {
title: (
<FormattedMessage
defaultMessage="Perform a Song"
description="Step name for 'Perform a Song' step"
id="gui.howtos.say-it-out-loud.step_TXTSong"
/>
),
image: 'speechSong'
}, {
title: (
<FormattedMessage
defaultMessage="Change Color"
description="Step name for 'Change Color' step"
id="gui.howtos.say-it-out-loud.step_TXTColor"
/>
),
image: 'speechChangeColor'
}, {
title: (
<FormattedMessage
defaultMessage="Spin Around"
description="Step name for 'Spin Around"
id="gui.howtos.say-it-out-loud.step_TXTSpin"
/>
),
image: 'speechSpin'
}, {
title: (
<FormattedMessage
defaultMessage="Grow and Shrink"
description="Step name for 'Grow and Shrink' step"
id="gui.howtos.say-it-out-loud.step_TXTGrow"
/>
),
image: 'speechGrowShrink'
}, {
deckIds: [
'animate-a-name',
'Make-Music'
]
}
],
urlId: 'animations-that-talk'
},
'talking': {
name: (
<FormattedMessage
defaultMessage="Talking Tales"
description="Name for the 'Talking Tales' how-to"
id="gui.howtos.talking"
/>
),
tags: ['talking'],
img: libraryTalking,
steps: [{
video: 'talking'
}, {
title: (
<FormattedMessage
defaultMessage="Click to Add the Text-to-Speech Blocks"
description="Step name for 'Click to Add the Text-to-Speech Blocks' step"
id="gui.howtos.talking.step_talesAddExtension"
/>
),
image: 'talesAddExtension'
}, {
title: (
<FormattedMessage
defaultMessage="Choose a Sprite"
description="Step name for 'Choose a Sprite' step"
id="gui.howtos.talking.step_talesChooseSprite"
/>
),
image: 'talesChooseSprite'
}, {
title: (
<FormattedMessage
defaultMessage="Make a Character Speak"
description="Step name for 'Make a Character Speak' step"
id="gui.howtos.talking.step_talesSaySomething"
/>
),
image: 'talesSaySomething'
}, {
title: (
<FormattedMessage
defaultMessage="Choose a Backdrop"
description="Step name for 'Choose a Backdrop' step"
id="gui.howtos.talking.step_talesChooseBackdrop"
/>
),
image: 'talesChooseBackdrop'
}, {
title: (
<FormattedMessage
defaultMessage="Click a Character to Go to the Next Backdrop"
description="Step name for 'Click a Character to Go to the Next Backdrop' step"
id="gui.howtos.talking.step_talesSwitchBackdrop"
/>
),
image: 'talesSwitchBackdrop'
}, {
title: (
<FormattedMessage
defaultMessage="Choose Another Sprite"
description="Step name for 'Choose Another Sprite' step"
id="gui.howtos.talking.step_talesChooseAnotherSprite"
/>
),
image: 'talesChooseAnotherSprite'
}, {
title: (
<FormattedMessage
defaultMessage="Move Around"
description="Step name for 'Move Around' step"
id="gui.howtos.talking.step_talesMoveAround"
/>
),
image: 'talesMoveAround'
}, {
title: (
<FormattedMessage
defaultMessage="Choose Another Backdrop"
description="Step name for 'Choose Another Backdrop' step"
id="gui.howtos.talking.step_talesChooseAnotherBackdrop"
/>
),
image: 'talesChooseAnotherBackdrop'
}, {
title: (
<FormattedMessage
defaultMessage="Animate Talking"
description="Step name for 'Animate Talking' step"
id="gui.howtos.talking.step_talesAnimateTalking"
/>
),
image: 'talesAnimateTalking'
}, {
title: (
<FormattedMessage
defaultMessage="Choose Another Backdrop"
description="Step name for 'Choose Another Backdrop' step"
id="gui.howtos.talking.step_talesChooseThirdBackdrop"
/>
),
image: 'talesChooseThirdBackdrop'
}, {
title: (
<FormattedMessage
defaultMessage="Choose a Song to Dance To"
description="Step name for 'Choose a Song to Dance To' step"
id="gui.howtos.talking.step_talesChooseSound"
/>
),
image: 'talesChooseSound'
}, {
title: (
<FormattedMessage
defaultMessage="Dance Moves"
description="Step name for 'Dance Moves' step"
id="gui.howtos.talking.step_talesDanceMoves"
/>
),
image: 'talesDanceMoves'
}, {
title: (
<FormattedMessage
defaultMessage="Get the Ask and Answer Blocks from the Sensing Category"
description="Step name for 'Get the Ask and Answer Blocks from the Sensing Category' step"
id="gui.howtos.talking.step_talesAskAnswer"
/>
),
image: 'talesAskAnswer'
}, {
deckIds: [
'Tell-A-Story',
'Animate-A-Character'
]
}
],
urlId: 'talking'
},
'animate-a-name': {
name: (
<FormattedMessage
defaultMessage="Animate a Name"
description="Name for the 'Animate a Name' how-to"
id="gui.howtos.animate-a-name.name"
/>
),
img: libraryAnimate,
tags: ['animation', 'art', 'spin', 'grow'],
steps: [{
video: 'animate-a-name'
}, {
title: (
<FormattedMessage
defaultMessage="Pick a Letter Sprite"
description="Step name for 'Pick a Letter Sprite' step"
id="gui.howtos.animate-a-name.step_AnimatePickLetter"
/>
),
image: 'namePickLetter'
}, {
title: (
<FormattedMessage
defaultMessage="Play a Sound When Clicked"
description="Step name for 'Play a Sound When Clicked' step"
id="gui.howtos.animate-a-name.step_AnimatePlaySound"
/>
),
image: 'namePlaySound'
}, {
title: (
<FormattedMessage
defaultMessage="Pick Another Letter Sprite"
description="Step name for 'Pick Another Letter Sprite"
id="gui.howtos.animate-a-name.step_AnimatePickLetter2"
/>
),
image: 'namePickLetter2'
}, {
title: (
<FormattedMessage
defaultMessage="Change color"
description="Step name for 'Change color' step"
id="gui.howtos.animate-a-name.step_AnimateChangeColor"
/>
),
image: 'nameChangeColor'
}, {
title: (
<FormattedMessage
defaultMessage="Pick Another Letter Sprite & Make It Spin"
description="Step name for 'Pick Another Letter Sprite & Make It Spin' step"
id="gui.howtos.animate-a-name.step_AnimateSpin"
/>
),
image: 'nameSpin'
}, {
title: (
<FormattedMessage
defaultMessage="Pick Another Letter Sprite & Make It Grow"
description="Step name for 'Pick Another Letter Sprite & Make It Grow!' step"
id="gui.howtos.animate-a-name.step_AnimateGrow"
/>
),
image: 'nameGrow'
}, {
deckIds: [
'add-a-backdrop',
'glide-around'
]
}
],
urlId: 'name'
},
'Make-Music': {
name: (
<FormattedMessage
@@ -1450,6 +1075,128 @@ export default {
urlId: 'pong'
},
'code-cartoon': {
name: (
<FormattedMessage
defaultMessage="Code a Cartoon"
description="Name for the 'Code a Cartoon' how-to"
id="gui.howtos.code-cartoon"
/>
),
tags: ['code-cartoon'],
requiredProjectId: '331474033',
img: libraryCodeCartoon,
steps: [{
video: 'code-cartoon'
}, {
title: (
<FormattedMessage
defaultMessage="Say Something When You Click the Green Flag"
description="Step name for 'Say Something When You Click the Green Flag' step"
id="gui.howtos.code-cartoon.step_codeCartoonSaySomething"
/>
),
image: 'codeCartoonSaySomething'
}, {
title: (
<FormattedMessage
defaultMessage="Animate a Character When You Click It"
description="Step name for 'Animate a Character When You Click It' step"
id="gui.howtos.code-cartoon.step_codeCartoonAnimate"
/>
),
image: 'codeCartoonAnimate'
}, {
title: (
<FormattedMessage
defaultMessage="Select a Different Character"
description="Step name for 'Select a Different Character' step"
id="gui.howtos.code-cartoon.step_codeCartoonSelectDifferentCharacter"
/>
),
image: 'codeCartoonSelectDifferentCharacter'
}, {
title: (
<FormattedMessage
defaultMessage="Use a Minus Sign to Get Smaller"
description="Step name for 'Use a Minus Sign to Get Smaller' step"
id="gui.howtos.code-cartoon.step_codeCartoonUseMinusSign"
/>
),
image: 'codeCartoonUseMinusSign'
}, {
title: (
<FormattedMessage
defaultMessage="Make a Character Grow and Shrink"
description="Step name for 'Make a Character Grow and Shrink' step"
id="gui.howtos.code-cartoon.step_codeCartoonGrowShrink"
/>
),
image: 'codeCartoonGrowShrink'
}, {
title: (
<FormattedMessage
defaultMessage="Select a Different Character"
description="Step name for 'Select a Different Character' step"
id="gui.howtos.code-cartoon.step_codeCartoonSelectDifferentCharacter2"
/>
),
image: 'codeCartoonSelectDifferentCharacter2'
}, {
title: (
<FormattedMessage
defaultMessage="Jump Up and Down"
description="Step name for 'Jump Up and Down' step"
id="gui.howtos.code-cartoon.step_codeCartoonJump"
/>
),
image: 'codeCartoonJump'
}, {
title: (
<FormattedMessage
defaultMessage="Click a Character to Change Scenes"
description="Step name for 'Click a Character to Change Scenes' step"
id="gui.howtos.code-cartoon.step_codeCartoonChangeScenes"
/>
),
image: 'codeCartoonChangeScenes'
}, {
title: (
<FormattedMessage
defaultMessage="Glide Around"
description="Step name for 'Glide Around' step"
id="gui.howtos.code-cartoon.step_codeCartoonGlideAround"
/>
),
image: 'codeCartoonGlideAround'
}, {
title: (
<FormattedMessage
defaultMessage="Change Costumes"
description="Step name for 'Change Costumes' step"
id="gui.howtos.code-cartoon.step_codeCartoonChangeCostumes"
/>
),
image: 'codeCartoonChangeCostumes'
}, {
title: (
<FormattedMessage
defaultMessage="Choose More Characters to Add to Your Cartoon"
description="Step name for 'Choose More Characters to Add to Your Cartoon' step"
id="gui.howtos.code-cartoon.step_codeCartoonChooseMoreCharacters"
/>
),
image: 'codeCartoonChooseMoreCharacters'
}, {
deckIds: [
'Chase-Game',
'Tell-A-Story'
]
}
],
urlId: 'code-cartoon'
},
'cartoon-network': {
name: (
<FormattedMessage
@@ -1609,6 +1356,259 @@ export default {
urlId: 'video-sensing'
},
'say-it-out-loud': {
name: (
<FormattedMessage
defaultMessage="Create Animations That Talk"
description="Name for the 'Create Animations That Talk' how-to"
id="gui.howtos.say-it-out-loud"
/>
),
img: libraryTXTSpeech,
steps: [{
video: 'k54n8uwcty',
trackingPixel: (
<img src="https://code.org/api/hour/begin_scratch_talk.png" />
)
}, {
title: (
<FormattedMessage
defaultMessage="Add the Text to Speech blocks"
description="Step name for 'Add the Text to Speech blocks' step"
id="gui.howtos.say-it-out-loud.step_AddTXTextension"
/>
),
image: 'speechAddExtension'
}, {
title: (
<FormattedMessage
defaultMessage="Say Something"
description="Step name for 'Say Something' step"
id="gui.howtos.say-it-out-loud.step_TXTSpeech"
/>
),
image: 'speechSaySomething'
}, {
title: (
<FormattedMessage
defaultMessage="Set a Voice"
description="Step name for 'Set a Voice"
id="gui.howtos.say-it-out-loud_TXTSetVoice"
/>
),
image: 'speechSetVoice'
}, {
title: (
<FormattedMessage
defaultMessage="Move Around"
description="Step name for 'Move Around' step"
id="gui.howtos.say-it-out-loud.step_TXTMove"
/>
),
image: 'speechMoveAround'
}, {
title: (
<FormattedMessage
defaultMessage="Add a Backdrop"
description="Step name for 'Add a Backdrop' step"
id="gui.howtos.say-it-out-loud.step_TXTBackdrop"
/>
),
image: 'speechAddBackdrop'
}, {
title: (
<FormattedMessage
defaultMessage="Add Another Character"
description="Step name for 'Add Another Character' step"
id="gui.howtos.say-it-out-loud.step_TXTAddSprite"
/>
),
image: 'speechAddSprite'
}, {
title: (
<FormattedMessage
defaultMessage="Perform a Song"
description="Step name for 'Perform a Song' step"
id="gui.howtos.say-it-out-loud.step_TXTSong"
/>
),
image: 'speechSong'
}, {
title: (
<FormattedMessage
defaultMessage="Change Color"
description="Step name for 'Change Color' step"
id="gui.howtos.say-it-out-loud.step_TXTColor"
/>
),
image: 'speechChangeColor'
}, {
title: (
<FormattedMessage
defaultMessage="Spin Around"
description="Step name for 'Spin Around"
id="gui.howtos.say-it-out-loud.step_TXTSpin"
/>
),
image: 'speechSpin'
}, {
title: (
<FormattedMessage
defaultMessage="Grow and Shrink"
description="Step name for 'Grow and Shrink' step"
id="gui.howtos.say-it-out-loud.step_TXTGrow"
/>
),
image: 'speechGrowShrink'
}, {
deckIds: [
'animate-a-name',
'Make-Music'
]
}
],
urlId: 'animations-that-talk'
},
'talking': {
name: (
<FormattedMessage
defaultMessage="Talking Tales"
description="Name for the 'Talking Tales' how-to"
id="gui.howtos.talking"
/>
),
tags: ['talking'],
img: libraryTalking,
steps: [{
video: 'talking'
}, {
title: (
<FormattedMessage
defaultMessage="Click to Add the Text-to-Speech Blocks"
description="Step name for 'Click to Add the Text-to-Speech Blocks' step"
id="gui.howtos.talking.step_talesAddExtension"
/>
),
image: 'talesAddExtension'
}, {
title: (
<FormattedMessage
defaultMessage="Choose a Sprite"
description="Step name for 'Choose a Sprite' step"
id="gui.howtos.talking.step_talesChooseSprite"
/>
),
image: 'talesChooseSprite'
}, {
title: (
<FormattedMessage
defaultMessage="Make a Character Speak"
description="Step name for 'Make a Character Speak' step"
id="gui.howtos.talking.step_talesSaySomething"
/>
),
image: 'talesSaySomething'
}, {
title: (
<FormattedMessage
defaultMessage="Choose a Backdrop"
description="Step name for 'Choose a Backdrop' step"
id="gui.howtos.talking.step_talesChooseBackdrop"
/>
),
image: 'talesChooseBackdrop'
}, {
title: (
<FormattedMessage
defaultMessage="Click a Character to Go to the Next Backdrop"
description="Step name for 'Click a Character to Go to the Next Backdrop' step"
id="gui.howtos.talking.step_talesSwitchBackdrop"
/>
),
image: 'talesSwitchBackdrop'
}, {
title: (
<FormattedMessage
defaultMessage="Choose Another Sprite"
description="Step name for 'Choose Another Sprite' step"
id="gui.howtos.talking.step_talesChooseAnotherSprite"
/>
),
image: 'talesChooseAnotherSprite'
}, {
title: (
<FormattedMessage
defaultMessage="Move Around"
description="Step name for 'Move Around' step"
id="gui.howtos.talking.step_talesMoveAround"
/>
),
image: 'talesMoveAround'
}, {
title: (
<FormattedMessage
defaultMessage="Choose Another Backdrop"
description="Step name for 'Choose Another Backdrop' step"
id="gui.howtos.talking.step_talesChooseAnotherBackdrop"
/>
),
image: 'talesChooseAnotherBackdrop'
}, {
title: (
<FormattedMessage
defaultMessage="Animate Talking"
description="Step name for 'Animate Talking' step"
id="gui.howtos.talking.step_talesAnimateTalking"
/>
),
image: 'talesAnimateTalking'
}, {
title: (
<FormattedMessage
defaultMessage="Choose Another Backdrop"
description="Step name for 'Choose Another Backdrop' step"
id="gui.howtos.talking.step_talesChooseThirdBackdrop"
/>
),
image: 'talesChooseThirdBackdrop'
}, {
title: (
<FormattedMessage
defaultMessage="Choose a Song to Dance To"
description="Step name for 'Choose a Song to Dance To' step"
id="gui.howtos.talking.step_talesChooseSound"
/>
),
image: 'talesChooseSound'
}, {
title: (
<FormattedMessage
defaultMessage="Dance Moves"
description="Step name for 'Dance Moves' step"
id="gui.howtos.talking.step_talesDanceMoves"
/>
),
image: 'talesDanceMoves'
}, {
title: (
<FormattedMessage
defaultMessage="Get the Ask and Answer Blocks from the Sensing Category"
description="Step name for 'Get the Ask and Answer Blocks from the Sensing Category' step"
id="gui.howtos.talking.step_talesAskAnswer"
/>
),
image: 'talesAskAnswer'
}, {
deckIds: [
'Tell-A-Story',
'Animate-A-Character'
]
}
],
urlId: 'talking'
},
'add-sprite': {
name: (
<FormattedMessage
+74 -64
View File
@@ -4,7 +4,8 @@ const categorySeparator = '<sep gap="36"/>';
const blockSeparator = '<sep gap="36"/>'; // At default scale, about 28px
const motion = function (isStage, targetId) {
/* eslint-disable no-unused-vars */
const motion = function (isInitialSetup, isStage, targetId) {
const stageSelected = ScratchBlocks.ScratchMsgs.translate(
'MOTION_STAGE_SELECTED',
'Stage selected: no motion blocks'
@@ -150,7 +151,7 @@ const xmlEscape = function (unsafe) {
});
};
const looks = function (isStage, targetId, costumeName, backdropName) {
const looks = function (isInitialSetup, isStage, targetId, costumeName, backdropName) {
const hello = ScratchBlocks.ScratchMsgs.translate('LOOKS_HELLO', 'Hello!');
const hmm = ScratchBlocks.ScratchMsgs.translate('LOOKS_HMM', 'Hmm...');
return `
@@ -287,7 +288,7 @@ const looks = function (isStage, targetId, costumeName, backdropName) {
`;
};
const sound = function (isStage, targetId, soundName) {
const sound = function (isInitialSetup, isStage, targetId, soundName) {
return `
<category name="%{BKY_CATEGORY_SOUND}" id="sound" colour="#D65CD6" secondaryColour="#BD42BD">
<block id="${targetId}_sound_playuntildone" type="sound_playuntildone">
@@ -342,7 +343,7 @@ const sound = function (isStage, targetId, soundName) {
`;
};
const events = function (isStage) {
const events = function (isInitialSetup, isStage) {
return `
<category name="%{BKY_CATEGORY_EVENTS}" id="events" colour="#FFD500" secondaryColour="#CC9900">
<block type="event_whenflagclicked"/>
@@ -381,7 +382,7 @@ const events = function (isStage) {
`;
};
const control = function (isStage) {
const control = function (isInitialSetup, isStage) {
return `
<category name="%{BKY_CATEGORY_CONTROL}" id="control" colour="#FFAB19" secondaryColour="#CF8B17">
<block type="control_wait">
@@ -428,7 +429,7 @@ const control = function (isStage) {
`;
};
const sensing = function (isStage) {
const sensing = function (isInitialSetup, isStage) {
const name = ScratchBlocks.ScratchMsgs.translate('SENSING_ASK_TEXT', 'What\'s your name?');
return `
<category name="%{BKY_CATEGORY_SENSING}" id="sensing" colour="#4CBFE6" secondaryColour="#2E8EB8">
@@ -458,13 +459,15 @@ const sensing = function (isStage) {
</block>
${blockSeparator}
`}
<block id="askandwait" type="sensing_askandwait">
<value name="QUESTION">
<shadow type="text">
<field name="TEXT">${name}</field>
</shadow>
</value>
</block>
${isInitialSetup ? '' : `
<block id="askandwait" type="sensing_askandwait">
<value name="QUESTION">
<shadow type="text">
<field name="TEXT">${name}</field>
</shadow>
</value>
</block>
`}
<block id="answer" type="sensing_answer"/>
${blockSeparator}
<block type="sensing_keypressed">
@@ -501,7 +504,7 @@ const sensing = function (isStage) {
`;
};
const operators = function () {
const operators = function (isInitialSetup) {
const apple = ScratchBlocks.ScratchMsgs.translate('OPERATORS_JOIN_APPLE', 'apple');
const banana = ScratchBlocks.ScratchMsgs.translate('OPERATORS_JOIN_BANANA', 'banana');
const letter = ScratchBlocks.ScratchMsgs.translate('OPERATORS_LETTEROF_APPLE', 'a');
@@ -610,49 +613,51 @@ const operators = function () {
<block type="operator_or"/>
<block type="operator_not"/>
${blockSeparator}
<block type="operator_join">
<value name="STRING1">
${isInitialSetup ? '' : `
<block type="operator_join">
<value name="STRING1">
<shadow type="text">
<field name="TEXT">${apple} </field>
</shadow>
</value>
<value name="STRING2">
<shadow type="text">
<field name="TEXT">${banana}</field>
</shadow>
</value>
</block>
<block type="operator_letter_of">
<value name="LETTER">
<shadow type="math_whole_number">
<field name="NUM">1</field>
</shadow>
</value>
<value name="STRING">
<shadow type="text">
<field name="TEXT">${apple}</field>
</shadow>
</value>
</block>
<block type="operator_length">
<value name="STRING">
<shadow type="text">
<field name="TEXT">${apple}</field>
</shadow>
</value>
</block>
<block type="operator_contains" id="operator_contains">
<value name="STRING1">
<shadow type="text">
<field name="TEXT">${apple} </field>
<field name="TEXT">${apple}</field>
</shadow>
</value>
<value name="STRING2">
</value>
<value name="STRING2">
<shadow type="text">
<field name="TEXT">${banana}</field>
<field name="TEXT">${letter}</field>
</shadow>
</value>
</block>
<block type="operator_letter_of">
<value name="LETTER">
<shadow type="math_whole_number">
<field name="NUM">1</field>
</shadow>
</value>
<value name="STRING">
<shadow type="text">
<field name="TEXT">${apple}</field>
</shadow>
</value>
</block>
<block type="operator_length">
<value name="STRING">
<shadow type="text">
<field name="TEXT">${apple}</field>
</shadow>
</value>
</block>
<block type="operator_contains" id="operator_contains">
<value name="STRING1">
<shadow type="text">
<field name="TEXT">${apple}</field>
</shadow>
</value>
<value name="STRING2">
<shadow type="text">
<field name="TEXT">${letter}</field>
</shadow>
</value>
</block>
</value>
</block>
`}
${blockSeparator}
<block type="operator_mod">
<value name="NUM1">
@@ -709,12 +714,16 @@ const myBlocks = function () {
</category>
`;
};
/* eslint-enable no-unused-vars */
const xmlOpen = '<xml style="display: none">';
const xmlClose = '</xml>';
/**
* @param {!boolean} isStage - Whether the toolbox is for a stage-type target.
* @param {!boolean} isInitialSetup - Whether the toolbox is for initial setup. If the mode is "initial setup",
* blocks with localized default parameters (e.g. ask and wait) should not be loaded. (LLK/scratch-gui#5445)
* @param {?boolean} isStage - Whether the toolbox is for a stage-type target. This is always set to true
* when isInitialSetup is true.
* @param {?string} targetId - The current editing target
* @param {?Array.<object>} categoriesXML - optional array of `{id,xml}` for categories. This can include both core
* and other extensions: core extensions will be placed in the normal Scratch order; others will go at the bottom.
@@ -725,8 +734,9 @@ const xmlClose = '</xml>';
* @param {?string} soundName - The name of the default selected sound dropdown.
* @returns {string} - a ScratchBlocks-style XML document for the contents of the toolbox.
*/
const makeToolboxXML = function (isStage, targetId, categoriesXML = [],
const makeToolboxXML = function (isInitialSetup, isStage = true, targetId, categoriesXML = [],
costumeName = '', backdropName = '', soundName = '') {
isStage = isInitialSetup || isStage;
const gap = [categorySeparator];
costumeName = xmlEscape(costumeName);
@@ -743,15 +753,15 @@ const makeToolboxXML = function (isStage, targetId, categoriesXML = [],
}
// return `undefined`
};
const motionXML = moveCategory('motion') || motion(isStage, targetId);
const looksXML = moveCategory('looks') || looks(isStage, targetId, costumeName, backdropName);
const soundXML = moveCategory('sound') || sound(isStage, targetId, soundName);
const eventsXML = moveCategory('event') || events(isStage, targetId);
const controlXML = moveCategory('control') || control(isStage, targetId);
const sensingXML = moveCategory('sensing') || sensing(isStage, targetId);
const operatorsXML = moveCategory('operators') || operators(isStage, targetId);
const variablesXML = moveCategory('data') || variables(isStage, targetId);
const myBlocksXML = moveCategory('procedures') || myBlocks(isStage, targetId);
const motionXML = moveCategory('motion') || motion(isInitialSetup, isStage, targetId);
const looksXML = moveCategory('looks') || looks(isInitialSetup, isStage, targetId, costumeName, backdropName);
const soundXML = moveCategory('sound') || sound(isInitialSetup, isStage, targetId, soundName);
const eventsXML = moveCategory('event') || events(isInitialSetup, isStage, targetId);
const controlXML = moveCategory('control') || control(isInitialSetup, isStage, targetId);
const sensingXML = moveCategory('sensing') || sensing(isInitialSetup, isStage, targetId);
const operatorsXML = moveCategory('operators') || operators(isInitialSetup, isStage, targetId);
const variablesXML = moveCategory('data') || variables(isInitialSetup, isStage, targetId);
const myBlocksXML = moveCategory('procedures') || myBlocks(isInitialSetup, isStage, targetId);
const everything = [
xmlOpen,
+10 -3
View File
@@ -251,6 +251,7 @@ const ProjectSaverHOC = function (WrappedComponent) {
if (id && this.props.onUpdateProjectThumbnail) {
this.storeProjectThumbnail(id);
}
this.reportTelemetryEvent('projectDidSave');
return response;
})
.catch(err => {
@@ -291,9 +292,15 @@ const ProjectSaverHOC = function (WrappedComponent) {
*/
// TODO make a telemetry HOC and move this stuff there
reportTelemetryEvent (event) {
if (this.props.onProjectTelemetryEvent) {
const metadata = collectMetadata(this.props.vm, this.props.reduxProjectTitle, this.props.locale);
this.props.onProjectTelemetryEvent(event, metadata);
try {
if (this.props.onProjectTelemetryEvent) {
const metadata = collectMetadata(this.props.vm, this.props.reduxProjectTitle, this.props.locale);
this.props.onProjectTelemetryEvent(event, metadata);
}
} catch (e) {
log.error('Telemetry error', event, e);
// This is intentionally fire/forget because a failure
// to report telemetry should not block saving
}
}
+3
View File
@@ -0,0 +1,3 @@
export default {
en: {}
};
+13 -5
View File
@@ -8,7 +8,8 @@ const {
getLogs,
loadUri,
scope,
rightClickText
rightClickText,
findByText
} = new SeleniumHelper();
const uri = path.resolve(__dirname, '../../build/index.html');
@@ -25,16 +26,12 @@ describe('Localization', () => {
});
test('Switching languages', async () => {
await driver.quit();
driver = getDriver();
await loadUri(uri);
// Add a sprite to make sure it stays when switching languages
await clickText('Costumes');
await clickXpath('//button[@aria-label="Choose a Sprite"]');
await clickText('Apple', scope.modal); // Closes modal
await clickText('Code');
await clickXpath('//*[@aria-label="language selector"]');
await clickText('Deutsch');
await new Promise(resolve => setTimeout(resolve, 1000)); // wait for blocks refresh
@@ -66,4 +63,15 @@ describe('Localization', () => {
const logs = await getLogs();
await expect(logs).toEqual([]);
});
// test for #5445
test('Loading with locale shows correct translation for string length block parameter', async () => {
await loadUri(`${uri}?locale=ja`);
await clickText('演算'); // Operators category in Japanese
await new Promise(resolve => setTimeout(resolve, 1000)); // wait for blocks to scroll
await clickText('の長さ', scope.blocksTab); // Click "length <apple>" block
await findByText('3', scope.reportedValue); // Tooltip with result
const logs = await getLogs();
await expect(logs).toEqual([]);
});
});
+52
View File
@@ -0,0 +1,52 @@
import React from 'react';
import {mountWithIntl} from '../../helpers/intl-helpers';
import MenuBar from '../../../src/components/menu-bar/menu-bar';
import {menuInitialState} from '../../../src/reducers/menus';
import {LoadingState} from '../../../src/reducers/project-state';
import configureStore from 'redux-mock-store';
import {Provider} from 'react-redux';
import VM from 'scratch-vm';
describe('MenuBar Component', () => {
const store = configureStore()({
locales: {
isRtl: false,
locale: 'en-US'
},
scratchGui: {
menus: menuInitialState,
projectState: {
loadingState: LoadingState.NOT_LOADED
},
vm: new VM()
}
});
const getComponent = function (props = {}) {
return <Provider store={store}><MenuBar {...props} /></Provider>;
};
test('menu bar with no About handler has no About button', () => {
const menuBar = mountWithIntl(getComponent());
const button = menuBar.find('AboutButton');
expect(button.exists()).toBe(false);
});
test('menu bar with an About handler has an About button', () => {
const onClickAbout = jest.fn();
const menuBar = mountWithIntl(getComponent({onClickAbout}));
const button = menuBar.find('AboutButton');
expect(button.exists()).toBe(true);
});
test('clicking on About button calls the handler', () => {
const onClickAbout = jest.fn();
const menuBar = mountWithIntl(getComponent({onClickAbout}));
const button = menuBar.find('AboutButton');
expect(onClickAbout).toHaveBeenCalledTimes(0);
button.simulate('click');
expect(onClickAbout).toHaveBeenCalledTimes(1);
});
});
+25
View File
@@ -0,0 +1,25 @@
import 'web-audio-test-api';
import SharedAudioContext from '../../../src/lib/audio/shared-audio-context';
describe('Shared Audio Context', () => {
const audioContext = new AudioContext();
test('returns empty object without user gesture', () => {
const sharedAudioContext = new SharedAudioContext();
expect(sharedAudioContext).toMatchObject({});
});
test('returns AudioContext when mousedown is triggered', () => {
const sharedAudioContext = new SharedAudioContext();
const event = new Event('mousedown');
document.dispatchEvent(event);
expect(sharedAudioContext).toMatchObject(audioContext);
});
test('returns AudioContext when touchstart is triggered', () => {
const sharedAudioContext = new SharedAudioContext();
const event = new Event('touchstart');
document.dispatchEvent(event);
expect(sharedAudioContext).toMatchObject(audioContext);
});
});
+4
View File
@@ -95,6 +95,10 @@ const base = {
plugins: []
};
if (!process.env.CI) {
base.plugins.push(new webpack.ProgressPlugin());
}
module.exports = [
// to run editor examples
defaultsDeep({}, base, {