feat: add manual js

i cannot believe this
This commit is contained in:
2022-08-12 20:44:27 -04:00
parent 98a2cee26a
commit a9a555d20a
7 changed files with 96 additions and 8 deletions

View File

@@ -7,8 +7,7 @@ const imgUrl = ref("");
const href = ref("");
onMounted(async () => {
const results = (await useFetch(FEED_URL, { initialCache: false }))
.data as Ref<GithubPushEvent[]>;
const results = (await useFetch(FEED_URL)).data as Ref<GithubPushEvent[]>;
const latestEvent = results.value.find(
(event) => event.type === "PushEvent"
) as GithubPushEvent;
@@ -22,12 +21,13 @@ onMounted(async () => {
<div class="prose dark:prose-invert">
<HomeStatBox
:href="href"
id="github-commit-a"
color="lightgray"
darkcolor="slategray"
title="Latest commit"
:clearstyles="true"
>
<img class="m-0 w-full h-full" :src="imgUrl" />
<img class="m-0 w-full h-full" :src="imgUrl" id="github-commit-img" />
<!--
<div>
<h2>{{ title }}</h2>