feat(board): 更新python_pyodide下 Teachable Machine
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import * as Blockly from 'blockly/core';
|
||||
import * as path from 'path';
|
||||
import $ from 'jquery';
|
||||
import { createApp } from 'vue';
|
||||
import mixlySprite from './pixi-sprite';
|
||||
import {
|
||||
Workspace,
|
||||
@@ -14,8 +15,11 @@ import { KernelLoader } from '@basthon/kernel-loader';
|
||||
import StatusBarImage from './statusbar-image';
|
||||
import StatusBarFileSystem from './statusbar-filesystem';
|
||||
import StatusBarTool from './statusbar-tool';
|
||||
import TeachableMachineApp from './teachableMachine/App.vue';
|
||||
import LOADER_TEMPLATE from '../templates/html/loader.html';
|
||||
|
||||
import 'element-plus/dist/index.css';
|
||||
|
||||
|
||||
export default class PythonShell {
|
||||
static {
|
||||
@@ -57,6 +61,8 @@ export default class PythonShell {
|
||||
this.statusBarImage = StatusBarImage.init();
|
||||
this.statusBarFileSystem = StatusBarFileSystem.init();
|
||||
this.statusBarTool = StatusBarTool.init();
|
||||
const teachableMachineApp = createApp(TeachableMachineApp);
|
||||
teachableMachineApp.mount(this.statusBarTool.getContent()[0]);
|
||||
this.pythonShell = new PythonShell();
|
||||
this.pyodide = window.pyodide;
|
||||
this.interruptBuffer = new Uint8Array(new ArrayBuffer(1));
|
||||
|
||||
Reference in New Issue
Block a user