kunkun/packages/ui/src/components/common/PlatformsIcons.svelte
Huakun 48e2e47f96
Remove supabase (#263)
* remove supabase package

* upgrade valibot

* removed supabase package

Migration not complete yet

* update submodule

* fixed some supabase errors

* Add new fields to extension models

- Added `id` field to `ExtPublish`
- Expanded `DBExtension` with multiple new properties:
  - `api_version`, `author_id`, `created_at`,
  - `downloads`, `icon`, `identifier`,
  - `long_description`, `name`,
  - `readme`, `short_description`,
  - and `tarball_size`

* Refactor: clean up unused Supabase imports

- Removed commented-out Supabase imports from various files to streamline the codebase.
- Updated `created_at` type in `ExtPublish` model from `date` to `string` for consistency.

* update icon enum to union

* fix type errors after removing supabase

* format

* more types fixed

* feat: enhance command handling and update SDK version
2025-03-26 08:50:55 -04:00

34 lines
705 B
Svelte

<script lang="ts">
import { IconEnum, OSPlatform, OSPlatformEnum } from "@kksh/api/models"
import { IconMultiplexer } from "@kksh/ui"
const { platforms }: { platforms: OSPlatform[] } = $props()
</script>
<div class="flex gap-2">
{#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>