Changed from Github to Codestats

Signed-off-by: Florian Bouillon <florian.bouillon@delta-wings.net>
This commit is contained in:
2020-09-08 12:14:07 +02:00
parent 9471072491
commit 1b9e41ba1b
5 changed files with 1745 additions and 46 deletions

View File

@@ -80,13 +80,20 @@ function fallbackColor(color, fallbackColor) {
function request(data, headers) {
return axios({
url: "https://codestats.net/api/users/" + data.username,
method: "get",
url: "https://api.github.com/graphql",
method: "post",
headers,
data,
});
}
function codeStatsRequest(data) {
return axios({
url: "https://codestats.net/api/users/" + data.login,
method: "get",
});
}
/**
*
* @param {String[]} items
@@ -194,6 +201,7 @@ module.exports = {
encodeHTML,
isValidHexColor,
request,
codeStatsRequest,
parseArray,
parseBoolean,
fallbackColor,