Skip to content

Commit

Permalink
add commit link and modify prettier config
Browse files Browse the repository at this point in the history
Signed-off-by: ClaytonTDM <[email protected]>
  • Loading branch information
ClaytonTDM committed Oct 9, 2024
1 parent 84d205c commit 9ae9400
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 0 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"printWidth": 80,
"proseWrap": "preserve",
"quoteProps": "as-needed",
"requirePragma": false,
"semi": true,
"singleAttributePerLine": false,
"singleQuote": false,
Expand Down
6 changes: 5 additions & 1 deletion game/cl.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
commits.forEach((commit) => {
const listItem = document.createElement("li");
const itemText = document.createElement("pre");
const itemLink = document.createElement("a");
itemLink.href = commit.html_url;
itemLink.target = "_blank";
const authorName = commit.commit.author.name;
let committerName = commit.commit.committer.name;
const committerLogin = commit.committer.login;
Expand Down Expand Up @@ -45,7 +48,8 @@
itemText.innerHTML = `<b>${allAuthors}</b>: `;
itemText.innerText += commitMessage.split("\n")[0];
commitList.appendChild(listItem);
listItem.appendChild(itemText);
itemLink.appendChild(itemText);
listItem.appendChild(itemLink);
});
})
.catch((error) => {
Expand Down

0 comments on commit 9ae9400

Please sign in to comment.