-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintcache
1 lines (1 loc) · 15.2 KB
/
.eslintcache
1
[{"/Users/ada/Developer/CAPSTONE/reveal/src/reportWebVitals.js":"1","/Users/ada/Developer/CAPSTONE/reveal/src/App.js":"2","/Users/ada/Developer/CAPSTONE/reveal/src/index.js":"3","/Users/ada/Developer/CAPSTONE/reveal/src/Pages/Home.js":"4","/Users/ada/Developer/CAPSTONE/reveal/src/Pages/FoodSearch.js":"5","/Users/ada/Developer/CAPSTONE/reveal/src/Components/UserSubmissionForm.js":"6","/Users/ada/Developer/CAPSTONE/reveal/src/Components/FoodSearchForm.js":"7","/Users/ada/Developer/CAPSTONE/reveal/src/Pages/MealLog.js":"8","/Users/ada/Developer/CAPSTONE/reveal/src/Pages/UserGraphs.js":"9","/Users/ada/Developer/CAPSTONE/reveal/src/Components/LineChart.js":"10","/Users/ada/Developer/CAPSTONE/reveal/src/Components/AxisLabel.js":"11","/Users/ada/Developer/CAPSTONE/reveal/src/Components/UserProfile.js":"12","/Users/ada/Developer/CAPSTONE/reveal/src/Components/Footer.js":"13","/Users/ada/Developer/CAPSTONE/reveal/src/Pages/About.js":"14"},{"size":362,"mtime":1611943568220,"results":"15","hashOfConfig":"16"},{"size":3044,"mtime":1613507612390,"results":"17","hashOfConfig":"16"},{"size":552,"mtime":1612674925401,"results":"18","hashOfConfig":"16"},{"size":992,"mtime":1613441893436,"results":"19","hashOfConfig":"16"},{"size":2708,"mtime":1613433870679,"results":"20","hashOfConfig":"16"},{"size":3103,"mtime":1613504539425,"results":"21","hashOfConfig":"16"},{"size":2057,"mtime":1613442152616,"results":"22","hashOfConfig":"16"},{"size":2144,"mtime":1613504820590,"results":"23","hashOfConfig":"16"},{"size":9209,"mtime":1613433870691,"results":"24","hashOfConfig":"16"},{"size":5635,"mtime":1613433870666,"results":"25","hashOfConfig":"16"},{"size":515,"mtime":1613433870659,"results":"26","hashOfConfig":"16"},{"size":5861,"mtime":1613433870669,"results":"27","hashOfConfig":"16"},{"size":184,"mtime":1613433870665,"results":"28","hashOfConfig":"16"},{"size":1226,"mtime":1613507979951,"results":"29","hashOfConfig":"16"},{"filePath":"30","messages":"31","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"32"},"jt070n",{"filePath":"33","messages":"34","errorCount":0,"warningCount":4,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"35","messages":"36","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"37","messages":"38","errorCount":0,"warningCount":6,"fixableErrorCount":0,"fixableWarningCount":0,"source":"39","usedDeprecatedRules":"40"},{"filePath":"41","messages":"42","errorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"43","messages":"44","errorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"45","messages":"46","errorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"47","messages":"48","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"49","messages":"50","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"51","messages":"52","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"53","messages":"54","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"55","messages":"56","errorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":"57","usedDeprecatedRules":"40"},{"filePath":"58","messages":"59","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"60","messages":"61","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"/Users/ada/Developer/CAPSTONE/reveal/src/reportWebVitals.js",[],["62","63"],"/Users/ada/Developer/CAPSTONE/reveal/src/App.js",["64","65","66","67"],"/Users/ada/Developer/CAPSTONE/reveal/src/index.js",[],"/Users/ada/Developer/CAPSTONE/reveal/src/Pages/Home.js",["68","69","70","71","72","73"],"import React, {useState, useEffect} from 'react';\nimport { UserProfile } from '../Components/UserProfile';\nimport axios from 'axios';\nimport { AmplifyAuthenticator, AmplifySignIn, AmplifySignInButton, AmplifySignOut } from '@aws-amplify/ui-react';\nimport './Home.css'\n\nexport const Home = ({ user }) => {\n const [userData, setUserData] = useState([]);\n const [errorMessage, setErrorMessage] = useState(null);\n \n useEffect(() => {\n axios.get(`/api/user`)\n .then(response => {\n const result = response.data;\n console.log(result);\n console.log(response.status)\n })\n .catch((error) => {\n setErrorMessage(error.message);\n console.log(errorMessage);\n });\n }, [])\n\n return (\n <div>\n <h1>{user.username}'s Profile</h1>\n <UserProfile />\n <div className='btn btn-primary'>\n <AmplifySignOut \n />\n </div>\n </div>\n )\n}",["74","75"],"/Users/ada/Developer/CAPSTONE/reveal/src/Pages/FoodSearch.js",["76","77"],"/Users/ada/Developer/CAPSTONE/reveal/src/Components/UserSubmissionForm.js",["78","79"],"/Users/ada/Developer/CAPSTONE/reveal/src/Components/FoodSearchForm.js",["80","81"],"/Users/ada/Developer/CAPSTONE/reveal/src/Pages/MealLog.js",["82"],"/Users/ada/Developer/CAPSTONE/reveal/src/Pages/UserGraphs.js",["83"],"/Users/ada/Developer/CAPSTONE/reveal/src/Components/LineChart.js",[],"/Users/ada/Developer/CAPSTONE/reveal/src/Components/AxisLabel.js",[],"/Users/ada/Developer/CAPSTONE/reveal/src/Components/UserProfile.js",["84","85"],"import React, { useEffect, useState } from 'react';\nimport PropTypes from 'prop-types';\nimport axios from 'axios';\nimport './UserProfile.css'\n\nexport const UserProfile = () => {\n const [userGoals, setUserGoals] = useState([]);\n const [errorMessage, setErrorMessage] = useState(null);\n\n useEffect(() => {\n axios.get(`/api/user`)\n .then((response) => {\n console.log(response.data);\n setUserGoals(response.data);\n setErrorMessage('');\n })\n .catch((error) => {\n setErrorMessage(error.message);\n });\n }, [])\n\n\n const onInputChange = (event) => {\n const newUserGoal = {\n ...userGoals\n };\n newUserGoal[event.target.name] = event.target.value\n setUserGoals(newUserGoal);\n }\n const updateGoals = (userGoals) => {\n console.log(userGoals);\n axios.post(`/api/user`, userGoals)\n .then((response) => {\n console.log(`added ${userGoals}`);\n const result = response.data;\n console.log(result);\n setErrorMessage('');\n })\n .catch((error) => {\n setErrorMessage(error.message);\n })\n }\n\n const onFormSubmit = (event) => {\n event.preventDefault();\n updateGoals(userGoals);\n }\n\n return (\n <div>\n <form\n className=\"form-group\"\n onSubmit={onFormSubmit}>\n <div className=\"UserSubmissionForm__food-inputs\">\n {console.log('userProfile')}\n {console.log(userGoals)}\n <ul>\n <li>\n <label />Energy Min (kcal)\n <input\n name='energy_min'\n value={userGoals.energy_min}\n type='number'\n onChange={onInputChange}\n />\n </li>\n <li>\n <label />Energy Max (kcal)\n <input\n name='energy_max'\n value={userGoals.energy_max}\n type='number'\n onChange={onInputChange}\n />\n </li>\n <li>\n <label />Protein Min (g)\n <input\n name='protein_min'\n value={userGoals.protein_min}\n type='number'\n onChange={onInputChange}\n />\n </li>\n <li>\n <label />Protein Max (g)\n <input\n name='protein_max'\n value={userGoals.protein_max}\n type='number'\n onChange={onInputChange}\n />\n </li>\n <li>\n <label />Carb Min (g)\n <input\n name='carb_min'\n value={userGoals.carb_min}\n type='number'\n onChange={onInputChange}\n />\n </li>\n <li>\n <label /> Carb Max (g)\n <input\n name='carb_max'\n value={userGoals.carb_max}\n type='number'\n onChange={onInputChange}\n />\n </li>\n <li>\n <label />Fat Min (g)\n <input\n name='fat_min'\n value={userGoals.fat_min}\n type='number'\n onChange={onInputChange}\n />\n </li>\n <li>\n <label /> Fat Max (g)\n <input\n name='fat_max'\n value={userGoals.fat_max}\n type='number'\n onChange={onInputChange}\n />\n </li>\n <li>\n <label /> Fiber Min (g)\n <input\n name='fiber_min'\n value={userGoals.fiber_min}\n type='number'\n onChange={onInputChange}\n />\n </li>\n <li>\n <label /> Fiber Max (g)\n <input\n name='fiber_max'\n value={userGoals.fiber_max}\n type='number'\n onChange={onInputChange}\n />\n </li>\n </ul>\n </div>\n <div className=\"UserSubmissionForm__submit\">\n <input\n type=\"submit\"\n value=\"Update Goals\"\n className=\"btn btn-primary\"\n />\n </div>\n </form>\n </div>\n )\n}","/Users/ada/Developer/CAPSTONE/reveal/src/Components/Footer.js",[],"/Users/ada/Developer/CAPSTONE/reveal/src/Pages/About.js",[],{"ruleId":"86","replacedBy":"87"},{"ruleId":"88","replacedBy":"89"},{"ruleId":"90","severity":1,"message":"91","line":7,"column":8,"nodeType":"92","messageId":"93","endLine":7,"endColumn":17},{"ruleId":"90","severity":1,"message":"94","line":8,"column":8,"nodeType":"92","messageId":"93","endLine":8,"endColumn":19},{"ruleId":"90","severity":1,"message":"95","line":9,"column":8,"nodeType":"92","messageId":"93","endLine":9,"endColumn":14},{"ruleId":"90","severity":1,"message":"96","line":17,"column":19,"nodeType":"92","messageId":"93","endLine":17,"endColumn":24},{"ruleId":"90","severity":1,"message":"97","line":4,"column":10,"nodeType":"92","messageId":"93","endLine":4,"endColumn":30},{"ruleId":"90","severity":1,"message":"98","line":4,"column":32,"nodeType":"92","messageId":"93","endLine":4,"endColumn":45},{"ruleId":"90","severity":1,"message":"99","line":4,"column":47,"nodeType":"92","messageId":"93","endLine":4,"endColumn":66},{"ruleId":"90","severity":1,"message":"100","line":8,"column":12,"nodeType":"92","messageId":"93","endLine":8,"endColumn":20},{"ruleId":"90","severity":1,"message":"101","line":8,"column":22,"nodeType":"92","messageId":"93","endLine":8,"endColumn":33},{"ruleId":"102","severity":1,"message":"103","line":22,"column":8,"nodeType":"104","endLine":22,"endColumn":10,"suggestions":"105"},{"ruleId":"86","replacedBy":"106"},{"ruleId":"88","replacedBy":"107"},{"ruleId":"90","severity":1,"message":"108","line":1,"column":27,"nodeType":"92","messageId":"93","endLine":1,"endColumn":36},{"ruleId":"90","severity":1,"message":"109","line":11,"column":10,"nodeType":"92","messageId":"93","endLine":11,"endColumn":14},{"ruleId":"90","severity":1,"message":"108","line":1,"column":17,"nodeType":"92","messageId":"93","endLine":1,"endColumn":26},{"ruleId":"90","severity":1,"message":"110","line":2,"column":8,"nodeType":"92","messageId":"93","endLine":2,"endColumn":17},{"ruleId":"90","severity":1,"message":"108","line":1,"column":17,"nodeType":"92","messageId":"93","endLine":1,"endColumn":26},{"ruleId":"90","severity":1,"message":"110","line":2,"column":8,"nodeType":"92","messageId":"93","endLine":2,"endColumn":17},{"ruleId":"102","severity":1,"message":"103","line":21,"column":6,"nodeType":"104","endLine":21,"endColumn":8,"suggestions":"111"},{"ruleId":"90","severity":1,"message":"108","line":1,"column":27,"nodeType":"92","messageId":"93","endLine":1,"endColumn":36},{"ruleId":"90","severity":1,"message":"110","line":2,"column":8,"nodeType":"92","messageId":"93","endLine":2,"endColumn":17},{"ruleId":"90","severity":1,"message":"112","line":8,"column":12,"nodeType":"92","messageId":"93","endLine":8,"endColumn":24},"no-native-reassign",["113"],"no-negated-in-lhs",["114"],"no-unused-vars","'Container' is defined but never used.","Identifier","unusedVar","'NavbarBrand' is defined but never used.","'Footer' is defined but never used.","'Cache' is defined but never used.","'AmplifyAuthenticator' is defined but never used.","'AmplifySignIn' is defined but never used.","'AmplifySignInButton' is defined but never used.","'userData' is assigned a value but never used.","'setUserData' is assigned a value but never used.","react-hooks/exhaustive-deps","React Hook useEffect has a missing dependency: 'errorMessage'. Either include it or remove the dependency array.","ArrayExpression",["115"],["113"],["114"],"'useEffect' is defined but never used.","'meal' is assigned a value but never used.","'PropTypes' is defined but never used.",["116"],"'errorMessage' is assigned a value but never used.","no-global-assign","no-unsafe-negation",{"desc":"117","fix":"118"},{"desc":"117","fix":"119"},"Update the dependencies array to be: [errorMessage]",{"range":"120","text":"121"},{"range":"122","text":"121"},[746,748],"[errorMessage]",[587,589]]