Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions web/src/lib/components/SystemSettingsCard.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<script lang="ts">
import { Card, CardBody, CardHeader, Heading, Text } from '@immich/ui';
import type { Snippet } from 'svelte';

type Props = {
title: string;
subtitle?: string | Snippet;
children?: Snippet;
};

const { title, subtitle, children }: Props = $props();
</script>

<Card class="dark:border-light-300" color="secondary">
<CardHeader class="dark:border-light-300 px-5 pt-5">
<Heading size="small" color="secondary" fontWeight="bold">{title}</Heading>
<Text size="small" color="muted">
{#if typeof subtitle === 'string'}
{subtitle}
{:else}
{@render subtitle?.()}
{/if}
</Text>
</CardHeader>
<CardBody class="dark:border-light-300 px-5 pb-5">
<div class="flex flex-col gap-5">
{@render children?.()}
</div>
</CardBody>
</Card>
291 changes: 0 additions & 291 deletions web/src/lib/components/admin-settings/AuthSettings.svelte

This file was deleted.

Loading
Loading