初始化提交
This commit is contained in:
140
boards/default_src/python_mixpy/index.js
Normal file
140
boards/default_src/python_mixpy/index.js
Normal file
@@ -0,0 +1,140 @@
|
||||
import * as Blockly from 'blockly/core';
|
||||
import { Profile } from 'mixly';
|
||||
|
||||
import {
|
||||
PythonVariablesBlocks,
|
||||
PythonControlBlocks,
|
||||
PythonMathBlocks,
|
||||
PythonTextBlocks,
|
||||
PythonListsBlocks,
|
||||
PythonDictsBlocks,
|
||||
PythonLogicBlocks,
|
||||
PythonStorageBlocks,
|
||||
PythonProceduresBlocks,
|
||||
PythonTupleBlocks,
|
||||
PythonSetBlocks,
|
||||
PythonHtmlBlocks,
|
||||
PythonUtilityBlocks,
|
||||
PythonVariablesGenerators,
|
||||
PythonControlGenerators,
|
||||
PythonMathGenerators,
|
||||
PythonTextGenerators,
|
||||
PythonListsGenerators,
|
||||
PythonDictsGenerators,
|
||||
PythonLogicGenerators,
|
||||
PythonStorageGenerators,
|
||||
PythonProceduresGenerators,
|
||||
PythonTupleGenerators,
|
||||
PythonSetGenerators,
|
||||
PythonHtmlGenerators,
|
||||
PythonUtilityGenerators,
|
||||
Procedures,
|
||||
Variables,
|
||||
Python
|
||||
} from '@mixly/python';
|
||||
|
||||
import {
|
||||
PythonMixpyAIBlocks,
|
||||
PythonMixpyAlgorithmBlocks,
|
||||
PythonMixpyCommunicateBlocks,
|
||||
PythonMixpyCVBlocks,
|
||||
PythonMixpyDataBlocks,
|
||||
PythonMixpyDatastructureBlocks,
|
||||
PythonMixpyFactoryBlocks,
|
||||
PythonMixpyHardwareBlocks,
|
||||
PythonMixpyInoutBlocks,
|
||||
PythonMixpyIOTBlocks,
|
||||
PythonMixpyPinsBlocks,
|
||||
PythonMixpySerialBlocks,
|
||||
PythonMixpySKLearnBlocks,
|
||||
PythonMixpySystemBlocks,
|
||||
PythonMixpyTurtleBlocks,
|
||||
PythonMixpyAIGenerators,
|
||||
PythonMixpyAlgorithmGenerators,
|
||||
PythonMixpyCommunicateGenerators,
|
||||
PythonMixpyCVGenerators,
|
||||
PythonMixpyDataGenerators,
|
||||
PythonMixpyDatastructureGenerators,
|
||||
PythonMixpyFactoryGenerators,
|
||||
PythonMixpyHardwareGenerators,
|
||||
PythonMixpyInoutGenerators,
|
||||
PythonMixpyIOTGenerators,
|
||||
PythonMixpyPinsGenerators,
|
||||
PythonMixpySerialGenerators,
|
||||
PythonMixpySKLearnGenerators,
|
||||
PythonMixpySystemGenerators,
|
||||
PythonMixpyTurtleGenerators
|
||||
} from './';
|
||||
|
||||
import './css/color_mixpy_python_advance.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,
|
||||
PythonMixpyAIBlocks,
|
||||
PythonMixpyAlgorithmBlocks,
|
||||
PythonMixpyCommunicateBlocks,
|
||||
PythonMixpyCVBlocks,
|
||||
PythonMixpyDataBlocks,
|
||||
PythonMixpyDatastructureBlocks,
|
||||
PythonMixpyFactoryBlocks,
|
||||
PythonMixpyHardwareBlocks,
|
||||
PythonMixpyInoutBlocks,
|
||||
PythonMixpyIOTBlocks,
|
||||
PythonMixpyPinsBlocks,
|
||||
PythonMixpySerialBlocks,
|
||||
PythonMixpySKLearnBlocks,
|
||||
PythonMixpySystemBlocks,
|
||||
PythonMixpyTurtleBlocks
|
||||
);
|
||||
|
||||
Object.assign(
|
||||
Blockly.Python.forBlock,
|
||||
PythonVariablesGenerators,
|
||||
PythonControlGenerators,
|
||||
PythonMathGenerators,
|
||||
PythonTextGenerators,
|
||||
PythonListsGenerators,
|
||||
PythonDictsGenerators,
|
||||
PythonLogicGenerators,
|
||||
PythonStorageGenerators,
|
||||
PythonProceduresGenerators,
|
||||
PythonTupleGenerators,
|
||||
PythonSetGenerators,
|
||||
PythonHtmlGenerators,
|
||||
PythonUtilityGenerators,
|
||||
PythonMixpyAIGenerators,
|
||||
PythonMixpyAlgorithmGenerators,
|
||||
PythonMixpyCommunicateGenerators,
|
||||
PythonMixpyCVGenerators,
|
||||
PythonMixpyDataGenerators,
|
||||
PythonMixpyDatastructureGenerators,
|
||||
PythonMixpyFactoryGenerators,
|
||||
PythonMixpyHardwareGenerators,
|
||||
PythonMixpyInoutGenerators,
|
||||
PythonMixpyIOTGenerators,
|
||||
PythonMixpyPinsGenerators,
|
||||
PythonMixpySerialGenerators,
|
||||
PythonMixpySKLearnGenerators,
|
||||
PythonMixpySystemGenerators,
|
||||
PythonMixpyTurtleGenerators
|
||||
);
|
||||
Reference in New Issue
Block a user