forked from kookmin-sw/cap-template
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/kookmin-sw/capstone-2024-43
- Loading branch information
Showing
15 changed files
with
233 additions
and
76 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# 📍14차 회의 | ||
+ 날짜 : 2024-05-08 | ||
+ 장소 : 미래관 424 | ||
|
||
--- | ||
|
||
# 📍회의 내용 | ||
+ 각자 개발한 것 공유 | ||
+ 모달 설정할 때 DB에서 리뷰데이터를 가져오기 함 | ||
+ AWS 가입 | ||
|
||
## 📍개인 별 개발 성과 | ||
+ 유현석: | ||
+ 이기서: DB에서 50자 이상, 최근 작성된 리뷰들 필터링해서 가져오기, 가져온 데이터를 추천하는 알고리즘 구현완료 | ||
+ 박정빈: DB 스키마 구성, 블러 박스 생성, 모달창 생성 | ||
+ 남혜영: 에디터 라이브러리를 어느 정도 마무리했으나 저장에 대한 구현을 제대로 하지 못함 | ||
|
||
## 📍교수님 피드백 | ||
+ 이기서: DB에서 작성날짜 기준 최근 가져온 리뷰들이 연관성이 없는 리뷰들만 있다면?? -> 상대적으로 비교하여 정렬 후 상위값만 포스팅하는 것은 한계가 있음, 절대적인 유사도 수치 기준이 필요함 절대적인 유사도 수치가 넘는 리뷰가 20개 미만이라면?? -> 절대적 유사도 수치를 넘는 유사한 리뷰가 20개가 될 때까지 이전 과정 반복 | ||
+ 접근성을 고려하여 휴대폰 웹에서도 사용할 수 있도록 만들자 | ||
+ 저장 기능을 구현할 때 제대로 되는지, 임시저장 시 어떻게 저장할 것인지, 누군가 보고 있을 때 수정이 들어간다면 어떻게 할 것인지 | ||
|
||
## 📍다음 미팅까지 목표 | ||
+ 유현석: | ||
+ 이기서: 교수님 피드백 적용, 웹사이트에 포스팅 구현, 프로시져 구현(가져왔던 리뷰들은 DB에서 가져올 때 제외) | ||
+ 박정빈: 모달-DB 연결 , 추천알고리즘 무한스크롤에 적용 | ||
+ 남혜영: 저장 기능이 제대로 기능하도록 오류 해결 |
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,14 @@ | ||
import React from "react"; | ||
import styles from "../css/MoreButton.module.css" | ||
function MoreButton({nav}){ | ||
// const moreButton = document.querySelector(`.${styles.MoreButton}`) | ||
// moreButton.addEventListener('click',()=>{}) | ||
return (<> | ||
<div className={styles.MoreButton}> | ||
|
||
</div> | ||
|
||
</>); | ||
} | ||
|
||
export default MoreButton; |
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,6 +1,57 @@ | ||
function MorePage(){// 더보기 페이지 | ||
// | ||
import React, { useEffect, useState } from "react"; | ||
import { useSelector } from "react-redux"; | ||
import styles from "../css/MorePage.module.css"; | ||
import MoreButton from "./MoreButton"; | ||
function MorePage() { | ||
const UID = useSelector(state => state.UID); | ||
const [posts, setPosts] = useState([]); | ||
|
||
useEffect(() => {//화면이 렌더 될 때 글 목록을 가져온다. | ||
if (UID !== '') { | ||
fetch("/api/library", { | ||
method: "POST", | ||
headers: { | ||
'Content-Type': 'application/json' | ||
}, | ||
body: JSON.stringify({UID: UID}) | ||
}) | ||
.then(res => res.json()) | ||
.then(data => { | ||
setPosts(data.result); | ||
}) | ||
.catch(error => { | ||
console.error("Error:", error); | ||
}); | ||
} | ||
}, []); | ||
|
||
return ( | ||
<> | ||
<div className={styles.box}> | ||
{/* Functional buttons */} | ||
<div className={styles.buttonBox}> | ||
{/* 정보수정,공지사항,문의하기,로그아웃 */} | ||
<div></div><div></div><div></div><div></div> | ||
|
||
</div> | ||
{/* Written Posts */} | ||
<div className={styles.libraryBox}> | ||
<h2>내 서재</h2> | ||
<div className={styles.postsContainer}> | ||
{posts.map(post => ( | ||
<div key={post.postID} className={styles.postBox}> | ||
{post.title} {/* Assuming posts have a title property */} | ||
</div> | ||
))} | ||
</div> | ||
</div> | ||
{/* Drafts */} | ||
<div className={styles.libraryBox}> | ||
{/* Other components for drafts could be similar */} | ||
</div> | ||
</div> | ||
</> | ||
); | ||
} | ||
|
||
export default MorePage; | ||
export default MorePage; |
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
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
Empty file.
Oops, something went wrong.