mirror of
https://github.com/Aviortheking/codestats-readme.git
synced 2025-08-06 19:01:58 +00:00
Changed from Github to Codestats
Signed-off-by: Florian Bouillon <florian.bouillon@delta-wings.net>
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user