refactor: 移除語言顯示

This commit is contained in:
noeFly
2025-06-21 23:09:03 +08:00
parent 00d19cfb41
commit b4b6585ce8
@@ -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');