fix: extension store platform display bug

This commit is contained in:
Huakun Shen 2025-01-21 05:52:55 -05:00
parent f05ffdfcfd
commit 646801ac99
No known key found for this signature in database

View File

@ -1,27 +1,33 @@
<script lang="ts">
import { IconEnum, type OSPlatformEnum } from "@kksh/api/models"
import { IconEnum, OSPlatformEnum } from "@kksh/api/models"
import { IconMultiplexer } from "@kksh/ui"
const { platforms }: { platforms: OSPlatformEnum[] } = $props()
</script>
<div class="flex gap-2">
<IconMultiplexer
icon={{
type: IconEnum.Iconify,
value: "logos:linux-tux"
}}
/>
<IconMultiplexer
icon={{
type: IconEnum.Iconify,
value: "basil:apple-solid"
}}
/>
<IconMultiplexer
icon={{
type: IconEnum.Iconify,
value: "devicon:windows8"
}}
/>
{#if platforms.includes(OSPlatformEnum.linux)}
<IconMultiplexer
icon={{
type: IconEnum.Iconify,
value: "logos:linux-tux"
}}
/>
{/if}
{#if platforms.includes(OSPlatformEnum.macos)}
<IconMultiplexer
icon={{
type: IconEnum.Iconify,
value: "basil:apple-solid"
}}
/>
{/if}
{#if platforms.includes(OSPlatformEnum.windows)}
<IconMultiplexer
icon={{
type: IconEnum.Iconify,
value: "devicon:windows8"
}}
/>
{/if}
</div>