Initial commit of 001code-html Scratch frontend project.

Includes scratch-gui, scratch-vm, scratch-blocks, scratch-render, scratch-l10n, and deployment config.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-06-16 15:37:45 +08:00
commit 6e0a1fbcbb
11350 changed files with 965674 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
const test = require('tap').test;
const VirtualMachine = require('../../src/index');
test('interface', t => {
const vm = new VirtualMachine();
t.type(vm, 'object');
t.type(vm.start, 'function');
t.type(vm.greenFlag, 'function');
t.type(vm.setTurboMode, 'function');
t.type(vm.setCompatibilityMode, 'function');
t.type(vm.stopAll, 'function');
t.type(vm.clear, 'function');
t.type(vm.getPlaygroundData, 'function');
t.type(vm.postIOData, 'function');
t.type(vm.loadProject, 'function');
t.type(vm.addSprite, 'function');
t.type(vm.addCostume, 'function');
t.type(vm.addBackdrop, 'function');
t.type(vm.addSound, 'function');
t.type(vm.deleteCostume, 'function');
t.type(vm.deleteSound, 'function');
t.type(vm.renameSprite, 'function');
t.type(vm.deleteSprite, 'function');
t.type(vm.attachRenderer, 'function');
t.type(vm.blockListener, 'function');
t.type(vm.flyoutBlockListener, 'function');
t.type(vm.setEditingTarget, 'function');
t.type(vm.emitTargetsUpdate, 'function');
t.type(vm.emitWorkspaceUpdate, 'function');
t.type(vm.postSpriteInfo, 'function');
t.end();
});