Skip to content

Commit

Permalink
Bug fix + cleanups.
Browse files Browse the repository at this point in the history
  • Loading branch information
evoluteur committed Jul 20, 2024
1 parent 029d17e commit 346094f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 12 deletions.
4 changes: 2 additions & 2 deletions dist/meet-the-fans.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion js/data.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ const getData = () => {
});
nodes.push({ id: "*", radius: 20, group: 0, isRepo: true });

for (var u in fans) {
for (let u in fans) {
const user = fans[u];
nodes.push({
id: u,
Expand Down
11 changes: 3 additions & 8 deletions js/queries.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ const repoDetails = `
repositoryTopics(first:20){
nodes{
topic {
name
name
}
}
}
Expand All @@ -189,7 +189,7 @@ const repoDetails = `
repoRelease: releases(first:1){
totalCount
nodes {
name
name
publishedAt
}
}
Expand Down Expand Up @@ -424,12 +424,7 @@ const showElem = (id) => document.getElementById(id).classList.remove("hidden");
const hideElem = (id) => document.getElementById(id).classList.add("hidden");

const dataSummary = () =>
login +
": " +
user.nbRepos +
" repos, " +
user.nbStars +
" stars, " +
`${login}: ${user.nbRepos} repos, ${user.nbStars} stars, ` +
user.nbForks +
" forks, " +
user.nbFollowers +
Expand Down
2 changes: 1 addition & 1 deletion js/views.js
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ const repoItem = (r, skipMe, withSummary = true) => {
</a>
</div>
${
isMe
isMe && withSummary
? `<div class="field multi">
${condIcon("followers", r.nbFollowers)}
${condIcon("star", r.nbStars)}
Expand Down

0 comments on commit 346094f

Please sign in to comment.