main
FutureDev Scratch editor
Corresponding source of the Scratch 3 editor/player embedded in the FutureDev Academy student portal, published to comply with the AGPL-3.0 (§13).
The editor is the unmodified @scratch/scratch-gui
standalone build (AGPL-3.0-only, © Scratch Foundation). Our changes are:
scripts/scratch/index.html: wrapper page (Spanish locale, editor or player mode, CSP).scripts/scratch/storage-shim.js: in-memorylocalStorage/cookies for the sandboxed iframe.scripts/scratch/bridge.js:postMessagebridge to load and save.sb3projects.scripts/build-scratch.sh: downloads the pinned package, rewrites the webpack public path to/scratch/and assembles the output.
Build
Needs Node.js, npm and network access:
SCRATCH_OUT=./dist scripts/build-scratch.sh
Serve dist/ at /scratch/ and embed /scratch/index.html?mode=editor (or mode=player) in a
sandboxed iframe (sandbox="allow-scripts").
License
AGPL-3.0, see LICENSE. Scratch is a project of the Scratch Foundation; the Scratch name, logo
and Scratch Cat are its trademarks and are not covered by this license.
Description
Scratch 3 editor embedded in the FutureDev student portal (AGPL-3.0 corresponding source)
43 KiB
0 Stars
1 Watchers
0 Forks
Languages
JavaScript
53.5%
Shell
35.9%
HTML
10.6%