mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-23 07:38:07 -05:00
Merge remote-tracking branch 'origin' into scratcher-onboarding
This commit is contained in:
commit
3ec8a7fba8
3 changed files with 61 additions and 45 deletions
100
package-lock.json
generated
100
package-lock.json
generated
|
@ -33987,22 +33987,28 @@
|
|||
},
|
||||
"dependencies": {
|
||||
"browserslist": {
|
||||
"version": "4.17.3",
|
||||
"resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.17.3.tgz",
|
||||
"integrity": "sha512-59IqHJV5VGdcJZ+GZ2hU5n4Kv3YiASzW6Xk5g9tf5a/MAzGeFwgGWU39fVzNIOVcgB3+Gp+kiQu0HEfTVU/3VQ==",
|
||||
"version": "4.17.4",
|
||||
"resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.17.4.tgz",
|
||||
"integrity": "sha512-Zg7RpbZpIJRW3am9Lyckue7PLytvVxxhJj1CaJVlCWENsGEAOlnlt8X0ZxGRPp7Bt9o8tIRM5SEXy4BCPMJjLQ==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"caniuse-lite": "^1.0.30001264",
|
||||
"electron-to-chromium": "^1.3.857",
|
||||
"caniuse-lite": "^1.0.30001265",
|
||||
"electron-to-chromium": "^1.3.867",
|
||||
"escalade": "^3.1.1",
|
||||
"node-releases": "^1.1.77",
|
||||
"picocolors": "^0.2.1"
|
||||
"node-releases": "^2.0.0",
|
||||
"picocolors": "^1.0.0"
|
||||
}
|
||||
},
|
||||
"electron-to-chromium": {
|
||||
"version": "1.3.867",
|
||||
"resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.867.tgz",
|
||||
"integrity": "sha512-WbTXOv7hsLhjJyl7jBfDkioaY++iVVZomZ4dU6TMe/SzucV6mUAs2VZn/AehBwuZMiNEQDaPuTGn22YK5o+aDw==",
|
||||
"version": "1.3.870",
|
||||
"resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.870.tgz",
|
||||
"integrity": "sha512-PiJMshfq6PL+i1V+nKLwhHbCKeD8eAz8rvO9Cwk/7cChOHJBtufmjajLyYLsSRHguRFiOCVx3XzJLeZsIAYfSA==",
|
||||
"dev": true
|
||||
},
|
||||
"picocolors": {
|
||||
"version": "1.0.0",
|
||||
"resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz",
|
||||
"integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==",
|
||||
"dev": true
|
||||
},
|
||||
"semver": {
|
||||
|
@ -49184,9 +49190,9 @@
|
|||
}
|
||||
},
|
||||
"node-releases": {
|
||||
"version": "1.1.77",
|
||||
"resolved": "https://registry.npmjs.org/node-releases/-/node-releases-1.1.77.tgz",
|
||||
"integrity": "sha512-rB1DUFUNAN4Gn9keO2K1efO35IDK7yKHCdCaIMvFO7yUYmmZYeDjnGKle26G4rwj+LKRQpjyUUvMkPglwGCYNQ==",
|
||||
"version": "2.0.0",
|
||||
"resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.0.tgz",
|
||||
"integrity": "sha512-aA87l0flFYMzCHpTM3DERFSYxc6lv/BltdbRTOMZuxZ0cwZCD3mejE5n9vLhSJCN++/eOqr77G1IO5uXxlQYWA==",
|
||||
"dev": true
|
||||
},
|
||||
"node-sass": {
|
||||
|
@ -54191,21 +54197,21 @@
|
|||
}
|
||||
},
|
||||
"scratch-blocks": {
|
||||
"version": "0.1.0-prerelease.20211013085421",
|
||||
"resolved": "https://registry.npmjs.org/scratch-blocks/-/scratch-blocks-0.1.0-prerelease.20211013085421.tgz",
|
||||
"integrity": "sha512-OOa5CgD7ZZ8zFqVUOhiSep4xtRLgswl6mZUqWPVO2BT4SbJH19xlu91xCBpbHm5ozrmA6XMzMJcmX/TO57Ye6A==",
|
||||
"version": "0.1.0-prerelease.20211019012346",
|
||||
"resolved": "https://registry.npmjs.org/scratch-blocks/-/scratch-blocks-0.1.0-prerelease.20211019012346.tgz",
|
||||
"integrity": "sha512-cOPWuMdvM5x/MW1Od+3X3kh/QytJNAIktKWF+PZ+26D58hz8BrJr/OHLd2GE+/EWBeiN+piIqHFwu3PT+s/vjQ==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"exports-loader": "0.6.3",
|
||||
"google-closure-library": "20190301.0.0",
|
||||
"imports-loader": "0.6.5",
|
||||
"scratch-l10n": "3.14.20211013031511"
|
||||
"scratch-l10n": "3.14.20211015031515"
|
||||
}
|
||||
},
|
||||
"scratch-gui": {
|
||||
"version": "0.1.0-prerelease.20211013110407",
|
||||
"resolved": "https://registry.npmjs.org/scratch-gui/-/scratch-gui-0.1.0-prerelease.20211013110407.tgz",
|
||||
"integrity": "sha512-2M8qawOyb7fzd16cjeJQUgR70BriUnArRa77TvVADRqpxDDimXs6R7/QA9IwZLNeomrCMHOYZ18gXAI4T9vnsw==",
|
||||
"version": "0.1.0-prerelease.20211020093753",
|
||||
"resolved": "https://registry.npmjs.org/scratch-gui/-/scratch-gui-0.1.0-prerelease.20211020093753.tgz",
|
||||
"integrity": "sha512-l4Nu5vvjviSj9mq9WBHvVZaIx6G/kXsU4N3aBqha9sRLDhy0Mh7krJs92yKXJDQI9oGBergE0avb/SRRQ6/luQ==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"arraybuffer-loader": "^1.0.6",
|
||||
|
@ -54256,14 +54262,14 @@
|
|||
"redux": "3.7.2",
|
||||
"redux-throttle": "0.1.1",
|
||||
"scratch-audio": "0.1.0-prerelease.20200528195344",
|
||||
"scratch-blocks": "0.1.0-prerelease.20211013085421",
|
||||
"scratch-l10n": "3.14.20211013031511",
|
||||
"scratch-paint": "0.2.0-prerelease.20211013052452",
|
||||
"scratch-blocks": "0.1.0-prerelease.20211019012346",
|
||||
"scratch-l10n": "3.14.20211015031515",
|
||||
"scratch-paint": "0.2.0-prerelease.20211015073533",
|
||||
"scratch-render": "0.1.0-prerelease.20210819221425",
|
||||
"scratch-render-fonts": "1.0.0-prerelease.20210401210003",
|
||||
"scratch-storage": "1.3.5",
|
||||
"scratch-svg-renderer": "0.2.0-prerelease.20210727023023",
|
||||
"scratch-vm": "0.2.0-prerelease.20211011184543",
|
||||
"scratch-vm": "0.2.0-prerelease.20211015091140",
|
||||
"startaudiocontext": "1.2.1",
|
||||
"style-loader": "^0.23.0",
|
||||
"text-encoding": "0.7.0",
|
||||
|
@ -54303,16 +54309,24 @@
|
|||
"dev": true
|
||||
},
|
||||
"browserslist": {
|
||||
"version": "4.17.3",
|
||||
"resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.17.3.tgz",
|
||||
"integrity": "sha512-59IqHJV5VGdcJZ+GZ2hU5n4Kv3YiASzW6Xk5g9tf5a/MAzGeFwgGWU39fVzNIOVcgB3+Gp+kiQu0HEfTVU/3VQ==",
|
||||
"version": "4.17.4",
|
||||
"resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.17.4.tgz",
|
||||
"integrity": "sha512-Zg7RpbZpIJRW3am9Lyckue7PLytvVxxhJj1CaJVlCWENsGEAOlnlt8X0ZxGRPp7Bt9o8tIRM5SEXy4BCPMJjLQ==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"caniuse-lite": "^1.0.30001264",
|
||||
"electron-to-chromium": "^1.3.857",
|
||||
"caniuse-lite": "^1.0.30001265",
|
||||
"electron-to-chromium": "^1.3.867",
|
||||
"escalade": "^3.1.1",
|
||||
"node-releases": "^1.1.77",
|
||||
"picocolors": "^0.2.1"
|
||||
"node-releases": "^2.0.0",
|
||||
"picocolors": "^1.0.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"picocolors": {
|
||||
"version": "1.0.0",
|
||||
"resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz",
|
||||
"integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==",
|
||||
"dev": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"chalk": {
|
||||
|
@ -54406,9 +54420,9 @@
|
|||
"dev": true
|
||||
},
|
||||
"electron-to-chromium": {
|
||||
"version": "1.3.867",
|
||||
"resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.867.tgz",
|
||||
"integrity": "sha512-WbTXOv7hsLhjJyl7jBfDkioaY++iVVZomZ4dU6TMe/SzucV6mUAs2VZn/AehBwuZMiNEQDaPuTGn22YK5o+aDw==",
|
||||
"version": "1.3.873",
|
||||
"resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.873.tgz",
|
||||
"integrity": "sha512-TiHlCgl2uP26Z0c67u442c0a2MZCWZNCRnPTQDPhVJ4h9G6z2zU0lApD9H0K9R5yFL5SfdaiVsVD2izOY24xBQ==",
|
||||
"dev": true
|
||||
},
|
||||
"has-flag": {
|
||||
|
@ -54671,9 +54685,9 @@
|
|||
}
|
||||
},
|
||||
"scratch-l10n": {
|
||||
"version": "3.14.20211013031511",
|
||||
"resolved": "https://registry.npmjs.org/scratch-l10n/-/scratch-l10n-3.14.20211013031511.tgz",
|
||||
"integrity": "sha512-AeAIz+u7lblZMis8xwA4kxJoRmG4UIjRwRaRaApoicGpbUjap2WFpylSy7ebIDn6CBo8TKNH6mRY9Mmgzp23Kw==",
|
||||
"version": "3.14.20211015031515",
|
||||
"resolved": "https://registry.npmjs.org/scratch-l10n/-/scratch-l10n-3.14.20211015031515.tgz",
|
||||
"integrity": "sha512-o7UUf/TAlGyhKKNq6IEEFelsZ2TNkn3QgNmciVoXjtUq6qQFkEuXNPKZ4AZqTucr/LueF+nDvzeQzZaRkrrioQ==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"@babel/cli": "^7.1.2",
|
||||
|
@ -54683,9 +54697,9 @@
|
|||
}
|
||||
},
|
||||
"scratch-paint": {
|
||||
"version": "0.2.0-prerelease.20211013052452",
|
||||
"resolved": "https://registry.npmjs.org/scratch-paint/-/scratch-paint-0.2.0-prerelease.20211013052452.tgz",
|
||||
"integrity": "sha512-pyKwXuxcxmS9WoHIoiE3CkifZVapIpUOiQmbcM5XV/BS6GqJ8CKwknUFRrO5pM5UUhGU8ksGSnJEtoI80MYqkA==",
|
||||
"version": "0.2.0-prerelease.20211015073533",
|
||||
"resolved": "https://registry.npmjs.org/scratch-paint/-/scratch-paint-0.2.0-prerelease.20211015073533.tgz",
|
||||
"integrity": "sha512-KYCxGBfT2crCKcupIpYXCugQtFP/c1v1cSndCW11w47QRkc/of2ugvd+T5isLYMfs8RySRM0j9FQZoP47GZzDA==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"@scratch/paper": "0.11.20200728195508",
|
||||
|
@ -54902,9 +54916,9 @@
|
|||
"dev": true
|
||||
},
|
||||
"scratch-vm": {
|
||||
"version": "0.2.0-prerelease.20211011184543",
|
||||
"resolved": "https://registry.npmjs.org/scratch-vm/-/scratch-vm-0.2.0-prerelease.20211011184543.tgz",
|
||||
"integrity": "sha512-4t/uIQt35HGL52U5gp9/DXALycvo1KkFmsAOyOy4hahrI6xLOGA5M27zOZDh4c9GX8EGPV51xzTqLstd/Fh3Wg==",
|
||||
"version": "0.2.0-prerelease.20211015091140",
|
||||
"resolved": "https://registry.npmjs.org/scratch-vm/-/scratch-vm-0.2.0-prerelease.20211015091140.tgz",
|
||||
"integrity": "sha512-ipWfHiHK6KTm51/YNFHQABXNTpAtetSsuJAT1WiLykS3Qjf3vD6hd1zGJTyEyLXuwseQIet1gcK8gxhlZjYcxQ==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"@vernier/godirect": "1.5.0",
|
||||
|
|
|
@ -132,8 +132,8 @@
|
|||
"redux-mock-store": "1.5.4",
|
||||
"redux-thunk": "2.0.1",
|
||||
"sass-loader": "6.0.6",
|
||||
"scratch-gui": "0.1.0-prerelease.20211013110407",
|
||||
"scratch-l10n": "3.14.20211013031511",
|
||||
"scratch-gui": "0.1.0-prerelease.20211020093753",
|
||||
"scratch-l10n": "3.14.20211015031515",
|
||||
"selenium-webdriver": "3.6.0",
|
||||
"slick-carousel": "1.6.0",
|
||||
"style-loader": "0.12.3",
|
||||
|
|
|
@ -84,6 +84,8 @@ class Navigation extends React.Component {
|
|||
}
|
||||
|
||||
handleSearchSubmit (formData) {
|
||||
if (formData.q.trim() === '') return; // don't submit empty searches
|
||||
|
||||
let targetUrl = '/search/projects';
|
||||
if (formData.q) {
|
||||
targetUrl += `?q=${encodeURIComponent(formData.q)}`;
|
||||
|
|
Loading…
Reference in a new issue