From 42b083596eb0de8e3965be1b8c53d929cda078bc Mon Sep 17 00:00:00 2001 From: Zsolt Tasnadi Date: Mon, 3 Aug 2026 21:39:51 +0200 Subject: [PATCH] PlatformBadge --- .../frontend/src/components/PlatformBadge.vue | 27 +++++++++++++++++++ .../src/page/catalog/CatalogIndexPage.vue | 4 +-- .../src/page/catalog/CatalogShowPage.vue | 5 ++-- 3 files changed, 32 insertions(+), 4 deletions(-) create mode 100644 apps/frontend/src/components/PlatformBadge.vue diff --git a/apps/frontend/src/components/PlatformBadge.vue b/apps/frontend/src/components/PlatformBadge.vue new file mode 100644 index 0000000..3c6aea0 --- /dev/null +++ b/apps/frontend/src/components/PlatformBadge.vue @@ -0,0 +1,27 @@ + + + + + diff --git a/apps/frontend/src/page/catalog/CatalogIndexPage.vue b/apps/frontend/src/page/catalog/CatalogIndexPage.vue index 14a14a8..c2e9885 100644 --- a/apps/frontend/src/page/catalog/CatalogIndexPage.vue +++ b/apps/frontend/src/page/catalog/CatalogIndexPage.vue @@ -32,12 +32,11 @@

{{ software.title }}

{{ t(`common.status.${software.status}`) }} +

{{ software.desc }}

{{ t('catalog.author') }} {{ software.author }} - - {{ t('catalog.platform') }} {{ software.platform }}
@@ -70,6 +69,7 @@ import { RouterLink } from 'vue-router' import { useI18n } from 'vue-i18n' import { useSoftwareStore } from '../../stores/software.store' import { getDefaultImageUrl, getLatestStable } from '../../lib/softwareUtils' +import PlatformBadge from '../../components/PlatformBadge.vue' import type { SoftwareEntry } from '../../lib/interfaces/software.interface' const { t } = useI18n() diff --git a/apps/frontend/src/page/catalog/CatalogShowPage.vue b/apps/frontend/src/page/catalog/CatalogShowPage.vue index 20fe021..39d7a16 100644 --- a/apps/frontend/src/page/catalog/CatalogShowPage.vue +++ b/apps/frontend/src/page/catalog/CatalogShowPage.vue @@ -12,7 +12,7 @@
{{ t(`common.status.${software.status}`) }} - {{ software.platform }} +

{{ software.title }}

{{ software.desc }}

@@ -57,7 +57,7 @@
{{ t('catalogShow.platform') }}
-
{{ software.platform }}
+
{{ t('catalogShow.license') }}
@@ -236,6 +236,7 @@ import { useSoftwareStore } from '../../stores/software.store' import { filterStableReleases, filterDevReleases } from '../../lib/softwareUtils' import type { Release, Software, SoftwareImage } from '../../lib/interfaces/software.interface' import ImageLightbox from './ImageLightbox.vue' +import PlatformBadge from '../../components/PlatformBadge.vue' const { t } = useI18n() const route = useRoute()