This repository has been archived by the owner on Jun 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
123 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ | |
node_modules | ||
target | ||
.astro | ||
github_api_test_token |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,23 @@ | ||
<script setup lang="ts"> | ||
import type { Maybe } from "true-myth"; | ||
import type { GitHubStatistics } from "../github-statistics/github-statistics-schema"; | ||
import Figure from "./Figure.vue"; | ||
import LoadingSpinner from "./LoadingSpinner.vue"; | ||
import Cite from "./Cite.vue"; | ||
interface Properties { | ||
readonly repositoriesTotalCount: number; | ||
readonly isFetching: boolean; | ||
readonly gitHubStatistics: Maybe<GitHubStatistics>; | ||
} | ||
const { repositoriesTotalCount } = defineProps<Properties>(); | ||
const { isFetching, gitHubStatistics } = defineProps<Properties>(); | ||
</script> | ||
|
||
<template> | ||
<Figure description="GitHub Repos"> | ||
<Cite aria-label="GitHub Repos"> | ||
{{ repositoriesTotalCount }} | ||
<LoadingSpinner v-if="isFetching" /> | ||
<Cite v-if="!isFetching" aria-label="GitHub Repos"> | ||
{{ gitHubStatistics.get("user").get("repositories").get("totalCount").unwrapOr(0) }} | ||
</Cite> | ||
</Figure> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,23 @@ | ||
<script setup lang="ts"> | ||
import type { Maybe } from "true-myth"; | ||
import type { GitHubStatistics } from "../github-statistics/github-statistics-schema"; | ||
import Figure from "./Figure.vue"; | ||
import LoadingSpinner from "./LoadingSpinner.vue"; | ||
import Cite from "./Cite.vue"; | ||
interface Properties { | ||
readonly starredRepositoriesTotalCount: number; | ||
readonly isFetching: boolean; | ||
readonly gitHubStatistics: Maybe<GitHubStatistics>; | ||
} | ||
const { starredRepositoriesTotalCount } = defineProps<Properties>(); | ||
const { isFetching, gitHubStatistics } = defineProps<Properties>(); | ||
</script> | ||
|
||
<template> | ||
<Figure description="GitHub Stars"> | ||
<Cite ariaLabel="GitHub Stars"> | ||
{{ starredRepositoriesTotalCount }} | ||
<LoadingSpinner v-if="isFetching" /> | ||
<Cite v-if="!isFetching" ariaLabel="GitHub Stars"> | ||
{{ gitHubStatistics.get("user").get("starredRepositories").get("totalCount").unwrapOr(0) }} | ||
</Cite> | ||
</Figure> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
<template> | ||
<svg class="h-6 fill-current text-dracula-green" viewBox="0 0 135 140" xmlns="http://www.w3.org/2000/svg"> | ||
<rect y="10" width="15" height="120" rx="6"> | ||
<animate | ||
attributeName="height" | ||
begin="0.5s" | ||
dur="1s" | ||
values="120;110;100;90;80;70;60;50;40;140;120" | ||
calcMode="linear" | ||
repeatCount="indefinite" | ||
/> | ||
<animate | ||
attributeName="y" | ||
begin="0.5s" | ||
dur="1s" | ||
values="10;15;20;25;30;35;40;45;50;0;10" | ||
calcMode="linear" | ||
repeatCount="indefinite" | ||
/> | ||
</rect> | ||
<rect x="30" y="10" width="15" height="120" rx="6"> | ||
<animate | ||
attributeName="height" | ||
begin="0.25s" | ||
dur="1s" | ||
values="120;110;100;90;80;70;60;50;40;140;120" | ||
calcMode="linear" | ||
repeatCount="indefinite" | ||
/> | ||
<animate | ||
attributeName="y" | ||
begin="0.25s" | ||
dur="1s" | ||
values="10;15;20;25;30;35;40;45;50;0;10" | ||
calcMode="linear" | ||
repeatCount="indefinite" | ||
/> | ||
</rect> | ||
<rect x="60" width="15" height="140" rx="6"> | ||
<animate | ||
attributeName="height" | ||
begin="0s" | ||
dur="1s" | ||
values="120;110;100;90;80;70;60;50;40;140;120" | ||
calcMode="linear" | ||
repeatCount="indefinite" | ||
/> | ||
<animate | ||
attributeName="y" | ||
begin="0s" | ||
dur="1s" | ||
values="10;15;20;25;30;35;40;45;50;0;10" | ||
calcMode="linear" | ||
repeatCount="indefinite" | ||
/> | ||
</rect> | ||
<rect x="90" y="10" width="15" height="120" rx="6"> | ||
<animate | ||
attributeName="height" | ||
begin="0.25s" | ||
dur="1s" | ||
values="120;110;100;90;80;70;60;50;40;140;120" | ||
calcMode="linear" | ||
repeatCount="indefinite" | ||
/> | ||
<animate | ||
attributeName="y" | ||
begin="0.25s" | ||
dur="1s" | ||
values="10;15;20;25;30;35;40;45;50;0;10" | ||
calcMode="linear" | ||
repeatCount="indefinite" | ||
/> | ||
</rect> | ||
<rect x="120" y="10" width="15" height="120" rx="6"> | ||
<animate | ||
attributeName="height" | ||
begin="0.5s" | ||
dur="1s" | ||
values="120;110;100;90;80;70;60;50;40;140;120" | ||
calcMode="linear" | ||
repeatCount="indefinite" | ||
/> | ||
<animate | ||
attributeName="y" | ||
begin="0.5s" | ||
dur="1s" | ||
values="10;15;20;25;30;35;40;45;50;0;10" | ||
calcMode="linear" | ||
repeatCount="indefinite" | ||
/> | ||
</rect> | ||
</svg> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters