diff --git a/frontend/package.json b/frontend/package.json index b8ee08b..2d65bf2 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -9,6 +9,8 @@ "preview": "vite preview" }, "dependencies": { + "@ofjansen/pcre2-wasm": "^1.4.0", + "@stephen-riley/pcre": "^0.9.0", "buffer": "^6.0.3", "connectkit": "^1.1.1", "ethers": "^5.7.2", @@ -25,4 +27,4 @@ "typescript": "^4.9.4", "vite": "^3.1.8" } -} \ No newline at end of file +} diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index 7f13d38..5efa5dc 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -1,15 +1,21 @@ -import { ConnectKitButton } from "connectkit"; +// import { ConnectKitButton } from "connectkit"; import { useAccount } from "wagmi"; -import { Account } from "./components/Account"; +// import { Account } from "./components/Account"; import { EVMResults } from "./components/EVMResults"; -import React, { useState } from "react"; +import { useState } from "react"; + +import libpcre2 from '@ofjansen/pcre2-wasm'; import "./App.css"; export function App() { - const { isConnected } = useAccount(); + //const { isConnected } = useAccount(); + + const [textareaBytecode, setTextareaBytecode] = useState(""); + const [textareaAssembly, setTextareaAssembly] = useState(""); + const [textCode, setTextCode] = useState(""); const [textData, setTextData] = useState(""); const [textValue, setTextValue] = useState(""); @@ -23,25 +29,23 @@ export function App() { setValue(textValue); }; - // const renderMain = () => { - // return ( - //
- //

bytecode

- //