-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintcache
1 lines (1 loc) · 36.5 KB
/
.eslintcache
1
[{"C:\\zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz\\6- Travel guru\\travel-guru-finished-project-client\\src\\reportWebVitals.js":"1","C:\\zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz\\6- Travel guru\\travel-guru-finished-project-client\\src\\App.js":"2","C:\\zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz\\6- Travel guru\\travel-guru-finished-project-client\\src\\Components\\NavbarSection\\NavbarSection.js":"3","C:\\zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz\\6- Travel guru\\travel-guru-finished-project-client\\src\\Components\\Home\\Home.js":"4","C:\\zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz\\6- Travel guru\\travel-guru-finished-project-client\\src\\Components\\BookingForm\\BookingForm.js":"5","C:\\zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz\\6- Travel guru\\travel-guru-finished-project-client\\src\\Components\\Login\\Login.js":"6","C:\\zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz\\6- Travel guru\\travel-guru-finished-project-client\\src\\Components\\SignUp\\SignUp.js":"7","C:\\zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz\\6- Travel guru\\travel-guru-finished-project-client\\src\\Components\\Location\\Location.js":"8","C:\\zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz\\6- Travel guru\\travel-guru-finished-project-client\\src\\Components\\Location\\Card.js":"9","C:\\zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz\\6- Travel guru\\travel-guru-finished-project-client\\src\\Components\\Login\\PrivateRoute.js":"10","C:\\zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz\\6- Travel guru\\travel-guru-finished-project-client\\src\\Components\\Login\\FirebaseConfig.js":"11","C:\\zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz\\6- Travel guru\\travel-guru-finished-project-client\\src\\index.js":"12"},{"size":362,"mtime":499162500000,"results":"13","hashOfConfig":"14"},{"size":2089,"mtime":1606393783417,"results":"15","hashOfConfig":"14"},{"size":7183,"mtime":1606416752950,"results":"16","hashOfConfig":"14"},{"size":6116,"mtime":1606336384924,"results":"17","hashOfConfig":"14"},{"size":4460,"mtime":1606337025368,"results":"18","hashOfConfig":"14"},{"size":5110,"mtime":1606381911393,"results":"19","hashOfConfig":"14"},{"size":9050,"mtime":1606382751425,"results":"20","hashOfConfig":"14"},{"size":1912,"mtime":1606391299523,"results":"21","hashOfConfig":"14"},{"size":1128,"mtime":1606391512022,"results":"22","hashOfConfig":"14"},{"size":610,"mtime":1606416677352,"results":"23","hashOfConfig":"14"},{"size":409,"mtime":1606337966100,"results":"24","hashOfConfig":"14"},{"size":500,"mtime":499162500000,"results":"25","hashOfConfig":"14"},{"filePath":"26","messages":"27","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"15iiiy3",{"filePath":"28","messages":"29","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"30","usedDeprecatedRules":"31"},{"filePath":"32","messages":"33","errorCount":0,"warningCount":11,"fixableErrorCount":0,"fixableWarningCount":0,"source":"34","usedDeprecatedRules":"35"},{"filePath":"36","messages":"37","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"35"},{"filePath":"38","messages":"39","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"40","usedDeprecatedRules":"35"},{"filePath":"41","messages":"42","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"35"},{"filePath":"43","messages":"44","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"45","usedDeprecatedRules":"35"},{"filePath":"46","messages":"47","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"48","usedDeprecatedRules":"35"},{"filePath":"49","messages":"50","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"51","messages":"52","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"53","messages":"54","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"35"},{"filePath":"55","messages":"56","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"C:\\zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz\\6- Travel guru\\travel-guru-finished-project-client\\src\\reportWebVitals.js",[],"C:\\zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz\\6- Travel guru\\travel-guru-finished-project-client\\src\\App.js",["57"],"import \"./App.css\";\nimport NavbarSection from \"./Components/NavbarSection/NavbarSection\";\nimport { BrowserRouter as Router, Switch, Route, Link } from \"react-router-dom\";\nimport Home from \"./Components/Home/Home\";\nimport BookingForm from \"./Components/BookingForm/BookingForm\";\nimport logo from \"./Image/Logo2.png\";\nimport Login from \"./Components/Login/Login\";\nimport { createContext, useState } from \"react\";\nimport SignUp from \"./Components/SignUp/SignUp\";\nimport Location from \"./Components/Location/Location\";\nimport PrivateRoute from \"./Components/Login/PrivateRoute\";\n\n// set and get user login context api\nexport const userContext = createContext();\n\nfunction App() {\n // state set and get user login\n const [userLogged, setUserLogged] = useState({ email: \"\", name: \"\" });\n\n return (\n <>\n <Router>\n <Switch>\n {/* signup message provider value */}\n <userContext.Provider value={[userLogged, setUserLogged]}>\n <Route exact path=\"/\">\n <div className=\"App\">\n <NavbarSection />\n <Home />\n </div>\n </Route>\n\n <Route exact path=\"/booking-form/:id\">\n <div className=\"App\">\n <NavbarSection />\n <BookingForm></BookingForm>\n </div>\n </Route>\n\n <Route path=\"/login\">\n <div className=\"App2\">\n <NavbarSection logo={logo} color=\"default\" />\n <Login></Login>\n </div>\n </Route>\n <Route path=\"/signup\">\n <div className=\"App2\">\n <NavbarSection logo={logo} color=\"default\" />\n <SignUp></SignUp>\n </div>\n </Route>\n\n <PrivateRoute path=\"/location/:id\">\n <div className=\"App2\">\n <NavbarSection logo={logo} color=\"default\" />\n <Location></Location>\n </div>\n </PrivateRoute>\n </userContext.Provider>\n </Switch>\n </Router>\n </>\n );\n}\n\nexport default App;\n",["58","59"],"C:\\zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz\\6- Travel guru\\travel-guru-finished-project-client\\src\\Components\\NavbarSection\\NavbarSection.js",["60","61","62","63","64","65","66","67","68","69","70"],"import React, { useContext } from \"react\";\r\nimport { fade, makeStyles } from \"@material-ui/core/styles\";\r\nimport AppBar from \"@material-ui/core/AppBar\";\r\nimport Toolbar from \"@material-ui/core/Toolbar\";\r\nimport IconButton from \"@material-ui/core/IconButton\";\r\nimport Typography from \"@material-ui/core/Typography\";\r\nimport InputBase from \"@material-ui/core/InputBase\";\r\nimport Badge from \"@material-ui/core/Badge\";\r\nimport MenuItem from \"@material-ui/core/MenuItem\";\r\nimport Menu from \"@material-ui/core/Menu\";\r\nimport MenuIcon from \"@material-ui/icons/Menu\";\r\nimport SearchIcon from \"@material-ui/icons/Search\";\r\nimport AccountCircle from \"@material-ui/icons/AccountCircle\";\r\nimport MailIcon from \"@material-ui/icons/Mail\";\r\n\r\nimport MoreIcon from \"@material-ui/icons/MoreVert\";\r\nimport { Button, Container } from \"@material-ui/core\";\r\nimport \"./NavbarSection.css\";\r\nimport { Link } from \"react-router-dom\";\r\nimport logo from \"../../Image/Logo.png\";\r\nimport { userContext } from \"../../App\";\r\n\r\nconst useStyles = makeStyles((theme) => ({\r\n grow: {\r\n flexGrow: 1,\r\n },\r\n menuButton: {\r\n marginRight: theme.spacing(2),\r\n },\r\n title: {\r\n display: \"none\",\r\n [theme.breakpoints.up(\"sm\")]: {\r\n display: \"block\",\r\n },\r\n },\r\n search: {\r\n position: \"relative\",\r\n borderRadius: theme.shape.borderRadius,\r\n backgroundColor: fade(theme.palette.common.white, 0.15),\r\n \"&:hover\": {\r\n backgroundColor: fade(theme.palette.common.white, 0.25),\r\n },\r\n marginRight: theme.spacing(2),\r\n marginLeft: 0,\r\n width: \"100%\",\r\n [theme.breakpoints.up(\"sm\")]: {\r\n marginLeft: theme.spacing(3),\r\n width: \"auto\",\r\n },\r\n },\r\n searchIcon: {\r\n padding: theme.spacing(0, 2),\r\n height: \"100%\",\r\n position: \"absolute\",\r\n pointerEvents: \"none\",\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n justifyContent: \"center\",\r\n },\r\n inputRoot: {\r\n color: \"inherit\",\r\n },\r\n inputInput: {\r\n padding: theme.spacing(1, 1, 1, 0),\r\n // vertical padding + font size from searchIcon\r\n paddingLeft: `calc(1em + ${theme.spacing(4)}px)`,\r\n transition: theme.transitions.create(\"width\"),\r\n width: \"100%\",\r\n [theme.breakpoints.up(\"md\")]: {\r\n width: \"20ch\",\r\n },\r\n },\r\n sectionDesktop: {\r\n display: \"none\",\r\n [theme.breakpoints.up(\"md\")]: {\r\n display: \"flex\",\r\n },\r\n },\r\n sectionMobile: {\r\n display: \"flex\",\r\n [theme.breakpoints.up(\"md\")]: {\r\n display: \"none\",\r\n },\r\n },\r\n}));\r\nconst NavbarSection = (props) => {\r\n const navItemColor = props.color ? props.color : \"inherit\";\r\n const classes = useStyles();\r\n const [anchorEl, setAnchorEl] = React.useState(null);\r\n const [mobileMoreAnchorEl, setMobileMoreAnchorEl] = React.useState(null);\r\n\r\n const isMenuOpen = Boolean(anchorEl);\r\n const isMobileMenuOpen = Boolean(mobileMoreAnchorEl);\r\n\r\n const handleProfileMenuOpen = (event) => {\r\n setAnchorEl(event.currentTarget);\r\n };\r\n\r\n const handleMobileMenuClose = () => {\r\n setMobileMoreAnchorEl(null);\r\n };\r\n\r\n const handleMenuClose = () => {\r\n setAnchorEl(null);\r\n handleMobileMenuClose();\r\n };\r\n\r\n const handleMobileMenuOpen = (event) => {\r\n setMobileMoreAnchorEl(event.currentTarget);\r\n };\r\n\r\n const menuId = \"primary-search-account-menu\";\r\n const renderMenu = (\r\n <Menu\r\n anchorEl={anchorEl}\r\n anchorOrigin={{ vertical: \"top\", horizontal: \"right\" }}\r\n id={menuId}\r\n keepMounted\r\n transformOrigin={{ vertical: \"top\", horizontal: \"right\" }}\r\n open={isMenuOpen}\r\n onClose={handleMenuClose}\r\n ></Menu>\r\n );\r\n\r\n const navItemStyle = {\r\n textTransform: \"capitalize\",\r\n padding: \"0 30px\",\r\n fontFamily: \"Montserrat\",\r\n fontSize: \"16px\",\r\n fontWidth: \"medium\",\r\n letterSpacing: \"2px\",\r\n };\r\n const btnStyle = {\r\n textTransform: \"capitalize\",\r\n color: \"#000\",\r\n background: \"#F9A51A\",\r\n padding: \"7px 28px\",\r\n marginLeft: \"25px\",\r\n fontFamily: \"Montserrat\",\r\n fontSize: \"16px\",\r\n fontWidth: \"medium\",\r\n letterSpacing: \"2px\",\r\n };\r\n\r\n const mobileMenuId = \"primary-search-account-menu-mobile\";\r\n const renderMobileMenu = (\r\n <Menu\r\n anchorEl={mobileMoreAnchorEl}\r\n anchorOrigin={{ vertical: \"top\", horizontal: \"right\" }}\r\n id={mobileMenuId}\r\n keepMounted\r\n transformOrigin={{ vertical: \"top\", horizontal: \"right\" }}\r\n open={isMobileMenuOpen}\r\n onClose={handleMobileMenuClose}\r\n >\r\n <Link to=\"/login\">\r\n <Button style={btnStyle}>Login</Button>\r\n </Link>\r\n </Menu>\r\n );\r\n const [userLogged, setUserLogged] = useContext(userContext);\r\n\r\n const handleLogOut = () => {\r\n window.location.reload(\"Refresh\");\r\n };\r\n\r\n return (\r\n <div className={classes.grow}>\r\n <Container>\r\n <AppBar\r\n style={{ backgroundColor: \"transparent\", boxShadow: \"none\" }}\r\n position=\"static\"\r\n >\r\n <Toolbar style={{ margin: \"25px 0\" }}>\r\n <Link to=\"/\">\r\n <img\r\n className=\"site-logo\"\r\n src={props.logo ? props.logo : logo}\r\n alt=\"logo\"\r\n />\r\n </Link>\r\n <div className={classes.search}>\r\n <div className={classes.searchIcon}>\r\n <SearchIcon />\r\n </div>\r\n <InputBase\r\n placeholder=\"Search…\"\r\n classes={{\r\n root: classes.inputRoot,\r\n input: classes.inputInput,\r\n }}\r\n inputProps={{ \"aria-label\": \"search\" }}\r\n />\r\n </div>\r\n <div className={classes.grow} />\r\n <div className={classes.sectionDesktop}>\r\n <Button style={navItemStyle} color={navItemColor}>\r\n News\r\n </Button>\r\n <Button style={navItemStyle} color={navItemColor}>\r\n Description\r\n </Button>\r\n <Button style={navItemStyle} color={navItemColor}>\r\n Blog\r\n </Button>\r\n <Button style={navItemStyle} color={navItemColor}>\r\n Contact\r\n </Button>\r\n\r\n {userLogged.email ? (\r\n <Link to=\"/login\">\r\n <Button onClick={handleLogOut} style={btnStyle}>\r\n Logout\r\n </Button>\r\n </Link>\r\n ) : (\r\n <Link to=\"/login\">\r\n <Button style={btnStyle}>Login</Button>\r\n </Link>\r\n )}\r\n </div>\r\n <div className={classes.sectionMobile}>\r\n {userLogged.email ? (\r\n <Link to=\"/login\">\r\n <Button onClick={handleLogOut} style={btnStyle}>\r\n Logout\r\n </Button>\r\n </Link>\r\n ) : (\r\n <Link to=\"/login\">\r\n <Button style={btnStyle}>Login</Button>\r\n </Link>\r\n )}\r\n </div>\r\n </Toolbar>\r\n </AppBar>\r\n {renderMobileMenu}\r\n {renderMenu}\r\n </Container>\r\n </div>\r\n );\r\n};\r\n\r\nexport default NavbarSection;\r\n",["71","72"],"C:\\zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz\\6- Travel guru\\travel-guru-finished-project-client\\src\\Components\\Home\\Home.js",[],"C:\\zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz\\6- Travel guru\\travel-guru-finished-project-client\\src\\Components\\BookingForm\\BookingForm.js",["73"],"import React, { useEffect, useState } from \"react\";\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport Typography from \"@material-ui/core/Typography\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\n\r\nimport \"./BookingForm.css\";\r\nimport { useHistory, useParams } from \"react-router-dom\";\r\nimport { Container } from \"@material-ui/core\";\r\n\r\n// start material ui useStyles\r\nconst useStyles = makeStyles((theme) => ({\r\n container: {\r\n display: \"grid\",\r\n gridTemplateColumns: \"repeat(12, 1fr)\",\r\n },\r\n gridRoot: {\r\n padding: \"10px 0\",\r\n [theme.breakpoints.up(\"lg\")]: {\r\n padding: \"100px 0\",\r\n },\r\n },\r\n root: {\r\n textAlign: \"center\",\r\n [theme.breakpoints.up(\"lg\")]: {\r\n textAlign: \"inherit\",\r\n },\r\n },\r\n h1: {\r\n color: \"#fff\",\r\n fontFamily: \"Bebas Neue\",\r\n marginBottom: \"0\",\r\n fontSize: \"4rem\",\r\n [theme.breakpoints.up(\"lg\")]: {\r\n fontSize: \"6rem\",\r\n },\r\n },\r\n body1: {\r\n color: \"#fff\",\r\n fontFamily: \"Montserrat\",\r\n fontSize: \"16px\",\r\n fontWidth: \"medium\",\r\n marginBottom: \"3rem\",\r\n marginRight: \"2rem\",\r\n marginLeft: \"2rem\",\r\n [theme.breakpoints.up(\"lg\")]: {\r\n marginLeft: \"0\",\r\n },\r\n },\r\n}));\r\n// end material ui useStyles\r\n\r\nconst BookingForm = () => {\r\n // get id by url\r\n const { id } = useParams();\r\n\r\n // history hook\r\n let his = useHistory();\r\n\r\n // set and get siderData\r\n const [sliderData, setSliderData] = useState();\r\n\r\n // set and get slider currentData\r\n const [currentData, setCurrentData] = useState();\r\n\r\n useEffect(() => {\r\n // change title\r\n document.title = \"Taravel Guru | Booking From\";\r\n\r\n // fetch slider data\r\n fetch(\"https://sufian111.github.io/travel-guru-api/data.json\")\r\n .then((res) => res.json())\r\n .then((data) => setSliderData(data))\r\n .catch((er) => console.log(er));\r\n\r\n if (sliderData) {\r\n let getCurrentData = sliderData.filter((v) => v.id == id)[0];\r\n setCurrentData(getCurrentData);\r\n }\r\n }, [sliderData, id, currentData]);\r\n\r\n // form onsubmit event\r\n const formHendaler = (e) => {\r\n e.preventDefault();\r\n his.push(`/location/${id}`);\r\n };\r\n\r\n const classes = useStyles();\r\n\r\n // buttoun style\r\n const btnStyle = {\r\n textTransform: \"capitalize\",\r\n color: \"#000\",\r\n background: \"#F9A51A\",\r\n padding: \"15px 12px\",\r\n fontFamily: \"Montserrat\",\r\n fontSize: \"16px\",\r\n fontWidth: \"medium\",\r\n letterSpacing: \"2px\",\r\n cursor: \"pointer\",\r\n };\r\n\r\n // return bookingForm component\r\n return (\r\n <div className={classes.gridRoot}>\r\n <Container maxWidth=\"lg\">\r\n <Grid container spacing={0}>\r\n <Grid item lg={6} xs={12}>\r\n <div className={classes.root}>\r\n <Typography\r\n className={classes.h1}\r\n variant=\"h1\"\r\n component=\"h2\"\r\n gutterBottom\r\n >\r\n {currentData ? currentData.title : \"loading\"}\r\n </Typography>\r\n <Typography\r\n className={classes.body1}\r\n variant=\"body1\"\r\n gutterBottom\r\n >\r\n {currentData ? currentData.description : \"loading\"}\r\n </Typography>\r\n </div>\r\n </Grid>\r\n\r\n <Grid item lg={6} xs={12}>\r\n <div className=\"form-box\">\r\n <form onSubmit={formHendaler}>\r\n <label htmlFor=\"origin\">Origin</label>\r\n <input type=\"text\" id=\"origin\" defaultValue=\"Dhaka\" />\r\n\r\n <label htmlFor=\"destination\">Destination</label>\r\n <input\r\n type=\"text\"\r\n id=\"destination\"\r\n defaultValue={currentData ? currentData.title : \"\"}\r\n />\r\n\r\n <Grid container spacing={1}>\r\n <Grid item lg={6} xs={12}>\r\n <label htmlFor=\"form\">Form</label>\r\n <input type=\"date\" id=\"form\" />\r\n </Grid>\r\n <Grid item lg={6} xs={12}>\r\n <label htmlFor=\"to\">To</label>\r\n <input type=\"date\" defaultValue=\"9/21\" id=\"to\" />\r\n </Grid>\r\n </Grid>\r\n\r\n <input style={btnStyle} type=\"submit\" value=\"Start Booking\" />\r\n </form>\r\n </div>\r\n </Grid>\r\n </Grid>\r\n </Container>\r\n </div>\r\n );\r\n};\r\n\r\nexport default BookingForm;\r\n","C:\\zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz\\6- Travel guru\\travel-guru-finished-project-client\\src\\Components\\Login\\Login.js",[],"C:\\zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz\\6- Travel guru\\travel-guru-finished-project-client\\src\\Components\\SignUp\\SignUp.js",["74"],"import React, { useContext, useEffect, useState } from \"react\";\r\nimport TextField from \"@material-ui/core/TextField\";\r\nimport LinearProgress from \"@material-ui/core/LinearProgress\";\r\nimport \"./SignUp.css\";\r\nimport { Link, useHistory, useLocation } from \"react-router-dom\";\r\nimport firebase from \"firebase/app\";\r\nimport \"firebase/auth\";\r\nimport \"firebase/firestore\";\r\n\r\nimport { MassegeContext, userContext } from \"../../App\";\r\nimport firebaseConfig from \"../Login/FirebaseConfig\";\r\n\r\n// firebase initialize\r\nif (firebase.apps.length === 0) {\r\n firebase.initializeApp(firebaseConfig);\r\n}\r\nconst SignUp = () => {\r\n // change title\r\n useEffect(() => {\r\n document.title = \"Taravel Guru | Sign Up\";\r\n });\r\n\r\n // show and hide preloading state\r\n const [loading, setLoading] = useState(false);\r\n\r\n // history hook\r\n const history = useHistory();\r\n\r\n // location hook\r\n const location = useLocation();\r\n\r\n // signup success message set by context api\r\n\r\n // user login set by context api\r\n const setUserLogged = useContext(userContext)[1];\r\n\r\n // login after location set\r\n let { from } = location.state || { from: { pathname: \"/\" } };\r\n\r\n // input error megggage set and get state\r\n const [inputErrorMassege, setInputErrorMassege] = useState({\r\n fnameError: \"\",\r\n lnameError: \"\",\r\n emailError: \"\",\r\n passwordError: \"\",\r\n cpasswordError: \"\",\r\n Error: \"\",\r\n });\r\n\r\n // input data set and get state\r\n const [inputData, setInputData] = useState({\r\n fname: \"\",\r\n lname: \"\",\r\n email: \"\",\r\n password: \"\",\r\n cpassword: \"\",\r\n });\r\n\r\n // input on blur event\r\n const onBlurHendaler = (e) => {\r\n let name = e.target.name;\r\n let value = e.target.value;\r\n\r\n // Start Form validation\r\n if (name === \"fname\") {\r\n value === \"\"\r\n ? setInputErrorMassege({\r\n ...inputErrorMassege,\r\n fnameError: \"Please provide your First name !\",\r\n })\r\n : setInputErrorMassege({ ...inputErrorMassege, fnameError: \"\" });\r\n setInputData({ ...inputData, fname: value });\r\n }\r\n if (name === \"lname\") {\r\n value === \"\"\r\n ? setInputErrorMassege({\r\n ...inputErrorMassege,\r\n lnameError: \"Please provide your Lirst name !\",\r\n })\r\n : setInputErrorMassege({ ...inputErrorMassege, lnameError: \"\" });\r\n setInputData({ ...inputData, lname: value });\r\n }\r\n if (name === \"email\") {\r\n if (value === \"\") {\r\n setInputErrorMassege({\r\n ...inputErrorMassege,\r\n emailError: \"Please provide your Email !\",\r\n });\r\n } else if (/(.+)@(.+){2,}\\.(.+){2,}/.test(value)) {\r\n setInputErrorMassege({ ...inputErrorMassege, emailError: \"\" });\r\n setInputData({ ...inputData, email: value });\r\n } else {\r\n setInputErrorMassege({\r\n ...inputErrorMassege,\r\n emailError: \"Please enter correct email ID !\",\r\n });\r\n }\r\n }\r\n if (name === \"password\") {\r\n if (value === \"\") {\r\n setInputErrorMassege({\r\n ...inputErrorMassege,\r\n passwordError: \"Please provide Password !\",\r\n });\r\n } else if (value.length < 8) {\r\n setInputErrorMassege({\r\n ...inputErrorMassege,\r\n passwordError: \"Password Minimum 8 characters !\",\r\n });\r\n } else {\r\n setInputErrorMassege({ ...inputErrorMassege, passwordError: \"\" });\r\n setInputData({ ...inputData, password: value });\r\n }\r\n }\r\n if (name === \"cpassword\") {\r\n value === inputData.password\r\n ? setInputErrorMassege({ ...inputErrorMassege, cpasswordError: \"\" })\r\n : setInputErrorMassege({\r\n ...inputErrorMassege,\r\n cpasswordError:\r\n \"Your password and confirmation password do not match !\",\r\n });\r\n setInputData({ ...inputData, cpassword: value });\r\n }\r\n };\r\n\r\n // form on submit event\r\n const formHendaler = (e) => {\r\n e.preventDefault();\r\n\r\n let fname = inputData.fname;\r\n let lname = inputData.lname;\r\n let email = inputData.email;\r\n let password = inputData.password;\r\n let cpassword = inputData.cpassword;\r\n\r\n if (\r\n fname !== \"\" &&\r\n lname !== \"\" &&\r\n email !== \"\" &&\r\n password !== \"\" &&\r\n password === cpassword\r\n ) {\r\n setLoading(true);\r\n e.target.reset();\r\n firebase\r\n .auth()\r\n .createUserWithEmailAndPassword(email, password)\r\n .then(() => {\r\n const user = firebase.auth().currentUser;\r\n\r\n user\r\n .updateProfile({\r\n displayName: fname + \" \" + lname,\r\n })\r\n .then(() => {\r\n setLoading(false);\r\n history.push(\"/login\");\r\n console.log(\"Account create Successfully, please Login now.\");\r\n });\r\n })\r\n .catch((error) => {\r\n setLoading(false);\r\n var errorMessage = error.message;\r\n setInputErrorMassege({ ...inputErrorMassege, Error: errorMessage });\r\n });\r\n } else {\r\n setInputErrorMassege({\r\n ...inputErrorMassege,\r\n Error: \"Something Wrong Please Try Again !\",\r\n });\r\n }\r\n };\r\n\r\n // Google Login\r\n\r\n const loginGoogle = () => {\r\n const provider = new firebase.auth.GoogleAuthProvider();\r\n firebase\r\n .auth()\r\n .signInWithPopup(provider)\r\n .then((res) => {\r\n setUserLogged({ email: res.user.email, name: res.user.displayName });\r\n history.replace(from);\r\n })\r\n .catch((error) => {\r\n setInputErrorMassege({ ...inputErrorMassege, Error: error.message });\r\n });\r\n };\r\n\r\n // Facebook Login\r\n\r\n const loginFacebook = () => {\r\n const provider = new firebase.auth.FacebookAuthProvider();\r\n firebase\r\n .auth()\r\n .signInWithPopup(provider)\r\n .then((res) => {\r\n setUserLogged({ email: res.user.email, name: res.user.displayName });\r\n history.replace(from);\r\n })\r\n .catch((error) => {\r\n setInputErrorMassege({ ...inputErrorMassege, Error: error.message });\r\n });\r\n };\r\n\r\n // button stayle\r\n const btnStyle = {\r\n color: \"rgb(0, 0, 0)\",\r\n background: \"rgb(249, 165, 26)\",\r\n padding: \"17px 28px\",\r\n fontFamily: \"Montserrat\",\r\n fontSize: \"16px\",\r\n letterSpacing: \"2px\",\r\n border: \"0\",\r\n outline: \"0\",\r\n display: \"block\",\r\n width: \"100%\",\r\n cursor: \"pointer\",\r\n margin: \"10px 0\",\r\n borderRadius: \"5px\",\r\n };\r\n\r\n // return signup component\r\n return (\r\n <>\r\n <div className=\"form-signup\">\r\n <form onSubmit={formHendaler}>\r\n <h4>Create an account</h4>\r\n <TextField\r\n name=\"fname\"\r\n className={inputErrorMassege.fnameError && \"error\"}\r\n onBlur={onBlurHendaler}\r\n id=\"fname\"\r\n label=\"First Name\"\r\n required\r\n />\r\n <b style={{ color: \"red\" }}>{inputErrorMassege.fnameError}</b>\r\n <TextField\r\n name=\"lname\"\r\n className={inputErrorMassege.lnameError && \"error\"}\r\n onBlur={onBlurHendaler}\r\n id=\"lname\"\r\n label=\"Last Name\"\r\n required\r\n />\r\n <b style={{ color: \"red\" }}>{inputErrorMassege.lnameError}</b>\r\n <TextField\r\n type=\"email\"\r\n className={inputErrorMassege.emailError && \"error\"}\r\n onBlur={onBlurHendaler}\r\n name=\"email\"\r\n id=\"email\"\r\n label=\"Email\"\r\n required\r\n />\r\n <b style={{ color: \"red\" }}>{inputErrorMassege.emailError}</b>\r\n <TextField\r\n type=\"password\"\r\n className={inputErrorMassege.passwordError && \"error\"}\r\n onBlur={onBlurHendaler}\r\n name=\"password\"\r\n id=\"password\"\r\n label=\"Password\"\r\n required\r\n />\r\n <b style={{ color: \"red\" }}>{inputErrorMassege.passwordError}</b>\r\n <TextField\r\n type=\"password\"\r\n onBlur={onBlurHendaler}\r\n name=\"cpassword\"\r\n id=\"cpassword\"\r\n label=\"Confrim Password\"\r\n required\r\n />\r\n <b style={{ color: \"red\" }}>{inputErrorMassege.cpasswordError}</b>\r\n <input style={btnStyle} type=\"submit\" value=\"Create an account\" />\r\n <b style={{ color: \"red\" }}>{inputErrorMassege.Error}</b>\r\n\r\n {loading && <LinearProgress />}\r\n\r\n <div style={{ textAlign: \"center\" }}>\r\n <span>Already have an account? </span>\r\n <Link to=\"/login\" style={{ color: \"rgb(249, 165, 26)\" }}>\r\n Login\r\n </Link>\r\n </div>\r\n </form>\r\n </div>\r\n <div className=\"or\"></div>\r\n <div style={{ paddingBottom: \"50px\" }}>\r\n <div onClick={loginFacebook} className=\"facebook\">\r\n Continue with Facebook\r\n </div>\r\n <div onClick={loginGoogle} className=\"google\">\r\n Continue with Google\r\n </div>\r\n </div>\r\n </>\r\n );\r\n};\r\n\r\nexport default SignUp;\r\n","C:\\zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz\\6- Travel guru\\travel-guru-finished-project-client\\src\\Components\\Location\\Location.js",["75"],"import React, { useEffect, useState } from \"react\";\r\nimport Grid from \"@material-ui/core/Grid\";\r\nimport { Container } from \"@material-ui/core\";\r\n\r\nimport { useParams } from \"react-router-dom\";\r\nimport \"./Location.css\";\r\nimport image1 from \"../../Image/Rectangle 26.png\";\r\nimport image2 from \"../../Image/Rectangle 27.png\";\r\nimport image3 from \"../../Image/Rectangle 28.png\";\r\nimport Card from \"./Card\";\r\n\r\nconst Location = () => {\r\n // get id by url\r\n const { id } = useParams();\r\n\r\n // set and get slider data state\r\n const [sliderData, setSliderData] = useState();\r\n\r\n // set and get slider current data state\r\n const [currentData, setCurrentData] = useState();\r\n\r\n useEffect(() => {\r\n // change title\r\n document.title = \"Taravel Guru | Location\";\r\n\r\n // fetch slider data\r\n fetch(\"https://mehidi-me.github.io/travel-guru-api/slider-data.json\")\r\n .then((res) => res.json())\r\n .then((data) => setSliderData(data))\r\n .catch((er) => console.log(er));\r\n\r\n if (sliderData) {\r\n let getCurrentData = sliderData.filter((v) => v.id == id)[0];\r\n setCurrentData(getCurrentData);\r\n }\r\n }, [sliderData, id, currentData]);\r\n\r\n // return location component\r\n return (\r\n <div>\r\n <Container maxWidth=\"lg\">\r\n <Grid container spacing={0}>\r\n <Grid item lg={7} xs={12}>\r\n <div className=\"heading\">\r\n <p>252 stays Apr 13-17 3 guests</p>\r\n <h4>Stay in {currentData ? currentData.title : \"loading\"}</h4>\r\n </div>\r\n\r\n <Card\r\n image={image1}\r\n title=\"Light bright airy stylish apt & safe \r\npeaceful stay\"\r\n />\r\n <Card image={image2} title=\"Apartment in Lost Panorama\" />\r\n <Card image={image3} title=\"AR Lounge & Pool (r&r + b&b)\" />\r\n </Grid>\r\n </Grid>\r\n </Container>\r\n </div>\r\n );\r\n};\r\n\r\nexport default Location;\r\n","C:\\zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz\\6- Travel guru\\travel-guru-finished-project-client\\src\\Components\\Location\\Card.js",[],"C:\\zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz\\6- Travel guru\\travel-guru-finished-project-client\\src\\Components\\Login\\PrivateRoute.js",["76"],"C:\\zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz\\6- Travel guru\\travel-guru-finished-project-client\\src\\Components\\Login\\FirebaseConfig.js",[],"C:\\zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz\\6- Travel guru\\travel-guru-finished-project-client\\src\\index.js",[],{"ruleId":"77","severity":1,"message":"78","line":3,"column":50,"nodeType":"79","messageId":"80","endLine":3,"endColumn":54},{"ruleId":"81","replacedBy":"82"},{"ruleId":"83","replacedBy":"84"},{"ruleId":"77","severity":1,"message":"85","line":5,"column":8,"nodeType":"79","messageId":"80","endLine":5,"endColumn":18},{"ruleId":"77","severity":1,"message":"86","line":6,"column":8,"nodeType":"79","messageId":"80","endLine":6,"endColumn":18},{"ruleId":"77","severity":1,"message":"87","line":8,"column":8,"nodeType":"79","messageId":"80","endLine":8,"endColumn":13},{"ruleId":"77","severity":1,"message":"88","line":9,"column":8,"nodeType":"79","messageId":"80","endLine":9,"endColumn":16},{"ruleId":"77","severity":1,"message":"89","line":11,"column":8,"nodeType":"79","messageId":"80","endLine":11,"endColumn":16},{"ruleId":"77","severity":1,"message":"90","line":13,"column":8,"nodeType":"79","messageId":"80","endLine":13,"endColumn":21},{"ruleId":"77","severity":1,"message":"91","line":14,"column":8,"nodeType":"79","messageId":"80","endLine":14,"endColumn":16},{"ruleId":"77","severity":1,"message":"92","line":16,"column":8,"nodeType":"79","messageId":"80","endLine":16,"endColumn":16},{"ruleId":"77","severity":1,"message":"93","line":95,"column":9,"nodeType":"79","messageId":"80","endLine":95,"endColumn":30},{"ruleId":"77","severity":1,"message":"94","line":108,"column":9,"nodeType":"79","messageId":"80","endLine":108,"endColumn":29},{"ruleId":"77","severity":1,"message":"95","line":161,"column":22,"nodeType":"79","messageId":"80","endLine":161,"endColumn":35},{"ruleId":"81","replacedBy":"96"},{"ruleId":"83","replacedBy":"97"},{"ruleId":"98","severity":1,"message":"99","line":76,"column":58,"nodeType":"100","messageId":"101","endLine":76,"endColumn":60},{"ruleId":"77","severity":1,"message":"102","line":10,"column":10,"nodeType":"79","messageId":"80","endLine":10,"endColumn":24},{"ruleId":"98","severity":1,"message":"99","line":33,"column":58,"nodeType":"100","messageId":"101","endLine":33,"endColumn":60},{"ruleId":"77","severity":1,"message":"95","line":6,"column":22,"nodeType":"79","messageId":"80","endLine":6,"endColumn":35},"no-unused-vars","'Link' is defined but never used.","Identifier","unusedVar","no-native-reassign",["103"],"no-negated-in-lhs",["104"],"'IconButton' is defined but never used.","'Typography' is defined but never used.","'Badge' is defined but never used.","'MenuItem' is defined but never used.","'MenuIcon' is defined but never used.","'AccountCircle' is defined but never used.","'MailIcon' is defined but never used.","'MoreIcon' is defined but never used.","'handleProfileMenuOpen' is assigned a value but never used.","'handleMobileMenuOpen' is assigned a value but never used.","'setUserLogged' is assigned a value but never used.",["103"],["104"],"eqeqeq","Expected '===' and instead saw '=='.","BinaryExpression","unexpected","'MassegeContext' is defined but never used.","no-global-assign","no-unsafe-negation"]