Skip to content

Commit

Permalink
remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
mostthingsweb committed May 13, 2024
1 parent 185237d commit 27a5f37
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 264 deletions.
50 changes: 5 additions & 45 deletions src/components/App.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
import React, {useEffect, useState} from "react";

import React from "react";

import {AppShell, Burger, createTheme, MantineColorsTuple, MantineProvider} from '@mantine/core';
import FetchWithProgress from "./FetchWithProgress";
import {usePyodide} from "../hooks/usePyodide";
import {useDisclosure} from "@mantine/hooks";
import {useImmer} from "use-immer";
import {PlaygroundTerminal} from "./PlaygroundTerminal";

const myColor: MantineColorsTuple = [
Expand All @@ -27,52 +23,17 @@ const theme = createTheme({
}
});

const Inner: React.FC = () => {
const [data, setData] = useState<ArrayBuffer | null>(null);

const {pyodide, status: pyodideStatus } = usePyodide();

const [ran, setRan] = useState<boolean>(false);

const [output, setOutput] = useImmer<string[]>([]);

useEffect(() => {
const go = async () => {
if (data && !ran) {

console.warn("LOADING SQLITE");


} else {
console.warn(`data = ${!!data}, p = ${!!pyodide}`);
}
}

go();
}, [data, pyodide, ran, setRan]);

return <>
{/*{pyodide && data && ran && <TerminalComponent pyodide={pyodide}/>}*/}

<FetchWithProgress url={"assets/bitbake-2.8.0.zip"} data={data} setData={setData}/>
<p>pyodide: {pyodideStatus}</p>
<ul>
{output.map(e => <li>{e}</li>)}
</ul>
</>;
}

export const App: React.FC = () => {
const [opened, { toggle }] = useDisclosure();
const [opened, {toggle}] = useDisclosure();

return (
<MantineProvider theme={theme}>
<AppShell
header={{ height: 60 }}
header={{height: 60}}
navbar={{
width: 300,
breakpoint: 'sm',
collapsed: { mobile: !opened },
collapsed: {mobile: !opened},
}}
padding="md"
>
Expand All @@ -89,8 +50,7 @@ export const App: React.FC = () => {
<AppShell.Navbar p="md">Navbar</AppShell.Navbar>

<AppShell.Main>
<PlaygroundTerminal />

<PlaygroundTerminal/>
</AppShell.Main>
</AppShell>

Expand Down
48 changes: 0 additions & 48 deletions src/components/FetchWithProgress.tsx

This file was deleted.

171 changes: 0 additions & 171 deletions src/components/TerminalComponent.tsx

This file was deleted.

0 comments on commit 27a5f37

Please sign in to comment.