feat: add Gitea mirror link to GitHubProvenanceCard

- Introduced a new link to the Gitea mirror repository in the GitHubProvenanceCard component.
- Updated the layout to reflect the new mirror link while removing the commented-out GitLab mirror section.
This commit is contained in:
Huakun Shen 2025-03-24 08:12:07 -04:00
parent b910b4801b
commit 8890d1f140
No known key found for this signature in database

View File

@ -19,6 +19,7 @@
} = $props() } = $props()
const workflowRunId = githubActionInvocationId.split("/").at(-3) const workflowRunId = githubActionInvocationId.split("/").at(-3)
const workflowRunUrl = `https://github.com/${repoOwner}/${repoName}/actions/runs/${workflowRunId}/workflow` const workflowRunUrl = `https://github.com/${repoOwner}/${repoName}/actions/runs/${workflowRunId}/workflow`
const giteaMirrorUrl = `https://gitea.kunkun.sh/kunkun-extensions-mirror/${repoOwner}-${repoName}`
</script> </script>
<Card.Root> <Card.Root>
@ -60,12 +61,12 @@
class="underline">Transparentcy log entry</a class="underline">Transparentcy log entry</a
> >
</p> </p>
<!-- <p class="flex flex-col text-sm sm:flex-row"> <p class="flex flex-col text-sm sm:flex-row">
<strong class="mt-2 inline-block w-28 md:mt-0">GitLab Mirror</strong> <strong class="mt-2 inline-block w-28 md:mt-0">Mirror</strong>
<a href={gitlabMirrorUrl} target="_blank" rel="noreferrer" class="underline" <a href={giteaMirrorUrl} target="_blank" rel="noreferrer" class="underline">
>GitLab Mirror</a Mirror Repo
> </a>
</p> --> </p>
</div> </div>
</Card.Content> </Card.Content>
</Card.Root> </Card.Root>