-
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
1 parent
552210f
commit 61f9b8e
Showing
10 changed files
with
930 additions
and
226 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
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,99 @@ | ||
<script setup lang="ts"> | ||
import { formatTimeAgo } from '@vueuse/core' | ||
import { useFetch } from 'nuxt/app' | ||
import type { ReleaseInfo } from '../../types' | ||
const { data: page } = await useAsyncData('releases', () => queryContent('/releases').findOne()) | ||
if (!page.value) { | ||
throw createError({ statusCode: 404, statusMessage: 'Page not found', fatal: true }) | ||
} | ||
const { data = [] } = await useFetch<ReleaseInfo[]>('/api/releases') | ||
definePageMeta({ | ||
colorMode: 'dark' | ||
}) | ||
</script> | ||
|
||
<template> | ||
<div> | ||
<UPageHeader v-bind="page" /> | ||
<UPage> | ||
<UPageBody> | ||
<div class="mb-3 max-w-[600px] mx-auto text-center"> | ||
GitHub releases by | ||
<a | ||
href="https://github.com/vernaillen" | ||
target="_blank" | ||
> | ||
Wouter Vernaillen | ||
</a> | ||
</div> | ||
<div class="mb-10 opacity-50 text-sm max-w-[600px] mx-auto text-center"> | ||
Only the latest release of each repo is shown | ||
</div> | ||
|
||
<div | ||
v-for="item, index of data" | ||
:key="index" | ||
class="grid grid-cols-12 gap-4 mb-5 max-w-[600px] mx-auto slide-enter" | ||
:style="'--enter-stage:' + (index * 3) + ';'" | ||
> | ||
<div class="col-span-1"> | ||
<a | ||
:href="`https://github.com/${item.repo}`" | ||
target="_blank" | ||
class="flex-none" | ||
> | ||
<img | ||
:src="`https://github.com/${item.repo.split('/')[0]}.png`" | ||
class="h-10 w-10" | ||
:alt="item.repo" | ||
:class="item.repo.startsWith('vernaillen/') ? 'rounded-full' : 'rounded'" | ||
> | ||
</a> | ||
</div> | ||
<div class="col-span-8"> | ||
<div> | ||
<a | ||
:href="`https://github.com/${item.repo}`" | ||
target="_blank" | ||
> | ||
{{ item.repo.split('/')[0] }} / {{ item.repo.split('/')[1] }} | ||
</a> | ||
</div> | ||
<div class="opacity-50 text-sm"> | ||
<a | ||
:href="item.commit" | ||
target="_blank" | ||
> | ||
<UIcon | ||
name="i-ph-git-commit-duotone" | ||
class="rotate-90 -ml-[1px] -mb-[1px]" | ||
/> | ||
{{ item.title }} | ||
</a> | ||
</div> | ||
</div> | ||
<div class="col-span-3"> | ||
<div class="text-end"> | ||
<a | ||
font-mono | ||
:href="`https://github.com/${item.repo}/releases/tag/v${item.version}`" | ||
target="_blank" | ||
> | ||
|
||
v{{ item.version }} | ||
</a> | ||
</div> | ||
<div class="text-end opacity-50"> | ||
<time | ||
:datatime="item.created_at" | ||
>{{ formatTimeAgo(new Date(item.created_at)) }}</time> | ||
</div> | ||
</div> | ||
</div> | ||
</UPageBody> | ||
</UPage> | ||
</div> | ||
</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,4 @@ | ||
|
||
title: Releases | ||
description: Wouter Vernaillen's recent release commits on GitHub | ||
pageName: Releases |
File renamed without changes.
File renamed without changes.
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
Oops, something went wrong.