refactor: 移除語言顯示
This commit is contained in:
@@ -57,7 +57,6 @@ export function GitlabCardComponent(properties, children) {
|
|||||||
console.log(data);
|
console.log(data);
|
||||||
document.getElementsByClassName('${cardUuid}-repo')[0].innerText = data.name;
|
document.getElementsByClassName('${cardUuid}-repo')[0].innerText = data.name;
|
||||||
document.getElementById('${cardUuid}-description').innerText = data.description?.replace(/:[a-zA-Z0-9_]+:/g, '') || "Description not set";
|
document.getElementById('${cardUuid}-description').innerText = data.description?.replace(/:[a-zA-Z0-9_]+:/g, '') || "Description not set";
|
||||||
// document.getElementById('${cardUuid}-language').innerText = data.language;
|
|
||||||
document.getElementById('${cardUuid}-forks').innerText = Intl.NumberFormat('en-us', { notation: "compact", maximumFractionDigits: 1 }).format(data.forks_count).replaceAll("\u202f", '');
|
document.getElementById('${cardUuid}-forks').innerText = Intl.NumberFormat('en-us', { notation: "compact", maximumFractionDigits: 1 }).format(data.forks_count).replaceAll("\u202f", '');
|
||||||
document.getElementById('${cardUuid}-stars').innerText = Intl.NumberFormat('en-us', { notation: "compact", maximumFractionDigits: 1 }).format(data.star_count).replaceAll("\u202f", '');
|
document.getElementById('${cardUuid}-stars').innerText = Intl.NumberFormat('en-us', { notation: "compact", maximumFractionDigits: 1 }).format(data.star_count).replaceAll("\u202f", '');
|
||||||
const avatarEl = document.getElementById('${cardUuid}-avatar');
|
const avatarEl = document.getElementById('${cardUuid}-avatar');
|
||||||
|
|||||||
Reference in New Issue
Block a user