generated from Team-INSERT/Repository-generator-Frontend
-
Notifications
You must be signed in to change notification settings - Fork 2
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 #66 from Team-INSERT/feat/post/crud
게시판 도메인 CRUD 작업 완료
- Loading branch information
Showing
88 changed files
with
6,283 additions
and
3,129 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
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
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 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,15 @@ | ||
"use client"; | ||
|
||
import UpdatePage from "@/page/forum-edit"; | ||
|
||
interface IPostUpdateAppPageParams { | ||
params: { | ||
id: number; | ||
}; | ||
} | ||
|
||
const Update = ({ params }: IPostUpdateAppPageParams) => { | ||
return <UpdatePage {...params} />; | ||
}; | ||
|
||
export default Update; |
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
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 @@ | ||
import { POST } from "@/constants"; | ||
import { IInputPost } from "@/interfaces"; | ||
|
||
const emptyInputPost: IInputPost = { | ||
id: "", | ||
title: "", | ||
category: POST.COMMON, | ||
content: "", | ||
prUrl: "", | ||
isFinished: false, | ||
lostThingImage: "", | ||
place: "", | ||
keepingPlace: "", | ||
startTime: "", | ||
endTime: "", | ||
field: "", | ||
}; | ||
|
||
export default emptyInputPost; |
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
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,40 @@ | ||
import { color, flex } from "@/styles"; | ||
import React from "react"; | ||
import styled from "styled-components"; | ||
|
||
const UploadIcon = ({ | ||
...props | ||
}: React.ButtonHTMLAttributes<HTMLButtonElement>) => { | ||
return ( | ||
<StyledButton {...props}> | ||
<svg | ||
width="12" | ||
height="12" | ||
viewBox="0 0 19 21" | ||
fill="none" | ||
xmlns="http://www.w3.org/2000/svg" | ||
> | ||
<path | ||
d="M5.70691 7.20337V9.20337H2.70691V18.2034H16.7069V9.20337H13.7069V7.20337H16.7069C17.2373 7.20337 17.746 7.41409 18.1211 7.78916C18.4962 8.16423 18.7069 8.67294 18.7069 9.20337V18.2034C18.7069 18.7338 18.4962 19.2425 18.1211 19.6176C17.746 19.9927 17.2373 20.2034 16.7069 20.2034H2.70691C2.17648 20.2034 1.66777 19.9927 1.2927 19.6176C0.917623 19.2425 0.706909 18.7338 0.706909 18.2034V9.20337C0.706909 8.67294 0.917623 8.16423 1.2927 7.78916C1.66777 7.41409 2.17648 7.20337 2.70691 7.20337H5.70691ZM10.5909 0.672374L13.9499 4.03037C14.1375 4.21801 14.243 4.47251 14.243 4.73787C14.243 5.00324 14.1375 5.25773 13.9499 5.44537C13.7623 5.63301 13.5078 5.73843 13.2424 5.73843C12.977 5.73843 12.7225 5.63301 12.5349 5.44537L10.7069 3.61637V13.2034C10.7069 13.4686 10.6016 13.7229 10.414 13.9105C10.2265 14.098 9.97213 14.2034 9.70691 14.2034C9.44169 14.2034 9.18734 14.098 8.9998 13.9105C8.81227 13.7229 8.70691 13.4686 8.70691 13.2034V3.61637L6.87891 5.44537C6.786 5.53828 6.6757 5.61198 6.55431 5.66227C6.43291 5.71255 6.3028 5.73843 6.17141 5.73843C6.04001 5.73843 5.90991 5.71255 5.78851 5.66227C5.66712 5.61198 5.55682 5.53828 5.46391 5.44537C5.371 5.35246 5.2973 5.24216 5.24702 5.12077C5.19673 4.99938 5.17085 4.86927 5.17085 4.73787C5.17085 4.60648 5.19673 4.47637 5.24702 4.35498C5.2973 4.23358 5.371 4.12328 5.46391 4.03037L8.82391 0.672374C9.0583 0.438188 9.37608 0.306641 9.70741 0.306641C10.0387 0.306641 10.3565 0.438188 10.5909 0.672374Z" | ||
fill="black" | ||
/> | ||
</svg> | ||
</StyledButton> | ||
); | ||
}; | ||
|
||
const StyledButton = styled.button` | ||
padding: 4px; | ||
${flex.CENTER}; | ||
&:hover { | ||
background-color: ${color.gray}; | ||
svg { | ||
path { | ||
fill: #0066cc; | ||
} | ||
} | ||
} | ||
`; | ||
|
||
export default UploadIcon; |
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.