-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintcache
1 lines (1 loc) · 24.7 KB
/
.eslintcache
1
[{"D:\\Ultimart\\client\\src\\index.js":"1","D:\\Ultimart\\client\\src\\reportWebVitals.js":"2","D:\\Ultimart\\client\\src\\App.js":"3","D:\\Ultimart\\client\\src\\Card.jsx":"4","D:\\Ultimart\\client\\src\\Sidebar.jsx":"5","D:\\Ultimart\\client\\src\\Navbar.jsx":"6","D:\\Ultimart\\client\\src\\Footer.jsx":"7","D:\\Ultimart\\client\\src\\AboutProduct.jsx":"8","D:\\Ultimart\\client\\src\\userLog.jsx":"9","D:\\Ultimart\\client\\src\\UserLog.jsx":"10","D:\\Ultimart\\client\\src\\CartUser.jsx":"11","D:\\Ultimart\\client\\src\\Cartcard.jsx":"12","D:\\Ultimart\\client\\src\\Signup.jsx":"13"},{"size":1027,"mtime":1612186426242,"results":"14","hashOfConfig":"15"},{"size":362,"mtime":499162500000,"results":"16","hashOfConfig":"15"},{"size":997,"mtime":1620299532900,"results":"17","hashOfConfig":"15"},{"size":2903,"mtime":1612681114313,"results":"18","hashOfConfig":"15"},{"size":3298,"mtime":1611828622850,"results":"19","hashOfConfig":"15"},{"size":3336,"mtime":1612269695930,"results":"20","hashOfConfig":"15"},{"size":2815,"mtime":1611925755984,"results":"21","hashOfConfig":"15"},{"size":10183,"mtime":1640283176357,"results":"22","hashOfConfig":"15"},{"size":1750,"mtime":1612075785092,"results":"23","hashOfConfig":"24"},{"size":2365,"mtime":1612280908625,"results":"25","hashOfConfig":"15"},{"size":1462,"mtime":1612856143430,"results":"26","hashOfConfig":"15"},{"size":1258,"mtime":1612853672637,"results":"27","hashOfConfig":"15"},{"size":2237,"mtime":1612186484286,"results":"28","hashOfConfig":"15"},{"filePath":"29","messages":"30","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"31"},"k355bf",{"filePath":"32","messages":"33","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"31"},{"filePath":"34","messages":"35","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"31"},{"filePath":"36","messages":"37","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"31"},{"filePath":"38","messages":"39","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"31"},{"filePath":"40","messages":"41","errorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":"42","usedDeprecatedRules":"31"},{"filePath":"43","messages":"44","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"45","usedDeprecatedRules":"31"},{"filePath":"46","messages":"47","errorCount":0,"warningCount":4,"fixableErrorCount":0,"fixableWarningCount":0,"source":"48","usedDeprecatedRules":"31"},{"filePath":"49","messages":"50","errorCount":2,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},"uoqttt",{"filePath":"51","messages":"52","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"31"},{"filePath":"53","messages":"54","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"31"},{"filePath":"55","messages":"56","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"57"},{"filePath":"58","messages":"59","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"31"},"D:\\Ultimart\\client\\src\\index.js",[],["60","61"],"D:\\Ultimart\\client\\src\\reportWebVitals.js",[],"D:\\Ultimart\\client\\src\\App.js",[],"D:\\Ultimart\\client\\src\\Card.jsx",[],"D:\\Ultimart\\client\\src\\Sidebar.jsx",[],"D:\\Ultimart\\client\\src\\Navbar.jsx",["62","63"],"import React from 'react';\r\n// import {useHistory} from 'react-router-dom';\r\nimport logo from './logo.png';\r\nimport flag from './flag.png';\r\nimport axios from 'axios';\r\nconst Navbar = () => {\r\n\r\n const signIn =()=>{\r\n // axios.post('http://localhost:5000/members/sign-in', studentObject)\r\n axios.get('http://localhost:5000/sign')\r\n .then((res) => {\r\n \r\n console.log(res.data)\r\n });\r\n }\r\n\r\n const toCart = ()=>{\r\n var isuserLogged = sessionStorage.getItem('user');\r\n if(isuserLogged){\r\n window.location.assign(\"/CartUser\");\r\n }\r\n else{\r\n alert(\"Kindly sign in first\");\r\n }\r\n }\r\n\r\n return (\r\n <>\r\n <div id=\"containNav\">\r\n <div id=\"navLogo\">\r\n <img src={logo} alt=\"logo\" style={{ width: \"100%\", height: \"100%\" }} />\r\n </div>\r\n <div id=\"navAddress\">\r\n <a href=\"/\" class=\"navAddressLink\">\r\n <i class=\"fa fa-map-marker\" aria-hidden=\"true\"></i><br />\r\n <span style={{fontWeight:\"bold\",fontSize:\"13px\"}}>Select your location</span>\r\n </a>\r\n </div>\r\n <div id=\"navSearch\">\r\n <select name=\"Mobiles\">\r\n <option>Mobiles & Accesories</option>\r\n <option>Delhi</option>\r\n <option>Delhi</option>\r\n <option>Delhi</option>\r\n <option>Delhi</option>\r\n <option>Delhi</option>\r\n <option>Delhi</option>\r\n <option>Delhi</option>\r\n <option>Delhi</option>\r\n </select>\r\n <input type=\"text\" placeholder=\"Search something...\" id=\"navSearchbar\" />\r\n <button id=\"navSearchBtn\"><i class=\"fa fa-search\" aria-hidden=\"true\"></i></button>\r\n </div>\r\n \r\n <div id=\"navSignin\">\r\n <a href=\"/UserLog\" class=\"navAddressLink\">\r\n <span style={{fontSize:\"13px\"}}>Sign in</span><br/>\r\n <span style={{fontSize:\"16px\",fontWeight:\"bold\"}}>Account</span>\r\n </a>\r\n </div>\r\n \r\n <div id=\"navReturn\">\r\n <a href=\"/\" class=\"navAddressLink\">\r\n <span style={{fontSize:\"13px\"}}>Return</span><br/>\r\n <span style={{fontSize:\"16px\",fontWeight:\"bold\"}}>& Orders</span>\r\n </a>\r\n </div>\r\n <div id=\"navCart\">\r\n <a onClick={toCart}>\r\n <i class=\"fa fa-cart-plus\" aria-hidden=\"true\" style={{fontSize:\"49px\",color:\"white\"}}></i>\r\n </a>\r\n </div>\r\n\r\n <div id=\"navFlag\">\r\n <a href=\"/\" class=\"navAddressLink\">\r\n <img src={flag} style={{width:\"100%\",height:\"100%\"}} alt=\"Country\"></img>\r\n <span style={{fontSize:\"17px\",float:\"right\",fontWeight:\"bold\"}}>IN</span>\r\n </a>\r\n </div>\r\n\r\n </div>\r\n </>\r\n )\r\n}\r\nexport default Navbar;","D:\\Ultimart\\client\\src\\Footer.jsx",["64"],"import React from 'react';\r\nimport logo from './logo.png';\r\n\r\nconst Footer = ()=>{\r\n return(\r\n <>\r\n <div id=\"containFooter\">\r\n \r\n <div id=\"footer2\">\r\n <ul>\r\n <h4 class=\"containFooterh6\">About Us</h4>\r\n <a class=\"navAddressLink\" href=\"/\"><li>Careers</li></a>\r\n <a class=\"navAddressLink\" href=\"/\"><li>Press Releases</li></a>\r\n <a class=\"navAddressLink\" href=\"/\"><li>Ultimart Cares</li></a>\r\n <a class=\"navAddressLink\" href=\"/\"><li>Gift a Smile</li></a>\r\n </ul>\r\n </div>\r\n <div id=\"footer3\">\r\n \r\n <ul>\r\n <h4 class=\"containFooterh6\">Connect with Us</h4>\r\n <a class=\"navAddressLink\" href=\"/\"><li>Facebook</li></a>\r\n <a class=\"navAddressLink\" href=\"/\"><li>Twitter</li></a>\r\n <a class=\"navAddressLink\" href=\"/\"><li>Instagram</li></a>\r\n </ul>\r\n </div>\r\n <div id=\"footer4\">\r\n \r\n <ul>\r\n <h4 class=\"containFooterh6\">Make Money with Us</h4>\r\n <a class=\"navAddressLink\" href=\"/\"><li>Sell on Ultimart</li></a>\r\n <a class=\"navAddressLink\" href=\"/\"><li>Sell under Ultimart Accelerator</li></a>\r\n <a class=\"navAddressLink\" href=\"/\"><li>Become an Affiliate</li></a>\r\n <a class=\"navAddressLink\" href=\"/\"><li>Fulfilment by Ultimart</li></a>\r\n <a class=\"navAddressLink\" href=\"/\"><li>Advertise Your Product</li></a>\r\n <a class=\"navAddressLink\" href=\"/\"><li>Ultimart Pay on Merchants</li></a>\r\n <a class=\"navAddressLink\" href=\"/\"><li>See More Make Money with Us.</li></a>\r\n </ul>\r\n </div>\r\n\r\n <div id=\"footer1\">\r\n \r\n <ul>\r\n <h4 class=\"containFooterh6\">Let Us Help You</h4>\r\n <a class=\"navAddressLink\" href=\"/\"><li>Your Account</li></a>\r\n <a class=\"navAddressLink\" href=\"/\"><li>Returns Centre</li></a>\r\n <a class=\"navAddressLink\" href=\"/\"><li>100% Purchase Protection</li></a>\r\n <a class=\"navAddressLink\" href=\"/\"><li>Ultimart App Download</li></a>\r\n <a class=\"navAddressLink\" href=\"/\"><li>Ultimart Assistant Download</li></a>\r\n <a class=\"navAddressLink\" href=\"/\"><li>Help</li></a>\r\n </ul>\r\n </div>\r\n \r\n </div>\r\n <div style={{backgroundColor:\"black\",padding:\"20px\"}}>\r\n <div style={{width:\"65px\",margin:\"auto\"}}>\r\n <img src={logo}/>\r\n </div>\r\n <p style={{color:\"white\",textAlign:\"center\"}}>© 1996-2021, Ultimart.com, Inc. or its affiliates</p>\r\n </div>\r\n </>\r\n )\r\n}\r\nexport default Footer;","D:\\Ultimart\\client\\src\\AboutProduct.jsx",["65","66","67","68"],"import React, { useEffect, useState } from 'react';\r\nimport Navbar from './Navbar';\r\nimport Footer from './Footer';\r\nimport Image from './cover.jpg';\r\nimport axios from 'axios';\r\nconst AboutProduct = (props) => {\r\n const [Name, setName] = useState();\r\n const [Price, setPrice] = useState();\r\n const [Availability, setAvailability] = useState();\r\n const [Color, setColor] = useState();\r\n const [user, setUser] = useState();\r\n const [img,setImg] = useState();\r\n useEffect(() => {\r\n window.scrollTo(0, 0);\r\n\r\n const loggedInUser = sessionStorage.getItem(\"user\");\r\n if (loggedInUser) {\r\n // const foundUser = JSON.parse(loggedInUser);\r\n setUser(loggedInUser);\r\n\r\n }\r\n // const ID = {\r\n // productID: props.location.state\r\n // };\r\n // console.log(\"state\" + props.location.state);\r\n axios.get('http://localhost:5000/members/AboutProduct', {\r\n params: {\r\n ID: props.location.state\r\n \r\n }\r\n })\r\n .then(res => {\r\n console.log(res)\r\n // setAvailability(res.data.results.availability);\r\n setColor(res.data.results.color);\r\n setName(res.data.results.productName);\r\n setPrice(res.data.results.productPrice);\r\n setImg(res.data.results.pic);\r\n });\r\n\r\n }, [])\r\n\r\n const cartAdd = () => {\r\n if (user) {\r\n console.log(\"signed in\");\r\n axios.get('http://localhost:5000/members/AddtoCart', {\r\n params: {\r\n user: sessionStorage.getItem('user'),\r\n productID: props.location.state,\r\n // cartID: sessionStorage.getItem('cartId')\r\n }\r\n })\r\n .then(res => {\r\n alert(\"Added to cart\");\r\n });\r\n }\r\n else {\r\n alert(\"Kindly Sign in to your account first\");\r\n }\r\n }\r\n\r\n return (\r\n <>\r\n <Navbar />\r\n <div>\r\n <div style={{ display: \"flex\" }}>\r\n <div style={{ width: \"33%\", height: \"400px\" }}>\r\n <img src={img} style={{padding:\"20px\"}} />\r\n </div>\r\n <div style={{ width: \"45%\" }}>\r\n <h3>{Name}</h3>\r\n <span>Brand: UltimartBasics</span>\r\n <p className=\"card-text\"><span className=\"fa fa-star checked\"></span><span className=\"fa fa-star checked\"></span><span className=\"fa fa-star checked\"></span><span className=\"fa fa-star checked\"></span><span className=\"fa fa-star checked\"></span></p>\r\n <span style={{ textDecoration: \"line-through\" }}>M.R.P.: ₹ 1,295.00 </span><br />\r\n <span style={{ color: \"red\" }}>Price: ₹ {Price}</span>\r\n <p>Delivery by: <span style={{ fontWeight: \"bold\" }}>Wednesday, Feb 4</span></p>\r\n <div style={{ display: \"flex\", justifyContent: \"start\" }}>\r\n <div className=\"aboutProductCardContain\">\r\n <i className=\"fa fa-credit-card\" aria-hidden=\"true\"></i>\r\n <p className=\"aboutProductp\">Pay on Delivery</p>\r\n </div>\r\n <div className=\"aboutProductCardContain\">\r\n <i className=\"fa fa-repeat\" aria-hidden=\"true\"></i>\r\n <p className=\"aboutProductp\">10 Days Replacement Only</p>\r\n </div>\r\n <div className=\"aboutProductCardContain\">\r\n <i className=\"fa fa-truck\" aria-hidden=\"true\"></i>\r\n <p className=\"aboutProductp\">Ultimart Delivered</p>\r\n </div>\r\n <div className=\"aboutProductCardContain\">\r\n <i className=\"fa fa-shield\" aria-hidden=\"true\"></i>\r\n <p className=\"aboutProductp\">1 Year Warranty</p>\r\n </div>\r\n </div>\r\n\r\n <h4 style={{ color: \"red\" }}>{Availability}.</h4>\r\n <span>Sold by <span style={{ color: \"blueviolet\" }}>Cloudtail India</span> and <span style={{ color: \"blueviolet\" }}>Fulfilled by Ultimart.</span></span><br />\r\n <span>Color: </span><span style={{ fontWeight: \"bold\" }}>{Color}</span><br /><br />\r\n <ul className=\"aboutProductul\">\r\n <li className=\"aboutProductli\">Samsung MFi certified charging and syncing cable for your Samsung devices</li>\r\n <li className=\"aboutProductli\">Samsung MFi certification ensures complete charge and sync compatibility with iPhone X / 8 Plus / 8 / 7 Plus / 7 / 6s Plus / 6s / 6 Plus / 6 / 5s / 5c / 5 / iPad Pro / iPad Air / Air 2 / iPad mini / mini 2 / mini 4 / iPad 4th gen / iPod Touch 5th gen / iPod nano 7th gen and Beats Pill+</li>\r\n <li className=\"aboutProductli\">Connects to your iPhone, iPad, or iPod with Lightning Connector and charges/syncs by connecting the USB connector into your wall charger or computer; small connector head fits most cases</li>\r\n <li className=\"aboutProductli\">High-quality copper wires promote maximum signal quality and strength</li>\r\n <li className=\"aboutProductli\">Durable nylon fiber cloth for protection, strength, and flexibility</li>\r\n <li className=\"aboutProductli\">An additional layer of protection has been added to the Lightning and USB ends to improve durability and reduce fraying; Cables have been tested to bend 95-degrees 4,000 times</li>\r\n <li className=\"aboutProductli\">For customer service and warranty related queries please contact_us: [1800-419-0416] (available Monday to Saturday from 9:30 AM to 6:00 PM except national holidays)</li>\r\n </ul>\r\n <div id=\"aboutProducttable\">\r\n <table style={{ width: \"100%\" }}>\r\n <tbody>\r\n <tr>\r\n <th>Brand</th>\r\n <th>Ultimart</th>\r\n <th>Age</th>\r\n </tr>\r\n <tr>\r\n <td>Manufacturer</td>\r\n <td>Luxshare Precision Limited, Luxshare Precision Limited No.17 Kuiqing road, Qinghuang Industrial Zone,Qingxi Town, Dongguan City, Guangdong,China+86 13510109455</td>\r\n <td>50</td>\r\n </tr>\r\n <tr>\r\n <td>Model Name</td>\r\n <td>Nylon Braided</td>\r\n <td>50</td>\r\n </tr>\r\n <tr>\r\n <td>Model Year</td>\r\n <td>2017</td>\r\n <td>94</td>\r\n </tr>\r\n <tr>\r\n <td>Product Dimensions</td>\r\n <td>11 x 4.98 x 1.5 cm; 20.13 Grams</td>\r\n <td>94</td>\r\n </tr>\r\n <tr>\r\n <td>Item model number</td>\r\n <td>L6LMF009-CS-R</td>\r\n <td>94</td>\r\n </tr>\r\n <tr>\r\n <td>Compatible Devices</td>\r\n <td>Samsung</td>\r\n <td>94</td>\r\n </tr>\r\n <tr>\r\n <td>Material</td>\r\n <td>Nylon</td>\r\n <td>94</td>\r\n </tr>\r\n <tr>\r\n <td>Country of Origin</td>\r\n <td>India</td>\r\n <td>94</td>\r\n </tr>\r\n <tr>\r\n <td>Item Weight</td>\r\n <td>20.17 g</td>\r\n <td>94</td>\r\n </tr>\r\n\r\n\r\n </tbody>\r\n </table>\r\n </div>\r\n </div>\r\n <div style={{ width: \"20%\" }}>\r\n <div id=\"aboutProductcontainBuy\">\r\n <button onClick={cartAdd} class=\"aboutProductbtns\"><i class=\"fa fa-cart-plus\" aria-hidden=\"true\"></i> Add to Cart</button>\r\n <br />\r\n <br />\r\n <button class=\"aboutProductbtns\"> Buy Now</button>\r\n <p><i class=\"fa fa-lock\" aria-hidden=\"true\"></i> Secure Transaction</p>\r\n <i class=\"fa fa-map-marker\" aria-hidden=\"true\"></i><input type=\"text\" id=\"aboutProductinput\" placeholder=\"Select delivery location\" />\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <br />\r\n <Footer />\r\n </>\r\n )\r\n}\r\nexport default AboutProduct;","D:\\Ultimart\\client\\src\\userLog.jsx",["69","70"],"D:\\Ultimart\\client\\src\\UserLog.jsx",[],"D:\\Ultimart\\client\\src\\CartUser.jsx",[],"D:\\Ultimart\\client\\src\\Cartcard.jsx",["71"],"import React from 'react';\r\nimport cover from './cover.jpg';\r\nconst CartCard =(props) =>{\r\n return(\r\n <>\r\n <div class=\"cartCard\">\r\n <div class=\"cartCardinner\">\r\n <div className=\"card mb-2\" style={{maxHeight:\"auto\",borderBottom:\"solid\",borderLeft:\"none\",borderRight:\"none\",borderTop:\"none\"}}>\r\n <div className=\"row g-0\">\r\n <div className=\"col-md-4\">\r\n <img src={props.pic} alt=\"...\" style={{width:\"100%\",padding:\"28px\"}}/>\r\n </div>\r\n <div className=\"col-md-8\">\r\n <div className=\"card-body\">\r\n <h5 className=\"card-title\">{props.name}</h5>\r\n <small>Sold by FOXIT</small><br/>\r\n <small className=\"text\">Get it by<span style={{fontWeight:\"700\"}}> Tomorrow,</span></small>\r\n <p className=\"card-text\" style={{fontWeight:\"700\"}}>January 29</p>\r\n <p> <i className=\"fa fa-truck\" aria-hidden=\"true\"></i> Ultimart Delivered.</p>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div id=\"cartcardPrice\">\r\n <span style={{fontSize:\"x-large\"}}>₹ {props.price}</span>\r\n </div>\r\n </div>\r\n </>\r\n )\r\n}\r\nexport default CartCard;","D:\\Ultimart\\client\\src\\Signup.jsx",[],{"ruleId":"72","replacedBy":"73"},{"ruleId":"74","replacedBy":"75"},{"ruleId":"76","severity":1,"message":"77","line":8,"column":11,"nodeType":"78","messageId":"79","endLine":8,"endColumn":17},{"ruleId":"80","severity":1,"message":"81","line":69,"column":21,"nodeType":"82","endLine":69,"endColumn":41},{"ruleId":"83","severity":1,"message":"84","line":57,"column":13,"nodeType":"82","endLine":57,"endColumn":30},{"ruleId":"76","severity":1,"message":"85","line":4,"column":8,"nodeType":"78","messageId":"79","endLine":4,"endColumn":13},{"ruleId":"76","severity":1,"message":"86","line":9,"column":26,"nodeType":"78","messageId":"79","endLine":9,"endColumn":41},{"ruleId":"87","severity":1,"message":"88","line":41,"column":8,"nodeType":"89","endLine":41,"endColumn":10,"suggestions":"90"},{"ruleId":"83","severity":1,"message":"84","line":68,"column":25,"nodeType":"82","endLine":68,"endColumn":67},{"ruleId":"91","severity":2,"message":"92","line":6,"column":30,"nodeType":"78","endLine":6,"endColumn":38},{"ruleId":"91","severity":2,"message":"92","line":7,"column":32,"nodeType":"78","endLine":7,"endColumn":40},{"ruleId":"76","severity":1,"message":"93","line":2,"column":8,"nodeType":"78","messageId":"79","endLine":2,"endColumn":13},"no-native-reassign",["94"],"no-negated-in-lhs",["95"],"no-unused-vars","'signIn' is assigned a value but never used.","Identifier","unusedVar","jsx-a11y/anchor-is-valid","The href attribute is required for an anchor to be keyboard accessible. Provide a valid, navigable address as the href value. If you cannot provide an href, but still need the element to resemble a link, use a button and change it with appropriate styles. Learn more: https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/anchor-is-valid.md","JSXOpeningElement","jsx-a11y/alt-text","img elements must have an alt prop, either with meaningful text, or an empty string for decorative images.","'Image' is defined but never used.","'setAvailability' is assigned a value but never used.","react-hooks/exhaustive-deps","React Hook useEffect has a missing dependency: 'props.location.state'. Either include it or remove the dependency array.","ArrayExpression",["96"],"react-hooks/rules-of-hooks","React Hook \"useState\" is called in function \"userLog\" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter.","'cover' is defined but never used.","no-global-assign","no-unsafe-negation",{"desc":"97","fix":"98"},"Update the dependencies array to be: [props.location.state]",{"range":"99","text":"100"},[1426,1428],"[props.location.state]"]