-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.eslintcache
1 lines (1 loc) · 22.9 KB
/
.eslintcache
1
[{"C:\\Users\\rohitb\\Desktop\\VIIT\\savakhed\\src\\index.js":"1","C:\\Users\\rohitb\\Desktop\\VIIT\\savakhed\\src\\reportWebVitals.js":"2","C:\\Users\\rohitb\\Desktop\\VIIT\\savakhed\\src\\serviceWorkerRegistration.js":"3","C:\\Users\\rohitb\\Desktop\\VIIT\\savakhed\\src\\App.js":"4","C:\\Users\\rohitb\\Desktop\\VIIT\\savakhed\\src\\components\\navbar\\mobileNav.jsx":"5","C:\\Users\\rohitb\\Desktop\\VIIT\\savakhed\\src\\components\\recommendation\\Recommendation.jsx":"6","C:\\Users\\rohitb\\Desktop\\VIIT\\savakhed\\src\\components\\about-us\\AboutUs.jsx":"7","C:\\Users\\rohitb\\Desktop\\VIIT\\savakhed\\src\\container\\lekhakBooks\\LekhakBooks.jsx":"8","C:\\Users\\rohitb\\Desktop\\VIIT\\savakhed\\src\\container\\LekhakList\\LekhakList.jsx":"9","C:\\Users\\rohitb\\Desktop\\VIIT\\savakhed\\src\\container\\listing\\Listing.jsx":"10","C:\\Users\\rohitb\\Desktop\\VIIT\\savakhed\\src\\container\\details\\Details.jsx":"11","C:\\Users\\rohitb\\Desktop\\VIIT\\savakhed\\src\\firebase.js":"12","C:\\Users\\rohitb\\Desktop\\VIIT\\savakhed\\src\\components\\card\\Card.js":"13","C:\\Users\\rohitb\\Desktop\\VIIT\\savakhed\\src\\container\\LekhakList\\Alphabets.jsx":"14","C:\\Users\\rohitb\\Desktop\\VIIT\\savakhed\\src\\container\\LekhakList\\Akshar.jsx":"15","C:\\Users\\rohitb\\Desktop\\VIIT\\savakhed\\src\\components\\list-section\\ListSection.jsx":"16","C:\\Users\\rohitb\\Desktop\\VIIT\\savakhed\\src\\components\\loading\\Loading.jsx":"17","C:\\Users\\rohitb\\Desktop\\VIIT\\savakhed\\src\\container\\details\\helmet.jsx":"18","C:\\Users\\rohitb\\Desktop\\VIIT\\savakhed\\src\\components\\input-section\\InputSection.jsx":"19","C:\\Users\\rohitb\\Desktop\\VIIT\\savakhed\\src\\components\\list-section\\explore.js":"20","C:\\Users\\rohitb\\Desktop\\VIIT\\savakhed\\src\\components\\list-section\\genre-card.jsx":"21","C:\\Users\\rohitb\\Desktop\\VIIT\\savakhed\\src\\container\\listing\\mulakshare.jsx":"22","C:\\Users\\rohitb\\Desktop\\VIIT\\savakhed\\src\\components\\intersection-image-search\\Image.jsx":"23","C:\\Users\\rohitb\\Desktop\\VIIT\\savakhed\\src\\components\\input-section\\InputBox.jsx":"24","C:\\Users\\rohitb\\Desktop\\VIIT\\savakhed\\src\\components\\switch\\Switch.jsx":"25","C:\\Users\\rohitb\\Desktop\\VIIT\\savakhed\\src\\components\\intersection-image-search\\useVisibility.js":"26","C:\\Users\\rohitb\\Desktop\\VIIT\\savakhed\\src\\components\\header\\Header.jsx":"27"},{"size":840,"mtime":1613395212691,"results":"28","hashOfConfig":"29"},{"size":362,"mtime":1608702693248,"results":"30","hashOfConfig":"29"},{"size":5201,"mtime":1613395212718,"results":"31","hashOfConfig":"29"},{"size":3431,"mtime":1627321532418,"results":"32","hashOfConfig":"29"},{"size":1889,"mtime":1618369233316,"results":"33","hashOfConfig":"29"},{"size":1177,"mtime":1613650178240,"results":"34","hashOfConfig":"29"},{"size":826,"mtime":1611580565445,"results":"35","hashOfConfig":"29"},{"size":7609,"mtime":1614443313006,"results":"36","hashOfConfig":"29"},{"size":6011,"mtime":1627535345625,"results":"37","hashOfConfig":"29"},{"size":8726,"mtime":1628505431861,"results":"38","hashOfConfig":"29"},{"size":9026,"mtime":1628505614993,"results":"39","hashOfConfig":"29"},{"size":1170,"mtime":1618745299301,"results":"40","hashOfConfig":"29"},{"size":667,"mtime":1627323498771,"results":"41","hashOfConfig":"29"},{"size":1061,"mtime":1611582146528,"results":"42","hashOfConfig":"29"},{"size":1167,"mtime":1611582146526,"results":"43","hashOfConfig":"29"},{"size":2831,"mtime":1627735487588,"results":"44","hashOfConfig":"29"},{"size":1496,"mtime":1618125257565,"results":"45","hashOfConfig":"29"},{"size":1651,"mtime":1614443313002,"results":"46","hashOfConfig":"29"},{"size":2355,"mtime":1627323020373,"results":"47","hashOfConfig":"29"},{"size":5285,"mtime":1613650178230,"results":"48","hashOfConfig":"29"},{"size":615,"mtime":1628507681923,"results":"49","hashOfConfig":"29"},{"size":521,"mtime":1611580565490,"results":"50","hashOfConfig":"29"},{"size":4065,"mtime":1628504169685,"results":"51","hashOfConfig":"29"},{"size":3561,"mtime":1618151576923,"results":"52","hashOfConfig":"29"},{"size":414,"mtime":1609657967491,"results":"53","hashOfConfig":"29"},{"size":905,"mtime":1613395212278,"results":"54","hashOfConfig":"29"},{"size":2692,"mtime":1628503180890,"results":"55","hashOfConfig":"29"},{"filePath":"56","messages":"57","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"58"},"p7tq4a",{"filePath":"59","messages":"60","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"58"},{"filePath":"61","messages":"62","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"58"},{"filePath":"63","messages":"64","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"58"},{"filePath":"65","messages":"66","errorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":"67","usedDeprecatedRules":"58"},{"filePath":"68","messages":"69","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"58"},{"filePath":"70","messages":"71","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"58"},{"filePath":"72","messages":"73","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"58"},{"filePath":"74","messages":"75","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"58"},{"filePath":"76","messages":"77","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"58"},{"filePath":"78","messages":"79","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"58"},{"filePath":"80","messages":"81","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"58"},{"filePath":"82","messages":"83","errorCount":0,"warningCount":4,"fixableErrorCount":0,"fixableWarningCount":0,"source":"84","usedDeprecatedRules":"58"},{"filePath":"85","messages":"86","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"58"},{"filePath":"87","messages":"88","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"58"},{"filePath":"89","messages":"90","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"58"},{"filePath":"91","messages":"92","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"58"},{"filePath":"93","messages":"94","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"95","usedDeprecatedRules":"58"},{"filePath":"96","messages":"97","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"58"},{"filePath":"98","messages":"99","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"58"},{"filePath":"100","messages":"101","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"102","messages":"103","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"58"},{"filePath":"104","messages":"105","errorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":"106","usedDeprecatedRules":"58"},{"filePath":"107","messages":"108","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"58"},{"filePath":"109","messages":"110","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"58"},{"filePath":"111","messages":"112","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"113","usedDeprecatedRules":"58"},{"filePath":"114","messages":"115","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"58"},"C:\\Users\\rohitb\\Desktop\\VIIT\\savakhed\\src\\index.js",[],["116","117"],"C:\\Users\\rohitb\\Desktop\\VIIT\\savakhed\\src\\reportWebVitals.js",[],"C:\\Users\\rohitb\\Desktop\\VIIT\\savakhed\\src\\serviceWorkerRegistration.js",[],"C:\\Users\\rohitb\\Desktop\\VIIT\\savakhed\\src\\App.js",[],"C:\\Users\\rohitb\\Desktop\\VIIT\\savakhed\\src\\components\\navbar\\mobileNav.jsx",["118","119"],"import React, { Component } from 'react'\r\nimport './mobileNav.css';\r\nimport searchSvg from \"../../svg/search.svg\"\r\nimport authorSvg2 from \"../../svg/lekhak.svg\"\r\nimport aboutSvg from \"../../svg/about.svg\"\r\nexport default class mobileNav extends Component {\r\n constructor(props){\r\n super(props);\r\n this.state = {\r\n isClicked : 1\r\n }\r\n }\r\n\r\n componentDidMount(){\r\n const href = window.location.href;\r\n if(href.includes(\"lekhakList\")){\r\n this.setState({isClicked:2})\r\n }\r\n else if(href.includes(\"aboutUs\")){\r\n this.setState({isClicked:3})\r\n }\r\n }\r\n\r\n render() {\r\n return (\r\n <div className=\"mobileNav\">\r\n {/* search */}\r\n <div className={this.state.isClicked === 1 ? \"mobileNav_clicked\" : \"mobileNav_unclicked\"}>\r\n <a href=\"#/search\" onClick={() => this.setState({ isClicked: 1 })}>\r\n <img src={searchSvg} className=\"searchSvg\" alt=\"Search Books\" />\r\n </a>\r\n </div>\r\n {/* lekhak list */}\r\n {/* <div className={this.state.isClicked === 2 ? \"mobileNav_clicked\" : \"mobileNav_unclicked\"}>\r\n <a href=\"#/lekhaklist\" onClick={() => this.setState({ isClicked: 2})}>\r\n <img src={authorSvg2} className=\"lekhakSvg\" alt=\"Lekhak List\" />\r\n </a>\r\n </div> */}\r\n {/* about */}\r\n {/* <div className={this.state.isClicked === 3 ? \"mobileNav_clicked\" : \"mobileNav_unclicked\"}>\r\n <a href=\"#/aboutus\" onClick={() => this.setState({ isClicked: 3})}>\r\n <img src={aboutSvg} className=\"lekhakSvg\" alt=\"About US\" />\r\n </a>\r\n </div> */}\r\n </div>\r\n )\r\n }\r\n}\r\n","C:\\Users\\rohitb\\Desktop\\VIIT\\savakhed\\src\\components\\recommendation\\Recommendation.jsx",[],"C:\\Users\\rohitb\\Desktop\\VIIT\\savakhed\\src\\components\\about-us\\AboutUs.jsx",[],"C:\\Users\\rohitb\\Desktop\\VIIT\\savakhed\\src\\container\\lekhakBooks\\LekhakBooks.jsx",[],"C:\\Users\\rohitb\\Desktop\\VIIT\\savakhed\\src\\container\\LekhakList\\LekhakList.jsx",[],"C:\\Users\\rohitb\\Desktop\\VIIT\\savakhed\\src\\container\\listing\\Listing.jsx",[],"C:\\Users\\rohitb\\Desktop\\VIIT\\savakhed\\src\\container\\details\\Details.jsx",[],"C:\\Users\\rohitb\\Desktop\\VIIT\\savakhed\\src\\firebase.js",[],"C:\\Users\\rohitb\\Desktop\\VIIT\\savakhed\\src\\components\\card\\Card.js",["120","121","122","123"],"import React from \"react\";\r\nimport {\r\n\tCard, CardImg, CardText, CardBody,\r\n\tCardTitle, CardSubtitle, Button\r\n } from 'reactstrap';\r\n\r\nfunction Card_Test(props) {\r\n\treturn (\r\n\t\t// <div className={props.whichCard === \"google\" ? \"cardGoogle\" : \"card\"}>\r\n\t\t// \t<div className=\"heading\">{props.bookName}</div>\r\n\t\t// \t{props.bookName !== \"\" && <hr />}\r\n\t\t// \t<div className=\"description\">{props.children}</div>\r\n\t\t// </div>\r\n\r\n<Card className=\"m-2\">\r\n<CardBody>\r\n <CardTitle tag=\"h5\">{props.bookName}</CardTitle>\r\n \r\n {props.bookName !== \"\" && <hr />}\r\n\t\t\t<div className=\"description\">{props.children}</div>\r\n</CardBody>\r\n</Card>\r\n\r\n\t);\r\n}\r\n\r\nexport default Card_Test;\r\n","C:\\Users\\rohitb\\Desktop\\VIIT\\savakhed\\src\\container\\LekhakList\\Alphabets.jsx",[],"C:\\Users\\rohitb\\Desktop\\VIIT\\savakhed\\src\\container\\LekhakList\\Akshar.jsx",[],"C:\\Users\\rohitb\\Desktop\\VIIT\\savakhed\\src\\components\\list-section\\ListSection.jsx",[],"C:\\Users\\rohitb\\Desktop\\VIIT\\savakhed\\src\\components\\loading\\Loading.jsx",[],"C:\\Users\\rohitb\\Desktop\\VIIT\\savakhed\\src\\container\\details\\helmet.jsx",["124"],"import React from \"react\";\r\nimport { Helmet } from \"react-helmet\";\r\n//import image from '../../svg/reading192.png'; \r\n\r\nexport default function HelmetMetaData(props) {\r\n //console.log(props)\r\n let currentUrl = window.location.href;\r\n let quote = props.quote !== undefined ? props.quote : props.bookName;\r\n let title = props.bookName;\r\n //let image = props.image != \" \" ? props.image : \"https://storage.googleapis.com/cmperstribe_storage_usha/Banner/IMG_3640.JPG\";\r\n let description = props.description !== undefined ? props.description : props.bookName;\r\n return (\r\n <Helmet>\r\n <meta property=\"og:title\" content={title} />\r\n <meta property=\"og:image\" content=\"https://i.pinimg.com/originals/e8/9c/7c/e89c7ca5e17e78904990bda912b16644.jpg\" />\r\n <meta content=\"image/*\" property=\"og:image:type\" />\r\n <title>{title}</title>\r\n <meta charset=\"utf-8\" />\r\n <meta property=\"url\" content={currentUrl} />\r\n <meta property=\"title\" content={title} />\r\n <meta property=\"quote\" content={quote} />\r\n {/* <link rel=\"apple-touch-icon\" href=\"\" data-react-helmet=\"true\" /> */}\r\n <meta name=\"description\" content={title} />\r\n {/* <meta rel=\"icon\" href=\"https://w7.pngwing.com/pngs/808/1018/png-transparent-e-book-computer-icons-reading-book-icon-angle-reading-logo-thumbnail.png\" /> */}\r\n <meta property=\"og:url\" content={currentUrl} />\r\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no\" />\r\n </Helmet>\r\n );\r\n}\r\n","C:\\Users\\rohitb\\Desktop\\VIIT\\savakhed\\src\\components\\input-section\\InputSection.jsx",[],"C:\\Users\\rohitb\\Desktop\\VIIT\\savakhed\\src\\components\\list-section\\explore.js",[],"C:\\Users\\rohitb\\Desktop\\VIIT\\savakhed\\src\\components\\list-section\\genre-card.jsx",[],"C:\\Users\\rohitb\\Desktop\\VIIT\\savakhed\\src\\container\\listing\\mulakshare.jsx",[],"C:\\Users\\rohitb\\Desktop\\VIIT\\savakhed\\src\\components\\intersection-image-search\\Image.jsx",["125","126"],"import React, { useRef, useState, useEffect } from \"react\";\r\nimport { storage, collection } from \"../../firebase\";\r\nimport useVisibility from \"./useVisibility\";\r\nimport bookimage from \"./coming-soon.jpg\";\r\n\r\nfunction Image({ type, alt, book, setCurrentDetails, ...props }) {\r\n\tconst [inView, setInView] = useState(false);\r\n\tconst imgRef = useRef(null);\r\n\tconst [Img, setImg] = useState(bookimage);\r\n\r\n\tconst API_KEY = \"AIzaSyB1TtjgdaS-JyFVHFmWz_OMXhg8ft5Tbpw\";\r\n\tconst AUTHORS_ENGINE = \"af35ce6be8762aee9\";\r\n\tconst BOOKS_ENGINE = \"b322c10bd42a76344\";\r\n\r\n\tconst SEARCH_ENGINE = type === \"author\" ? AUTHORS_ENGINE : BOOKS_ENGINE;\r\n\tconst STORAGE_LOCATION = type === \"author\" ? \"author\" : \"book-covers\";\r\n\tconst storageRef = storage.ref();\r\n\r\n\r\n\r\n\r\n\tconst update = async (url) => {\r\n\t\tconst docRef = (\r\n\t\t\tawait collection.where(\"dakhalId\", \"==\", book[\"dakhalId\"]).get()\r\n\t\t).docs[0].id;\r\n\t\tawait collection\r\n\t\t\t.doc(docRef)\r\n\t\t\t.update({ imageURL: url });\r\n\t};\r\n\r\n\tconst upload = (file, filename) => {\r\n\t\tvar metadata = {\r\n\t\t\tcontentType: \"image/jpg\",\r\n\t\t};\r\n\t\tlet uploadTask = storageRef\r\n\t\t\t.child(`${STORAGE_LOCATION}/${filename.replaceAll(\" \", \"_\")}`)\r\n\t\t\t.put(file, metadata);\r\n\r\n\t\tuploadTask.on(\r\n\t\t\t\"state_changed\",\r\n\t\t\t(snapshot) => {\r\n\t\t\t\tvar progress =\r\n\t\t\t\t\t(snapshot.bytesTransferred / snapshot.totalBytes) * 100;\r\n\t\t\t\t\tconsole.log(progress)\r\n\t\t\t},\r\n\t\t\t(error) => {\r\n\t\t\t\tconsole.log(error);\r\n\t\t\t},\r\n\t\t\t() => {\r\n\t\t\t\tuploadTask.snapshot.ref.getDownloadURL().then((downloadURL) => {\r\n\t\t\t\t\tconsole.log(\"File available at\", downloadURL);\r\n\t\t\t\t\tupdate(downloadURL);\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t);\r\n\t};\r\n\r\n\tconst downloadFile = (url, filename) => {\r\n\t\tvar xhr = new XMLHttpRequest();\r\n\t\txhr.responseType = \"blob\";\r\n\t\txhr.onload = function () {\r\n\t\t\tconsole.log(xhr.response);\r\n\t\t\tupload(xhr.response, filename);\r\n\t\t};\r\n\t\txhr.open(\"GET\", url);\r\n\t\txhr.send();\r\n\t};\r\n\r\n\tconst getImgURL = (q) => {\r\n\r\n\t\tlet url = \"\";\r\n\t\tfetch(`https://www.googleapis.com/customsearch/v1/siterestrict?cx=${SEARCH_ENGINE}&q=${encodeURI(\r\n\t\t\tq\r\n\t\t)}&key=${API_KEY}`, {mode: 'cors'}).then((resp)=>(resp.json())).then((json)=>{\r\n\r\n\t\t\tconst { items = [] } = json;\r\n\t\t\tif(!items.length) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\ttry {\r\n\t\t\t\t// url = items[0].image.thumbnailLink;\r\n\t\t\t\turl = items[0].pagemap.cse_thumbnail[0].src\r\n\t\t\t\tconsole.log(\"URL result : \", url);\r\n\t\t\t\tdownloadFile(url, q);\r\n\t\t\t\tsetCurrentDetails({...book, imageURL: url})\r\n\t\t\t\tsetImg(url);\r\n\t\t\t} catch (error) {\r\n\t\t\t\tconsole.log(\"image set to default\");\r\n\t\t\t\tsetImg(bookimage);\r\n\t\t\t\tconsole.log(error);\r\n\t\t\t}\r\n\t\t}).catch((error)=>{\r\n\t\t\tconsole.log(\"image set to default\");\r\n\t\t\t\tsetImg(bookimage);\r\n\t\t\t\tconsole.log(error);\r\n\t\t})\r\n\t\t// const xhr = new XMLHttpRequest();\r\n\t\t// let url = \"\";\r\n\t\t// xhr.addEventListener(\"load\", () => {\r\n\t\t// \tconst json = JSON.parse(xhr.responseText);\r\n\t\t// \tconst { items = [] } = json;\r\n\t\t// \ttry {\r\n\t\t// \t\t// url = items[0].image.thumbnailLink;\r\n\t\t// \t\turl = items[0].pagemap.cse_thumbnail[0].src\r\n\t\t// \t\tconsole.log(\"URL result : \", url);\r\n\t\t// \t\tdownloadFile(url, q);\r\n\t\t// \t\tsetImg(url);\r\n\t\t// \t} catch (error) {\r\n\t\t// \t\tconsole.log(\"image set to default\");\r\n\t\t// \t\tsetImg(bookimage);\r\n\t\t// \t\tconsole.log(error);\r\n\t\t// \t}\r\n\t\t// });\r\n\t\t// xhr.open(\r\n\t\t// \t\"GET\",\r\n\t\t// \t`https://www.googleapis.com/customsearch/v1?cx=${SEARCH_ENGINE}&q=${encodeURI(\r\n\t\t// \t\tq\r\n\t\t// \t)}&key=${API_KEY}`\r\n\t\t// );\r\n\t\t// xhr.send();\r\n\t};\r\n\r\n\r\n\tuseVisibility(imgRef, () => {\r\n\t\tsetInView(true);\r\n\t\tif (book !== undefined) {\r\n\t\t\tif (book[\"imageURL\"]) {\r\n\t\t\t\tconsole.log(\"1\");\r\n\t\t\t\tsetImg(book[\"imageURL\"]);\r\n\t\t\t} else {\r\n\t\t\t\tconsole.log(\"2\");\r\n\t\t\t\tconsole.log(\r\n\t\t\t\t\t\"searching for \",\r\n\t\t\t\t\tbook[\"pustakName\"].join(\" \") +\r\n\t\t\t\t\t\t\" \" +\r\n\t\t\t\t\t\tbook[\"lekhak\"].join(\" \")\r\n\t\t\t\t);\r\n\t\t\t\t// getImgURL(\r\n\t\t\t\t// \tbook[\"pustakName\"].join(\" \") +\r\n\t\t\t\t// \t\t\" \" +\r\n\t\t\t\t// \t\tbook[\"lekhak\"].join(\" \")\r\n\t\t\t\t// );\r\n\t\t\t}\r\n\t\t\treturn () => {};\r\n\t\t}\r\n\t});\r\n\r\n\treturn (\r\n\t\t<div className=\"image-div\" ref={imgRef}>\r\n\t\t\t{inView ? <img alt={alt} src={Img} {...props} /> : <div className=\"book-cover shine\" > </div>}\r\n\t\t</div>\r\n\t);\r\n}\r\n\r\nexport default Image;\r\n","C:\\Users\\rohitb\\Desktop\\VIIT\\savakhed\\src\\components\\input-section\\InputBox.jsx",[],"C:\\Users\\rohitb\\Desktop\\VIIT\\savakhed\\src\\components\\switch\\Switch.jsx",[],"C:\\Users\\rohitb\\Desktop\\VIIT\\savakhed\\src\\components\\intersection-image-search\\useVisibility.js",["127"],"import { useEffect } from \"react\";\r\n\r\n// This customEffect will invoke the callback immediately when the element mention in ref is with viewport i.e. root\r\n// intersectionRatio >= 0.1 implies execute callback as soon as element is in view port\r\nconst useVisibility = (ref, callback, options = {}) => {\r\n\tconst { root = null, rootMargin = \"0px\" } = options;\r\n\tuseEffect(() => {\r\n\t\tif (window.IntersectionObserver) {\r\n\t\t\tconst observer = new IntersectionObserver(\r\n\t\t\t\t(entries) => {\r\n\t\t\t\t\tentries.forEach((entry) => {\r\n\t\t\t\t\t\tif (entry.intersectionRatio >= 0.1) {\r\n\t\t\t\t\t\t\tcallback();\r\n\t\t\t\t\t\t\tobserver.unobserve(entry.target);\r\n\t\t\t\t\t\t\tobserver.disconnect();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\troot,\r\n\t\t\t\t\trootMargin,\r\n\t\t\t\t\tthreshold: [0.1],\r\n\t\t\t\t}\r\n\t\t\t);\r\n\r\n\t\t\tif (ref.current) {\r\n\t\t\t\tobserver.observe(ref.current);\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tcallback();\r\n\t\t}\r\n\t}, []);\r\n};\r\n\r\nexport default useVisibility;\r\n","C:\\Users\\rohitb\\Desktop\\VIIT\\savakhed\\src\\components\\header\\Header.jsx",[],{"ruleId":"128","replacedBy":"129"},{"ruleId":"130","replacedBy":"131"},{"ruleId":"132","severity":1,"message":"133","line":4,"column":8,"nodeType":"134","messageId":"135","endLine":4,"endColumn":18},{"ruleId":"132","severity":1,"message":"136","line":5,"column":8,"nodeType":"134","messageId":"135","endLine":5,"endColumn":16},{"ruleId":"132","severity":1,"message":"137","line":3,"column":8,"nodeType":"134","messageId":"135","endLine":3,"endColumn":15},{"ruleId":"132","severity":1,"message":"138","line":3,"column":17,"nodeType":"134","messageId":"135","endLine":3,"endColumn":25},{"ruleId":"132","severity":1,"message":"139","line":4,"column":13,"nodeType":"134","messageId":"135","endLine":4,"endColumn":25},{"ruleId":"132","severity":1,"message":"140","line":4,"column":27,"nodeType":"134","messageId":"135","endLine":4,"endColumn":33},{"ruleId":"132","severity":1,"message":"141","line":11,"column":9,"nodeType":"134","messageId":"135","endLine":11,"endColumn":20},{"ruleId":"132","severity":1,"message":"142","line":1,"column":35,"nodeType":"134","messageId":"135","endLine":1,"endColumn":44},{"ruleId":"132","severity":1,"message":"143","line":69,"column":8,"nodeType":"134","messageId":"135","endLine":69,"endColumn":17},{"ruleId":"144","severity":1,"message":"145","line":32,"column":5,"nodeType":"146","endLine":32,"endColumn":7,"suggestions":"147"},"no-native-reassign",["148"],"no-negated-in-lhs",["149"],"no-unused-vars","'authorSvg2' is defined but never used.","Identifier","unusedVar","'aboutSvg' is defined but never used.","'CardImg' is defined but never used.","'CardText' is defined but never used.","'CardSubtitle' is defined but never used.","'Button' is defined but never used.","'description' is assigned a value but never used.","'useEffect' is defined but never used.","'getImgURL' is assigned a value but never used.","react-hooks/exhaustive-deps","React Hook useEffect has missing dependencies: 'callback', 'ref', 'root', and 'rootMargin'. Either include them or remove the dependency array. If 'callback' changes too often, find the parent component that defines it and wrap that definition in useCallback.","ArrayExpression",["150"],"no-global-assign","no-unsafe-negation",{"desc":"151","fix":"152"},"Update the dependencies array to be: [callback, ref, root, rootMargin]",{"range":"153","text":"154"},[862,864],"[callback, ref, root, rootMargin]"]