-
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.
* 세미나 편집 page들 추가 * footer text 크기 수정 * BasicTextInput 추가 * Fieldset에 required prop 추가 * 세미나 편집 UI 구현 * SeminarEditor 관련 타입 정리 * 내비바 디자인 리뷰 반영 * 세미나 글 작성 및 수정 페이지 틀 작성 * SeminarEditor mock 데이터 작성 * 일정 제외 세미나 편집 로직 구현 * SeminarEditor 리팩토링 * DatePicker 추가 * StaticDateTimePicker 추가 * editor 폴더 정리 * ActionButton관련 타입 이동 * 리팩토링 * ScheduleFieldset 토글 반영 * 슬라이드 쇼 관련 안내 문구 추가 * 리뷰 반영
- Loading branch information
Showing
22 changed files
with
1,752 additions
and
303 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
'use client'; | ||
|
||
import useSWR from 'swr'; | ||
|
||
import SeminarEditor from '@/components/editor/SeminarEditor'; | ||
import { | ||
SeminarEditorContent, | ||
seminarEditorPlaceholder, | ||
} from '@/components/editor/SeminarEditorProps'; | ||
import PageLayout from '@/components/layout/pageLayout/PageLayout'; | ||
|
||
export default function SeminarEditPage() { | ||
// const { data: currentSeminar } = useSWR('/'); | ||
|
||
const handleComplete = async (content: SeminarEditorContent) => { | ||
console.log(content); | ||
// throw new Error(); | ||
}; | ||
|
||
const handleDelete = async () => { | ||
// | ||
}; | ||
|
||
return ( | ||
<PageLayout title={'세미나 쓰기'} titleType="small" titleMargin="mb-3"> | ||
<SeminarEditor | ||
actions={{ | ||
type: 'EDIT', | ||
onComplete: handleComplete, | ||
onDelete: handleDelete, | ||
}} | ||
initialContent={mockSeminarContent} | ||
/> | ||
</PageLayout> | ||
); | ||
} | ||
|
||
const mockSeminarContent: SeminarEditorContent = { | ||
title: '기존 글', | ||
description: '<b>기존 글 내용</b>', | ||
location: '위치', | ||
schedule: { | ||
allDay: true, | ||
showEndDate: true, | ||
startDate: new Date(0), | ||
endDate: new Date(1000000000), | ||
}, | ||
host: '주최자 이름', | ||
speaker: { | ||
name: '연설자 이름', | ||
nameURL: '연설자 URL', | ||
title: '직함', | ||
organization: '소속', | ||
organizationURL: '소속 URL', | ||
description: '연사 소개개개개개', | ||
}, | ||
attachments: [], | ||
isPublic: false, | ||
}; |
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,23 @@ | ||
'use client'; | ||
|
||
import SeminarEditor from '@/components/editor/SeminarEditor'; | ||
import { SeminarEditorContent } from '@/components/editor/SeminarEditorProps'; | ||
import PageLayout from '@/components/layout/pageLayout/PageLayout'; | ||
|
||
export default function SeminarCreatePage() { | ||
const handleComplete = async (content: SeminarEditorContent) => { | ||
console.log(content); | ||
// throw new Error(); | ||
}; | ||
|
||
return ( | ||
<PageLayout title={'세미나 쓰기'} titleType="small" titleMargin="mb-3"> | ||
<SeminarEditor | ||
actions={{ | ||
type: 'CREATE', | ||
onComplete: handleComplete, | ||
}} | ||
/> | ||
</PageLayout> | ||
); | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.