mirror of
https://github.com/pyscript/pyscript.git
synced 2022-05-01 19:47:48 +03:00
23 lines
701 B
TypeScript
23 lines
701 B
TypeScript
import App from "./App.svelte";
|
|
|
|
import {EditorState, EditorView , basicSetup} from "@codemirror/basic-setup"
|
|
import { python } from "@codemirror/lang-python"
|
|
import { keymap } from "@codemirror/view";
|
|
import { defaultKeymap } from "@codemirror/commands";
|
|
import { oneDarkTheme } from "@codemirror/theme-one-dark";
|
|
import { PyScript } from "./components/pyscript";
|
|
import { PyRepl } from "./components/pyrepl";
|
|
import { PyEnv } from "./components/pyenv"
|
|
|
|
|
|
let xPyScript = customElements.define('py-script', PyScript);
|
|
let xPyRepl = customElements.define('py-repl', PyRepl);
|
|
let xPyEnv = customElements.define('py-env', PyEnv);
|
|
|
|
|
|
const app = new App({
|
|
target: document.body,
|
|
});
|
|
|
|
export default app;
|