-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintcache
1 lines (1 loc) · 41.5 KB
/
.eslintcache
1
[{"/Users/sakshamgupta/vmock/React/assignment/src/index.js":"1","/Users/sakshamgupta/vmock/React/assignment/src/App.js":"2","/Users/sakshamgupta/vmock/React/assignment/src/reportWebVitals.js":"3","/Users/sakshamgupta/vmock/React/assignment/src/components/Signup.js":"4","/Users/sakshamgupta/vmock/React/assignment/src/components/Login.js":"5","/Users/sakshamgupta/vmock/React/assignment/src/components/Mailverify.js":"6","/Users/sakshamgupta/vmock/React/assignment/src/components/Forgotpass.js":"7","/Users/sakshamgupta/vmock/React/assignment/src/redux/index.js":"8","/Users/sakshamgupta/vmock/React/assignment/src/redux/user/useraction.js":"9","/Users/sakshamgupta/vmock/React/assignment/src/redux/user/usertype.js":"10","/Users/sakshamgupta/vmock/React/assignment/src/components/Dashboard.js":"11","/Users/sakshamgupta/vmock/React/assignment/src/redux/login/loginAction.js":"12","/Users/sakshamgupta/vmock/React/assignment/src/redux/login/loginType.js":"13","/Users/sakshamgupta/vmock/React/assignment/src/redux/Store.js":"14","/Users/sakshamgupta/vmock/React/assignment/src/redux/rootReducer.js":"15","/Users/sakshamgupta/vmock/React/assignment/src/redux/user/userreducer.js":"16","/Users/sakshamgupta/vmock/React/assignment/src/redux/login/loginReducer.js":"17","/Users/sakshamgupta/vmock/React/assignment/src/redux/token/tokenAction.js":"18","/Users/sakshamgupta/vmock/React/assignment/src/redux/token/tokenType.js":"19","/Users/sakshamgupta/vmock/React/assignment/src/redux/token/tokenReducer.js":"20","/Users/sakshamgupta/vmock/React/assignment/src/redux/user/userReducer.js":"21","/Users/sakshamgupta/vmock/React/assignment/src/redux/user/userType.js":"22","/Users/sakshamgupta/vmock/React/assignment/src/redux/user/userAction.js":"23","/Users/sakshamgupta/vmock/React/assignment/src/components/Update.js":"24","/Users/sakshamgupta/vmock/React/assignment/src/components/Delete.js":"25","/Users/sakshamgupta/vmock/React/assignment/src/components/AdminDashboard.js":"26","/Users/sakshamgupta/vmock/React/assignment/src/components/Userlist.js":"27","/Users/sakshamgupta/vmock/React/assignment/src/components/Verify.js":"28","/Users/sakshamgupta/vmock/React/assignment/src/components/ChangePassword.js":"29","/Users/sakshamgupta/vmock/React/assignment/src/components/CreateUser.js":"30","/Users/sakshamgupta/vmock/React/assignment/src/components/TypePassword.js":"31","/Users/sakshamgupta/vmock/React/assignment/src/components/Users.js":"32","/Users/sakshamgupta/vmock/React/assignment/src/components/AddTask.js":"33","/Users/sakshamgupta/vmock/React/assignment/src/components/ViewTask.js":"34","/Users/sakshamgupta/vmock/React/assignment/src/components/ViewTaskDash.js":"35","/Users/sakshamgupta/vmock/React/assignment/src/components/UpdateTask.js":"36","/Users/sakshamgupta/vmock/React/assignment/src/components/Piechart.js":"37","/Users/sakshamgupta/vmock/React/assignment/src/components/AllTask.js":"38","/Users/sakshamgupta/vmock/React/assignment/src/components/UserlistNormal.js":"39","/Users/sakshamgupta/vmock/React/assignment/src/components/AllTaskNormal.js":"40"},{"size":500,"mtime":1609945397866,"results":"41","hashOfConfig":"42"},{"size":1375,"mtime":1610104189701,"results":"43","hashOfConfig":"42"},{"size":362,"mtime":1608384773252,"results":"44","hashOfConfig":"42"},{"size":5820,"mtime":1610130342948,"results":"45","hashOfConfig":"42"},{"size":5356,"mtime":1610116796562,"results":"46","hashOfConfig":"42"},{"size":2570,"mtime":1610129696463,"results":"47","hashOfConfig":"42"},{"size":2488,"mtime":1610114227276,"results":"48","hashOfConfig":"42"},{"size":106,"mtime":1608705393888,"results":"49","hashOfConfig":"42"},{"size":906,"mtime":1608734955090,"results":"50","hashOfConfig":"42"},{"size":165,"mtime":1608705351202,"results":"51","hashOfConfig":"42"},{"size":8104,"mtime":1610356846299,"results":"52","hashOfConfig":"42"},{"size":606,"mtime":1610346324971,"results":"53","hashOfConfig":"42"},{"size":130,"mtime":1610344594612,"results":"54","hashOfConfig":"42"},{"size":348,"mtime":1608793715107,"results":"55","hashOfConfig":"42"},{"size":352,"mtime":1608729094909,"results":"56","hashOfConfig":"42"},{"size":936,"mtime":1608734308795,"results":"57","hashOfConfig":"42"},{"size":753,"mtime":1610346389869,"results":"58","hashOfConfig":"42"},{"size":163,"mtime":1608702792882,"results":"59","hashOfConfig":"42"},{"size":44,"mtime":1608700387654,"results":"60","hashOfConfig":"42"},{"size":363,"mtime":1608701256408,"results":"61","hashOfConfig":"42"},{"size":937,"mtime":1610135179217,"results":"62","hashOfConfig":"42"},{"size":165,"mtime":1608705351202,"results":"63","hashOfConfig":"42"},{"size":932,"mtime":1610104932427,"results":"64","hashOfConfig":"42"},{"size":5863,"mtime":1610213698066,"results":"65","hashOfConfig":"42"},{"size":2602,"mtime":1610140393271,"results":"66","hashOfConfig":"42"},{"size":6759,"mtime":1610370406283,"results":"67","hashOfConfig":"42"},{"size":11176,"mtime":1610364150206,"results":"68","hashOfConfig":"42"},{"size":1287,"mtime":1610104108653,"results":"69","hashOfConfig":"42"},{"size":1774,"mtime":1610104366579,"results":"70","hashOfConfig":"42"},{"size":5082,"mtime":1610116767931,"results":"71","hashOfConfig":"42"},{"size":2922,"mtime":1610140999890,"results":"72","hashOfConfig":"42"},{"size":10213,"mtime":1610104752382,"results":"73","hashOfConfig":"42"},{"size":3342,"mtime":1610355676275,"results":"74","hashOfConfig":"42"},{"size":8699,"mtime":1610140463119,"results":"75","hashOfConfig":"42"},{"size":12264,"mtime":1610363402514,"results":"76","hashOfConfig":"42"},{"size":4361,"mtime":1610357392416,"results":"77","hashOfConfig":"42"},{"size":6578,"mtime":1610128162445,"results":"78","hashOfConfig":"42"},{"size":8570,"mtime":1610374262136,"results":"79","hashOfConfig":"42"},{"size":8090,"mtime":1610352836579,"results":"80","hashOfConfig":"42"},{"size":8079,"mtime":1610356748551,"results":"81","hashOfConfig":"42"},{"filePath":"82","messages":"83","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"84"},"1kesye3",{"filePath":"85","messages":"86","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"84"},{"filePath":"87","messages":"88","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"84"},{"filePath":"89","messages":"90","errorCount":0,"warningCount":3,"fixableErrorCount":0,"fixableWarningCount":0,"source":"91","usedDeprecatedRules":"84"},{"filePath":"92","messages":"93","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"84"},{"filePath":"94","messages":"95","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"84"},{"filePath":"96","messages":"97","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"84"},{"filePath":"98","messages":"99","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"84"},{"filePath":"100","messages":"101","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"102","messages":"103","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"104","messages":"105","errorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"106","messages":"107","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"108","messages":"109","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"110","messages":"111","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"84"},{"filePath":"112","messages":"113","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"84"},{"filePath":"114","messages":"115","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"116","messages":"117","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"118","messages":"119","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"84"},{"filePath":"120","messages":"121","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"84"},{"filePath":"122","messages":"123","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"84"},{"filePath":"124","messages":"125","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"84"},{"filePath":"126","messages":"127","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"84"},{"filePath":"128","messages":"129","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"84"},{"filePath":"130","messages":"131","errorCount":0,"warningCount":4,"fixableErrorCount":0,"fixableWarningCount":0,"source":"132","usedDeprecatedRules":"84"},{"filePath":"133","messages":"134","errorCount":0,"warningCount":3,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"135","messages":"136","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"137","messages":"138","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"139","messages":"140","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"84"},{"filePath":"141","messages":"142","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"84"},{"filePath":"143","messages":"144","errorCount":0,"warningCount":3,"fixableErrorCount":0,"fixableWarningCount":0,"source":"145","usedDeprecatedRules":"84"},{"filePath":"146","messages":"147","errorCount":0,"warningCount":3,"fixableErrorCount":0,"fixableWarningCount":0,"source":"148","usedDeprecatedRules":"84"},{"filePath":"149","messages":"150","errorCount":0,"warningCount":4,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"151","messages":"152","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"153","messages":"154","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"84"},{"filePath":"155","messages":"156","errorCount":0,"warningCount":3,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"157","messages":"158","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"159","messages":"160","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"84"},{"filePath":"161","messages":"162","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"163","messages":"164","errorCount":0,"warningCount":4,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"165","messages":"166","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"/Users/sakshamgupta/vmock/React/assignment/src/index.js",[],["167","168"],"/Users/sakshamgupta/vmock/React/assignment/src/App.js",[],"/Users/sakshamgupta/vmock/React/assignment/src/reportWebVitals.js",[],"/Users/sakshamgupta/vmock/React/assignment/src/components/Signup.js",["169","170","171"],"import React, { Component } from 'react'\nimport axios from 'axios'\nimport { Link , Redirect } from 'react-router-dom'\nimport { connect } from 'react-redux'\n\nimport { loginRequest } from '../redux'\nimport { logoutRequest } from '../redux'\nimport { tokenRequest } from '../redux'\n\nimport { Button , Form , Container , Navbar , Nav } from 'react-bootstrap'\nimport \"./components.css\"\n\nconst strongRegex = new RegExp(\"^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[!@#\\$%\\^&\\*])(?=.{8,})\");\n\nclass Signup extends Component {\n\n \n constructor(props){\n super(props) \n \n this.state ={\n name: '' ,\n email:'' ,\n password:'',\n retypepassword:'',\n errorMessage : '',\n successMessage :'',\n }\n }\n \n handleChange = (event) => {\n //let name = event.target.name\n this.setState({\n [event.target.name] : event.target.value\n }) \n }\n\n storeCollector(){\n let store = JSON.parse(localStorage.getItem('localStorage'));\n if((store != null) && store.login && !(this.props.loginStatus)){\n this.props.loginRequest();\n this.props.tokenRequest(store.token)\n }\n }\n\n handleSubmit = (event) =>{\n event.preventDefault()\n\n if(!strongRegex.test(this.state.password)) {\n this.setState({errorMessage :['Password not strong enough']})\n return \n }\n\n axios.post('http://localhost:8000/signup' , \n this.state\n // name: this.state.name,\n // email: this.state.email,\n // password: this.state.password,\n // retypepassword: this.state.retypepassword\n )\n .then(response =>{\n document.getElementById(\"clear\").reset();\n this.setState({successMessage : 'Account Created'})\n //console.log(response)\n // this.context.router.history.push(`/login`)\n //history.push(\"/login\")\n })\n .catch(error =>{\n let temp = Object.values(error.response.data)\n this.setState({errorMessage : temp[0]})\n })\n }\n\n componentDidMount(){\n this.storeCollector()\n //this.post()\n }\n\n render(){\n return(\n \n \n !this.props.loginStatus?\n <div >\n\n <Navbar bg=\"light\" expand=\"lg\">\n <Navbar.Brand href=\"/\">SG UI</Navbar.Brand>\n <Nav.Link href=\"/signup\">Signup</Nav.Link>\n <Nav.Link href=\"/verifyreq\">Email Verification</Nav.Link>\n </Navbar>\n\n { this.state.errorMessage &&\n <h3 className=\"error\"> { this.state.errorMessage } </h3> }\n\n { this.state.successMessage &&\n <h3 className=\"error\"> { this.state.successMessage } </h3> }\n\n {/* Object.keys(myObject).map(function(key, index) {\n myObject[key] *= 2;\n }) */}\n\n <Container className = \"card\">\n <h3>Signup Page</h3>\n <Form id = \"clear\" onSubmit = {this.handleSubmit} >\n <Form.Group>\n <Form.Label>Name:</Form.Label>\n <Form.Control type = 'text' \n name =\"name\"\n value = {this.state.name} \n onChange = {this.handleChange}>\n </Form.Control>\n </Form.Group>\n <Form.Group>\n <Form.Label>Email:</Form.Label>\n <Form.Control type = \"email\" \n name = \"email\"\n value = {this.state.email} \n onChange = {this.handleChange}>\n </Form.Control>\n </Form.Group>\n\n <Form.Group>\n <Form.Label>Password:</Form.Label>\n <Form.Control type = \"password\" \n name = \"password\"\n value = {this.state.password} \n onChange = {this.handleChange}>\n </Form.Control>\n </Form.Group>\n\n <Form.Group>\n <Form.Label>Confirm Password:</Form.Label>\n <Form.Control type = \"password\" \n name = \"retypepassword\"\n value = {this.state.retypepassword} \n onChange = {this.handleChange}>\n </Form.Control>\n </Form.Group>\n\n <Button type = \"submit\">Signup</Button>\n </Form>\n\n <div/>\n <Link to ='/forgotpassword' >\n Forgot Password\n </Link>\n <div/>\n </Container>\n </div>\n :\n <div>\n <Redirect to = \"/dashboard\"/>\n </div>\n \n \n )\n }\n\n}\n\nconst mapStateToProps = (state) => {\n return{\n loginStatus : state.loginReducer.loginStatus ,\n token :state.tokenReducer.token,\n }\n}\n\nconst mapDispatchToProps = (dispatch) => {\n return {\n logoutRequest : ()=> dispatch(logoutRequest()) ,\n loginRequest : ()=> dispatch(loginRequest()) ,\n tokenRequest : (token)=> dispatch(tokenRequest(token)),\n }\n}\n\nexport default connect(mapStateToProps,\n mapDispatchToProps)\n (Signup)","/Users/sakshamgupta/vmock/React/assignment/src/components/Login.js",[],"/Users/sakshamgupta/vmock/React/assignment/src/components/Mailverify.js",[],"/Users/sakshamgupta/vmock/React/assignment/src/components/Forgotpass.js",[],"/Users/sakshamgupta/vmock/React/assignment/src/redux/index.js",[],"/Users/sakshamgupta/vmock/React/assignment/src/redux/user/useraction.js",[],"/Users/sakshamgupta/vmock/React/assignment/src/redux/user/usertype.js",[],"/Users/sakshamgupta/vmock/React/assignment/src/components/Dashboard.js",["172","173"],"/Users/sakshamgupta/vmock/React/assignment/src/redux/login/loginAction.js",[],"/Users/sakshamgupta/vmock/React/assignment/src/redux/login/loginType.js",[],"/Users/sakshamgupta/vmock/React/assignment/src/redux/Store.js",[],"/Users/sakshamgupta/vmock/React/assignment/src/redux/rootReducer.js",[],"/Users/sakshamgupta/vmock/React/assignment/src/redux/user/userreducer.js",[],"/Users/sakshamgupta/vmock/React/assignment/src/redux/login/loginReducer.js",[],"/Users/sakshamgupta/vmock/React/assignment/src/redux/token/tokenAction.js",[],"/Users/sakshamgupta/vmock/React/assignment/src/redux/token/tokenType.js",[],"/Users/sakshamgupta/vmock/React/assignment/src/redux/token/tokenReducer.js",[],"/Users/sakshamgupta/vmock/React/assignment/src/redux/user/userReducer.js",[],"/Users/sakshamgupta/vmock/React/assignment/src/redux/user/userType.js",[],"/Users/sakshamgupta/vmock/React/assignment/src/redux/user/userAction.js",[],"/Users/sakshamgupta/vmock/React/assignment/src/components/Update.js",["174","175","176","177"],"import React, { Component } from 'react'\nimport axios from 'axios'\nimport { Redirect} from 'react-router-dom'\nimport { connect } from 'react-redux'\n\nimport { loginRequest ,logoutRequest ,tokenRequest } from '../redux'\nimport { fetchUsersRequest , fetchUsersSuccess , fetchUsersFailure } from '../redux'\n\nimport { Button , Form , Container } from 'react-bootstrap'\nimport \"./components.css\"\n\nconst strongRegex = new RegExp(\"^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[!@#\\$%\\^&\\*])(?=.{8,})\");\n\nclass Update extends Component {\n\n constructor(props){\n super(props)\n \n this.state ={\n name: '' ,\n email:'' ,\n password:'',\n retypepassword:'',\n loading : true,\n updateStatus :false,\n errorMessage : ''\n }\n }\n \n handleChange = (event) => {\n this.setState({\n [event.target.name] : event.target.value\n })\n \n }\n\n storeCollector(){\n let store = JSON.parse(localStorage.getItem('localStorage'));\n if(store!= null && store.login && !(this.props.loginStatus)){\n this.props.loginRequest();\n this.props.tokenRequest(store.token)\n }\n this.setState({\n loading : false\n })\n }\n \n handleSubmit = (event) => {\n event.preventDefault()\n axios.post('http://localhost:8000/update' , this.state, \n {\n headers: {\n 'Authorization': `Bearer ${this.props.token}` //this.props.store\n }\n })\n .then(response =>{\n console.log(response)\n\n if(this.state.email !== ''){\n localStorage.setItem('localStorage' , JSON.stringify({\n login : false,\n token : ''\n }))\n }\n \n this.setState({\n updateStatus : true\n })\n })\n .catch(error =>{\n let temp = Object.values(error.response.data)\n this.setState({errorMessage : temp})\n })\n\n }\n\n handleChange = (event) => {\n this.setState({\n [event.target.name] : event.target.value\n })\n }\n\n componentDidMount(){\n this.storeCollector()\n }\n\n\n render() {\n\n if(this.state.loading)\n return(\n <>\n <p>loading...</p>\n </>\n )\n\n if(this.state.updateStatus)\n return(\n <>\n <Redirect to = '/dashboard' />\n </>\n )\n return (\n \n <>\n {\n this.props.loginStatus?\n <div>\n { this.state.errorMessage &&\n <h3 className=\"error\"> { this.state.errorMessage[0] } </h3> }\n\n <Container className = \"card\">\n <h2>Update your Details </h2>\n <p>*If you don't want to update any field, leave it blank</p>\n <Form onSubmit = {this.handleSubmit}>\n <Form.Group>\n <Form.Label>Name:</Form.Label>{\"\\n\"}\n <Form.Control type = 'text' \n name =\"name\"\n value = {this.state.name} \n onChange = {this.handleChange}>\n </Form.Control>\n </Form.Group>\n <Form.Group>\n <Form.Label>Email:</Form.Label>{\"\\n\"}\n <Form.Control type = \"email\" \n name = \"email\"\n value = {this.state.email} \n onChange = {this.handleChange}>\n </Form.Control>\n </Form.Group>\n <Form.Group>\n <Form.Label>Password:</Form.Label>{\"\\n\"}\n <Form.Control type = \"password\" \n name = \"password\"\n value = {this.state.password} \n onChange = {this.handleChange}>\n </Form.Control>\n </Form.Group>\n\n <Form.Group>\n <Form.Label>Confirm Password:</Form.Label>{\"\\n\"}\n <Form.Control type = \"password\" \n name = \"retypepassword\"\n value = {this.state.retypepassword} \n onChange = {this.handleChange}>\n </Form.Control>\n </Form.Group>\n\n <Button type = \"submit\">UPDATE</Button>\n </Form>\n </Container>\n </div>\n :\n <div>\n <Redirect to = \"/\" />\n </div>\n }\n </>\n\n )\n }\n}\n\nconst mapStateToProps = (state) => {\n return{\n loginStatus : state.loginReducer.loginStatus ,\n token :state.tokenReducer.token,\n userData : state.userReducer.users,\n }\n}\n\nconst mapDispatchToProps = (dispatch) => {\n return {\n logoutRequest : ()=> dispatch(logoutRequest()) ,\n loginRequest : ()=> dispatch(loginRequest()) ,\n tokenRequest : (token)=> dispatch(tokenRequest(token)),\n fetchUsersRequest : () => dispatch(fetchUsersRequest()),\n fetchUsersSuccess : (users) => dispatch(fetchUsersSuccess(users)),\n fetchUsersFailure : (error) => dispatch(fetchUsersFailure(error)),\n }\n}\n\nexport default connect(mapStateToProps,\n mapDispatchToProps)\n (Update)\n","/Users/sakshamgupta/vmock/React/assignment/src/components/Delete.js",["178","179","180"],"/Users/sakshamgupta/vmock/React/assignment/src/components/AdminDashboard.js",[],"/Users/sakshamgupta/vmock/React/assignment/src/components/Userlist.js",["181"],"/Users/sakshamgupta/vmock/React/assignment/src/components/Verify.js",[],"/Users/sakshamgupta/vmock/React/assignment/src/components/ChangePassword.js",[],"/Users/sakshamgupta/vmock/React/assignment/src/components/CreateUser.js",["182","183","184"],"import React, { Component } from 'react'\nimport axios from 'axios'\nimport { Button , Form , Container } from 'react-bootstrap'\nimport { loginRequest , logoutRequest , tokenRequest } from '../redux' \nimport { connect } from 'react-redux'\n\nconst strongRegex = new RegExp(\"^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[!@#\\$%\\^&\\*])(?=.{8,})\");\n\nclass CreateUser extends Component {\n\n constructor(props) {\n super(props)\n \n this.state = {\n name: '' ,\n email:'' ,\n password:'',\n retypepassword:'',\n loading : true,\n status : '',\n errorMessage : '',\n }\n }\n\n handleChange = (event) => {\n this.setState({\n [event.target.name] : event.target.value\n })\n \n }\n\n storeCollector(){\n let store = JSON.parse(localStorage.getItem('localStorage'));\n if((store != null) && store.login && !(this.props.loginStatus)){\n this.props.loginRequest();\n this.props.tokenRequest(store.token)\n }\n this.setState({\n loading : false\n })\n }\n\n handleSubmit = (event) =>{\n event.preventDefault()\n if(!strongRegex.test(this.state.password)) {\n this.setState({errorMessage :'Password not strong enough'})\n return \n }\n axios\n .post('http://localhost:8000/create-user' ,{\n name: this.state.name,\n email: this.state.email,\n password: this.state.password,\n retypepassword: this.state.retypepassword\n },{\n headers: {\n 'Authorization': `Bearer ${this.props.token}` //this.props.store\n } \n })\n .then(response =>{\n console.log(response)\n this.setState({status : 'successfull'})\n })\n .catch(error =>{\n let temp = Object.values(error.response.data)\n this.setState({errorMessage : temp[0]})\n })\n }\n\n\n componentDidMount(){\n this.storeCollector();\n }\n\n render() {\n\n if(this.state.loading){\n return(\n <div><h3>loading</h3></div>\n )\n }\n\n return (\n <div>\n {/* <Navbar bg=\"light\" expand=\"lg\">\n <Navbar.Brand href=\"/login\">SG UI</Navbar.Brand>\n <Nav.Link href=\"/admindashboard\">Home</Nav.Link>\n </Navbar> */}\n <Container >\n { this.state.errorMessage &&\n <h3 className=\"error\"> { this.state.errorMessage } </h3> }\n \n {(this.state.status) && <h4>User added</h4>}\n <h3 className = 'test-left'>create user</h3>\n <Form onSubmit = {this.handleSubmit} >\n <div>\n <Form.Label>Name:</Form.Label>{\"\\n\"}\n <Form.Control type = 'text' \n name =\"name\"\n value = {this.state.name} \n onChange = {this.handleChange}>\n </Form.Control>\n </div>\n <div>\n <Form.Label>Email:</Form.Label>{\"\\n\"}\n <Form.Control type = \"email\" \n name = \"email\"\n value = {this.state.email} \n onChange = {this.handleChange}>\n </Form.Control>\n </div>\n\n <div>\n <Form.Label>Password:</Form.Label>{\"\\n\"}\n <Form.Control type = \"password\" \n name = \"password\"\n value = {this.state.password} \n onChange = {this.handleChange}>\n </Form.Control>\n </div>\n\n <div>\n <Form.Label>Confirm Password:</Form.Label>{\"\\n\"}\n <Form.Control type = \"password\" \n name = \"retypepassword\"\n value = {this.state.retypepassword} \n onChange = {this.handleChange}>\n </Form.Control>\n </div>\n <div/>\n <Button type = \"submit\">Create</Button>\n </Form>\n </Container>\n\n </div>\n )\n }\n}\n\nconst mapStateToProps = (state) => {\n return{\n loginStatus : state.loginReducer.loginStatus ,\n token :state.tokenReducer.token,\n }\n}\n\nconst mapDispatchToProps = (dispatch) => {\n return {\n logoutRequest : ()=> dispatch(logoutRequest()) ,\n loginRequest : ()=> dispatch(loginRequest()) ,\n tokenRequest : (token)=> dispatch(tokenRequest(token)),\n }\n}\n\nexport default connect(mapStateToProps,\n mapDispatchToProps)\n (CreateUser)\n\n","/Users/sakshamgupta/vmock/React/assignment/src/components/TypePassword.js",["185","186","187"],"import React, { Component } from 'react'\n\nimport axios from 'axios'\nimport { Redirect } from 'react-router-dom'\n\nimport { Button , Form , Container} from 'react-bootstrap'\nimport \"./components.css\"\n\nconst strongRegex = new RegExp(\"^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[!@#\\$%\\^&\\*])(?=.{8,})\");\n\nexport class TypePassword extends Component {\n\n constructor(props) {\n super(props)\n \n this.state = {\n password : '' ,\n retypepassword : '',\n errorMessage : '',\n status : false,\n }\n }\n \n\n\n handleChange = (event) => {\n this.setState({\n [event.target.name] : event.target.value\n })\n \n }\n\n handleSubmit = (event) =>{\n event.preventDefault();\n\n if(!strongRegex.test(this.state.password)) {\n this.setState({errorMessage :'Password not strong enough'})\n return \n }\n\n axios\n .post('http://localhost:8000/changepassword' , this.state , {\n headers: {\n 'Authorization': `Bearer ${this.props.token}` //this.props.store\n }\n })\n .then(response =>{\n //console.log(\"password updated successfully\")\n this.setState({status:true})\n })\n .catch(error =>{\n let temp = Object.values(error.response.data)\n this.setState({errorMessage : temp[0]})\n //console.log('error')\n })\n }\n\n\n render() {\n\n if(this.state.status){\n <Redirect to = \"/login\"/>\n }\n\n return (\n <>\n <div className = \"card\">\n <Container>\n { this.state.errorMessage &&\n <h3 className=\"error\"> { this.state.errorMessage } </h3> }\n \n <Form onSubmit = {this.handleSubmit}>\n <div>\n <Form.Label>Password:</Form.Label>{\"\\n\"}\n <Form.Control type = \"password\" \n name = \"password\"\n value = {this.state.password} \n onChange = {this.handleChange}>\n </Form.Control>\n </div>\n\n <div>\n <Form.Label>Confirm Password:</Form.Label>{\"\\n\"}\n <Form.Control type = \"password\" \n name = \"retypepassword\"\n value = {this.state.retypepassword} \n onChange = {this.handleChange}>\n </Form.Control>\n </div>\n\n <Button type = \"submit\">Confirm</Button>\n </Form>\n </Container>\n </div>\n </>\n )\n }\n}\n\nexport default TypePassword\n","/Users/sakshamgupta/vmock/React/assignment/src/components/Users.js",["188","189","190","191"],"/Users/sakshamgupta/vmock/React/assignment/src/components/AddTask.js",[],"/Users/sakshamgupta/vmock/React/assignment/src/components/ViewTask.js",[],"/Users/sakshamgupta/vmock/React/assignment/src/components/ViewTaskDash.js",["192","193","194"],"/Users/sakshamgupta/vmock/React/assignment/src/components/UpdateTask.js",[],"/Users/sakshamgupta/vmock/React/assignment/src/components/Piechart.js",[],"/Users/sakshamgupta/vmock/React/assignment/src/components/AllTask.js",["195"],"/Users/sakshamgupta/vmock/React/assignment/src/components/UserlistNormal.js",["196","197","198","199"],"/Users/sakshamgupta/vmock/React/assignment/src/components/AllTaskNormal.js",[],{"ruleId":"200","replacedBy":"201"},{"ruleId":"202","replacedBy":"203"},{"ruleId":"204","severity":1,"message":"205","line":13,"column":76,"nodeType":"206","messageId":"207","endLine":13,"endColumn":77,"suggestions":"208"},{"ruleId":"204","severity":1,"message":"209","line":13,"column":79,"nodeType":"206","messageId":"207","endLine":13,"endColumn":80,"suggestions":"210"},{"ruleId":"204","severity":1,"message":"211","line":13,"column":82,"nodeType":"206","messageId":"207","endLine":13,"endColumn":83,"suggestions":"212"},{"ruleId":"213","severity":1,"message":"214","line":20,"column":49,"nodeType":"215","messageId":"216","endLine":20,"endColumn":58},{"ruleId":"213","severity":1,"message":"217","line":20,"column":60,"nodeType":"215","messageId":"216","endLine":20,"endColumn":66},{"ruleId":"213","severity":1,"message":"218","line":12,"column":7,"nodeType":"215","messageId":"216","endLine":12,"endColumn":18},{"ruleId":"204","severity":1,"message":"205","line":12,"column":76,"nodeType":"206","messageId":"207","endLine":12,"endColumn":77,"suggestions":"219"},{"ruleId":"204","severity":1,"message":"209","line":12,"column":79,"nodeType":"206","messageId":"207","endLine":12,"endColumn":80,"suggestions":"220"},{"ruleId":"204","severity":1,"message":"211","line":12,"column":82,"nodeType":"206","messageId":"207","endLine":12,"endColumn":83,"suggestions":"221"},{"ruleId":"213","severity":1,"message":"222","line":9,"column":30,"nodeType":"215","messageId":"216","endLine":9,"endColumn":47},{"ruleId":"213","severity":1,"message":"217","line":11,"column":10,"nodeType":"215","messageId":"216","endLine":11,"endColumn":16},{"ruleId":"213","severity":1,"message":"223","line":11,"column":19,"nodeType":"215","messageId":"216","endLine":11,"endColumn":23},{"ruleId":"213","severity":1,"message":"224","line":129,"column":21,"nodeType":"215","messageId":"216","endLine":129,"endColumn":27},{"ruleId":"204","severity":1,"message":"205","line":7,"column":76,"nodeType":"206","messageId":"207","endLine":7,"endColumn":77,"suggestions":"225"},{"ruleId":"204","severity":1,"message":"209","line":7,"column":79,"nodeType":"206","messageId":"207","endLine":7,"endColumn":80,"suggestions":"226"},{"ruleId":"204","severity":1,"message":"211","line":7,"column":82,"nodeType":"206","messageId":"207","endLine":7,"endColumn":83,"suggestions":"227"},{"ruleId":"204","severity":1,"message":"205","line":9,"column":76,"nodeType":"206","messageId":"207","endLine":9,"endColumn":77,"suggestions":"228"},{"ruleId":"204","severity":1,"message":"209","line":9,"column":79,"nodeType":"206","messageId":"207","endLine":9,"endColumn":80,"suggestions":"229"},{"ruleId":"204","severity":1,"message":"211","line":9,"column":82,"nodeType":"206","messageId":"207","endLine":9,"endColumn":83,"suggestions":"230"},{"ruleId":"213","severity":1,"message":"231","line":3,"column":21,"nodeType":"215","messageId":"216","endLine":3,"endColumn":25},{"ruleId":"213","severity":1,"message":"232","line":9,"column":8,"nodeType":"215","messageId":"216","endLine":9,"endColumn":15},{"ruleId":"213","severity":1,"message":"233","line":11,"column":65,"nodeType":"215","messageId":"216","endLine":11,"endColumn":69},{"ruleId":"234","severity":1,"message":"235","line":204,"column":59,"nodeType":"236","messageId":"237","endLine":204,"endColumn":61},{"ruleId":"213","severity":1,"message":"238","line":3,"column":77,"nodeType":"215","messageId":"216","endLine":3,"endColumn":83},{"ruleId":"213","severity":1,"message":"239","line":3,"column":85,"nodeType":"215","messageId":"216","endLine":3,"endColumn":88},{"ruleId":"213","severity":1,"message":"240","line":149,"column":16,"nodeType":"215","messageId":"216","endLine":149,"endColumn":20},{"ruleId":"213","severity":1,"message":"241","line":3,"column":40,"nodeType":"215","messageId":"216","endLine":3,"endColumn":44},{"ruleId":"213","severity":1,"message":"217","line":9,"column":10,"nodeType":"215","messageId":"216","endLine":9,"endColumn":16},{"ruleId":"213","severity":1,"message":"238","line":9,"column":39,"nodeType":"215","messageId":"216","endLine":9,"endColumn":45},{"ruleId":"213","severity":1,"message":"239","line":9,"column":48,"nodeType":"215","messageId":"216","endLine":9,"endColumn":51},{"ruleId":"213","severity":1,"message":"224","line":126,"column":21,"nodeType":"215","messageId":"216","endLine":126,"endColumn":27},"no-native-reassign",["242"],"no-negated-in-lhs",["243"],"no-useless-escape","Unnecessary escape character: \\$.","Literal","unnecessaryEscape",["244","245"],"Unnecessary escape character: \\^.",["246","247"],"Unnecessary escape character: \\*.",["248","249"],"no-unused-vars","'ListGroup' is defined but never used.","Identifier","unusedVar","'Button' is defined but never used.","'strongRegex' is assigned a value but never used.",["250","251"],["252","253"],["254","255"],"'fetchUsersSuccess' is defined but never used.","'Form' is defined but never used.","'status' is assigned a value but never used.",["256","257"],["258","259"],["260","261"],["262","263"],["264","265"],["266","267"],"'Link' is defined but never used.","'AddTask' is defined but never used.","'Tabs' is defined but never used.","eqeqeq","Expected '===' and instead saw '=='.","BinaryExpression","unexpected","'Navbar' is defined but never used.","'Nav' is defined but never used.","'data' is assigned a value but never used.","'Card' is defined but never used.","no-global-assign","no-unsafe-negation",{"messageId":"268","fix":"269","desc":"270"},{"messageId":"271","fix":"272","desc":"273"},{"messageId":"268","fix":"274","desc":"270"},{"messageId":"271","fix":"275","desc":"273"},{"messageId":"268","fix":"276","desc":"270"},{"messageId":"271","fix":"277","desc":"273"},{"messageId":"268","fix":"278","desc":"270"},{"messageId":"271","fix":"279","desc":"273"},{"messageId":"268","fix":"280","desc":"270"},{"messageId":"271","fix":"281","desc":"273"},{"messageId":"268","fix":"282","desc":"270"},{"messageId":"271","fix":"283","desc":"273"},{"messageId":"268","fix":"284","desc":"270"},{"messageId":"271","fix":"285","desc":"273"},{"messageId":"268","fix":"286","desc":"270"},{"messageId":"271","fix":"287","desc":"273"},{"messageId":"268","fix":"288","desc":"270"},{"messageId":"271","fix":"289","desc":"273"},{"messageId":"268","fix":"290","desc":"270"},{"messageId":"271","fix":"291","desc":"273"},{"messageId":"268","fix":"292","desc":"270"},{"messageId":"271","fix":"293","desc":"273"},{"messageId":"268","fix":"294","desc":"270"},{"messageId":"271","fix":"295","desc":"273"},"removeEscape",{"range":"296","text":"297"},"Remove the `\\`. This maintains the current functionality.","escapeBackslash",{"range":"298","text":"299"},"Replace the `\\` with `\\\\` to include the actual backslash character.",{"range":"300","text":"297"},{"range":"301","text":"299"},{"range":"302","text":"297"},{"range":"303","text":"299"},{"range":"304","text":"297"},{"range":"305","text":"299"},{"range":"306","text":"297"},{"range":"307","text":"299"},{"range":"308","text":"297"},{"range":"309","text":"299"},{"range":"310","text":"297"},{"range":"311","text":"299"},{"range":"312","text":"297"},{"range":"313","text":"299"},{"range":"314","text":"297"},{"range":"315","text":"299"},{"range":"316","text":"297"},{"range":"317","text":"299"},{"range":"318","text":"297"},{"range":"319","text":"299"},{"range":"320","text":"297"},{"range":"321","text":"299"},[456,457],"",[456,456],"\\",[459,460],[459,459],[462,463],[462,462],[466,467],[466,466],[469,470],[469,469],[472,473],[472,472],[313,314],[313,313],[316,317],[316,316],[319,320],[319,319],[274,275],[274,274],[277,278],[277,277],[280,281],[280,280]]