add Gitea subtitle fallback and dummy data (#839)

I omitted most of the 0.5MiB Gitea/Foregejo API reponse for brevity.
pull/841/head
Adam Monsen 2024-12-01 05:29:57 -08:00 committed by GitHub
parent f150c6c037
commit 103168544d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 15 additions and 1 deletions

View File

@ -0,0 +1,11 @@
{
"info": {
"description": "This documentation describes the Forgejo API.",
"title": "Forgejo API",
"license": {
"name": "MIT",
"url": "http://opensource.org/licenses/MIT"
},
"version": "8.0.3+gitea-1.22.0"
}
}

View File

@ -3,7 +3,10 @@
<template #content> <template #content>
<p class="title is-4">{{ item.name }}</p> <p class="title is-4">{{ item.name }}</p>
<p class="subtitle is-6"> <p class="subtitle is-6">
<template v-if="versionstring"> <template v-if="item.subtitle">
{{ item.subtitle }}
</template>
<template v-else-if="versionstring">
Version {{ versionstring }} Version {{ versionstring }}
</template> </template>
</p> </p>