-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintcache
3 lines (1 loc) · 11.1 KB
/
.eslintcache
1
2
[{"F:\\project\\djangoprojects\\fullstack\\Rentzop\\src\\index.js":"1","F:\\project\\djangoprojects\\fullstack\\Rentzop\\src\\App.js":"2","F:\\project\\djangoprojects\\fullstack\\Rentzop\\src\\reportWebVitals.js":"3","F:\\project\\djangoprojects\\fullstack\\Rentzop\\src\\components\\LandingPage.js":"4","F:\\project\\djangoprojects\\fullstack\\Rentzop\\src\\components\\HeaderComponent.js":"5","F:\\project\\djangoprojects\\fullstack\\Rentzop\\src\\components\\FooterComponent.js":"6","F:\\project\\djangoprojects\\fullstack\\Rentzop\\src\\components\\USP.js":"7","F:\\project\\djangoprojects\\fullstack\\Rentzop\\src\\components\\OffersComponent.js":"8","F:\\project\\djangoprojects\\fullstack\\Rentzop\\src\\components\\SignInComponent.js":"9","F:\\project\\djangoprojects\\fullstack\\Rentzop\\src\\components\\LatestPropComponent.js":"10","F:\\project\\djangoprojects\\fullstack\\Rentzop\\src\\components\\DetailsComponent.js":"11","F:\\project\\djangoprojects\\fullstack\\Rentzop\\src\\components\\SignUp.js":"12","F:\\project\\djangoprojects\\fullstack\\Rentzop\\src\\Offered\\properties.js":"13","F:\\project\\djangoprojects\\fullstack\\Rentzop\\src\\Offered\\nrproperty.js":"14"},{"size":595,"mtime":1619253946000,"results":"15","hashOfConfig":"16"},{"size":279,"mtime":1619253944000,"results":"17","hashOfConfig":"16"},{"size":362,"mtime":1619253946000,"results":"18","hashOfConfig":"16"},{"size":1010,"mtime":1619254720000,"results":"19","hashOfConfig":"16"},{"size":2269,"mtime":1619253956000,"results":"20","hashOfConfig":"16"},{"size":3586,"mtime":1619253956000,"results":"21","hashOfConfig":"16"},{"size":1909,"mtime":1619254906000,"results":"22","hashOfConfig":"16"},{"size":884,"mtime":1619253956000,"results":"23","hashOfConfig":"16"},{"size":2144,"mtime":1622625973538,"results":"24","hashOfConfig":"16"},{"size":1960,"mtime":1622709165728,"results":"25","hashOfConfig":"16"},{"size":7486,"mtime":1619254566000,"results":"26","hashOfConfig":"16"},{"size":2679,"mtime":1622646091182,"results":"27","hashOfConfig":"16"},{"size":2403,"mtime":1619253946000,"results":"28","hashOfConfig":"16"},{"size":1262,"mtime":1619254650000,"results":"29","hashOfConfig":"16"},{"filePath":"30","messages":"31","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"32"},"i2sceh",{"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,"usedDeprecatedRules":"32"},{"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":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"49","usedDeprecatedRules":"32"},{"filePath":"50","messages":"51","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"52","messages":"53","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"32"},{"filePath":"54","messages":"55","errorCount":0,"warningCount":3,"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"},"F:\\project\\djangoprojects\\fullstack\\Rentzop\\src\\index.js",[],["61","62"],"F:\\project\\djangoprojects\\fullstack\\Rentzop\\src\\App.js",[],"F:\\project\\djangoprojects\\fullstack\\Rentzop\\src\\reportWebVitals.js",[],"F:\\project\\djangoprojects\\fullstack\\Rentzop\\src\\components\\LandingPage.js",[],"F:\\project\\djangoprojects\\fullstack\\Rentzop\\src\\components\\HeaderComponent.js",[],"F:\\project\\djangoprojects\\fullstack\\Rentzop\\src\\components\\FooterComponent.js",[],"F:\\project\\djangoprojects\\fullstack\\Rentzop\\src\\components\\USP.js",[],"F:\\project\\djangoprojects\\fullstack\\Rentzop\\src\\components\\OffersComponent.js",[],"F:\\project\\djangoprojects\\fullstack\\Rentzop\\src\\components\\SignInComponent.js",["63"],"import React, {useState} from \"react\";\nimport axios from \"axios\";\nimport { Button, Form, Label, Input } from \"reactstrap\";\nimport { Link } from \"react-router-dom\";\nimport \"../App.css\";\nimport { ToastContainer, toast } from \"react-toastify\";\n\nfunction SignIn() {\n const [email, setEmail] = useState(\"\");\n const [password, setPassword] = useState(\"\");\n\n function formData() {\n const form_data = new FormData();\n\n form_data.append(\"email\", email);\n form_data.append(\"password\", password);\n return form_data;\n }\n\n function handleSave(e) {\n e.preventDefault();\n\n const LOGIN_URL = \"http://localhost:8000/api/token/\";\n\n axios({\n baseURL: LOGIN_URL,\n method: \"POST\",\n data: formData(),\n })\n .then((res) => {\n if (res.status === 200) {\n console.log(res.data);\n localStorage.setItem(\"user-token\", res.data.access_token);\n toast(\"Login realizado com sucesso.\");\n window.location.href = \"/\";\n }\n })\n .catch((error) => {\n console.log(\"ERROR\", error);\n toast(\"Email ou senha inválidos.\");\n });\n }\n\n return (\n <center>\n <div className=\"boundary\">\n <Form className=\"signinform\" onSubmit={handleSave}>\n <h1>Sign In</h1>\n <div>\n <Label for=\"username\" className=\"abovetheinput\">\n UserName\n </Label>\n <Input type=\"username\" value={email} placeholder=\"ABC_123\" id=\"username\" onChange={(e) => setEmail(e.target.value)} />\n </div>\n <div>\n <Label for=\"password\" className=\"abovetheinput\" >\n Password\n </Label>\n <Input type=\"password\" value={password} placeholder=\"Password\" id=\"password\" onChange={(e) => setPassword(e.target.value)} />\n </div>\n <Link href=\"#\" className=\"newaroundhere\" to=\"/signup\">\n New around here? Sign Up\n </Link>\n <br />\n <Input type=\"checkbox\" />\n Remember Me\n <br />\n <Button className=\"submit\">Sign In</Button>\n </Form>\n </div>\n </center>\n );\n}\n\nexport default SignIn;","F:\\project\\djangoprojects\\fullstack\\Rentzop\\src\\components\\LatestPropComponent.js",[],"F:\\project\\djangoprojects\\fullstack\\Rentzop\\src\\components\\DetailsComponent.js",[],"F:\\project\\djangoprojects\\fullstack\\Rentzop\\src\\components\\SignUp.js",["64","65","66"],"import React,{useState} from \"react\";\nimport { Button, Form, Label, Input } from \"reactstrap\";\nimport axios from \"axios\";\nimport { ToastContainer, toast } from \"react-toastify\";\nimport { Link } from \"react-router-dom\";\nimport \"../App.css\";\nfunction SignUp() {\n const [email, setEmail] = useState(\"\");\n const [password, setPassword] = useState(\"\");\n const [password2, setPassword2] = useState(\"\");\n const [username, setUsername] = useState(\"\");\n\n function formData() {\n const form_data = new FormData();\n form_data.append(\"name\", username);\n form_data.append(\"email\", email);\n form_data.append(\"password\", password);\n form_data.append(\"password2\", password2);\n return form_data;\n }\n\n function handleSave(e) {\n e.preventDefault();\n\n const LOGIN_URL = \"http://localhost:8000/api/accounts/signup\";\n \n axios({\n baseURL: LOGIN_URL,\n method: \"POST\",\n data: formData(),\n })\n .then((res) => {\n if (res.status === 201) {\n toast(`Cadastro realizado com sucesso !`);\n }\n \n })\n .catch((error) => {\n console.log(error);\n let error_msg = \"\";\n Object.keys(error.response.data).forEach(function (e) {\n error_msg += e + \": \" + error.response.data[e][0] + \" - \";\n });\n toast(error);\n });\n }\n\n return (\n <center>\n <div className=\"boundary\">\n <Form className=\"signinform\" onSubmit={handleSave}>\n <h1>Sign Up</h1>\n <div className=\"\">\n <Label for=\"username\" className=\"abovetheinput\">\n UserName\n </Label>\n <Input type=\"\" placeholder=\"ABC_123\" id=\"username\" onChange={(e) => setUsername(e.target.value)}/>\n </div>\n <div className=\"\">\n <Label for=\"email\" className=\"abovetheinput\" >\n Email\n </Label>\n <Input type=\"\" placeholder=\"[email protected]\" id=\"email\" onChange={(e) => setEmail(e.target.value)}/>\n </div>\n <div className=\"\">\n <Label for=\"password\" className=\"abovetheinput\">\n Password\n </Label>\n <Input type=\"\" placeholder=\"Password\" id=\"password\" onChange={(e) => setPassword(e.target.value)}/>\n </div>\n <div className=\"\">\n <Label for=\"password\" className=\"abovetheinput\">\n Confirm Password\n </Label>\n <Input type=\"\" placeholder=\"Confirm Password\" id=\"password2\" onChange={(e) => setPassword2(e.target.value)}/>\n </div>\n <br />\n <Button className=\"submit\">Sign Up</Button>\n </Form>\n </div>\n </center>\n );\n}\n\nexport default SignUp;\n","F:\\project\\djangoprojects\\fullstack\\Rentzop\\src\\Offered\\properties.js",[],"F:\\project\\djangoprojects\\fullstack\\Rentzop\\src\\Offered\\nrproperty.js",[],{"ruleId":"67","replacedBy":"68"},{"ruleId":"69","replacedBy":"70"},{"ruleId":"71","severity":1,"message":"72","line":6,"column":10,"nodeType":"73","messageId":"74","endLine":6,"endColumn":24},{"ruleId":"71","severity":1,"message":"72","line":4,"column":10,"nodeType":"73","messageId":"74","endLine":4,"endColumn":24},{"ruleId":"71","severity":1,"message":"75","line":5,"column":10,"nodeType":"73","messageId":"74","endLine":5,"endColumn":14},{"ruleId":"71","severity":1,"message":"76","line":42,"column":11,"nodeType":"73","messageId":"74","endLine":42,"endColumn":20},"no-native-reassign",["77"],"no-negated-in-lhs",["78"],"no-unused-vars","'ToastContainer' is defined but never used.","Identifier","unusedVar","'Link' is defined but never used.","'error_msg' is assigned a value but never used.","no-global-assign","no-unsafe-negation"]