feat: added repo card hide border option (#488)

* 🚀 Prettier config

* 🚀 hide_border for Repo Card

* fix: wrong total commits (#490)

* chore: run prettier on all files

* chore: lol lets add the trailing commas

Co-authored-by: Anurag Hazra <hazru.anurag@gmail.com>
This commit is contained in:
Bas950
2020-09-24 21:38:14 +05:30
committed by GitHub
co-authored by Anurag Hazra
parent 3c6c142c75
commit 8aea1e3c35
35 changed files with 152 additions and 134 deletions
+1 -1
View File
@@ -39,7 +39,7 @@ const fetcher = (variables, token) => {
},
{
Authorization: `bearer ${token}`,
}
},
);
};
+3 -3
View File
@@ -45,7 +45,7 @@ const fetcher = (variables, token) => {
},
{
Authorization: `bearer ${token}`,
}
},
);
};
@@ -86,7 +86,7 @@ const totalCommitsFetcher = async (username) => {
async function fetchStats(
username,
count_private = false,
include_all_commits = false
include_all_commits = false,
) {
if (!username) throw Error("Invalid username");
@@ -106,7 +106,7 @@ async function fetchStats(
logger.error(res.data.errors);
throw new CustomError(
res.data.errors[0].message || "Could not fetch user",
CustomError.USER_NOT_FOUND
CustomError.USER_NOT_FOUND,
);
}
+1 -1
View File
@@ -29,7 +29,7 @@ const fetcher = (variables, token) => {
},
{
Authorization: `bearer ${token}`,
}
},
);
};
+1 -1
View File
@@ -2,7 +2,7 @@ const axios = require("axios");
const fetchLast7Days = async ({ username }) => {
const { data } = await axios.get(
`https://wakatime.com/api/v1/users/${username}/stats/last_7_days?is_including_today=true`
`https://wakatime.com/api/v1/users/${username}/stats/last_7_days?is_including_today=true`,
);
return data.data;