Compare commits
No commits in common. "b586385d6d0094fc6837285b0c450a49e03bd501" and "79f6e8e90b9218442480d67d1907bd3e61f7d4ef" have entirely different histories.
b586385d6d
...
79f6e8e90b
@ -21,21 +21,21 @@
|
|||||||
left: 0%;
|
left: 0%;
|
||||||
top: 0%;
|
top: 0%;
|
||||||
animation: rotate-one 1s linear infinite;
|
animation: rotate-one 1s linear infinite;
|
||||||
border-bottom: 3px solid gray;
|
border-bottom: 3px solid var(--fg);
|
||||||
}
|
}
|
||||||
|
|
||||||
.inner.two {
|
.inner.two {
|
||||||
right: 0%;
|
right: 0%;
|
||||||
top: 0%;
|
top: 0%;
|
||||||
animation: rotate-two 1s linear infinite;
|
animation: rotate-two 1s linear infinite;
|
||||||
border-right: 3px solid gray;
|
border-right: 3px solid var(--fg);
|
||||||
}
|
}
|
||||||
|
|
||||||
.inner.three {
|
.inner.three {
|
||||||
right: 0%;
|
right: 0%;
|
||||||
bottom: 0%;
|
bottom: 0%;
|
||||||
animation: rotate-three 1s linear infinite;
|
animation: rotate-three 1s linear infinite;
|
||||||
border-top: 3px solid gray;
|
border-top: 3px solid var(--fg);
|
||||||
}
|
}
|
||||||
|
|
||||||
@keyframes rotate-one {
|
@keyframes rotate-one {
|
||||||
|
@ -1,11 +1,9 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { loadRepos, repos } from '$lib/stores';
|
import { loadRepos, repos } from '$lib/stores'; import { onMount } from 'svelte';
|
||||||
import { timeSince, checkImage, IMAGE_URL_SUFFIX } from '$lib/api/git';
|
import { timeSince, checkImage, IMAGE_URL_SUFFIX } from '$lib/api/git';
|
||||||
import { toasts } from 'svelte-toasts';
|
|
||||||
|
|
||||||
import FlexGallery from '$lib/components/FlexGallery.svelte';
|
import FlexGallery from '$lib/components/FlexGallery.svelte';
|
||||||
import Card from '$lib/components/Cards/Card.svelte';
|
import Card from '$lib/components/Cards/Card.svelte';
|
||||||
import Loading from '$lib/components/Loading.svelte';
|
|
||||||
|
|
||||||
let repoImages: Record<string, string | null> = {};
|
let repoImages: Record<string, string | null> = {};
|
||||||
|
|
||||||
@ -20,28 +18,12 @@
|
|||||||
}
|
}
|
||||||
})();
|
})();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
onMount(loadRepos);
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
{#await loadRepos()}
|
|
||||||
<Loading />
|
|
||||||
{:then _}
|
|
||||||
{#if $repos.length == 0}
|
|
||||||
{console.log("No Repos")}
|
|
||||||
<div style="display: none;">
|
|
||||||
{toasts.add({
|
|
||||||
title: 'Error',
|
|
||||||
description: 'Failed to load repositories',
|
|
||||||
duration: 5000,
|
|
||||||
type: 'error',
|
|
||||||
placement: 'bottom-center',
|
|
||||||
showProgress: true
|
|
||||||
})}
|
|
||||||
</div>
|
|
||||||
{/if}
|
|
||||||
<!-- Repositories loaded successfully -->
|
|
||||||
<FlexGallery>
|
<FlexGallery>
|
||||||
{#each $repos as repo}
|
{#each $repos as repo}
|
||||||
<!-- <Loading /> -->
|
|
||||||
<Card
|
<Card
|
||||||
headerLeft={repo.name}
|
headerLeft={repo.name}
|
||||||
headerRight={repo.language}
|
headerRight={repo.language}
|
||||||
@ -62,4 +44,3 @@
|
|||||||
</Card>
|
</Card>
|
||||||
{/each}
|
{/each}
|
||||||
</FlexGallery>
|
</FlexGallery>
|
||||||
{/await}
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user