pref(ChangeLog): update commits list

This commit is contained in:
thehrz 2023-08-02 14:13:15 +08:00
parent bb697f995d
commit d80af3c4c2
Signed by: thehrz
GPG Key ID: C84CBCE7D5F88855

View File

@ -1,6 +1,7 @@
<script setup lang="ts">
interface Commit {
sha: string
created: string
commit: {
message: string
}
@ -32,7 +33,7 @@ const { isFetching, error, data } = useFetch('https://git.thehrz.net/api/v1/repo
<v-list-item
v-for="commit in data"
:key="commit.commit.message" :title="commit.commit.message"
:subtitle="`${commit.sha.slice(0, 6)} ${commit.author.username}`"
:subtitle="`${commit.sha.slice(0, 6)} ${commit.created}`"
/>
</v-list>
</v-card>