-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintcache
1 lines (1 loc) · 17.1 KB
/
.eslintcache
1
[{"C:\\Users\\hp\\Documents\\onelink-full-build\\src\\index.js":"1","C:\\Users\\hp\\Documents\\onelink-full-build\\src\\App.js":"2","C:\\Users\\hp\\Documents\\onelink-full-build\\src\\components\\Nav.js":"3","C:\\Users\\hp\\Documents\\onelink-full-build\\src\\components\\Hero.js":"4","C:\\Users\\hp\\Documents\\onelink-full-build\\src\\components\\Destinations.js":"5","C:\\Users\\hp\\Documents\\onelink-full-build\\src\\components\\TripCard.js":"6","C:\\Users\\hp\\Documents\\onelink-full-build\\src\\components\\Footer.js":"7","C:\\Users\\hp\\Documents\\onelink-full-build\\src\\components\\TripPage.js":"8","C:\\Users\\hp\\Documents\\onelink-full-build\\src\\pages\\DestinationPage\\DestinationsPage.js":"9","C:\\Users\\hp\\Documents\\onelink-full-build\\src\\pages\\DestinationPage\\TripCards.js":"10","C:\\Users\\hp\\Documents\\onelink-full-build\\src\\pages\\ContactPage\\ContactPage.js":"11","C:\\Users\\hp\\Documents\\onelink-full-build\\src\\pages\\AboutPage\\AboutPage.js":"12","C:\\Users\\hp\\Documents\\onelink-full-build\\src\\pages\\Review\\Review.js":"13","C:\\Users\\hp\\Documents\\onelink-full-build\\src\\components\\Form\\CustomTextField.jsx":"14","C:\\Users\\hp\\Documents\\onelink-full-build\\src\\components\\Form\\Form.js":"15","C:\\Users\\hp\\Documents\\onelink-full-build\\src\\components\\PaymentForm.js":"16","C:\\Users\\hp\\Documents\\onelink-full-build\\src\\pages\\Confirmation\\Confirmation.js":"17","C:\\Users\\hp\\Documents\\onelink-full-build\\src\\components\\Signup.js":"18","C:\\Users\\hp\\Documents\\onelink-full-build\\src\\components\\Signin.js":"19","C:\\Users\\hp\\Documents\\onelink-full-build\\src\\components\\Account.js":"20"},{"size":198,"mtime":1609511549401,"results":"21","hashOfConfig":"22"},{"size":2531,"mtime":1610998844077,"results":"23","hashOfConfig":"22"},{"size":2716,"mtime":1610976170114,"results":"24","hashOfConfig":"22"},{"size":799,"mtime":1609599984587,"results":"25","hashOfConfig":"22"},{"size":590,"mtime":1609600931910,"results":"26","hashOfConfig":"22"},{"size":709,"mtime":1609600943257,"results":"27","hashOfConfig":"22"},{"size":708,"mtime":1609674655606,"results":"28","hashOfConfig":"22"},{"size":1146,"mtime":1610998609413,"results":"29","hashOfConfig":"22"},{"size":505,"mtime":1609677850753,"results":"30","hashOfConfig":"22"},{"size":692,"mtime":1609674733709,"results":"31","hashOfConfig":"22"},{"size":760,"mtime":1609675596772,"results":"32","hashOfConfig":"22"},{"size":2796,"mtime":1609677109063,"results":"33","hashOfConfig":"22"},{"size":3464,"mtime":1610012723835,"results":"34","hashOfConfig":"22"},{"size":677,"mtime":1609842680208,"results":"35","hashOfConfig":"22"},{"size":2451,"mtime":1609849663301,"results":"36","hashOfConfig":"22"},{"size":2049,"mtime":1611002532089,"results":"37","hashOfConfig":"22"},{"size":929,"mtime":1610999967147,"results":"38","hashOfConfig":"22"},{"size":3036,"mtime":1611003483520,"results":"39","hashOfConfig":"22"},{"size":2103,"mtime":1611002540283,"results":"40","hashOfConfig":"22"},{"size":1064,"mtime":1610984478421,"results":"41","hashOfConfig":"22"},{"filePath":"42","messages":"43","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"44"},"pbl18e",{"filePath":"45","messages":"46","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"47","usedDeprecatedRules":"44"},{"filePath":"48","messages":"49","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"44"},{"filePath":"50","messages":"51","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"44"},{"filePath":"52","messages":"53","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"44"},{"filePath":"54","messages":"55","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"44"},{"filePath":"56","messages":"57","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"44"},{"filePath":"58","messages":"59","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"44"},{"filePath":"60","messages":"61","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"44"},{"filePath":"62","messages":"63","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"44"},{"filePath":"64","messages":"65","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"44"},{"filePath":"66","messages":"67","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"44"},{"filePath":"68","messages":"69","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"44"},{"filePath":"70","messages":"71","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"72","messages":"73","errorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":"74","usedDeprecatedRules":"44"},{"filePath":"75","messages":"76","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"44"},{"filePath":"77","messages":"78","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"44"},{"filePath":"79","messages":"80","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"81","messages":"82","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"83","usedDeprecatedRules":"44"},{"filePath":"84","messages":"85","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"86","usedDeprecatedRules":"44"},"C:\\Users\\hp\\Documents\\onelink-full-build\\src\\index.js",[],["87","88"],"C:\\Users\\hp\\Documents\\onelink-full-build\\src\\App.js",["89"],"import React from 'react'\nimport Nav from './components/Nav'\nimport {BrowserRouter as Router, Route, Switch } from 'react-router-dom'\nimport Hero from './components/Hero'\nimport Destinations from './components/Destinations'\nimport TripPage from './components/TripPage'\nimport { createMuiTheme, ThemeProvider } from '@material-ui/core/styles';\nimport './App.css'\nimport data from './data/destinations.json'\nimport Footer from './components/Footer'\nimport DestinationsPage from './pages/DestinationPage/DestinationsPage'\nimport ContactPage from './pages/ContactPage/ContactPage'\nimport AboutPage from './pages/AboutPage/AboutPage'\nimport Review from './pages/Review/Review'\nimport Confirmation from './pages/Confirmation/Confirmation'\nimport Form from './components/Form/Form'\nimport PaymentForm from './components/PaymentForm'\nimport Signup from './components/Signup'\nimport Signin from './components/Signin'\nimport Account from './components/Account'\n\nconst App = () => {\n const trips = data.trips\n \n\n\n const theme = createMuiTheme({\n palette: {\n primary:{\n main: '#4caf50'\n },\n secondary: {\n main: '#23395d'\n }\n }\n })\n return (\n <ThemeProvider theme={theme}>\n <Router>\n <Nav />\n <Switch>\n <Route exact path=\"/\">\n \n <Hero />\n <Destinations />\n </Route>\n <Route exact path=\"/destinations\">\n \n <DestinationsPage />\n </Route>\n {trips.map((trip, index) => (\n <Route exact path={`/destinations/${trip.slug}`}>\n <TripPage key={index} trip={trip} />\n </Route>\n ))}\n <Route exact path=\"/contact\">\n <ContactPage />\n </Route>\n <Route exact path=\"/about\">\n <AboutPage />\n </Route>\n {trips.map((trip, index) => (\n <Route exact path={`/review/${trip.slug}`}>\n <Review trip={trip}/>\n </Route>\n ))}\n <Route exact path=\"/checkout\">\n <PaymentForm />\n </Route>\n <Route exact path=\"/confirmed\">\n <Confirmation />\n </Route>\n <Route exact path=\"/signup\">\n <Signup />\n </Route>\n <Route exact path=\"/signin\">\n <Signin />\n </Route>\n <Route exact path=\"/account\">\n <Account />\n </Route>\n </Switch>\n <Footer />\n </Router>\n </ThemeProvider>\n \n \n )\n}\n\nexport default App\n","C:\\Users\\hp\\Documents\\onelink-full-build\\src\\components\\Nav.js",[],"C:\\Users\\hp\\Documents\\onelink-full-build\\src\\components\\Hero.js",[],"C:\\Users\\hp\\Documents\\onelink-full-build\\src\\components\\Destinations.js",[],"C:\\Users\\hp\\Documents\\onelink-full-build\\src\\components\\TripCard.js",[],"C:\\Users\\hp\\Documents\\onelink-full-build\\src\\components\\Footer.js",[],"C:\\Users\\hp\\Documents\\onelink-full-build\\src\\components\\TripPage.js",[],"C:\\Users\\hp\\Documents\\onelink-full-build\\src\\pages\\DestinationPage\\DestinationsPage.js",[],"C:\\Users\\hp\\Documents\\onelink-full-build\\src\\pages\\DestinationPage\\TripCards.js",[],"C:\\Users\\hp\\Documents\\onelink-full-build\\src\\pages\\ContactPage\\ContactPage.js",[],"C:\\Users\\hp\\Documents\\onelink-full-build\\src\\pages\\AboutPage\\AboutPage.js",[],"C:\\Users\\hp\\Documents\\onelink-full-build\\src\\pages\\Review\\Review.js",[],"C:\\Users\\hp\\Documents\\onelink-full-build\\src\\components\\Form\\CustomTextField.jsx",[],"C:\\Users\\hp\\Documents\\onelink-full-build\\src\\components\\Form\\Form.js",["90","91"],"import React, {useState} from 'react'\r\nimport './form.css'\r\nimport { useForm, FormProvider } from 'react-hook-form';\r\nimport FormInput from './CustomTextField'\r\nimport {Grid, Button} from '@material-ui/core'\r\nimport {Link} from 'react-router-dom'\r\nimport validator from 'validator';\r\n\r\nconst Form = () => {\r\n var trip = JSON.parse(localStorage.getItem(\"trip\"))\r\n var people = JSON.parse(localStorage.getItem(\"people\"))\r\n var userData = JSON.parse(localStorage.getItem(\"userData\"))\r\n const [errorMessage, setErrorMessage] = useState(\"\")\r\n const methods = useForm()\r\n return (\r\n <div className=\"formPage\">\r\n <div className=\"formBg\">\r\n <img src=\"https://images.pexels.com/photos/615348/forest-fog-sunny-nature-615348.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=650&w=940\" alt=\"background\" className=\"bgForm\"/>\r\n </div>\r\n <div className=\"form\">\r\n <FormProvider {...methods}>\r\n <form onSubmit={methods.handleSubmit((data) => {\r\n if(!validator.isMobilePhone(data.ph, ['en-PK'])) {\r\n setErrorMessage(\"Wrong Phone Number\")\r\n localStorage.removeItem('userData')\r\n }\r\n else{\r\n localStorage.setItem('userData', JSON.stringify(data))\r\n setErrorMessage(\"\")\r\n window.location.href = '/payment'\r\n }\r\n })}>\r\n {(errorMessage)? <h1 className=\"error\">{errorMessage}</h1> : null}\r\n <Grid container spacing={3}>\r\n \r\n <FormInput required name=\"firstName\" label=\"First Name\" type={\"String\"}/>\r\n <FormInput required name=\"lastName\" label=\"Last Name\" type={\"String\"}/>\r\n <FormInput required name=\"email\" label=\"Email\" type={\"Email\"}/>\r\n <FormInput required name=\"address\" label=\"Address\" type={\"String\"}/>\r\n <FormInput required name=\"city\" label=\"City\" type={\"String\"}/>\r\n <FormInput required name=\"ph\" label=\"Phone Number\" type={\"Number\"}/>\r\n \r\n </Grid>\r\n <br />\r\n <div style={{ display: 'flex', justifyContent: 'space-between' }}>\r\n <Button component={Link} variant=\"contained\" to={`/review/${trip.slug}`} color=\"secondary\">Back</Button>\r\n <Button type=\"submit\" variant=\"contained\" color=\"primary\" >Next</Button>\r\n </div>\r\n </form>\r\n \r\n </FormProvider>\r\n </div>\r\n \r\n </div>\r\n )\r\n}\r\n\r\nexport default Form\r\n","C:\\Users\\hp\\Documents\\onelink-full-build\\src\\components\\PaymentForm.js",[],"C:\\Users\\hp\\Documents\\onelink-full-build\\src\\pages\\Confirmation\\Confirmation.js",[],"C:\\Users\\hp\\Documents\\onelink-full-build\\src\\components\\Signup.js",["92"],"C:\\Users\\hp\\Documents\\onelink-full-build\\src\\components\\Signin.js",["93"],"import React, {useState} from 'react'\r\nimport {Grid, Button} from '@material-ui/core'\r\nimport { useForm, FormProvider } from 'react-hook-form';\r\nimport FormInput from './Form/CustomTextField'\r\nimport {Link} from 'react-router-dom'\r\nimport axios from 'axios'\r\nimport './signup.css'\r\n\r\nconst Signup = () => {\r\n const methods = useForm()\r\n const [errorMessage, setErrorMessage] = useState(\"\")\r\n return (\r\n <div className=\"signup\">\r\n <div className=\"signupBg\">\r\n <img src=\"https://images.pexels.com/photos/3244513/pexels-photo-3244513.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=650&w=940\" className=\"bgSignup\"/>\r\n </div>\r\n <div className=\"signupForm\">\r\n <h1 className=\"signupTitle\">Signup</h1>\r\n <p className=\"poopie\">Don't have an account? Sign up <a href=\"/signup\" className=\"blueLink\">here</a></p>\r\n <FormProvider {...methods}>\r\n <form onSubmit={methods.handleSubmit(async (data) => {\r\n const response = await axios.post('https://sleepy-plains-63774.herokuapp.com/signin', {\r\n email: data.email,\r\n password: data.password\r\n })\r\n if (response.data.error) {\r\n return setErrorMessage(response.data.error)\r\n }\r\n setErrorMessage(\"\")\r\n localStorage.setItem('user', JSON.stringify(response.data))\r\n window.location.href = '/'\r\n \r\n })}>\r\n <Grid className='bigShaq'>\r\n {errorMessage ? <h1 className=\"errorMessage\">{errorMessage}</h1> : null}\r\n <FormInput required name=\"email\" label=\"Email\" type={\"Email\"}/>\r\n <FormInput required name=\"password\" label=\"Password\" type={\"Password\"}/> \r\n </Grid>\r\n <br />\r\n <div style={{ display: 'flex', justifyContent: 'space-between' }}>\r\n <Button component={Link} variant=\"contained\" to=\"/\" color=\"secondary\">Back</Button>\r\n <Button type=\"submit\" variant=\"contained\" color=\"primary\" >Next</Button>\r\n </div>\r\n </form>\r\n\r\n </FormProvider>\r\n </div>\r\n </div>\r\n )\r\n}\r\n\r\nexport default Signup\r\n","C:\\Users\\hp\\Documents\\onelink-full-build\\src\\components\\Account.js",["94"],"import { Button } from '@material-ui/core'\r\nimport React from 'react'\r\nimport './account.css'\r\n\r\nconst Account = () => {\r\n var user = JSON.parse(localStorage.getItem(\"user\"))\r\n console.log(user)\r\n return (\r\n <div className=\"accountPage\">\r\n <div className=\"accountBg\">\r\n <img src=\"https://preview.redd.it/gapbfkm58bv31.jpg?auto=webp&s=2d8fd5fe446e0e144d9c8ca2648c24214fda32a4\" className=\"bgAccount\" />\r\n </div>\r\n <div className=\"accountInfo\">\r\n <h1 className=\"userName\">{user.firstName} {user.lastName}</h1>\r\n <h1 className=\"moreInfo\">Email: {user.email}</h1>\r\n <h1 className=\"moreInfo\">City: {user.city}</h1>\r\n <h1 className=\"moreInfo\">Address: {user.address}</h1>\r\n <h1 className=\"moreInfo\">Phone Number: +92 {user.phoneNumber}</h1>\r\n <Button color=\"primary\" variant=\"contained\" className=\"logout\" onClick={() => {\r\n localStorage.removeItem('user')\r\n window.location.href = '/'\r\n }}>Logout</Button>\r\n </div>\r\n \r\n </div>\r\n )\r\n}\r\n\r\nexport default Account\r\n",{"ruleId":"95","replacedBy":"96"},{"ruleId":"97","replacedBy":"98"},{"ruleId":"99","severity":1,"message":"100","line":16,"column":8,"nodeType":"101","messageId":"102","endLine":16,"endColumn":12},{"ruleId":"99","severity":1,"message":"103","line":11,"column":7,"nodeType":"101","messageId":"102","endLine":11,"endColumn":13},{"ruleId":"99","severity":1,"message":"104","line":12,"column":7,"nodeType":"101","messageId":"102","endLine":12,"endColumn":15},{"ruleId":"105","severity":1,"message":"106","line":16,"column":9,"nodeType":"107","endLine":16,"endColumn":153},{"ruleId":"105","severity":1,"message":"106","line":15,"column":9,"nodeType":"107","endLine":15,"endColumn":153},{"ruleId":"105","severity":1,"message":"106","line":11,"column":9,"nodeType":"107","endLine":11,"endColumn":139},"no-native-reassign",["108"],"no-negated-in-lhs",["109"],"no-unused-vars","'Form' is defined but never used.","Identifier","unusedVar","'people' is assigned a value but never used.","'userData' is assigned a value but never used.","jsx-a11y/alt-text","img elements must have an alt prop, either with meaningful text, or an empty string for decorative images.","JSXOpeningElement","no-global-assign","no-unsafe-negation"]