forked from simhonchourasia/foodfinder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintcache
1 lines (1 loc) · 13.8 KB
/
.eslintcache
1
[{"/Users/angeladu/Documents/GitHub/foodfinder/src/index.js":"1","/Users/angeladu/Documents/GitHub/foodfinder/src/reportWebVitals.js":"2","/Users/angeladu/Documents/GitHub/foodfinder/src/App.js":"3","/Users/angeladu/Documents/GitHub/foodfinder/src/Navbar.js":"4","/Users/angeladu/Documents/GitHub/foodfinder/src/Page-Home.js":"5","/Users/angeladu/Documents/GitHub/foodfinder/src/Page-LogIn.js":"6","/Users/angeladu/Documents/GitHub/foodfinder/src/Page-SignOut.js":"7","/Users/angeladu/Documents/GitHub/foodfinder/src/Page-Matches.js":"8","/Users/angeladu/Documents/GitHub/foodfinder/src/SwipeButtons.js":"9","/Users/angeladu/Documents/GitHub/foodfinder/src/TinderCards.js":"10","/Users/angeladu/Documents/GitHub/foodfinder/src/components/create-user.component.js":"11","/Users/angeladu/Documents/GitHub/foodfinder/src/components/movie-list.component.js":"12","/Users/angeladu/Documents/GitHub/foodfinder/src/SidebarData.js":"13","/Users/angeladu/Documents/GitHub/foodfinder/src/LoginForm.js":"14"},{"size":500,"mtime":1610772139508,"results":"15","hashOfConfig":"16"},{"size":362,"mtime":1610772139509,"results":"17","hashOfConfig":"16"},{"size":922,"mtime":1610860808179,"results":"18","hashOfConfig":"16"},{"size":2082,"mtime":1610860589908,"results":"19","hashOfConfig":"16"},{"size":283,"mtime":1610863775212,"results":"20","hashOfConfig":"16"},{"size":1711,"mtime":1610862792172,"results":"21","hashOfConfig":"16"},{"size":832,"mtime":1610860589911,"results":"22","hashOfConfig":"16"},{"size":1899,"mtime":1610861655274,"results":"23","hashOfConfig":"16"},{"size":769,"mtime":1610862076677,"results":"24","hashOfConfig":"16"},{"size":3817,"mtime":1610863047912,"results":"25","hashOfConfig":"16"},{"size":1941,"mtime":1610860589914,"results":"26","hashOfConfig":"16"},{"size":3266,"mtime":1610860589914,"results":"27","hashOfConfig":"16"},{"size":528,"mtime":1610862808568,"results":"28","hashOfConfig":"16"},{"size":1489,"mtime":1610860589907,"results":"29","hashOfConfig":"16"},{"filePath":"30","messages":"31","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"32"},"hfr5ib",{"filePath":"33","messages":"34","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"32"},{"filePath":"35","messages":"36","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"32"},{"filePath":"37","messages":"38","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"32"},{"filePath":"39","messages":"40","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"41","messages":"42","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"32"},{"filePath":"43","messages":"44","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"32"},{"filePath":"45","messages":"46","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"32"},{"filePath":"47","messages":"48","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"32"},{"filePath":"49","messages":"50","errorCount":0,"warningCount":4,"fixableErrorCount":0,"fixableWarningCount":0,"source":"51","usedDeprecatedRules":"32"},{"filePath":"52","messages":"53","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"32"},{"filePath":"54","messages":"55","errorCount":0,"warningCount":4,"fixableErrorCount":0,"fixableWarningCount":0,"source":"56","usedDeprecatedRules":"32"},{"filePath":"57","messages":"58","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"32"},{"filePath":"59","messages":"60","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"32"},"/Users/angeladu/Documents/GitHub/foodfinder/src/index.js",[],["61","62"],"/Users/angeladu/Documents/GitHub/foodfinder/src/reportWebVitals.js",[],"/Users/angeladu/Documents/GitHub/foodfinder/src/App.js",[],"/Users/angeladu/Documents/GitHub/foodfinder/src/Navbar.js",[],"/Users/angeladu/Documents/GitHub/foodfinder/src/Page-Home.js",[],"/Users/angeladu/Documents/GitHub/foodfinder/src/Page-LogIn.js",[],"/Users/angeladu/Documents/GitHub/foodfinder/src/Page-SignOut.js",[],"/Users/angeladu/Documents/GitHub/foodfinder/src/Page-Matches.js",[],"/Users/angeladu/Documents/GitHub/foodfinder/src/SwipeButtons.js",[],"/Users/angeladu/Documents/GitHub/foodfinder/src/TinderCards.js",["63","64","65","66"],"import React, { useState, Component, useEffect} from 'react';\nimport {Link} from 'react-router-dom';\nimport axios from 'axios';\nimport TinderCard from \"react-tinder-card\";\nimport './TinderCards.css';\n\nexport default class TinderCards extends Component {\n // const [ restaurants ] = useState([\n // {name: 'Elon Tusk',\n // imgUrl: 'https://media4.s-nbcnews.com/j/newscms/2018_48/2658326/181126-elon-musk-tesla-cs-952a_0d514a5ff2bfe11a4a17bcacaed8686f.fit-2000w.JPG'\n // }, \n // {name: \"Beff Jezos\", imgUrl: 'https://api.time.com/wp-content/uploads/2020/07/jeff-bezos.jpg'}]);\n constructor(props) {\n super(props);\n this.swipeLeft = this.swipeLeft.bind(this);\n this.swipeRight = this.swipeRight.bind(this);\n // HARDCODED userId (username: Albert)\n this.state = {userId: '6003c1d0f391200b6cfaa7dc', items: []};\n // HARDCODED userId (username: Barbara)\n //this.state = {userId: '6003c1e5f391200b6cfaa7dd', items: []};\n }\n\n componentDidMount() {\n axios.get('http://localhost:5000/items/')\n .then(response=>{\n console.log(response.data);\n const unswiped = response.data.filter(x=>x.swiped==='not yet')\n this.setState({items: response.data});\n })\n .catch(err=>{console.log(err);})\n }\n\n swipeLeft(id) {\n console.log('Swiping left for the user');\n const ind = this.state.items.findIndex(x=>x._id === id);\n const newItems = [...this.state.items];\n newItems[ind].swiped = 'left';\n this.setState({items: newItems});\n console.log(this.state);\n axios.post('http://localhost:5000/items/swipe/' + id, {swiped: 'left'})\n .then(res=>console.log(res.data));\n axios.post('http://localhost:5000/users/userswipe/' + this.state.userId, {restaurantId: id, swipe: 'left'})\n .then(res=>console.log(res.data))\n this.forceUpdate();\n }\n\n swipeRight(id) {\n console.log('Swiping right for the user');\n const ind = this.state.items.findIndex(x=>x._id === id);\n const newItems = [...this.state.items];\n newItems[ind].swiped = 'right';\n this.setState({items: newItems});\n console.log(this.state);\n axios.post('http://localhost:5000/items/swipe/' + id, {swiped: 'right'})\n .then(res=>console.log(res.data));\n axios.post('http://localhost:5000/users/userswipe/' + this.state.userId, {restaurantId: id, swipe: 'right'})\n .then(res=>console.log(res.data))\n this.forceUpdate();\n }\n\n swiped(direction, id, nameToDelete) {\n console.log(\"removing \" + nameToDelete);\n console.log(direction);\n if (direction === 'left') this.swipeLeft(id);\n if (direction === 'right') this.swipeRight(id);\n //console.log(this.state);\n };\n\n outOfFrame(name) {\n console.log(name + \"is gone\");\n };\n\n render() {return (\n <div className='tinder-card'>\n <div className=\"tinderCards__cardContainer\">\n {this.state.items.map((item)=> (\n <TinderCard\n className=\"swipe\"\n key={item.name}\n preventSwipe={[\"up\", \"down\"]}\n onSwipe = {(dir) => this.swiped(dir, item._id, item.restaurant_name)}\n onCardLeftScreen={() => this.outOfFrame(item.restaurant_name)}\n >\n <div \n style = {{backgroundImage: `url(${item.image_url})` }}\n className=\"card\">\n <h3>{item.restaurant_name}</h3>\n <p className='description'>{item.rating}</p>\n </div>\n\n </TinderCard>\n ))}\n </div>\n </div>\n )}\n}\n","/Users/angeladu/Documents/GitHub/foodfinder/src/components/create-user.component.js",[],"/Users/angeladu/Documents/GitHub/foodfinder/src/components/movie-list.component.js",["67","68","69","70"],"import React, {Component, useEffect} from 'react';\r\nimport {Link} from 'react-router-dom';\r\nimport axios from 'axios';\r\n\r\nconst Item = props=>{\r\n return (\r\n <tr>\r\n <td>{props.item.name}</td>\r\n <td>{props.item.description}</td>\r\n <td>{props.item.swiped}</td>\r\n <td>\r\n <a href='#' onClick={()=>{props.swipeLeft(props.item._id)}}>Swipe left</a>\r\n <a href='#' onClick={()=>{props.swipeRight(props.item._id)}}>Swipe right</a>\r\n </td>\r\n </tr>\r\n )\r\n}\r\n\r\nexport default class MovieList extends Component {\r\n constructor(props){\r\n super(props);\r\n this.swipeLeft = this.swipeLeft.bind(this);\r\n this.swipeRight = this.swipeRight.bind(this);\r\n this.state = {userId: '60035c34f231b446447f3c49', items: []};\r\n }\r\n\r\n componentDidMount() {\r\n axios.get('http://localhost:5000/items/')\r\n .then(response=>{\r\n this.setState({items: response.data});\r\n console.log(response.data);\r\n })\r\n .catch(err=>{console.log(err);})\r\n }\r\n\r\n\r\n\r\n swipeLeft(id) {\r\n console.log('Swiping left for the user');\r\n const ind = this.state.items.findIndex(x=>x._id === id);\r\n const newItems = [...this.state.items];\r\n newItems[ind].swiped = 'left';\r\n this.setState({items: newItems});\r\n console.log(this.state);\r\n axios.post('http://localhost:5000/items/swipe/' + id, {swiped: 'left'})\r\n .then(res=>console.log(res.data));\r\n axios.post('http://localhost:5000/users/userswipe/' + this.state.userId, {movieId: id, swipe: 'left'})\r\n .then(res=>console.log(res.data))\r\n this.forceUpdate();\r\n }\r\n\r\n swipeRight(id) {\r\n console.log('Swiping right for the user');\r\n const ind = this.state.items.findIndex(x=>x._id === id);\r\n const newItems = [...this.state.items];\r\n newItems[ind].swiped = 'right';\r\n this.setState({items: newItems});\r\n console.log(this.state);\r\n axios.post('http://localhost:5000/items/swipe/' + id, {swiped: 'right'})\r\n .then(res=>console.log(res.data));\r\n axios.post('http://localhost:5000/users/userswipe/' + this.state.userId, {movieId: id, swipe: 'right'})\r\n .then(res=>console.log(res.data))\r\n this.forceUpdate();\r\n }\r\n\r\n movieList() {\r\n return this.state.items.map(curr=>{\r\n return <Item item={curr} swipeLeft={this.swipeLeft} swipeRight={this.swipeRight} key={curr._id}/>;\r\n });\r\n }\r\n\r\n onSubmit(e) {\r\n e.preventDefault();\r\n\r\n }\r\n\r\n render() {\r\n return (\r\n <div>\r\n <h3>Movies</h3>\r\n <form onSubmit={this.onSubmit}>\r\n\r\n </form>\r\n\r\n <table>\r\n <thead>\r\n <tr>\r\n <th>Name</th>\r\n <th>Description</th>\r\n <th>Swiped?</th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n {this.movieList()}\r\n </tbody>\r\n </table>\r\n </div>\r\n );\r\n }\r\n\r\n}","/Users/angeladu/Documents/GitHub/foodfinder/src/SidebarData.js",[],"/Users/angeladu/Documents/GitHub/foodfinder/src/LoginForm.js",[],{"ruleId":"71","replacedBy":"72"},{"ruleId":"73","replacedBy":"74"},{"ruleId":"75","severity":1,"message":"76","line":1,"column":17,"nodeType":"77","messageId":"78","endLine":1,"endColumn":25},{"ruleId":"75","severity":1,"message":"79","line":1,"column":38,"nodeType":"77","messageId":"78","endLine":1,"endColumn":47},{"ruleId":"75","severity":1,"message":"80","line":2,"column":9,"nodeType":"77","messageId":"78","endLine":2,"endColumn":13},{"ruleId":"75","severity":1,"message":"81","line":27,"column":23,"nodeType":"77","messageId":"78","endLine":27,"endColumn":31},{"ruleId":"75","severity":1,"message":"79","line":1,"column":27,"nodeType":"77","messageId":"78","endLine":1,"endColumn":36},{"ruleId":"75","severity":1,"message":"80","line":2,"column":9,"nodeType":"77","messageId":"78","endLine":2,"endColumn":13},{"ruleId":"82","severity":1,"message":"83","line":12,"column":17,"nodeType":"84","endLine":12,"endColumn":77},{"ruleId":"82","severity":1,"message":"83","line":13,"column":17,"nodeType":"84","endLine":13,"endColumn":78},"no-native-reassign",["85"],"no-negated-in-lhs",["86"],"no-unused-vars","'useState' is defined but never used.","Identifier","unusedVar","'useEffect' is defined but never used.","'Link' is defined but never used.","'unswiped' is assigned a value but never used.","jsx-a11y/anchor-is-valid","The href attribute requires a valid value to be accessible. Provide a valid, navigable address as the href value. If you cannot provide a valid href, but still need the element to resemble a link, use a button and change it with appropriate styles. Learn more: https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/anchor-is-valid.md","JSXOpeningElement","no-global-assign","no-unsafe-negation"]