mirror of
https://github.com/Raghu-Ch/angular-challenges.git
synced 2026-02-13 14:23:02 -05:00
fix: stats
This commit is contained in:
@@ -1,5 +1,4 @@
|
|||||||
<script>
|
<script>
|
||||||
import MyIcon from './MyIcon.astro';
|
|
||||||
import { onMount } from 'svelte';
|
import { onMount } from 'svelte';
|
||||||
|
|
||||||
let error = false;
|
let error = false;
|
||||||
@@ -33,12 +32,12 @@
|
|||||||
{#if !error && !loading}
|
{#if !error && !loading}
|
||||||
<div class="github">
|
<div class="github">
|
||||||
<a class="category" href="https://github.com/tomalaforge/angular-challenges">
|
<a class="category" href="https://github.com/tomalaforge/angular-challenges">
|
||||||
<MyIcon name="star" />
|
<slot name="star"/>
|
||||||
<div>{stargazersCount}</div>
|
<div>{stargazersCount}</div>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<div class="category fork">
|
<div class="category fork">
|
||||||
<MyIcon name="fork" viewBox="0 0 16 16" />
|
<slot name="fork"/>
|
||||||
<div>{forksCount}</div>
|
<div>{forksCount}</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
---
|
---
|
||||||
import Default from '@astrojs/starlight/components/SiteTitle.astro';
|
import Default from '@astrojs/starlight/components/SiteTitle.astro';
|
||||||
import GitHubStats from './GitHubStats.svelte';
|
import GitHubStats from './GitHubStats.svelte';
|
||||||
|
import MyIcon from './MyIcon.astro';
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
@@ -8,6 +9,9 @@ import GitHubStats from './GitHubStats.svelte';
|
|||||||
<slot />
|
<slot />
|
||||||
</Default>
|
</Default>
|
||||||
|
|
||||||
<GitHubStats client:load />
|
<GitHubStats client:load >
|
||||||
|
<MyIcon name="star" slot="star" />
|
||||||
|
<MyIcon name="fork" viewBox="0 0 16 16" slot="fork"/>
|
||||||
|
</GitHubStats>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user