diff --git a/components/REPLInput.tsx b/components/REPLInput.tsx index 2a753a8..ece4031 100644 --- a/components/REPLInput.tsx +++ b/components/REPLInput.tsx @@ -1,7 +1,7 @@ import type { NextPage } from "next"; -import React from "react" -import { commandCompletion } from "../lib/commands" -import styles from "../styles/REPLInput.module.css" +import React from "react"; +import { commandCompletion } from "../lib/commands"; +import styles from "../styles/REPLInput.module.css"; const REPLInput: NextPage = () => { const typed = React.createRef(); @@ -14,7 +14,7 @@ const REPLInput: NextPage = () => { setCurrentCmd(suggest); if (typed.current) typed.current.innerHTML = currentInput; if (completion.current) completion.current.innerHTML = suggest.substring(currentInput.length); - } + }; const tabComplete = (e: React.KeyboardEvent) => { if (e.key === "Tab" && currentCmd !== "") { @@ -24,12 +24,12 @@ const REPLInput: NextPage = () => { if(completion.current) completion.current.innerHTML = ""; } return false; - } + }; return
-
-} + ; +}; export default REPLInput; \ No newline at end of file diff --git a/lib/commands.ts b/lib/commands.ts index 572cca7..9032157 100644 --- a/lib/commands.ts +++ b/lib/commands.ts @@ -1,4 +1,4 @@ -const commandList = ["about", "navigate", "external", "help", "ed", "nano"] +const commandList = ["about", "navigate", "external", "help", "ed", "nano"]; export function commandCompletion(input: string): string { if (input === "") return ""; diff --git a/pages/_app.tsx b/pages/_app.tsx index d173012..490625b 100644 --- a/pages/_app.tsx +++ b/pages/_app.tsx @@ -1,8 +1,8 @@ -import type { AppProps } from 'next/app' -import "../styles/globals.css" +import type { AppProps } from "next/app"; +import "../styles/globals.css"; function MyApp({ Component, pageProps }: AppProps) { - return + return ; } -export default MyApp +export default MyApp; diff --git a/pages/api/hello.ts b/pages/api/hello.ts index f8bcc7e..941d4fa 100644 --- a/pages/api/hello.ts +++ b/pages/api/hello.ts @@ -1,5 +1,5 @@ // Next.js API route support: https://nextjs.org/docs/api-routes/introduction -import type { NextApiRequest, NextApiResponse } from 'next' +import type { NextApiRequest, NextApiResponse } from "next"; type Data = { name: string @@ -9,5 +9,5 @@ export default function handler( req: NextApiRequest, res: NextApiResponse ) { - res.status(200).json({ name: 'John Doe' }) + res.status(200).json({ name: "John Doe" }); } diff --git a/pages/index.tsx b/pages/index.tsx index 73be612..5950576 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -1,10 +1,10 @@ -import type { NextPage } from 'next' -import REPLInput from '../components/REPLInput' +import type { NextPage } from "next"; +import REPLInput from "../components/REPLInput"; const Home: NextPage = () => { return ( - ) -} + ); +}; -export default Home +export default Home;