Skip to content

Github tracker#74

Open
qwer-ctrl wants to merge 8 commits intoTechnigo:mainfrom
qwer-ctrl:main
Open

Github tracker#74
qwer-ctrl wants to merge 8 commits intoTechnigo:mainfrom
qwer-ctrl:main

Conversation

@qwer-ctrl
Copy link
Copy Markdown

No description provided.

Copy link
Copy Markdown

@emmahogberg88 emmahogberg88 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well done Anki! I think you have a good structure in your JavaScript. It´s easy to follow your code and your website looks great!

My comments are mostly about indentations, it makes it even more readable to use it in a more "structured way" :) . A suggestion is to use comments in the CSS to make it more easy to navigate through the code.

Good job! ✋
/Emma

Authorization: `token ${API_TOKEN}`,
}
}
console.log(API_TOKEN)
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove console.log ;)

Comment on lines +23 to +32
<div class="profile-image">
<a href="${USER_URL}">
<img src="${data.avatar_url}" alt="Avatar of ${data.login}">
</a>
</div>
<p class="username">${data.login}<p>
</div>
<div>
<p class="public-repositories">Public repositories: ${data.public_repos}</p>
</div>
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Look through the indentations here so the opening and closing-tag are at the same indentation. Also, indent the "childs".

<p>Branch: ${repo.default_branch}</p>
<p id="commit_${repo.name}">Commits: </p>
<p>${repo.language}</p>
</div>
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indentation here.

document.getElementById(`commit_${repo.name}`)
.innerHTML = 'No pullrequest available';
}
})
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indentation

`
})
myChart(technigoRepos)
fetchPullRequests(technigoRepos)
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

indentation

})
}

const fetchCommits = (commitsUrl, repoName) => {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This part you can remove indentations :)

text-align: center;
}

#hamburger-icon {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it´s better practice to use classes for styling and save the ids for JavaScript, due to specificity :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants