Add support for full year display in isocalendar (#10)
* fix(inst): base=0 flag combined with other base.part flags is now correctly handled * ref(plugins): Space adjustements in plugins code * feat(plugins/isocalendar): Add support for full year * feat(repo): Update package.json * fix(plugins/isocalendar): Isocalendar first row sometimes displayed 6 days instead of 7
This commit is contained in:
@@ -5,7 +5,6 @@
|
||||
//Check if plugin is enabled and requirements are met
|
||||
if ((!enabled)||(!q.gists))
|
||||
return null
|
||||
|
||||
//Retrieve contribution calendar from graphql api
|
||||
const {user:{gists}} = await graphql(`
|
||||
query Gists {
|
||||
@@ -27,7 +26,6 @@
|
||||
}
|
||||
`
|
||||
)
|
||||
|
||||
//Iterate through gists
|
||||
let stargazers = 0, forks = 0, comments = 0
|
||||
for (const gist of gists.nodes) {
|
||||
@@ -39,7 +37,6 @@
|
||||
forks += gist.forks.totalCount
|
||||
comments += gist.comments.totalCount
|
||||
}
|
||||
|
||||
//Results
|
||||
return {totalCount:gists.totalCount, stargazers, forks, comments}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user