Files
mixly3/boards/default_src/python_skulpt_car/index.js
2025-04-28 00:57:30 +08:00

103 lines
4.0 KiB
JavaScript

import * as Blockly from 'blockly/core';
import { Profile } from 'mixly';
import Variables from '@mixly/python/others/variables';
import Procedures from '@mixly/python/others/procedures';
import { Python } from '@mixly/python/python_generator';
import * as PythonVariablesBlocks from '@mixly/python/blocks/variables';
import * as PythonControlBlocks from '@mixly/python/blocks/control';
import * as PythonMathBlocks from '@mixly/python/blocks/math';
import * as PythonTextBlocks from '@mixly/python/blocks/text';
import * as PythonListsBlocks from '@mixly/python/blocks/lists';
import * as PythonDictsBlocks from '@mixly/python/blocks/dicts';
import * as PythonLogicBlocks from '@mixly/python/blocks/logic';
import * as PythonStorageBlocks from '@mixly/python/blocks/storage';
import * as PythonProceduresBlocks from '@mixly/python/blocks/procedures';
import * as PythonTupleBlocks from '@mixly/python/blocks/tuple';
import * as PythonSetBlocks from '@mixly/python/blocks/set';
import * as PythonHtmlBlocks from '@mixly/python/blocks/html';
import * as PythonUtilityBlocks from '@mixly/python/blocks/utility';
import * as SkulptPyDataBlocks from '@mixly/python-skulpt/blocks/data';
import * as SkulptPyInoutBlocks from '@mixly/python-skulpt/blocks/inout';
import * as SkulptPySystemBlocks from '@mixly/python-skulpt/blocks/system';
import * as SkulptPyTurtleBlocks from '@mixly/python-skulpt/blocks/turtle';
import * as GameBlocks from './blocks/game';
import * as PythonVariablesGenerators from '@mixly/python/generators/variables';
import * as PythonControlGenerators from '@mixly/python/generators/control';
import * as PythonMathGenerators from '@mixly/python/generators/math';
import * as PythonTextGenerators from '@mixly/python/generators/text';
import * as PythonListsGenerators from '@mixly/python/generators/lists';
import * as PythonDictsGenerators from '@mixly/python/generators/dicts';
import * as PythonLogicGenerators from '@mixly/python/generators/logic';
import * as PythonStorageGenerators from '@mixly/python/generators/storage';
import * as PythonProceduresGenerators from '@mixly/python/generators/procedures';
import * as PythonTupleGenerators from '@mixly/python/generators/tuple';
import * as PythonSetGenerators from '@mixly/python/generators/set';
import * as PythonHtmlGenerators from '@mixly/python/generators/html';
import * as PythonUtilityGenerators from '@mixly/python/generators/utility';
import * as SkulptPyDataGenerators from '@mixly/python-skulpt/generators/data';
import * as SkulptPyInoutGenerators from '@mixly/python-skulpt/generators/inout';
import * as SkulptPySystemGenerators from '@mixly/python-skulpt/generators/system';
import * as SkulptPyTurtleGenerators from '@mixly/python-skulpt/generators/turtle';
import * as GameGenerators from './generators/game';
import './others/loader';
import './css/color_mixpy_python_skulpt.css';
Object.assign(Blockly.Variables, Variables);
Object.assign(Blockly.Procedures, Procedures);
Blockly.Python = Python;
Blockly.generator = Python;
Profile.default = {};
Object.assign(
Blockly.Blocks,
PythonVariablesBlocks,
PythonControlBlocks,
PythonMathBlocks,
PythonTextBlocks,
PythonListsBlocks,
PythonDictsBlocks,
PythonLogicBlocks,
PythonStorageBlocks,
PythonProceduresBlocks,
PythonTupleBlocks,
PythonSetBlocks,
PythonHtmlBlocks,
PythonUtilityBlocks,
SkulptPyDataBlocks,
SkulptPyInoutBlocks,
SkulptPySystemBlocks,
SkulptPyTurtleBlocks,
GameBlocks,
);
Object.assign(
Blockly.Python.forBlock,
PythonVariablesGenerators,
PythonControlGenerators,
PythonMathGenerators,
PythonTextGenerators,
PythonListsGenerators,
PythonDictsGenerators,
PythonLogicGenerators,
PythonStorageGenerators,
PythonProceduresGenerators,
PythonTupleGenerators,
PythonSetGenerators,
PythonHtmlGenerators,
PythonUtilityGenerators,
SkulptPyDataGenerators,
SkulptPyInoutGenerators,
SkulptPySystemGenerators,
SkulptPyTurtleGenerators,
GameGenerators
);