From be77d0e21405ae5936f02567012a348b2a03038a Mon Sep 17 00:00:00 2001 From: noeFly Date: Sat, 21 Jun 2025 23:21:15 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E7=A7=BB=E9=99=A4=E9=99=A4?= =?UTF-8?q?=E9=8C=AF=E7=94=A8=E7=A8=8B=E5=BC=8F=E7=A2=BC?= 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 a0b08b5..43fcbd3 100644 --- a/src/plugins/rehype-component-gitlab-card.mjs +++ b/src/plugins/rehype-component-gitlab-card.mjs @@ -54,7 +54,6 @@ export function GitlabCardComponent(properties, children) { { type: "text/javascript", defer: true }, ` fetch('https://gitlab.com/api/v4/projects/${repoE}').then(response => response.json()).then(data => { - console.log(data); document.getElementById('${cardUuid}-repo').innerText = data.name; document.getElementById('${cardUuid}-description').innerText = data.description?.replace(/:[a-zA-Z0-9_]+:/g, '') || "Description not set"; document.getElementById('${cardUuid}-forks').innerText = Intl.NumberFormat('en-us', { notation: "compact", maximumFractionDigits: 1 }).format(data.forks_count).replaceAll("\u202f", '');