Skip to content

Commit

Permalink
add Gitea subtitle fallback and dummy data (#839)
Browse files Browse the repository at this point in the history
I omitted most of the 0.5MiB Gitea/Foregejo API reponse for brevity.
  • Loading branch information
meonkeys authored Dec 1, 2024
1 parent f150c6c commit 1031685
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
11 changes: 11 additions & 0 deletions dummy-data/gitea/swagger.v1.json
Original file line number Diff line number Diff line change
@@ -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"
}
}
5 changes: 4 additions & 1 deletion src/components/services/Gitea.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
<template #content>
<p class="title is-4">{{ item.name }}</p>
<p class="subtitle is-6">
<template v-if="versionstring">
<template v-if="item.subtitle">
{{ item.subtitle }}
</template>
<template v-else-if="versionstring">
Version {{ versionstring }}
</template>
</p>
Expand Down

0 comments on commit 1031685

Please sign in to comment.