Skip to content
This repository has been archived by the owner on Jun 23, 2024. It is now read-only.

Commit

Permalink
Fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
screendriver committed Jun 14, 2024
1 parent c60f790 commit 3a58ea3
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 20 deletions.
12 changes: 6 additions & 6 deletions source/statistics/GitHubRepositories.vue
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<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 StatisticsFigure from "./StatisticsFigure.vue";
import LoadingSpinner from "./LoadingSpinner.vue";
import Cite from "./Cite.vue";
import StatisticsCite from "./StatisticsCite.vue";
interface Properties {
readonly isFetching: boolean;
Expand All @@ -14,10 +14,10 @@ const { isFetching, gitHubStatistics } = defineProps<Properties>();
</script>

<template>
<Figure description="GitHub Repos">
<StatisticsFigure description="GitHub Repos">
<LoadingSpinner v-if="isFetching" />
<Cite v-if="!isFetching" ariaLabel="GitHub Repos">
<StatisticsCite v-if="!isFetching" ariaLabel="GitHub Repos">
{{ gitHubStatistics.get("user").get("repositories").get("totalCount").unwrapOr(0) }}
</Cite>
</Figure>
</StatisticsCite>
</StatisticsFigure>
</template>
12 changes: 6 additions & 6 deletions source/statistics/GitHubStars.vue
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<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 StatisticsFigure from "./StatisticsFigure.vue";
import LoadingSpinner from "./LoadingSpinner.vue";
import Cite from "./Cite.vue";
import StatisticsCite from "./StatisticsCite.vue";
interface Properties {
readonly isFetching: boolean;
Expand All @@ -14,10 +14,10 @@ const { isFetching, gitHubStatistics } = defineProps<Properties>();
</script>

<template>
<Figure description="GitHub Stars">
<StatisticsFigure description="GitHub Stars">
<LoadingSpinner v-if="isFetching" />
<Cite v-if="!isFetching" ariaLabel="GitHub Stars">
<StatisticsCite v-if="!isFetching" ariaLabel="GitHub Stars">
{{ gitHubStatistics.get("user").get("starredRepositories").get("totalCount").unwrapOr(0) }}
</Cite>
</Figure>
</StatisticsCite>
</StatisticsFigure>
</template>
File renamed without changes.
6 changes: 3 additions & 3 deletions source/statistics/StatisticsData.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { Maybe } from "true-myth";
import YearsInBusiness from "./YearsInBusiness.vue";
import GitHubRepositories from "./GitHubRepositories.vue";
import GitHubStars from "./GitHubStars.vue";
import Figure from "./Figure.vue";
import StatisticsFigure from "./StatisticsFigure.vue";
import { gitHubStatisticsSchema, type GitHubStatistics } from "../github-statistics/github-statistics-schema";
const currentYear = import.meta.env.PROD ? new Date() : new Date(2022, 2, 23);
Expand All @@ -30,7 +30,7 @@ const barChartIcon = icons["bar-chart"].toSvg({ class: "text-dracula-green w-6 h
<YearsInBusiness :years-of-experience="yearsOfExperience" />
<GitHubRepositories :is-fetching="isFetching" :gitHubStatistics="gitHubStatistics" />
<GitHubStars :is-fetching="isFetching" :gitHubStatistics="gitHubStatistics" />
<Figure description="Lines of Code">
<StatisticsFigure description="Lines of Code">
<figure v-html="barChartIcon" />
</Figure>
</StatisticsFigure>
</template>
File renamed without changes.
10 changes: 5 additions & 5 deletions source/statistics/YearsInBusiness.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script setup lang="ts">
import Figure from "./Figure.vue";
import Cite from "./Cite.vue";
import StatisticsFigure from "./StatisticsFigure.vue";
import StatisticsCite from "./StatisticsCite.vue";
interface Properties {
readonly yearsOfExperience: number;
Expand All @@ -10,7 +10,7 @@ const { yearsOfExperience } = defineProps<Properties>();
</script>

<template>
<Figure description="Experience">
<Cite ariaLabel="Years of experience">{{ yearsOfExperience }} yrs</Cite>
</Figure>
<StatisticsFigure description="Experience">
<StatisticsCite ariaLabel="Years of experience">{{ yearsOfExperience }} yrs</StatisticsCite>
</StatisticsFigure>
</template>

0 comments on commit 3a58ea3

Please sign in to comment.