forked from benleejr/auto-unit-test-gen-run
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
106 additions
and
163 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// components/Layout.tsx | ||
import React, { ReactNode } from 'react'; | ||
import Head from 'next/head'; | ||
|
||
interface LayoutProps { | ||
children: ReactNode; | ||
} | ||
|
||
const Layout: React.FC<LayoutProps> = ({ children }) => { | ||
return ( | ||
<> | ||
<Head> | ||
<title>Unit Test Generator and Runner</title> | ||
<link rel="icon" href="/mcneesefavicon.png" /> | ||
</Head> | ||
<div className="w-full bg-blue-500 text-white text-center py-4 mb-8"> | ||
<h1 style={{fontSize: '1.5em'}}>Automatic Unit Test Generator and Runner</h1> | ||
</div> | ||
{children} | ||
</> | ||
); | ||
}; | ||
|
||
export default Layout; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
//UploadButtonClientComponent | ||
'use client'; | ||
import React from 'react'; | ||
|
||
const UploadButtonClientComponent = ({ inputId }: { inputId: string}) => { | ||
const processFile = () => { | ||
const fileInput = document.getElementById(inputId) as HTMLInputElement; | ||
const files = fileInput.files; | ||
if (!files) return; | ||
|
||
return ( | ||
<button onClick={processFile}> | ||
Process Files | ||
</button> | ||
); | ||
}; | ||
} | ||
|
||
export default UploadButtonClientComponent; |
File renamed without changes.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// pages/_app.ts | ||
import '../components/globals.css'; | ||
import type { AppProps } from 'next/app' | ||
|
||
function MyApp({ Component, pageProps }: AppProps) { | ||
return <Component {...pageProps} /> | ||
} | ||
export default MyApp |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.