working on economy graph

This commit is contained in:
cnachtigall1991
2021-10-19 07:24:16 +02:00
parent 5f96a72e76
commit 482008c77b
8 changed files with 152 additions and 10 deletions

View File

@@ -54,3 +54,15 @@ export const TrackMe = async (id64, authcode, sharecode) => {
return [status, statusError]
}
export const getPlayerValue = async (match_id) => {
try {
const res = await axios.get(`${API_URL}/match/${match_id}/rounds`)
if (res.status === 200) {
return res.data
}
} catch (err) {
console.log(err.response.status, err.response.statusText)
}
}

View File

@@ -3,7 +3,7 @@ import {GoToLink, GoToMatch, GoToPlayer} from "./GoTo";
import {SaveLastVisitedToLocalStorage} from "./LocalStorage";
import {GetHLTV_1} from "./HLTV";
import {DisplayRank, LoadImage} from "./Display";
import {GetUser, TrackMe} from "./ApiRequests";
import {GetUser, TrackMe, getPlayerValue} from "./ApiRequests";
import {setTitle, GetWinLoss, truncate, checkStatEmpty, getPlayerArr, constructAvatarUrl, GetAvgRank} from "./Utils";
export {
@@ -12,6 +12,6 @@ export {
SaveLastVisitedToLocalStorage,
GetHLTV_1,
DisplayRank, LoadImage,
GetUser, TrackMe,
GetUser, TrackMe, getPlayerValue,
setTitle, GetWinLoss, truncate, checkStatEmpty, getPlayerArr, constructAvatarUrl, GetAvgRank
}