-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: lock 패키지 변경 사항 반영 * chore: 중복된 Navbar 컴포넌트 삭제 * feat: 개설 스터디 기본 잡기 * feat: 스터디 개설 페이지 레이아웃 * fix: 찌그러짐 방지용 minWidth 추가 * feat: 스터디 개설하기 뷰 생성 * fix: 개설된 스터디로 화면 옮기기 * feat: auth 체크용 middleWare 생성 * fix: utils fetcher 함수 export 경로 변경 * feat: 스터디 생성하기 페이지 생성 * fix: router handler 삭제 * refactor: api path 상수로 수정 * feat: isAdmin 함수 추가 * fix: 코드리뷰 반영 * fix: admin여부에 따라 스터디 생성 박스 보이지 않도록 * chore: 패키지 설치 * fix: 빌드에러 고치기 * fix: isadmin 판별 로직 미들웨어에서 진행 * feat: 역할 논리 다시 * fix: 폴더명 변경 * fix: createStudy 경로 변경 * feat:wow-icons 추가 * refactor: 컴포넌트 폴더위치 변경 * chore:react-hook-form 설치 * feat: 복잡한 UI 설계 react-hook-form * feat: 스터디 수강 시작 날짜 지정 * chore: timepicker 패키지 설치 * feat: 스터디 신청 UI 완성 * fix: 쓸데없는 콘솔로그 제거 * feat: api 연결 * feat:api 호출 성공시 redirect * fix: 캐시 지워서 빌드에러 해결 * chore: 패키지 설치 * feat: 스터디 리스트 보기 뷰 * fix: api 관련 코드리뷰 반영 * fix: 코드리뷰 반영 * fix: navbar 두개인것 고치기 * feat: Header, 기본 레이아웃 세팅 * feat: Header 생성 * feat: 출석 보기 * fix: 코드리뷰 반영 * fix: 코드리뷰 반영 * fix: 코드리뷰 반영 * fix: api 추가 및 하드코딩 제거 * feat: 과제 목록 보기 api 연결 * feat: 과제 목록 생성 * feat: 스터디 커리큘럼 생성 기능 및 api 연결 * feat: 스터디 기본 정보 대시보드 * fix: 노션 링크 없을 때에 에러페이지 안뜨게끔 수정 * fix: padwithzero 추가 * fix: 노션 null 처리 진행 * fix: 중복 요소 제거 * fix: 코드리뷰 반영 및 모든 mock 데이터 제거 * fix: 필요없는 console 삭제 * fix: entity 관리하기 쉽게 분리 * feat: 스터디 상세 정보 생성 api 연결 * feat: StudyInfobox 컴포넌트 구성 완료 * feat: 스터디 상세 정보 입력 api 연결 * fix: timeType 추가 * fix: type 고치기 * fix: next-cache 쓸데없이 하는 부분 제거 * feat: 스터디 상세 정보 입력 모달창 생성 * fix: entity 분리한거 합치기 * fix: 코드리뷰 반영 * feat: 커스텀 훅으로 로직 분리 * fix: 코드리뷰 반영, 빌드에러 해결 * fix: 폴더명 수정 * fix: 빌드에러 해결 * fix: 캐시 지우고 폴더명 다시 시도 * fix: 파일명 오류 수정 * fix: 빌드 캐시 지우기 * fix: 새로운 폴더 생성 * fix: 폴더명 다시 되돌림 * fix: 폴더명 명확하게 변경 * fix: 빌드에러 해결 * fix: sessions로 API 변경, 선언적인 코드로 변경 * fix: 세션을커리큘럼으로 바꾸어요 * fix: 스터디 시간 없을 경우 예외처리 * fix: layout overscroll 처리 * fix: query사용 방법 수정 * fix: 스타일 수정 * fix: 코드리뷰 반영 --------- Co-authored-by: ghdtjgus76 <[email protected]>
- Loading branch information
1 parent
153759f
commit 6a5c088
Showing
51 changed files
with
1,030 additions
and
216 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,18 +1,22 @@ | ||
import { fetcher } from "@wow-class/utils"; | ||
import { apiPath } from "constants/apiPath"; | ||
import { tags } from "constants/tags"; | ||
import type { StudyListApiResponseDto } from "types/dtos/studyList"; | ||
import type { CreateStudyApiRequestDto } from "types/dtos/createStudy"; | ||
import type { CreateStudyDetailInfoApiRequestDto } from "types/dtos/studyDetailInfo"; | ||
|
||
export const createStudyApi = { | ||
getStudyList: async () => { | ||
const response = await fetcher.get<StudyListApiResponseDto[]>( | ||
apiPath.studyList, | ||
{ | ||
next: { tags: [tags.studyList] }, | ||
cache: "force-cache", | ||
} | ||
); | ||
postCreateStudy: async (data: CreateStudyApiRequestDto) => { | ||
const response = await fetcher.post(apiPath.createStudy, data); | ||
|
||
return response.data; | ||
return { success: response.ok }; | ||
}, | ||
postStudyDetailInfo: async ( | ||
data: CreateStudyDetailInfoApiRequestDto, | ||
studyId: number | ||
) => { | ||
const response = await fetcher.patch( | ||
`${apiPath.createStudyDetailInfo}/${studyId}`, | ||
data | ||
); | ||
return { success: response.ok }; | ||
}, | ||
}; |
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 |
---|---|---|
|
@@ -8,3 +8,6 @@ body { | |
flex-direction: row; | ||
min-height: 100vh; | ||
} | ||
::-webkit-scrollbar { | ||
display: none; | ||
} |
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
4 changes: 2 additions & 2 deletions
4
apps/admin/app/studies/[studyId]/_components/assignment/AssignmentList.tsx
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
30 changes: 30 additions & 0 deletions
30
apps/admin/app/studies/[studyId]/_components/curriculum/CurriculumList.tsx
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,30 @@ | ||
import { Space, Text } from "@wow-class/ui"; | ||
import { studyApi } from "apis/study/studyApi"; | ||
|
||
import CurriculumListItem from "./CurriculumListItem"; | ||
import EmptyCurriculumList from "./EmptyCurriculumList"; | ||
|
||
const CurriculumList = async ({ studyId }: { studyId: string }) => { | ||
const curriculumList = await studyApi.getCurriculumList( | ||
parseInt(studyId, 10) | ||
); | ||
|
||
if (curriculumList?.length === 0) { | ||
return <EmptyCurriculumList />; | ||
} | ||
|
||
return ( | ||
<section aria-label="curriculum-list"> | ||
<Text typo="h2">스터디 커리큘럼</Text> | ||
<Space height={24} /> | ||
{curriculumList?.map((curriculum) => ( | ||
<CurriculumListItem | ||
curriculum={curriculum} | ||
key={`curriculumItem-${curriculum.studyDetailId}`} | ||
/> | ||
))} | ||
</section> | ||
); | ||
}; | ||
|
||
export default CurriculumList; |
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
Oops, something went wrong.