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 #46 from Team-INSERT/api/post
게시판 API 디테일 연동
- Loading branch information
Showing
62 changed files
with
534 additions
and
195 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,12 @@ | ||
/** @type {import('next').NextConfig} */ | ||
const nextConfig = { | ||
images: { | ||
domains: ["bssm.kro.kr"], | ||
}, | ||
// images: { | ||
// domains: [ | ||
// process.env.NEXT_PUBLIC_DOMAIN, | ||
// process.env.NEXT_PUBLIC_TEST_DOMAIN, | ||
// process.env.NEXT_PUBLIC_AUTH_DOMAIN, | ||
// ], | ||
// }, | ||
}; | ||
|
||
module.exports = nextConfig; |
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 { Cookies } from "react-cookie"; | ||
|
||
const cookies = new Cookies(); | ||
|
||
export default class Cookie { | ||
static getItem(key: string) { | ||
return typeof window !== "undefined" ? cookies.get(key) : null; | ||
} | ||
|
||
static setItem(key: string, value: string) { | ||
if (typeof window === "undefined") return; | ||
cookies.set(key, value); | ||
} | ||
|
||
static delItem(key: string) { | ||
if (typeof window === "undefined") return; | ||
cookies.remove(key); | ||
} | ||
} |
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
const FORUM = { | ||
FREE: { | ||
NAME: "자유", | ||
TYPE: "free", | ||
TYPE: "board", | ||
}, | ||
STUDENT: { | ||
NAME: "학생", | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
const STORAGE_KEY = { | ||
POST_LIMIT: "postLimit", | ||
THEME: "theme", | ||
} as const; | ||
|
||
export default STORAGE_KEY; |
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,2 @@ | ||
export { default as post } from "./post"; | ||
export { default as postList } from "./postList"; |
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,18 @@ | ||
import { IPost } from "@/interfaces"; | ||
|
||
const post: IPost = { | ||
id: 0, | ||
user: { | ||
code: 0, | ||
nickname: "", | ||
}, | ||
category: "all", | ||
content: "", | ||
title: "", | ||
createdAt: "", | ||
view: 0, | ||
totalComments: 0, | ||
totalLikes: 0, | ||
}; | ||
|
||
export default post; |
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 { PostListType } from "@/types"; | ||
|
||
const postList: PostListType = [ | ||
{ | ||
id: 0, | ||
user: { | ||
code: 0, | ||
nickname: "", | ||
}, | ||
category: "all", | ||
title: "", | ||
createdAt: "", | ||
view: 0, | ||
totalComments: 0, | ||
totalLikes: 0, | ||
}, | ||
]; | ||
|
||
export default postList; |
Oops, something went wrong.