-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintcache
1 lines (1 loc) · 20.4 KB
/
.eslintcache
1
[{"C:\\Users\\dell\\Desktop\\React-Projects\\react-internship\\src\\index.js":"1","C:\\Users\\dell\\Desktop\\React-Projects\\react-internship\\src\\reportWebVitals.js":"2","C:\\Users\\dell\\Desktop\\React-Projects\\react-internship\\src\\App.js":"3","C:\\Users\\dell\\Desktop\\React-Projects\\react-internship\\src\\Login.jsx":"4","C:\\Users\\dell\\Desktop\\React-Projects\\react-internship\\src\\SignUp.jsx":"5","C:\\Users\\dell\\Desktop\\React-Projects\\react-internship\\src\\components\\About.jsx":"6","C:\\Users\\dell\\Desktop\\React-Projects\\react-internship\\src\\components\\Contact.jsx":"7","C:\\Users\\dell\\Desktop\\React-Projects\\react-internship\\src\\components\\Home.jsx":"8","C:\\Users\\dell\\Desktop\\React-Projects\\react-internship\\src\\components\\Users.jsx":"9","C:\\Users\\dell\\Desktop\\React-Projects\\react-internship\\src\\components\\Header.jsx":"10","C:\\Users\\dell\\Desktop\\React-Projects\\react-internship\\src\\Services\\dataService.js":"11","C:\\Users\\dell\\Desktop\\React-Projects\\react-internship\\src\\Utilities\\constants.js":"12","C:\\Users\\dell\\Desktop\\React-Projects\\react-internship\\src\\Utilities\\Constants.js":"13","C:\\Users\\dell\\Desktop\\React-Projects\\react-internship\\src\\components\\Posts.jsx":"14","C:\\Users\\dell\\Desktop\\React-Projects\\react-internship\\src\\Store.js":"15","C:\\Users\\dell\\Desktop\\React-Projects\\react-internship\\src\\redux\\actions\\actions.js":"16","C:\\Users\\dell\\Desktop\\React-Projects\\react-internship\\src\\redux\\actions\\types.js":"17","C:\\Users\\dell\\Desktop\\React-Projects\\react-internship\\src\\redux\\reducers\\index.js":"18","C:\\Users\\dell\\Desktop\\React-Projects\\react-internship\\src\\redux\\reducers\\reducers.js":"19"},{"size":542,"mtime":1611221825045,"results":"20","hashOfConfig":"21"},{"size":362,"mtime":499162500000,"results":"22","hashOfConfig":"21"},{"size":1832,"mtime":1611327578547,"results":"23","hashOfConfig":"21"},{"size":2847,"mtime":1611558532382,"results":"24","hashOfConfig":"21"},{"size":1415,"mtime":1610628866549,"results":"25","hashOfConfig":"21"},{"size":154,"mtime":1611327339603,"results":"26","hashOfConfig":"21"},{"size":135,"mtime":1610903097059,"results":"27","hashOfConfig":"21"},{"size":204,"mtime":1611235352592,"results":"28","hashOfConfig":"21"},{"size":3288,"mtime":1611564077703,"results":"29","hashOfConfig":"21"},{"size":2159,"mtime":1611235616775,"results":"30","hashOfConfig":"21"},{"size":463,"mtime":1611326873580,"results":"31","hashOfConfig":"21"},{"size":146,"mtime":1611236171451,"results":"32","hashOfConfig":"21"},{"size":146,"mtime":1611328008753,"results":"33","hashOfConfig":"21"},{"size":2693,"mtime":1611564061804,"results":"34","hashOfConfig":"21"},{"size":380,"mtime":1611329499829,"results":"35","hashOfConfig":"21"},{"size":407,"mtime":1611558568902,"results":"36","hashOfConfig":"21"},{"size":123,"mtime":1611557726981,"results":"37","hashOfConfig":"21"},{"size":148,"mtime":1611564047774,"results":"38","hashOfConfig":"21"},{"size":582,"mtime":1611563821232,"results":"39","hashOfConfig":"21"},{"filePath":"40","messages":"41","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"42"},"1623ztw",{"filePath":"43","messages":"44","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"42"},{"filePath":"45","messages":"46","errorCount":0,"warningCount":4,"fixableErrorCount":0,"fixableWarningCount":0,"source":"47","usedDeprecatedRules":"42"},{"filePath":"48","messages":"49","errorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":"50","usedDeprecatedRules":"42"},{"filePath":"51","messages":"52","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"53"},{"filePath":"54","messages":"55","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"42"},{"filePath":"56","messages":"57","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"42"},{"filePath":"58","messages":"59","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"42"},{"filePath":"60","messages":"61","errorCount":0,"warningCount":4,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"62","messages":"63","errorCount":0,"warningCount":7,"fixableErrorCount":0,"fixableWarningCount":0,"source":"64","usedDeprecatedRules":"42"},{"filePath":"65","messages":"66","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"42"},{"filePath":"67","messages":"68","errorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"69","messages":"70","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"42"},{"filePath":"71","messages":"72","errorCount":0,"warningCount":3,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"73","messages":"74","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"75","usedDeprecatedRules":"42"},{"filePath":"76","messages":"77","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"78","usedDeprecatedRules":"42"},{"filePath":"79","messages":"80","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"42"},{"filePath":"81","messages":"82","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"83","messages":"84","errorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},"C:\\Users\\dell\\Desktop\\React-Projects\\react-internship\\src\\index.js",[],["85","86"],"C:\\Users\\dell\\Desktop\\React-Projects\\react-internship\\src\\reportWebVitals.js",[],"C:\\Users\\dell\\Desktop\\React-Projects\\react-internship\\src\\App.js",["87","88","89","90"],"import React,{useState,useEffect} from 'react';\nimport logo from './logo.svg';\nimport './App.css';\nimport Home from './components/Home';\nimport About from './components/About';\nimport Contact from './components/Contact';\nimport Login from './Login';\n\nimport { Button } from '@material-ui/core';\n\nimport {Route, Switch,Link} from \"react-router-dom\";\nimport MenuAppBar from './components/Header';\n\nimport {Provider} from 'react-redux';\nimport { store } from './Store';\n\n\nfunction App() {\n\n const [submitted,setSubmitted] = useState('');\n\n\n // useEffect(()=>{\n // console.log(localStorage.getItem('isAuth'));\n // const setSubmit = localStorage.getItem('isAuth');\n // setSubmitted(JSON.stringify(setSubmit));\n // console.log('App.js',submitted);\n // })\n\n const handleLogin =(loginValue)=>{\n console.log('handle submit!!', loginValue);\n const value = loginValue\n setSubmitted(value);\n\n console.log('After Login test', submitted)\n }\n\n // useEffect(() => {\n \n // const value = localStorage.getItem('isAuth');\n // console.log(value);\n // setSubmitted(value); \n // console.log('useEffect called => ',submitted);\n \n \n // }, [localStorage.getItem('isAuth')])\n\n return (\n <Provider store ={ store}>\n <div className=\"App\">\n\n<Switch>\n {submitted === 'true' ?(\n \n <div>\n { console.log('sss', submitted)}\n <MenuAppBar submitted = {handleLogin}></MenuAppBar> \n <Route exact path = '/about' render={()=><About/>} ></Route>\n <Route exact path = '/contact' render={()=><Contact/>} ></Route>\n <Route exact path = '/Home' render={()=><Home/>}></Route>\n </div> ):\n <Route exact path = '/' render={()=><Login submitted = {handleLogin} />} ></Route>\n }\n\n</Switch> \n \n \n\n \n \n </div>\n </Provider>\n );\n}\n\nexport default App;\n","C:\\Users\\dell\\Desktop\\React-Projects\\react-internship\\src\\Login.jsx",["91","92"],"import React,{useState} from 'react';\r\nimport {getPosts} from './Services/dataService';\r\nimport {getPostData} from './redux/actions/actions';\r\n\r\nimport {connect} from 'react-redux';\r\n\r\nimport {ADMIN_USERNAME,ADMIN_PASSWORD} from './Utilities/Constants';\r\n\r\nimport {Grid,Paper,Avatar,TextField,FormControlLabel,Checkbox,Button,Typography,Link} from '@material-ui/core';\r\nimport LockOutLinedIcon from '@material-ui/icons/LockOpenOutlined';\r\n\r\nconst Login=(props) =>{\r\n\r\n const [userName, setUserName] = useState('');\r\n const [password, setPassword] = useState('');\r\n\r\n\r\n const paperStyle= {\r\n padding :20,height:'50vh',width:250,margin:'40px auto'\r\n }\r\n\r\n const avatarStyle ={\r\n backgroundColor :'green'\r\n }\r\n\r\n const handleUserNameChange =(event)=>{\r\n\r\n setUserName(event.target.value);\r\n }\r\n\r\n const handlePasswordChange =(event)=>{\r\n\r\n \r\n setPassword(event.target.value);\r\n }\r\n\r\n const submitLoginForm =(event)=>{\r\n event.preventDefault();\r\n\r\n if(userName == ADMIN_USERNAME && password == ADMIN_PASSWORD){\r\n localStorage.setItem('isAuth','true');\r\n \r\n getPosts().then(res=> props.posts(res.data))\r\n .catch(err=>console.log(err));\r\n props.submitted('true');\r\n }\r\n\r\n \r\n }\r\n\r\n const loginForm =()=>(\r\n <form onSubmit = {submitLoginForm}>\r\n <Grid >\r\n <Paper elevation ={5} style={paperStyle}>\r\n <Grid align = 'center'>\r\n <Avatar style ={avatarStyle}><LockOutLinedIcon></LockOutLinedIcon></Avatar>\r\n <h2>Sign In</h2>\r\n </Grid>\r\n <TextField onChange={handleUserNameChange} value = {userName} label=\"username\" required fullWidth='true'></TextField>\r\n <TextField onChange={handlePasswordChange} value = {password} label=\"password\" required type ='password' fullWidth='true'></TextField>\r\n \r\n <FormControlLabel\r\n control={\r\n <Checkbox\r\n \r\n name=\"checkedB\"\r\n color=\"primary\"\r\n />\r\n }\r\n label=\"Remember Me\"\r\n />\r\n <Button type ='submit' fullWidth='true' color = 'primary'> Sign In</Button>\r\n <Typography>\r\n <Link href ='#'> Forgot Password ?</Link>\r\n </Typography>\r\n </Paper>\r\n </Grid>\r\n </form>\r\n );\r\n\r\n return(\r\n <div>\r\n {loginForm()}\r\n </div>\r\n );\r\n}\r\n\r\nconst mapDispatchToProps = (dispatch) => {\r\n return {\r\n posts : (data) => dispatch(getPostData(data))\r\n };\r\n };\r\n \r\n\r\n export default connect(null, mapDispatchToProps )(Login);","C:\\Users\\dell\\Desktop\\React-Projects\\react-internship\\src\\SignUp.jsx",[],["93","94"],"C:\\Users\\dell\\Desktop\\React-Projects\\react-internship\\src\\components\\About.jsx",[],"C:\\Users\\dell\\Desktop\\React-Projects\\react-internship\\src\\components\\Contact.jsx",[],"C:\\Users\\dell\\Desktop\\React-Projects\\react-internship\\src\\components\\Home.jsx",[],"C:\\Users\\dell\\Desktop\\React-Projects\\react-internship\\src\\components\\Users.jsx",["95","96","97","98"],"C:\\Users\\dell\\Desktop\\React-Projects\\react-internship\\src\\components\\Header.jsx",["99","100","101","102","103","104","105"],"import React from 'react';\r\nimport { makeStyles } from '@material-ui/core/styles';\r\nimport AppBar from '@material-ui/core/AppBar';\r\nimport Toolbar from '@material-ui/core/Toolbar';\r\nimport Typography from '@material-ui/core/Typography';\r\nimport IconButton from '@material-ui/core/IconButton';\r\nimport MenuIcon from '@material-ui/icons/Menu';\r\nimport AccountCircle from '@material-ui/icons/AccountCircle';\r\nimport Switch from '@material-ui/core/Switch';\r\nimport FormControlLabel from '@material-ui/core/FormControlLabel';\r\nimport FormGroup from '@material-ui/core/FormGroup';\r\nimport MenuItem from '@material-ui/core/MenuItem';\r\nimport Menu from '@material-ui/core/Menu';\r\n\r\n\r\n\r\nimport {Link, Redirect} from \"react-router-dom\";\r\nconst useStyles = makeStyles((theme) => ({\r\n root: {\r\n flexGrow: 1,\r\n },\r\n menuButton: {\r\n marginRight: theme.spacing(2),\r\n },\r\n title: {\r\n flexGrow: 1,\r\n color :'white'\r\n },\r\n color : {\r\n color : 'white',\r\n }\r\n}));\r\n\r\nexport default function MenuAppBar(props) {\r\n const classes = useStyles();\r\n \r\n const handleLogOut = ()=>{\r\n \r\n localStorage.setItem('isAuth','false');\r\n \r\n props.submitted('false');\r\n }\r\n \r\n\r\n\r\n\r\n\r\n return (\r\n <div>\r\n \r\n<div className={classes.root}>\r\n\r\n<AppBar position=\"static\">\r\n <Toolbar>\r\n <IconButton edge=\"start\" className={classes.menuButton} color=\"inherit\" aria-label=\"menu\">\r\n <MenuIcon />\r\n </IconButton>\r\n <Typography variant=\"h6\" className={classes.title}>\r\n <Link className={classes.color} to = '/Home'>Home</Link>\r\n </Typography>\r\n \r\n <Typography variant=\"h6\" className={classes.title}>\r\n <Link className={classes.color} to = '/about'>About</Link>\r\n\r\n </Typography>\r\n \r\n \r\n \r\n <Typography variant=\"h6\" className={classes.title}>\r\n <Link className={classes.color} to = '/contact'>\r\n Contact\r\n </Link>\r\n \r\n </Typography>\r\n \r\n \r\n <Typography variant=\"h6\" className={classes.title}>\r\n <Link onClick = {handleLogOut} className={classes.color} to = '/'>\r\n Logout\r\n </Link>\r\n \r\n </Typography>\r\n </Toolbar>\r\n</AppBar>\r\n</div>\r\n </div>\r\n );\r\n \r\n}\r\n","C:\\Users\\dell\\Desktop\\React-Projects\\react-internship\\src\\Services\\dataService.js",[],"C:\\Users\\dell\\Desktop\\React-Projects\\react-internship\\src\\Utilities\\constants.js",["106","107"],"C:\\Users\\dell\\Desktop\\React-Projects\\react-internship\\src\\Utilities\\Constants.js",[],"C:\\Users\\dell\\Desktop\\React-Projects\\react-internship\\src\\components\\Posts.jsx",["108","109","110"],"C:\\Users\\dell\\Desktop\\React-Projects\\react-internship\\src\\Store.js",["111"],"import {createStore,applyMiddleware,compose} from 'redux';\r\nimport thunk from 'redux-thunk';\r\nimport rootReducer from './redux/reducers'\r\n\r\nconst initialState = {};\r\nconst composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;\r\n//const middleware = {thunk};\r\n\r\nexport const store = createStore(rootReducer,initialState,composeEnhancers(applyMiddleware()));\r\n\r\n","C:\\Users\\dell\\Desktop\\React-Projects\\react-internship\\src\\redux\\actions\\actions.js",["112"],"import {FETCH_POSTS,NEW_POST,FETCH_USERS} from './types';\r\n\r\n\r\nexport function getUserData(data){\r\n console.log('Action ======>>>>', data);\r\n return {\r\n type: FETCH_USERS,\r\n data: data,\r\n };\r\n\r\n}\r\n\r\nexport function getPostData(data){\r\n console.log('POSTS Action ======>>>>', data);\r\n return {\r\n type: FETCH_POSTS,\r\n data: data,\r\n };\r\n\r\n}","C:\\Users\\dell\\Desktop\\React-Projects\\react-internship\\src\\redux\\actions\\types.js",[],"C:\\Users\\dell\\Desktop\\React-Projects\\react-internship\\src\\redux\\reducers\\index.js",[],"C:\\Users\\dell\\Desktop\\React-Projects\\react-internship\\src\\redux\\reducers\\reducers.js",["113","114"],{"ruleId":"115","replacedBy":"116"},{"ruleId":"117","replacedBy":"118"},{"ruleId":"119","severity":1,"message":"120","line":1,"column":24,"nodeType":"121","messageId":"122","endLine":1,"endColumn":33},{"ruleId":"119","severity":1,"message":"123","line":2,"column":8,"nodeType":"121","messageId":"122","endLine":2,"endColumn":12},{"ruleId":"119","severity":1,"message":"124","line":9,"column":10,"nodeType":"121","messageId":"122","endLine":9,"endColumn":16},{"ruleId":"119","severity":1,"message":"125","line":11,"column":23,"nodeType":"121","messageId":"122","endLine":11,"endColumn":27},{"ruleId":"126","severity":1,"message":"127","line":40,"column":21,"nodeType":"128","messageId":"129","endLine":40,"endColumn":23},{"ruleId":"126","severity":1,"message":"127","line":40,"column":51,"nodeType":"128","messageId":"129","endLine":40,"endColumn":53},{"ruleId":"115","replacedBy":"130"},{"ruleId":"117","replacedBy":"131"},{"ruleId":"119","severity":1,"message":"132","line":2,"column":8,"nodeType":"121","messageId":"122","endLine":2,"endColumn":13},{"ruleId":"119","severity":1,"message":"133","line":3,"column":8,"nodeType":"121","messageId":"122","endLine":3,"endColumn":11},{"ruleId":"119","severity":1,"message":"134","line":49,"column":10,"nodeType":"121","messageId":"122","endLine":49,"endColumn":14},{"ruleId":"135","severity":1,"message":"136","line":63,"column":5,"nodeType":"137","endLine":63,"endColumn":7,"suggestions":"138"},{"ruleId":"119","severity":1,"message":"139","line":8,"column":8,"nodeType":"121","messageId":"122","endLine":8,"endColumn":21},{"ruleId":"119","severity":1,"message":"140","line":9,"column":8,"nodeType":"121","messageId":"122","endLine":9,"endColumn":14},{"ruleId":"119","severity":1,"message":"141","line":10,"column":8,"nodeType":"121","messageId":"122","endLine":10,"endColumn":24},{"ruleId":"119","severity":1,"message":"142","line":11,"column":8,"nodeType":"121","messageId":"122","endLine":11,"endColumn":17},{"ruleId":"119","severity":1,"message":"143","line":12,"column":8,"nodeType":"121","messageId":"122","endLine":12,"endColumn":16},{"ruleId":"119","severity":1,"message":"144","line":13,"column":8,"nodeType":"121","messageId":"122","endLine":13,"endColumn":12},{"ruleId":"119","severity":1,"message":"145","line":17,"column":15,"nodeType":"121","messageId":"122","endLine":17,"endColumn":23},{"ruleId":"119","severity":1,"message":"146","line":3,"column":7,"nodeType":"121","messageId":"122","endLine":3,"endColumn":21},{"ruleId":"119","severity":1,"message":"147","line":4,"column":7,"nodeType":"121","messageId":"122","endLine":4,"endColumn":21},{"ruleId":"119","severity":1,"message":"132","line":2,"column":8,"nodeType":"121","messageId":"122","endLine":2,"endColumn":13},{"ruleId":"119","severity":1,"message":"133","line":3,"column":8,"nodeType":"121","messageId":"122","endLine":3,"endColumn":11},{"ruleId":"119","severity":1,"message":"148","line":46,"column":10,"nodeType":"121","messageId":"122","endLine":46,"endColumn":14},{"ruleId":"119","severity":1,"message":"149","line":2,"column":8,"nodeType":"121","messageId":"122","endLine":2,"endColumn":13},{"ruleId":"119","severity":1,"message":"150","line":1,"column":21,"nodeType":"121","messageId":"122","endLine":1,"endColumn":29},{"ruleId":"119","severity":1,"message":"150","line":1,"column":21,"nodeType":"121","messageId":"122","endLine":1,"endColumn":29},{"ruleId":"151","severity":1,"message":"152","line":11,"column":1,"nodeType":"153","endLine":31,"endColumn":2},"no-native-reassign",["154"],"no-negated-in-lhs",["155"],"no-unused-vars","'useEffect' is defined but never used.","Identifier","unusedVar","'logo' is defined but never used.","'Button' is defined but never used.","'Link' is defined but never used.","eqeqeq","Expected '===' and instead saw '=='.","BinaryExpression","unexpected",["154"],["155"],"'axios' is defined but never used.","'URL' is defined but never used.","'user' is assigned a value but never used.","react-hooks/exhaustive-deps","React Hook useEffect has a missing dependency: 'props'. Either include it or remove the dependency array. However, 'props' will change when *any* prop changes, so the preferred fix is to destructure the 'props' object outside of the useEffect call and refer to those specific props inside useEffect.","ArrayExpression",["156"],"'AccountCircle' is defined but never used.","'Switch' is defined but never used.","'FormControlLabel' is defined but never used.","'FormGroup' is defined but never used.","'MenuItem' is defined but never used.","'Menu' is defined but never used.","'Redirect' is defined but never used.","'ADMIN_USERNAME' is assigned a value but never used.","'ADMIN_PASSWORD' is assigned a value but never used.","'post' is assigned a value but never used.","'thunk' is defined but never used.","'NEW_POST' is defined but never used.","import/no-anonymous-default-export","Unexpected default export of anonymous function","ExportDefaultDeclaration","no-global-assign","no-unsafe-negation",{"desc":"157","fix":"158"},"Update the dependencies array to be: [props]",{"range":"159","text":"160"},[1413,1415],"[props]"]