Skip to content

Commit

Permalink
scratch.mit.edu -> scratch.org
Browse files Browse the repository at this point in the history
  • Loading branch information
GarboMuffin committed Aug 10, 2023
1 parent 6c35951 commit f38a147
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions scaffolding-api-docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ Scaffolding will automatically resize the project player to fit inside the space

### Tell it where to fetch projects and assets from

You have to manually configure scratch-storage to know where to fetch files from. If you want to load projects from scratch.mit.edu, you would do:
You have to manually configure scratch-storage to know where to fetch files from. If you want to load projects from scratch.org, you would do:

```js
const storage = scaffolding.storage;
Expand Down Expand Up @@ -231,7 +231,7 @@ This returns a Promise that resolves when the project has finished loading or re

The project is not automatically started when loadProject completes.

If you configured scratch-storage to load projects from scratch.mit.edu, you can use:
If you configured scratch-storage to load projects from scratch.org, you can use:

```js
scaffolding.storage.load(Scaffolding.Storage.AssetType.Project, "PROJECT ID HERE eg. 104")
Expand Down
2 changes: 1 addition & 1 deletion src/p4/SelectProject.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
// just incase some non-number string was stored from older versions
$projectId = extractProjectId($projectId);
const getDisplayedProjectURL = () => `https://scratch.mit.edu/projects/${$projectId}`;
const getDisplayedProjectURL = () => `https://scratch.org/projects/${$projectId}`;
const submitOnEnter = (e) => {
if (e.key === 'Enter') {
Expand Down
2 changes: 1 addition & 1 deletion src/packager/brand.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ limitations under the License.`,
SOURCE_CODE: 'https://github.com/TurboWarp/packager',
FEEDBACK_PRIMARY: {
name: 'Scratch',
link: 'https://scratch.mit.edu/users/GarboMuffin/#comments'
link: 'https://scratch.org/users/GarboMuffin/#comments'
},
FEEDBACK_SECONDARY: {
name: 'GitHub',
Expand Down
4 changes: 2 additions & 2 deletions src/packager/packager.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const SELF_LICENSE = {

const SCRATCH_LICENSE = {
title: 'Scratch',
homepage: 'https://scratch.mit.edu/',
homepage: 'https://scratch.org/',
license: `Copyright (c) 2016, Massachusetts Institute of Technology
All rights reserved.
Expand Down Expand Up @@ -91,7 +91,7 @@ const COPYRIGHT_HEADER = `/*!
Parts of this script are from the ${APP_NAME} <${WEBSITE}>, licensed as follows:
${SELF_LICENSE.license}
Parts of this script are from Scratch <https://scratch.mit.edu/>, licensed as follows:
Parts of this script are from Scratch <https://scratch.org/>, licensed as follows:
${SCRATCH_LICENSE.license}
*/\n`;

Expand Down
1 change: 1 addition & 0 deletions test/p4/url-utils.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import {extractProjectId, getTitleFromURL, isValidURL} from '../../src/p4/url-ut

test('extractProjectId', () => {
expect(extractProjectId('https://scratch.mit.edu/projects/104')).toBe('104');
expect(extractProjectId('https://scratch.org/projects/104')).toBe('104');
});

test('getTitleFromURL', () => {
Expand Down

0 comments on commit f38a147

Please sign in to comment.