-
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.
๐ฆ Chore: ํ๋ก์ ํธ ์ด๊ธฐ ์ธํ
eslint - type import ๊ตฌ๋ถ์ ์ํ consistent-type-imoprts ์ค์น ๋ฐ ์ ์ฉ package.json - next lint --fix ๊ตฌ๋ฌธ ์ถ๊ฐ ์ฌ์ฉํ์ง ์๋ ํ์ผ ์ญ์ - global.css - Home.moudle.css ํ๋ก์ ํธ์ ํ์ํ ํด๋ ๊ตฌ์กฐ ์์ฑ ๋ฐ sample ํ์ผ ์ถ๊ฐ _app.tsx์ react-query ์ด๊ธฐ ์ค์ eslint rule no-unused-vars ์ ๊ฑฐ์์ ์ ์ฉ์ผ๋ก ๋ณ๊ฒฝ ํ sample.ts ์์ git hook ์ด์์ฒด์ ๊ฐ ์ด์๋ก ์ธํด husky ์์ ์ฐธ์กฐ: (typicode/husky#1177)
- Loading branch information
Showing
28 changed files
with
294 additions
and
456 deletions.
There are no files selected for viewing
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
Empty file.
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,7 @@ | ||
import { type FC, type PropsWithChildren } from "react"; | ||
|
||
const Body: FC<PropsWithChildren> = ({ children }) => { | ||
return <div>{children}</div>; | ||
}; | ||
|
||
export default Body; |
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,5 @@ | ||
const Footer = () => { | ||
return <footer>footer</footer>; | ||
}; | ||
|
||
export default Footer; |
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,5 @@ | ||
const Header = () => { | ||
return <header>header</header>; | ||
}; | ||
|
||
export default Header; |
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,17 @@ | ||
import type { FC, PropsWithChildren } from "react"; | ||
|
||
import Body from "./body"; | ||
import Footer from "./footer"; | ||
import Header from "./header"; | ||
|
||
const Layout: FC<PropsWithChildren> = ({ children }) => { | ||
return ( | ||
<> | ||
<Header /> | ||
<Body>{children}</Body> | ||
<Footer /> | ||
</> | ||
); | ||
}; | ||
|
||
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,5 @@ | ||
const ContestList = () => { | ||
return <div>ํด์ปคํค/๊ณต๋ชจ์ ๋ชฉ๋ก ํ์ด์ง</div>; | ||
}; | ||
|
||
export default ContestList; |
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,5 @@ | ||
const ProjectList = () => { | ||
return <div>ํ๋ก์ ํธ ๋ชฉ๋ก ํ์ด์ง</div>; | ||
}; | ||
|
||
export default ProjectList; |
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,5 @@ | ||
const UserInfo = () => { | ||
return <div>ํ๋กํ ํ์ด์ง</div>; | ||
}; | ||
|
||
export default UserInfo; |
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,3 @@ | ||
import axios from "axios"; | ||
|
||
export const AxiosClient = axios.create({ baseURL: "http://sample.com" }); |
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,5 @@ | ||
export const getSample = () => {}; | ||
export const postSample = () => {}; | ||
export const patchSample = () => {}; | ||
export const putSample = () => {}; | ||
export const deleteSample = () => {}; |
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,3 @@ | ||
export const SAMPLE = { | ||
sampleURL: "http://localhost:3000/sample", | ||
}; |
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,7 @@ | ||
import { useState } from "react"; | ||
|
||
export const useSample = () => { | ||
const [sample, setSample] = useState("sample!"); | ||
|
||
return [sample, setSample]; | ||
}; |
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,5 @@ | ||
export interface ISample { | ||
sample: "sample"; | ||
} | ||
|
||
export type TSample = "sample"; |
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,3 @@ | ||
export const utilSample = () => { | ||
return "sample"; | ||
}; |
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,7 @@ | ||
import type { NextPage } from "next"; | ||
|
||
const Custom404: NextPage = () => { | ||
return <h1>404 - Page Not Found</h1>; | ||
}; | ||
|
||
export default Custom404; |
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 |
---|---|---|
@@ -1,7 +1,24 @@ | ||
import "styles/globals.css"; | ||
|
||
import { Global } from "@emotion/react"; | ||
import { | ||
Hydrate, | ||
QueryClient, | ||
QueryClientProvider, | ||
} from "@tanstack/react-query"; | ||
import Layout from "components/common/layout"; | ||
import type { AppProps } from "next/app"; | ||
import { useState } from "react"; | ||
import { globalStyles } from "styles/globalStyles"; | ||
|
||
export default function App({ Component, pageProps }: AppProps) { | ||
return <Component {...pageProps} />; | ||
const [queryClient] = useState(() => new QueryClient()); | ||
return ( | ||
<QueryClientProvider client={queryClient}> | ||
<Hydrate state={pageProps.dehydratedState}> | ||
<Global styles={globalStyles} /> | ||
<Layout> | ||
<Component {...pageProps} /> | ||
</Layout> | ||
</Hydrate> | ||
</QueryClientProvider> | ||
); | ||
} |
File renamed without changes.
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,5 @@ | ||
const ContestDetail = () => { | ||
return <div>ํด์ปคํค/๊ณต๋ชจ์ ์์ธ ํ์ด์ง</div>; | ||
}; | ||
|
||
export default ContestDetail; |
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,7 @@ | ||
import ContestList from "components/contest"; | ||
|
||
const ContestPage = () => { | ||
return <ContestList />; | ||
}; | ||
|
||
export default ContestPage; |
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 |
---|---|---|
@@ -1,115 +1,7 @@ | ||
/* eslint-disable react/no-unknown-property */ | ||
import { Inter } from "next/font/google"; | ||
import Head from "next/head"; | ||
import Image from "next/image"; | ||
import styles from "styles/Home.module.css"; | ||
import type { NextPage } from "next"; | ||
|
||
const inter = Inter({ subsets: ["latin"] }); | ||
const Home: NextPage = () => { | ||
return <div>๋ฉ์ธ ํ์ด์ง</div>; | ||
}; | ||
|
||
export default function Home() { | ||
return ( | ||
<> | ||
<Head> | ||
<title>Create Next App</title> | ||
<meta name="description" content="Generated by create next app" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
<link rel="icon" href="/favicon.ico" /> | ||
</Head> | ||
<main className={`${styles.main} ${inter.className}`}> | ||
<div className={styles.description} css={{ backgroundColor: "red" }}> | ||
<p> | ||
Get started by editing | ||
<code className={styles.code}>src/pages/index.tsx</code> | ||
</p> | ||
<div> | ||
<a | ||
href="https://vercel.com?utm_source=create-next-app&utm_medium=default-template&utm_campaign=create-next-app" | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
> | ||
By{" "} | ||
<Image | ||
src="/vercel.svg" | ||
alt="Vercel Logo" | ||
className={styles.vercelLogo} | ||
width={100} | ||
height={24} | ||
priority | ||
/> | ||
</a> | ||
</div> | ||
</div> | ||
|
||
<div className={styles.center}> | ||
<Image | ||
className={styles.logo} | ||
src="/next.svg" | ||
alt="Next.js Logo" | ||
width={180} | ||
height={37} | ||
priority | ||
/> | ||
</div> | ||
|
||
<div className={styles.grid}> | ||
<a | ||
href="https://nextjs.org/docs?utm_source=create-next-app&utm_medium=default-template&utm_campaign=create-next-app" | ||
className={styles.card} | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
> | ||
<h2> | ||
Docs <span>-></span> | ||
</h2> | ||
<p> | ||
Find in-depth information about Next.js features and API. | ||
</p> | ||
</a> | ||
|
||
<a | ||
href="https://nextjs.org/learn?utm_source=create-next-app&utm_medium=default-template&utm_campaign=create-next-app" | ||
className={styles.card} | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
> | ||
<h2> | ||
Learn <span>-></span> | ||
</h2> | ||
<p> | ||
Learn about Next.js in an interactive course with quizzes! | ||
</p> | ||
</a> | ||
|
||
<a | ||
href="https://vercel.com/templates?framework=next.js&utm_source=create-next-app&utm_medium=default-template&utm_campaign=create-next-app" | ||
className={styles.card} | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
> | ||
<h2> | ||
Templates <span>-></span> | ||
</h2> | ||
<p> | ||
Discover and deploy boilerplate example Next.js projects. | ||
</p> | ||
</a> | ||
|
||
<a | ||
href="https://vercel.com/new?utm_source=create-next-app&utm_medium=default-template&utm_campaign=create-next-app" | ||
className={styles.card} | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
> | ||
<h2> | ||
Deploy <span>-></span> | ||
</h2> | ||
<p> | ||
Instantly deploy your Next.js site to a shareable URL | ||
with Vercel. | ||
</p> | ||
</a> | ||
</div> | ||
</main> | ||
</> | ||
); | ||
} | ||
export default Home; |
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,5 @@ | ||
const ProjectDetail = () => { | ||
return <div>ํ๋ก์ ํธ/์คํฐ๋ ์์ธ ํ์ด์ง</div>; | ||
}; | ||
|
||
export default ProjectDetail; |
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 @@ | ||
import ProjectList from "components/project"; | ||
import type { NextPage } from "next"; | ||
|
||
const ProjectPage: NextPage = () => { | ||
return <ProjectList />; | ||
}; | ||
|
||
export default ProjectPage; |
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 @@ | ||
import UserInfo from "components/userInfo"; | ||
import type { NextPage } from "next"; | ||
|
||
const UserInfoPage: NextPage = () => { | ||
return <UserInfo />; | ||
}; | ||
|
||
export default UserInfoPage; |
Oops, something went wrong.