From 4ff4157f76029f9c9e09f93df1bdb954382c671e Mon Sep 17 00:00:00 2001 From: Agustin Nieto Date: Tue, 18 Jul 2023 21:30:28 -0500 Subject: [PATCH] Remove py-script in favor of react-py --- package.json | 1 + src/component/py-script/config.tsx | 15 --------------- src/component/py-script/index.tsx | 5 ----- src/component/py-script/repl.tsx | 17 ----------------- src/component/py-script/runtime.tsx | 18 ------------------ src/component/py-script/script.tsx | 18 ------------------ src/component/py-script/terminal.tsx | 6 ------ yarn.lock | 12 ++++++++++++ 8 files changed, 13 insertions(+), 79 deletions(-) delete mode 100644 src/component/py-script/config.tsx delete mode 100644 src/component/py-script/index.tsx delete mode 100644 src/component/py-script/repl.tsx delete mode 100644 src/component/py-script/runtime.tsx delete mode 100644 src/component/py-script/script.tsx delete mode 100644 src/component/py-script/terminal.tsx diff --git a/package.json b/package.json index 4bb3850..f50c136 100644 --- a/package.json +++ b/package.json @@ -18,6 +18,7 @@ "react": "18.2.0", "react-dom": "18.2.0", "react-hook-form": "^7.45.2", + "react-py": "^1.9.1", "typescript": "5.0.4" }, "devDependencies": { diff --git a/src/component/py-script/config.tsx b/src/component/py-script/config.tsx deleted file mode 100644 index be38149..0000000 --- a/src/component/py-script/config.tsx +++ /dev/null @@ -1,15 +0,0 @@ -interface Props { - config: object -} - -export const PyConfig = ({config}: Props) => { - return <> - {/* @ts-ignore */} - - {JSON.stringify(config)} - {/* @ts-ignore */} - - -} - -export default PyConfig; diff --git a/src/component/py-script/index.tsx b/src/component/py-script/index.tsx deleted file mode 100644 index afca14e..0000000 --- a/src/component/py-script/index.tsx +++ /dev/null @@ -1,5 +0,0 @@ -export {PyScriptRuntime} from "./runtime"; -export {PyScript} from "./script"; -export {PyRepl} from "./repl"; -export {PyConfig} from "./config" -export {PyTerminal} from "./terminal" diff --git a/src/component/py-script/repl.tsx b/src/component/py-script/repl.tsx deleted file mode 100644 index ba31d06..0000000 --- a/src/component/py-script/repl.tsx +++ /dev/null @@ -1,17 +0,0 @@ -interface Props { - autoGenerate?: boolean, - output?: string, - children: any, -} - -export const PyRepl = ({autoGenerate, output, children}: Props) => { - return <> - {/* @ts-ignore */} - - {children} - {/* @ts-ignore */} - - -} - -export default PyRepl; diff --git a/src/component/py-script/runtime.tsx b/src/component/py-script/runtime.tsx deleted file mode 100644 index 5acdd26..0000000 --- a/src/component/py-script/runtime.tsx +++ /dev/null @@ -1,18 +0,0 @@ -import Head from "next/head"; -import Script from "next/script"; - -interface Props { - children: any -} - -export const PyScriptRuntime = ({children}: Props) => { - return <> - - - -