-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintcache
1 lines (1 loc) · 13.7 KB
/
.eslintcache
1
[{"C:\\Users\\Bunty\\Desktop\\github-users\\src\\index.js":"1","C:\\Users\\Bunty\\Desktop\\github-users\\src\\App.js":"2","C:\\Users\\Bunty\\Desktop\\github-users\\src\\Main\\Home.js":"3","C:\\Users\\Bunty\\Desktop\\github-users\\src\\Main\\index.js":"4","C:\\Users\\Bunty\\Desktop\\github-users\\src\\Main\\NotFound.js":"5","C:\\Users\\Bunty\\Desktop\\github-users\\src\\Main\\Detail.js":"6","C:\\Users\\Bunty\\Desktop\\github-users\\src\\Main\\Header.js":"7","C:\\Users\\Bunty\\Desktop\\github-users\\src\\Main\\StateProvider.js":"8","C:\\Users\\Bunty\\Desktop\\github-users\\src\\Main\\reducer.js":"9","C:\\Users\\Bunty\\Desktop\\github-users\\src\\Main\\Recent.js":"10","C:\\Users\\Bunty\\Desktop\\github-users\\src\\Main\\Repositories.js":"11","C:\\Users\\Bunty\\Desktop\\github-users\\src\\Main\\Graph.js":"12","C:\\Users\\Bunty\\Desktop\\github github-user\\src\\index.js":"13","C:\\Users\\Bunty\\Desktop\\github github-user\\src\\App.js":"14","C:\\Users\\Bunty\\Desktop\\github github-user\\src\\Main\\StateProvider.js":"15","C:\\Users\\Bunty\\Desktop\\github github-user\\src\\Main\\reducer.js":"16","C:\\Users\\Bunty\\Desktop\\github github-user\\src\\Main\\index.js":"17","C:\\Users\\Bunty\\Desktop\\github github-user\\src\\Main\\NotFound.js":"18","C:\\Users\\Bunty\\Desktop\\github github-user\\src\\Main\\Home.js":"19","C:\\Users\\Bunty\\Desktop\\github github-user\\src\\Main\\Detail.js":"20","C:\\Users\\Bunty\\Desktop\\github github-user\\src\\Main\\Header.js":"21","C:\\Users\\Bunty\\Desktop\\github github-user\\src\\Main\\Recent.js":"22","C:\\Users\\Bunty\\Desktop\\github github-user\\src\\Main\\Repositories.js":"23","C:\\Users\\Bunty\\Desktop\\github github-user\\src\\Main\\Graph.js":"24"},{"size":221,"mtime":1608792187585,"results":"25","hashOfConfig":"26"},{"size":787,"mtime":1608839859857,"results":"27","hashOfConfig":"26"},{"size":12097,"mtime":1608893490228,"results":"28","hashOfConfig":"26"},{"size":133,"mtime":1608793353010,"results":"29","hashOfConfig":"26"},{"size":2031,"mtime":1608793125369,"results":"30","hashOfConfig":"26"},{"size":8668,"mtime":1608893793852,"results":"31","hashOfConfig":"26"},{"size":1030,"mtime":1608794490503,"results":"32","hashOfConfig":"26"},{"size":373,"mtime":1604265461808,"results":"33","hashOfConfig":"26"},{"size":1088,"mtime":1608839468305,"results":"34","hashOfConfig":"26"},{"size":7472,"mtime":1608893595382,"results":"35","hashOfConfig":"26"},{"size":10631,"mtime":1608892495291,"results":"36","hashOfConfig":"26"},{"size":3499,"mtime":1608892136739,"results":"37","hashOfConfig":"26"},{"size":221,"mtime":1608792187585,"results":"38","hashOfConfig":"39"},{"size":787,"mtime":1608839859857,"results":"40","hashOfConfig":"39"},{"size":373,"mtime":1604265461808,"results":"41","hashOfConfig":"39"},{"size":1088,"mtime":1608839468305,"results":"42","hashOfConfig":"39"},{"size":133,"mtime":1608793353010,"results":"43","hashOfConfig":"39"},{"size":2031,"mtime":1608793125369,"results":"44","hashOfConfig":"39"},{"size":11918,"mtime":1608896567259,"results":"45","hashOfConfig":"39"},{"size":8505,"mtime":1608896577232,"results":"46","hashOfConfig":"39"},{"size":1030,"mtime":1608794490503,"results":"47","hashOfConfig":"39"},{"size":7479,"mtime":1608896306526,"results":"48","hashOfConfig":"39"},{"size":10337,"mtime":1608896609336,"results":"49","hashOfConfig":"39"},{"size":3366,"mtime":1608896374401,"results":"50","hashOfConfig":"39"},{"filePath":"51","messages":"52","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"53"},"2gypxg",{"filePath":"54","messages":"55","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"53"},{"filePath":"56","messages":"57","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"58","messages":"59","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"53"},{"filePath":"60","messages":"61","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"53"},{"filePath":"62","messages":"63","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"64","messages":"65","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"53"},{"filePath":"66","messages":"67","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"53"},{"filePath":"68","messages":"69","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"53"},{"filePath":"70","messages":"71","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"72","messages":"73","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"74","messages":"75","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"76","messages":"77","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"78"},"ub9goi",{"filePath":"79","messages":"80","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"78"},{"filePath":"81","messages":"82","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"78"},{"filePath":"83","messages":"84","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"78"},{"filePath":"85","messages":"86","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"78"},{"filePath":"87","messages":"88","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"78"},{"filePath":"89","messages":"90","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"91","messages":"92","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"93","messages":"94","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"78"},{"filePath":"95","messages":"96","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"78"},{"filePath":"97","messages":"98","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"99","messages":"100","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"101","usedDeprecatedRules":"78"},"C:\\Users\\Bunty\\Desktop\\github-users\\src\\index.js",[],["102","103"],"C:\\Users\\Bunty\\Desktop\\github-users\\src\\App.js",[],"C:\\Users\\Bunty\\Desktop\\github-users\\src\\Main\\Home.js",["104"],"C:\\Users\\Bunty\\Desktop\\github-users\\src\\Main\\index.js",[],"C:\\Users\\Bunty\\Desktop\\github-users\\src\\Main\\NotFound.js",[],"C:\\Users\\Bunty\\Desktop\\github-users\\src\\Main\\Detail.js",[],"C:\\Users\\Bunty\\Desktop\\github-users\\src\\Main\\Header.js",[],"C:\\Users\\Bunty\\Desktop\\github-users\\src\\Main\\StateProvider.js",[],"C:\\Users\\Bunty\\Desktop\\github-users\\src\\Main\\reducer.js",[],"C:\\Users\\Bunty\\Desktop\\github-users\\src\\Main\\Recent.js",["105"],"C:\\Users\\Bunty\\Desktop\\github-users\\src\\Main\\Repositories.js",["106"],"C:\\Users\\Bunty\\Desktop\\github-users\\src\\Main\\Graph.js",["107"],"C:\\Users\\Bunty\\Desktop\\github github-user\\src\\index.js",[],["108","109"],"C:\\Users\\Bunty\\Desktop\\github github-user\\src\\App.js",[],"C:\\Users\\Bunty\\Desktop\\github github-user\\src\\Main\\StateProvider.js",[],"C:\\Users\\Bunty\\Desktop\\github github-user\\src\\Main\\reducer.js",[],"C:\\Users\\Bunty\\Desktop\\github github-user\\src\\Main\\index.js",[],"C:\\Users\\Bunty\\Desktop\\github github-user\\src\\Main\\NotFound.js",[],"C:\\Users\\Bunty\\Desktop\\github github-user\\src\\Main\\Home.js",["110"],"C:\\Users\\Bunty\\Desktop\\github github-user\\src\\Main\\Detail.js",[],"C:\\Users\\Bunty\\Desktop\\github github-user\\src\\Main\\Header.js",[],"C:\\Users\\Bunty\\Desktop\\github github-user\\src\\Main\\Recent.js",[],"C:\\Users\\Bunty\\Desktop\\github github-user\\src\\Main\\Repositories.js",[],"C:\\Users\\Bunty\\Desktop\\github github-user\\src\\Main\\Graph.js",["111"],"import React from 'react'\r\nimport axios from 'axios'\r\nimport Grid from '@material-ui/core/Grid'\r\nimport { Typography } from '@material-ui/core'\r\nimport ReactPlaceholder from 'react-placeholder'\r\nimport \"react-placeholder/lib/reactPlaceholder.css\";\r\nfunction Graph({ url }) {\r\n const [isLoading, setIsLoading] = React.useState(true)\r\n const [objList, setObjList] = React.useState([])\r\n \r\n function getRandomColor() {\r\n var letters = '0123456789ABCDEF';\r\n var color = '#';\r\n for (var i = 0; i < 6; i++) {\r\n color += letters[Math.floor(Math.random() * 15)];\r\n }\r\n \r\n if( color === '#FFFFFF')\r\n return '#000000'\r\n return color;\r\n \r\n }\r\n\r\n function sum( obj ) {\r\n var sum = 0;\r\n for( var el in obj ) {\r\n if( obj.hasOwnProperty( el ) ) {\r\n sum += parseFloat( obj[el] );\r\n }\r\n }\r\n return sum;\r\n }\r\n\r\n function genObj( obj ){\r\n var objlist = []\r\n const total = sum(obj)\r\n \r\n for( var el in obj ) {\r\n if( obj.hasOwnProperty( el ) ) {\r\n const newobj = {language:el, percentage:Math.ceil((parseFloat( obj[el] )/total)*100), color: getRandomColor()}\r\n objlist.push(newobj)\r\n \r\n }\r\n }\r\n\r\n return objlist\r\n }\r\n\r\n \r\n\r\n React.useEffect(()=>{\r\n axios.get(url)\r\n .then((res) => {\r\n \r\n setObjList(genObj(res.data))\r\n setIsLoading(false)\r\n \r\n })\r\n .catch((err) => {\r\n setIsLoading(false)\r\n })\r\n },[url])\r\n//red 20%,blue 20%, blue 50%,gray 0\r\n//\r\n return (\r\n \r\n <div style={{marginTop:\"8px\"}}>\r\n \r\n \r\n {\r\n\r\n isLoading?\r\n <ReactPlaceholder type='textRow' ready={false} color='#E0E0E0' showLoadingAnimation={true} style={{width:\"100%\",height:\"8px\",borderRadius:\"18px\"}} />\r\n \r\n \r\n :\r\n <div>\r\n <div style={{display:\"flex\", flexDirection:\"row\", width:\"100%\",borderRadius:\"18px\",overflow:\"hidden\", border:\"solid gray 0px\"}}>\r\n {\r\n objList.map((item,index)=>\r\n <div style={{background:item.color, width:`${item.percentage}%`,height:\"8px\"}} key={index}>\r\n </div>\r\n \r\n )\r\n }\r\n \r\n </div>\r\n <div>\r\n <Grid container spacing={0}>\r\n\r\n\r\n {\r\n objList.slice(0, Math.min(4, objList.length)).map((item,index)=>\r\n <Grid item key={index} xs={6}>\r\n \r\n <div style={{display:\"flex\", flexDirection:\"row\", padding:\"8px\"}}>\r\n <div style={{background:item.color, borderRadius:\"50%\", width:\"15px\", height:\"15px\"}} />\r\n <Typography variant=\"caption\" style={{color:\"#495057\"}}>\r\n {item.language}\r\n </Typography>\r\n </div>\r\n </Grid>\r\n )\r\n } \r\n\r\n </Grid>\r\n </div>\r\n </div>\r\n \r\n \r\n }\r\n \r\n \r\n </div>\r\n )\r\n}\r\nexport default Graph\r\n",{"ruleId":"112","replacedBy":"113"},{"ruleId":"114","replacedBy":"115"},{"ruleId":"116","severity":1,"message":"117","line":36,"column":12,"nodeType":"118","messageId":"119","endLine":36,"endColumn":17},{"ruleId":"120","severity":1,"message":"121","line":113,"column":18,"nodeType":"122","endLine":113,"endColumn":71},{"ruleId":"123","severity":1,"message":"124","line":83,"column":8,"nodeType":"125","endLine":83,"endColumn":13,"suggestions":"126"},{"ruleId":"123","severity":1,"message":"127","line":66,"column":7,"nodeType":"125","endLine":66,"endColumn":9,"suggestions":"128"},{"ruleId":"112","replacedBy":"129"},{"ruleId":"114","replacedBy":"130"},{"ruleId":"116","severity":1,"message":"117","line":36,"column":12,"nodeType":"118","messageId":"119","endLine":36,"endColumn":17},{"ruleId":"123","severity":1,"message":"131","line":62,"column":7,"nodeType":"125","endLine":62,"endColumn":12,"suggestions":"132"},"no-native-reassign",["133"],"no-negated-in-lhs",["134"],"no-unused-vars","'state' is assigned a value but never used.","Identifier","unusedVar","jsx-a11y/alt-text","img elements must have an alt prop, either with meaningful text, or an empty string for decorative images.","JSXOpeningElement","react-hooks/exhaustive-deps","React Hook useEffect has a missing dependency: 'page'. Either include it or remove the dependency array.","ArrayExpression",["135"],"React Hook React.useEffect has missing dependencies: 'genObj' and 'url'. Either include them or remove the dependency array.",["136"],["133"],["134"],"React Hook React.useEffect has a missing dependency: 'genObj'. Either include it or remove the dependency array.",["137"],"no-global-assign","no-unsafe-negation",{"desc":"138","fix":"139"},{"desc":"140","fix":"141"},{"desc":"140","fix":"142"},"Update the dependencies array to be: [page, url]",{"range":"143","text":"144"},"Update the dependencies array to be: [genObj, url]",{"range":"145","text":"146"},{"range":"147","text":"146"},[2678,2683],"[page, url]",[1812,1814],"[genObj, url]",[1676,1681]]