-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintcache
1 lines (1 loc) · 55.1 KB
/
.eslintcache
1
[{"C:\\Users\\Rashitha\\Documents\\GitHub\\Train-Ticketing-System\\src\\index.js":"1","C:\\Users\\Rashitha\\Documents\\GitHub\\Train-Ticketing-System\\src\\components\\App.js":"2","C:\\Users\\Rashitha\\Documents\\GitHub\\Train-Ticketing-System\\src\\components\\NotFound.js":"3","C:\\Users\\Rashitha\\Documents\\GitHub\\Train-Ticketing-System\\src\\components\\home\\Home.js":"4","C:\\Users\\Rashitha\\Documents\\GitHub\\Train-Ticketing-System\\src\\components\\header\\Header.js":"5","C:\\Users\\Rashitha\\Documents\\GitHub\\Train-Ticketing-System\\src\\components\\about\\About.js":"6","C:\\Users\\Rashitha\\Documents\\GitHub\\Train-Ticketing-System\\src\\components\\auth\\PrivateRoute.js":"7","C:\\Users\\Rashitha\\Documents\\GitHub\\Train-Ticketing-System\\src\\components\\auth\\AuthMain.js":"8","C:\\Users\\Rashitha\\Documents\\GitHub\\Train-Ticketing-System\\src\\components\\review\\Review.js":"9","C:\\Users\\Rashitha\\Documents\\GitHub\\Train-Ticketing-System\\src\\components\\Destinations\\Destination.js":"10","C:\\Users\\Rashitha\\Documents\\GitHub\\Train-Ticketing-System\\src\\components\\profile\\Profile.js":"11","C:\\Users\\Rashitha\\Documents\\GitHub\\Train-Ticketing-System\\src\\components\\Landing\\Landing.js":"12","C:\\Users\\Rashitha\\Documents\\GitHub\\Train-Ticketing-System\\src\\contexts\\AuthContext.js":"13","C:\\Users\\Rashitha\\Documents\\GitHub\\Train-Ticketing-System\\src\\components\\cart\\Cart.js":"14","C:\\Users\\Rashitha\\Documents\\GitHub\\Train-Ticketing-System\\src\\firebase.js":"15","C:\\Users\\Rashitha\\Documents\\GitHub\\Train-Ticketing-System\\src\\components\\auth\\Signup.js":"16","C:\\Users\\Rashitha\\Documents\\GitHub\\Train-Ticketing-System\\src\\components\\auth\\Signin.js":"17","C:\\Users\\Rashitha\\Documents\\GitHub\\Train-Ticketing-System\\src\\components\\cart\\Orders.js":"18","C:\\Users\\Rashitha\\Documents\\GitHub\\Train-Ticketing-System\\src\\components\\cart\\Payment.js":"19"},{"size":320,"mtime":1611575109941,"results":"20","hashOfConfig":"21"},{"size":1779,"mtime":1612078657559,"results":"22","hashOfConfig":"21"},{"size":22297,"mtime":1611575109828,"results":"23","hashOfConfig":"21"},{"size":11562,"mtime":1612082607476,"results":"24","hashOfConfig":"21"},{"size":3293,"mtime":1612082607475,"results":"25","hashOfConfig":"21"},{"size":2235,"mtime":1611575109831,"results":"26","hashOfConfig":"21"},{"size":455,"mtime":1611915263564,"results":"27","hashOfConfig":"21"},{"size":795,"mtime":1611915263559,"results":"28","hashOfConfig":"21"},{"size":3100,"mtime":1612060539248,"results":"29","hashOfConfig":"21"},{"size":1033,"mtime":1612082607473,"results":"30","hashOfConfig":"21"},{"size":10627,"mtime":1612079134021,"results":"31","hashOfConfig":"21"},{"size":1115,"mtime":1611915263553,"results":"32","hashOfConfig":"21"},{"size":1039,"mtime":1611575109935,"results":"33","hashOfConfig":"21"},{"size":515,"mtime":1612078657561,"results":"34","hashOfConfig":"21"},{"size":644,"mtime":1612060539248,"results":"35","hashOfConfig":"21"},{"size":3254,"mtime":1612060539245,"results":"36","hashOfConfig":"21"},{"size":2189,"mtime":1612060539244,"results":"37","hashOfConfig":"21"},{"size":2207,"mtime":1612084486081,"results":"38","hashOfConfig":"21"},{"size":5716,"mtime":1612084486083,"results":"39","hashOfConfig":"21"},{"filePath":"40","messages":"41","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"42"},"11nrq4s",{"filePath":"43","messages":"44","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"42"},{"filePath":"45","messages":"46","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"42"},{"filePath":"47","messages":"48","errorCount":0,"warningCount":6,"fixableErrorCount":0,"fixableWarningCount":0,"source":"49","usedDeprecatedRules":"42"},{"filePath":"50","messages":"51","errorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":"52","usedDeprecatedRules":"42"},{"filePath":"53","messages":"54","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"42"},{"filePath":"55","messages":"56","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"42"},{"filePath":"57","messages":"58","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"42"},{"filePath":"59","messages":"60","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"61","usedDeprecatedRules":"42"},{"filePath":"62","messages":"63","errorCount":0,"warningCount":3,"fixableErrorCount":0,"fixableWarningCount":0,"source":"64","usedDeprecatedRules":"42"},{"filePath":"65","messages":"66","errorCount":0,"warningCount":9,"fixableErrorCount":0,"fixableWarningCount":0,"source":"67","usedDeprecatedRules":"42"},{"filePath":"68","messages":"69","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"42"},{"filePath":"70","messages":"71","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"42"},{"filePath":"72","messages":"73","errorCount":0,"warningCount":8,"fixableErrorCount":0,"fixableWarningCount":0,"source":"74","usedDeprecatedRules":"42"},{"filePath":"75","messages":"76","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"42"},{"filePath":"77","messages":"78","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"42"},{"filePath":"79","messages":"80","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"42"},{"filePath":"81","messages":"82","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"83","usedDeprecatedRules":"42"},{"filePath":"84","messages":"85","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"86","usedDeprecatedRules":"87"},"C:\\Users\\Rashitha\\Documents\\GitHub\\Train-Ticketing-System\\src\\index.js",[],["88","89"],"C:\\Users\\Rashitha\\Documents\\GitHub\\Train-Ticketing-System\\src\\components\\App.js",[],"C:\\Users\\Rashitha\\Documents\\GitHub\\Train-Ticketing-System\\src\\components\\NotFound.js",[],"C:\\Users\\Rashitha\\Documents\\GitHub\\Train-Ticketing-System\\src\\components\\home\\Home.js",["90","91","92","93","94","95"],"import React, { useState, useEffect, useRef } from \"react\";\r\nimport {\r\n Form,\r\n Container,\r\n Accordion,\r\n Card,\r\n Row,\r\n Col,\r\n Button,\r\n CardColumns,\r\n} from \"react-bootstrap\";\r\nimport { db } from \"../../firebase\";\r\nimport DatePicker from \"react-datepicker\";\r\nimport SearchIcon from \"@material-ui/icons/Search\";\r\nimport \"react-datepicker/dist/react-datepicker.css\";\r\nimport { useSpring, animated } from \"react-spring\";\r\nimport \"./Home.css\";\r\nimport firebase from \"firebase/app\";\r\n\r\nfunction Home() {\r\n const [schedules, setSchedules] = useState([]);\r\n const [loading, setLoading] = useState(false);\r\n const [startDate, setStartDate] = useState(new Date());\r\n const [endDate, setEndDate] = useState(null);\r\n const [stations, setStations] = useState([]);\r\n const [fromCity, setFromCity] = useState(\"\");\r\n const [toCity, setToCity] = useState(\"\");\r\n const [cartItems, setCartItems] = useState([]);\r\n\r\n const searchNameRef = useRef();\r\n const fromStationRef = useRef();\r\n const toStationRef = useRef();\r\n\r\n const [state, toggle] = useState(true);\r\n const { x } = useSpring({\r\n from: { x: 0 },\r\n x: state ? 1 : 0,\r\n config: { duration: 1000 },\r\n });\r\n\r\n const onChange = (dates) => {\r\n const [start, end] = dates;\r\n setStartDate(start);\r\n setEndDate(end);\r\n };\r\n\r\n const ref = db.collection(\"TrainSchdule\");\r\n const Stations = db.collection(\"stations\");\r\n\r\n // async function getSchedules() {\r\n // setLoading(true);\r\n // await ref.limit(6).onSnapshot((querySnapshot) => {\r\n // const items = [];\r\n // querySnapshot.forEach((doc) => {\r\n // items.push(doc.data());\r\n // });\r\n // console.log(items);\r\n // setSchedules(items);\r\n // setLoading(false);\r\n // });\r\n // }\r\n\r\n // change of fetch data from Firestore to get once\r\n async function getSchedules() {\r\n setLoading(true);\r\n await ref\r\n .limit(6)\r\n .get()\r\n .then((item) => {\r\n const items = item.docs.map((doc) => doc.data());\r\n setSchedules(items);\r\n //console.log(items);\r\n setLoading(false);\r\n });\r\n }\r\n\r\n // async function fetchStations() {\r\n // setLoading(true);\r\n // await Stations.limit(6)\r\n // .orderBy(\"name\")\r\n // .onSnapshot((querySnapshot) => {\r\n // const items = [];\r\n // querySnapshot.forEach((doc) => {\r\n // items.push(doc.data());\r\n // });\r\n // setStations(items);\r\n // setLoading(false);\r\n // console.log(items);\r\n // });\r\n // }\r\n\r\n // change of fetch data from Firestore to get once\r\n async function fetchStations() {\r\n setLoading(true);\r\n await Stations.limit(4)\r\n .orderBy(\"name\")\r\n .get()\r\n .then((item) => {\r\n const items = item.docs.map((doc) => doc.data());\r\n setStations(items);\r\n //console.log(items);\r\n setLoading(false);\r\n });\r\n }\r\n\r\n // async function handleSearch(e) {\r\n // await ref\r\n // .where(\"StartStation\", \"==\", searchNameRef.current.value)\r\n // .limit(12)\r\n // .onSnapshot((querySnapshot) => {\r\n // const items = [];\r\n // querySnapshot.forEach((doc) => {\r\n // items.push(doc.data());\r\n // });\r\n // console.log(items);\r\n // setSchedules(items);\r\n // setLoading(false);\r\n // });\r\n // }\r\n\r\n async function handleFromSearch(e) {\r\n e.preventDefault();\r\n\r\n if (toCity == \"\") {\r\n await ref\r\n .where(\"StartStation\", \"==\", fromStationRef.current.value)\r\n .limit(6)\r\n .onSnapshot((querySnapshot) => {\r\n const items = [];\r\n querySnapshot.forEach((doc) => {\r\n items.push(doc.data());\r\n });\r\n console.log(items);\r\n setSchedules(items);\r\n setFromCity(fromStationRef.current.value);\r\n setLoading(false);\r\n });\r\n } else {\r\n await ref\r\n .where(\"StartStation\", \"==\", fromStationRef.current.value)\r\n .where(\"EndStation\", \"==\", toCity)\r\n .limit(6)\r\n .onSnapshot((querySnapshot) => {\r\n const items = [];\r\n querySnapshot.forEach((doc) => {\r\n items.push(doc.data());\r\n });\r\n console.log(items);\r\n setSchedules(items);\r\n setLoading(false);\r\n });\r\n }\r\n\r\n console.log(fromCity);\r\n //console.log(searchItem);\r\n }\r\n\r\n async function handleToSearch(e) {\r\n e.preventDefault();\r\n\r\n //setFromCity(fromStationRef.current.value);\r\n if (fromCity == \"\") {\r\n await ref\r\n .where(\"EndStation\", \"==\", toStationRef.current.value)\r\n .limit(6)\r\n .onSnapshot((querySnapshot) => {\r\n const items = [];\r\n querySnapshot.forEach((doc) => {\r\n items.push(doc.data());\r\n });\r\n console.log(items);\r\n setSchedules(items);\r\n setToCity(toStationRef.current.value);\r\n setLoading(false);\r\n });\r\n } else {\r\n await ref\r\n .where(\"StartStation\", \"==\", fromCity)\r\n .where(\"EndStation\", \"==\", toStationRef.current.value)\r\n .limit(6)\r\n .onSnapshot((querySnapshot) => {\r\n const items = [];\r\n querySnapshot.forEach((doc) => {\r\n items.push(doc.data());\r\n });\r\n console.log(items);\r\n setSchedules(items);\r\n setLoading(false);\r\n });\r\n }\r\n //console.log(searchItem);\r\n }\r\n\r\n const user = firebase.auth().currentUser;\r\n\r\n function handleClick(train) {\r\n db.collection(\"items\").add({\r\n name: train.TrainName,\r\n amount: train.Amount,\r\n from: train.StartStation,\r\n to: train.EndStation,\r\n added: firebase.firestore.FieldValue.serverTimestamp(),\r\n count: 1,\r\n paid: false,\r\n user: user.uid,\r\n });\r\n console.log(train.id);\r\n }\r\n\r\n useEffect(() => {\r\n getSchedules();\r\n fetchStations();\r\n }, []);\r\n\r\n if (loading) {\r\n return (\r\n <div className=\"loading-screen\">\r\n <h2>Loading Content of Home Page...</h2>\r\n </div>\r\n );\r\n }\r\n\r\n return (\r\n <Container className=\"justify-content-md-center\">\r\n <h2 className=\"topic mt-4\">Plan Your Journey With Us</h2>\r\n <div>\r\n <animated.div\r\n style={{\r\n transform: x\r\n .interpolate({\r\n range: [0, 0.25, 0.35, 0.45, 0.55, 0.65, 0.75, 1],\r\n output: [1, 0.97, 0.9, 1, 1.1, 1.03, 1],\r\n })\r\n .interpolate((x) => `scale(${x})`),\r\n }}\r\n >\r\n <Accordion className=\"mb-4 mt-4 search\">\r\n <Card className=\"search\">\r\n <Accordion.Toggle\r\n onClick={() => toggle(!state)}\r\n as={Card.Header}\r\n eventKey=\"0\"\r\n >\r\n <SearchIcon className=\"search_inputIcon\" />{\" \"}\r\n <b>Let's find you a Train ...</b>\r\n </Accordion.Toggle>\r\n <Accordion.Collapse eventKey=\"0\">\r\n <Card.Body>\r\n <Form>\r\n <Row>\r\n <Col lg={3} className=\"pl-4\">\r\n <Form.Group id=\"date\">\r\n <Form.Label>Date:</Form.Label>\r\n <br />\r\n <DatePicker\r\n className=\"datePicker lg-4\"\r\n selected={startDate}\r\n onChange={onChange}\r\n dateFormat=\"dd-MMM-yyyy\"\r\n startDate={startDate}\r\n endDate={endDate}\r\n minDate={new Date()}\r\n selectsRange\r\n inline\r\n />\r\n </Form.Group>\r\n </Col>\r\n <Col\r\n lg={9}\r\n className=\"justify-content-center center-block\"\r\n >\r\n <Row>\r\n <Col lg={6}>\r\n <Form.Group id=\"from\">\r\n <Form.Label>From:</Form.Label>\r\n <select\r\n class=\"form-control custom-select custom-select-lg mb-3\"\r\n id=\"fromStationSelect\"\r\n ref={fromStationRef}\r\n onChange={handleFromSearch}\r\n >\r\n {stations.map((station) => (\r\n <option\r\n key={station.name}\r\n value={station.name}\r\n >\r\n {station.name}\r\n </option>\r\n ))}\r\n </select>\r\n </Form.Group>\r\n </Col>\r\n <Col lg={6}>\r\n <Form.Group id=\"to\">\r\n <Form.Label>To:</Form.Label>\r\n <select\r\n class=\"form-control custom-select custom-select-lg mb-3\"\r\n id=\"toStationSelect\"\r\n ref={toStationRef}\r\n onChange={handleToSearch}\r\n >\r\n {stations.map((station) => (\r\n <option\r\n key={station.name}\r\n value={station.name}\r\n >\r\n {station.name}\r\n </option>\r\n ))}\r\n </select>\r\n </Form.Group>\r\n </Col>\r\n </Row>\r\n </Col>\r\n </Row>\r\n </Form>\r\n </Card.Body>\r\n </Accordion.Collapse>\r\n </Card>\r\n </Accordion>\r\n </animated.div>\r\n </div>\r\n <div className=\"pt-4\">\r\n <h2 className=\"train-list\">Available Trains for you</h2>\r\n </div>\r\n\r\n <div className=\"justify-content-md-center\">\r\n <CardColumns>\r\n {schedules.map((schedule) => (\r\n <Card\r\n key={schedule.id}\r\n className=\"mt-2 hover-shadow-sm bg-white rounded col-md train-schedule\"\r\n >\r\n <Card.Body>\r\n <Card.Title>{schedule.TrainName}</Card.Title>\r\n <Card.Subtitle className=\"mb-2 text-muted\">\r\n {schedule.StartStation} to {schedule.EndStation}\r\n </Card.Subtitle>\r\n <Card.Text>\r\n Start Time: {schedule.ArrivalStation} hrs\r\n <br />\r\n End Time: {schedule.ArrivalDestination} hrs\r\n <br />\r\n Available Classes: {schedule.Classes}\r\n </Card.Text>\r\n <Button\r\n className=\"btnReserve rounded-pill\"\r\n variant=\"outline-warning\"\r\n onClick={() => handleClick(schedule)}\r\n >\r\n Reserve\r\n </Button>\r\n </Card.Body>\r\n </Card>\r\n ))}\r\n </CardColumns>\r\n </div>\r\n </Container>\r\n );\r\n}\r\n\r\nexport default Home;\r\n","C:\\Users\\Rashitha\\Documents\\GitHub\\Train-Ticketing-System\\src\\components\\header\\Header.js",["96","97"],"import React, { useEffect, useState } from \"react\";\r\nimport { Navbar, Nav } from \"react-bootstrap\";\r\nimport Person from \"@material-ui/icons/Person\";\r\nimport ExploreIcon from \"@material-ui/icons/Explore\";\r\nimport InfoIcon from \"@material-ui/icons/Info\";\r\nimport RateReviewIcon from \"@material-ui/icons/RateReview\";\r\nimport HomeIcon from \"@material-ui/icons/Home\";\r\nimport Tooltip from \"@material-ui/core/Tooltip\";\r\nimport ShoppingCartIcon from \"@material-ui/icons/ShoppingCart\";\r\nimport Badge from \"react-bootstrap/Badge\";\r\nimport { db } from \"../../firebase\";\r\nimport \"./Header.css\";\r\nimport Logo from \"../assets/img/icon.png\";\r\nimport { useAuth } from \"../../contexts/AuthContext\";\r\nimport logo from \"../Images/Navabarcs.png\";\r\n\r\nfunction Header() {\r\n const [cartItems, setCartItems] = useState([]);\r\n const { currentUser } = useAuth();\r\n const cartItemRef = db.collection(\"items\");\r\n\r\n async function getOrderCount() {\r\n await cartItemRef\r\n .where(\"user\", \"==\", currentUser.uid)\r\n .where(\"paid\", \"==\", false)\r\n .limit(5)\r\n .onSnapshot((querySnapshot) => {\r\n const items = [];\r\n querySnapshot.forEach((doc) => {\r\n items.push(doc.data());\r\n });\r\n console.log(items);\r\n setCartItems(items);\r\n });\r\n }\r\n\r\n useEffect(() => {\r\n getOrderCount();\r\n }, []);\r\n\r\n return (\r\n <div className=\"header\">\r\n <Navbar\r\n collapseOnSelect\r\n expand=\"sm\"\r\n variant=\"light\"\r\n className=\"color-nav\"\r\n >\r\n <Navbar.Brand href=\"/\">\r\n <img\r\n alt=\"\"\r\n src={logo}\r\n // width=\"30\"\r\n // height=\"30\"\r\n className=\"d-inline-block align-top head\"\r\n />{\" \"}\r\n Chin-Chin\r\n </Navbar.Brand>\r\n <Navbar.Toggle aria-controls=\"responsive-navbar-nav\" />\r\n <Navbar.Collapse id=\"responsive-navbar-nav\">\r\n <Nav className=\"flex-row ml-auto d-md-flex nav-row\">\r\n <Nav.Link href=\"/home\">\r\n <Tooltip title=\"Home\" aria-label=\"home\">\r\n <HomeIcon />\r\n </Tooltip>\r\n </Nav.Link>\r\n <Nav.Link href=\"/cart\">\r\n <Tooltip title=\"Cart\" aria-label=\"cart\">\r\n <ShoppingCartIcon />\r\n </Tooltip>\r\n <Badge className=\"badge\" pill variant=\"primary\">\r\n {cartItems.length}\r\n </Badge>\r\n </Nav.Link>\r\n <Nav.Link href=\"/review\">\r\n <Tooltip title=\"Reviews\" aria-label=\"review\">\r\n <RateReviewIcon />\r\n </Tooltip>\r\n </Nav.Link>\r\n <Nav.Link href=\"/destination\">\r\n <Tooltip title=\"Destinations\" aria-label=\"destination\">\r\n <ExploreIcon />\r\n </Tooltip>\r\n </Nav.Link>\r\n <Nav.Link href=\"/about\">\r\n <Tooltip title=\"About Us\" aria-label=\"about\">\r\n <InfoIcon />\r\n </Tooltip>\r\n </Nav.Link>\r\n <Nav.Link href=\"/profile\">\r\n <Tooltip title=\"Profile\" aria-label=\"profile\">\r\n <Person />\r\n </Tooltip>\r\n </Nav.Link>\r\n </Nav>\r\n </Navbar.Collapse>\r\n </Navbar>\r\n </div>\r\n );\r\n}\r\n\r\nexport default Header;\r\n","C:\\Users\\Rashitha\\Documents\\GitHub\\Train-Ticketing-System\\src\\components\\about\\About.js",[],"C:\\Users\\Rashitha\\Documents\\GitHub\\Train-Ticketing-System\\src\\components\\auth\\PrivateRoute.js",[],"C:\\Users\\Rashitha\\Documents\\GitHub\\Train-Ticketing-System\\src\\components\\auth\\AuthMain.js",[],"C:\\Users\\Rashitha\\Documents\\GitHub\\Train-Ticketing-System\\src\\components\\review\\Review.js",["98"],"import React, { useEffect, useState } from \"react\";\r\nimport { Avatar } from \"@material-ui/core\";\r\nimport ThumbUpAltOutlinedIcon from \"@material-ui/icons/ThumbUpAltOutlined\";\r\nimport ChatOutlinedIcon from \"@material-ui/icons/ChatOutlined\";\r\nimport ShareOutlinedIcon from \"@material-ui/icons/ShareOutlined\";\r\nimport SearchIcon from \"@material-ui/icons/Search\";\r\nimport ArrowForwardIcon from \"@material-ui/icons/ArrowForward\";\r\nimport { Card, CardColumns } from \"react-bootstrap\";\r\n\r\nimport \"./Review.css\";\r\nimport { db } from \"../../firebase\";\r\n\r\nfunction Review() {\r\n const ref = db.collection(\"Review\");\r\n const [loading, setLoading] = useState(false);\r\n const [Review, setReview] = useState([]);\r\n\r\n function getReview() {\r\n setLoading(true);\r\n ref\r\n .limit(6)\r\n .orderBy(\"posted\", \"desc\")\r\n .onSnapshot((querySnapshot) => {\r\n const items = [];\r\n querySnapshot.forEach((doc) => {\r\n items.push(doc.data());\r\n });\r\n setReview(items);\r\n setLoading(false);\r\n });\r\n }\r\n\r\n useEffect(() => {\r\n getReview();\r\n }, []);\r\n\r\n if (loading) {\r\n return (\r\n <div className=\"loading-screen\">\r\n <h2>Loading Content of Review Page...</h2>\r\n </div>\r\n );\r\n }\r\n\r\n return (\r\n <div className=\"body-review\">\r\n <div className=\"search-body\">\r\n <div className=\"search_input\">\r\n <SearchIcon className=\"search_inputIcon\" />\r\n <input placeholder=\"Review\" />\r\n <ArrowForwardIcon type=\"submit\" className=\"search_inputIcon\" />\r\n </div>\r\n </div>\r\n\r\n <div className=\"justify-content-center\">\r\n <CardColumns className=\"review-list\">\r\n {Review.map((review) => (\r\n <Card\r\n key={review.id}\r\n className=\"mt-2 hover-shadow-sm bg-white rounded col-lg review\"\r\n >\r\n <Card.Body>\r\n <div className=\"review_header\">\r\n <Avatar className=\"profile-pic rounded\" />\r\n <div className=\"review_info\">\r\n <Card.Title className=\"review-title\">\r\n {review.UserName}\r\n </Card.Title>\r\n <Card.Subtitle className=\"review-subtitle\">\r\n {review.position}\r\n </Card.Subtitle>\r\n </div>\r\n </div>\r\n <div className=\"review_body\">\r\n <p>{review.review}</p>\r\n </div>\r\n <div className=\"review_icons\">\r\n <div>\r\n <ThumbUpAltOutlinedIcon className=\"like\" />\r\n Like\r\n </div>\r\n <div>\r\n <ChatOutlinedIcon className=\"chat\" />\r\n Comment\r\n </div>\r\n <div>\r\n <ShareOutlinedIcon className=\"share\" /> Share\r\n </div>\r\n </div>\r\n </Card.Body>\r\n </Card>\r\n ))}\r\n </CardColumns>\r\n </div>\r\n </div>\r\n );\r\n}\r\n\r\nexport default Review;\r\n","C:\\Users\\Rashitha\\Documents\\GitHub\\Train-Ticketing-System\\src\\components\\Destinations\\Destination.js",["99","100","101"],"import React, { useState, useEffect } from \"react\";\r\nimport \"./Destination.css\";\r\nimport { Link } from \"react-router-dom\";\r\nimport { db } from \"../../firebase\";\r\n\r\nfunction Destination() {\r\n const ref = db.collection(\"destinations\");\r\n const [destination, setDestination] = useState([]);\r\n\r\n function getDestination() {\r\n ref.onSnapshot((querySnapshot) => {\r\n const items = [];\r\n querySnapshot.forEach((doc) => {\r\n items.push(doc.data());\r\n });\r\n setDestination(items);\r\n });\r\n }\r\n\r\n useEffect(() => {\r\n getDestination();\r\n }, []);\r\n\r\n return (\r\n <div className=\"row desination-row\">\r\n {destination.map((destination) => (\r\n <a href={destination.destiLink}>\r\n <img className=\"card-wrapper\" src={destination.destiimage} />\r\n <div className=\"destination-topic\">\r\n {\" \"}\r\n <h3>{destination.destiDescription}</h3>\r\n </div>\r\n </a>\r\n ))}\r\n </div>\r\n );\r\n}\r\n\r\nexport default Destination;\r\n","C:\\Users\\Rashitha\\Documents\\GitHub\\Train-Ticketing-System\\src\\components\\profile\\Profile.js",["102","103","104","105","106","107","108","109","110"],"import React, { useState, useEffect, useRef } from \"react\";\r\nimport { useHistory } from \"react-router-dom\";\r\nimport { Button, Alert } from \"react-bootstrap\";\r\nimport personal from \"../Images/PersonalDetails.png\";\r\nimport loginsecurity from \"../Images/LoginandSecurity.png\";\r\nimport reviews from \"../Images/Review.png\";\r\nimport PersonIcon from \"@material-ui/icons/Person\";\r\nimport { useAuth } from \"../../contexts/AuthContext\";\r\nimport Form from \"react-bootstrap/Form\";\r\nimport Modal from \"react-bootstrap/Modal\";\r\nimport ButtonGroup from \"react-bootstrap/ButtonGroup\";\r\nimport UserProfile from \"../Images/userprofile.jpg\";\r\nimport { Image } from \"react-bootstrap\";\r\nimport { db } from \"../../firebase\";\r\nimport \"./Profile.css\";\r\nimport firebase from \"firebase/app\";\r\n\r\nfunction Profile() {\r\n const [error, setError] = useState(\"\");\r\n const { currentUser, signout } = useAuth();\r\n const history = useHistory();\r\n const [PDshow, setPDShow] = useState(false);\r\n const [SDshow, setSDShow] = useState(false);\r\n const [WRshow, setWRShow] = useState(false);\r\n const [Ishow, setIShow] = useState(false);\r\n\r\n const [reviews, setReviews] = useState([]);\r\n const [review, setReview] = useState(\"\");\r\n\r\n const sendReview = (e) => {\r\n e.preventDefault();\r\n\r\n db.collection(\"Review\").add({\r\n UserName: currentUser.displayName,\r\n position: \"Traveller\",\r\n review: review,\r\n posted: firebase.firestore.FieldValue.serverTimestamp(),\r\n });\r\n\r\n setWRShow(false);\r\n };\r\n\r\n const [inquries, setInquries] = useState([]);\r\n const [inquiry, setInquiry] = useState(\"\");\r\n\r\n const sendInquiry = (e) => {\r\n e.preventDefault();\r\n\r\n db.collection(\"Inquiry\").add({\r\n UserName: currentUser.displayName,\r\n Inquiry: inquiry,\r\n posted: firebase.firestore.FieldValue.serverTimestamp(),\r\n });\r\n\r\n setIShow(false);\r\n };\r\n\r\n const PDhandleClose = () => {\r\n setPDShow(false);\r\n };\r\n const PDhandleShow = () => {\r\n setPDShow(true);\r\n };\r\n\r\n const SDhandleClose = () => {\r\n setSDShow(false);\r\n };\r\n const SDhandleShow = () => {\r\n setSDShow(true);\r\n };\r\n\r\n const WRhandleClose = () => {\r\n setWRShow(false);\r\n };\r\n const WRhandleShow = () => {\r\n setWRShow(true);\r\n };\r\n const IhandleClose = () => {\r\n setIShow(false);\r\n };\r\n const IhandleShow = () => {\r\n setIShow(true);\r\n };\r\n\r\n async function handleSignout() {\r\n setError(\"\");\r\n try {\r\n await signout();\r\n history.push(\"/auth/signin\");\r\n } catch {\r\n setError(\"Failed to sign out\");\r\n }\r\n }\r\n\r\n return (\r\n <div>\r\n <h1 className = \"heading_Line\" style={{ textAlign: \"center\", marginTop: \"5%\" }}>\r\n Welcome to your Account\r\n </h1>\r\n\r\n <h4 className = \"tag-line\" style={{ textAlign: \"center\", marginTop: \"2%\" }}>\r\n We are making improvements and introducing new features into user\r\n experience.\r\n </h4>\r\n <Image\r\n src={UserProfile}\r\n className = \"bg-images\"\r\n alt=\"website logo\"\r\n style={{ height: \"auto\", width: \"60%\", marginLeft: \"20%\" }}\r\n />\r\n\r\n <div className=\"dis_user\" style={{ marginTop: \"-40%\" }}>\r\n <div>\r\n <PersonIcon\r\n className=\"user\"\r\n style={{ marginLeft: \"85%\", marginBottom: \"-3%\" }}\r\n />\r\n </div>\r\n\r\n <div\r\n className=\"usertxt\"\r\n style={{ textAlign: \"right\", marginBottom: \"3%\" }}\r\n >\r\n {error && <Alert variant=\"danger\">{error}</Alert>}\r\n {currentUser.displayName + \" \"}\r\n <Button className=\"signout\" variant=\"link\" onClick={handleSignout}>\r\n Sign Out\r\n </Button>\r\n </div>\r\n </div>\r\n\r\n <div\r\n className=\"buttongroup\"\r\n style={{ marginLeft: \"10%\", marginTop: \"15%\" }}\r\n >\r\n <ButtonGroup vertical>\r\n <div className=\"Personaldetails\">\r\n <Button\r\n style={{ color: \"#f25e42\" }}\r\n variant=\"link\"\r\n size=\"lg\"\r\n onClick={PDhandleShow}\r\n >\r\n Personal Details\r\n </Button>\r\n <Modal\r\n show={PDshow}\r\n onHide={PDhandleClose}\r\n centered\r\n target=\"PersonalDetails\"\r\n >\r\n <Modal.Header closeButton>\r\n <Modal.Title>Personal Details</Modal.Title>\r\n </Modal.Header>\r\n <Modal.Body>\r\n <div className=\"PersonalDetailsModal\">\r\n <Form>\r\n <Form.Group controlId=\"formBasicName\">\r\n <Form.Label>User Name</Form.Label>\r\n <Form.Control\r\n type=\"UserName\"\r\n defaultValue={currentUser.displayName}\r\n />\r\n </Form.Group>\r\n\r\n <Form.Group controlId=\"formBasicEmail\">\r\n <Form.Label>Email Address</Form.Label>\r\n <Form.Control\r\n type=\"Email\"\r\n defaultValue={currentUser.email}\r\n />\r\n </Form.Group>\r\n </Form>\r\n </div>\r\n </Modal.Body>\r\n <Modal.Footer>\r\n <Button variant=\"secondary\" onClick={PDhandleClose}>\r\n Close\r\n </Button>\r\n <Button\r\n style={{ background: \"#f25e42\", border: \"none\" }}\r\n onClick={PDhandleClose}\r\n >\r\n Save Changes\r\n </Button>\r\n </Modal.Footer>\r\n </Modal>\r\n </div>\r\n <div className=\"loginandsecuritytxt\">\r\n <Button\r\n style={{ color: \"#f25e42\" }}\r\n variant=\"link\"\r\n size=\"lg\"\r\n onClick={SDhandleShow}\r\n >\r\n Login and Security\r\n </Button>\r\n <Modal\r\n show={SDshow}\r\n onHide={SDhandleClose}\r\n centered\r\n target=\"PersonalDetails1\"\r\n >\r\n <Modal.Header closeButton>\r\n <Modal.Title>Login and Security</Modal.Title>\r\n </Modal.Header>\r\n <Modal.Body>\r\n <div className=\"LoginandSecurityModal\">\r\n <Form>\r\n <Form.Group controlId=\"formBasicPassword\">\r\n <Form.Label>Password</Form.Label>\r\n <Form.Control type=\"Password\" />\r\n </Form.Group>\r\n\r\n <Form.Group controlId=\"formNewPassword\">\r\n <Form.Label>New Password</Form.Label>\r\n <Form.Control type=\"Password\" />\r\n </Form.Group>\r\n\r\n <Form.Group controlId=\"formRepassword\">\r\n <Form.Label>Re-Enter Password</Form.Label>\r\n <Form.Control type=\"Password\" />\r\n </Form.Group>\r\n </Form>\r\n </div>\r\n </Modal.Body>\r\n <Modal.Footer>\r\n <Button variant=\"secondary\" onClick={SDhandleClose}>\r\n Close\r\n </Button>\r\n <Button\r\n style={{ background: \"#f25e42\", border: \"none\" }}\r\n onClick={SDhandleClose}\r\n >\r\n Save Changes\r\n </Button>\r\n </Modal.Footer>\r\n </Modal>\r\n </div>\r\n <div className=\"reviewstxt\">\r\n <Button\r\n style={{ color: \"#f25e42\" }}\r\n variant=\"link\"\r\n size=\"lg\"\r\n onClick={WRhandleShow}\r\n >\r\n Write Reviews\r\n </Button>\r\n <Modal\r\n show={WRshow}\r\n onHide={WRhandleClose}\r\n centered\r\n target=\"WriteReviews\"\r\n >\r\n <Modal.Header closeButton>\r\n <Modal.Title>Write Reviews</Modal.Title>\r\n </Modal.Header>\r\n <Modal.Body>\r\n <div className=\"WriteReviewsModal\">\r\n <Form>\r\n <textarea\r\n class=\"form-control\"\r\n id=\"reviewArea\"\r\n value={review}\r\n onChange={(e) => setReview(e.target.value)}\r\n placeholder=\"Write a Review\"\r\n rows=\"6\"\r\n />\r\n </Form>\r\n </div>\r\n </Modal.Body>\r\n <Modal.Footer>\r\n <Button variant=\"secondary\" onClick={WRhandleClose}>\r\n Close\r\n </Button>\r\n <Button\r\n style={{ background: \"#f25e42\", border: \"none\" }}\r\n onClick={sendReview}\r\n >\r\n Submit\r\n </Button>\r\n </Modal.Footer>\r\n </Modal>\r\n </div>\r\n <div className=\"inquriestxt\">\r\n <Button\r\n style={{ color: \"#f25e42\" }}\r\n variant=\"link\"\r\n size=\"lg\"\r\n onClick={IhandleShow}\r\n >\r\n Inquries\r\n </Button>\r\n <Modal\r\n show={Ishow}\r\n onHide={IhandleClose}\r\n centered\r\n target=\"WriteReviews\"\r\n >\r\n <Modal.Header closeButton>\r\n <Modal.Title>Inquries</Modal.Title>\r\n </Modal.Header>\r\n <Modal.Body>\r\n <div className=\"WriteInquriesModal\">\r\n <Form>\r\n <textarea\r\n class=\"form-control\"\r\n id=\"inquiryArea\"\r\n value={inquiry}\r\n onChange={(e) => setInquiry(e.target.value)}\r\n placeholder=\"Write a Inquiry\"\r\n rows=\"6\"\r\n /> \r\n </Form>\r\n </div>\r\n </Modal.Body>\r\n <Modal.Footer>\r\n <Button variant=\"secondary\" onClick={IhandleClose}>\r\n Close\r\n </Button>\r\n <Button\r\n style={{ background: \"#f25e42\", border: \"none\" }}\r\n onClick={sendInquiry}\r\n >\r\n Submit\r\n </Button>\r\n </Modal.Footer>\r\n </Modal>\r\n </div>\r\n </ButtonGroup>\r\n </div>\r\n </div>\r\n );\r\n}\r\n\r\nexport default Profile;\r\n","C:\\Users\\Rashitha\\Documents\\GitHub\\Train-Ticketing-System\\src\\components\\Landing\\Landing.js",[],"C:\\Users\\Rashitha\\Documents\\GitHub\\Train-Ticketing-System\\src\\contexts\\AuthContext.js",[],"C:\\Users\\Rashitha\\Documents\\GitHub\\Train-Ticketing-System\\src\\components\\cart\\Cart.js",["111","112","113","114","115","116","117","118"],"import React, { useRef, useState } from \"react\";\r\nimport { Container, Form, Button, Card, Row, Col } from \"react-bootstrap\";\r\nimport \"./Cart.css\";\r\n\r\nimport Payment from \"./Payment\";\r\nimport Orders from \"./Orders\";\r\n\r\nexport default function Cart() {\r\n return (\r\n <div class=\"container-fluid\">\r\n <div class=\"row\">\r\n <div class=\"col-lg-8\">\r\n <Orders></Orders>\r\n </div>\r\n <div class=\"col-lg-4\">\r\n <Payment></Payment>\r\n </div>\r\n </div>\r\n </div>\r\n );\r\n}\r\n","C:\\Users\\Rashitha\\Documents\\GitHub\\Train-Ticketing-System\\src\\firebase.js",[],"C:\\Users\\Rashitha\\Documents\\GitHub\\Train-Ticketing-System\\src\\components\\auth\\Signup.js",[],"C:\\Users\\Rashitha\\Documents\\GitHub\\Train-Ticketing-System\\src\\components\\auth\\Signin.js",[],"C:\\Users\\Rashitha\\Documents\\GitHub\\Train-Ticketing-System\\src\\components\\cart\\Orders.js",["119"],"import React, { useState, useEffect } from \"react\";\r\nimport { Container, Card, Button } from \"react-bootstrap\";\r\nimport \"./Orders.css\";\r\nimport { db } from \"../../firebase\";\r\nimport { useAuth } from \"../../contexts/AuthContext\";\r\n\r\nfunction Payment() {\r\n const [loading, setLoading] = useState(false);\r\n const [cartItems, setCartItems] = useState([]);\r\n const { currentUser } = useAuth();\r\n\r\n const cartItemRef = db.collection(\"items\");\r\n\r\n async function getOrders() {\r\n setLoading(true);\r\n await cartItemRef\r\n .where(\"user\", \"==\", currentUser.uid)\r\n .where(\"paid\", \"==\", false)\r\n .onSnapshot((querySnapshot) => {\r\n const items = [];\r\n querySnapshot.forEach((doc) => {\r\n items.push(doc.data());\r\n });\r\n setCartItems(items);\r\n setLoading(false);\r\n });\r\n }\r\n\r\n function handleClick(order) {\r\n console.log(order.id);\r\n }\r\n\r\n useEffect(() => {\r\n getOrders();\r\n }, []);\r\n\r\n if (loading) {\r\n return (\r\n <div className=\"loading-screen\">\r\n <h2>Loading the orders...</h2>\r\n </div>\r\n );\r\n }\r\n\r\n return (\r\n <Container className=\"d-flex align-items-center justify-content-center orders-main\">\r\n <div className=\"w-100 orders-content\">\r\n <Card className=\"shadow mb-2 ml-0 mt-0 bg-white rounded card\">\r\n <Card.Body>\r\n <h2 className=\"text-center mb-4 \">Order Details</h2>\r\n {cartItems.map((train) => (\r\n <Card className=\"cart-item mb-3\" key={train.id}>\r\n <Card.Body>\r\n <div>\r\n <div className=\"col-sm-10\">\r\n <p>\r\n <b>{train.name}</b>\r\n <br />\r\n <i>\r\n {train.from} to {train.to}\r\n </i>\r\n </p>\r\n <p>Number of Tickets: {train.count}</p>\r\n <p>Amount: {train.amount}</p>\r\n </div>\r\n </div>\r\n </Card.Body>\r\n </Card>\r\n ))}\r\n </Card.Body>\r\n </Card>\r\n </div>\r\n </Container>\r\n );\r\n}\r\n\r\nexport default Payment;\r\n","C:\\Users\\Rashitha\\Documents\\GitHub\\Train-Ticketing-System\\src\\components\\cart\\Payment.js",["120"],"import React, { useState, useEffect } from \"react\";\r\nimport {\r\n Container,\r\n Form,\r\n Button,\r\n Card,\r\n Row,\r\n Col,\r\n Modal,\r\n} from \"react-bootstrap\";\r\nimport \"./Payment.css\";\r\nimport { db } from \"../../firebase\";\r\nimport { useAuth } from \"../../contexts/AuthContext\";\r\n\r\nfunction Payment() {\r\n const [loading, setLoading] = useState(false);\r\n const [totalPayment, setTotalPayment] = useState([]);\r\n const [SDshow, setSDShow] = useState(false);\r\n const { currentUser } = useAuth();\r\n\r\n const orderItemRef = db.collection(\"orders\");\r\n\r\n const SDhandleClose = () => {\r\n setSDShow(false);\r\n };\r\n const SDhandleShow = () => {\r\n setSDShow(true);\r\n };\r\n\r\n async function getTotalPayment() {\r\n setLoading(true);\r\n await orderItemRef\r\n .where(\"user\", \"==\", currentUser.uid)\r\n .where(\"paid\", \"==\", false)\r\n .get()\r\n .then((item) => {\r\n const items = item.docs.map((doc) => doc.data());\r\n setTotalPayment(items);\r\n });\r\n\r\n setLoading(false);\r\n }\r\n\r\n function handlePayment(e) {\r\n e.preventDefault();\r\n SDhandleShow();\r\n }\r\n\r\n useEffect(() => {\r\n getTotalPayment();\r\n }, []);\r\n\r\n if (loading) {\r\n return (\r\n <div className=\"loading-screen\">\r\n <h2>Loading the orders...</h2>\r\n </div>\r\n );\r\n }\r\n\r\n return (\r\n <Container className=\"d-flex align-items-center justify-content-center payment-card-main\">\r\n <div className=\"w-100 payment-card-content\">\r\n <Card className=\"shadow p-3 mb-5 ml-0 mt-0 bg-white rounded card\">\r\n <Card.Body>\r\n <h2 className=\"text-center mb-4\">Payment Details</h2>\r\n <Form onSubmit={handlePayment}>\r\n <Row>\r\n <Col>\r\n {totalPayment.map((order) => (\r\n <div key={order.id} className=\"payment-amount\">\r\n <p>Total Amount : Rs. {order.total.toFixed(2)}</p>\r\n </div>\r\n ))}\r\n </Col>\r\n </Row>\r\n <Row>\r\n <Col>\r\n <Form.Group id=\"cardNumber\">\r\n <Form.Label>Card Number</Form.Label>\r\n <Form.Control\r\n type=\"text\"\r\n pattern=\"^(?:(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11}))$\"\r\n required\r\n placeholder=\"Card Number\"\r\n />\r\n </Form.Group>\r\n </Col>\r\n </Row>\r\n <Row>\r\n <Col>\r\n <Form.Group id=\"expiry\">\r\n <Form.Label>Expiry Date</Form.Label>\r\n <Form.Control\r\n type=\"text\"\r\n pattern=\"^(0[1-9]|1[0-2])\\/?([0-9]{4}|[0-9]{2})$\"\r\n required\r\n placeholder=\"MM/YY\"\r\n />\r\n </Form.Group>\r\n </Col>\r\n <Col>\r\n <Form.Group id=\"cvv\">\r\n <Form.Label>CVV</Form.Label>\r\n <Form.Control\r\n type=\"text\"\r\n pattern=\"[\\d]{3}\"\r\n required\r\n placeholder=\"CVC\"\r\n />\r\n </Form.Group>\r\n </Col>\r\n </Row>\r\n <Row>\r\n <Col>\r\n <Form.Group id=\"cardName\">\r\n <Form.Label>Card Name</Form.Label>\r\n <Form.Control\r\n type=\"text\"\r\n required\r\n placeholder=\"Name of the Card\"\r\n />\r\n </Form.Group>\r\n </Col>\r\n </Row>\r\n <Button\r\n className=\"w-100\"\r\n style={{\r\n background: \"#f25e42\",\r\n border: \"none\",\r\n marginTop: \"2vh\",\r\n }}\r\n type=\"submit\"\r\n >\r\n Pay Now\r\n </Button>\r\n <Modal\r\n show={SDshow}\r\n onHide={SDhandleClose}\r\n centered\r\n target=\"PersonalDetails1\"\r\n >\r\n <Modal.Header closeButton>\r\n <Modal.Title>Payment Confimation</Modal.Title>\r\n </Modal.Header>\r\n <Modal.Body>\r\n <div className=\"LoginandSecurityModal\">\r\n <div>\r\n <h2 className=\"payment-success\">\r\n Payment Successful...!\r\n </h2>\r\n <p>Please use this number as your confirmation code:</p>\r\n <h3 className=\"payment-code\">\r\n {Math.floor(Math.random() * 100000) + 1}\r\n </h3>\r\n </div>\r\n </div>\r\n </Modal.Body>\r\n <Modal.Footer>\r\n <Button\r\n variant=\"secondary\"\r\n type=\"cancel\"\r\n onClick={SDhandleClose}\r\n >\r\n Close\r\n </Button>\r\n <Button\r\n style={{ background: \"#f25e42\", border: \"none\" }}\r\n onClick={SDhandleClose}\r\n >\r\n Okey\r\n </Button>\r\n </Modal.Footer>\r\n </Modal>\r\n </Form>\r\n </Card.Body>\r\n </Card>\r\n </div>\r\n </Container>\r\n );\r\n}\r\n\r\nexport default Payment;\r\n",["121","122"],{"ruleId":"123","replacedBy":"124"},{"ruleId":"125","replacedBy":"126"},{"ruleId":"127","severity":1,"message":"128","line":28,"column":10,"nodeType":"129","messageId":"130","endLine":28,"endColumn":19},{"ruleId":"127","severity":1,"message":"131","line":28,"column":21,"nodeType":"129","messageId":"130","endLine":28,"endColumn":33},{"ruleId":"127","severity":1,"message":"132","line":30,"column":9,"nodeType":"129","messageId":"130","endLine":30,"endColumn":22},{"ruleId":"133","severity":1,"message":"134","line":124,"column":16,"nodeType":"135","messageId":"136","endLine":124,"endColumn":18},{"ruleId":"133","severity":1,"message":"134","line":162,"column":18,"nodeType":"135","messageId":"136","endLine":162,"endColumn":20},{"ruleId":"137","severity":1,"message":"138","line":213,"column":6,"nodeType":"139","endLine":213,"endColumn":8,"suggestions":"140"},{"ruleId":"127","severity":1,"message":"141","line":13,"column":8,"nodeType":"129","messageId":"130","endLine":13,"endColumn":12},{"ruleId":"137","severity":1,"message":"142","line":38,"column":6,"nodeType":"139","endLine":38,"endColumn":8,"suggestions":"143"},{"ruleId":"137","severity":1,"message":"144","line":35,"column":6,"nodeType":"139","endLine":35,"endColumn":8,"suggestions":"145"},{"ruleId":"127","severity":1,"message":"146","line":3,"column":10,"nodeType":"129","messageId":"130","endLine":3,"endColumn":14},{"ruleId":"137","severity":1,"message":"147","line":22,"column":6,"nodeType":"139","endLine":22,"endColumn":8,"suggestions":"148"},{"ruleId":"149","severity":1,"message":"150","line":28,"column":11,"nodeType":"151","endLine":28,"endColumn":72},{"ruleId":"127","severity":1,"message":"152","line":1,"column":27,"nodeType":"129","messageId":"130","endLine":1,"endColumn":36},{"ruleId":"127","severity":1,"message":"153","line":1,"column":38,"nodeType":"129","messageId":"130","endLine":1,"endColumn":44},{"ruleId":"127","severity":1,"message":"154","line":4,"column":8,"nodeType":"129","messageId":"130","endLine":4,"endColumn":16},{"ruleId":"127","severity":1,"message":"155","line":5,"column":8,"nodeType":"129","messageId":"130","endLine":5,"endColumn":21},{"ruleId":"127","severity":1,"message":"156","line":6,"column":8,"nodeType":"129","messageId":"130","endLine":6,"endColumn":15},{"ruleId":"127","severity":1,"message":"157","line":27,"column":10,"nodeType":"129","messageId":"130","endLine":27,"endColumn":17},{"ruleId":"127","severity":1,"message":"158","line":27,"column":19,"nodeType":"129","messageId":"130","endLine":27,"endColumn":29},{"ruleId":"127","severity":1,"message":"159","line":43,"column":10,"nodeType":"129","messageId":"130","endLine":43,"endColumn":18},{"ruleId":"127","severity":1,"message":"160","line":43,"column":20,"nodeType":"129","messageId":"130","endLine":43,"endColumn":31},{"ruleId":"127","severity":1,"message":"153","line":1,"column":17,"nodeType":"129","messageId":"130","endLine":1,"endColumn":23},{"ruleId":"127","severity":1,"message":"161","line":1,"column":25,"nodeType":"129","messageId":"130","endLine":1,"endColumn":33},{"ruleId":"127","severity":1,"message":"162","line":2,"column":10,"nodeType":"129","messageId":"130","endLine":2,"endColumn":19},{"ruleId":"127","severity":1,"message":"163","line":2,"column":21,"nodeType":"129","messageId":"130","endLine":2,"endColumn":25},{"ruleId":"127","severity":1,"message":"164","line":2,"column":27,"nodeType":"129","messageId":"130","endLine":2,"endColumn":33},{"ruleId":"127","severity":1,"message":"165","line":2,"column":35,"nodeType":"129","messageId":"130","endLine":2,"endColumn":39},{"ruleId":"127","severity":1,"message":"166","line":2,"column":41,"nodeType":"129","messageId":"130","endLine":2,"endColumn":44},{"ruleId":"127","severity":1,"message":"167","line":2,"column":46,"nodeType":"129","messageId":"130","endLine":2,"endColumn":49},{"ruleId":"137","severity":1,"message":"168","line":35,"column":6,"nodeType":"139","endLine":35,"endColumn":8,"suggestions":"169"},{"ruleId":"137","severity":1,"message":"170","line":51,"column":6,"nodeType":"139","endLine":51,"endColumn":8,"suggestions":"171"},{"ruleId":"123","replacedBy":"172"},{"ruleId":"125","replacedBy":"173"},"no-native-reassign",["174"],"no-negated-in-lhs",["175"],"no-unused-vars","'cartItems' is assigned a value but never used.","Identifier","unusedVar","'setCartItems' is assigned a value but never used.","'searchNameRef' is assigned a value but never used.","eqeqeq","Expected '===' and instead saw '=='.","BinaryExpression","unexpected","react-hooks/exhaustive-deps","React Hook useEffect has missing dependencies: 'fetchStations' and 'getSchedules'. Either include them or remove the dependency array.","ArrayExpression",["176"],"'Logo' is defined but never used.","React Hook useEffect has a missing dependency: 'getOrderCount'. Either include it or remove the dependency array.",["177"],"React Hook useEffect has a missing dependency: 'getReview'. Either include it or remove the dependency array.",["178"],"'Link' is defined but never used.","React Hook useEffect has a missing dependency: 'getDestination'. Either include it or remove the dependency array.",["179"],"jsx-a11y/alt-text","img elements must have an alt prop, either with meaningful text, or an empty string for decorative images.","JSXOpeningElement","'useEffect' is defined but never used.","'useRef' is defined but never used.","'personal' is defined but never used.","'loginsecurity' is defined but never used.","'reviews' is defined but never used.","'reviews' is assigned a value but never used.","'setReviews' is assigned a value but never used.","'inquries' is assigned a value but never used.","'setInquries' is assigned a value but never used.","'useState' is defined but never used.","'Container' is defined but never used.","'Form' is defined but never used.","'Button' is defined but never used.","'Card' is defined but never used.","'Row' is defined but never used.","'Col' is defined but never used.","React Hook useEffect has a missing dependency: 'getOrders'. Either include it or remove the dependency array.",["180"],"React Hook useEffect has a missing dependency: 'getTotalPayment'. Either include it or remove the dependency array.",["181"],["174"],["175"],"no-global-assign","no-unsafe-negation",{"desc":"182","fix":"183"},{"desc":"184","fix":"185"},{"desc":"186","fix":"187"},{"desc":"188","fix":"189"},{"desc":"190","fix":"191"},{"desc":"192","fix":"193"},"Update the dependencies array to be: [fetchStations, getSchedules]",{"range":"194","text":"195"},"Update the dependencies array to be: [getOrderCount]",{"range":"196","text":"197"},"Update the dependencies array to be: [getReview]",{"range":"198","text":"199"},"Update the dependencies array to be: [getDestination]",{"range":"200","text":"201"},"Update the dependencies array to be: [getOrders]",{"range":"202","text":"203"},"Update the dependencies array to be: [getTotalPayment]",{"range":"204","text":"205"},[5876,5878],"[fetchStations, getSchedules]",[1310,1312],"[getOrderCount]",[1086,1088],"[getReview]",[569,571],"[getDestination]",[947,949],"[getOrders]",[1145,1147],"[getTotalPayment]"]