-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintcache
1 lines (1 loc) · 44.8 KB
/
.eslintcache
1
[{"C:\\web development\\my-creative-agency\\my-creative-agency-client\\src\\index.js":"1","C:\\web development\\my-creative-agency\\my-creative-agency-client\\src\\App.js":"2","C:\\web development\\my-creative-agency\\my-creative-agency-client\\src\\reportWebVitals.js":"3","C:\\web development\\my-creative-agency\\my-creative-agency-client\\src\\Components\\Home\\Home.js":"4","C:\\web development\\my-creative-agency\\my-creative-agency-client\\src\\Components\\Shared\\Navbar\\Navbar.js":"5","C:\\web development\\my-creative-agency\\my-creative-agency-client\\src\\Components\\Header\\Header.js":"6","C:\\web development\\my-creative-agency\\my-creative-agency-client\\src\\Components\\LogoImageData\\LogoImageData.js":"7","C:\\web development\\my-creative-agency\\my-creative-agency-client\\src\\Components\\LogoImage\\LogoImage.js":"8","C:\\web development\\my-creative-agency\\my-creative-agency-client\\src\\Components\\Service\\Service.js":"9","C:\\web development\\my-creative-agency\\my-creative-agency-client\\src\\Components\\ServiceData\\ServiceData.js":"10","C:\\web development\\my-creative-agency\\my-creative-agency-client\\src\\Components\\Carousel\\Carousel.js":"11","C:\\web development\\my-creative-agency\\my-creative-agency-client\\src\\Components\\FeedBack\\FeedBack.js":"12","C:\\web development\\my-creative-agency\\my-creative-agency-client\\src\\Components\\FeedBackData\\FeedBackData.js":"13","C:\\web development\\my-creative-agency\\my-creative-agency-client\\src\\Components\\Shared\\Footer\\Footer.js":"14","C:\\web development\\my-creative-agency\\my-creative-agency-client\\src\\Components\\Shared\\NotFound\\NotFound.js":"15","C:\\web development\\my-creative-agency\\my-creative-agency-client\\src\\Components\\Login\\Login.js":"16","C:\\web development\\my-creative-agency\\my-creative-agency-client\\src\\Components\\Login\\firebase.config.js":"17","C:\\web development\\my-creative-agency\\my-creative-agency-client\\src\\Components\\Login\\PrivateRoute.js":"18","C:\\web development\\my-creative-agency\\my-creative-agency-client\\src\\Components\\OrderPage\\Order\\Order.js":"19","C:\\web development\\my-creative-agency\\my-creative-agency-client\\src\\Components\\OrderPage\\OrderList\\OrderList.js":"20","C:\\web development\\my-creative-agency\\my-creative-agency-client\\src\\Components\\OrderPage\\Review\\Review.js":"21","C:\\web development\\my-creative-agency\\my-creative-agency-client\\src\\Components\\ClientsReview\\ClientsReview.js":"22","C:\\web development\\my-creative-agency\\my-creative-agency-client\\src\\Components\\OrderPage\\Sidebar\\Sidebar.js":"23","C:\\web development\\my-creative-agency\\my-creative-agency-client\\src\\Components\\OrderPage\\MakeAdmin\\MakeAdmin.js":"24","C:\\web development\\my-creative-agency\\my-creative-agency-client\\src\\Components\\OrderPage\\ServiceList\\ServiceList.js":"25","C:\\web development\\my-creative-agency\\my-creative-agency-client\\src\\Components\\OrderPage\\AddService\\AddService.js":"26"},{"size":500,"mtime":499162500000,"results":"27","hashOfConfig":"28"},{"size":2775,"mtime":1613661606816,"results":"29","hashOfConfig":"28"},{"size":362,"mtime":499162500000,"results":"30","hashOfConfig":"28"},{"size":714,"mtime":1613056979782,"results":"31","hashOfConfig":"28"},{"size":1980,"mtime":1613661250869,"results":"32","hashOfConfig":"28"},{"size":1321,"mtime":1613661722778,"results":"33","hashOfConfig":"28"},{"size":394,"mtime":1611860001062,"results":"34","hashOfConfig":"28"},{"size":972,"mtime":1612015559985,"results":"35","hashOfConfig":"28"},{"size":1669,"mtime":1613675712259,"results":"36","hashOfConfig":"28"},{"size":1559,"mtime":1613675712259,"results":"37","hashOfConfig":"28"},{"size":3408,"mtime":1611944403002,"results":"38","hashOfConfig":"28"},{"size":1504,"mtime":1613660730384,"results":"39","hashOfConfig":"28"},{"size":947,"mtime":1612289661466,"results":"40","hashOfConfig":"28"},{"size":1826,"mtime":1614283120450,"results":"41","hashOfConfig":"28"},{"size":178,"mtime":1613661259917,"results":"42","hashOfConfig":"28"},{"size":2721,"mtime":1613833474521,"results":"43","hashOfConfig":"28"},{"size":381,"mtime":1612009383145,"results":"44","hashOfConfig":"28"},{"size":1160,"mtime":1612799470890,"results":"45","hashOfConfig":"28"},{"size":4829,"mtime":1613675713307,"results":"46","hashOfConfig":"28"},{"size":3221,"mtime":1613675712257,"results":"47","hashOfConfig":"28"},{"size":2895,"mtime":1613675713261,"results":"48","hashOfConfig":"28"},{"size":1528,"mtime":1613675712259,"results":"49","hashOfConfig":"28"},{"size":6658,"mtime":1613842157019,"results":"50","hashOfConfig":"28"},{"size":2039,"mtime":1613675712259,"results":"51","hashOfConfig":"28"},{"size":2767,"mtime":1614357640822,"results":"52","hashOfConfig":"28"},{"size":2780,"mtime":1613675712258,"results":"53","hashOfConfig":"28"},{"filePath":"54","messages":"55","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"56"},"1hyz0eb",{"filePath":"57","messages":"58","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"56"},{"filePath":"59","messages":"60","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"56"},{"filePath":"61","messages":"62","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"56"},{"filePath":"63","messages":"64","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"56"},{"filePath":"65","messages":"66","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"56"},{"filePath":"67","messages":"68","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"56"},{"filePath":"69","messages":"70","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"71","usedDeprecatedRules":"56"},{"filePath":"72","messages":"73","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"74","usedDeprecatedRules":"56"},{"filePath":"75","messages":"76","errorCount":0,"warningCount":4,"fixableErrorCount":0,"fixableWarningCount":0,"source":"77","usedDeprecatedRules":"56"},{"filePath":"78","messages":"79","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"56"},{"filePath":"80","messages":"81","errorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":"82","usedDeprecatedRules":"56"},{"filePath":"83","messages":"84","errorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":"85","usedDeprecatedRules":"56"},{"filePath":"86","messages":"87","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"56"},{"filePath":"88","messages":"89","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"56"},{"filePath":"90","messages":"91","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"56"},{"filePath":"92","messages":"93","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"56"},{"filePath":"94","messages":"95","errorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":"96","usedDeprecatedRules":"56"},{"filePath":"97","messages":"98","errorCount":0,"warningCount":3,"fixableErrorCount":0,"fixableWarningCount":0,"source":"99","usedDeprecatedRules":"56"},{"filePath":"100","messages":"101","errorCount":0,"warningCount":7,"fixableErrorCount":0,"fixableWarningCount":0,"source":"102","usedDeprecatedRules":"56"},{"filePath":"103","messages":"104","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"105","usedDeprecatedRules":"56"},{"filePath":"106","messages":"107","errorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":"108","usedDeprecatedRules":"56"},{"filePath":"109","messages":"110","errorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":"111","usedDeprecatedRules":"56"},{"filePath":"112","messages":"113","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"56"},{"filePath":"114","messages":"115","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"116","messages":"117","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"56"},"C:\\web development\\my-creative-agency\\my-creative-agency-client\\src\\index.js",[],["118","119"],"C:\\web development\\my-creative-agency\\my-creative-agency-client\\src\\App.js",[],"C:\\web development\\my-creative-agency\\my-creative-agency-client\\src\\reportWebVitals.js",[],"C:\\web development\\my-creative-agency\\my-creative-agency-client\\src\\Components\\Home\\Home.js",[],"C:\\web development\\my-creative-agency\\my-creative-agency-client\\src\\Components\\Shared\\Navbar\\Navbar.js",[],"C:\\web development\\my-creative-agency\\my-creative-agency-client\\src\\Components\\Header\\Header.js",[],"C:\\web development\\my-creative-agency\\my-creative-agency-client\\src\\Components\\LogoImageData\\LogoImageData.js",[],"C:\\web development\\my-creative-agency\\my-creative-agency-client\\src\\Components\\LogoImage\\LogoImage.js",["120"],"import React, { useState } from 'react';\r\nimport logo1 from '../../images/logos/slack.png';\r\nimport logo2 from '../../images/logos/gLogo.png';\r\nimport logo3 from '../../images/logos/netflix.png';\r\nimport logo4 from '../../images/logos/uber.png';\r\nimport logo5 from '../../images/logos/airbnb.png';\r\nimport LogoImageData from '../LogoImageData/LogoImageData';\r\nimport './LogoImage.css';\r\n\r\n\r\nconst allLogo = [\r\n {image: logo1},\r\n {image: logo2},\r\n {image: logo3},\r\n {image: logo4},\r\n {image: logo5}\r\n]\r\nconst LogoImage = () => {\r\n const [logos, setLogos] = useState(allLogo)\r\n // console.log(logos);\r\n \r\n return (\r\n <div>\r\n <div class=\"card-deck card-deck-style\" style={{marginLeft:'180px',marginRight:'180px'}}>\r\n {\r\n logos.map(logoData => <LogoImageData key={logoData.image} logo={logoData}></LogoImageData>)\r\n }\r\n </div>\r\n </div>\r\n );\r\n};\r\n\r\nexport default LogoImage;","C:\\web development\\my-creative-agency\\my-creative-agency-client\\src\\Components\\Service\\Service.js",["121"],"import React, { useEffect, useState } from 'react';\r\nimport icon1 from '../../images/icons/service1.png';\r\nimport icon2 from '../../images/icons/service2.png';\r\nimport icon3 from '../../images/icons/service3.png';\r\nimport ServiceData from '../ServiceData/ServiceData';\r\n\r\n\r\n\r\nconst allService = [\r\n { \r\n id: 1,\r\n img: icon1,\r\n title: 'Web & Mobile design',\r\n description: 'We craft stunning and amazing web UI, using a well drrafted UX to fit your product.'\r\n },\r\n {\r\n id: 2,\r\n img: icon2,\r\n title: 'Graphic design',\r\n description: 'Amazing flyers, social media posts and brand representations that would make your brand stand out.'\r\n },\r\n {\r\n id: 3,\r\n img: icon3,\r\n title: 'Web development',\r\n description: 'With well written codes, we build amazing apps for all platforms, mobile and web apps in general.'\r\n }\r\n]\r\n\r\nconst Service = () => {\r\n const [services, setServices] = useState([])\r\n useEffect(()=>{\r\n fetch(\"https://mighty-hollows-14277.herokuapp.com/newService\")\r\n .then(res => res.json())\r\n .then(result => {\r\n setServices(result)\r\n });\r\n },[])\r\n return (\r\n <section style={{marginTop:'180px'}}>\r\n <h2 style={{textAlign:'center'}}>Provide awesome <span style={{color:'#7AB259'}}>services</span></h2>\r\n\r\n <div class=\"row mx-5 my-5 mt-5 card-deck\">\r\n {\r\n services.map(serviceData => <ServiceData key={serviceData.id} service={serviceData}></ServiceData> )\r\n }\r\n </div>\r\n\r\n </section>\r\n );\r\n};\r\n\r\nexport default Service;","C:\\web development\\my-creative-agency\\my-creative-agency-client\\src\\Components\\ServiceData\\ServiceData.js",["122","123","124","125"],"import React, { useContext, useState } from \"react\";\r\nimport { useHistory } from \"react-router-dom\";\r\nimport { ServiceContext, UserContext } from \"../../App\";\r\nimport './ServiceData.css';\r\n\r\n\r\nconst ServiceData = ({service}) => {\r\n console.log(service,\"this is the service data\");\r\n // const {title, description,addImage } = props.service;\r\n const history = useHistory();\r\n console.log(service);\r\n\r\n const [loggedInUser, setLoggedInUser] = useContext(UserContext);\r\n const [serviceCard, setServiceCard] = useContext(ServiceContext);\r\n \r\n \r\n const handleServiceCard = (data) => { \r\n const singleData = {...data}\r\n setServiceCard(singleData); \r\n history.push('/order');\r\n console.log(singleData,\"this is the single data\");\r\n }\r\n const designImg ={\r\n height: '74px',\r\n width:'74px',\r\n margin:'15px auto'\r\n }\r\n \r\n return ( \r\n <div onClick={()=>handleServiceCard(service)} class=\"card service-card-style col-md-4\">\r\n \r\n {\r\n service?.addImage ? <img src={`data:image/png;base64,${service?.addImage.img}`} style={designImg} alt=\"\" class=\"card-img-top\"/>\r\n :<img src={`https://mighty-hollows-14277.herokuapp.com/${service?.addImage?.img}`} alt=\"...\" style={designImg} class=\"card-img-top\"/>\r\n }\r\n <div class=\"card-body mb-5\">\r\n <h5 class=\"card-title text-center\">{service.title}</h5>\r\n <p class=\"card-text text-center\">\r\n {service.description}\r\n </p>\r\n </div>\r\n\r\n </div>\r\n \r\n );\r\n};\r\n\r\nexport default ServiceData;\r\n","C:\\web development\\my-creative-agency\\my-creative-agency-client\\src\\Components\\Carousel\\Carousel.js",[],"C:\\web development\\my-creative-agency\\my-creative-agency-client\\src\\Components\\FeedBack\\FeedBack.js",["126","127"],"import React, { useEffect, useState } from \"react\";\r\nimport client1 from '../../images/customer-1.png';\r\nimport client2 from '../../images/customer-2.png';\r\nimport client3 from '../../images/customer-3.png';\r\nimport FeedBackData from \"../FeedBackData/FeedBackData\";\r\n\r\nconst allClient = [\r\n {\r\n img: client1,\r\n name: \"Nash Patrik\",\r\n title: \"CEO Manpal\",\r\n description:\r\n \"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Purus commodo ipsum duis laoreet maecenas. Feugiat\"\r\n },\r\n {\r\n img: client2,\r\n name: \"JACK\",\r\n title: \"CEO Manpal\",\r\n description:\r\n \"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Purus commodo ipsum duis laoreet maecenas. Feugiat\"\r\n },\r\n {\r\n img: client3,\r\n name: \"MIKE\",\r\n title: \"CEO Manpal\",\r\n description:\r\n \"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Purus commodo ipsum duis laoreet maecenas. Feugiat\"\r\n },\r\n];\r\n\r\nconst FeedBack = () => {\r\n const [clients, setClients] = useState(allClient);\r\n// console.log(clients);\r\n\r\n \r\n\r\n return (\r\n <section className=\"mt-5\">\r\n <h2 className=\"text-center\">\r\n Clients <span style={{ color: \"#7AB259\" }}>Feedback</span>\r\n </h2>\r\n \r\n <div className=\"row\" style={{justifyContent:'center'}}>\r\n {\r\n clients.map(clientData => <FeedBackData key={clientData.name} client={clientData}></FeedBackData> )\r\n }\r\n\r\n \r\n </div>\r\n </section>\r\n );\r\n};\r\n\r\nexport default FeedBack;\r\n","C:\\web development\\my-creative-agency\\my-creative-agency-client\\src\\Components\\FeedBackData\\FeedBackData.js",["128","129"],"import React, { useEffect, useState } from \"react\";\r\nimport \"./FeedBackData.css\";\r\n\r\nconst FeedBackData = (props) => {\r\n const { img, name, title, description } = props.client;\r\n return (\r\n <>\r\n <main className=\"main-section mt-5 mb-2 col-md-3\">\r\n <div>\r\n <div className=\"d-flex\">\r\n <div className=\"mt-3 mb-3\">\r\n <img\r\n style={{ height: \"80px\", marginLeft: \"10px\" }}\r\n src={img}\r\n alt=\"\"\r\n />\r\n </div>\r\n <div className=\"mt-4 ml-2\">\r\n <h4>\r\n <b>{name}</b>{\" \"}\r\n </h4>\r\n <h6>\r\n <b>{title}</b>\r\n </h6>\r\n </div>\r\n </div>\r\n\r\n <div className=\"text-center\">\r\n {\" \"}\r\n <p>{description}</p>\r\n </div>\r\n </div>\r\n </main>\r\n </>\r\n );\r\n};\r\n\r\nexport default FeedBackData;\r\n","C:\\web development\\my-creative-agency\\my-creative-agency-client\\src\\Components\\Shared\\Footer\\Footer.js",[],"C:\\web development\\my-creative-agency\\my-creative-agency-client\\src\\Components\\Shared\\NotFound\\NotFound.js",[],"C:\\web development\\my-creative-agency\\my-creative-agency-client\\src\\Components\\Login\\Login.js",[],"C:\\web development\\my-creative-agency\\my-creative-agency-client\\src\\Components\\Login\\firebase.config.js",[],"C:\\web development\\my-creative-agency\\my-creative-agency-client\\src\\Components\\Login\\PrivateRoute.js",["130","131"],"// import React, { useContext } from 'react';\r\nimport { useContext, useEffect } from \"react\";\r\nimport { Redirect, Route } from \"react-router-dom\";\r\nimport { UserContext } from \"../../App\";\r\nimport jwt_decode from \"jwt-decode\";\r\n\r\nconst PrivateRoute = ({ children, ...rest }) => {\r\n const [loggedInUser, setLoggedInUser] = useContext(UserContext);\r\n\r\n\r\n const isLoggedIn = () => {\r\n const token = sessionStorage.getItem('token');\r\n if(!token){\r\n return false;\r\n }\r\n const decodedToken = jwt_decode(token);\r\n // get current time\r\n const currentTime = new Date().getTime() / 1000;\r\n // compare the expiration time with the current time\r\n // will return false if expired and will return true if not expired\r\n return decodedToken.exp > currentTime;\r\n }\r\n return (\r\n <Route\r\n {...rest}\r\n render={({ location }) =>\r\n ( loggedInUser.email || isLoggedIn()) ? (\r\n children\r\n ) : (\r\n <Redirect\r\n to={{\r\n pathname: \"/login\",\r\n state: { from: location },\r\n }}\r\n />\r\n )\r\n }\r\n />\r\n );\r\n};\r\n\r\nexport default PrivateRoute;\r\n","C:\\web development\\my-creative-agency\\my-creative-agency-client\\src\\Components\\OrderPage\\Order\\Order.js",["132","133","134"],"import React, { useContext, useEffect, useState } from \"react\";\r\nimport { useHistory } from \"react-router-dom\";\r\nimport { ServiceContext, UserContext } from \"../../../App\";\r\nimport uploadIcon from \"../../../images/icons/upload.png\";\r\nimport Sidebar from \"../Sidebar/Sidebar\";\r\nimport \"./Order.css\";\r\n\r\nconst Order = () => {\r\n const [loggedInUser, setLoggedInUser] = useContext(UserContext);\r\n const [serviceCard, setServiceCard] = useContext(ServiceContext);\r\n const history = useHistory();\r\n //akhne email ar card ar data ek kore server a post krsi\r\n const [allData, setAllData] = useState([]);\r\n console.log(allData);\r\n console.log(serviceCard,\"this is service card\");\r\n \r\n\r\n const handleChange = (e) => {\r\n const newUserInfo = { ...loggedInUser, ...serviceCard, ...allData };\r\n newUserInfo[e.target.name] = e.target.value;\r\n setAllData(newUserInfo);\r\n };\r\n const[file, setFile] = useState(null);\r\n const handleFile = (e) => {\r\n const newFile = e.target.files[0]\r\n setFile(newFile)\r\n };\r\n\r\n const handleSubmit = (e) =>{\r\n const formData = new FormData()\r\n formData.append('file', file)\r\n formData.append('gmailName', allData.gmailName)\r\n formData.append('inputName', allData.inputName)\r\n formData.append('email', allData.email)\r\n formData.append('inputEmail', allData.inputEmail)\r\n formData.append('photoURL', allData.photoURL)\r\n formData.append('id', allData.id)\r\n formData.append('img', allData.img)\r\n formData.append('inputDescription', allData.inputDescription)\r\n formData.append('description', allData.description)\r\n formData.append('title', allData.title) \r\n formData.append('price', allData.price)\r\n\r\n console.log(allData,\"this is all data\");\r\n\r\n fetch('https://mighty-hollows-14277.herokuapp.com/addACustomer', {\r\n method: 'POST',\r\n body: formData\r\n })\r\n .then(response => response.json())\r\n .then(data => {\r\n if(data){\r\n alert(\"data submitted\") \r\n }\r\n })\r\n .catch(error => {\r\n console.error(error)\r\n })\r\n \r\n history.push(\"/orderList\"); \r\n e.preventDefault();\r\n\r\n }\r\n \r\n return (\r\n <div className=\"rightOption row\">\r\n <div className=\"col-md-3\">\r\n <Sidebar></Sidebar>\r\n </div>\r\n <form onSubmit={handleSubmit} className=\"order-form col-md-9 mt-5\" style={{backgroundColor:'#F4F7FC'}}>\r\n <div className=\"form-group\">\r\n <input\r\n type=\"text\"\r\n name=\"inputName\"\r\n placeholder=\"Your name / Company's name\"\r\n id=\"\"\r\n onChange={handleChange}\r\n required\r\n />\r\n\r\n <input\r\n type=\"email\"\r\n name=\"inputEmail\"\r\n placeholder=\"Your email address\"\r\n id=\"\"\r\n onChange={handleChange}\r\n defaultValue={loggedInUser.email} \r\n required\r\n />\r\n\r\n <input\r\n type=\"text\"\r\n name=\"selectedServiceName\"\r\n placeholder=\"selected Service Name \"\r\n id=\"\"\r\n onChange={handleChange}\r\n defaultValue={serviceCard.title}\r\n required\r\n />\r\n\r\n <textarea\r\n type=\"text-area\"\r\n name=\"inputDescription\"\r\n placeholder=\"Enter Description \"\r\n id=\"\"\r\n onChange={handleChange}\r\n required\r\n rows=\"4\"\r\n cols=\"28\"\r\n className=\"order-text-area\"\r\n />\r\n\r\n <div className=\"form-row inline \">\r\n <div className=\" form-group col mr-2\">\r\n <input\r\n type=\"number\"\r\n name=\"price\"\r\n className=\"\"\r\n placeholder=\"Price\"\r\n onChange={handleChange}\r\n required\r\n />\r\n </div>\r\n <div className=\"col ml-2 \">\r\n <input\r\n onChange={handleFile}\r\n name=\"file\"\r\n id=\"upload\"\r\n type=\"file\"\r\n hidden\r\n accept=\"image/*\"\r\n />\r\n <label for=\"upload\" className=\"upload-design\">\r\n {\" \"}\r\n <img className=\"upload-img\" src={uploadIcon} alt=\"\" /> Choose\r\n file\r\n </label>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div className=\"\" style={{ width: \" 170px\", marginTop:'-20px'}}>\r\n <input\r\n className=\"submit-button \"\r\n type=\"submit\"\r\n value=\"Send\"\r\n style={{\r\n background: \"#111430\",\r\n padding: \" 0 60px 0 60px\",\r\n width: \"170px\",\r\n color:\"white\"\r\n }}\r\n />\r\n </div>\r\n </form>\r\n </div>\r\n );\r\n};\r\n\r\nexport default Order;\r\n\r\n\r\n","C:\\web development\\my-creative-agency\\my-creative-agency-client\\src\\Components\\OrderPage\\OrderList\\OrderList.js",["135","136","137","138","139","140","141"],"import React, { useContext, useEffect, useState } from \"react\";\r\nimport { UserContext } from \"../../../App\";\r\nimport img from \"../../../images/customer-1.png\";\r\nimport Sidebar from \"../Sidebar/Sidebar\";\r\nimport \"./OrderList.css\";\r\nimport { app } from \"../../Login/Login\";\r\n\r\nconst ServiceList = () => {\r\n const [loggedInUser, setLoggedInUser] = useContext(UserContext);\r\n\r\n //loggedInUser ar email ta session stroge a send korte jate reload korle data ta na haraia jay\r\n const [email, setEmail] = useState(loggedInUser.email);\r\n\r\n const [orderCard, setOrderCard] = useState([]);\r\n console.log(orderCard,\"here is order cardData\");\r\n useEffect(() => {\r\n fetch(\"https://mighty-hollows-14277.herokuapp.com/getOrderCard?email=\" + loggedInUser.email)\r\n .then((res) => res.json())\r\n .then((result) => {\r\n setOrderCard(result);\r\n });\r\n }, [loggedInUser.email]);\r\n\r\n const designImg = {\r\n height: \"80px\",\r\n marginLeft: \"10px\",\r\n };\r\n\r\n //getting statusData\r\n const [statusData, setStatusData] = useState('')\r\n useEffect(()=>{\r\n fetch('https://mighty-hollows-14277.herokuapp.com/getStatus')\r\n .then(res => res.json())\r\n .then(data =>setStatusData(data))\r\n },[])\r\n \r\n return (\r\n <div className=\"row\">\r\n <div className=\"col-md-3\">\r\n <Sidebar></Sidebar>\r\n </div>\r\n <div\r\n className=\"col-md-9 card-deck mt-4\"\r\n style={{ backgroundColor: \"#F4F7FC\" }}\r\n >\r\n {orderCard.map((dataInfo, index) => (\r\n <section\r\n key={index}\r\n className=\"mt-5 col-md-5\"\r\n style={{\r\n height: \"200px\",\r\n width: \"400px\",\r\n boxShadow: \"2px 2px 3px lightGray\",\r\n marginLeft: \"20px\",\r\n backgroundColor: \"white\",\r\n }}\r\n >\r\n <div>\r\n <div className=\"d-flex\">\r\n <div className=\"mt-3 mb-3\">\r\n {/* <img style={{height:'80px',marginLeft:'10px'}} src={data.img} alt=\"\"/> */}\r\n\r\n {/* {dataInfo?.addImage ? (\r\n <img\r\n src={`data:image/png;base64,${dataInfo?.addImage.img}`}\r\n style={designImg}\r\n alt=\"\"\r\n class=\"card-img-top\"\r\n />\r\n ) : (\r\n <img\r\n src={`https://mighty-hollows-14277.herokuapp.com/${dataInfo?.addImage?.img}`}\r\n alt=\"...\"\r\n style={designImg}\r\n class=\"card-img-top\"\r\n />\r\n )} */}\r\n </div>\r\n <div className=\"mt-5\" style={{ marginLeft: \"auto\" }}>\r\n <button className=\"btn btn-warning\">pending</button>\r\n </div>\r\n </div>\r\n\r\n <div className=\"\">\r\n <h5>{dataInfo.title}</h5>\r\n <p>\r\n Lorem ipsum dolor sit amet consectetur adipisicing elit.\r\n Harum, nihil?\r\n </p>\r\n </div>\r\n </div>\r\n </section>\r\n ))}\r\n </div>\r\n </div>\r\n );\r\n};\r\n\r\nexport default ServiceList;\r\n","C:\\web development\\my-creative-agency\\my-creative-agency-client\\src\\Components\\OrderPage\\Review\\Review.js",["142"],"import React, { useContext, useState } from 'react';\r\nimport { useHistory } from 'react-router-dom';\r\nimport { UserContext } from '../../../App';\r\nimport Sidebar from '../Sidebar/Sidebar';\r\n\r\nconst Review = () => {\r\n const history = useHistory();\r\n const [reviewData, setReviewData] = useState([]);\r\n // console.log(reviewData);\r\n const [loggedInUser, setLoggedInUser] = useContext(UserContext);\r\n // console.log(loggedInUser,\"here it is\");\r\n //input ar data review te creat kortesi\r\n console.log(loggedInUser,\"hey\");\r\n const handleSubmitReview = (e) =>{\r\n fetch(\"https://mighty-hollows-14277.herokuapp.com/addReview\", {\r\n method: \"POST\",\r\n headers: {\r\n \"Content-Type\": \"application/json\"\r\n },\r\n body: JSON.stringify(reviewData),\r\n })\r\n .then(res => res.json())\r\n .then(data => {\r\n if (data) {\r\n // alert(\"data submitted\");\r\n // history.push(\"/\");\r\n }\r\n \r\n });\r\n e.preventDefault();\r\n alert(\"data submitted\");\r\n history.push('/')\r\n }\r\n const handleChangeReview = (e) => {\r\n const newUserInfo = {...reviewData,...loggedInUser}\r\n newUserInfo[e.target.name] = e.target.value;\r\n setReviewData(newUserInfo); \r\n }\r\n return (\r\n <div className=\"rightOption row\">\r\n <div className=\"col-md-3\">\r\n <Sidebar></Sidebar>\r\n </div>\r\n <form onSubmit={handleSubmitReview} className=\"order-form col-md-9 mt-5\" style={{backgroundColor:'#F4F7FC'}}>\r\n <div className=\"form-group\">\r\n <input\r\n type=\"text\"\r\n name=\"ReviewName\"\r\n placeholder=\"Your name / Company's name\"\r\n id=\"\"\r\n value={loggedInUser.gmailName}\r\n onChange={handleChangeReview}\r\n required\r\n />\r\n\r\n <input\r\n type=\"email\"\r\n name=\"ReviewEmail\"\r\n placeholder=\"Your email address\"\r\n id=\"\"\r\n value={loggedInUser.email}\r\n onChange={handleChangeReview}\r\n required\r\n />\r\n\r\n \r\n\r\n <textarea\r\n type=\"text-area\"\r\n name=\"ReviewDescription\"\r\n placeholder=\"Enter Description \"\r\n id=\"\"\r\n onChange={handleChangeReview}\r\n required\r\n rows=\"4\"\r\n cols=\"28\"\r\n className=\"order-text-area\"\r\n />\r\n </div>\r\n\r\n <div className=\"\" style={{ width: \" 170px\", marginTop:'-20px'}}>\r\n <input\r\n className=\"submit-button \"\r\n type=\"submit\"\r\n value=\"Send\"\r\n style={{\r\n background: \"#111430\",\r\n padding: \" 0 60px 0 60px\",\r\n width: \"170px\",\r\n color:\"white\"\r\n }}\r\n />\r\n </div>\r\n </form>\r\n </div>\r\n );\r\n};\r\n\r\nexport default Review;","C:\\web development\\my-creative-agency\\my-creative-agency-client\\src\\Components\\ClientsReview\\ClientsReview.js",["143","144"],"import React, { useContext, useEffect, useState } from 'react';\r\nimport { UserContext } from '../../App';\r\nimport img from '../../images/logos/google.png';\r\n\r\nconst ClientsReview = () => {\r\n \r\n const [loggedInUser, setLoggedInUser] = useContext(UserContext);\r\n // console.log(loggedInUser);\r\n //this is for rivew\r\n const [feedBacks, setFeedBacks] = useState([]);\r\n useEffect(()=>{\r\n fetch(\"https://mighty-hollows-14277.herokuapp.com/feedBackCard\")\r\n .then(res => res.json())\r\n .then(result =>{\r\n setFeedBacks(result)\r\n })\r\n },[])\r\n // console.log(feedBacks);\r\n\r\n return (\r\n \r\n <main>\r\n <div className=\"row\" style={{justifyContent:'center'}}>\r\n {\r\n feedBacks.map(fdData => (\r\n <div className=\"main-section mt-5 mb-2 col-md-3\">\r\n <div className=\"d-flex\">\r\n <div className=\"mt-3 mb-3\">\r\n <img style={{height:'80px',marginLeft:'10px'}} src={fdData?.photoURL} className=\"rounded-circle\" alt=\"\"/>\r\n </div>\r\n <div className=\"mt-4 ml-2\">\r\n <h4><b>{fdData.ReviewName}</b> </h4>\r\n <h6><b>CEO,USA</b></h6>\r\n </div>\r\n </div>\r\n\r\n <div className=\"text-center\"> <p>{fdData.ReviewDescription}</p></div>\r\n </div> \r\n ))\r\n }\r\n </div> \r\n </main>\r\n );\r\n};\r\n\r\nexport default ClientsReview;\r\n\r\n\r\n\r\n\r\n","C:\\web development\\my-creative-agency\\my-creative-agency-client\\src\\Components\\OrderPage\\Sidebar\\Sidebar.js",["145","146"],"import React, { useContext, useEffect, useState } from \"react\";\r\nimport { Link } from \"react-router-dom\";\r\nimport logo from \"../../../images/logos/logo.png\";\r\nimport orderPic from \"../../../images/icons/message-square.png\";\r\nimport orderListPic from \"../../../images/icons/plus 1.png\";\r\nimport reviewPic from \"../../../images/icons/person.png\";\r\nimport serviceListPic from \"../../../images/icons/message-square.png\";\r\nimport addServicePic from \"../../../images/icons/plus 1.png\";\r\nimport makeAdminPic from \"../../../images/icons/person.png\";\r\nimport { UserContext } from \"../../../App\";\r\nimport { app } from \"../../Login/Login\";\r\nimport firebase from \"firebase/app\";\r\n\r\n\r\nconst Sidebar = () => {\r\n const [loggedInUser, setLoggedInUser] = useContext(UserContext);\r\n const [isAdmin, setIsAdmin] = useState(false);\r\n // console.log(isAdmin);\r\n\r\n// const [user, setUser] = useState()\r\n\r\n //ata korsi jate email ta state theke haraia na jay reload dile porer useEffect a state ta dependency set kroe disi ata google method ..sob jaygay ata use korbo loggedInUser jate vanish na hoy reload dile\r\n useEffect(()=>{\r\n // if(firebase.apps.length === 0){}\r\n const unsubscribe = app.auth().onAuthStateChanged(user => {\r\n setLoggedInUser({email:user.email, photoURL:user.photoURL}); //loggedInUser ar ja ja send korte chay sob akhne dia set kore dibo\r\n });\r\n return unsubscribe; \r\n \r\n },[])\r\n\r\n // const getEmail = sessionStorage.getItem('info')\r\n // const [strogeData, setStroageData] = (getEmail);\r\n \r\n \r\n\r\n \r\n useEffect(()=>{\r\n fetch(`https://mighty-hollows-14277.herokuapp.com/isAdminData?email=${loggedInUser.email}`)\r\n .then((res) => res.json())\r\n .then((data) => {\r\n if (data.admin === true) {\r\n setIsAdmin(true);\r\n }\r\n if (data.admin === false) {\r\n setIsAdmin(false);\r\n }\r\n });\r\n },[loggedInUser.email])\r\n\r\n return (\r\n <div className=\"mt-2 ml-5\">\r\n <img style={{ width: \"150px\" }} src={logo} alt=\"\" />\r\n <ul className=\"mt-4 list-unstyled ml-4\">\r\n <h5>\r\n <li>\r\n <img src={orderPic} className=\"mr-1\" alt=\"\" />\r\n <Link to=\"/order\">Order</Link>\r\n </li>\r\n </h5>\r\n <h5>\r\n <li className=\"mt-4\">\r\n <img\r\n style={{ height: \"20px\" }}\r\n src={orderListPic}\r\n className=\"mr-1\"\r\n alt=\"\"\r\n />\r\n <Link to=\"/orderList\">Order List</Link>\r\n </li>\r\n </h5>\r\n <h5>\r\n <li className=\"mt-4\">\r\n <img src={reviewPic} className=\"mr-1\" alt=\"\" />\r\n <Link to=\"/review\">Review</Link>\r\n </li>\r\n </h5>\r\n {isAdmin === true ? \r\n <div>\r\n <h5>\r\n\r\n <li className=\"mt-4\">\r\n <img src={serviceListPic} className=\"mr-1\" alt=\"\" />\r\n <Link to=\"/serviceList\">Service List</Link>\r\n </li>\r\n </h5>\r\n <h5>\r\n <li className=\"mt-4\">\r\n <img\r\n src={addServicePic}\r\n style={{ height: \"20px\" }}\r\n className=\"mr-1\"\r\n alt=\"\"\r\n />\r\n <Link to=\"/addService\">Add Service</Link>\r\n </li>\r\n </h5>\r\n <h5>\r\n <li className=\"mt-4\">\r\n <img src={makeAdminPic} className=\"mr-1\" alt=\"\" />\r\n <Link to=\"/makeAdmin\">Make Admin</Link>\r\n </li>\r\n </h5>\r\n </div>\r\n : \"\"}\r\n </ul>\r\n </div>\r\n );\r\n};\r\n\r\nexport default Sidebar;\r\n\r\n\r\n\r\n// import React, { useContext, useState } from 'react';\r\n// import { Link } from 'react-router-dom';\r\n// import logo from '../../../images/logos/logo.png';\r\n// import orderPic from \"../../../images/icons/message-square.png\";\r\n// import orderListPic from \"../../../images/icons/plus 1.png\";\r\n// import reviewPic from \"../../../images/icons/person.png\";\r\n// import serviceListPic from \"../../../images/icons/message-square.png\";\r\n// import addServicePic from \"../../../images/icons/plus 1.png\";\r\n// import makeAdminPic from \"../../../images/icons/person.png\";\r\n// import { UserContext } from '../../../App';\r\n\r\n\r\n// const Sidebar = () => {\r\n// const [loggedInUser, setsetLoggedInUser] = useContext(UserContext);\r\n// const [isAdmin, setIsAdmin] = useState(true);\r\n\r\n// fetch(\"https://mighty-hollows-14277.herokuapp.com/isAdminData\", {\r\n// method: \"POST\",\r\n// headers: {\r\n// \"Content-Type\": \"application/json\"\r\n// },\r\n// body: JSON.stringify({email: loggedInUser.email}),\r\n// })\r\n// .then(res => res.json())\r\n// .then(data => setIsAdmin(data));\r\n// return (\r\n// <div className=\"mt-2 ml-5\">\r\n// <img style={{width:'150px'}} src={logo} alt=\"\"/>\r\n// <ul className=\"mt-4 list-unstyled ml-4\">\r\n// <h5>\r\n// <li>\r\n// <img src={orderPic} className=\"mr-1\" alt=\"\"/>\r\n// <Link to=\"/order\">Order</Link>\r\n// </li>\r\n// </h5>\r\n\r\n// <h5>\r\n// <li className=\"mt-4\">\r\n// <img style={{height:'20px'}} src={orderListPic} className=\"mr-1\" alt=\"\"/>\r\n// <Link to=\"/orderList\">Order List</Link>\r\n// </li>\r\n// </h5>\r\n\r\n\r\n// <h5>\r\n// <li className=\"mt-4\">\r\n// <img src={reviewPic} className=\"mr-1\" alt=\"\"/>\r\n// <Link to=\"/review\">Review</Link>\r\n// </li>\r\n// </h5>\r\n\r\n\r\n// {isAdmin && <div> \r\n// <h5>\r\n// <li className=\"mt-4\">\r\n// <img src={serviceListPic} className=\"mr-1\" alt=\"\"/>\r\n// <Link to=\"/serviceList\">Service List</Link>\r\n// </li>\r\n// </h5>\r\n// <h5>\r\n// <li className=\"mt-4\">\r\n// <img src={addServicePic} style={{height:'20px'}}className=\"mr-1\" alt=\"\"/>\r\n// <Link to=\"/addService\">Add Service</Link>\r\n// </li>\r\n// </h5>\r\n// <h5>\r\n// <li className=\"mt-4\"> \r\n// <img src={makeAdminPic} className=\"mr-1\" alt=\"\"/>\r\n// <Link to=\"/makeAdmin\">Make Admin</Link>\r\n// </li>\r\n// </h5>\r\n// </div>}\r\n\r\n \r\n// </ul>\r\n// </div>\r\n// );\r\n// };\r\n\r\n// export default Sidebar;\r\n","C:\\web development\\my-creative-agency\\my-creative-agency-client\\src\\Components\\OrderPage\\MakeAdmin\\MakeAdmin.js",[],"C:\\web development\\my-creative-agency\\my-creative-agency-client\\src\\Components\\OrderPage\\ServiceList\\ServiceList.js",["147"],"C:\\web development\\my-creative-agency\\my-creative-agency-client\\src\\Components\\OrderPage\\AddService\\AddService.js",[],{"ruleId":"148","replacedBy":"149"},{"ruleId":"150","replacedBy":"151"},{"ruleId":"152","severity":1,"message":"153","line":19,"column":19,"nodeType":"154","messageId":"155","endLine":19,"endColumn":27},{"ruleId":"152","severity":1,"message":"156","line":9,"column":7,"nodeType":"154","messageId":"155","endLine":9,"endColumn":17},{"ruleId":"152","severity":1,"message":"157","line":1,"column":29,"nodeType":"154","messageId":"155","endLine":1,"endColumn":37},{"ruleId":"152","severity":1,"message":"158","line":13,"column":10,"nodeType":"154","messageId":"155","endLine":13,"endColumn":22},{"ruleId":"152","severity":1,"message":"159","line":13,"column":24,"nodeType":"154","messageId":"155","endLine":13,"endColumn":39},{"ruleId":"152","severity":1,"message":"160","line":14,"column":10,"nodeType":"154","messageId":"155","endLine":14,"endColumn":21},{"ruleId":"152","severity":1,"message":"161","line":1,"column":17,"nodeType":"154","messageId":"155","endLine":1,"endColumn":26},{"ruleId":"152","severity":1,"message":"162","line":32,"column":20,"nodeType":"154","messageId":"155","endLine":32,"endColumn":30},{"ruleId":"152","severity":1,"message":"161","line":1,"column":17,"nodeType":"154","messageId":"155","endLine":1,"endColumn":26},{"ruleId":"152","severity":1,"message":"157","line":1,"column":28,"nodeType":"154","messageId":"155","endLine":1,"endColumn":36},{"ruleId":"152","severity":1,"message":"161","line":2,"column":22,"nodeType":"154","messageId":"155","endLine":2,"endColumn":31},{"ruleId":"152","severity":1,"message":"159","line":8,"column":24,"nodeType":"154","messageId":"155","endLine":8,"endColumn":39},{"ruleId":"152","severity":1,"message":"161","line":1,"column":29,"nodeType":"154","messageId":"155","endLine":1,"endColumn":38},{"ruleId":"152","severity":1,"message":"159","line":9,"column":24,"nodeType":"154","messageId":"155","endLine":9,"endColumn":39},{"ruleId":"152","severity":1,"message":"163","line":10,"column":23,"nodeType":"154","messageId":"155","endLine":10,"endColumn":37},{"ruleId":"152","severity":1,"message":"164","line":3,"column":8,"nodeType":"154","messageId":"155","endLine":3,"endColumn":11},{"ruleId":"152","severity":1,"message":"165","line":6,"column":10,"nodeType":"154","messageId":"155","endLine":6,"endColumn":13},{"ruleId":"152","severity":1,"message":"159","line":9,"column":24,"nodeType":"154","messageId":"155","endLine":9,"endColumn":39},{"ruleId":"152","severity":1,"message":"166","line":12,"column":10,"nodeType":"154","messageId":"155","endLine":12,"endColumn":15},{"ruleId":"152","severity":1,"message":"167","line":12,"column":17,"nodeType":"154","messageId":"155","endLine":12,"endColumn":25},{"ruleId":"152","severity":1,"message":"168","line":24,"column":9,"nodeType":"154","messageId":"155","endLine":24,"endColumn":18},{"ruleId":"152","severity":1,"message":"169","line":30,"column":10,"nodeType":"154","messageId":"155","endLine":30,"endColumn":20},{"ruleId":"152","severity":1,"message":"159","line":10,"column":26,"nodeType":"154","messageId":"155","endLine":10,"endColumn":41},{"ruleId":"152","severity":1,"message":"158","line":7,"column":12,"nodeType":"154","messageId":"155","endLine":7,"endColumn":24},{"ruleId":"152","severity":1,"message":"159","line":7,"column":26,"nodeType":"154","messageId":"155","endLine":7,"endColumn":41},{"ruleId":"152","severity":1,"message":"170","line":12,"column":8,"nodeType":"154","messageId":"155","endLine":12,"endColumn":16},{"ruleId":"171","severity":1,"message":"172","line":30,"column":5,"nodeType":"173","endLine":30,"endColumn":7,"suggestions":"174"},{"ruleId":"152","severity":1,"message":"169","line":32,"column":10,"nodeType":"154","messageId":"155","endLine":32,"endColumn":20},"no-native-reassign",["175"],"no-negated-in-lhs",["176"],"no-unused-vars","'setLogos' is assigned a value but never used.","Identifier","unusedVar","'allService' is assigned a value but never used.","'useState' is defined but never used.","'loggedInUser' is assigned a value but never used.","'setLoggedInUser' is assigned a value but never used.","'serviceCard' is assigned a value but never used.","'useEffect' is defined but never used.","'setClients' is assigned a value but never used.","'setServiceCard' is assigned a value but never used.","'img' is defined but never used.","'app' is defined but never used.","'email' is assigned a value but never used.","'setEmail' is assigned a value but never used.","'designImg' is assigned a value but never used.","'statusData' is assigned a value but never used.","'firebase' is defined but never used.","react-hooks/exhaustive-deps","React Hook useEffect has a missing dependency: 'setLoggedInUser'. Either include it or remove the dependency array.","ArrayExpression",["177"],"no-global-assign","no-unsafe-negation",{"desc":"178","fix":"179"},"Update the dependencies array to be: [setLoggedInUser]",{"range":"180","text":"181"},[1424,1426],"[setLoggedInUser]"]