fix: restore content compatibility checks

This commit is contained in:
2026-09-04 20:49:55 +03:00
parent 55158d490e
commit 7d9e3c2eac
13 changed files with 118 additions and 38 deletions

View File

@@ -1,6 +1,7 @@
<script setup lang="ts">
import BrandIcon from './BrandIcon.vue';
import type { ToolkitGroup } from '@/content/types';
import { brandIconAvailable } from '@/icons/brand-icons';
defineProps<{ groups: readonly ToolkitGroup[] }>();
</script>
@@ -11,7 +12,7 @@ defineProps<{ groups: readonly ToolkitGroup[] }>();
<h3 :id="`${group.title}-heading`">{{ group.title }}</h3>
<ul class="toolkit-items">
<li v-for="technology in group.technologies" :key="technology.name" class="toolkit-item" data-testid="toolkit-technology">
<BrandIcon :label="technology.name" />
<BrandIcon v-if="brandIconAvailable(technology.name)" :label="technology.name" />
<span>{{ technology.name }}</span>
</li>
</ul>