-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintcache
1 lines (1 loc) · 15.9 KB
/
.eslintcache
1
[{"C:\\Users\\Nick\\Documents\\EloTracking\\Terminal-Elo-Tracking\\src\\views\\Body.js":"1","C:\\Users\\Nick\\Documents\\EloTracking\\Terminal-Elo-Tracking\\src\\wrappers\\DataAccessorWrapper.js":"2","C:\\Users\\Nick\\Documents\\EloTracking\\Terminal-Elo-Tracking\\src\\controllers\\RivalTableController.js":"3","C:\\Users\\Nick\\Documents\\EloTracking\\Terminal-Elo-Tracking\\src\\controllers\\TableController.js":"4","C:\\Users\\Nick\\Documents\\EloTracking\\Terminal-Elo-Tracking\\src\\wrappers\\TerminalApiWrapper.js":"5","C:\\Users\\Nick\\Documents\\EloTracking\\Terminal-Elo-Tracking\\src\\views\\Pagination.js":"6","C:\\Users\\Nick\\Documents\\EloTracking\\Terminal-Elo-Tracking\\src\\views\\MyTable.js":"7","C:\\Users\\Nick\\Documents\\EloTracking\\Terminal-Elo-Tracking\\src\\views\\TableDisplayData.js":"8","C:\\Users\\Nick\\Documents\\EloTracking\\Terminal-Elo-Tracking\\src\\views\\SearchBar.js":"9","C:\\Users\\Nick\\Documents\\EloTracking\\Terminal-Elo-Tracking\\src\\index.js":"10","C:\\Users\\Nick\\Documents\\EloTracking\\Terminal-Elo-Tracking\\src\\views\\EloChart.js":"11","C:\\Users\\Nick\\Documents\\EloTracking\\Terminal-Elo-Tracking\\src\\views\\DarkModeButton.js":"12","C:\\Users\\Nick\\Documents\\EloTracking\\Terminal-Elo-Tracking\\src\\views\\Chart.js":"13"},{"size":4269,"mtime":1702441633056,"results":"14","hashOfConfig":"15"},{"size":3570,"mtime":1702537161433,"results":"16","hashOfConfig":"15"},{"size":926,"mtime":1702537248633,"results":"17","hashOfConfig":"15"},{"size":1361,"mtime":1702537248629,"results":"18","hashOfConfig":"15"},{"size":378,"mtime":1702435049063,"results":"19","hashOfConfig":"15"},{"size":1621,"mtime":1702432290227,"results":"20","hashOfConfig":"15"},{"size":1552,"mtime":1702441703768,"results":"21","hashOfConfig":"15"},{"size":2436,"mtime":1706825961877,"results":"22","hashOfConfig":"15"},{"size":534,"mtime":1706825163078,"results":"23","hashOfConfig":"15"},{"size":277,"mtime":1696568626001,"results":"24","hashOfConfig":"15"},{"size":873,"mtime":1698122665305,"results":"25","hashOfConfig":"15"},{"size":564,"mtime":1696998852758,"results":"26","hashOfConfig":"15"},{"size":1349,"mtime":1696997253495,"results":"27","hashOfConfig":"15"},{"filePath":"28","messages":"29","errorCount":0,"fatalErrorCount":0,"warningCount":3,"fixableErrorCount":0,"fixableWarningCount":0,"source":"30"},"1xkkjyh",{"filePath":"31","messages":"32","errorCount":0,"fatalErrorCount":0,"warningCount":7,"fixableErrorCount":0,"fixableWarningCount":1,"source":null},{"filePath":"33","messages":"34","errorCount":0,"fatalErrorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"35","messages":"36","errorCount":0,"fatalErrorCount":0,"warningCount":3,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"37","messages":"38","errorCount":0,"fatalErrorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":"39"},{"filePath":"40","messages":"41","errorCount":0,"fatalErrorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":"42","usedDeprecatedRules":"43"},{"filePath":"44","messages":"45","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"46","messages":"47","errorCount":0,"fatalErrorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"48","messages":"49","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"50","messages":"51","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"52"},{"filePath":"53","messages":"54","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"55","messages":"56","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"57","messages":"58","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"59"},"C:\\Users\\Nick\\Documents\\EloTracking\\Terminal-Elo-Tracking\\src\\views\\Body.js",["60","61","62"],"import React, {useState, useContext, useEffect} from 'react';\r\nimport { Button, Input } from 'reactstrap';\r\nimport '../styles/Body.css';\r\nimport MyTable from './MyTable';\r\nimport {ThemeContext} from \"./ThemeContext\";\r\nimport TerminalApiWrapper from \"../wrappers/TerminalApiWrapper\";\r\nimport TableController from \"../controllers/TableController\";\r\nimport CircularProgress from \"@mui/material/CircularProgress\";\r\nimport RivalTableController from \"../controllers/RivalTableController\";\r\nimport DarkModeButton from \"./DarkModeButton\";\r\nimport EloChart from \"./EloChart\";\r\nimport DataAccessorWrapper from \"../wrappers/DataAccessorWrapper\";\r\nimport SearchBar from \"./SearchBar\";\r\n\r\n\r\nexport default function Body() {\r\n const api_wrapper = new TerminalApiWrapper()\r\n const {darkMode, setDarkMode} = useContext(ThemeContext)\r\n\r\n const [matchData, setMatchData] = useState([])\r\n const [rivalData, setRivalData] = useState([])\r\n\r\n const [rivalName, setRivalName] = useState(\"\")\r\n const [algoId, setAlgoId] = useState(0)\r\n const [inputValue, setInputValue] = useState(0)\r\n const [isLoading, setIsLoading] = useState(false)\r\n\r\n useEffect(() => {\r\n setInputValue(algoId)\r\n refreshData()\r\n }, [algoId]);\r\n const refreshData = async () => {\r\n setIsLoading(true)\r\n let matchData = await createMatchData()\r\n setMatchData(matchData)\r\n\r\n let rivalData = createRivalData(matchData)\r\n setRivalData(rivalData)\r\n\r\n setIsLoading(false)\r\n }\r\n const createMatchData = async () => {\r\n let data = await api_wrapper.GetDataOnAlgorithm(algoId)\r\n return data\r\n }\r\n const createRivalData = (matchData) => {\r\n if(DataAccessorWrapper.DataIsValid(matchData)){\r\n let rivalDetails = RivalTableController.findRival(matchData, algoId)\r\n let rivalTableData = TableController.FilterByOpponentUserName(matchData, rivalDetails[0])\r\n\r\n setRivalName(rivalDetails[0])\r\n console.log(\"rival details: \", rivalDetails);\r\n console.log(\"rival table data: \", rivalTableData);\r\n return rivalTableData\r\n }\r\n return [];\r\n }\r\n\r\n function changeId(id){\r\n setAlgoId(id)\r\n }\r\n\r\n const handleSubmit = (e) => {\r\n e.preventDefault();\r\n const inputValue = e.target.querySelector('input').value;\r\n setAlgoId(inputValue)\r\n }\r\n\r\n\r\n const bodyStyle = {\r\n color: darkMode ? \"#c9d1d9\" : \"black\",\r\n backgroundColor: darkMode ? \"#0d1117\" : \"white\"\r\n }\r\n const toCenter = {\r\n display: \"flex\",\r\n flexDirection: \"column\",\r\n alignItems: \"center\",\r\n width: \"100%\",\r\n color: darkMode ? \"#c9d1d9\" : \"black\",\r\n backgroundColor: darkMode ? \"#0d1117\" : \"white\",\r\n }\r\n\r\n return (\r\n <div style={bodyStyle}>\r\n <div style={toCenter}>\r\n <DarkModeButton darkMode={darkMode} setDarkMode={setDarkMode}/>\r\n <SearchBar submitHandler={handleSubmit} setInputValue={setInputValue} inputValue={inputValue}></SearchBar>\r\n { DataAccessorWrapper.DataIsInvalid(matchData) ? \"\" :\r\n isLoading ? <CircularProgress />:\r\n <div style={toCenter}>\r\n <div className='chartContainer'>\r\n <EloChart data={matchData} darkMode={darkMode} algoId={algoId}/>\r\n </div>\r\n <MyTable\r\n title = {\"Rival: \" + rivalName}\r\n fullData = {rivalData}\r\n style = {toCenter}\r\n changeId = {changeId}\r\n algoId = {algoId}\r\n />\r\n <MyTable\r\n title={\"All Games\"}\r\n fullData = {matchData}\r\n style = {toCenter}\r\n changeId = {changeId}\r\n algoId = {algoId}\r\n />\r\n </div>\r\n }\r\n </div>\r\n </div>\r\n )\r\n}\r\n","C:\\Users\\Nick\\Documents\\EloTracking\\Terminal-Elo-Tracking\\src\\wrappers\\DataAccessorWrapper.js",["63","64","65","66","67","68","69"],"C:\\Users\\Nick\\Documents\\EloTracking\\Terminal-Elo-Tracking\\src\\controllers\\RivalTableController.js",["70"],"C:\\Users\\Nick\\Documents\\EloTracking\\Terminal-Elo-Tracking\\src\\controllers\\TableController.js",["71","72","73"],"C:\\Users\\Nick\\Documents\\EloTracking\\Terminal-Elo-Tracking\\src\\wrappers\\TerminalApiWrapper.js",["74","75"],"export default class TerminalApiWrapper {\r\n\r\n async GetDataOnAlgorithm(id) {\r\n const fetched = await fetch(\"https://terminal.c1games.com/api/game/algo/\" + id + \"/matches\")\r\n\r\n let json = await fetched.json();\r\n\r\n if(json.data != undefined && json.data.matches != undefined){\r\n return json.data.matches;\r\n }\r\n return [];\r\n }\r\n}","C:\\Users\\Nick\\Documents\\EloTracking\\Terminal-Elo-Tracking\\src\\views\\Pagination.js",["76","77"],"import React from \"react\";\r\nimport TablePagination from \"@mui/material/TablePagination\";\r\nimport DataAccessorWrapper from \"../wrappers/DataAccessorWrapper\";\r\n\r\nexport default function Pagination(props) {\r\n const PreviousFullTablePage = () => {\r\n if(canDecrementFullPageNum()){\r\n props.setTableModelPageNum(props.tableModelPageNum - 1)\r\n }\r\n }\r\n const NextFullTablePage = () => {\r\n if(canIncrementFullPageNum()){\r\n props.setTableModelPageNum(props.tableModelPageNum + 1)\r\n }\r\n }\r\n\r\n const canDecrementFullPageNum = () => {\r\n return props.tableModelPageNum > 0\r\n }\r\n const canIncrementFullPageNum = () => {\r\n return props.tableModelPageNum < DataAccessorWrapper.GetPageNumLimit(props.data, props.rowsPerPage)\r\n }\r\n\r\n const fullTableHasMultiplePages = () => {\r\n return DataAccessorWrapper.GetPageNumLimit(props.data, props.rowsPerPage) > 0\r\n }\r\n\r\n const handleChangePage = (event, newPageNum) => {\r\n props.setTableModelPageNum(newPageNum);\r\n };\r\n\r\n const handleChangeRowsPerPage = (event) => {\r\n props.setRowsPerPage(parseInt(event.target.value, 10));\r\n props.setTableModelPageNum(0);\r\n };\r\n\r\n return(\r\n !fullTableHasMultiplePages() ? \"\" :\r\n <TablePagination\r\n component=\"div\"\r\n count={props.data.length}\r\n page={props.tableModelPageNum}\r\n onPageChange={handleChangePage}\r\n rowsPerPage={props.rowsPerPage}\r\n onRowsPerPageChange={handleChangeRowsPerPage}\r\n />\r\n )\r\n}",["78","79"],"C:\\Users\\Nick\\Documents\\EloTracking\\Terminal-Elo-Tracking\\src\\views\\MyTable.js",[],"C:\\Users\\Nick\\Documents\\EloTracking\\Terminal-Elo-Tracking\\src\\views\\TableDisplayData.js",["80"],"C:\\Users\\Nick\\Documents\\EloTracking\\Terminal-Elo-Tracking\\src\\views\\SearchBar.js",[],"C:\\Users\\Nick\\Documents\\EloTracking\\Terminal-Elo-Tracking\\src\\index.js",[],["81","82"],"C:\\Users\\Nick\\Documents\\EloTracking\\Terminal-Elo-Tracking\\src\\views\\EloChart.js",[],"C:\\Users\\Nick\\Documents\\EloTracking\\Terminal-Elo-Tracking\\src\\views\\DarkModeButton.js",[],"C:\\Users\\Nick\\Documents\\EloTracking\\Terminal-Elo-Tracking\\src\\views\\Chart.js",[],["83","84"],{"ruleId":"85","severity":1,"message":"86","line":2,"column":10,"nodeType":"87","messageId":"88","endLine":2,"endColumn":16},{"ruleId":"85","severity":1,"message":"89","line":2,"column":18,"nodeType":"87","messageId":"88","endLine":2,"endColumn":23},{"ruleId":"90","severity":1,"message":"91","line":31,"column":8,"nodeType":"92","endLine":31,"endColumn":16,"suggestions":"93"},{"ruleId":"94","severity":1,"message":"95","line":4,"column":16,"nodeType":"96","messageId":"97","endLine":4,"endColumn":28,"fix":"98"},{"ruleId":"99","severity":1,"message":"100","line":18,"column":37,"nodeType":"101","messageId":"102","endLine":18,"endColumn":39},{"ruleId":"103","severity":1,"message":"104","line":63,"column":52,"nodeType":"105","messageId":"106","endLine":63,"endColumn":54},{"ruleId":"103","severity":1,"message":"104","line":67,"column":42,"nodeType":"105","messageId":"106","endLine":67,"endColumn":44},{"ruleId":"103","severity":1,"message":"104","line":71,"column":41,"nodeType":"105","messageId":"106","endLine":71,"endColumn":43},{"ruleId":"103","severity":1,"message":"104","line":99,"column":38,"nodeType":"105","messageId":"106","endLine":99,"endColumn":40},{"ruleId":"103","severity":1,"message":"104","line":107,"column":39,"nodeType":"105","messageId":"106","endLine":107,"endColumn":41},{"ruleId":"99","severity":1,"message":"100","line":10,"column":30,"nodeType":"101","messageId":"102","endLine":10,"endColumn":32},{"ruleId":"99","severity":1,"message":"100","line":14,"column":28,"nodeType":"101","messageId":"102","endLine":14,"endColumn":30},{"ruleId":"99","severity":1,"message":"100","line":25,"column":28,"nodeType":"101","messageId":"102","endLine":25,"endColumn":30},{"ruleId":"99","severity":1,"message":"107","line":41,"column":50,"nodeType":"101","messageId":"108","endLine":41,"endColumn":52},{"ruleId":"103","severity":1,"message":"109","line":8,"column":22,"nodeType":"105","messageId":"106","endLine":8,"endColumn":24},{"ruleId":"103","severity":1,"message":"109","line":8,"column":56,"nodeType":"105","messageId":"106","endLine":8,"endColumn":58},{"ruleId":"85","severity":1,"message":"110","line":6,"column":11,"nodeType":"87","messageId":"88","endLine":6,"endColumn":32},{"ruleId":"85","severity":1,"message":"111","line":11,"column":11,"nodeType":"87","messageId":"88","endLine":11,"endColumn":28},{"ruleId":"112","replacedBy":"113"},{"ruleId":"114","replacedBy":"115"},{"ruleId":"116","severity":1,"message":"117","line":44,"column":105,"nodeType":"118","endLine":44,"endColumn":120},{"ruleId":"112","replacedBy":"119"},{"ruleId":"114","replacedBy":"120"},{"ruleId":"112","replacedBy":"121"},{"ruleId":"114","replacedBy":"122"},"no-unused-vars","'Button' is defined but never used.","Identifier","unusedVar","'Input' is defined but never used.","react-hooks/exhaustive-deps","React Hook useEffect has a missing dependency: 'refreshData'. Either include it or remove the dependency array.","ArrayExpression",["123"],"no-whitespace-before-property","Unexpected whitespace before property concat.","MemberExpression","unexpectedWhitespace",{"range":"124","text":"125"},"array-callback-return","Array.prototype.map() expects a return value from arrow function.","ArrowFunctionExpression","expectedInside","eqeqeq","Expected '===' and instead saw '=='.","BinaryExpression","unexpected","Array.prototype.filter() expects a value to be returned at the end of arrow function.","expectedAtEnd","Expected '!==' and instead saw '!='.","'PreviousFullTablePage' is assigned a value but never used.","'NextFullTablePage' is assigned a value but never used.","no-native-reassign",["126"],"no-negated-in-lhs",["127"],"react/jsx-no-target-blank","Using target=\"_blank\" without rel=\"noreferrer\" is a security risk: see https://html.spec.whatwg.org/multipage/links.html#link-type-noopener","JSXAttribute",["126"],["127"],["126"],["127"],{"desc":"128","fix":"129"},[111,113],".","no-global-assign","no-unsafe-negation","Update the dependencies array to be: [algoId, refreshData]",{"range":"130","text":"131"},[1223,1231],"[algoId, refreshData]"]