Skip to content

Commit

Permalink
FE-54๐Ÿ”€์ƒ์„ธํŽ˜์ด์ง€ url์ˆ˜์ • (#132)
Browse files Browse the repository at this point in the history
* FE-31 ์ƒ์„ธํŽ˜์ด์ง€ UI ์ œ์ž‘ (#12)

* FE-31๐Ÿ’„์ƒ์„ธํŽ˜์ด์ง€ ๊ธฐ๋ณธ UI ์ œ์ž‘

* FE-31โ™ป๏ธ textareaํƒœ๊ทธ Textarea์ปดํฌ๋„ŒํŠธ๋กœ ๋ณ€๊ฒฝ

* FE-31๐Ÿ’„ ๋ฐ˜์‘ํ˜• ๋””์ž์ธ ์ถ”๊ฐ€

---------

Co-authored-by: Woojiseok <[email protected]>

* FE-43 โœจ ์ƒ์„ธํŽ˜์ด์ง€ ์—ํ”ผ๊ทธ๋žจ ์กฐํšŒ  (#18)

* FE-43โœจ ์ƒ์„ธํŽ˜์ด์ง€ Epigram API์—ฐ๋™

* FE-43โšก ๏ธaxios ์—๋Ÿฌ ํ•ธ๋“ค๋ง ์ถ”๊ฐ€

* FE-43๐Ÿ—๏ธ ์ƒ์„ธํŽ˜์ด์ง€ Layout ๊ตฌ์กฐ๊ฐœ์„ 

* FE-43๐Ÿ“ ์ฃผ์„ ์ถ”๊ฐ€

* FE-43๐Ÿ”ฅ ์‚ฌ์šฉ์•ˆํ•˜๋Š” ํŒŒ์ผ ์‚ญ์ œ

* FE-43โœ๏ธ ์˜คํƒ€ ์ˆ˜์ •

* FE-43 ๐Ÿ› id์—†์„๋•Œ useQuery์‹คํ–‰๋˜๋Š” ๋ฌธ์ œ ํ•ด๊ฒฐ

* FE-43โ™ป๏ธ  interface->zod ๋ณ€๊ฒฝ

---------

Co-authored-by: ์šฐ์ง€์„ <[email protected]>

* FE-43โœจ ์‚ฌ์šฉ์ž ID์— ๋”ฐ๋ฅธ ๋ฏธํŠธ๋ณผ์•„์ด์ฝ˜ ํ‘œ์‹œ (#22)

* FE-43โœจ ์‚ฌ์šฉ์ž ID์— ๋”ฐ๋ฅธ ๋ฏธํŠธ๋ณผ์•„์ด์ฝ˜ ํ‘œ์‹œ

* FE-43โœจ ์—ํ”ผ๊ทธ๋žจ ์ƒ์„ธํŽ˜์ด์ง€ ๋”๋ณด๊ธฐ ๋“œ๋กญ๋‹ค์šด ์ถ”๊ฐ€

* FE-43๐Ÿ’„ MoreOptionMenu ์Šคํƒ€์ผ ์ˆ˜์ •

* FE-31 ์ƒ์„ธํŽ˜์ด์ง€ UI ์ œ์ž‘ (#12)

* FE-31๐Ÿ’„์ƒ์„ธํŽ˜์ด์ง€ ๊ธฐ๋ณธ UI ์ œ์ž‘

* FE-31โ™ป๏ธ textareaํƒœ๊ทธ Textarea์ปดํฌ๋„ŒํŠธ๋กœ ๋ณ€๊ฒฝ

* FE-31๐Ÿ’„ ๋ฐ˜์‘ํ˜• ๋””์ž์ธ ์ถ”๊ฐ€

---------

Co-authored-by: Woojiseok <[email protected]>

* FE-43 โœจ ์ƒ์„ธํŽ˜์ด์ง€ ์—ํ”ผ๊ทธ๋žจ ์กฐํšŒ  (#18)

* FE-43โœจ ์ƒ์„ธํŽ˜์ด์ง€ Epigram API์—ฐ๋™

* FE-43โšก ๏ธaxios ์—๋Ÿฌ ํ•ธ๋“ค๋ง ์ถ”๊ฐ€

* FE-43๐Ÿ—๏ธ ์ƒ์„ธํŽ˜์ด์ง€ Layout ๊ตฌ์กฐ๊ฐœ์„ 

* FE-43๐Ÿ“ ์ฃผ์„ ์ถ”๊ฐ€

* FE-43๐Ÿ”ฅ ์‚ฌ์šฉ์•ˆํ•˜๋Š” ํŒŒ์ผ ์‚ญ์ œ

* FE-43โœ๏ธ ์˜คํƒ€ ์ˆ˜์ •

* FE-43 ๐Ÿ› id์—†์„๋•Œ useQuery์‹คํ–‰๋˜๋Š” ๋ฌธ์ œ ํ•ด๊ฒฐ

* FE-43โ™ป๏ธ  interface->zod ๋ณ€๊ฒฝ

---------

Co-authored-by: ์šฐ์ง€์„ <[email protected]>

* FE-43โœจ ์‚ฌ์šฉ์ž ID์— ๋”ฐ๋ฅธ ๋ฏธํŠธ๋ณผ์•„์ด์ฝ˜ ํ‘œ์‹œ (#22)

* FE-43โœจ ์‚ฌ์šฉ์ž ID์— ๋”ฐ๋ฅธ ๋ฏธํŠธ๋ณผ์•„์ด์ฝ˜ ํ‘œ์‹œ

* FE-43โœจ ์—ํ”ผ๊ทธ๋žจ ์ƒ์„ธํŽ˜์ด์ง€ ๋”๋ณด๊ธฐ ๋“œ๋กญ๋‹ค์šด ์ถ”๊ฐ€

* FE-43๐Ÿ’„ MoreOptionMenu ์Šคํƒ€์ผ ์ˆ˜์ •

* โœจ ์ƒ์„ธํŽ˜์ด์ง€ ๋Œ“๊ธ€ ์กฐํšŒ api์—ฐ๋™ (#38)

* FE-42๐Ÿ’„ EpigramComment์•ˆ์— CommentCard ์ถ”๊ฐ€

* FE-42โœจ ์ƒ์„ธํŽ˜์ด์ง€ ๋Œ“๊ธ€ ์กฐํšŒ api์—ฐ๋™

* FE-42โœจ dateUtilํ•จ์ˆ˜ ์ถ”๊ฐ€, ์ ์šฉ

* FE-42โœจ ๋Œ“๊ธ€์ž‘์„ฑ์ž๊ฐ€ ๋ณธ์ธ์ธ์ง€ ํŒ๋ณ„ํ•ด ์ˆ˜์ •,์‚ญ์ œ ํ‘œ์‹œ

* FE-42๐Ÿ”ฅ ์•ˆ์“ฐ๋Š” ํ•จ์ˆ˜ ์‚ญ์ œ

* FE-42๐Ÿ’„ EpigramComment ๋ฐฐ๊ฒฝ์ƒ‰ ์ˆ˜์ •

* FE-42โ™ป๏ธ CommetCard ๊ตฌ์กฐ ๊ฐœ์„ 

* FE-42๐Ÿ’„์ž‘์„ฑ๋œ ๋Œ“๊ธ€ ์—†์„๋•Œ UI ์ถ”๊ฐ€

* FE-42๐Ÿ› ๋Œ“๊ธ€์ˆ˜๋ฅผ  length->totalCount๋กœ ๋ณ€๊ฒฝ

* FE-42โ™ป๏ธ  useEpigramCommentHook ๋ถ„๋ฆฌ

* FE-42โœจ ๋Œ“๊ธ€ ๋ชฉ๋ก์— ๋ฌดํ•œ์Šคํฌ๋กค ์ ์šฉ

* FE-42๐Ÿ’ก ์ฃผ์„ ์ถ”๊ฐ€

---------

Co-authored-by: ์šฐ์ง€์„ <[email protected]>

* FE-76โœจ ๋Œ“๊ธ€ ์ž‘์„ฑ api ์—ฐ๋™ (#78)

* FE-76โ™ป๏ธ  ๋Œ“๊ธ€ textarea ์ปดํฌ๋„ŒํŠธ ๋ถ„๋ฆฌ

* FE-76๐Ÿ’„ switch ์ปดํฌ๋„ŒํŠธ ์Šคํƒ€์ผ ์ˆ˜์ •

* FE-76โœจ textarea focus out ๋ฒ„ํŠผ ์ถ”๊ฐ€

* FE-76โœจ postComment schema,interface ์ถ”๊ฐ€, ์ˆ˜์ •

* FE-76โœจ  ๋Œ“๊ธ€ ์ž‘์„ฑ api ์—ฐ๋™

* FE-76๐Ÿ› import error ํ•ด๊ฒฐ

* FE-76โœจ  switch๋กœ ๋Œ“๊ธ€ ๊ณต๊ฐœ,๋น„๊ณต๊ฐœ ์„ค์ • ๊ธฐ๋Šฅ ์ถ”๊ฐ€

* FE-76โœจ ๋Œ“๊ธ€ ์ž‘์„ฑ ์‹œ image๋ฅผ ์œ ์ €๊ฐ€ ๋“ฑ๋กํ•œ image๋กœ ๋ณ€๊ฒฝ

* FE-76๐Ÿ› build error ํ•ด๊ฒฐ

---------

Co-authored-by: ์šฐ์ง€์„ <[email protected]>

* FE-45โœจ ์—ํ”ผ๊ทธ๋žจ ์‚ญ์ œ api ์—ฐ๋™ (#80)

* FE-45โœจ ์—ํ”ผ๊ทธ๋žจ ์‚ญ์ œ api ์—ฐ๋™

* FE-45๐Ÿ’„ ์—ํ”ผ๊ทธ๋žจ ์‚ญ์ œ ๋ชจ๋‹ฌ ์ถ”๊ฐ€

* FE-45๐Ÿ’„ ๋ฐ˜์‘ํ˜• ๋””์ž์ธ ์ˆ˜์ •

* FE-45โ™ป๏ธ DeleteAlertModal ์ปดํฌ๋„ŒํŠธ ๋ถ„๋ฆฌ

* FE-45๐Ÿ› build error ํ•ด๊ฒฐ

---------

Co-authored-by: ์šฐ์ง€์„ <[email protected]>

* FE-78โœจ๋Œ“๊ธ€ ์ˆ˜์ •,์‚ญ์ œ ๊ธฐ๋Šฅ ์ถ”๊ฐ€ (#91)

* FE-78๐Ÿ’„ ๋ฏธํŠธ๋ณผ์•„์ด์ฝ˜ ui์ˆ˜์ •

* FE-78โœจ ๋Œ“๊ธ€ ์‚ญ์ œ ํ•จ์ˆ˜ ์ถ”๊ฐ€

* FE-78โœจ๋Œ“๊ธ€ ์‚ญ์ œ ๋ฒ„ํŠผ ๊ธฐ๋Šฅ ์ถ”๊ฐ€

* FE-78โœจ  ๋Œ“๊ธ€ ์ˆ˜์ • apiํ•จ์ˆ˜ ์ถ”๊ฐ€

* FE-78โœจ ๋Œ“๊ธ€ ์ˆ˜์ • ๊ธฐ๋Šฅ ์ถ”๊ฐ€

* FE-78๐Ÿ“ ์ฃผ์„ ์ถ”๊ฐ€

* FE-78๐Ÿ’„ EpigramComment height์ˆ˜์ •

* FE-78๐Ÿ› build error ํ•ด๊ฒฐ

---------

Co-authored-by: ์šฐ์ง€์„ <[email protected]>

* FE-44โœจ ์—ํ”ผ๊ทธ๋žจ ์ˆ˜์ • ๊ธฐ๋Šฅ ์ถ”๊ฐ€ (#97)

* FE-44๐Ÿšš ์ƒ์„ธํŽ˜์ด์ง€ ํŽ˜์ด์ง€ ๊ตฌ์กฐ ๋ณ€๊ฒฝ

* FE-44โœจ  ์—ํ”ผ๊ทธ๋žจ ์ˆ˜์ • api ํ•จ์ˆ˜ ์ถ”๊ฐ€

* FE-44โœจ ์—ํ”ผ๊ทธ๋žจ ์ˆ˜์ • ๊ธฐ๋Šฅ ์ถ”๊ฐ€

* FE-44โ™ป๏ธ ์ €์ž์„ ํƒ๊ด€๋ จ ํ•จ์ˆ˜ useAuthorSelectionํ›…์œผ๋กœ ๋ถ„๋ฆฌ

* FE-44๐Ÿ’„ EditEpigram,AddEpigram UI์ˆ˜์ •

* FE-44๐Ÿ› ์ถœ์ฒ˜ ์œ ํšจ์„ฑ๊ฒ€์‚ฌ ๋ฒ„๊ทธ ์ˆ˜์ •

* FE-44โœจ ์ž‘์„ฑ์ž ๋ณธ์ธ์ด ์•„๋‹๋•Œ ์ˆ˜์ •ํŽ˜์ด์ง€ ์ ‘๊ทผ ์‹œ ๋ฆฌ๋‹ค์ด๋ ‰ํŠธ ๊ธฐ๋Šฅ ๊ตฌํ˜„

* FE-44๐Ÿ› ์œ ํšจ์„ฑ ๊ฒ€์‚ฌ ๋ฒ„๊ทธ ์ˆ˜์ •

---------

Co-authored-by: ์šฐ์ง€์„ <[email protected]>

* FE-41โœจ์ข‹์•„์š” ๊ธฐ๋Šฅ ์ถ”๊ฐ€ (#103)

* FE-41โ™ป๏ธ  httpClien์—t interceoptor ์ถ”๊ฐ€

* FE-41โœจ  ์ข‹์•„์š” api ํ•จ์ˆ˜ ์ถ”๊ฐ€

* FE-41โœจ  ์ข‹์•„์š” ๊ธฐ๋Šฅ Layout์— ์ ์šฉ

* FE-41โœจ Url Link๋ฒ„ํŠผ ์ƒ์„ฑ

* FE-41๐Ÿ’„์ข‹์•„์š”,link๋ฒ„ํŠผ ์Šคํƒ€์ผ ์ˆ˜์ •

* FE-41๐Ÿ› import ์—๋Ÿฌ ํ•ด๊ฒฐ

* FE-41โ™ป๏ธ ๊ธฐ์กดheader-> Header์ปดํฌ๋„ŒํŠธ๋กœ ๋ณ€๊ฒฝ

---------

Co-authored-by: ์šฐ์ง€์„ <[email protected]>

* FE-54๐Ÿ› ์˜คํƒ€ ์ˆ˜์ •

* build error ํ•ด๊ฒฐ

* FE-54๐Ÿ› build errorํ•ด๊ฒฐ

* Fe-54โ™ป๏ธ์ƒ์„ธํŽ˜์ด์ง€ ๋ฆฌํŒฉํ† ๋ง (#131)

* FE-54๐Ÿšš ์ƒ์„ธํŽ˜์ด์ง€,์ˆ˜์ •ํŽ˜์ด์ง€ ํŽ˜์ด์ง€ ํด๋” ๋ณ€๊ฒฝ

* FE-54โ™ป๏ธ  ์ƒ์„ธํŽ˜์ด์ง€๋กœ ์ด๋™ํ•˜๋Š” url ์ˆ˜์ •

* FE-54๐Ÿšš ์ž‘์„ฑํŽ˜์ด์ง€ ํŽ˜์ด์ง€ ํด๋” ์ƒ์„ฑ

---------

Co-authored-by: Woojiseok <[email protected]>
  • Loading branch information
jisurk and Woojiseok authored Jul 31, 2024
1 parent 1a62014 commit fc471cd
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 10 deletions.
4 changes: 2 additions & 2 deletions src/components/epigram/Comment/CommentItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ import { CommentType } from '@/schema/comment';
import { sizeStyles, textSizeStyles, gapStyles, paddingStyles, contentWidthStyles } from '@/styles/CommentCardStyles';
import getCustomRelativeTime from '@/lib/dateUtils';
import useDeleteCommentMutation from '@/hooks/useDeleteCommentHook';
import { CommentCardProps } from '@/components/Card/CommentCard';
import { useToast } from '@/components/ui/use-toast';
import { Button } from '@/components/ui/button';
import DeleteAlertModal from '../DeleteAlertModal';

interface CommentItemProps extends CommentCardProps {
interface CommentItemProps {
comment: CommentType;
status?: 'view' | 'edit';
onEditComment: (id: number, content: string, isPrivate: boolean) => void;
}

Expand Down
4 changes: 2 additions & 2 deletions src/components/epigram/Comment/CommentList.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React, { useEffect, useRef, useCallback } from 'react';
import { EpigramCommentProps } from '@/types/epigram.types';
import useEpigramCommentsQuery from '@/hooks/useEpigramCommentsQueryHook';
import CommentItem from './CommentItem';
import NoComment from './NoComment';
import CommentItem from './CommentItem';

interface CommentListProps extends Omit<EpigramCommentProps, 'userImage'> {
onEditComment: (id: number, content: string, isPrivate: boolean) => void;
Expand Down Expand Up @@ -58,7 +58,7 @@ function CommentList({ epigramId, currentUserId, onEditComment }: CommentListPro
{allComments.length > 0 ? (
<>
{allComments.map((comment) => (
<CommentItem key={comment.id} comment={comment} status={comment.writer.id === currentUserId ? 'edit' : 'complete'} onEditComment={onEditComment} />
<CommentItem key={comment.id} comment={comment} status={comment.writer.id === currentUserId ? 'edit' : 'view'} onEditComment={onEditComment} />
))}
<div ref={lastCommentRef}>{isFetchingNextPage && <div>๋” ๋งŽ์€ ๋Œ“๊ธ€์„ ๋ถˆ๋Ÿฌ์˜ค๋Š” ์ค‘...</div>}</div>
</>
Expand Down
4 changes: 2 additions & 2 deletions src/components/epigram/EditEpigram.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,15 +115,15 @@ function EditEpigram({ epigram }: EditEpigramProps) {
const handleAlertClose = () => {
setIsAlertOpen(false);
if (alertContent.title === '์ˆ˜์ • ์™„๋ฃŒ') {
router.push(`/epigram/${epigram.id}`);
router.push(`/epigrams/${epigram.id}`);
}
};

return (
<>
<Header
icon='back'
routerPage={`/epigram/${epigram.id}`}
routerPage={`/epigrams/${epigram.id}`}
isLogo
insteadOfLogo='์—ํ”ผ๊ทธ๋žจ ์ˆ˜์ •'
isProfileIcon
Expand Down
2 changes: 1 addition & 1 deletion src/components/epigram/MoreOptionMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function MoreOptionsMenu({ epigram }: MoreOptionsMenuProps) {
});

const handleEditClick = () => {
router.push(`/epigram/${epigram}/edit`);
router.push(`/epigrams/${epigram}/edit`);
};

const handleDeleteClick = () => {
Expand Down
2 changes: 1 addition & 1 deletion src/pageLayout/Epigram/AddEpigram.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ function AddEpigram() {
const handleAlertClose = () => {
setIsAlertOpen(false);
if (alertContent.title === '๋“ฑ๋ก ์™„๋ฃŒ') {
router.push(`/epigram/${addEpigramMutation.data?.id}`);
router.push(`/epigrams/${addEpigramMutation.data?.id}`);
}
};

Expand Down
3 changes: 2 additions & 1 deletion src/pageLayout/Epigram/EpigramComment.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ function EpigramComment({ epigramId, currentUserId, userImage }: EpigramCommentP
};

return (
<div className='bg-slate-100 flex justify-center h-screen'>
// NOTE: ๋Œ“๊ธ€๋ถ€๋ถ„ height ์ˆ˜์ •
<div className='bg-slate-100 flex justify-center'>
<div className='w-80 md:w-96 lg:w-[640px] pt-6 lg:pt-12'>
<h3 className='text-base lg:text-xl font-semibold'>๋Œ“๊ธ€ ์ž‘์„ฑ</h3>
<div className={`flex flex-col gap-4 lg:gap-6 ${paddingStyles.sm} ${paddingStyles.md} ${paddingStyles.lg}`}>
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function DetailPage() {

return (
<div className='flex flex-col '>
<Header icon='search' routerPage='/search' isLogo insteadOfLogo='' isProfileIcon isShareIcon={false} isButton={false} textInButton='' disabled={false} onClick={() => {}} />;
<Header icon='search' routerPage='/search' isLogo insteadOfLogo='' isProfileIcon isShareIcon={false} isButton={false} textInButton='' disabled={false} onClick={() => {}} />
<EpigramFigure epigram={epigram} currentUserId={userData?.id} />
<EpigramComment epigramId={epigram.id} currentUserId={userData?.id} userImage={userData?.image} />
</div>
Expand Down

0 comments on commit fc471cd

Please sign in to comment.