\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n}\r\n\r\nexport default App;\r\n","C:\\Users\\hello\\Desktop\\project\\search-page\\client\\src\\Components\\PrivateRoute.js",[],"C:\\Users\\hello\\Desktop\\project\\search-page\\client\\src\\Bookmark.js",["74","75","76","77","78","79","80","81","82","83","84","85","86","87"],{"ruleId":"88","replacedBy":"89"},{"ruleId":"90","replacedBy":"91"},{"ruleId":"92","severity":1,"message":"93","line":3,"column":33,"nodeType":"94","messageId":"95","endLine":3,"endColumn":36},{"ruleId":"92","severity":1,"message":"96","line":3,"column":46,"nodeType":"94","messageId":"95","endLine":3,"endColumn":51},{"ruleId":"92","severity":1,"message":"97","line":3,"column":53,"nodeType":"94","messageId":"95","endLine":3,"endColumn":57},{"ruleId":"92","severity":1,"message":"98","line":3,"column":59,"nodeType":"94","messageId":"95","endLine":3,"endColumn":68},{"ruleId":"92","severity":1,"message":"99","line":3,"column":70,"nodeType":"94","messageId":"95","endLine":3,"endColumn":78},{"ruleId":"100","severity":1,"message":"101","line":20,"column":6,"nodeType":"102","endLine":20,"endColumn":8,"suggestions":"103"},{"ruleId":"92","severity":1,"message":"104","line":5,"column":83,"nodeType":"94","messageId":"95","endLine":5,"endColumn":88},{"ruleId":"92","severity":1,"message":"105","line":22,"column":12,"nodeType":"94","messageId":"95","endLine":22,"endColumn":18},{"ruleId":"92","severity":1,"message":"106","line":23,"column":12,"nodeType":"94","messageId":"95","endLine":23,"endColumn":16},{"ruleId":"92","severity":1,"message":"107","line":24,"column":18,"nodeType":"94","messageId":"95","endLine":24,"endColumn":25},{"ruleId":"92","severity":1,"message":"108","line":25,"column":12,"nodeType":"94","messageId":"95","endLine":25,"endColumn":19},{"ruleId":"92","severity":1,"message":"109","line":26,"column":12,"nodeType":"94","messageId":"95","endLine":26,"endColumn":17},{"ruleId":"92","severity":1,"message":"110","line":28,"column":11,"nodeType":"94","messageId":"95","endLine":28,"endColumn":22},{"ruleId":"92","severity":1,"message":"111","line":29,"column":11,"nodeType":"94","messageId":"95","endLine":29,"endColumn":21},{"ruleId":"92","severity":1,"message":"112","line":84,"column":19,"nodeType":"94","messageId":"95","endLine":84,"endColumn":27},{"ruleId":"113","severity":1,"message":"114","line":106,"column":35,"nodeType":"115","endLine":106,"endColumn":76},{"ruleId":"92","severity":1,"message":"116","line":1,"column":17,"nodeType":"94","messageId":"95","endLine":1,"endColumn":26},{"ruleId":"92","severity":1,"message":"117","line":2,"column":10,"nodeType":"94","messageId":"95","endLine":2,"endColumn":14},{"ruleId":"92","severity":1,"message":"118","line":4,"column":64,"nodeType":"94","messageId":"95","endLine":4,"endColumn":75},{"ruleId":"92","severity":1,"message":"119","line":4,"column":77,"nodeType":"94","messageId":"95","endLine":4,"endColumn":83},{"ruleId":"92","severity":1,"message":"116","line":1,"column":27,"nodeType":"94","messageId":"95","endLine":1,"endColumn":36},{"ruleId":"92","severity":1,"message":"120","line":2,"column":10,"nodeType":"94","messageId":"95","endLine":2,"endColumn":15},{"ruleId":"92","severity":1,"message":"93","line":2,"column":17,"nodeType":"94","messageId":"95","endLine":2,"endColumn":20},{"ruleId":"92","severity":1,"message":"97","line":2,"column":22,"nodeType":"94","messageId":"95","endLine":2,"endColumn":26},{"ruleId":"92","severity":1,"message":"121","line":2,"column":45,"nodeType":"94","messageId":"95","endLine":2,"endColumn":48},{"ruleId":"92","severity":1,"message":"122","line":2,"column":50,"nodeType":"94","messageId":"95","endLine":2,"endColumn":56},{"ruleId":"92","severity":1,"message":"123","line":2,"column":82,"nodeType":"94","messageId":"95","endLine":2,"endColumn":87},{"ruleId":"92","severity":1,"message":"124","line":2,"column":89,"nodeType":"94","messageId":"95","endLine":2,"endColumn":94},{"ruleId":"92","severity":1,"message":"125","line":5,"column":10,"nodeType":"94","messageId":"95","endLine":5,"endColumn":18},{"ruleId":"92","severity":1,"message":"108","line":14,"column":12,"nodeType":"94","messageId":"95","endLine":14,"endColumn":19},{"ruleId":"92","severity":1,"message":"109","line":15,"column":12,"nodeType":"94","messageId":"95","endLine":15,"endColumn":17},{"ruleId":"92","severity":1,"message":"126","line":18,"column":14,"nodeType":"94","messageId":"95","endLine":18,"endColumn":26},{"ruleId":"92","severity":1,"message":"127","line":23,"column":20,"nodeType":"94","messageId":"95","endLine":23,"endColumn":32},{"ruleId":"92","severity":1,"message":"128","line":38,"column":11,"nodeType":"94","messageId":"95","endLine":38,"endColumn":19},"no-native-reassign",["129"],"no-negated-in-lhs",["130"],"no-unused-vars","'Col' is defined but never used.","Identifier","unusedVar","'Badge' is defined but never used.","'Card' is defined but never used.","'Accordion' is defined but never used.","'Carousel' is defined but never used.","react-hooks/exhaustive-deps","React Hook useEffect has a missing dependency: 'getReview'. Either include it or remove the dependency array.","ArrayExpression",["131"],"'Modal' is defined but never used.","'mobile' is assigned a value but never used.","'show' is assigned a value but never used.","'setPage' is assigned a value but never used.","'success' is assigned a value but never used.","'error' is assigned a value but never used.","'handleClose' is assigned a value but never used.","'handleShow' is assigned a value but never used.","'response' is assigned a value but never used.","react/jsx-no-duplicate-props","No duplicate props allowed","JSXAttribute","'useEffect' is defined but never used.","'Link' is defined but never used.","'FormControl' is defined but never used.","'Navbar' is defined but never used.","'Alert' is defined but never used.","'Row' is defined but never used.","'Button' is defined but never used.","'Image' is defined but never used.","'Table' is defined but never used.","'Redirect' is defined but never used.","'handleChange' is defined but never used.","'handleSubmit' is defined but never used.","'add_Page' is assigned a value but never used.","no-global-assign","no-unsafe-negation",{"desc":"132","fix":"133"},"Update the dependencies array to be: [getReview]",{"range":"134","text":"135"},[581,583],"[getReview]"]
\ No newline at end of file
+[{"C:\\Users\\hello\\Desktop\\project\\search-page\\client\\src\\index.js":"1","C:\\Users\\hello\\Desktop\\project\\search-page\\client\\src\\reportWebVitals.js":"2","C:\\Users\\hello\\Desktop\\project\\search-page\\client\\src\\Components\\Place.js":"3","C:\\Users\\hello\\Desktop\\project\\search-page\\client\\src\\Components\\Login.js":"4","C:\\Users\\hello\\Desktop\\project\\search-page\\client\\src\\utils\\catchErrors.js":"5","C:\\Users\\hello\\Desktop\\project\\search-page\\client\\src\\Components\\Signup.js":"6","C:\\Users\\hello\\Desktop\\project\\search-page\\client\\src\\utils\\auth.js":"7","C:\\Users\\hello\\Desktop\\project\\search-page\\client\\src\\Components\\Paginations.js":"8","C:\\Users\\hello\\Desktop\\project\\search-page\\client\\src\\Search.js":"9","C:\\Users\\hello\\Desktop\\project\\search-page\\client\\src\\App.js":"10","C:\\Users\\hello\\Desktop\\project\\search-page\\client\\src\\Components\\PrivateRoute.js":"11","C:\\Users\\hello\\Desktop\\project\\search-page\\client\\src\\Bookmark.js":"12"},{"size":1368,"mtime":1611270972548,"results":"13","hashOfConfig":"14"},{"size":362,"mtime":499162500000,"results":"15","hashOfConfig":"14"},{"size":1586,"mtime":1611491429445,"results":"16","hashOfConfig":"14"},{"size":3075,"mtime":1611489617094,"results":"17","hashOfConfig":"14"},{"size":405,"mtime":1609915408569,"results":"18","hashOfConfig":"14"},{"size":2995,"mtime":1611489922054,"results":"19","hashOfConfig":"14"},{"size":670,"mtime":1611493895142,"results":"20","hashOfConfig":"14"},{"size":2199,"mtime":1610503781980,"results":"21","hashOfConfig":"14"},{"size":11142,"mtime":1611489922078,"results":"22","hashOfConfig":"14"},{"size":2110,"mtime":1611491700525,"results":"23","hashOfConfig":"14"},{"size":486,"mtime":1611489922054,"results":"24","hashOfConfig":"14"},{"size":2226,"mtime":1611489922053,"results":"25","hashOfConfig":"14"},{"filePath":"26","messages":"27","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"28"},"1t9w6go",{"filePath":"29","messages":"30","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"28"},{"filePath":"31","messages":"32","errorCount":0,"warningCount":6,"fixableErrorCount":0,"fixableWarningCount":0,"source":"33","usedDeprecatedRules":"28"},{"filePath":"34","messages":"35","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"28"},{"filePath":"36","messages":"37","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"28"},{"filePath":"38","messages":"39","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"28"},{"filePath":"40","messages":"41","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"42","messages":"43","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"28"},{"filePath":"44","messages":"45","errorCount":0,"warningCount":10,"fixableErrorCount":0,"fixableWarningCount":0,"source":"46","usedDeprecatedRules":"28"},{"filePath":"47","messages":"48","errorCount":0,"warningCount":4,"fixableErrorCount":0,"fixableWarningCount":0,"source":"49","usedDeprecatedRules":"28"},{"filePath":"50","messages":"51","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"28"},{"filePath":"52","messages":"53","errorCount":0,"warningCount":14,"fixableErrorCount":0,"fixableWarningCount":0,"source":"54","usedDeprecatedRules":"28"},"C:\\Users\\hello\\Desktop\\project\\search-page\\client\\src\\index.js",[],["55","56"],"C:\\Users\\hello\\Desktop\\project\\search-page\\client\\src\\reportWebVitals.js",[],"C:\\Users\\hello\\Desktop\\project\\search-page\\client\\src\\Components\\Place.js",["57","58","59","60","61","62"],"import axios from 'axios';\r\nimport React, { useEffect, useState } from 'react';\r\nimport { Modal, Container, Row, Button, } from 'react-bootstrap';\r\n\r\nfunction Place(props) {\r\n<<<<<<< HEAD\r\n const [reviews, setReviews] = useState([]) \r\n const getReview = () => { //review를 서버에 연결해서\r\n axios.get(`/api/review/${props.search.name}`) \r\n=======\r\n const [reviews, setReviews] = useState([{ title: \"\", link: \"\", summery: \"\", content: \"\" }])\r\n const getReview = () => {\r\n axios.get(`/api/review/${props.search.name}`)\r\n>>>>>>> origin/BAE\r\n .then(res => {\r\n console.log(\"place res.data\", res.data)\r\n setReviews(res.data)\r\n })\r\n .catch(err => {\r\n console.log(err)\r\n })\r\n }\r\n\r\n useEffect(() => {\r\n getReview();\r\n }, [])\r\n\r\n return (\r\n \r\n \r\n \r\n {props.index + 1}. {props.search.name}\r\n \r\n \r\n \r\n \r\n {reviews.map((review, index) => {\r\n return (\r\n \r\n {review.title}\r\n
\r\n \r\n \r\n {place.name}\r\n \r\n \r\n \r\n \r\n {place.address} \r\n \r\n setShowSet([false, false, false, false])} />\r\n \r\n \r\n \r\n )\r\n })}\r\n \r\n { console.log(showSet)}\r\n {/* show가 전부 true로 바뀌어서 전부 다 보이게 되는 것이다. */}\r\n \r\n \r\n \r\n \r\n\r\n );\r\n}\r\n\r\nexport default Search\r\n\r\n// async function saveId(bookmarkId) {\r\n// await axios.put('/api/users', {userId:userId, bookmarkId:bookmarkId})\r\n// }\r\n\r\n// const bookmarksave = async (req, res) => {\r\n// const {userId, bookmarkId} = req.body\r\n// let bookmark = await Bookmark.findOne({bookmarkId:bookmarkId}).select('user')\r\n// }\r\n","C:\\Users\\hello\\Desktop\\project\\search-page\\client\\src\\App.js",["73","74","75","76"],"import React, { useEffect, useState } from 'react';\r\nimport { Link, Redirect } from 'react-router-dom';\r\nimport ohuh from './ohuh.PNG'\r\nimport { Container, Row, Form, Image, InputGroup, Button, Col, FormControl, Navbar, Nav } from 'react-bootstrap';\r\nimport { handleLogout, isAuthenticated } from './utils/auth.js'\r\n\r\nfunction App() {\r\n const [state, setState] = useState(false);\r\n const [search, setSearch] = useState(\"\");\r\n const user = isAuthenticated()\r\n\r\n if (state !== false) {\r\n return ;\r\n }\r\n\r\n const handleChange = (e) => {\r\n setSearch(e.target.value);\r\n }\r\n\r\n const handleSubmit = () => {\r\n setState(true);\r\n }\r\n\r\n return (\r\n \r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n}\r\n\r\nexport default App;\r\n","C:\\Users\\hello\\Desktop\\project\\search-page\\client\\src\\Components\\PrivateRoute.js",[],"C:\\Users\\hello\\Desktop\\project\\search-page\\client\\src\\Bookmark.js",["77","78","79","80","81","82","83","84","85","86","87","88","89","90"],"import React, { useState, useEffect } from 'react'\r\nimport { Alert, Col, Card, Container, Form, Row, Button, Nav, Navbar, ListGroup, Image, Table } from \"react-bootstrap\"\r\nimport axios from \"axios\"\r\nimport catchErrors from './utils/catchErrors.js'\r\nimport { Redirect } from 'react-router-dom'\r\n\r\nconst INIT_PAGE = {\r\n title: '',\r\n url: '',\r\n}\r\n\r\nfunction Bookmark() {\r\n const [page, setPage] = useState(INIT_PAGE)\r\n const [success, setSuccess] = useState(false)\r\n const [error, setError] = useState('')\r\n\r\n\r\n function handleChange(event) {\r\n const {title, value} = event.target\r\n setPage({...page, [title]: value})\r\n }\r\n\r\n async function handleSubmit(event) {\r\n event.preventDefault()\r\n try {\r\n setError('')\r\n const response = await axios.post('/api/users/bookmark ', page)\r\n console.log(response.data)\r\n console.log(page)\r\n // setUser(INIT_USER)\r\n setSuccess(true)\r\n } catch (error) {\r\n console.log(error)\r\n catchErrors(error, setError)\r\n }\r\n }\r\n\r\n const add_Page = [{\r\n title:'즐겨찾기1',\r\n url:'http://localhost:3000',\r\n }, {\r\n title:'즐겨찾기2',\r\n url:'https://www.naver.com/',\r\n }, {\r\n title:'즐겨찾기3',\r\n url:'https://www.youtube.com/watch?v=wo46N-LQK7o'\r\n }]\r\n\r\n return (\r\n \r\n \r\n 북마크\r\n \r\n {/* */}\r\n \r\n \r\n \r\n )\r\n}\r\n\r\nexport default Bookmark",{"ruleId":"91","replacedBy":"92"},{"ruleId":"93","replacedBy":"94"},{"ruleId":"95","severity":1,"message":"96","line":3,"column":33,"nodeType":"97","messageId":"98","endLine":3,"endColumn":36},{"ruleId":"95","severity":1,"message":"99","line":3,"column":46,"nodeType":"97","messageId":"98","endLine":3,"endColumn":51},{"ruleId":"95","severity":1,"message":"100","line":3,"column":53,"nodeType":"97","messageId":"98","endLine":3,"endColumn":57},{"ruleId":"95","severity":1,"message":"101","line":3,"column":59,"nodeType":"97","messageId":"98","endLine":3,"endColumn":68},{"ruleId":"95","severity":1,"message":"102","line":3,"column":70,"nodeType":"97","messageId":"98","endLine":3,"endColumn":78},{"ruleId":"103","severity":1,"message":"104","line":20,"column":6,"nodeType":"105","endLine":20,"endColumn":8,"suggestions":"106"},{"ruleId":"95","severity":1,"message":"107","line":5,"column":83,"nodeType":"97","messageId":"98","endLine":5,"endColumn":88},{"ruleId":"95","severity":1,"message":"108","line":22,"column":12,"nodeType":"97","messageId":"98","endLine":22,"endColumn":18},{"ruleId":"95","severity":1,"message":"109","line":23,"column":12,"nodeType":"97","messageId":"98","endLine":23,"endColumn":16},{"ruleId":"95","severity":1,"message":"110","line":24,"column":18,"nodeType":"97","messageId":"98","endLine":24,"endColumn":25},{"ruleId":"95","severity":1,"message":"111","line":25,"column":12,"nodeType":"97","messageId":"98","endLine":25,"endColumn":19},{"ruleId":"95","severity":1,"message":"112","line":26,"column":12,"nodeType":"97","messageId":"98","endLine":26,"endColumn":17},{"ruleId":"95","severity":1,"message":"113","line":28,"column":11,"nodeType":"97","messageId":"98","endLine":28,"endColumn":22},{"ruleId":"95","severity":1,"message":"114","line":29,"column":11,"nodeType":"97","messageId":"98","endLine":29,"endColumn":21},{"ruleId":"95","severity":1,"message":"115","line":84,"column":19,"nodeType":"97","messageId":"98","endLine":84,"endColumn":27},{"ruleId":"116","severity":1,"message":"117","line":106,"column":35,"nodeType":"118","endLine":106,"endColumn":76},{"ruleId":"95","severity":1,"message":"119","line":1,"column":17,"nodeType":"97","messageId":"98","endLine":1,"endColumn":26},{"ruleId":"95","severity":1,"message":"120","line":2,"column":10,"nodeType":"97","messageId":"98","endLine":2,"endColumn":14},{"ruleId":"95","severity":1,"message":"121","line":4,"column":64,"nodeType":"97","messageId":"98","endLine":4,"endColumn":75},{"ruleId":"95","severity":1,"message":"122","line":4,"column":77,"nodeType":"97","messageId":"98","endLine":4,"endColumn":83},{"ruleId":"95","severity":1,"message":"119","line":1,"column":27,"nodeType":"97","messageId":"98","endLine":1,"endColumn":36},{"ruleId":"95","severity":1,"message":"123","line":2,"column":10,"nodeType":"97","messageId":"98","endLine":2,"endColumn":15},{"ruleId":"95","severity":1,"message":"96","line":2,"column":17,"nodeType":"97","messageId":"98","endLine":2,"endColumn":20},{"ruleId":"95","severity":1,"message":"100","line":2,"column":22,"nodeType":"97","messageId":"98","endLine":2,"endColumn":26},{"ruleId":"95","severity":1,"message":"124","line":2,"column":45,"nodeType":"97","messageId":"98","endLine":2,"endColumn":48},{"ruleId":"95","severity":1,"message":"125","line":2,"column":50,"nodeType":"97","messageId":"98","endLine":2,"endColumn":56},{"ruleId":"95","severity":1,"message":"126","line":2,"column":82,"nodeType":"97","messageId":"98","endLine":2,"endColumn":87},{"ruleId":"95","severity":1,"message":"127","line":2,"column":89,"nodeType":"97","messageId":"98","endLine":2,"endColumn":94},{"ruleId":"95","severity":1,"message":"128","line":5,"column":10,"nodeType":"97","messageId":"98","endLine":5,"endColumn":18},{"ruleId":"95","severity":1,"message":"111","line":14,"column":12,"nodeType":"97","messageId":"98","endLine":14,"endColumn":19},{"ruleId":"95","severity":1,"message":"112","line":15,"column":12,"nodeType":"97","messageId":"98","endLine":15,"endColumn":17},{"ruleId":"95","severity":1,"message":"129","line":18,"column":14,"nodeType":"97","messageId":"98","endLine":18,"endColumn":26},{"ruleId":"95","severity":1,"message":"130","line":23,"column":20,"nodeType":"97","messageId":"98","endLine":23,"endColumn":32},{"ruleId":"95","severity":1,"message":"131","line":38,"column":11,"nodeType":"97","messageId":"98","endLine":38,"endColumn":19},"no-native-reassign",["132"],"no-negated-in-lhs",["133"],"no-unused-vars","'Col' is defined but never used.","Identifier","unusedVar","'Badge' is defined but never used.","'Card' is defined but never used.","'Accordion' is defined but never used.","'Carousel' is defined but never used.","react-hooks/exhaustive-deps","React Hook useEffect has a missing dependency: 'getReview'. Either include it or remove the dependency array.","ArrayExpression",["134"],"'Modal' is defined but never used.","'mobile' is assigned a value but never used.","'show' is assigned a value but never used.","'setPage' is assigned a value but never used.","'success' is assigned a value but never used.","'error' is assigned a value but never used.","'handleClose' is assigned a value but never used.","'handleShow' is assigned a value but never used.","'response' is assigned a value but never used.","react/jsx-no-duplicate-props","No duplicate props allowed","JSXAttribute","'useEffect' is defined but never used.","'Link' is defined but never used.","'FormControl' is defined but never used.","'Navbar' is defined but never used.","'Alert' is defined but never used.","'Row' is defined but never used.","'Button' is defined but never used.","'Image' is defined but never used.","'Table' is defined but never used.","'Redirect' is defined but never used.","'handleChange' is defined but never used.","'handleSubmit' is defined but never used.","'add_Page' is assigned a value but never used.","no-global-assign","no-unsafe-negation",{"desc":"135","fix":"136"},"Update the dependencies array to be: [getReview]",{"range":"137","text":"138"},[581,583],"[getReview]"]
\ No newline at end of file
diff --git a/client/src/App.js b/client/src/App.js
index 7b45af231fb74d5dd26bf2c4f7dbe30781ddac73..6cd15a1edd4701c418d424caf235cfee91cec445 100644
--- a/client/src/App.js
+++ b/client/src/App.js
@@ -18,17 +18,17 @@ function App() {
const handleChange = (e) => {
setSearch(e.target.value);
- }
+ } //바뀌는 것이 있을때 이벤트 발생
const handleSubmit = () => {
setState(true);
- }
+ } //submit 버튼을 누르면 state 값을 true로 바뀐다
return (