diff --git a/packages/frontend/src/lib/components/recording-card/recording-card.svelte b/packages/frontend/src/lib/components/recording-card/recording-card.svelte index 0df67b9..984fe53 100644 --- a/packages/frontend/src/lib/components/recording-card/recording-card.svelte +++ b/packages/frontend/src/lib/components/recording-card/recording-card.svelte @@ -21,7 +21,6 @@ const seconds = totalSeconds % 60; return `${minutes}:${seconds.toString().padStart(2, "0")}`; } - - import { cn, type WithElementRef } from "$lib/utils.js"; - import type { HTMLAttributes } from "svelte/elements"; + import { cn, type WithElementRef } from "$lib/utils.js"; + import type { HTMLAttributes } from "svelte/elements"; - let { - ref = $bindable(null), - class: className, - children, - ...restProps - }: WithElementRef> = $props(); + let { + ref = $bindable(null), + class: className, + children, + ...restProps + }: WithElementRef> = $props();
- {@render children?.()} + {@render children?.()}
diff --git a/packages/frontend/src/lib/components/ui/empty/empty-description.svelte b/packages/frontend/src/lib/components/ui/empty/empty-description.svelte index 85a866c..4d2ce1c 100644 --- a/packages/frontend/src/lib/components/ui/empty/empty-description.svelte +++ b/packages/frontend/src/lib/components/ui/empty/empty-description.svelte @@ -1,23 +1,23 @@
a:hover]:text-primary text-sm/relaxed [&>a]:underline [&>a]:underline-offset-4", - className - )} - {...restProps} + bind:this={ref} + data-slot="empty-description" + class={cn( + "text-muted-foreground [&>a:hover]:text-primary text-sm/relaxed [&>a]:underline [&>a]:underline-offset-4", + className, + )} + {...restProps} > - {@render children?.()} + {@render children?.()}
diff --git a/packages/frontend/src/lib/components/ui/empty/empty-header.svelte b/packages/frontend/src/lib/components/ui/empty/empty-header.svelte index 296eaf8..163d7c6 100644 --- a/packages/frontend/src/lib/components/ui/empty/empty-header.svelte +++ b/packages/frontend/src/lib/components/ui/empty/empty-header.svelte @@ -1,20 +1,20 @@
- {@render children?.()} + {@render children?.()}
diff --git a/packages/frontend/src/lib/components/ui/empty/empty-media.svelte b/packages/frontend/src/lib/components/ui/empty/empty-media.svelte index 0b4e45d..542ffd6 100644 --- a/packages/frontend/src/lib/components/ui/empty/empty-media.svelte +++ b/packages/frontend/src/lib/components/ui/empty/empty-media.svelte @@ -1,41 +1,41 @@
- {@render children?.()} + {@render children?.()}
diff --git a/packages/frontend/src/lib/components/ui/empty/empty-title.svelte b/packages/frontend/src/lib/components/ui/empty/empty-title.svelte index 8c237aa..076d3cd 100644 --- a/packages/frontend/src/lib/components/ui/empty/empty-title.svelte +++ b/packages/frontend/src/lib/components/ui/empty/empty-title.svelte @@ -1,20 +1,20 @@
- {@render children?.()} + {@render children?.()}
diff --git a/packages/frontend/src/lib/components/ui/empty/empty.svelte b/packages/frontend/src/lib/components/ui/empty/empty.svelte index 4ccf060..23f6dd1 100644 --- a/packages/frontend/src/lib/components/ui/empty/empty.svelte +++ b/packages/frontend/src/lib/components/ui/empty/empty.svelte @@ -1,23 +1,23 @@
- {@render children?.()} + {@render children?.()}
diff --git a/packages/frontend/src/lib/components/ui/empty/index.ts b/packages/frontend/src/lib/components/ui/empty/index.ts index ae4c106..a4996a2 100644 --- a/packages/frontend/src/lib/components/ui/empty/index.ts +++ b/packages/frontend/src/lib/components/ui/empty/index.ts @@ -6,17 +6,17 @@ import Description from "./empty-description.svelte"; import Content from "./empty-content.svelte"; export { - Root, - Header, - Media, - Title, - Description, - Content, - // - Root as Empty, - Header as EmptyHeader, - Media as EmptyMedia, - Title as EmptyTitle, - Description as EmptyDescription, - Content as EmptyContent, + Root, + Header, + Media, + Title, + Description, + Content, + // + Root as Empty, + Header as EmptyHeader, + Media as EmptyMedia, + Title as EmptyTitle, + Description as EmptyDescription, + Content as EmptyContent, }; diff --git a/packages/frontend/src/lib/services.ts b/packages/frontend/src/lib/services.ts index 559cea2..66125c3 100644 --- a/packages/frontend/src/lib/services.ts +++ b/packages/frontend/src/lib/services.ts @@ -912,20 +912,14 @@ const UPDATE_RECORDING_MUTATION = gql` } `; -export async function updateRecording( - id: string, - fields: { status?: string; public?: boolean }, -) { - return loggedApiCall( - "updateRecording", - async () => { - const data = await getGraphQLClient().request<{ updateRecording: Recording }>( - UPDATE_RECORDING_MUTATION, - { id, ...fields }, - ); - return data.updateRecording; - }, - ); +export async function updateRecording(id: string, fields: { status?: string; public?: boolean }) { + return loggedApiCall("updateRecording", async () => { + const data = await getGraphQLClient().request<{ updateRecording: Recording }>( + UPDATE_RECORDING_MUTATION, + { id, ...fields }, + ); + return data.updateRecording; + }); } const DELETE_RECORDING_MUTATION = gql` diff --git a/packages/frontend/src/routes/admin/+layout.svelte b/packages/frontend/src/routes/admin/+layout.svelte index 8d49a30..080a598 100644 --- a/packages/frontend/src/routes/admin/+layout.svelte +++ b/packages/frontend/src/routes/admin/+layout.svelte @@ -68,7 +68,10 @@