-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintcache
1 lines (1 loc) · 14.4 KB
/
.eslintcache
1
[{"/Users/charlie/Documents/CodeStates/Full_Immersive_24th/im-final-project/missing_animal_client/src/index.jsx":"1","/Users/charlie/Documents/CodeStates/Full_Immersive_24th/im-final-project/missing_animal_client/src/App.jsx":"2","/Users/charlie/Documents/CodeStates/Full_Immersive_24th/im-final-project/missing_animal_client/src/components/petInfo/PetInfo.jsx":"3","/Users/charlie/Documents/CodeStates/Full_Immersive_24th/im-final-project/missing_animal_client/src/components/Signup.jsx":"4","/Users/charlie/Documents/CodeStates/Full_Immersive_24th/im-final-project/missing_animal_client/src/components/myInfo/MyInfo.jsx":"5","/Users/charlie/Documents/CodeStates/Full_Immersive_24th/im-final-project/missing_animal_client/src/components/board/Board.jsx":"6","/Users/charlie/Documents/CodeStates/Full_Immersive_24th/im-final-project/missing_animal_client/src/components/Main_Menu.jsx":"7","/Users/charlie/Documents/CodeStates/Full_Immersive_24th/im-final-project/missing_animal_client/src/components/Main.jsx":"8","/Users/charlie/Documents/CodeStates/Full_Immersive_24th/im-final-project/missing_animal_client/src/components/Map.jsx":"9","/Users/charlie/Documents/CodeStates/Full_Immersive_24th/im-final-project/missing_animal_client/src/components/petRegister/PetRegister.jsx":"10","/Users/charlie/Documents/CodeStates/Full_Immersive_24th/im-final-project/missing_animal_client/src/components/Signout.jsx":"11","/Users/charlie/Documents/CodeStates/Full_Immersive_24th/im-final-project/missing_animal_client/src/components/board/PetCard.jsx":"12","/Users/charlie/Documents/CodeStates/Full_Immersive_24th/im-final-project/missing_animal_client/src/components/petInfo/PetInfoDetail.jsx":"13","/Users/charlie/Documents/CodeStates/Full_Immersive_24th/im-final-project/missing_animal_client/src/components/myInfo/MyInfoUpdate.jsx":"14","/Users/charlie/Documents/CodeStates/Full_Immersive_24th/im-final-project/missing_animal_client/src/components/searchBar/SearchBar.jsx":"15","/Users/charlie/Documents/CodeStates/Full_Immersive_24th/im-final-project/missing_animal_client/src/components/Signin.jsx":"16","/Users/charlie/Documents/CodeStates/Full_Immersive_24th/im-final-project/missing_animal_client/src/components/board/PetDetail.jsx":"17","/Users/charlie/Documents/CodeStates/Full_Immersive_24th/im-final-project/missing_animal_client/src/components/petInfo/PetInfoUpdate.jsx":"18"},{"size":339,"mtime":1611986345101,"results":"19","hashOfConfig":"20"},{"size":2028,"mtime":1611797180463,"results":"21","hashOfConfig":"20"},{"size":3753,"mtime":1612163907951,"results":"22","hashOfConfig":"20"},{"size":4222,"mtime":1612159797080,"results":"23","hashOfConfig":"20"},{"size":3145,"mtime":1612159797082,"results":"24","hashOfConfig":"20"},{"size":2720,"mtime":1612102712189,"results":"25","hashOfConfig":"20"},{"size":2783,"mtime":1612159797070,"results":"26","hashOfConfig":"20"},{"size":1348,"mtime":1612159797068,"results":"27","hashOfConfig":"20"},{"size":6985,"mtime":1612164911768,"results":"28","hashOfConfig":"20"},{"size":12644,"mtime":1612164760688,"results":"29","hashOfConfig":"20"},{"size":1173,"mtime":1612159797079,"results":"30","hashOfConfig":"20"},{"size":3732,"mtime":1612075158990,"results":"31","hashOfConfig":"20"},{"size":2786,"mtime":1612102712190,"results":"32","hashOfConfig":"20"},{"size":5316,"mtime":1612159797083,"results":"33","hashOfConfig":"20"},{"size":782,"mtime":1612015338566,"results":"34","hashOfConfig":"20"},{"size":8453,"mtime":1612159797071,"results":"35","hashOfConfig":"20"},{"size":1125,"mtime":1612075158991,"results":"36","hashOfConfig":"20"},{"size":6002,"mtime":1612165199934,"results":"37","hashOfConfig":"20"},{"filePath":"38","messages":"39","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"40"},"ceflaz",{"filePath":"41","messages":"42","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"43","usedDeprecatedRules":"40"},{"filePath":"44","messages":"45","errorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"46","messages":"47","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"40"},{"filePath":"48","messages":"49","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"50","usedDeprecatedRules":"40"},{"filePath":"51","messages":"52","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"40"},{"filePath":"53","messages":"54","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"40"},{"filePath":"55","messages":"56","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"40"},{"filePath":"57","messages":"58","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"59","messages":"60","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"61","messages":"62","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"40"},{"filePath":"63","messages":"64","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"40"},{"filePath":"65","messages":"66","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"40"},{"filePath":"67","messages":"68","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"40"},{"filePath":"69","messages":"70","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"40"},{"filePath":"71","messages":"72","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"40"},{"filePath":"73","messages":"74","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"40"},{"filePath":"75","messages":"76","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"/Users/charlie/Documents/CodeStates/Full_Immersive_24th/im-final-project/missing_animal_client/src/index.jsx",[],["77","78"],"/Users/charlie/Documents/CodeStates/Full_Immersive_24th/im-final-project/missing_animal_client/src/App.jsx",["79"],"import React from \"react\";\nimport { Switch, Route, withRouter } from \"react-router-dom\";\nimport Main from \"./components/Main\";\nimport MyInfo from \"./components/myInfo/MyInfo\";\nimport PetInfo from \"./components/petInfo/PetInfo\";\nimport SignUp from \"./components/Signup\";\nimport Board from \"./components/board/Board\";\nimport Map from \"./components/Map\";\nimport PetRegister from \"./components/petRegister/PetRegister\";\n// import PetMap from \"./components/petRegister/PetMap\";\nimport Main_Menu from \"./components/Main_Menu\";\nimport \"./styles/App.css\";\n\nclass App extends React.Component {\n constructor(props) {\n super(props);\n this.state = {\n isLogin: false,\n };\n }\n\n render() {\n // window.localStorage.setItem(\"isLogin\", false);\n const checkLogin = window.localStorage.getItem(\"isLogin\");\n\n return (\n <div className=\"app\">\n <Switch>\n <Route\n exact\n path=\"/\"\n render={() => (\n <>\n <Main_Menu />\n <Main />\n </>\n )}\n />\n <Route exact path=\"/petpage\" render={() => <PetInfo />} />\n <Route exact path=\"/mypage\" render={() => <MyInfo />} />\n <Route exact path=\"/signup\" render={() => <SignUp />} />\n <Route exact path=\"/board\" render={() => <Board />} />\n <Route exact path=\"/map\" render={() => <Map />} />\n {/* <Route exact path=\"/mapregister\" render={() => <PetMap />} /> */}\n {checkLogin === null ? (\n <div>반려동물을 등록하려면 로그인해야 합니다.</div>\n ) : (\n <Route exact path=\"/petregister\" render={() => <PetRegister />} />\n )}\n </Switch>\n </div>\n );\n }\n}\n\nexport default withRouter(App);\n\n// function App() {\n// return (\n// <div>\n// <Nav></Nav>\n// <Main></Main>\n// {/* <Board></Board> */}\n// {/* <Map /> */}\n// {/* <PetRegister></PetRegister> */}\n// </div>\n// );\n// }\n\n// export default App;\n","/Users/charlie/Documents/CodeStates/Full_Immersive_24th/im-final-project/missing_animal_client/src/components/petInfo/PetInfo.jsx",["80","81"],"/Users/charlie/Documents/CodeStates/Full_Immersive_24th/im-final-project/missing_animal_client/src/components/Signup.jsx",[],"/Users/charlie/Documents/CodeStates/Full_Immersive_24th/im-final-project/missing_animal_client/src/components/myInfo/MyInfo.jsx",["82"],"import React, { useState, useEffect } from \"react\";\nimport \"./myInfo.css\";\nimport axios from \"axios\";\nimport MyInfoUpdate from \"./MyInfoUpdate\";\nimport Main_Menu from \"../Main_Menu\";\nimport { Link, withRouter } from \"react-router-dom\";\n\nfunction MyInfo() {\n const [state, setState] = useState({\n toModifyMyInfo: false,\n userId: \"\",\n username: \"\",\n email: \"\",\n mobile: \"\",\n petsList: [],\n createdAt: \"\",\n });\n\n useEffect(() => {\n const token = window.localStorage.getItem(\"token\");\n axios.defaults.headers.common[\"Authorization\"] = \"Bearer \" + token;\n\n const fetchData = async () => {\n // const res = await axios.get(\"http://localhost:8080/users/myinfo\", {\n // withCredentials: true,\n // });\n const res = await axios.get(\"https://missinganimals.ml/users/myinfo\", {\n withCredentials: true,\n });\n if (res.status === 200) {\n // console.log(res.status, res.statusText);\n setState((prevState) => ({\n ...prevState,\n userId: res.data.userId,\n username: res.data.username,\n email: res.data.email,\n mobile: res.data.mobile,\n petsList: res.data.petslist,\n createdAt: res.data.createdAt,\n }));\n } else {\n // console.log(res.status, res.statusText);\n }\n };\n fetchData();\n }, []);\n\n const { userId, username, email, mobile, createdAt } = state;\n return (\n <div className=\"myInfo\">\n <Main_Menu></Main_Menu>\n <div className=\"menuBar\">\n <Link className=\"barButton\" to=\"/mypage\">\n <span className=\"barButtonText click active\">내 정보</span>\n </Link>\n <p></p>\n <Link className=\"barButton\" to=\"/petpage\">\n <span className=\"barButtonText\">내가 쓴 글</span>\n </Link>\n </div>\n <div className=\"mainBody\">\n {/* <div className=\"myInfoTitle\">My Info</div> */}\n {state.toModifyMyInfo ? (\n <MyInfoUpdate\n userId={userId}\n username={username}\n email={email}\n mobile={mobile}\n handleToModifyMyInfo={(modifiedState) =>\n setState((prevState) => ({\n ...prevState,\n username: modifiedState.username,\n email: modifiedState.email,\n mobile: modifiedState.mobile,\n toModifyMyInfo: !prevState.toModifyMyInfo,\n }))\n }\n ></MyInfoUpdate>\n ) : (\n <div className=\"myInfoBody\">\n <p>닉네임 : {username}</p>\n <p>이메일 : {email}</p>\n <p>연락처 : {mobile}</p>\n <p>계정 생성일 : {createdAt.split(\"T\")[0]}</p>\n <div\n className=\"modifyMyInfoButton\"\n onClick={() =>\n setState((prevState) => ({\n ...prevState,\n toModifyMyInfo: !prevState.toModifyMyInfo,\n }))\n }\n >\n 내 정보 수정\n </div>\n </div>\n )}\n </div>\n </div>\n );\n}\nexport default withRouter(MyInfo);\n// export default MyInfo;\n","/Users/charlie/Documents/CodeStates/Full_Immersive_24th/im-final-project/missing_animal_client/src/components/board/Board.jsx",[],"/Users/charlie/Documents/CodeStates/Full_Immersive_24th/im-final-project/missing_animal_client/src/components/Main_Menu.jsx",[],"/Users/charlie/Documents/CodeStates/Full_Immersive_24th/im-final-project/missing_animal_client/src/components/Main.jsx",[],"/Users/charlie/Documents/CodeStates/Full_Immersive_24th/im-final-project/missing_animal_client/src/components/Map.jsx",[],"/Users/charlie/Documents/CodeStates/Full_Immersive_24th/im-final-project/missing_animal_client/src/components/petRegister/PetRegister.jsx",["83"],"/Users/charlie/Documents/CodeStates/Full_Immersive_24th/im-final-project/missing_animal_client/src/components/Signout.jsx",[],"/Users/charlie/Documents/CodeStates/Full_Immersive_24th/im-final-project/missing_animal_client/src/components/board/PetCard.jsx",[],"/Users/charlie/Documents/CodeStates/Full_Immersive_24th/im-final-project/missing_animal_client/src/components/petInfo/PetInfoDetail.jsx",[],"/Users/charlie/Documents/CodeStates/Full_Immersive_24th/im-final-project/missing_animal_client/src/components/myInfo/MyInfoUpdate.jsx",[],"/Users/charlie/Documents/CodeStates/Full_Immersive_24th/im-final-project/missing_animal_client/src/components/searchBar/SearchBar.jsx",[],"/Users/charlie/Documents/CodeStates/Full_Immersive_24th/im-final-project/missing_animal_client/src/components/Signin.jsx",[],"/Users/charlie/Documents/CodeStates/Full_Immersive_24th/im-final-project/missing_animal_client/src/components/board/PetDetail.jsx",[],"/Users/charlie/Documents/CodeStates/Full_Immersive_24th/im-final-project/missing_animal_client/src/components/petInfo/PetInfoUpdate.jsx",[],{"ruleId":"84","replacedBy":"85"},{"ruleId":"86","replacedBy":"87"},{"ruleId":"88","severity":1,"message":"89","line":34,"column":17,"nodeType":"90","endLine":34,"endColumn":30},{"ruleId":"88","severity":1,"message":"89","line":40,"column":9,"nodeType":"90","endLine":40,"endColumn":20},{"ruleId":"88","severity":1,"message":"89","line":59,"column":7,"nodeType":"90","endLine":59,"endColumn":18},{"ruleId":"88","severity":1,"message":"89","line":51,"column":7,"nodeType":"90","endLine":51,"endColumn":18},{"ruleId":"88","severity":1,"message":"89","line":220,"column":11,"nodeType":"90","endLine":220,"endColumn":22},"no-native-reassign",["91"],"no-negated-in-lhs",["92"],"react/jsx-pascal-case","Imported JSX component Main_Menu must be in PascalCase or SCREAMING_SNAKE_CASE","JSXOpeningElement","no-global-assign","no-unsafe-negation"]