Line data Source code
1 4 : <template>
2 : <div class="about-container flex flex-col gap-2" data-testid="about-panel">
3 : <h2 class="mb-2 text-2xl font-bold">
4 : {{ $t('g.about') }}
5 : </h2>
6 : <div class="space-y-2">
7 35 : <a
8 : v-for="badge in aboutPanelStore.badges"
9 : :key="badge.url"
10 : :href="badge.url"
11 : target="_blank"
12 : rel="noopener noreferrer"
13 : class="about-badge inline-flex items-center no-underline"
14 : :title="badge.url"
15 : >
16 : <Badge
17 : class="mr-2"
18 : :severity="badge.severity === 'warn' ? 'warning' : badge.severity"
19 : >
20 : <template #icon>
21 : <i :class="cn(badge.icon, 'mr-2 text-xl')" />
22 : </template>
23 : {{ badge.label }}
24 : </Badge>
25 : </a>
26 : </div>
27 :
28 : <div class="my-4 border-t" />
29 :
30 : <SystemStatsPanel
31 : v-if="systemStatsStore.systemStats"
32 : :stats="systemStatsStore.systemStats"
33 : />
34 : </div>
35 : </template>
36 :
37 : <script setup lang="ts">
38 : import { cn } from '@comfyorg/tailwind-utils'
39 :
40 : import SystemStatsPanel from '@/components/common/SystemStatsPanel.vue'
41 : import Badge from '@comfyorg/design-system/badge/Badge'
42 : import { useAboutPanelStore } from '@/stores/aboutPanelStore'
43 : import { useSystemStatsStore } from '@/stores/systemStatsStore'
44 :
45 5 : const systemStatsStore = useSystemStatsStore()
46 5 : const aboutPanelStore = useAboutPanelStore()
47 : </script>
|