Skip to content

Commit cf418c8

Browse files
authored
Merge pull request #89 from ValanSee/develop
dev to main
2 parents 876202f + 8bd73c0 commit cf418c8

36 files changed

+1138
-471
lines changed

package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"next": "15.1.11",
2929
"react": "^19.0.0",
3030
"react-chartjs-2": "^5.3.0",
31-
"react-dom": "^19.0.0",
31+
"react-dom": "^19.2.0",
3232
"react-redux": "^9.2.0",
3333
"sheet": "link:@/components/ui/sheet",
3434
"tailwind-merge": "^3.3.1"
@@ -37,8 +37,8 @@
3737
"@eslint/eslintrc": "^3",
3838
"@eslint/js": "^9.27.0",
3939
"@types/node": "^20",
40-
"@types/react": "^19",
41-
"@types/react-dom": "^19",
40+
"@types/react": "^19.2.0",
41+
"@types/react-dom": "^19.2.0",
4242
"eslint": "^9.27.0",
4343
"eslint-config-prettier": "^10.1.5",
4444
"eslint-plugin-next": "^0.0.0",
@@ -54,5 +54,6 @@
5454
"typescript": "^5",
5555
"typescript-eslint": "^8.32.1",
5656
"webpack": "^5.99.9"
57-
}
57+
},
58+
"packageManager": "pnpm@10.16.1"
5859
}

pnpm-lock.yaml

Lines changed: 357 additions & 336 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import { authApi } from '../../instance/authApi'
2+
3+
export type TrendingVoteResponse = {
4+
voteId: number
5+
title: string
6+
content: string
7+
category: string
8+
totalParticipants: number
9+
createdBy: string
10+
createdAt: string
11+
options: {
12+
optionId: number
13+
content: string
14+
vote_count: number
15+
}[]
16+
}
17+
18+
export async function fetchTrendingVotes() {
19+
const res = await authApi.get<TrendingVoteResponse>('/votes/trending')
20+
return res.data
21+
}

src/api/votes.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ export interface VoteOption {
2424
export interface BestVoteResponse {
2525
voteId: number
2626
title: string
27+
content: string | null
2728
category: VoteCategory
2829
totalParticipants: number
2930
createdBy: string
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import Loading from '@/components/_shared/loading'
2+
3+
export default function BalanseLoading() {
4+
return <Loading />
5+
}

src/app/(unauth)/entry/loading.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import Loading from '@/components/_shared/loading'
2+
3+
export default function EntryLoading() {
4+
return <Loading />
5+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import Loading from '@/components/_shared/loading'
2+
3+
export default function KakaoRedirectLoading() {
4+
return <Loading />
5+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import Loading from '@/components/_shared/loading'
2+
3+
export default function OnboardingLoading() {
4+
return <Loading />
5+
}

src/app/create/loading.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import Loading from '@/components/_shared/loading'
2+
3+
export default function CreateLoading() {
4+
return <Loading />
5+
}

src/app/main/loading.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import Loading from '@/components/_shared/loading'
2+
3+
export default function MainLoading() {
4+
return <Loading />
5+
}

0 commit comments

Comments
 (0)