diff --git a/components/games/LottoGame.tsx b/components/games/LottoGame.tsx index 089043f..e59f425 100644 --- a/components/games/LottoGame.tsx +++ b/components/games/LottoGame.tsx @@ -28,9 +28,7 @@ function LottoGame() { } }) .then((res) => { - console.log(res) setGames(res.data) - console.log(games) }) .catch((err) => { console.log(err) diff --git a/components/games/RouletteGame.tsx b/components/games/RouletteGame.tsx index 7ca9065..651c246 100644 --- a/components/games/RouletteGame.tsx +++ b/components/games/RouletteGame.tsx @@ -24,9 +24,7 @@ const RouletteGame = () => { } }) .then((res) => { - console.log(res) setGames(res.data) - console.log(games.data.rouletteDayCount) }) .catch((err) => { console.log(err) @@ -95,7 +93,6 @@ const RouletteGame = () => { }, }) .then((res) => { - console.log(res) setGames(prevGames => ({ ...prevGames, data: { diff --git a/components/layouts/header/WebtoonHeader.tsx b/components/layouts/header/WebtoonHeader.tsx index ec38d60..5d17a3b 100644 --- a/components/layouts/header/WebtoonHeader.tsx +++ b/components/layouts/header/WebtoonHeader.tsx @@ -61,7 +61,6 @@ export default function WebtoonHeader() { } }) .then((res) => { - console.log(res); setLike(true); }) .catch((err) => { diff --git a/components/modals/LoginGuide.tsx b/components/modals/LoginGuide.tsx index bbaaf7a..e6b961f 100644 --- a/components/modals/LoginGuide.tsx +++ b/components/modals/LoginGuide.tsx @@ -11,7 +11,7 @@ export default function LoginGuide() { // 3초 후에 페이지 이동 setTimeout(() => { router.push('/login'); - }, 3000); + }, 1000); }, []); return ( diff --git a/components/pages/authorregister/AuthorNicknameAgreement.tsx b/components/pages/authorregister/AuthorNicknameAgreement.tsx index 0f13e9f..bcaaa10 100644 --- a/components/pages/authorregister/AuthorNicknameAgreement.tsx +++ b/components/pages/authorregister/AuthorNicknameAgreement.tsx @@ -15,10 +15,8 @@ interface ChildProps { export default function AuthorNicknameAgreement({ inputData, setInputData, signupbtn }: ChildProps) { const router = useRouter(); - console.log(inputData.creatorNickname) const { data: session } = useSession() - // const role = sessionStorage.getItem('role'); const handleAuthorSignup = async () => { @@ -26,13 +24,8 @@ export default function AuthorNicknameAgreement({ inputData, setInputData, signu const formData = new FormData(); formData.append("creatorNickname", inputData.creatorNickname); - console.log(inputData.creatorNickname) - console.log(session) - //put - formdata 못 넣음. 데이터를 넣을때 사용. - console.log(formData.get('creatorNickname')) - const res = await fetch('https://blockpage.site/member-service/v1/members?type=author', { method: 'PUT', body: formData, @@ -43,7 +36,6 @@ export default function AuthorNicknameAgreement({ inputData, setInputData, signu }) const data = await res.json() - console.log(data) if (data) { Swal.fire({ icon: 'success', @@ -61,7 +53,6 @@ export default function AuthorNicknameAgreement({ inputData, setInputData, signu }) } } catch (err) { - console.log(err) Swal.fire({ icon: 'success', title: '작가 등록에 실패하였습니다.', diff --git a/components/pages/authorregister/AuthorRegister.tsx b/components/pages/authorregister/AuthorRegister.tsx index 9fabe5b..461125e 100644 --- a/components/pages/authorregister/AuthorRegister.tsx +++ b/components/pages/authorregister/AuthorRegister.tsx @@ -74,7 +74,6 @@ export default function AuthorRegister({ inputData, setInputData, setsignupbtn } } }) .then((res) => { - console.log(res) Swal.fire({ icon: 'success', title: '사용 가능한 작가명입니다.', diff --git a/components/pages/authorworkslist/AuthorSubCategory.tsx b/components/pages/authorworkslist/AuthorSubCategory.tsx index f6a3035..e18425d 100644 --- a/components/pages/authorworkslist/AuthorSubCategory.tsx +++ b/components/pages/authorworkslist/AuthorSubCategory.tsx @@ -32,8 +32,6 @@ export default function AuthorSubCategory({ active, defaultActive }: { active: s }] }); - console.log(webtoonList) - const [WebtoonStatus, setWebtoonStatus] = useState({ data: { webtoonStatus: '', @@ -50,7 +48,6 @@ export default function AuthorSubCategory({ active, defaultActive }: { active: s }) .then((res) => { setWebtoonList(res.data) - console.log(res.data) setWebtoonStatus(res.data) }) .catch((err) => { @@ -66,8 +63,6 @@ export default function AuthorSubCategory({ active, defaultActive }: { active: s router.push(`/authorworkslist/${webtoonId}/changewebtoon`); }; - console.log(webtoonList.data) - const handleDeleteWebtoonClick = (webtoonTitle: string, WebtoonStatus: string) => { const formData = new FormData(); @@ -82,7 +77,6 @@ export default function AuthorSubCategory({ active, defaultActive }: { active: s }, }) .then((res) => { - console.log(res) Swal.fire({ icon: 'success', title: '삭제되었습니다.', @@ -97,7 +91,6 @@ export default function AuthorSubCategory({ active, defaultActive }: { active: s console.log(err) }) }; - console.log(session?.email) const getGenreTypeString = (genre: number) => { if (genre === 0) { diff --git a/components/pages/blockcharge/BlockCharge.tsx b/components/pages/blockcharge/BlockCharge.tsx index 362d006..6da0b1c 100644 --- a/components/pages/blockcharge/BlockCharge.tsx +++ b/components/pages/blockcharge/BlockCharge.tsx @@ -31,11 +31,9 @@ export default function BlockCharge() { headers: { 'Content-Type': 'application/json', memberId: session?.email, - // role: role, }, }); - console.log(response.data.data); window.location.href = response.data.data.nextRedirectPcUrl; } catch (error) { diff --git a/components/pages/blockpurchase/TransactionHistory.tsx b/components/pages/blockpurchase/TransactionHistory.tsx index 0dd5554..66ec329 100644 --- a/components/pages/blockpurchase/TransactionHistory.tsx +++ b/components/pages/blockpurchase/TransactionHistory.tsx @@ -65,7 +65,6 @@ const TransectionHistory = () => { }) .then((res) => { setChargeBlock(res.data) - console.log(chargeBlock) setRefund(res.data) }) .catch((err) => { @@ -84,12 +83,8 @@ const TransectionHistory = () => { }, }) .then((res) => { - console.log(res) setChargeBlock(res.data) - console.log(chargeBlock) setRefund(res.data) - console.log(refund) - console.log(res.data) }) .catch((err) => { console.log(err) @@ -132,7 +127,6 @@ const TransectionHistory = () => { } }) .then((res) => { - console.log(res) if (res.status === 200) { Swal.fire({ icon: 'success', diff --git a/components/pages/changeepisode/ChangeEpisodeInfoForm.tsx b/components/pages/changeepisode/ChangeEpisodeInfoForm.tsx index 82f4ad0..6239e99 100644 --- a/components/pages/changeepisode/ChangeEpisodeInfoForm.tsx +++ b/components/pages/changeepisode/ChangeEpisodeInfoForm.tsx @@ -40,22 +40,6 @@ export default function ChangeEpisodeInfoForm() { const [episodeImagePreview, setEpisodeImagePreview] = useState([]); const regex = new RegExp("(.*?)\.(exe|sh|zip|alz)$"); - // useEffect(() => { - // axios(`/api/authorwebtooninfo/${router.query.id}`) - // .then(res => res.data) - // .then(data => { - // setEpisodeInfoData(data); - // setEpisodeThumbnailImagePreview(data.episodeThumbnail); - // setEpisodeImagePreview(data.episodeImage.map((url: string, index: number) => ({ - // name: `Episode ${index + 1}`, - // preview: url, - // file: null, - // }))); - // }) - // }, [episodeInfoData, router.query.id]) - - console.log(episodeInfoData) - useEffect(() => { axios.get(`https://blockpage.site/webtoon-service/v1/episodes/creator?${webtoonId}`, { @@ -69,8 +53,6 @@ export default function ChangeEpisodeInfoForm() { }) .then((res) => { setEpisodeInfoData(res.data) - console.log(res.data) - console.log(episodeInfoData) }) .catch((err) => { console.log(err) @@ -171,8 +153,6 @@ export default function ChangeEpisodeInfoForm() { memberId: session?.email || '', }, }); - - console.log(res); if (res.status === 201) { Swal.fire({ title: '요청 성공!', diff --git a/components/pages/changeuserinfo/ChangeUserInfo.tsx b/components/pages/changeuserinfo/ChangeUserInfo.tsx index f05377e..7b26fbd 100644 --- a/components/pages/changeuserinfo/ChangeUserInfo.tsx +++ b/components/pages/changeuserinfo/ChangeUserInfo.tsx @@ -45,7 +45,6 @@ export default function ChangeUserInfo() { useEffect(() => { const fetchData = async () => { - console.log(session?.email) try { const res = await axios.get('https://blockpage.site/member-service/v1/members?type=detail', { headers: { @@ -69,7 +68,6 @@ export default function ChangeUserInfo() { profileSkin, } }); - console.log(res.data) const res2 = await axios.get("https://blockpage.site/purchase-service/v1/purchases?type=profileSkin", { headers: { @@ -78,9 +76,8 @@ export default function ChangeUserInfo() { }, }) setChangeProfileSkin(res2.data); - console.log(res2.data.data) - } catch (e) { - console.log(e); + } catch (err) { + console.log(err); } } fetchData(); @@ -103,7 +100,6 @@ export default function ChangeUserInfo() { }; const handleProfileSkinSubmit = () => { - console.log(check) axios.put('https://blockpage.site/purchase-service/v1/purchases?type=profileSkin', { memberProfileSkinId: check, }, { @@ -113,7 +109,6 @@ export default function ChangeUserInfo() { }, }) .then((res) => { - console.log(res.data) Swal.fire({ icon: 'success', title: '변경되었습니다.', @@ -171,7 +166,6 @@ export default function ChangeUserInfo() { }, }) .then((res) => { - console.log(res.data) Swal.fire({ icon: 'success', title: '변경되었습니다.', diff --git a/components/pages/changewebtoon/ChangeWebtoonForm.tsx b/components/pages/changewebtoon/ChangeWebtoonForm.tsx index f90c886..c0d7d76 100644 --- a/components/pages/changewebtoon/ChangeWebtoonForm.tsx +++ b/components/pages/changewebtoon/ChangeWebtoonForm.tsx @@ -63,36 +63,29 @@ export default function ChangeWebtoonForm() { }, }) .then((res) => { - console.log(res) const selectedWebtoon = res.data.data.find((webtoon: any) => webtoon.webtoonId === Number(webtoonId)); if (selectedWebtoon) { setWebtoonData({ data: [selectedWebtoon], }) } - console.log(res.data.data) - console.log(webtoonData) if (selectedWebtoon) { setAuthorName({ data: selectedWebtoon.creator, }); } - console.log(authorName) }) .catch((err) => { console.log(err) }) }, []) - console.log(webtoonData) - const handleInput = (e: React.ChangeEvent) => { const { name, value } = e.target; setWebtoonInfoData({ ...webtoonInfoData, [name]: Number(value) || value, }); - console.log(webtoonInfoData) }; const handleMainImage = (e: React.ChangeEvent) => { @@ -170,7 +163,6 @@ export default function ChangeWebtoonForm() { }, ) .then((res) => { - console.log(res) Swal.fire({ icon: 'success', title: '요청 성공!', diff --git a/components/pages/chargeresult/ChargeResultSection.tsx b/components/pages/chargeresult/ChargeResultSection.tsx index 86335aa..11df604 100644 --- a/components/pages/chargeresult/ChargeResultSection.tsx +++ b/components/pages/chargeresult/ChargeResultSection.tsx @@ -14,7 +14,6 @@ export default function ChargeResultSection() { const router = useRouter(); const pgToken = router.query.pg_token; - console.log(pgToken) const handlego = async () => { axios.post('https://blockpage.site/block-service/v1/payments?type=kakao-approve', { @@ -28,7 +27,6 @@ export default function ChargeResultSection() { } ) .then((res) => { - console.log(res.data.data) const orderlist = res.data.data axios.post('https://blockpage.site/block-service/v1/blocks?type=cash', { orderId: orderlist.orderId, @@ -41,7 +39,6 @@ export default function ChargeResultSection() { }, }) .then((res) => { - console.log(res) router.push('/completepayment') localStorage.setItem('orderdata', JSON.stringify(orderlist)) }) diff --git a/components/pages/chargeresult/CompletePayMentSection.tsx b/components/pages/chargeresult/CompletePayMentSection.tsx index bb9c677..c23eefd 100644 --- a/components/pages/chargeresult/CompletePayMentSection.tsx +++ b/components/pages/chargeresult/CompletePayMentSection.tsx @@ -23,8 +23,6 @@ export default function CompletePayMentSection() { } ); - - console.log(orderdata) useEffect(() => { const orderlist = localStorage.getItem('orderdata') as string; setOrderData(JSON.parse(orderlist)) diff --git a/components/pages/comment/Comment.tsx b/components/pages/comment/Comment.tsx index 4373155..274f036 100644 --- a/components/pages/comment/Comment.tsx +++ b/components/pages/comment/Comment.tsx @@ -62,9 +62,6 @@ export default function Comment(props: { axios.spread((res1, res2) => { setReplyData(res1.data.data); setCommentEmotionData(res2.data.data); - - console.log(res1.data.data); - console.log(res2.data.data); }) ) .catch((err) => { @@ -83,7 +80,6 @@ export default function Comment(props: { withCredentials: true }) .then((res) => { - console.log(res); router.reload(); }) .catch((err) => { @@ -94,7 +90,6 @@ export default function Comment(props: { const handleDelete = () => { axios.delete(`https://blockpage.site/comment-service/v1/comments/${commentData.commentId}`) .then((res) => { - console.log(res); router.reload(); }) .catch((err) => { @@ -114,7 +109,6 @@ export default function Comment(props: { } }) .then((res) => { - console.log(res); setLikeState(!likeState); }) .catch((err) => { @@ -128,7 +122,6 @@ export default function Comment(props: { } }) .then((res) => { - console.log(res); setLikeState(!likeState); }) .catch((err) => { @@ -149,7 +142,6 @@ export default function Comment(props: { } }) .then((res) => { - console.log(res); setDisLikeState(!disLikeState); router.reload(); }) @@ -163,7 +155,6 @@ export default function Comment(props: { } }) .then((res) => { - console.log(res); setDisLikeState(!disLikeState); router.reload(); }) @@ -186,7 +177,6 @@ export default function Comment(props: { } }) .then((res) => { - console.log(res); setShowCommentModal(!showCommentModal); router.reload(); }) diff --git a/components/pages/comment/CommentInput.tsx b/components/pages/comment/CommentInput.tsx index 90a33ad..1ae6597 100644 --- a/components/pages/comment/CommentInput.tsx +++ b/components/pages/comment/CommentInput.tsx @@ -43,7 +43,6 @@ export default function CommentInput(props: { } }) .then((res) => { - console.log(res); router.reload(); }) .catch((err) => { @@ -60,7 +59,6 @@ export default function CommentInput(props: { } }) .then((res) => { - console.log(res); router.reload(); }) .catch((err) => { diff --git a/components/pages/episodeinfo/EpisodeInfoForm.tsx b/components/pages/episodeinfo/EpisodeInfoForm.tsx index 01c95d6..25dba70 100644 --- a/components/pages/episodeinfo/EpisodeInfoForm.tsx +++ b/components/pages/episodeinfo/EpisodeInfoForm.tsx @@ -49,8 +49,6 @@ export default function EpisodeInfoForm() { }) .then((res) => { setEpisodeInfo(res.data) - console.log(res.data) - console.log(episodeInfo) }) .catch((err) => { console.log(err) @@ -147,11 +145,9 @@ export default function EpisodeInfoForm() { confirmButtonText: '확인', }) router.back(); - console.log(response) } } catch (error) { console.error(error); - console.log(session?.email) } } }; diff --git a/components/pages/episodelist/EpisodelistBox.tsx b/components/pages/episodelist/EpisodelistBox.tsx index ed5dfa2..5716f0c 100644 --- a/components/pages/episodelist/EpisodelistBox.tsx +++ b/components/pages/episodelist/EpisodelistBox.tsx @@ -30,8 +30,6 @@ export default function EpisodelistBox() { }] }) - console.log(episodeData); - useEffect(() => { const fetchEpisodeData = async () => { @@ -48,12 +46,8 @@ export default function EpisodelistBox() { } ); const episodeInfoData = response.data; - console.log(episodeInfoData) setEpisodeData(episodeInfoData); - console.log(episodeData); setWebtoonData(episodeInfoData); - console.log(webtoonData) - console.log(episodeData.data) } catch (error) { console.error(error); } @@ -76,7 +70,6 @@ export default function EpisodelistBox() { }, }) .then((res) => { - console.log(res) Swal.fire({ icon: 'success', title: '삭제되었습니다.', diff --git a/components/pages/episodeviewer/FooterViewer.tsx b/components/pages/episodeviewer/FooterViewer.tsx index 43887fc..960a5f0 100644 --- a/components/pages/episodeviewer/FooterViewer.tsx +++ b/components/pages/episodeviewer/FooterViewer.tsx @@ -79,7 +79,6 @@ export default function FooterViewer(props: { episodeData: EpisodeViewDataType, } }) .then((res) => { - console.log(res); setIsRating(!isRating); setIsRatingData(true); setShowRatingModal(!showRatingModal); @@ -90,51 +89,12 @@ export default function FooterViewer(props: { episodeData: EpisodeViewDataType, } } - // const handleEpisode = (paramEpisodeBM: string, paramPersistType: string, episodeId: number, episodeNumber: number, episodePrice: number, isRead: boolean) => { - // if (session?.email) { - // if (isRead) { - // axios.post(`https://blockpage.site/purchase-service/v1/purchases?type=${paramEpisodeBM}&webtoonId=${webtoonId}`, { - // blockQuantity: episodePrice, - // episodeId: episodeId, - // persistType: paramPersistType, - // webtoonTitle: webtoonData.webtoonTitle, - // episodeNumber: episodeNumber, - // webtoonThumbnail: webtoonData.webtoonThumbnail, - // creator: webtoonData.creator, - // illustrator: webtoonData.illustrator, - // genre: webtoonData.genre, - // }, { - // headers: { - // memberId: session?.email, - // } - // }) - // .then((res) => { - // if (episodePrice !== 0) { - // Swal.fire({ - // icon: 'success', - // title: episodeNumber + '화', - // text: '구매가 완료되었습니다.', - // showConfirmButton: false, - // timer: 2000 - // }) - // } - // }) - // .catch((err) => { - // console.log(err); - // }); - // } - // } - - // router.push(`/webtoon/${webtoonId}/episode/${episodeId}/episode/${episodeNumber}`); - // }; - useEffect(() => { if (session) { axios.get(`https://blockpage.site/block-service/v1/blocks`, { headers: { memberId: session.email } }) .then((res) => { - console.log(res); setMyBlock(res.data.data.totalBlocks); }) .catch((err) => { @@ -147,7 +107,6 @@ export default function FooterViewer(props: { episodeData: EpisodeViewDataType, } }) .then((res) => { - console.log(res); setValue(res.data.data.ratings); setIsRatingData(true); }) diff --git a/components/pages/login/LoginSection.tsx b/components/pages/login/LoginSection.tsx index d76f395..b3624d2 100644 --- a/components/pages/login/LoginSection.tsx +++ b/components/pages/login/LoginSection.tsx @@ -41,23 +41,18 @@ export default function LoginSection() { signOut() return } else if (res.status === 403) { - console.log('403') router.push('/login') return } const kakaoData = await res.json() - console.log(kakaoData) if (kakaoData.id) { postUser(kakaoData) } else { - console.log("kakao login error") router.push('/login') } } const postUser = async (kakaoLoginData: any) => { - console.log('kakaoLoginData', kakaoLoginData) - console.log('now session', session) const res = await fetch('https://blockpage.site/member-service/v1/members', { method: 'POST', headers: { @@ -71,20 +66,16 @@ export default function LoginSection() { }) }) const data = await res.json() - console.log(data.data.role) update({ ...session, role: data.data.role }) if (data.data.role) { sessionStorage.setItem('role', data.data.role) userLogIn(data.data.role).then(() => { - console.log('userLogIn') router.push('/') - console.log(session) }) } } const userLogIn = async (role: string) => { - console.log('userLogIn', role, session?.email) if (!session?.email) return const res = await fetch('https://blockpage.site/member-service/v1/members/log', { method: 'GET', @@ -95,7 +86,6 @@ export default function LoginSection() { }, }) const data = await res.json() - console.log('userLogIn', data) } useEffect(() => { @@ -104,7 +94,6 @@ export default function LoginSection() { }, [session?.accessToken]) if (session?.role) { - console.log('session', session) return ( ) diff --git a/components/pages/main/best/BestRankingCard.tsx b/components/pages/main/best/BestRankingCard.tsx index 7ae43a2..740f2e9 100644 --- a/components/pages/main/best/BestRankingCard.tsx +++ b/components/pages/main/best/BestRankingCard.tsx @@ -40,7 +40,6 @@ export default function BestRankingCard() { }, }) .then((res) => { - console.log(res) setWeeksData(res.data) }) .catch((err) => { @@ -53,8 +52,7 @@ export default function BestRankingCard() { } const handleMainCategory = (weekdays: number) => { - setActive(weekdays); - console.log(weekdays) + setActive(weekdays) axios.get(`https://blockpage.site/webtoon-service/v1/webtoons?weekdays=${weekdays}&best=0`, { headers: { @@ -64,7 +62,6 @@ export default function BestRankingCard() { }, }) .then((res) => { - console.log(res) setWeeksData(res.data) }) .catch((err) => { diff --git a/components/pages/main/category/CategoryFilter.module.css b/components/pages/main/category/CategoryFilter.module.css deleted file mode 100644 index 0f8d18a..0000000 --- a/components/pages/main/category/CategoryFilter.module.css +++ /dev/null @@ -1,102 +0,0 @@ -.categoryWrap { - width: 100%; - margin: 0 auto; - display: flex; - flex-direction: column; - justify-content: center; - align-items: center; - padding: 0 1.57rem; - transition: all 0.3s ease-in-out; -} - -/* .categoryRow { - display: flex; - flex-direction: column; - justify-content: center; - align-items: center; - transition: all 0.3s ease-in-out; -} */ - -.categoryRow { - display: flex; - justify-content: center; - align-items: center; - margin : 2rem 0; -} - -.categoryRow h2 { - cursor: pointer; - margin: 0 auto; - width: 6rem; - text-align: center; - padding: 0.5rem 1rem; - background-color: var(--bp-primary); - border-radius: 3rem; - color: var(--bp-white); - font-size: 0.9rem; - margin: 1rem 0; - transition: all 0.3s ease-in-out; - opacity: 0; -} -.innerContainer { - display: flex; - flex-wrap: wrap; - justify-content: center; -} - -.categoryRow h2.active { - transition: all 0.3s ease-in-out; - position: relative; - z-index: 1; - opacity: 1; -} - -.categoryRow:last-child h2.active { - /* margin-bottom: -5rem; */ -} -/* .categoryRow:first-child .innerContainer { - margin-top: -7rem; -} */ -.categoryRow:last-child h2.active { - margin-top: -6rem; -} -.categoryRow:last-child .innerContainer.active { - margin-top: -7rem; -} - -/* .categoryRow .item { - cursor: pointer; - width: content-fit; - padding: 0.5rem 0.7rem; - background-color: var(--bp-primary); - border-radius: 3rem; - color: var(--bp-white); - font-size: 1.1rem; - margin: 0.2rem 0.2rem; -} */ - -.categoryRow .item { - width: content-fit; - padding: 0.5rem 0.7rem; - background-color: var(--bp-primary); - border-radius: 3rem; - color: var(--bp-white); - font-size: 1.1rem; - margin: 0.2rem 0.2rem; -} - -.innerContainer { - opacity: 0; - transition: all 0.3s ease-in-out; -} - -.categoryRow .innerContainer.active { - opacity: 1; - transition: all 0.3s ease-in-out; -} - -.categoryRow.blue h2, -.categoryRow.blue .item { - background-color: var(--bp-blue); - transition: all 0.3s ease-in-out; -} diff --git a/components/pages/main/category/CategoryFilter.tsx b/components/pages/main/category/CategoryFilter.tsx deleted file mode 100644 index 7f9edeb..0000000 --- a/components/pages/main/category/CategoryFilter.tsx +++ /dev/null @@ -1,77 +0,0 @@ -import React, { Dispatch, SetStateAction, useEffect, useState } from 'react' -import { categoryMenuData } from '@/data/staticMenuData' -import { CategoryMenuDataType } from '@/types/categoryDataType' -import style from '@/components/pages/main/category/CategoryFilter.module.css' -import { useSession } from 'next-auth/react' -import axios from 'axios' - -export default function CategoryFilter(props: { active: string, setActive: React.Dispatch>, handleMainCategory: (name: string) => void }) { - - // const [view, setView] = useState(false) - // const [categoryData, setCategoryData] = useState() - // useEffect(() => { - // setCategoryData(categoryMenuData) - // }, []) - - // return ( - //
- // { - // categoryData && categoryData.map((item: CategoryMenuDataType) => { - // return ( - - // - - // ) - // }) - // } - //
- // ) - // } - - // const CategoryItem = (props: { data: CategoryMenuDataType, view: boolean, setView: Dispatch> }) => { - - // const [isView, setIsView] = useState(props.view) - - // useEffect(() => { - // if (props.data.id === 2) { - // setIsView(!props.view) - // } else { - // setIsView(props.view) - // } - // }, [props.data.id, props.view]) - - // const handleView = () => { - // console.log('handleView') - // props.setView(!props.view) - // } - - return ( - <> - {/*

요일별 웹툰

-
- {categoryMenuData.map((data) => ( -
props.handleMainCategory(data.name)}> -

{data.name}

-
- ))} -
*/} - - - // <> - //
- //

- // {props.data.name} - //

- //
- // { - // props.data.data.map((data: CategoryDataType) => ( - //
- //

{data.name}

- //
- // )) - // } - //
- //
- // - ) -} \ No newline at end of file diff --git a/components/pages/mypage/BlockChargeButton.tsx b/components/pages/mypage/BlockChargeButton.tsx index 592644f..c69e388 100644 --- a/components/pages/mypage/BlockChargeButton.tsx +++ b/components/pages/mypage/BlockChargeButton.tsx @@ -7,7 +7,6 @@ export default function BlockChargeButton() { const router = useRouter(); const onClickCharge = () => { - console.log("충전하기") router.push("/blockcharge") } diff --git a/components/pages/mypage/UserBottomMenu.tsx b/components/pages/mypage/UserBottomMenu.tsx index 80f815d..044f40a 100644 --- a/components/pages/mypage/UserBottomMenu.tsx +++ b/components/pages/mypage/UserBottomMenu.tsx @@ -29,8 +29,6 @@ export default function UserBottomMenu() { }) .then((res) => { setAuthorNickname(res.data); - console.log(res.data) - console.log(authorNickname) }) }, []) diff --git a/components/pages/mypage/UserHoldBlock.tsx b/components/pages/mypage/UserHoldBlock.tsx index 53140f1..ad9f36c 100644 --- a/components/pages/mypage/UserHoldBlock.tsx +++ b/components/pages/mypage/UserHoldBlock.tsx @@ -27,7 +27,6 @@ export default function UserHoldBlock() { }, }); const totalBlocks = res.data.data.totalBlocks; - console.log(totalBlocks); setTotalBlock({ data: { totalBlocks, diff --git a/components/pages/mypage/UserIcon.tsx b/components/pages/mypage/UserIcon.tsx index 50e4f53..b237f03 100644 --- a/components/pages/mypage/UserIcon.tsx +++ b/components/pages/mypage/UserIcon.tsx @@ -28,7 +28,6 @@ export default function UserIcon() { role, }, }); - console.log(Role) }) }, []) diff --git a/components/pages/mypage/UserNickName.tsx b/components/pages/mypage/UserNickName.tsx index 47e9c7e..41d85cb 100644 --- a/components/pages/mypage/UserNickName.tsx +++ b/components/pages/mypage/UserNickName.tsx @@ -45,11 +45,8 @@ export default function UserNickName() { profileSkin, } }); - console.log(res.data) - console.log(userImg) } catch (err) { - console.log(err); } }; fetchData(); diff --git a/components/pages/nftbox/NFTStorageBox.tsx b/components/pages/nftbox/NFTStorageBox.tsx index 0b9f85a..0db4ead 100644 --- a/components/pages/nftbox/NFTStorageBox.tsx +++ b/components/pages/nftbox/NFTStorageBox.tsx @@ -34,8 +34,6 @@ export default function NFTStorageBox() { }) .then((res) => { setNftList(res.data) - console.log(nftList) - console.log(res.data.data) }) .catch((err) => { console.log(err) diff --git a/components/pages/search/HistoryKeyword.tsx b/components/pages/search/HistoryKeyword.tsx index 8b8a789..04d2de6 100644 --- a/components/pages/search/HistoryKeyword.tsx +++ b/components/pages/search/HistoryKeyword.tsx @@ -5,55 +5,54 @@ import style from '@/components/pages/search/HistoryKeyword.module.css' import { Keyword } from '@/types/searchKeywords'; export default function HistoryKeyword(props: { - keywords: Keyword[], - handleRemoveKeyword: (id: number) => void, - handleAllRemoveKeyword: () => void, - handleSearch: (keyword: string) => void, - setValue: Dispatch>, + keywords: Keyword[], + handleRemoveKeyword: (id: number) => void, + handleAllRemoveKeyword: () => void, + handleSearch: (keyword: string) => void, + setValue: Dispatch>, }) { - const keywords = props.keywords; + const keywords = props.keywords; - return ( -
-
-

최근 검색어

- { - keywords.length ? - (
-

전체 삭제

-
) - : "" - } -
-
- { - keywords.length ? ( - keywords.map((item) => ( -
-
-
{ - console.log('클릭') - props.setValue(item.keyword); - props.handleSearch(item.keyword); - }}> -

{item.keyword}

-
-
- {"close"} props.handleRemoveKeyword(item.id)} - priority - /> -
-
-
- )) - ) : "" - } -
-
- ) + return ( +
+
+

최근 검색어

+ { + keywords.length ? + (
+

전체 삭제

+
) + : "" + } +
+
+ { + keywords.length ? ( + keywords.map((item) => ( +
+
+
{ + props.setValue(item.keyword); + props.handleSearch(item.keyword); + }}> +

{item.keyword}

+
+
+ {"close"} props.handleRemoveKeyword(item.id)} + priority + /> +
+
+
+ )) + ) : "" + } +
+
+ ) } \ No newline at end of file diff --git a/components/pages/store/NftStore.tsx b/components/pages/store/NftStore.tsx index 5f11b56..ee295b4 100644 --- a/components/pages/store/NftStore.tsx +++ b/components/pages/store/NftStore.tsx @@ -74,7 +74,6 @@ export default function NftStore(props: { data: userDataType }) { useEffect(() => { axios.get(`https://blockpage.site/purchase-service/v1/products?type=nft`) .then((res) => { - console.log(res); setNftData(res.data.data); }) .catch((err) => { @@ -86,7 +85,6 @@ export default function NftStore(props: { data: userDataType }) { headers: { memberId: session.email } }) .then((res) => { - console.log(res); setMyBlock(res.data.data.totalBlocks) }) .catch((err) => { diff --git a/components/pages/store/ProfileStore.tsx b/components/pages/store/ProfileStore.tsx index 3ea0c1e..3d62e6e 100644 --- a/components/pages/store/ProfileStore.tsx +++ b/components/pages/store/ProfileStore.tsx @@ -76,7 +76,6 @@ export default function ProfileStore(props: { data: userDataType }) { useEffect(() => { axios.get(`https://blockpage.site/purchase-service/v1/products?type=profileSkin`) .then((res) => { - console.log(res); setSkinData(res.data.data); }) .catch((err) => { @@ -88,7 +87,6 @@ export default function ProfileStore(props: { data: userDataType }) { headers: { memberId: session.email } }) .then((res) => { - console.log(res); setMyBlock(res.data.data.totalBlocks) }) .catch((err) => { @@ -99,7 +97,6 @@ export default function ProfileStore(props: { data: userDataType }) { headers: { memberId: session.email } }) .then((res) => { - console.log(res.data.data); setMySkin(res.data.data); }) .catch((err) => { diff --git a/components/pages/store/StoreNavSection.tsx b/components/pages/store/StoreNavSection.tsx index 1ac04f2..3c8c71e 100644 --- a/components/pages/store/StoreNavSection.tsx +++ b/components/pages/store/StoreNavSection.tsx @@ -14,7 +14,6 @@ export default function StoreNavSection() { const router = useRouter(); const { storeName } = router.query; - console.log(storeName) return (
diff --git a/components/pages/webtoonepisode/EpisodeSection.tsx b/components/pages/webtoonepisode/EpisodeSection.tsx index e433a09..2ef5f3f 100644 --- a/components/pages/webtoonepisode/EpisodeSection.tsx +++ b/components/pages/webtoonepisode/EpisodeSection.tsx @@ -120,11 +120,8 @@ export default function EpisodeSection(props: { data: WebToonListDataType, episo ]) .then( axios.spread((getBlock, free, paid) => { - console.log(getBlock) setMyBlock(getBlock.data.data.totalBlocks); - // const freeData = free.data.data; setFreeData(free.data.data); - // const paidData = paid.data.data; setPaidData(paid.data.data); }) ) diff --git a/components/pages/webtooninfo/AuthorWebtoonInfoForm.tsx b/components/pages/webtooninfo/AuthorWebtoonInfoForm.tsx index 1317c34..bc27539 100644 --- a/components/pages/webtooninfo/AuthorWebtoonInfoForm.tsx +++ b/components/pages/webtooninfo/AuthorWebtoonInfoForm.tsx @@ -45,8 +45,6 @@ export default function AuthorWebtoonInfoForm() { creatorNickname, }, }); - console.log(res.data) - console.log(authorName) }) }, []) @@ -80,8 +78,6 @@ export default function AuthorWebtoonInfoForm() { } }; - console.log(webtoonInfoData) - const handleSubmit = async (e: React.FormEvent) => { e.preventDefault(); if (webtoonInfoData.webtoonTitle === '' || webtoonInfoData.webtoonDescription === '' || !webtoonInfoData.genre || !webtoonInfoData.publicationDays) { @@ -118,7 +114,6 @@ export default function AuthorWebtoonInfoForm() { }, ) .then((res) => { - console.log(res) Swal.fire({ icon: 'success', title: '웹툰이 등록 되었습니다.', diff --git a/components/ui/AuthorNickName.tsx b/components/ui/AuthorNickName.tsx index 55c5932..b7bddec 100644 --- a/components/ui/AuthorNickName.tsx +++ b/components/ui/AuthorNickName.tsx @@ -67,9 +67,6 @@ export default function AuthorNickName() { fetchData(); }, []) - console.log(authorNickName); - console.log(userprofile); - return ( <>
diff --git a/pages/api/auth/[...nextauth].ts b/pages/api/auth/[...nextauth].ts index 67c6f54..f1b9169 100644 --- a/pages/api/auth/[...nextauth].ts +++ b/pages/api/auth/[...nextauth].ts @@ -48,15 +48,12 @@ export const authOptions: NextAuthOptions = { }, async jwt({ token, user, account }) { if (user) { - console.log(user); token.id = user.id; token.email = user.email; token.name = user.name; } if (account) { token.accessToken = account.access_token; - - console.log(account); } return token; }, diff --git a/pages/authorworkslist/[webtoonId]/changewebtoon.tsx b/pages/authorworkslist/[webtoonId]/changewebtoon.tsx index 8d1f314..8a41bc4 100644 --- a/pages/authorworkslist/[webtoonId]/changewebtoon.tsx +++ b/pages/authorworkslist/[webtoonId]/changewebtoon.tsx @@ -5,40 +5,37 @@ import { NextPageWithLayout } from "@/pages/_app" import { Params } from "next/dist/shared/lib/router/utils/route-matcher" interface EpisodeListProps { - webtoonId: number; + webtoonId: number; } const ChangeWebtoon: NextPageWithLayout = ({ webtoonId }) => { - console.log(webtoonId); - - return ( - <> - - - - ) + + return ( + <> + + + + ) } ChangeWebtoon.getLayout = function getLayout(ChangeWebtoon: React.ReactElement) { - return ( - - {ChangeWebtoon} - - ) + return ( + + {ChangeWebtoon} + + ) } export default ChangeWebtoon export async function getServerSideProps(context: Params) { - const { webtoonId } = context.query; - - console.log(webtoonId); + const { webtoonId } = context.query; - return { - props: { - webtoonId, - }, - }; + return { + props: { + webtoonId, + }, + }; } ChangeWebtoon.auth = true \ No newline at end of file diff --git a/pages/episodelist/[webtoonId]/episode/[episodeNumber]/changeepisode.tsx b/pages/episodelist/[webtoonId]/episode/[episodeNumber]/changeepisode.tsx index 3ad84ae..cffc2f3 100644 --- a/pages/episodelist/[webtoonId]/episode/[episodeNumber]/changeepisode.tsx +++ b/pages/episodelist/[webtoonId]/episode/[episodeNumber]/changeepisode.tsx @@ -11,8 +11,6 @@ interface EpisodeListProps { } const ChangeEpisode: NextPageWithLayout = ({ webtoonId, episodeNumber }) => { - console.log(webtoonId); - console.log(episodeNumber); return ( <> @@ -36,8 +34,6 @@ export async function getServerSideProps(context: Params) { const { webtoonId } = context.query; const { episodeNumber } = context.query; - console.log(webtoonId); - return { props: { webtoonId, diff --git a/pages/episodelist/[webtoonId]/episodeinfo.tsx b/pages/episodelist/[webtoonId]/episodeinfo.tsx index 89663c2..e0bbcf7 100644 --- a/pages/episodelist/[webtoonId]/episodeinfo.tsx +++ b/pages/episodelist/[webtoonId]/episodeinfo.tsx @@ -6,40 +6,37 @@ import { Params } from "next/dist/shared/lib/router/utils/route-matcher"; interface EpisodeListProps { - webtoonId: number; + webtoonId: number; } const EpisodeInfo: NextPageWithLayout = ({ webtoonId }) => { - console.log(webtoonId); - - return ( - <> - - - - ) + + return ( + <> + + + + ) } EpisodeInfo.getLayout = function getLayout(EpisodeInfo: React.ReactElement) { - return ( - - {EpisodeInfo} - - ) + return ( + + {EpisodeInfo} + + ) } export default EpisodeInfo export async function getServerSideProps(context: Params) { - const { webtoonId } = context.query; - - console.log(webtoonId); + const { webtoonId } = context.query; - return { - props: { - webtoonId, - }, - }; + return { + props: { + webtoonId, + }, + }; } EpisodeInfo.auth = true \ No newline at end of file diff --git a/pages/episodelist/[webtoonId]/index.tsx b/pages/episodelist/[webtoonId]/index.tsx index a708394..03014dc 100644 --- a/pages/episodelist/[webtoonId]/index.tsx +++ b/pages/episodelist/[webtoonId]/index.tsx @@ -13,7 +13,6 @@ interface EpisodeListProps { } const EpisodeListPage: NextPageWithLayout = ({ webtoonId }) => { - console.log(webtoonId) return ( <> diff --git a/pages/index.tsx b/pages/index.tsx index 37f3e85..c534823 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -32,7 +32,6 @@ export default Main export async function getServerSideProps(context: any) { const gameRes = gameEventData - console.log(gameRes) return { props: { diff --git a/pages/kakao.tsx b/pages/kakao.tsx index 661743e..572a55d 100644 --- a/pages/kakao.tsx +++ b/pages/kakao.tsx @@ -6,8 +6,6 @@ export default function Kakao() { const { data } = useSession() const [kakaoUser, setKakaoUser] = React.useState(null) - console.log(data) - console.log(data?.id) useEffect(() => { const getUserData = async () => { diff --git a/pages/store/[storeName].tsx b/pages/store/[storeName].tsx index 3a7abdc..c941e76 100644 --- a/pages/store/[storeName].tsx +++ b/pages/store/[storeName].tsx @@ -57,7 +57,6 @@ export async function getServerSideProps(context: any) { } else { const res = await axios.get(`https://blockpage.site/purchase-service/v1/products?type=nft`); const data = res.data.data; - console.log(data); return { props: { data } } diff --git a/pages/webtoon/[webtoonId]/episode/[episodeId]/episode/[episodeNumber]/index.tsx b/pages/webtoon/[webtoonId]/episode/[episodeId]/episode/[episodeNumber]/index.tsx index c8d44e4..0916fdb 100644 --- a/pages/webtoon/[webtoonId]/episode/[episodeId]/episode/[episodeNumber]/index.tsx +++ b/pages/webtoon/[webtoonId]/episode/[episodeId]/episode/[episodeNumber]/index.tsx @@ -18,7 +18,6 @@ function EpisodeId(props: { data: EpisodeViewDataType }) { const handleScroll = () => { if (window.scrollY + window.innerHeight > document.body.offsetHeight - 100) { - console.log("isViewer : ", isViewer) setIsViewer(true); } else { setIsViewer(false); @@ -43,7 +42,6 @@ export async function getServerSideProps(context: any) { const res = await axios.get(`https://blockpage.site/webtoon-service/v1/episodes/view?episodeId=${episodeId}&webtoonId=${webtoonId}&episodeNumber=${episodeNumber}`) const data = res.data; - console.log(data); return { props: { data } diff --git a/public/sw.js.map b/public/sw.js.map index b8d89b7..70dbac9 100644 --- a/public/sw.js.map +++ b/public/sw.js.map @@ -1 +1 @@ -{"version":3,"file":"sw.js","sources":["../../../AppData/Local/Temp/307a40539e802060939e79b3ff8fb527/sw.js"],"sourcesContent":["import {registerRoute as workbox_routing_registerRoute} from 'C:/Users/교육생36/Desktop/blockpage_publish/FE-publishing/node_modules/workbox-routing/registerRoute.mjs';\nimport {NetworkFirst as workbox_strategies_NetworkFirst} from 'C:/Users/교육생36/Desktop/blockpage_publish/FE-publishing/node_modules/workbox-strategies/NetworkFirst.mjs';\nimport {NetworkOnly as workbox_strategies_NetworkOnly} from 'C:/Users/교육생36/Desktop/blockpage_publish/FE-publishing/node_modules/workbox-strategies/NetworkOnly.mjs';\nimport {clientsClaim as workbox_core_clientsClaim} from 'C:/Users/교육생36/Desktop/blockpage_publish/FE-publishing/node_modules/workbox-core/clientsClaim.mjs';/**\n * Welcome to your Workbox-powered service worker!\n *\n * You'll need to register this file in your web app.\n * See https://goo.gl/nhQhGp\n *\n * The rest of the code is auto-generated. Please don't update this file\n * directly; instead, make changes to your Workbox build configuration\n * and re-run your build process.\n * See https://goo.gl/2aRDsh\n */\n\n\nimportScripts(\n \n);\n\n\n\n\n\n\n\nself.skipWaiting();\n\nworkbox_core_clientsClaim();\n\n\n\nworkbox_routing_registerRoute(\"/\", new workbox_strategies_NetworkFirst({ \"cacheName\":\"start-url\", plugins: [{ cacheWillUpdate: async ({ request, response, event, state }) => { if (response && response.type === 'opaqueredirect') { return new Response(response.body, { status: 200, statusText: 'OK', headers: response.headers }) } return response } }] }), 'GET');\nworkbox_routing_registerRoute(/.*/i, new workbox_strategies_NetworkOnly({ \"cacheName\":\"dev\", plugins: [] }), 'GET');\n\n\n\n\nself.__WB_DISABLE_DEV_LOGS = true;"],"names":["importScripts","self","skipWaiting","workbox_core_clientsClaim","workbox_routing_registerRoute","workbox_strategies_NetworkFirst","cacheName","plugins","cacheWillUpdate","async","request","response","event","state","type","Response","body","status","statusText","headers","workbox_strategies_NetworkOnly","__WB_DISABLE_DEV_LOGS"],"mappings":"0nBAgBAA,gBAUAC,KAAKC,cAELC,EAAAA,eAIAC,EAAAA,cAA8B,IAAK,IAAIC,eAAgC,CAAEC,UAAY,YAAaC,QAAS,CAAC,CAAEC,gBAAiBC,OAASC,UAASC,WAAUC,QAAOC,WAAkBF,GAA8B,mBAAlBA,EAASG,KAAoC,IAAIC,SAASJ,EAASK,KAAM,CAAEC,OAAQ,IAAKC,WAAY,KAAMC,QAASR,EAASQ,UAAoBR,MAAkB,OAClWP,EAAAA,cAA8B,MAAO,IAAIgB,cAA+B,CAAEd,UAAY,MAAOC,QAAS,KAAO,OAK7GN,KAAKoB,uBAAwB"} \ No newline at end of file +{"version":3,"file":"sw.js","sources":["../../../AppData/Local/Temp/b1e6d0ed12fe492d61562967bcd305b8/sw.js"],"sourcesContent":["import {registerRoute as workbox_routing_registerRoute} from 'C:/Users/교육생36/Desktop/blockpage_publish/FE-publishing/node_modules/workbox-routing/registerRoute.mjs';\nimport {NetworkFirst as workbox_strategies_NetworkFirst} from 'C:/Users/교육생36/Desktop/blockpage_publish/FE-publishing/node_modules/workbox-strategies/NetworkFirst.mjs';\nimport {NetworkOnly as workbox_strategies_NetworkOnly} from 'C:/Users/교육생36/Desktop/blockpage_publish/FE-publishing/node_modules/workbox-strategies/NetworkOnly.mjs';\nimport {clientsClaim as workbox_core_clientsClaim} from 'C:/Users/교육생36/Desktop/blockpage_publish/FE-publishing/node_modules/workbox-core/clientsClaim.mjs';/**\n * Welcome to your Workbox-powered service worker!\n *\n * You'll need to register this file in your web app.\n * See https://goo.gl/nhQhGp\n *\n * The rest of the code is auto-generated. Please don't update this file\n * directly; instead, make changes to your Workbox build configuration\n * and re-run your build process.\n * See https://goo.gl/2aRDsh\n */\n\n\nimportScripts(\n \n);\n\n\n\n\n\n\n\nself.skipWaiting();\n\nworkbox_core_clientsClaim();\n\n\n\nworkbox_routing_registerRoute(\"/\", new workbox_strategies_NetworkFirst({ \"cacheName\":\"start-url\", plugins: [{ cacheWillUpdate: async ({ request, response, event, state }) => { if (response && response.type === 'opaqueredirect') { return new Response(response.body, { status: 200, statusText: 'OK', headers: response.headers }) } return response } }] }), 'GET');\nworkbox_routing_registerRoute(/.*/i, new workbox_strategies_NetworkOnly({ \"cacheName\":\"dev\", plugins: [] }), 'GET');\n\n\n\n\nself.__WB_DISABLE_DEV_LOGS = true;"],"names":["importScripts","self","skipWaiting","workbox_core_clientsClaim","workbox_routing_registerRoute","workbox_strategies_NetworkFirst","cacheName","plugins","cacheWillUpdate","async","request","response","event","state","type","Response","body","status","statusText","headers","workbox_strategies_NetworkOnly","__WB_DISABLE_DEV_LOGS"],"mappings":"0nBAgBAA,gBAUAC,KAAKC,cAELC,EAAAA,eAIAC,EAAAA,cAA8B,IAAK,IAAIC,eAAgC,CAAEC,UAAY,YAAaC,QAAS,CAAC,CAAEC,gBAAiBC,OAASC,UAASC,WAAUC,QAAOC,WAAkBF,GAA8B,mBAAlBA,EAASG,KAAoC,IAAIC,SAASJ,EAASK,KAAM,CAAEC,OAAQ,IAAKC,WAAY,KAAMC,QAASR,EAASQ,UAAoBR,MAAkB,OAClWP,EAAAA,cAA8B,MAAO,IAAIgB,cAA+B,CAAEd,UAAY,MAAOC,QAAS,KAAO,OAK7GN,KAAKoB,uBAAwB"} \ No newline at end of file