Skip to content

Commit e6f4a9c

Browse files
committed
feat(global): fe 다시 재커밋
1 parent 2a1adb5 commit e6f4a9c

File tree

25 files changed

+531
-57
lines changed

25 files changed

+531
-57
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
// 회원가입 이메일 인증 페이지

front/src/app/(auth)/login/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// 로그인 페이지
22
'use client';
33
import Form from '@/components/Form';
4-
import { http } from '@/lib/api';
4+
import { http } from '@/lib/api/client';
55
import type { LoginRequest, LoginResponse } from '@/lib/types';
66
import { useToast } from '@/components/ui/Toast';
77
import { useAuth } from '@/hooks/auth/useAuth';
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
// 회원가입 페이지
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
// 분석 결과 페이지
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
// 사용자 분석 히스토리 페이지
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
// 사용자 프로필 페이지
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
// 커뮤니티 사용자 분석 결과 상세 페이지, 댓글 기능 있어야 하는 곳

front/src/app/community/page.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
// 커뮤니티 메인 페이지

front/src/components/Header.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import Link from "next/link"
44
import { useState } from "react"
55
import { Sparkles } from "lucide-react"
6-
import { Button } from "@/components/ui/button"
6+
import { Button } from "@/components/ui/Button"
77

88
export default function Header() {
99
const [isLoggedIn, setIsLoggedIn] = useState(false)

front/src/lib/api/analysis.ts

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
// analysis 도메인 API
2+
import { http } from './client'
3+
4+
// ===== 타입 정의 =====
5+
export interface AnalysisRequest {
6+
githubUrl: string
7+
}
8+
9+
export interface HistoryResponseDto {
10+
repositoryName: string
11+
createDate: string // LocalDateTime -> string (ISO 형식)
12+
languages: string[]
13+
totalScore: number
14+
publicStatus: boolean
15+
}
16+
17+
// ===== Analysis API 함수들 =====
18+
export const analysisApi = {
19+
/**
20+
* GitHub 저장소 분석 요청
21+
* POST /api/analysis
22+
*/
23+
requestAnalysis: (githubUrl: string): Promise<void> =>
24+
http.post('/analysis', { githubUrl }),
25+
26+
/**
27+
* 사용자별 분석 히스토리 조회
28+
* GET /api/analysis/user/{memberId}
29+
*/
30+
getMemberHistory: (memberId: number): Promise<HistoryResponseDto[]> =>
31+
http.get(`/analysis/user/${memberId}`),
32+
}

0 commit comments

Comments
 (0)