mirror of
https://github.com/ReVanced/revanced-website.git
synced 2026-01-23 02:51:03 +00:00
refactor: remove repo name repitition
This commit is contained in:
@@ -1,15 +1,15 @@
|
||||
<script lang="ts">
|
||||
export let username: string;
|
||||
export let name: string;
|
||||
export let pfp: string;
|
||||
export let url: string;
|
||||
let alt = `${username}'s contributor profile picture`
|
||||
let alt = `${name}'s profile picture`
|
||||
</script>
|
||||
|
||||
<a href={url} target="_blank">
|
||||
<button>
|
||||
<img src={pfp} alt={alt}><slot/>
|
||||
</button>
|
||||
<h2>{username}</h2>
|
||||
<h2>{name}</h2>
|
||||
</a>
|
||||
|
||||
<style>
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
onMount (() => {
|
||||
ContributorsStore.subscribe(async (data) => {
|
||||
contribs = await data;
|
||||
contribs = contribs[repo]
|
||||
contribs = contribs[repo].contributors
|
||||
});
|
||||
});
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
<div class="contrib-host">
|
||||
{#each contribs as contrib}
|
||||
{#if !usersIwantToExplodeSoBadly.includes(contrib.login)}
|
||||
<ContributorButton username={contrib.login} pfp={contrib.avatar_url} url={contrib.html_url} />
|
||||
<ContributorButton name={contrib.login} pfp={contrib.avatar_url} url={contrib.html_url} />
|
||||
{/if}
|
||||
{/each}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user