-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #255 from purplenib/React-김영주-sprint8
[김영주] Sprint8
- Loading branch information
Showing
57 changed files
with
1,435 additions
and
1,526 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
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,6 @@ | ||
module.exports = { | ||
plugins: { | ||
tailwindcss: {}, | ||
autoprefixer: {}, | ||
}, | ||
} |
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,29 @@ | ||
import React from "react"; | ||
import { BrowserRouter, Route, Routes } from "react-router-dom"; | ||
import Header from "./components/Layout/Header"; | ||
import Home from "./pages/Home"; | ||
import SignIn from "./pages/SignIn"; | ||
import Items from "./pages/Items"; | ||
import ItemInfo from "./pages/ItemInfo"; | ||
import AddItem from "./pages/AddItem"; | ||
import Community from "./pages/Community"; | ||
import NotFound from "./pages/NotFound"; | ||
|
||
const Router: React.FC = () => { | ||
return ( | ||
<BrowserRouter> | ||
<Header /> | ||
<Routes> | ||
<Route path="/" element={<Home />} /> | ||
<Route path="/SignIn" element={<SignIn />} /> | ||
<Route path="/Items" element={<Items />} /> | ||
<Route path="/Items/:productId" element={<ItemInfo />} /> | ||
<Route path="/AddItem" element={<AddItem />} /> | ||
<Route path="/Community" element={<Community />} /> | ||
<Route path="*" element={<NotFound />} /> | ||
</Routes> | ||
</BrowserRouter> | ||
); | ||
}; | ||
|
||
export default Router; |
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,20 @@ | ||
export interface Writer { | ||
id: number; | ||
nickname: string; | ||
} | ||
|
||
export interface Article { | ||
id: number; | ||
images?: string; | ||
count: string; | ||
title: string; | ||
likeCount: number; | ||
createdAt: string; | ||
updatedAt: string; | ||
writer: Writer; | ||
} | ||
|
||
export interface ArticlesResponse { | ||
list: Article[]; | ||
totalCount: number; | ||
} |
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 @@ | ||
export interface CommentWriter { | ||
image: string; | ||
nickname: string; | ||
id: number; | ||
} | ||
|
||
export interface CommentRequest { | ||
content: string; | ||
} | ||
|
||
export interface CommentResponse { | ||
writer: CommentWriter; | ||
updatedAt: string; | ||
createdAt: string; | ||
content: string; | ||
id: number; | ||
} |
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,16 @@ | ||
export interface Product { | ||
id: number; | ||
name: string; | ||
price: number; | ||
description?: string; | ||
createdAt?: string; | ||
favoriteCount?: number; | ||
ownerId?: number; | ||
images?: string[]; | ||
tags?: string[]; | ||
} | ||
|
||
export interface ProductResponse { | ||
list: Product[]; | ||
totalCount: number; | ||
} |
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 @@ | ||
export interface User { | ||
id: number; | ||
nickname: string; | ||
createdAt: string; | ||
updatedAt: string; | ||
images?: string | null; | ||
} |
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
Oops, something went wrong.