From a5c71f437975296c617e6096246d718ac19fae26 Mon Sep 17 00:00:00 2001 From: bunsenstraat Date: Fri, 2 Jun 2023 13:45:26 +0200 Subject: [PATCH] cleanup --- apps/1test/src/remix/ui/remix-ui-xterm.tsx | 4 ---- apps/1test/src/remix/ui/remix-ui-xterminals.tsx | 7 ------- 2 files changed, 11 deletions(-) diff --git a/apps/1test/src/remix/ui/remix-ui-xterm.tsx b/apps/1test/src/remix/ui/remix-ui-xterm.tsx index 8003f790b2..010ab39ddb 100644 --- a/apps/1test/src/remix/ui/remix-ui-xterm.tsx +++ b/apps/1test/src/remix/ui/remix-ui-xterm.tsx @@ -16,10 +16,6 @@ const RemixUiXterm = (props: RemixUiXtermProps) => { const { plugin, pid, send, data, timeStamp } = props const xtermRef = React.useRef(null) - useEffect(() => { - console.log('remix-ui-xterm', pid) - }, [timeStamp]) - useEffect(() => { console.log('remix-ui-xterm ref', xtermRef.current) props.setTerminalRef(pid, xtermRef.current) diff --git a/apps/1test/src/remix/ui/remix-ui-xterminals.tsx b/apps/1test/src/remix/ui/remix-ui-xterminals.tsx index a2406bebf0..6b7d30149f 100644 --- a/apps/1test/src/remix/ui/remix-ui-xterminals.tsx +++ b/apps/1test/src/remix/ui/remix-ui-xterminals.tsx @@ -19,17 +19,12 @@ export const RemixUiXterminals = (props: RemixUiXterminalsProps) => { useEffect(() => { plugin.on('xterm', 'loaded', async () => { - console.log('xterms loaded') - }) plugin.on('xterm', 'data', async (data: string, pid: number) => { - console.log('xterm data', data, pid) - writeToTerminal(data, pid) }) plugin.on('xterm', 'close', async (pid: number) => { - console.log('xterm close', pid) setTerminals(prevState => { return prevState.filter(xtermState => xtermState.pid !== pid) }) @@ -52,13 +47,11 @@ export const RemixUiXterminals = (props: RemixUiXterminalsProps) => { }, [terminals]) const send = (data: string, pid: number) => { - console.log('send', data) plugin.call('xterm', 'keystroke', data, pid) } const createTerminal = async () => { const pid = await plugin.call('xterm', 'createTerminal') - console.log('pid', pid) setTerminals(prevState => { return [...prevState, {