mirror of
https://github.com/immich-app/immich.git
synced 2026-06-05 06:15:24 -04:00
b3d49045de
* Feat - Heatmap * Implemented Comments to prettify and code cleanup * fixing code to pass cases. * fixing errors for OpenAPI Clients * Improving the code. * Fix code * Rerun generated client check * Rerun generated client * feat: command for user pages (#28554) * fix(web): timeline stuttering with many assets in 1 day (#28509) * fix(web): timeline stuttering with many assets in 1 day * cache isInOrNearViewport per day * skip inOrNearViewport check on first run * chore(ml): allow insightface 1.x (#28595) * chore(ml): allow insightface 1.x The new insightface 1.0 release appears to have no breaking code changes nor relevant license changes ([before](https://github.com/deepinsight/insightface/blob/2a78baec428354883e0cda39c54b555a5ed8358a/README.md), [after](https://github.com/deepinsight/insightface/blob/70f3269ea628d0658c5723976944c9de414e96f8/README.md), c.f. https://github.com/immich-app/immich/blob/fd7ddfef54cdf2b6256c4fc08bc5ff3f86176775/machine-learning/README.md), and it works on my machine. * Update uv.lock * please excuse my incompetence * Triggering the actions. * bad merge * Fix code * Code clear * Resolve conflict * Resolve conflict * Resolve conflict * Resolve errors * Resolve errors * Resolve errors more * chore: clean up --------- Co-authored-by: Alex <alex.tran1502@gmail.com> Co-authored-by: Ben Beckford <ben@benjaminbeckford.com> Co-authored-by: Aaron Liu <aaronliu0130@gmail.com> Co-authored-by: Jason Rasmussen <jason@rasm.me>
35 lines
961 B
Svelte
35 lines
961 B
Svelte
<script lang="ts">
|
|
import HeaderActionButton from '$lib/components/HeaderActionButton.svelte';
|
|
import { Card, CardBody, CardHeader, CardTitle, Icon, type ActionItem, type IconLike } from '@immich/ui';
|
|
import type { Snippet } from 'svelte';
|
|
|
|
type Props = {
|
|
icon: IconLike;
|
|
title: string;
|
|
headerAction?: ActionItem;
|
|
children?: Snippet;
|
|
class?: string;
|
|
};
|
|
|
|
const { icon, title, headerAction, class: className, children }: Props = $props();
|
|
</script>
|
|
|
|
<Card color="secondary" class={className}>
|
|
<CardHeader>
|
|
<div class="flex w-full items-center justify-between px-4 py-2">
|
|
<div class="flex gap-2 text-primary">
|
|
<Icon {icon} size="1.5rem" />
|
|
<CardTitle>{title}</CardTitle>
|
|
</div>
|
|
{#if headerAction}
|
|
<HeaderActionButton action={headerAction} />
|
|
{/if}
|
|
</div>
|
|
</CardHeader>
|
|
<CardBody>
|
|
<div class="px-4 pb-7">
|
|
{@render children?.()}
|
|
</div>
|
|
</CardBody>
|
|
</Card>
|