-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintcache
1 lines (1 loc) · 16.5 KB
/
.eslintcache
1
[{"/Users/shashwatgupta/Desktop/react projects/ADG-reqruitment-portal/src/index.js":"1","/Users/shashwatgupta/Desktop/react projects/ADG-reqruitment-portal/src/App.js":"2","/Users/shashwatgupta/Desktop/react projects/ADG-reqruitment-portal/src/components/Forms/Domain&Instructions/DomainPage.jsx":"3","/Users/shashwatgupta/Desktop/react projects/ADG-reqruitment-portal/src/components/Quiz/TechQuiz.js":"4","/Users/shashwatgupta/Desktop/react projects/ADG-reqruitment-portal/src/components/Quiz/MgmtQuiz.js":"5","/Users/shashwatgupta/Desktop/react projects/ADG-reqruitment-portal/src/components/Quiz/DesignQuiz.js":"6","/Users/shashwatgupta/Desktop/react projects/ADG-reqruitment-portal/src/components/Forms/Landing/Landing.js":"7","/Users/shashwatgupta/Desktop/react projects/ADG-reqruitment-portal/src/components/Quiz/TechQuiz2ndYear.js":"8","/Users/shashwatgupta/Desktop/react projects/ADG-reqruitment-portal/src/components/Forms/SignUp/SignUp.js":"9","/Users/shashwatgupta/Desktop/react projects/ADG-reqruitment-portal/src/components/Forms/SignUp/Login/Login.js":"10","/Users/shashwatgupta/Desktop/react projects/ADG-reqruitment-portal/src/components/Forms/SignUp/ForgotPassword/ForgotPassword.js":"11","/Users/shashwatgupta/Desktop/react projects/ADG-reqruitment-portal/src/components/Forms/Domain&Instructions/Instructions.jsx":"12","/Users/shashwatgupta/Desktop/react projects/ADG-reqruitment-portal/src/components/Forms/Domain&Instructions/Thankyou.jsx":"13","/Users/shashwatgupta/Desktop/react projects/ADG-reqruitment-portal/src/hoc/Background/Background.js":"14","/Users/shashwatgupta/Desktop/react projects/ADG-reqruitment-portal/src/components/Quiz/Timer.jsx":"15","/Users/shashwatgupta/Desktop/react projects/ADG-reqruitment-portal/src/components/Modals/Modal.jsx":"16","/Users/shashwatgupta/Desktop/react projects/ADG-reqruitment-portal/src/components/Countdown/Countdown.js":"17","/Users/shashwatgupta/Desktop/react projects/ADG-reqruitment-portal/src/components/Footer/Footer.js":"18"},{"size":257,"mtime":1608740512251,"results":"19","hashOfConfig":"20"},{"size":2284,"mtime":1609003114532,"results":"21","hashOfConfig":"20"},{"size":3982,"mtime":1609090297419,"results":"22","hashOfConfig":"20"},{"size":8816,"mtime":1609102599910,"results":"23","hashOfConfig":"20"},{"size":6434,"mtime":1609101497503,"results":"24","hashOfConfig":"20"},{"size":8958,"mtime":1609102611920,"results":"25","hashOfConfig":"20"},{"size":762,"mtime":1608391849255,"results":"26","hashOfConfig":"20"},{"size":3717,"mtime":1609102932559,"results":"27","hashOfConfig":"20"},{"size":14203,"mtime":1609025369669,"results":"28","hashOfConfig":"20"},{"size":4991,"mtime":1608994159873,"results":"29","hashOfConfig":"20"},{"size":8226,"mtime":1609025369668,"results":"30","hashOfConfig":"20"},{"size":2587,"mtime":1609055667104,"results":"31","hashOfConfig":"20"},{"size":2251,"mtime":1609102709230,"results":"32","hashOfConfig":"20"},{"size":8171,"mtime":1609491920910,"results":"33","hashOfConfig":"20"},{"size":1461,"mtime":1609055667106,"results":"34","hashOfConfig":"20"},{"size":1296,"mtime":1609102722902,"results":"35","hashOfConfig":"20"},{"size":1557,"mtime":1609025369655,"results":"36","hashOfConfig":"20"},{"size":1371,"mtime":1608917478415,"results":"37","hashOfConfig":"20"},{"filePath":"38","messages":"39","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"40"},"19ihrd0",{"filePath":"41","messages":"42","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"40"},{"filePath":"43","messages":"44","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"40"},{"filePath":"45","messages":"46","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"40"},{"filePath":"47","messages":"48","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"40"},{"filePath":"49","messages":"50","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"40"},{"filePath":"51","messages":"52","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"40"},{"filePath":"53","messages":"54","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"40"},{"filePath":"55","messages":"56","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"40"},{"filePath":"57","messages":"58","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"40"},{"filePath":"59","messages":"60","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"40"},{"filePath":"61","messages":"62","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"40"},{"filePath":"63","messages":"64","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"40"},{"filePath":"65","messages":"66","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"67"},{"filePath":"68","messages":"69","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"40"},{"filePath":"70","messages":"71","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"40"},{"filePath":"72","messages":"73","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"40"},{"filePath":"74","messages":"75","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"40"},"/Users/shashwatgupta/Desktop/react projects/ADG-reqruitment-portal/src/index.js",[],["76","77"],"/Users/shashwatgupta/Desktop/react projects/ADG-reqruitment-portal/src/App.js",[],"/Users/shashwatgupta/Desktop/react projects/ADG-reqruitment-portal/src/components/Forms/Domain&Instructions/DomainPage.jsx",[],"/Users/shashwatgupta/Desktop/react projects/ADG-reqruitment-portal/src/components/Quiz/TechQuiz.js",[],"/Users/shashwatgupta/Desktop/react projects/ADG-reqruitment-portal/src/components/Quiz/MgmtQuiz.js",[],"/Users/shashwatgupta/Desktop/react projects/ADG-reqruitment-portal/src/components/Quiz/DesignQuiz.js",[],"/Users/shashwatgupta/Desktop/react projects/ADG-reqruitment-portal/src/components/Forms/Landing/Landing.js",[],"/Users/shashwatgupta/Desktop/react projects/ADG-reqruitment-portal/src/components/Quiz/TechQuiz2ndYear.js",[],"/Users/shashwatgupta/Desktop/react projects/ADG-reqruitment-portal/src/components/Forms/SignUp/SignUp.js",[],"/Users/shashwatgupta/Desktop/react projects/ADG-reqruitment-portal/src/components/Forms/SignUp/Login/Login.js",[],"/Users/shashwatgupta/Desktop/react projects/ADG-reqruitment-portal/src/components/Forms/SignUp/ForgotPassword/ForgotPassword.js",[],"/Users/shashwatgupta/Desktop/react projects/ADG-reqruitment-portal/src/components/Forms/Domain&Instructions/Instructions.jsx",[],"/Users/shashwatgupta/Desktop/react projects/ADG-reqruitment-portal/src/components/Forms/Domain&Instructions/Thankyou.jsx",[],"/Users/shashwatgupta/Desktop/react projects/ADG-reqruitment-portal/src/hoc/Background/Background.js",["78"],"/* eslint-disable no-unused-expressions */\r\nimport \"./Background.css\";\r\nimport adglogo from \"../../assets/img/adglogo.png\";\r\nimport adglogo2 from \"../../assets/img/adglogo2.png\";\r\nimport userpic from \"../../assets/img/userpic.png\";\r\nimport React, { Component } from \"react\";\r\nimport axios from \"axios\";\r\nimport Footer from \"../../components/Footer/Footer\";\r\nimport moment from \"moment\";\r\nimport Countdown from \"../../components/Countdown/Countdown\";\r\nimport { Link } from \"react-router-dom\";\r\nimport adggif from \"../../assets/img/adggif.gif\";\r\n\r\nexport class Background extends Component {\r\n constructor(props) {\r\n super(props);\r\n this.background = null;\r\n this.state = {\r\n Token: sessionStorage.getItem(\"Token\"),\r\n data: false,\r\n recruitmentStatus: false,\r\n dateValue: \"12-28-2020\",\r\n timeValue: \"12:00\",\r\n ampmValue: \"pm\",\r\n countdown: {\r\n days: \"\",\r\n hours: \"\",\r\n mins: \"\",\r\n secs: \"\",\r\n },\r\n isCountdownSet: true,\r\n loading: false,\r\n };\r\n this.timer = null;\r\n this.countDownDate = {\r\n dateValue: \"12-28-2020\",\r\n timeValue: \"12:00\",\r\n ampmValue: \"pm\",\r\n unixEndDate: \"\",\r\n };\r\n }\r\n\r\n renderCountdownDate(countDownDate) {\r\n countDownDate\r\n ? localStorage.setItem(\"countDownDate\", JSON.stringify(countDownDate))\r\n : null;\r\n return (\r\n JSON.parse(localStorage.getItem(\"countDownDate\")) || this.countDownDate\r\n );\r\n }\r\n\r\n setEndDate() {\r\n let dateValue = \"12-28-2020\";\r\n let timeValue = \"12:00\";\r\n let ampmValue = \"pm\";\r\n const unixEndDate = Number(\r\n moment(\r\n `${dateValue} ${timeValue} ${ampmValue}`,\r\n \"MM-DD-YYYY hh:mm A\",\r\n ).format(\"X\"),\r\n );\r\n this.startCountdown(\r\n this.renderCountdownDate({\r\n dateValue,\r\n timeValue,\r\n ampmValue,\r\n unixEndDate,\r\n }),\r\n );\r\n // console.log(dateValue, timeValue, ampmValue, unixEndDate);\r\n }\r\n\r\n startCountdown(endDate) {\r\n clearInterval(this.timer);\r\n this.timer = null;\r\n\r\n if (endDate.unixEndDate !== \"\") {\r\n this.timer = setInterval(() => this.playTimer(endDate.unixEndDate), 1000);\r\n }\r\n }\r\n\r\n playTimer(unixEndDate) {\r\n // console.log(unixEndDate);\r\n const distance = unixEndDate - moment().format(\"X\");\r\n if (distance > 0) {\r\n this.setState({\r\n countdown: {\r\n days: parseInt(distance / (60 * 60 * 24), 10),\r\n hours: parseInt((distance % (60 * 60 * 24)) / (60 * 60), 10),\r\n mins: parseInt((distance % (60 * 60)) / 60, 10),\r\n secs: parseInt(distance % 60, 10),\r\n },\r\n isCountdownSet: true,\r\n infoMessage: \"\",\r\n });\r\n }\r\n }\r\n\r\n componentDidMount() {\r\n let t = this;\r\n if (this.state.Token) {\r\n var config = {\r\n headers: {\r\n \"auth-token\": this.state.Token,\r\n },\r\n };\r\n this.setState({ loading: true });\r\n axios\r\n .get(\"https://adgrecruitments.herokuapp.com/user/getuser\", config)\r\n .then(function (response) {\r\n // console.log(response.data);\r\n t.setState({ data: response.data });\r\n })\r\n .catch(function (error) {\r\n // console.log(error);\r\n })\r\n .finally(() => this.setState({ loading: false }));\r\n }\r\n this.setState({ loading: true });\r\n axios\r\n .get(\"https://adgrecruitments.herokuapp.com/user/recruitmentstatus\")\r\n .then((recruitmentStatus) =>\r\n this.setState({ recruitmentStatus: recruitmentStatus.data.status }),\r\n )\r\n .finally(() => this.setState({ loading: false }));\r\n this.startCountdown(this.renderCountdownDate());\r\n }\r\n componentWillUnmount() {}\r\n handleLogOut = () => {\r\n sessionStorage.clear();\r\n };\r\n\r\n render() {\r\n let background;\r\n // let profile = null;\r\n const loader = (\r\n <div style={{ margin: \"150px auto\" }}>\r\n <img src={adggif} height={100} alt='ADG gif loader' />\r\n </div>\r\n );\r\n if (this.state.Token) {\r\n background = (\r\n <div>\r\n <div id='adglogo-cont2'>\r\n <a href='/'>\r\n <img id='adglogo2' src={adglogo2} alt='ADG Logo' />\r\n </a>\r\n <div className='flex'></div>\r\n {this.state.data ? (\r\n <div id='profile-container' className='pf-cr'>\r\n <div id='profile-wrapper' className='pf-wr'>\r\n <div className='uinf'>\r\n <div>\r\n <img id='userpic' src={userpic} alt='User pic' />\r\n </div>\r\n <div id='profile-title' className='usr-det'>\r\n {this.state.data.userDetails.name}\r\n </div>\r\n </div>\r\n <Link to='/'>\r\n <button id='logout-button' onClick={this.handleLogOut}>\r\n Logout\r\n </button>\r\n </Link>\r\n </div>\r\n </div>\r\n ) : null}\r\n </div>\r\n <div className='container'>\r\n <div id='cont-box'>\r\n {/*{this.state.recruitmentStatus ? (*/}\r\n {/* this.props.children*/}\r\n {/*) : (*/}\r\n {/* <h2 align='center'>Recruitments coming soon</h2>*/}\r\n {/*)}*/}\r\n {!this.state.loading ? this.props.children : loader}\r\n </div>\r\n </div>\r\n <Footer />\r\n </div>\r\n );\r\n } else {\r\n background = (\r\n <div id='background'>\r\n <div id='adglogo-cont'>\r\n <a href='/'>\r\n <img id='adglogo' src={adglogo} alt='ADG Logo' />\r\n </a>\r\n </div>\r\n <div className='container'>\r\n <div id='cont-box'>\r\n {this.state.recruitmentStatus ? (\r\n !this.state.loading ? (\r\n this.props.children\r\n ) : (\r\n loader\r\n )\r\n ) : (\r\n <>\r\n {/* <h2 align='center'>Recruitments coming soon</h2>\r\n {this.setEndDate()}\r\n {this.state.isCountdownSet ? (\r\n <Countdown\r\n countdown={this.state.countdown}\r\n unixEndDate={\"\\n<Countdown date={'2020-12-23T14:00:00'}\"}\r\n />\r\n ) : (\r\n <p className='message info-message'>\r\n <span className='fa fa-info-circle fa-lg fa-fw'></span>{\" \"}\r\n {this.state.infoMessage}\r\n </p>\r\n )} */}\r\n <div className='heading'>Recruitments like never before</div>\r\n <div className='heading2'>\r\n Round one results to be declared soon.\r\n <br />\r\n Stay tuned on ADG's social handles <br />\r\n </div>\r\n <div style={{ marginTop: \"-10px\", marginBottom: \"10px\" }}>\r\n <a\r\n style={{\r\n padding: \"10px\",\r\n color: \"white\",\r\n fontSize: \"32px\",\r\n }}\r\n href='https://www.instagram.com/adgvit/'>\r\n <i class='fab fa-instagram-square'></i>\r\n </a>\r\n <a\r\n style={{\r\n padding: \"10px\",\r\n color: \"white\",\r\n fontSize: \"32px\",\r\n }}\r\n href='https://www.facebook.com/vitios'>\r\n <i class='fab fa-facebook-square'></i>\r\n </a>\r\n </div>\r\n <div className='sub-heading'>Thanks for participating</div>\r\n </>\r\n )}\r\n {/*{this.props.children}*/}\r\n </div>\r\n </div>\r\n <Footer />\r\n </div>\r\n );\r\n }\r\n return (\r\n <div>\r\n {/* <div id='back-img' /> */}\r\n {background}\r\n </div>\r\n );\r\n }\r\n}\r\n\r\nexport default Background;\r\n","/Users/shashwatgupta/Desktop/react projects/ADG-reqruitment-portal/src/components/Quiz/Timer.jsx",[],"/Users/shashwatgupta/Desktop/react projects/ADG-reqruitment-portal/src/components/Modals/Modal.jsx",[],"/Users/shashwatgupta/Desktop/react projects/ADG-reqruitment-portal/src/components/Countdown/Countdown.js",[],"/Users/shashwatgupta/Desktop/react projects/ADG-reqruitment-portal/src/components/Footer/Footer.js",[],{"ruleId":"79","replacedBy":"80"},{"ruleId":"81","replacedBy":"82"},{"ruleId":"83","severity":1,"message":"84","line":10,"column":8,"nodeType":"85","messageId":"86","endLine":10,"endColumn":17},"no-native-reassign",["87"],"no-negated-in-lhs",["88"],"no-unused-vars","'Countdown' is defined but never used.","Identifier","unusedVar","no-global-assign","no-unsafe-negation"]