-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintcache
1 lines (1 loc) · 14.8 KB
/
.eslintcache
1
[{"/home/dscription/Code/sophia-refactor/sophia-react/src/reportWebVitals.js":"1","/home/dscription/Code/sophia-refactor/sophia-react/src/components/NavBar/NavBar.jsx":"2","/home/dscription/Code/sophia-refactor/sophia-react/src/services/userService.js":"3","/home/dscription/Code/sophia-refactor/sophia-react/src/components/ThreeD/ThreeD.jsx":"4","/home/dscription/Code/sophia-refactor/sophia-react/src/pages/Users/Users.jsx":"5","/home/dscription/Code/sophia-refactor/sophia-react/src/index.js":"6","/home/dscription/Code/sophia-refactor/sophia-react/src/services/tokenService.js":"7","/home/dscription/Code/sophia-refactor/sophia-react/src/components/StyledComponents/NavComponents.js":"8","/home/dscription/Code/sophia-refactor/sophia-react/src/components/TopicCard/TopicCard.jsx":"9","/home/dscription/Code/sophia-refactor/sophia-react/src/pages/App/App.jsx":"10","/home/dscription/Code/sophia-refactor/sophia-react/src/components/StyledComponents/TopicCardComponents.js":"11","/home/dscription/Code/sophia-refactor/sophia-react/src/pages/Home/Home.jsx":"12","/home/dscription/Code/sophia-refactor/sophia-react/src/serviceWorker.js":"13","/home/dscription/Code/sophia-refactor/sophia-react/src/pages/Onboarding/Onboarding.jsx":"14","/home/dscription/Code/sophia-refactor/sophia-react/src/pages/Signup/Signup.jsx":"15","/home/dscription/Code/sophia-refactor/sophia-react/src/components/Topics/Topics.jsx":"16","/home/dscription/Code/sophia-refactor/sophia-react/src/components/StyledComponents/GeneralComponents.js":"17","/home/dscription/Code/sophia-refactor/sophia-react/src/pages/Login/Login.jsx":"18","/home/dscription/Code/sophia-refactor/sophia-react/src/components/AddTopicBar/AddTopicBar.jsx":"19","/home/dscription/Code/sophia-refactor/sophia-react/src/components/Contents/Contents.jsx":"20","/home/dscription/Code/sophia-refactor/sophia-react/src/components/TodoList/TodoList.jsx":"21","/home/dscription/Code/sophia-refactor/sophia-react/src/components/ContentDetails/ContentDetails.jsx":"22","/home/dscription/Code/sophia-refactor/sophia-react/src/components/ContentModal/ContentModal.jsx":"23","/home/dscription/Code/sophia-refactor/sophia-react/src/services/topicService.js":"24","/home/dscription/Code/sophia-refactor/sophia-react/src/components/StyledComponents/CustomComponents/CustomComponents.js":"25","/home/dscription/Code/sophia-refactor/sophia-react/src/components/SignupForm/SignupForm.jsx":"26"},{"size":362,"mtime":1606418778541,"results":"27","hashOfConfig":"28"},{"size":1343,"mtime":1609718203397,"results":"29","hashOfConfig":"28"},{"size":285,"mtime":1606419504181,"results":"30","hashOfConfig":"28"},{"size":2987,"mtime":1609725077557,"results":"31","hashOfConfig":"28"},{"size":490,"mtime":1606419615781,"results":"32","hashOfConfig":"28"},{"size":943,"mtime":1606419838111,"results":"33","hashOfConfig":"28"},{"size":726,"mtime":1606419504141,"results":"34","hashOfConfig":"28"},{"size":443,"mtime":1607207647057,"results":"35","hashOfConfig":"28"},{"size":942,"mtime":1609709923377,"results":"36","hashOfConfig":"28"},{"size":1928,"mtime":1609724526447,"results":"37","hashOfConfig":"28"},{"size":478,"mtime":1607390321164,"results":"38","hashOfConfig":"28"},{"size":750,"mtime":1609725097337,"results":"39","hashOfConfig":"28"},{"size":5086,"mtime":1606419845111,"results":"40","hashOfConfig":"28"},{"size":3203,"mtime":1609723665527,"results":"41","hashOfConfig":"28"},{"size":555,"mtime":1609718755347,"results":"42","hashOfConfig":"28"},{"size":544,"mtime":1609725108207,"results":"43","hashOfConfig":"28"},{"size":368,"mtime":1609615222955,"results":"44","hashOfConfig":"28"},{"size":2611,"mtime":1609718679707,"results":"45","hashOfConfig":"28"},{"size":1103,"mtime":1609709767037,"results":"46","hashOfConfig":"28"},{"size":374,"mtime":1609703580607,"results":"47","hashOfConfig":"28"},{"size":1850,"mtime":1609704454997,"results":"48","hashOfConfig":"28"},{"size":2086,"mtime":1609704467407,"results":"49","hashOfConfig":"28"},{"size":1593,"mtime":1609704421127,"results":"50","hashOfConfig":"28"},{"size":998,"mtime":1606592695130,"results":"51","hashOfConfig":"28"},{"size":943,"mtime":1609723718217,"results":"52","hashOfConfig":"28"},{"size":3381,"mtime":1609720904297,"results":"53","hashOfConfig":"28"},{"filePath":"54","messages":"55","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"56"},"1iidmhc",{"filePath":"57","messages":"58","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"59","messages":"60","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"61"},{"filePath":"62","messages":"63","errorCount":0,"warningCount":3,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"64","messages":"65","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"61"},{"filePath":"66","messages":"67","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"68","messages":"69","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"70","usedDeprecatedRules":"71"},{"filePath":"72","messages":"73","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"74","messages":"75","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"76"},{"filePath":"77","messages":"78","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"79","messages":"80","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"81","messages":"82","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"83","messages":"84","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"85"},{"filePath":"86","messages":"87","errorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"88","messages":"89","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"90","messages":"91","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"92","messages":"93","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"94","messages":"95","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"96","messages":"97","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"98"},{"filePath":"99","messages":"100","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"101","messages":"102","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"103","messages":"104","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"105","messages":"106","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"107","messages":"108","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"85"},{"filePath":"109","messages":"110","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"111","messages":"112","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"/home/dscription/Code/sophia-refactor/sophia-react/src/reportWebVitals.js",[],["113","114"],"/home/dscription/Code/sophia-refactor/sophia-react/src/components/NavBar/NavBar.jsx",[],"/home/dscription/Code/sophia-refactor/sophia-react/src/services/userService.js",[],["115","116"],"/home/dscription/Code/sophia-refactor/sophia-react/src/components/ThreeD/ThreeD.jsx",["117","118","119"],"/home/dscription/Code/sophia-refactor/sophia-react/src/pages/Users/Users.jsx",[],"/home/dscription/Code/sophia-refactor/sophia-react/src/index.js",[],"/home/dscription/Code/sophia-refactor/sophia-react/src/services/tokenService.js",["120"],"function setToken(token) {\n localStorage.setItem(\"token\", token);\n}\n\nfunction getToken() {\n let token = localStorage.getItem(\"token\");\n if (token) {\n // Check if expired, remove if it is\n const payload = JSON.parse(atob(token.split(\".\")[1]));\n // JWT's exp is expressed in seconds, not milliseconds, so convert\n if (payload.exp < Date.now() / 1000) {\n localStorage.removeItem(\"token\");\n token = null;\n }\n }\n return token;\n}\n\nfunction getUserFromToken() {\n const token = getToken();\n return token ? JSON.parse(atob(token.split(\".\")[1])).user : null;\n}\n\nfunction removeToken() {\n localStorage.removeItem(\"token\");\n}\n\nexport default {\n setToken,\n getToken,\n getUserFromToken,\n removeToken,\n};",["121","122"],"/home/dscription/Code/sophia-refactor/sophia-react/src/components/StyledComponents/NavComponents.js",[],"/home/dscription/Code/sophia-refactor/sophia-react/src/components/TopicCard/TopicCard.jsx",["123"],"import React, { useState, useEffect } from 'react';\nimport Card from 'react-bootstrap/Card';\nimport AddTopicBar from '../AddTopicBar/AddTopicBar';\nimport Contents from '../Contents/Contents';\n\nimport * as topicAPI from '../../services/topicService';\n\nconst TopicCard = ({ topic }) => {\n const [contents, setContents] = useState('');\n\n const getTopicContents = async (topic) => {\n const topicContents = await topicAPI.getTopicContents(topic._id);\n setContents(topicContents);\n };\n\n useEffect(() => {\n getTopicContents(topic);\n }, []);\n\n return (\n <Card\n className=\"text-center\"\n text=\"light\"\n bg=\"dark\"\n border=\"info\"\n style={{ minWidth: '250px' }}\n >\n <Card.Header>{topic.name}</Card.Header>\n <Card.Body>\n <AddTopicBar topic={topic} getTopicContents={getTopicContents} />\n <Contents contents={contents} />\n </Card.Body>\n </Card>\n );\n};\n\nexport default TopicCard;\n","/home/dscription/Code/sophia-refactor/sophia-react/src/pages/App/App.jsx",[],"/home/dscription/Code/sophia-refactor/sophia-react/src/components/StyledComponents/TopicCardComponents.js",[],"/home/dscription/Code/sophia-refactor/sophia-react/src/pages/Home/Home.jsx",["124"],"/home/dscription/Code/sophia-refactor/sophia-react/src/serviceWorker.js",[],["125","126"],"/home/dscription/Code/sophia-refactor/sophia-react/src/pages/Onboarding/Onboarding.jsx",["127","128"],"/home/dscription/Code/sophia-refactor/sophia-react/src/pages/Signup/Signup.jsx",[],"/home/dscription/Code/sophia-refactor/sophia-react/src/components/Topics/Topics.jsx",[],"/home/dscription/Code/sophia-refactor/sophia-react/src/components/StyledComponents/GeneralComponents.js",[],"/home/dscription/Code/sophia-refactor/sophia-react/src/pages/Login/Login.jsx",[],"/home/dscription/Code/sophia-refactor/sophia-react/src/components/AddTopicBar/AddTopicBar.jsx",["129"],"import React, { useState } from 'react';\nimport { FormControl, InputGroup, Button } from 'react-bootstrap';\nimport * as contentAPI from '../../services/contentService';\n\nconst AddTopicBar = ({ topic, getTopicContents }) => {\n const [formData, setFormData] = useState({ name: '' });\n\n const handleAddContent = async (e) => {\n e.preventDefault();\n const newContent = await contentAPI.createContent(formData, topic._id);\n getTopicContents(topic);\n };\n\n const handleInputChange = (e) => {\n const { name, value } = e.target;\n setFormData({ [name]: value });\n };\n\n return (\n <InputGroup>\n <FormControl\n placeholder=\"add-content\"\n aria-label=\"add-content\"\n aria-describedby=\"add-content\"\n onChange={handleInputChange}\n name=\"name\"\n value={formData.name}\n />\n <InputGroup.Append>\n <Button\n variant=\"outline-secondary\"\n onClick={handleAddContent}\n style={{color: 'white'}}\n >\n Add\n </Button>\n </InputGroup.Append>\n </InputGroup>\n );\n};\n\nexport default AddTopicBar;\n","/home/dscription/Code/sophia-refactor/sophia-react/src/components/Contents/Contents.jsx",[],"/home/dscription/Code/sophia-refactor/sophia-react/src/components/TodoList/TodoList.jsx",[],"/home/dscription/Code/sophia-refactor/sophia-react/src/components/ContentDetails/ContentDetails.jsx",[],"/home/dscription/Code/sophia-refactor/sophia-react/src/components/ContentModal/ContentModal.jsx",[],"/home/dscription/Code/sophia-refactor/sophia-react/src/services/topicService.js",[],"/home/dscription/Code/sophia-refactor/sophia-react/src/components/StyledComponents/CustomComponents/CustomComponents.js",[],"/home/dscription/Code/sophia-refactor/sophia-react/src/components/SignupForm/SignupForm.jsx",[],{"ruleId":"130","replacedBy":"131"},{"ruleId":"132","replacedBy":"133"},{"ruleId":"130","replacedBy":"134"},{"ruleId":"132","replacedBy":"135"},{"ruleId":"136","severity":1,"message":"137","line":1,"column":28,"nodeType":"138","messageId":"139","endLine":1,"endColumn":36},{"ruleId":"136","severity":1,"message":"140","line":3,"column":28,"nodeType":"138","messageId":"139","endLine":3,"endColumn":37},{"ruleId":"136","severity":1,"message":"141","line":5,"column":13,"nodeType":"138","messageId":"139","endLine":5,"endColumn":22},{"ruleId":"142","severity":1,"message":"143","line":28,"column":1,"nodeType":"144","endLine":33,"endColumn":3},{"ruleId":"130","replacedBy":"145"},{"ruleId":"132","replacedBy":"146"},{"ruleId":"147","severity":1,"message":"148","line":18,"column":6,"nodeType":"149","endLine":18,"endColumn":8,"suggestions":"150"},{"ruleId":"136","severity":1,"message":"151","line":4,"column":10,"nodeType":"138","messageId":"139","endLine":4,"endColumn":19},{"ruleId":"130","replacedBy":"152"},{"ruleId":"132","replacedBy":"153"},{"ruleId":"136","severity":1,"message":"154","line":3,"column":8,"nodeType":"138","messageId":"139","endLine":3,"endColumn":14},{"ruleId":"136","severity":1,"message":"155","line":22,"column":11,"nodeType":"138","messageId":"139","endLine":22,"endColumn":20},{"ruleId":"136","severity":1,"message":"156","line":10,"column":11,"nodeType":"138","messageId":"139","endLine":10,"endColumn":21},"no-native-reassign",["157"],"no-negated-in-lhs",["158"],["157"],["158"],"no-unused-vars","'useState' is defined but never used.","Identifier","unusedVar","'useLoader' is defined but never used.","'useSpring' is defined but never used.","import/no-anonymous-default-export","Assign object to a variable before exporting as module default","ExportDefaultDeclaration",["157"],["158"],"react-hooks/exhaustive-deps","React Hook useEffect has a missing dependency: 'topic'. Either include it or remove the dependency array.","ArrayExpression",["159"],"'Container' is defined but never used.",["157"],["158"],"'styled' is defined but never used.","'newTopics' is assigned a value but never used.","'newContent' is assigned a value but never used.","no-global-assign","no-unsafe-negation",{"desc":"160","fix":"161"},"Update the dependencies array to be: [topic]",{"range":"162","text":"163"},[543,545],"[topic]"]