From b4b6585ce8fba3f5b78f4727b8f467caebb979f2 Mon Sep 17 00:00:00 2001 From: noeFly Date: Sat, 21 Jun 2025 23:09:03 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E7=A7=BB=E9=99=A4=E8=AA=9E?= =?UTF-8?q?=E8=A8=80=E9=A1=AF=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/plugins/rehype-component-gitlab-card.mjs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/plugins/rehype-component-gitlab-card.mjs b/src/plugins/rehype-component-gitlab-card.mjs index 0a0aa9b..89f2906 100644 --- a/src/plugins/rehype-component-gitlab-card.mjs +++ b/src/plugins/rehype-component-gitlab-card.mjs @@ -57,7 +57,6 @@ export function GitlabCardComponent(properties, children) { console.log(data); 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}-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}-stars').innerText = Intl.NumberFormat('en-us', { notation: "compact", maximumFractionDigits: 1 }).format(data.star_count).replaceAll("\u202f", ''); const avatarEl = document.getElementById('${cardUuid}-avatar');