-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintcache
1 lines (1 loc) · 59.8 KB
/
.eslintcache
1
[{"C:\\Users\\vijay joshi\\Desktop\\Vijay\\MERN STACK PROJECTS\\POLL-TOWARDS-A-GOAL\\Frontend\\p-tag\\src\\index.js":"1","C:\\Users\\vijay joshi\\Desktop\\Vijay\\MERN STACK PROJECTS\\POLL-TOWARDS-A-GOAL\\Frontend\\p-tag\\src\\reportWebVitals.js":"2","C:\\Users\\vijay joshi\\Desktop\\Vijay\\MERN STACK PROJECTS\\POLL-TOWARDS-A-GOAL\\Frontend\\p-tag\\src\\App.js":"3","C:\\Users\\vijay joshi\\Desktop\\Vijay\\MERN STACK PROJECTS\\POLL-TOWARDS-A-GOAL\\Frontend\\p-tag\\src\\components\\Navbar\\Navbar.js":"4","C:\\Users\\vijay joshi\\Desktop\\Vijay\\MERN STACK PROJECTS\\POLL-TOWARDS-A-GOAL\\Frontend\\p-tag\\src\\components\\Screens\\HomeScreen\\HomeScreen.js":"5","C:\\Users\\vijay joshi\\Desktop\\Vijay\\MERN STACK PROJECTS\\POLL-TOWARDS-A-GOAL\\Frontend\\p-tag\\src\\components\\Screens\\SignIn\\SignIn.js":"6","C:\\Users\\vijay joshi\\Desktop\\Vijay\\MERN STACK PROJECTS\\POLL-TOWARDS-A-GOAL\\Frontend\\p-tag\\src\\components\\Screens\\SignUp\\SignUp.js":"7","C:\\Users\\vijay joshi\\Desktop\\Vijay\\MERN STACK PROJECTS\\POLL-TOWARDS-A-GOAL\\Frontend\\p-tag\\src\\components\\Screens\\OrganizationSignIn\\OrganizationSignIn.js":"8","C:\\Users\\vijay joshi\\Desktop\\Vijay\\MERN STACK PROJECTS\\POLL-TOWARDS-A-GOAL\\Frontend\\p-tag\\src\\components\\Screens\\OrganizationSignUp\\OrganizationSignUp.js":"9","C:\\Users\\vijay joshi\\Desktop\\Vijay\\MERN STACK PROJECTS\\POLL-TOWARDS-A-GOAL\\Frontend\\p-tag\\src\\components\\Screens\\AllOrganizationPolls\\AllOrganizationPolls.js":"10","C:\\Users\\vijay joshi\\Desktop\\Vijay\\MERN STACK PROJECTS\\POLL-TOWARDS-A-GOAL\\Frontend\\p-tag\\src\\PollData.js":"11","C:\\Users\\vijay joshi\\Desktop\\Vijay\\MERN STACK PROJECTS\\POLL-TOWARDS-A-GOAL\\Frontend\\p-tag\\src\\components\\Screens\\AllPersonalPolls\\AllPersonalPolls.js":"12","C:\\Users\\vijay joshi\\Desktop\\Vijay\\MERN STACK PROJECTS\\POLL-TOWARDS-A-GOAL\\Frontend\\p-tag\\src\\components\\Screens\\OrganizationProfile\\OrganizationProfile.js":"13","C:\\Users\\vijay joshi\\Desktop\\Vijay\\MERN STACK PROJECTS\\POLL-TOWARDS-A-GOAL\\Frontend\\p-tag\\src\\components\\Screens\\CreatePersonalPoll\\CreatePersonalPoll.js":"14","C:\\Users\\vijay joshi\\Desktop\\Vijay\\MERN STACK PROJECTS\\POLL-TOWARDS-A-GOAL\\Frontend\\p-tag\\src\\components\\Screens\\CreateOrganizationPoll\\CreateOrgnizationPoll.js":"15","C:\\Users\\vijay joshi\\Desktop\\Vijay\\MERN STACK PROJECTS\\POLL-TOWARDS-A-GOAL\\Frontend\\p-tag\\src\\components\\Screens\\OrganizationPoll\\OrganizationPoll.js":"16","C:\\Users\\vijay joshi\\Desktop\\Vijay\\MERN STACK PROJECTS\\POLL-TOWARDS-A-GOAL\\Frontend\\p-tag\\src\\components\\Screens\\PersonalPoll\\PersonalPoll.js":"17","C:\\Users\\vijay joshi\\Desktop\\Vijay\\MERN STACK PROJECTS\\POLL-TOWARDS-A-GOAL\\Frontend\\p-tag\\src\\components\\Footer\\Footer.js":"18","C:\\Users\\vijay joshi\\Desktop\\Vijay\\MERN STACK PROJECTS\\POLL-TOWARDS-A-GOAL\\Frontend\\p-tag\\src\\components\\LoaderAnimation.jsx":"19"},{"size":500,"mtime":499162500000,"results":"20","hashOfConfig":"21"},{"size":362,"mtime":499162500000,"results":"22","hashOfConfig":"21"},{"size":2295,"mtime":1612962685040,"results":"23","hashOfConfig":"21"},{"size":14561,"mtime":1613113717730,"results":"24","hashOfConfig":"21"},{"size":8176,"mtime":1638984584125,"results":"25","hashOfConfig":"21"},{"size":4639,"mtime":1638900276584,"results":"26","hashOfConfig":"21"},{"size":7220,"mtime":1638900394090,"results":"27","hashOfConfig":"21"},{"size":4716,"mtime":1638984639519,"results":"28","hashOfConfig":"21"},{"size":7297,"mtime":1638984684621,"results":"29","hashOfConfig":"21"},{"size":2391,"mtime":1613110318793,"results":"30","hashOfConfig":"21"},{"size":9649,"mtime":1612504451840,"results":"31","hashOfConfig":"21"},{"size":2358,"mtime":1613110330583,"results":"32","hashOfConfig":"21"},{"size":4439,"mtime":1613110464617,"results":"33","hashOfConfig":"21"},{"size":6169,"mtime":1638981595111,"results":"34","hashOfConfig":"21"},{"size":6221,"mtime":1638982470675,"results":"35","hashOfConfig":"21"},{"size":10402,"mtime":1638983423782,"results":"36","hashOfConfig":"21"},{"size":8882,"mtime":1638983285417,"results":"37","hashOfConfig":"21"},{"size":1315,"mtime":1638984464286,"results":"38","hashOfConfig":"21"},{"size":335,"mtime":1638895255641,"results":"39","hashOfConfig":"21"},{"filePath":"40","messages":"41","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"42"},"10hoyj8",{"filePath":"43","messages":"44","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"42"},{"filePath":"45","messages":"46","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"47","usedDeprecatedRules":"42"},{"filePath":"48","messages":"49","errorCount":0,"warningCount":3,"fixableErrorCount":0,"fixableWarningCount":0,"source":"50","usedDeprecatedRules":"42"},{"filePath":"51","messages":"52","errorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"53","messages":"54","errorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":"55","usedDeprecatedRules":"42"},{"filePath":"56","messages":"57","errorCount":0,"warningCount":6,"fixableErrorCount":0,"fixableWarningCount":0,"source":"58","usedDeprecatedRules":"42"},{"filePath":"59","messages":"60","errorCount":0,"warningCount":3,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"61","messages":"62","errorCount":0,"warningCount":7,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"63","messages":"64","errorCount":0,"warningCount":3,"fixableErrorCount":0,"fixableWarningCount":0,"source":"65","usedDeprecatedRules":"42"},{"filePath":"66","messages":"67","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"68"},{"filePath":"69","messages":"70","errorCount":0,"warningCount":3,"fixableErrorCount":0,"fixableWarningCount":0,"source":"71","usedDeprecatedRules":"42"},{"filePath":"72","messages":"73","errorCount":0,"warningCount":4,"fixableErrorCount":0,"fixableWarningCount":0,"source":"74","usedDeprecatedRules":"42"},{"filePath":"75","messages":"76","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"77","messages":"78","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"79","messages":"80","errorCount":0,"warningCount":3,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"81","messages":"82","errorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"83","messages":"84","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"85","messages":"86","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"42"},"C:\\Users\\vijay joshi\\Desktop\\Vijay\\MERN STACK PROJECTS\\POLL-TOWARDS-A-GOAL\\Frontend\\p-tag\\src\\index.js",[],["87","88"],"C:\\Users\\vijay joshi\\Desktop\\Vijay\\MERN STACK PROJECTS\\POLL-TOWARDS-A-GOAL\\Frontend\\p-tag\\src\\reportWebVitals.js",[],"C:\\Users\\vijay joshi\\Desktop\\Vijay\\MERN STACK PROJECTS\\POLL-TOWARDS-A-GOAL\\Frontend\\p-tag\\src\\App.js",["89"],"import './App.css';\nimport {BrowserRouter, Link, Route, Switch} from 'react-router-dom';\nimport Navbar from './components/Navbar/Navbar';\nimport HomeScreen from './components/Screens/HomeScreen/HomeScreen';\nimport SignIn from './components/Screens/SignIn/SignIn';\nimport SignUp from './components/Screens/SignUp/SignUp';\nimport OrganizationSignIn from './components/Screens/OrganizationSignIn/OrganizationSignIn';\nimport OrganizationSignUp from './components/Screens/OrganizationSignUp/OrganizationSignUp';\nimport CreatePersonalPoll from './components/Screens/CreatePersonalPoll/CreatePersonalPoll';\nimport CreateOrganizationPoll from './components/Screens/CreateOrganizationPoll/CreateOrgnizationPoll';\nimport AllOrganizationPolls from './components/Screens/AllOrganizationPolls/AllOrganizationPolls';\nimport AllPersonalPolls from './components/Screens/AllPersonalPolls/AllPersonalPolls';\nimport OrganizationProfile from './components/Screens/OrganizationProfile/OrganizationProfile';\nimport OrganizationPoll from './components/Screens/OrganizationPoll/OrganizationPoll';\nimport PersonalPoll from './components/Screens/PersonalPoll/PersonalPoll';\nimport Footer from './components/Footer/Footer';\n\nfunction App() {\n return (\n <BrowserRouter>\n <header>\n <Navbar />\n </header>\n <div className=\"screens\">\n <Switch>\n <Route exact path=\"/\" component={HomeScreen} />\n <Route path=\"/signin\" component={SignIn} />\n <Route path=\"/signup\" component={SignUp} />\n <Route path=\"/organizationsignin\" component={OrganizationSignIn} />\n <Route path=\"/organizationsignup\" component={OrganizationSignUp} />\n <Route path=\"/createpersonalpoll\" component={CreatePersonalPoll} />\n <Route path=\"/createorganizationpoll\" component={CreateOrganizationPoll} />\n <Route path=\"/allorganizationpolls\" component={AllOrganizationPolls} />\n <Route path=\"/allpersonalpolls\" component={AllPersonalPolls} />\n <Route path=\"/organizationprofile/:id\" component={OrganizationProfile} />\n <Route path=\"/organizationpoll/:id\" component={OrganizationPoll} />\n <Route path=\"/personalpoll/:id\" component={PersonalPoll} />\n </Switch>\n </div>\n <Footer></Footer>\n </BrowserRouter>\n );\n}\n\nexport default App;\n","C:\\Users\\vijay joshi\\Desktop\\Vijay\\MERN STACK PROJECTS\\POLL-TOWARDS-A-GOAL\\Frontend\\p-tag\\src\\components\\Navbar\\Navbar.js",["90","91","92"],"import React,{useState,useEffect} from 'react';\r\nimport {useMediaQuery } from 'react-responsive';\r\nimport PollOutlinedIcon from '@material-ui/icons/PollOutlined';\r\nimport MenuIcon from '@material-ui/icons/Menu';\r\nimport SwipeableDrawer from '@material-ui/core/SwipeableDrawer';\r\nimport {useHistory} from 'react-router-dom';\r\nconst jwt = require('jsonwebtoken');\r\n\r\nexport default function Navbar(){\r\n const isMobile = useMediaQuery({\r\n maxWidth:\"960px\"\r\n });\r\n const history = useHistory();\r\n const [open, setOpen] = useState(false);\r\n const [user, setUser] = useState(false);\r\n const [org, setOrg] = useState(false);\r\n\r\n useEffect(()=>{\r\n try{\r\n const decodedToken = jwt.verify(localStorage.getItem(\"user\"),process.env.REACT_APP_JWT_SECRET);\r\n setUser(true);\r\n }catch{\r\n setUser(false);\r\n try{\r\n const decodedToken = jwt.verify(localStorage.getItem(\"organization\"),process.env.REACT_APP_JWT_SECRET);\r\n setOrg(true);\r\n }catch{\r\n setOrg(false);\r\n }\r\n }\r\n },[localStorage.getItem(\"user\")]);\r\n\r\n return(\r\n <div>\r\n {\r\n !isMobile\r\n ?\r\n <div\r\n style={{\r\n backgroundColor:\"white\",\r\n paddingTop:\"5px\",\r\n boxShadow:\"5px 5px 15px #afacac\",\r\n position:\"fixed\",\r\n width:\"100%\",\r\n top:\"0\"\r\n }}>\r\n <PollOutlinedIcon \r\n color=\"primary\"\r\n fontSize=\"large\"\r\n style={{\r\n width:\"40px\",\r\n height:\"40px\",\r\n marginTop:\"5px\",\r\n marginLeft:\"50px\",\r\n cursor:\"pointer\"\r\n }}\r\n onClick={()=>{history.push(\"/\")}}></PollOutlinedIcon>\r\n <h1 \r\n style={{\r\n display:\"inline\",\r\n fontSize:\"2rem\",\r\n marginLeft:\"20px\",\r\n color:\"#3f51b5\",\r\n verticalAlign:\"top\",\r\n cursor:\"pointer\"}}\r\n onClick={()=>{history.push(\"/\")}}>\r\n POLLING APP\r\n </h1>\r\n {\r\n user\r\n ?\r\n <div\r\n style={{display:\"inline\",float:\"right\",marginTop:\"5px\",marginRight:\"5px\"}}>\r\n <h2\r\n style={{\r\n display:\"inline\",\r\n fontSize:\"1.5rem\",\r\n marginLeft:\"10px\",\r\n color:\"#3f51b5\",\r\n verticalAlign:\"top\",\r\n fontWeight:200,\r\n cursor:\"pointer\"}}\r\n onClick={()=>{history.push('/allpersonalpolls')}}\r\n >Personal Polls</h2>\r\n <h2\r\n style={{\r\n display:\"inline\",\r\n fontSize:\"1.5rem\",\r\n marginLeft:\"10px\",\r\n color:\"#3f51b5\",\r\n verticalAlign:\"top\",\r\n fontWeight:200,\r\n cursor:\"pointer\"}}\r\n onClick={()=>{history.push('/allorganizationpolls')}}\r\n >Organization Polls</h2>\r\n <h2\r\n style={{\r\n display:\"inline\",\r\n fontSize:\"1.5rem\",\r\n marginLeft:\"10px\",\r\n color:\"#3f51b5\",\r\n verticalAlign:\"top\",\r\n fontWeight:200,\r\n cursor:\"pointer\"}}\r\n onClick={()=>{history.push('/createpersonalpoll')}}\r\n >Create Poll</h2>\r\n <h2\r\n style={{\r\n display:\"inline\",\r\n fontSize:\"1.5rem\",\r\n marginLeft:\"10px\",\r\n color:\"white\",\r\n verticalAlign:\"top\",\r\n fontWeight:200,\r\n backgroundColor:\"#5e6cb8\",\r\n padding:\"5px\",\r\n borderRadius:\"5px\",\r\n cursor:\"pointer\"}}\r\n onClick={()=>{\r\n localStorage.removeItem(\"user\");\r\n history.push('/');\r\n window.location.reload();\r\n }}\r\n >Logout</h2>\r\n </div>\r\n :\r\n org\r\n ?\r\n <div\r\n style={{display:\"inline\",float:\"right\",marginTop:\"5px\",marginRight:\"5px\"}}>\r\n <h2\r\n style={{\r\n display:\"inline\",\r\n fontSize:\"1.5rem\",\r\n marginLeft:\"10px\",\r\n color:\"#3f51b5\",\r\n verticalAlign:\"top\",\r\n fontWeight:200,\r\n cursor:\"pointer\"}}\r\n onClick={()=>{\r\n history.push(`/organizationprofile/${jwt.verify(localStorage.getItem(\"organization\"),process.env.REACT_APP_JWT_SECRET)._id}`)\r\n }}\r\n >Profile</h2>\r\n <h2\r\n style={{\r\n display:\"inline\",\r\n fontSize:\"1.5rem\",\r\n marginLeft:\"10px\",\r\n color:\"#3f51b5\",\r\n verticalAlign:\"top\",\r\n fontWeight:200,\r\n cursor:\"pointer\"}}\r\n onClick={()=>{history.push('/createorganizationpoll')}}\r\n >Create Poll</h2>\r\n <h2\r\n style={{\r\n display:\"inline\",\r\n fontSize:\"1.5rem\",\r\n marginLeft:\"10px\",\r\n color:\"white\",\r\n verticalAlign:\"top\",\r\n fontWeight:200,\r\n backgroundColor:\"#5e6cb8\",\r\n padding:\"5px\",\r\n borderRadius:\"5px\",\r\n cursor:\"pointer\"}}\r\n onClick={()=>{\r\n localStorage.removeItem(\"organization\");\r\n history.push('/');\r\n window.location.reload();\r\n }}\r\n >Logout</h2>\r\n </div>\r\n :\r\n <div\r\n style={{display:\"inline\",float:\"right\",marginTop:\"5px\",marginRight:\"5px\"}}>\r\n <h2\r\n style={{\r\n display:\"inline\",\r\n fontSize:\"1.5rem\",\r\n marginLeft:\"10px\",\r\n color:\"#3f51b5\",\r\n verticalAlign:\"top\",\r\n fontWeight:200,\r\n cursor:\"pointer\"}}\r\n onClick={()=>{history.push(\"/signin\")}}\r\n >SignIn</h2>\r\n <h2\r\n style={{\r\n display:\"inline\",\r\n fontSize:\"1.5rem\",\r\n marginLeft:\"10px\",\r\n color:\"#3f51b5\",\r\n verticalAlign:\"top\",\r\n fontWeight:200,\r\n cursor:\"pointer\"}}\r\n onClick={()=>{history.push(\"/signup\")}}\r\n >Register</h2>\r\n <h2\r\n style={{\r\n display:\"inline\",\r\n fontSize:\"1.5rem\",\r\n marginLeft:\"10px\",\r\n color:\"white\",\r\n verticalAlign:\"top\",\r\n fontWeight:200,\r\n backgroundColor:\"#5e6cb8\",\r\n padding:\"5px\",\r\n borderRadius:\"5px\",\r\n cursor:\"pointer\"}}\r\n onClick={()=>{history.push(\"/organizationsignin\")}}\r\n >Org SignIn</h2>\r\n <h2\r\n style={{\r\n display:\"inline\",\r\n fontSize:\"1.5rem\",\r\n marginLeft:\"10px\",\r\n color:\"white\",\r\n verticalAlign:\"top\",\r\n fontWeight:200,\r\n backgroundColor:\"#5e6cb8\",\r\n padding:\"5px\",\r\n borderRadius:\"5px\",\r\n cursor:\"pointer\"}}\r\n onClick={()=>{history.push(\"/organizationsignup\")}}\r\n >Org Register</h2>\r\n </div>\r\n }\r\n </div>\r\n :\r\n <div\r\n style={{\r\n backgroundColor:\"white\",\r\n paddingTop:\"5px\",\r\n boxShadow:\"5px 5px 15px #afacac\",\r\n position:\"fixed\",\r\n width:\"100%\",\r\n top:\"0\"\r\n }}>\r\n <PollOutlinedIcon \r\n color=\"primary\"\r\n fontSize=\"large\"\r\n style={{\r\n width:\"40px\",\r\n height:\"40px\",\r\n marginTop:\"5px\",\r\n marginLeft:\"30px\",\r\n cursor:\"pointer\"\r\n }}\r\n onClick={()=>{history.push(\"/\")}}></PollOutlinedIcon>\r\n <h1 \r\n style={{\r\n display:\"inline\",\r\n fontSize:\"2rem\",\r\n marginLeft:\"20px\",\r\n color:\"#3f51b5\",\r\n verticalAlign:\"top\",\r\n cursor:\"pointer\"}}\r\n onClick={()=>{history.push(\"/\")}}>\r\n POLLING APP\r\n </h1>\r\n <div\r\n style={{\r\n position:\"fixed\",\r\n bottom:\"25px\",\r\n left:\"15px\",\r\n backgroundColor:\"#3f51b5\",\r\n borderRadius:\"50%\",\r\n height:\"50px\",\r\n width:\"50px\",\r\n color:\"white\"\r\n }}\r\n onClick={()=>{setOpen(true)}}>\r\n <MenuIcon\r\n style={{\r\n width:\"30px\",\r\n height:\"30px\",\r\n marginLeft:\"10px\",\r\n marginTop:\"10px\"\r\n }}></MenuIcon>\r\n </div>\r\n <SwipeableDrawer\r\n open={open}\r\n onOpen={()=>{setOpen(true)}}\r\n onClose={()=>{setOpen(false)}}>\r\n {\r\n user\r\n ?\r\n <div\r\n style={{display:\"inline\",float:\"right\",marginTop:\"5px\",marginRight:\"60px\"}}>\r\n <h2\r\n style={{\r\n fontSize:\"1.5rem\",\r\n marginLeft:\"20px\",\r\n color:\"#3f51b5\",\r\n verticalAlign:\"top\",\r\n fontWeight:200,\r\n cursor:\"pointer\"}}\r\n onClick={()=>{history.push('/allpersonalpolls');\r\n setOpen(false)}}\r\n >Personal Polls</h2>\r\n <h2\r\n style={{\r\n fontSize:\"1.5rem\",\r\n marginLeft:\"20px\",\r\n color:\"#3f51b5\",\r\n verticalAlign:\"top\",\r\n fontWeight:200,\r\n cursor:\"pointer\"}}\r\n onClick={()=>{history.push('/allorganizationpolls');\r\n setOpen(false)}}\r\n >Organization Polls</h2>\r\n <h2\r\n style={{\r\n fontSize:\"1.5rem\",\r\n marginLeft:\"20px\",\r\n color:\"#3f51b5\",\r\n verticalAlign:\"top\",\r\n fontWeight:200,\r\n cursor:\"pointer\"}}\r\n onClick={()=>{history.push('/createpersonalpoll');\r\n setOpen(false)}}\r\n >Create Poll</h2>\r\n <h2\r\n style={{\r\n fontSize:\"1.5rem\",\r\n marginLeft:\"20px\",\r\n color:\"white\",\r\n verticalAlign:\"top\",\r\n fontWeight:200,\r\n backgroundColor:\"#5e6cb8\",\r\n padding:\"5px\",\r\n borderRadius:\"5px\",\r\n cursor:\"pointer\"}}\r\n onClick={()=>{\r\n localStorage.removeItem(\"user\");\r\n history.push('/');\r\n setOpen(false);\r\n window.location.reload();\r\n }}\r\n >Logout</h2>\r\n </div>\r\n :\r\n org\r\n ?\r\n <div\r\n style={{display:\"inline\",float:\"right\",marginTop:\"5px\",marginRight:\"60px\"}}>\r\n <h2\r\n style={{\r\n fontSize:\"1.5rem\",\r\n marginLeft:\"20px\",\r\n color:\"#3f51b5\",\r\n verticalAlign:\"top\",\r\n fontWeight:200,\r\n cursor:\"pointer\"}}\r\n onClick={()=>{\r\n history.push(`/organizationprofile/${jwt.verify(localStorage.getItem(\"organization\"),process.env.REACT_APP_JWT_SECRET)._id}`);\r\n setOpen(false)\r\n }}\r\n >Profile</h2>\r\n <h2\r\n style={{\r\n fontSize:\"1.5rem\",\r\n marginLeft:\"20px\",\r\n color:\"#3f51b5\",\r\n verticalAlign:\"top\",\r\n fontWeight:200,\r\n cursor:\"pointer\"}}\r\n onClick={()=>{history.push('/createorganizationpoll');\r\n setOpen(false)}}\r\n >Create Poll</h2>\r\n <h2\r\n style={{\r\n fontSize:\"1.5rem\",\r\n marginLeft:\"20px\",\r\n color:\"white\",\r\n verticalAlign:\"top\",\r\n fontWeight:200,\r\n backgroundColor:\"#5e6cb8\",\r\n padding:\"5px\",\r\n borderRadius:\"5px\",\r\n cursor:\"pointer\"}}\r\n onClick={()=>{\r\n localStorage.removeItem(\"organization\");\r\n history.push('/');\r\n setOpen(false);\r\n window.location.reload();\r\n }}\r\n >Logout</h2>\r\n </div>\r\n :\r\n <div\r\n style={{display:\"inline\",float:\"right\",marginTop:\"5px\",marginRight:\"60px\"}}>\r\n <h2\r\n style={{\r\n fontSize:\"1.5rem\",\r\n marginLeft:\"20px\",\r\n color:\"#3f51b5\",\r\n verticalAlign:\"top\",\r\n fontWeight:200,\r\n cursor:\"pointer\"}}\r\n onClick={()=>{history.push(\"/signin\");\r\n setOpen(false)}}\r\n >SignIn</h2>\r\n <h2\r\n style={{\r\n fontSize:\"1.5rem\",\r\n marginLeft:\"20px\",\r\n color:\"#3f51b5\",\r\n verticalAlign:\"top\",\r\n fontWeight:200,\r\n cursor:\"pointer\"}}\r\n onClick={()=>{history.push(\"/signup\");\r\n setOpen(false)}}\r\n >Register</h2>\r\n <h2\r\n style={{\r\n fontSize:\"1.5rem\",\r\n marginLeft:\"20px\",\r\n color:\"white\",\r\n verticalAlign:\"top\",\r\n fontWeight:200,\r\n backgroundColor:\"#5e6cb8\",\r\n padding:\"5px\",\r\n borderRadius:\"5px\",\r\n cursor:\"pointer\"}}\r\n onClick={()=>{history.push(\"/organizationsignin\");\r\n setOpen(false)}}\r\n >Org SignIn</h2>\r\n <h2\r\n style={{\r\n fontSize:\"1.5rem\",\r\n marginLeft:\"20px\",\r\n color:\"white\",\r\n verticalAlign:\"top\",\r\n fontWeight:200,\r\n backgroundColor:\"#5e6cb8\",\r\n padding:\"5px\",\r\n borderRadius:\"5px\",\r\n cursor:\"pointer\"}}\r\n onClick={()=>{history.push(\"/organizationsignup\");\r\n setOpen(false)}}\r\n >Org Register</h2>\r\n </div>\r\n }\r\n </SwipeableDrawer>\r\n </div>\r\n }\r\n </div>\r\n )\r\n}","C:\\Users\\vijay joshi\\Desktop\\Vijay\\MERN STACK PROJECTS\\POLL-TOWARDS-A-GOAL\\Frontend\\p-tag\\src\\components\\Screens\\HomeScreen\\HomeScreen.js",["93","94"],"C:\\Users\\vijay joshi\\Desktop\\Vijay\\MERN STACK PROJECTS\\POLL-TOWARDS-A-GOAL\\Frontend\\p-tag\\src\\components\\Screens\\SignIn\\SignIn.js",["95","96"],"import {useState, useEffect} from 'react';\r\nimport {Link, useHistory} from 'react-router-dom';\r\nimport './SignIn.css';\r\nimport TextField from \"@material-ui/core/TextField\";\r\nimport {toast} from 'react-toastify';\r\nimport 'react-toastify/dist/ReactToastify.css';\r\nimport LoaderAnimation from '../../LoaderAnimation';\r\nconst jwt = require('jsonwebtoken');\r\n\r\ntoast.configure();\r\n\r\nconst SignIn = ()=>{\r\n const [email, setEmail] = useState(\"\");\r\n const [password, setPassword] = useState(\"\");\r\n const [loader, setLoader] = useState(false);\r\n const history = useHistory();\r\n\r\n useEffect(()=>{\r\n try{\r\n const decodedToken = jwt.verify(localStorage.getItem(\"organization\"),process.env.REACT_APP_JWT_SECRET);\r\n history.push(`/organizationprofile/${decodedToken._id}`);\r\n }catch{\r\n \r\n }\r\n },[]);\r\n\r\n useEffect(()=>{\r\n if(loader){\r\n fetch(\"https://poll-towards-a-goal.herokuapp.com/user/signin\",\r\n {\r\n method: \"post\",\r\n headers:{\r\n \"Content-Type\":\"application/json\",\r\n },\r\n body: JSON.stringify({\r\n email: email,\r\n password: password\r\n }),\r\n })\r\n .then(res=>res.json())\r\n .then(result=>{\r\n setLoader(false);\r\n if(result.message===\"Logged in successfully!\"){\r\n toast.success('Logged in successfully!', {\r\n position: \"top-right\",\r\n autoClose: 2000,\r\n hideProgressBar: false,\r\n closeOnClick: true,\r\n pauseOnHover: true,\r\n draggable: true,\r\n progress: undefined,\r\n });\r\n localStorage.setItem(\"user\",result.token);\r\n history.push('/');\r\n window.location.reload();\r\n }else{\r\n toast.error('Invalid credentials!', {\r\n position: \"top-right\",\r\n autoClose: 2000,\r\n hideProgressBar: false,\r\n closeOnClick: true,\r\n pauseOnHover: true,\r\n draggable: true,\r\n progress: undefined,\r\n });\r\n }\r\n })\r\n }\r\n },[loader]);\r\n\r\n const PostData = ()=>{\r\n if(!email){\r\n toast.error('Please enter email!', {\r\n position: \"top-right\",\r\n autoClose: 2000,\r\n hideProgressBar: false,\r\n closeOnClick: true,\r\n pauseOnHover: true,\r\n draggable: true,\r\n progress: undefined,\r\n });\r\n }else if(!password){\r\n toast.error('Please enter password!', {\r\n position: \"top-right\",\r\n autoClose: 2000,\r\n hideProgressBar: false,\r\n closeOnClick: true,\r\n pauseOnHover: true,\r\n draggable: true,\r\n progress: undefined,\r\n });\r\n }else{\r\n setLoader(true)\r\n }\r\n }\r\n\r\n return(\r\n <div>\r\n <div className=\"login_card\">\r\n <h1 className=\"signin_heading\">SIGN IN</h1>\r\n <div className=\"signin_details\">\r\n <TextField\r\n id=\"outlined-primary\"\r\n placeholder=\"Enter your email\"\r\n variant=\"outlined\"\r\n color=\"primary\"\r\n onChange={(e)=>{setEmail(e.target.value)}}\r\n />\r\n <br></br>\r\n <TextField\r\n style={{marginTop:\"30px\"}}\r\n id=\"outlined-primary\"\r\n placeholder=\"Enter your password\"\r\n variant=\"outlined\"\r\n type=\"password\"\r\n color=\"primary\"\r\n onChange={(e)=>{setPassword(e.target.value)}}\r\n />\r\n <br></br>\r\n <button className=\"signin_button\"\r\n onClick={()=>{PostData()}}>\r\n SIGN IN\r\n </button>\r\n {\r\n loader && <LoaderAnimation />\r\n }\r\n <p className=\"redirect_msg\">New User? <Link to=\"/signup\">Register here</Link></p>\r\n </div>\r\n </div>\r\n </div>\r\n )\r\n}\r\n\r\nexport default SignIn;","C:\\Users\\vijay joshi\\Desktop\\Vijay\\MERN STACK PROJECTS\\POLL-TOWARDS-A-GOAL\\Frontend\\p-tag\\src\\components\\Screens\\SignUp\\SignUp.js",["97","98","99","100","101","102"],"import {useState, useEffect} from 'react';\r\nimport {Link,useHistory} from 'react-router-dom';\r\nimport './SignUp.css';\r\nimport TextField from \"@material-ui/core/TextField\";\r\nimport {toast} from 'react-toastify';\r\nimport LoaderAnimation from '../../LoaderAnimation';\r\nimport 'react-toastify/dist/ReactToastify.css';\r\nconst jwt = require('jsonwebtoken');\r\n\r\ntoast.configure();\r\n\r\nconst SignUp = ()=>{\r\n const [name, setName] = useState(\"\");\r\n const [email, setEmail] = useState(\"\");\r\n const [password, setPassword] = useState(\"\");\r\n const [image,setImage] = useState(\"\");\r\n const [url, setUrl] = useState(undefined);\r\n const [loader, setLoader] = useState(false);\r\n const history = useHistory();\r\n\r\n useEffect(()=>{\r\n try{\r\n const decodedToken = jwt.verify(localStorage.getItem(\"organization\"),process.env.REACT_APP_JWT_SECRET);\r\n history.push(`/organizationprofile/${decodedToken._id}`);\r\n }catch{\r\n \r\n }\r\n },[]);\r\n\r\n useEffect(()=>{\r\n if(!name || !password || !url || !email){\r\n toast('Please enter all credentials to sign up!', {\r\n position: \"top-right\",\r\n autoClose: 2000,\r\n hideProgressBar: false,\r\n closeOnClick: true,\r\n pauseOnHover: true,\r\n draggable: true,\r\n progress: undefined,\r\n });\r\n }else{\r\n fetch(\"https://poll-towards-a-goal.herokuapp.com/user/signup\",\r\n {\r\n method:\"post\",\r\n headers:{\r\n \"Content-type\":\"application/json\",\r\n },\r\n body:JSON.stringify({\r\n name: name,\r\n email: email,\r\n password: password,\r\n pic: url\r\n }),\r\n })\r\n .then(res=>res.json())\r\n .then(result=>{\r\n setLoader(false);\r\n if(result.message===\"Saved user successfully!\"){\r\n toast.success('Saved user successfully!', {\r\n position: \"top-right\",\r\n autoClose: 2000,\r\n hideProgressBar: false,\r\n closeOnClick: true,\r\n pauseOnHover: true,\r\n draggable: true,\r\n progress: undefined,\r\n });\r\n history.push('/');\r\n }else{\r\n toast.error('Some error occured!', {\r\n position: \"top-right\",\r\n autoClose: 2000,\r\n hideProgressBar: false,\r\n closeOnClick: true,\r\n pauseOnHover: true,\r\n draggable: true,\r\n progress: undefined,\r\n });\r\n }\r\n })\r\n }\r\n },[url]);\r\n\r\n const UploadImage = ()=>{\r\n const data = new FormData();\r\n data.append(\"file\",image);\r\n data.append(\"upload_preset\",\"polling-app\");\r\n data.append(\"cloud_name\",\"vijayscloud\");\r\n fetch(\"https://api.cloudinary.com/v1_1/vijayscloud/image/upload\",\r\n {method:\"post\",\r\n body:data\r\n })\r\n .then(res=>res.json())\r\n .then(data=>{\r\n setUrl(data.url)\r\n if(data.url===undefined){\r\n toast.error('Some error occured!', {\r\n position: \"top-right\",\r\n autoClose: 2000,\r\n hideProgressBar: false,\r\n closeOnClick: true,\r\n pauseOnHover: true,\r\n draggable: true,\r\n progress: undefined,\r\n });\r\n setLoader(false);\r\n }\r\n })\r\n .catch(err=>{\r\n })\r\n }\r\n\r\n const PostData = ()=>{\r\n if(!name){\r\n toast.error('Please enter name!', {\r\n position: \"top-right\",\r\n autoClose: 2000,\r\n hideProgressBar: false,\r\n closeOnClick: true,\r\n pauseOnHover: true,\r\n draggable: true,\r\n progress: undefined,\r\n });\r\n return;\r\n }\r\n const re = /^(([^<>()[\\]\\\\.,;:\\s@\\\"]+(\\.[^<>()[\\]\\\\.,;:\\s@\\\"]+)*)|(\\\".+\\\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$/;\r\n if(!re.test(email)){\r\n toast.error('Invalid email!', {\r\n position: \"top-right\",\r\n autoClose: 2000,\r\n hideProgressBar: false,\r\n closeOnClick: true,\r\n pauseOnHover: true,\r\n draggable: true,\r\n progress: undefined,\r\n });\r\n return;\r\n }\r\n if(password.length<8){\r\n toast.error('Password length should be atleast 8!', {\r\n position: \"top-right\",\r\n autoClose: 2000,\r\n hideProgressBar: false,\r\n closeOnClick: true,\r\n pauseOnHover: true,\r\n draggable: true,\r\n progress: undefined,\r\n });\r\n return;\r\n }\r\n setLoader(true);\r\n UploadImage();\r\n }\r\n\r\n return(\r\n <div>\r\n <div className=\"singup_card\">\r\n <h1 className=\"signup_heading\">SIGN UP</h1>\r\n <div className=\"signup_details\">\r\n <TextField\r\n id=\"outlined-primary\"\r\n placeholder=\"Enter your name\"\r\n variant=\"outlined\"\r\n color=\"primary\"\r\n onChange={(e)=>{setName(e.target.value)}}\r\n />\r\n <br></br>\r\n <TextField\r\n style={{marginTop:\"30px\"}}\r\n id=\"outlined-primary\"\r\n placeholder=\"Enter your email\"\r\n variant=\"outlined\"\r\n color=\"primary\"\r\n onChange={(e)=>{setEmail(e.target.value)}}\r\n />\r\n <br></br>\r\n <TextField\r\n style={{marginTop:\"30px\"}}\r\n id=\"outlined-primary\"\r\n placeholder=\"Enter your password\"\r\n variant=\"outlined\"\r\n type=\"password\"\r\n color=\"primary\"\r\n onChange={(e)=>{setPassword(e.target.value)}}\r\n />\r\n <br></br>\r\n <input style={{marginLeft:\"35px\",marginTop:\"30px\"}} type=\"file\" onChange={(e)=>{\r\n setImage(e.target.files[0]);\r\n }} />\r\n <br></br>\r\n <button className=\"signup_button\"\r\n onClick={()=>PostData()}>\r\n SIGN UP\r\n </button>\r\n {\r\n loader && <LoaderAnimation />\r\n }\r\n <p className=\"redirect_msg\">Already registered? <Link to=\"/signin\">SignIn here</Link></p>\r\n </div>\r\n </div>\r\n </div>\r\n )\r\n}\r\n\r\nexport default SignUp;","C:\\Users\\vijay joshi\\Desktop\\Vijay\\MERN STACK PROJECTS\\POLL-TOWARDS-A-GOAL\\Frontend\\p-tag\\src\\components\\Screens\\OrganizationSignIn\\OrganizationSignIn.js",["103","104","105"],"C:\\Users\\vijay joshi\\Desktop\\Vijay\\MERN STACK PROJECTS\\POLL-TOWARDS-A-GOAL\\Frontend\\p-tag\\src\\components\\Screens\\OrganizationSignUp\\OrganizationSignUp.js",["106","107","108","109","110","111","112"],"C:\\Users\\vijay joshi\\Desktop\\Vijay\\MERN STACK PROJECTS\\POLL-TOWARDS-A-GOAL\\Frontend\\p-tag\\src\\components\\Screens\\AllOrganizationPolls\\AllOrganizationPolls.js",["113","114","115"],"import {useState, useEffect} from 'react';\r\nimport {useHistory} from 'react-router-dom';\r\nimport \"./AllOrganizationPolls.css\";\r\nimport Grid from '@material-ui/core/Grid';\r\nimport HowToVoteIcon from '@material-ui/icons/HowToVote';\r\nconst jwt = require('jsonwebtoken');\r\n\r\nconst AllOrganizationPolls = ()=>{\r\n const [PollData, setPollData] = useState([]);\r\n const history = useHistory();\r\n\r\n useEffect(()=>{\r\n try{\r\n const decodedToken = jwt.verify(localStorage.getItem(\"user\"),process.env.REACT_APP_JWT_SECRET)\r\n fetch(\"https://poll-towards-a-goal.herokuapp.com/poll/organization/getallpolls\",\r\n {\r\n method:\"get\",\r\n headers:{\r\n \"Content-Type\":\"application/json\",\r\n },\r\n })\r\n .then(res=>res.json())\r\n .then(result=>{\r\n setPollData(result.polls)\r\n })\r\n }catch{\r\n history.push(\"/signin\")\r\n }\r\n },[]);\r\n\r\n return(\r\n <div className=\"all_content_all_org_polls\">\r\n <h1>ALL ORGANIZATION POLLS</h1>\r\n <Grid container>\r\n {PollData.map((data)=>{\r\n return(\r\n <Grid item xs={12} sm={6} md={4} lg={3}>\r\n <div className=\"poll_card\"\r\n onClick={()=>{history.push(`/organizationpoll/${data._id}`)}}>\r\n <div className=\"poll_card_content\">\r\n <div className=\"color_section\"></div>\r\n <img className=\"org_image\" src={data.createdBy.pic} />\r\n <h2 className=\"org_name_poll\">{data.createdBy.name}</h2>\r\n <p className=\"org_poll_question\">{data.question}</p>\r\n <HowToVoteIcon\r\n className=\"how_to_vote_icon\"></HowToVoteIcon>\r\n <span className=\"vote_count\">{data.votes.length? data.votes.length : 0} votes</span>\r\n <div className=\"color_section_bottom\"></div>\r\n </div>\r\n </div>\r\n </Grid> \r\n )\r\n })}\r\n </Grid>\r\n </div>\r\n )\r\n}\r\n\r\nexport default AllOrganizationPolls;","C:\\Users\\vijay joshi\\Desktop\\Vijay\\MERN STACK PROJECTS\\POLL-TOWARDS-A-GOAL\\Frontend\\p-tag\\src\\PollData.js",[],["116","117"],"C:\\Users\\vijay joshi\\Desktop\\Vijay\\MERN STACK PROJECTS\\POLL-TOWARDS-A-GOAL\\Frontend\\p-tag\\src\\components\\Screens\\AllPersonalPolls\\AllPersonalPolls.js",["118","119","120"],"import {useState, useEffect} from 'react';\r\nimport {useHistory} from 'react-router-dom';\r\nimport \"./AllPersonalPolls.css\";\r\nimport Grid from '@material-ui/core/Grid';\r\nimport HowToVoteIcon from '@material-ui/icons/HowToVote';\r\nconst jwt = require('jsonwebtoken');\r\n\r\nconst AllPersonalPolls = ()=>{\r\n const [PollData, setPollData] = useState([]);\r\n const history = useHistory();\r\n\r\n useEffect(()=>{\r\n try{\r\n const decodedToken = jwt.verify(localStorage.getItem(\"user\"),process.env.REACT_APP_JWT_SECRET)\r\n fetch(\"https://poll-towards-a-goal.herokuapp.com/poll/personal/getallpolls\",\r\n {\r\n method:\"get\",\r\n headers:{\r\n \"Content-Type\":\"application/json\",\r\n },\r\n })\r\n .then(res=>res.json())\r\n .then(result=>{\r\n setPollData(result.polls)\r\n })\r\n }catch{\r\n history.push(\"/signin\")\r\n }\r\n },[]);\r\n\r\n return(\r\n <div className=\"all_content_all_personal_polls\">\r\n <h1>ALL PERSONAL POLLS</h1>\r\n <Grid container>\r\n {PollData.map((data)=>{\r\n return(\r\n <Grid item xs={12} sm={6} md={4} lg={3}>\r\n <div className=\"poll_card\"\r\n onClick={()=>{history.push(`/personalpoll/${data._id}`)}}>\r\n <div className=\"poll_card_content\">\r\n <div className=\"color_section\"></div>\r\n <img className=\"person_image\" src={data.createdBy.pic} />\r\n <h2 className=\"person_name_poll\">{data.createdBy.name}</h2>\r\n <p className=\"person_poll_question\">{data.question}</p>\r\n <HowToVoteIcon\r\n className=\"how_to_vote_icon\"></HowToVoteIcon>\r\n <span className=\"vote_count\">{data.votes.length} votes</span>\r\n <div className=\"color_section_bottom\"></div>\r\n </div>\r\n </div>\r\n </Grid> \r\n )\r\n })}\r\n </Grid>\r\n </div>\r\n )\r\n}\r\n\r\nexport default AllPersonalPolls;","C:\\Users\\vijay joshi\\Desktop\\Vijay\\MERN STACK PROJECTS\\POLL-TOWARDS-A-GOAL\\Frontend\\p-tag\\src\\components\\Screens\\OrganizationProfile\\OrganizationProfile.js",["121","122","123","124"],"import {useState, useEffect} from 'react';\r\nimport {useHistory} from 'react-router-dom';\r\nimport \"./OrganizationProfile.css\";\r\nimport Grid from '@material-ui/core/Grid';\r\nimport EmailIcon from '@material-ui/icons/Email';\r\nimport HowToVoteIcon from '@material-ui/icons/HowToVote';\r\nconst jwt = require('jsonwebtoken');\r\n\r\nconst OrganizationProfile = (props)=>{\r\n const [orgData, setOrgData] = useState({\r\n name:\"Loading...\",\r\n pic:\"Loading...\",\r\n polls:[],\r\n email:\"Loading...\"\r\n });\r\n const history = useHistory();\r\n\r\n useEffect(()=>{\r\n try{\r\n const decodedToken = jwt.verify(localStorage.getItem(\"user\"),process.env.REACT_APP_JWT_SECRET)\r\n fetch(\r\n `https://poll-towards-a-goal.herokuapp.com/organization/${props.location.pathname.substring(21)}`,\r\n {\r\n method: \"get\",\r\n headers:{\r\n \"Content-type\": \"application/json\",\r\n },\r\n }\r\n )\r\n .then(res=>res.json())\r\n .then(result=>{\r\n if(result.message===\"Success\"){\r\n setOrgData(result.organization)\r\n }\r\n })\r\n }catch{\r\n try{\r\n const decodedToken = jwt.verify(localStorage.getItem(\"organization\"),process.env.REACT_APP_JWT_SECRET);\r\n fetch(\r\n `https://poll-towards-a-goal.herokuapp.com/organization/${props.location.pathname.substring(21)}`,\r\n {\r\n method: \"get\",\r\n headers:{\r\n \"Content-type\": \"application/json\",\r\n },\r\n }\r\n )\r\n .then(res=>res.json())\r\n .then(result=>{\r\n if(result.message===\"Success\"){\r\n setOrgData(result.organization)\r\n }\r\n })\r\n }catch{\r\n history.push(\"/signin\")\r\n }\r\n \r\n }\r\n },[]);\r\n \r\n return(\r\n <div className=\"org_profile_all_content\">\r\n <Grid container>\r\n <Grid item xs={12} sm={12} md={4} lg={3}>\r\n <div className=\"org_details\">\r\n <div className=\"color_section\"></div>\r\n <img src={orgData.pic} className=\"organization_image\"/>\r\n <h2 className=\"org_name_profile\">{orgData.name}</h2>\r\n <EmailIcon className=\"email_icon_org_profile\"></EmailIcon>\r\n <span className=\"org_email\">{orgData.email}</span>\r\n <br></br>\r\n <HowToVoteIcon className=\"email_icon_org_profile\"></HowToVoteIcon>\r\n <span className=\"org_email\">{orgData.polls.length} polls conducted till now</span>\r\n <br></br>\r\n <div className=\"color_section_bottom\"></div>\r\n </div>\r\n </Grid>\r\n <Grid item xs={12} sm={12} md={8} lg={9}>\r\n <div className=\"org_all_polls\">\r\n {orgData.polls.map((data)=>{\r\n return(\r\n <div className=\"org_poll_card\"\r\n onClick={()=>{history.push(`/organizationpoll/${data._id}`)}}>\r\n <div className=\"color_section\"></div>\r\n <h2 className=\"option_content\">{data.question}</h2>\r\n {data.options.map((option,index)=>{\r\n return(\r\n <h3 className=\"option_content\">{index+1+\".\"} {option.optionContent}</h3>\r\n )\r\n })}\r\n <HowToVoteIcon className=\"option_content\"></HowToVoteIcon>\r\n <span style={{verticalAlign:\"top\"}}>{data.votes.length} votes till now</span>\r\n <div className=\"color_section_bottom\"></div>\r\n </div>\r\n )\r\n })}\r\n </div>\r\n </Grid>\r\n </Grid>\r\n </div>\r\n )\r\n}\r\n\r\nexport default OrganizationProfile","C:\\Users\\vijay joshi\\Desktop\\Vijay\\MERN STACK PROJECTS\\POLL-TOWARDS-A-GOAL\\Frontend\\p-tag\\src\\components\\Screens\\CreatePersonalPoll\\CreatePersonalPoll.js",["125"],"C:\\Users\\vijay joshi\\Desktop\\Vijay\\MERN STACK PROJECTS\\POLL-TOWARDS-A-GOAL\\Frontend\\p-tag\\src\\components\\Screens\\CreateOrganizationPoll\\CreateOrgnizationPoll.js",["126"],"C:\\Users\\vijay joshi\\Desktop\\Vijay\\MERN STACK PROJECTS\\POLL-TOWARDS-A-GOAL\\Frontend\\p-tag\\src\\components\\Screens\\OrganizationPoll\\OrganizationPoll.js",["127","128","129"],"C:\\Users\\vijay joshi\\Desktop\\Vijay\\MERN STACK PROJECTS\\POLL-TOWARDS-A-GOAL\\Frontend\\p-tag\\src\\components\\Screens\\PersonalPoll\\PersonalPoll.js",["130","131"],"C:\\Users\\vijay joshi\\Desktop\\Vijay\\MERN STACK PROJECTS\\POLL-TOWARDS-A-GOAL\\Frontend\\p-tag\\src\\components\\Footer\\Footer.js",[],"C:\\Users\\vijay joshi\\Desktop\\Vijay\\MERN STACK PROJECTS\\POLL-TOWARDS-A-GOAL\\Frontend\\p-tag\\src\\components\\LoaderAnimation.jsx",[],{"ruleId":"132","replacedBy":"133"},{"ruleId":"134","replacedBy":"135"},{"ruleId":"136","severity":1,"message":"137","line":2,"column":24,"nodeType":"138","messageId":"139","endLine":2,"endColumn":28},{"ruleId":"136","severity":1,"message":"140","line":20,"column":13,"nodeType":"138","messageId":"139","endLine":20,"endColumn":25},{"ruleId":"136","severity":1,"message":"140","line":25,"column":15,"nodeType":"138","messageId":"139","endLine":25,"endColumn":27},{"ruleId":"141","severity":1,"message":"142","line":31,"column":6,"nodeType":"143","endLine":31,"endColumn":34},{"ruleId":"144","severity":1,"message":"145","line":27,"column":21,"nodeType":"146","endLine":27,"endColumn":87},{"ruleId":"144","severity":1,"message":"145","line":112,"column":17,"nodeType":"146","endLine":112,"endColumn":80},{"ruleId":"141","severity":1,"message":"147","line":25,"column":7,"nodeType":"148","endLine":25,"endColumn":9,"suggestions":"149"},{"ruleId":"141","severity":1,"message":"150","line":69,"column":7,"nodeType":"148","endLine":69,"endColumn":15,"suggestions":"151"},{"ruleId":"141","severity":1,"message":"147","line":28,"column":7,"nodeType":"148","endLine":28,"endColumn":9,"suggestions":"152"},{"ruleId":"141","severity":1,"message":"153","line":82,"column":7,"nodeType":"148","endLine":82,"endColumn":12,"suggestions":"154"},{"ruleId":"155","severity":1,"message":"156","line":126,"column":42,"nodeType":"157","messageId":"158","endLine":126,"endColumn":43,"suggestions":"159"},{"ruleId":"155","severity":1,"message":"156","line":126,"column":67,"nodeType":"157","messageId":"158","endLine":126,"endColumn":68,"suggestions":"160"},{"ruleId":"155","severity":1,"message":"156","line":126,"column":76,"nodeType":"157","messageId":"158","endLine":126,"endColumn":77,"suggestions":"161"},{"ruleId":"155","severity":1,"message":"156","line":126,"column":80,"nodeType":"157","messageId":"158","endLine":126,"endColumn":81,"suggestions":"162"},{"ruleId":"141","severity":1,"message":"150","line":61,"column":7,"nodeType":"148","endLine":61,"endColumn":15,"suggestions":"163"},{"ruleId":"136","severity":1,"message":"140","line":65,"column":19,"nodeType":"138","messageId":"139","endLine":65,"endColumn":31},{"ruleId":"141","severity":1,"message":"147","line":70,"column":7,"nodeType":"148","endLine":70,"endColumn":9,"suggestions":"164"},{"ruleId":"136","severity":1,"message":"140","line":23,"column":19,"nodeType":"138","messageId":"139","endLine":23,"endColumn":31},{"ruleId":"141","severity":1,"message":"147","line":28,"column":7,"nodeType":"148","endLine":28,"endColumn":9,"suggestions":"165"},{"ruleId":"141","severity":1,"message":"153","line":82,"column":7,"nodeType":"148","endLine":82,"endColumn":12,"suggestions":"166"},{"ruleId":"155","severity":1,"message":"156","line":126,"column":42,"nodeType":"157","messageId":"158","endLine":126,"endColumn":43,"suggestions":"167"},{"ruleId":"155","severity":1,"message":"156","line":126,"column":67,"nodeType":"157","messageId":"158","endLine":126,"endColumn":68,"suggestions":"168"},{"ruleId":"155","severity":1,"message":"156","line":126,"column":76,"nodeType":"157","messageId":"158","endLine":126,"endColumn":77,"suggestions":"169"},{"ruleId":"155","severity":1,"message":"156","line":126,"column":80,"nodeType":"157","messageId":"158","endLine":126,"endColumn":81,"suggestions":"170"},{"ruleId":"136","severity":1,"message":"140","line":14,"column":19,"nodeType":"138","messageId":"139","endLine":14,"endColumn":31},{"ruleId":"141","severity":1,"message":"147","line":29,"column":7,"nodeType":"148","endLine":29,"endColumn":9,"suggestions":"171"},{"ruleId":"172","severity":1,"message":"173","line":42,"column":33,"nodeType":"146","endLine":42,"endColumn":87},{"ruleId":"132","replacedBy":"174"},{"ruleId":"134","replacedBy":"175"},{"ruleId":"136","severity":1,"message":"140","line":14,"column":19,"nodeType":"138","messageId":"139","endLine":14,"endColumn":31},{"ruleId":"141","severity":1,"message":"147","line":29,"column":7,"nodeType":"148","endLine":29,"endColumn":9,"suggestions":"176"},{"ruleId":"172","severity":1,"message":"173","line":42,"column":33,"nodeType":"146","endLine":42,"endColumn":90},{"ruleId":"136","severity":1,"message":"140","line":20,"column":19,"nodeType":"138","messageId":"139","endLine":20,"endColumn":31},{"ruleId":"136","severity":1,"message":"140","line":38,"column":23,"nodeType":"138","messageId":"139","endLine":38,"endColumn":35},{"ruleId":"141","severity":1,"message":"177","line":59,"column":7,"nodeType":"148","endLine":59,"endColumn":9,"suggestions":"178"},{"ruleId":"172","severity":1,"message":"173","line":67,"column":21,"nodeType":"146","endLine":67,"endColumn":76},{"ruleId":"141","severity":1,"message":"147","line":26,"column":7,"nodeType":"148","endLine":26,"endColumn":9,"suggestions":"179"},{"ruleId":"141","severity":1,"message":"147","line":26,"column":7,"nodeType":"148","endLine":26,"endColumn":9,"suggestions":"180"},{"ruleId":"136","severity":1,"message":"181","line":8,"column":8,"nodeType":"138","messageId":"139","endLine":8,"endColumn":17},{"ruleId":"136","severity":1,"message":"140","line":81,"column":23,"nodeType":"138","messageId":"139","endLine":81,"endColumn":35},{"ruleId":"141","severity":1,"message":"177","line":113,"column":7,"nodeType":"148","endLine":113,"endColumn":14,"suggestions":"182"},{"ruleId":"136","severity":1,"message":"181","line":8,"column":8,"nodeType":"138","messageId":"139","endLine":8,"endColumn":17},{"ruleId":"141","severity":1,"message":"177","line":82,"column":7,"nodeType":"148","endLine":82,"endColumn":14,"suggestions":"183"},"no-native-reassign",["184"],"no-negated-in-lhs",["185"],"no-unused-vars","'Link' is defined but never used.","Identifier","unusedVar","'decodedToken' is assigned a value but never used.","react-hooks/exhaustive-deps","React Hook useEffect has a complex expression in the dependency array. Extract it to a separate variable so it can be statically checked.","CallExpression","jsx-a11y/img-redundant-alt","Redundant alt attribute. Screen-readers already announce `img` tags as an image. You don’t need to use the words `image`, `photo,` or `picture` (or any specified custom words) in the alt prop.","JSXOpeningElement","React Hook useEffect has a missing dependency: 'history'. Either include it or remove the dependency array.","ArrayExpression",["186"],"React Hook useEffect has missing dependencies: 'email', 'history', and 'password'. Either include them or remove the dependency array.",["187"],["188"],"React Hook useEffect has missing dependencies: 'email', 'history', 'name', and 'password'. Either include them or remove the dependency array.",["189"],"no-useless-escape","Unnecessary escape character: \\\".","Literal","unnecessaryEscape",["190","191"],["192","193"],["194","195"],["196","197"],["198"],["199"],["200"],["201"],["202","203"],["204","205"],["206","207"],["208","209"],["210"],"jsx-a11y/alt-text","img elements must have an alt prop, either with meaningful text, or an empty string for decorative images.",["184"],["185"],["211"],"React Hook useEffect has missing dependencies: 'history' and 'props.location.pathname'. Either include them or remove the dependency array.",["212"],["213"],["214"],"'FormLabel' is defined but never used.",["215"],["216"],"no-global-assign","no-unsafe-negation",{"desc":"217","fix":"218"},{"desc":"219","fix":"220"},{"desc":"217","fix":"221"},{"desc":"222","fix":"223"},{"messageId":"224","fix":"225","desc":"226"},{"messageId":"227","fix":"228","desc":"229"},{"messageId":"224","fix":"230","desc":"226"},{"messageId":"227","fix":"231","desc":"229"},{"messageId":"224","fix":"232","desc":"226"},{"messageId":"227","fix":"233","desc":"229"},{"messageId":"224","fix":"234","desc":"226"},{"messageId":"227","fix":"235","desc":"229"},{"desc":"219","fix":"236"},{"desc":"217","fix":"237"},{"desc":"217","fix":"238"},{"desc":"222","fix":"239"},{"messageId":"224","fix":"240","desc":"226"},{"messageId":"227","fix":"241","desc":"229"},{"messageId":"224","fix":"242","desc":"226"},{"messageId":"227","fix":"243","desc":"229"},{"messageId":"224","fix":"244","desc":"226"},{"messageId":"227","fix":"245","desc":"229"},{"messageId":"224","fix":"246","desc":"226"},{"messageId":"227","fix":"247","desc":"229"},{"desc":"217","fix":"248"},{"desc":"217","fix":"249"},{"desc":"250","fix":"251"},{"desc":"217","fix":"252"},{"desc":"217","fix":"253"},{"desc":"254","fix":"255"},{"desc":"254","fix":"256"},"Update the dependencies array to be: [history]",{"range":"257","text":"258"},"Update the dependencies array to be: [email, history, loader, password]",{"range":"259","text":"260"},{"range":"261","text":"258"},"Update the dependencies array to be: [email, history, name, password, url]",{"range":"262","text":"263"},"removeEscape",{"range":"264","text":"265"},"Remove the `\\`. This maintains the current functionality.","escapeBackslash",{"range":"266","text":"267"},"Replace the `\\` with `\\\\` to include the actual backslash character.",{"range":"268","text":"265"},{"range":"269","text":"267"},{"range":"270","text":"265"},{"range":"271","text":"267"},{"range":"272","text":"265"},{"range":"273","text":"267"},{"range":"274","text":"260"},{"range":"275","text":"258"},{"range":"276","text":"258"},{"range":"277","text":"263"},{"range":"278","text":"265"},{"range":"279","text":"267"},{"range":"280","text":"265"},{"range":"281","text":"267"},{"range":"282","text":"265"},{"range":"283","text":"267"},{"range":"284","text":"265"},{"range":"285","text":"267"},{"range":"286","text":"258"},{"range":"287","text":"258"},"Update the dependencies array to be: [history, props.location.pathname]",{"range":"288","text":"289"},{"range":"290","text":"258"},{"range":"291","text":"258"},"Update the dependencies array to be: [history, props.location.pathname, voted]",{"range":"292","text":"293"},{"range":"294","text":"293"},[854,856],"[history]",[2490,2498],"[email, history, loader, password]",[988,990],[2973,2978],"[email, history, name, password, url]",[4341,4342],"",[4341,4341],"\\",[4366,4367],[4366,4366],[4375,4376],[4375,4375],[4379,4380],[4379,4379],[2261,2269],[2519,2521],[987,989],[3000,3005],[4400,4401],[4400,4400],[4425,4426],[4425,4425],[4434,4435],[4434,4434],[4438,4439],[4438,4438],[992,994],[980,982],[2108,2110],"[history, props.location.pathname]",[889,891],[917,919],[4095,4102],"[history, props.location.pathname, voted]",[2841,2848]]