Skip to content

Modern Docker Management, Designed for Everyone

chore: run formatter

Kyle Mendellf0390cd66a9b
diff --git a/frontend/src/hooks.client.ts b/frontend/src/hooks.client.ts
index 2f9fb0858..4b6ab2b1b 100644
--- a/frontend/src/hooks.client.ts
+++ b/frontend/src/hooks.client.ts
@@ -5,9 +5,7 @@ export const handleError: HandleClientError = async ({ error, message, status })
if (error instanceof AxiosError) {
message = error.response?.data.error || message;
status = error.response?.status || status;
- console.error(
- `Axios error: ${error.request.path} - ${error.response?.data.error ?? error.message}`
- );
+ console.error(`Axios error: ${error.request.path} - ${error.response?.data.error ?? error.message}`);
} else {
console.error(error);
}
diff --git a/frontend/src/lib/components/badges/status-badge.svelte b/frontend/src/lib/components/badges/status-badge.svelte
index 1d8bec155..e764ff65e 100644
--- a/frontend/src/lib/components/badges/status-badge.svelte
+++ b/frontend/src/lib/components/badges/status-badge.svelte
@@ -76,7 +76,7 @@
<span
class={cn(
- 'inline-flex items-center justify-center whitespace-nowrap rounded-full px-2.5 py-0.5 text-xs font-medium text-center',
+ 'inline-flex items-center justify-center rounded-full px-2.5 py-0.5 text-center text-xs font-medium whitespace-nowrap',
minWidthClasses[resolvedMinWidth],
variantStyles[variant as Variant],
className
diff --git a/frontend/src/lib/components/confirm-dialog/confirm-dialog.svelte b/frontend/src/lib/components/confirm-dialog/confirm-dialog.svelte
index 165ad06fa..95d10e1e5 100644
--- a/frontend/src/lib/components/confirm-dialog/confirm-dialog.svelte
+++ b/frontend/src/lib/components/confirm-dialog/confirm-dialog.svelte
@@ -29,7 +29,7 @@
<Dialog.Root bind:open={$confirmDialogStore.open}>
<Dialog.Content class="w-full max-w-md sm:max-w-lg">
<Dialog.Header class="space-y-3">
- <Dialog.Title class="flex items-start gap-3 text-lg font-semibold leading-tight">
+ <Dialog.Title class="flex items-start gap-3 text-lg leading-tight font-semibold">
<TriangleAlert class="text-destructive mt-0.5 size-5 shrink-0" />
<span class="min-w-0 break-words">
{$confirmDialogStore.title}
@@ -37,11 +37,10 @@
</Dialog.Title>
</Dialog.Header>
- <div class="text-muted-foreground mt-4 min-w-0 whitespace-pre-wrap break-words text-sm leading-relaxed">
+ <div class="text-muted-foreground mt-4 min-w-0 text-sm leading-relaxed break-words whitespace-pre-wrap">
{$confirmDialogStore.message}
</div>
- <!-- Checkboxes -->
{#if $confirmDialogStore.checkboxes && $confirmDialogStore.checkboxes.length > 0}
<div class="border-border mt-6 flex flex-col gap-4 border-t pt-4">
{#each $confirmDialogStore.checkboxes as checkbox (checkbox.id)}
@@ -65,7 +64,7 @@
<Label
id={`${checkbox.id}-label`}
for={checkbox.id}
- class="min-w-0 break-words text-sm font-medium leading-relaxed peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
+ class="min-w-0 text-sm leading-relaxed font-medium break-words peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
>
{checkbox.label}
</Label>
diff --git a/frontend/src/lib/components/dialogs/oidc-config-dialog.svelte b/frontend/src/lib/components/dialogs/oidc-config-dialog.svelte
index 28d681c4a..2cecf346c 100644
--- a/frontend/src/lib/components/dialogs/oidc-config-dialog.svelte
+++ b/frontend/src/lib/components/dialogs/oidc-config-dialog.svelte
@@ -117,7 +117,7 @@
{#if isOidcViewMode}
<div class="bg-card/50 rounded-lg border p-4">
<h3 class="text-base font-semibold">Server Environment Configuration</h3>
- <p class="text-muted-foreground mb-4 mt-1 text-sm">
+ <p class="text-muted-foreground mt-1 mb-4 text-sm">
The following OIDC settings are loaded from the server environment:
</p>
@@ -157,7 +157,7 @@
<!-- Editable form -->
<div class="bg-card/50 rounded-lg border p-4">
<h3 class="text-base font-semibold">Basic Configuration</h3>
- <p class="text-muted-foreground mb-4 mt-1 text-sm">Essential OIDC provider settings</p>
+ <p class="text-muted-foreground mt-1 mb-4 text-sm">Essential OIDC provider settings</p>
<div class="space-y-4">
<div class="space-y-2">
@@ -226,7 +226,7 @@
</div>
<p class="text-muted-foreground mb-3 text-sm">Configure this redirect URI in your OIDC provider:</p>
<div class="flex items-center gap-2">
- <code class="bg-muted flex-1 break-all rounded p-2 font-mono text-xs">{redirectUri}</code>
+ <code class="bg-muted flex-1 rounded p-2 font-mono text-xs break-all">{redirectUri}</code>
<Button size="sm" variant="outline" onclick={() => copyToClipboard(redirectUri)} class="flex-shrink-0">
<CopyIcon class="size-3" />
</Button>
diff --git a/frontend/src/lib/components/dialogs/prune-confirmation-dialog.svelte b/frontend/src/lib/components/dialogs/prune-confirmation-dialog.svelte
index c33752838..b67e6e683 100644
--- a/frontend/src/lib/components/dialogs/prune-confirmation-dialog.svelte
+++ b/frontend/src/lib/components/dialogs/prune-confirmation-dialog.svelte
@@ -73,7 +73,7 @@
<Checkbox.Root id="prune-containers" bind:checked={pruneContainers} disabled={isPruning} />
<Label
for="prune-containers"
- class="text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
+ class="text-sm leading-none font-medium peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
>Stopped Containers</Label
>
</div>
@@ -81,7 +81,7 @@
<Checkbox.Root id="prune-images" bind:checked={pruneImages} disabled={isPruning} />
<Label
for="prune-images"
- class="text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
+ class="text-sm leading-none font-medium peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
>
Unused Images ({imagePruneMode === 'dangling' ? 'Dangling Only' : 'All Unused'})
</Label>
@@ -90,7 +90,7 @@
<Checkbox.Root id="prune-networks" bind:checked={pruneNetworks} disabled={isPruning} />
<Label
for="prune-networks"
- class="text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
+ class="text-sm leading-none font-medium peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
>Unused Networks</Label
>
</div>
diff --git a/frontend/src/lib/components/dialogs/template-selection-dialog.svelte b/frontend/src/lib/components/dialogs/template-selection-dialog.svelte
index 89e92e77b..9ac7b715f 100644
--- a/frontend/src/lib/components/dialogs/template-selection-dialog.svelte
+++ b/frontend/src/lib/components/dialogs/template-selection-dialog.svelte
@@ -179,7 +179,7 @@
/>
</div>
<div class="flex items-center gap-3">
- <Label for="sortBy" class="whitespace-nowrap text-sm font-medium">Sort by</Label>
+ <Label for="sortBy" class="text-sm font-medium whitespace-nowrap">Sort by</Label>
<Select.Root bind:value={sortBy} type="single">
<Select.Trigger id="sortBy" class="bg-background h-9 rounded-md border px-2 text-sm">
{filters[sortBy]}
diff --git a/frontend/src/lib/components/form/labeled-switch.svelte b/frontend/src/lib/components/form/labeled-switch.svelte
index 2a93c47d2..c82229e93 100644
--- a/frontend/src/lib/components/form/labeled-switch.svelte
+++ b/frontend/src/lib/components/form/labeled-switch.svelte
@@ -22,7 +22,7 @@
<div class="items-top flex space-x-2">
<Switch {id} {disabled} onCheckedChange={(v) => onCheckedChange && onCheckedChange(v == true)} bind:checked />
<div class="grid gap-1.5 leading-none">
- <Label for={id} class="mb-0 text-sm font-medium leading-none">
+ <Label for={id} class="mb-0 text-sm leading-none font-medium">
{label}
</Label>
{#if description}
diff --git a/frontend/src/lib/components/form/select-with-label.svelte b/frontend/src/lib/components/form/select-with-label.svelte
index 8ba95889f..660d79a56 100644
--- a/frontend/src/lib/components/form/select-with-label.svelte
+++ b/frontend/src/lib/components/form/select-with-label.svelte
@@ -30,7 +30,7 @@
</script>
<div class="grid gap-2">
- <Label for={id} class="text-sm font-medium leading-none">
+ <Label for={id} class="text-sm leading-none font-medium">
{label}
</Label>
diff --git a/frontend/src/lib/components/gradient-frame-card.svelte b/frontend/src/lib/components/gradient-frame-card.svelte
index b019b8a81..fdb6aa3c6 100644
--- a/frontend/src/lib/components/gradient-frame-card.svelte
+++ b/frontend/src/lib/components/gradient-frame-card.svelte
@@ -46,11 +46,11 @@
</script>
<Card.Root
- class={`bg-card/80 ring-border/40 supports-[backdrop-filter]:bg-card/60 group relative overflow-hidden rounded-xl border shadow-sm ring-1 ring-inset backdrop-blur
- before:pointer-events-none before:absolute before:inset-0 before:rounded-[inherit] before:p-[1px] before:content-['']
+ class={`bg-card/80 ring-border/40 supports-[backdrop-filter]:bg-card/60 group relative overflow-hidden rounded-xl border shadow-sm ring-1 backdrop-blur ring-inset
+ before:pointer-events-none before:absolute before:inset-0 before:rounded-[inherit] before:[mask-composite:exclude] before:p-[1px]
+ before:content-['']
before:[-webkit-mask-composite:xor]
before:[-webkit-mask:linear-gradient(#000_0_0)_content-box,linear-gradient(#000_0_0)]
- before:[mask-composite:exclude]
before:[mask:linear-gradient(#000_0_0)_content-box,linear-gradient(#000_0_0)]
${frameGradientClass} ${className ?? ''}`}
>
diff --git a/frontend/src/lib/components/image-update-item.svelte b/frontend/src/lib/components/image-update-item.svelte
index 65b597576..cdd93e8e9 100644
--- a/frontend/src/lib/components/image-update-item.svelte
+++ b/frontend/src/lib/components/image-update-item.svelte
@@ -181,7 +181,7 @@
{/if}
</div>
<div class="rounded-lg bg-blue-50 p-3 dark:bg-blue-950/30">
- <div class="text-center text-xs font-medium leading-relaxed text-blue-700 dark:text-blue-300">
+ <div class="text-center text-xs leading-relaxed font-medium text-blue-700 dark:text-blue-300">
{priority.description}
</div>
</div>
@@ -229,7 +229,7 @@
{/if}
</div>
<div class="rounded-lg bg-amber-50 p-3 dark:bg-amber-950/30">
- <div class="text-center text-xs font-medium leading-relaxed text-amber-700 dark:text-amber-300">
+ <div class="text-center text-xs leading-relaxed font-medium text-amber-700 dark:text-amber-300">
{priority.description}
</div>
</div>
diff --git a/frontend/src/lib/components/loading-indicator.svelte b/frontend/src/lib/components/loading-indicator.svelte
index dd42de382..f76a3c84c 100644
--- a/frontend/src/lib/components/loading-indicator.svelte
+++ b/frontend/src/lib/components/loading-indicator.svelte
@@ -40,17 +40,13 @@
</script>
{#if visible}
- <div
- class={`pointer-events-none fixed inset-x-0 top-0 z-[9999] ${thickness} ${className}`}
- role="progressbar"
- aria-busy="true"
- >
+ <div class={`pointer-events-none fixed inset-x-0 top-0 z-[9999] ${thickness} ${className}`} role="progressbar" aria-busy="true">
<div class="relative h-full w-full overflow-hidden">
- <div class="absolute inset-0 bg-primary/25"></div>
+ <div class="bg-primary/25 absolute inset-0"></div>
<span class="bar absolute inset-y-0 w-1/3"></span>
- <span class="peg absolute right-0 top-0 h-full w-3"></span>
+ <span class="peg absolute top-0 right-0 h-full w-3"></span>
</div>
</div>
{/if}
diff --git a/frontend/src/lib/components/log-viewer.svelte b/frontend/src/lib/components/log-viewer.svelte
index c8866d4f4..4ed3cd231 100644
--- a/frontend/src/lib/components/log-viewer.svelte
+++ b/frontend/src/lib/components/log-viewer.svelte
@@ -306,7 +306,7 @@
</span>
{/if}
- <span class="flex-1 whitespace-pre-wrap break-words text-gray-300">
+ <span class="flex-1 break-words whitespace-pre-wrap text-gray-300">
{log.message}
</span>
</div>
diff --git a/frontend/src/lib/components/meter-metric.svelte b/frontend/src/lib/components/meter-metric.svelte
index fab17463b..f944c4a59 100644
--- a/frontend/src/lib/components/meter-metric.svelte
+++ b/frontend/src/lib/components/meter-metric.svelte
@@ -34,8 +34,8 @@
<div
class="bg-card/80 supports-[backdrop-filter]:bg-card/60 ring-border/40 group relative
isolate overflow-hidden rounded-xl border
- shadow-sm ring-1 ring-inset
- backdrop-blur-sm transition-all duration-300 hover:shadow-md dark:shadow-none"
+ shadow-sm ring-1 backdrop-blur-sm
+ transition-all duration-300 ring-inset hover:shadow-md dark:shadow-none"
>
<div class="bg-gradient-to-br from-gray-50 to-slate-50/30 p-4 dark:from-gray-900/20 dark:to-slate-900/10">
<div class="flex items-center gap-3">
@@ -84,7 +84,7 @@
{#if loading}
<div class="bg-muted mx-auto h-3 w-20 animate-pulse rounded"></div>
{:else}
- <div class="text-primary dark:text-primary text-center text-xs font-medium leading-relaxed">
+ <div class="text-primary dark:text-primary text-center text-xs leading-relaxed font-medium">
{footerText ?? `${percentage.toFixed(1)}% of resources being used`}
</div>
{/if}
diff --git a/frontend/src/lib/components/quick-actions.svelte b/frontend/src/lib/components/quick-actions.svelte
index 1752ec50c..3446aaaaf 100644
--- a/frontend/src/lib/components/quick-actions.svelte
+++ b/frontend/src/lib/components/quick-actions.svelte
@@ -54,7 +54,7 @@
<div class="grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3">
<div class="group rounded-xl bg-gradient-to-br from-emerald-500/20 to-emerald-500/0 p-[1px]">
<button
- class="bg-card/80 supports-[backdrop-filter]:bg-card/60 ring-offset-background focus-visible:ring-ring flex min-h-14 w-full items-center gap-3 rounded-xl border p-3 shadow-sm backdrop-blur transition-all hover:shadow-md focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-60"
+ class="bg-card/80 supports-[backdrop-filter]:bg-card/60 ring-offset-background focus-visible:ring-ring flex min-h-14 w-full items-center gap-3 rounded-xl border p-3 shadow-sm backdrop-blur transition-all hover:shadow-md focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-60"
disabled={!dockerInfo || stoppedContainers === 0 || isLoading.starting || isLoading.stopping || isLoading.pruning}
onclick={onStartAll}
aria-busy={isLoading.starting}
@@ -82,7 +82,7 @@
<div class="group rounded-xl bg-gradient-to-br from-sky-500/20 to-sky-500/0 p-[1px]">
<button
- class="bg-card/80 supports-[backdrop-filter]:bg-card/60 ring-offset-background focus-visible:ring-ring flex min-h-14 w-full items-center gap-3 rounded-xl border p-3 shadow-sm backdrop-blur transition-all hover:shadow-md focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-60"
+ class="bg-card/80 supports-[backdrop-filter]:bg-card/60 ring-offset-background focus-visible:ring-ring flex min-h-14 w-full items-center gap-3 rounded-xl border p-3 shadow-sm backdrop-blur transition-all hover:shadow-md focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-60"
disabled={!dockerInfo ||
(dockerInfo?.containersRunning ?? 0) === 0 ||
isLoading.starting ||
@@ -114,7 +114,7 @@
<div class="group rounded-xl bg-gradient-to-br from-red-500/20 to-red-500/0 p-[1px]">
<button
- class="bg-card/80 supports-[backdrop-filter]:bg-card/60 ring-offset-background focus-visible:ring-ring flex min-h-14 w-full items-center gap-3 rounded-xl border p-3 shadow-sm backdrop-blur transition-all hover:shadow-md focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-60"
+ class="bg-card/80 supports-[backdrop-filter]:bg-card/60 ring-offset-background focus-visible:ring-ring flex min-h-14 w-full items-center gap-3 rounded-xl border p-3 shadow-sm backdrop-blur transition-all hover:shadow-md focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-60"
disabled={!dockerInfo || isLoading.starting || isLoading.stopping || isLoading.pruning}
onclick={onOpenPruneDialog}
aria-busy={isLoading.pruning}
diff --git a/frontend/src/lib/components/sheets/create-container-sheet.svelte b/frontend/src/lib/components/sheets/create-container-sheet.svelte
index 160612a39..fdf4202af 100644
--- a/frontend/src/lib/components/sheets/create-container-sheet.svelte
+++ b/frontend/src/lib/components/sheets/create-container-sheet.svelte
@@ -505,7 +505,7 @@
{#each portMappings as mapping, index (index)}
<div class="flex items-center gap-3">
<div class="flex flex-1 items-center gap-2">
- <div class="text-muted-foreground min-w-12 whitespace-nowrap text-sm">Host:</div>
+ <div class="text-muted-foreground min-w-12 text-sm whitespace-nowrap">Host:</div>
<Input
type="text"
placeholder="8080"
@@ -516,7 +516,7 @@
</div>
<span class="text-muted-foreground">→</span>
<div class="flex flex-1 items-center gap-2">
- <div class="text-muted-foreground min-w-20 whitespace-nowrap text-sm">Container:</div>
+ <div class="text-muted-foreground min-w-20 text-sm whitespace-nowrap">Container:</div>
<Input
type="text"
placeholder="80"
diff --git a/frontend/src/lib/components/sidebar/sidebar-itemgroup.svelte b/frontend/src/lib/components/sidebar/sidebar-itemgroup.svelte
index e02b79251..0af851d96 100644
--- a/frontend/src/lib/components/sidebar/sidebar-itemgroup.svelte
+++ b/frontend/src/lib/components/sidebar/sidebar-itemgroup.svelte
@@ -67,7 +67,9 @@
<Icon />
{/if}
<span>{item.title}</span>
- <ChevronRightIcon class="ml-auto transition-transform duration-200 group-data-[state=open]/collapsible:rotate-90" />
+ <ChevronRightIcon
+ class="ml-auto transition-transform duration-200 group-data-[state=open]/collapsible:rotate-90"
+ />
</Sidebar.MenuButton>
{/snippet}
</Collapsible.Trigger>
diff --git a/frontend/src/lib/components/sidebar/sidebar-logo.svelte b/frontend/src/lib/components/sidebar/sidebar-logo.svelte
index afabda708..1c7e042aa 100644
--- a/frontend/src/lib/components/sidebar/sidebar-logo.svelte
+++ b/frontend/src/lib/components/sidebar/sidebar-logo.svelte
@@ -5,16 +5,40 @@
let { isCollapsed, versionInformation }: { isCollapsed: boolean; versionInformation: AppVersionInformation } = $props();
</script>
-<div class={cn('border-border/30 flex h-16 items-center border-b transition-all duration-300', isCollapsed ? 'justify-center px-2' : 'gap-3 px-6')}>
+<div
+ class={cn(
+ 'border-border/30 flex h-16 items-center border-b transition-all duration-300',
+ isCollapsed ? 'justify-center px-2' : 'gap-3 px-6'
+ )}
+>
<div class="relative flex shrink-0 items-center justify-center">
- <div class={cn('from-primary/20 to-primary/10 text-primary border-primary/20 flex items-center justify-center rounded-full border bg-gradient-to-br font-semibold transition-all duration-300', isCollapsed ? 'size-8' : 'size-10')}>
- <img src="/img/arcane.svg" alt="Arcane" class={cn('drop-shadow-sm transition-all duration-300', isCollapsed ? 'size-5' : 'size-7')} width={isCollapsed ? '20' : '28'} height={isCollapsed ? '20' : '28'} />
+ <div
+ class={cn(
+ 'from-primary/20 to-primary/10 text-primary border-primary/20 flex items-center justify-center rounded-full border bg-gradient-to-br font-semibold transition-all duration-300',
+ isCollapsed ? 'size-8' : 'size-10'
+ )}
+ >
+ <img
+ src="/img/arcane.svg"
+ alt="Arcane"
+ class={cn('drop-shadow-sm transition-all duration-300', isCollapsed ? 'size-5' : 'size-7')}
+ width={isCollapsed ? '20' : '28'}
+ height={isCollapsed ? '20' : '28'}
+ />
</div>
- <div class={cn('bg-primary/10 absolute inset-0 rounded-full opacity-60 blur-xl transition-all duration-300', isCollapsed ? 'scale-75' : 'scale-100')}></div>
+ <div
+ class={cn(
+ 'bg-primary/10 absolute inset-0 rounded-full opacity-60 blur-xl transition-all duration-300',
+ isCollapsed ? 'scale-75' : 'scale-100'
+ )}
+ ></div>
</div>
{#if !isCollapsed}
<div class="flex min-w-0 flex-col justify-center">
- <span class="from-foreground to-foreground/80 bg-gradient-to-r bg-clip-text text-lg leading-none font-bold tracking-tight text-transparent">Arcane</span>
+ <span
+ class="from-foreground to-foreground/80 bg-gradient-to-r bg-clip-text text-lg leading-none font-bold tracking-tight text-transparent"
+ >Arcane</span
+ >
<span class="text-muted-foreground/80 text-xs font-medium">
v{versionInformation?.currentVersion}
</span>
diff --git a/frontend/src/lib/components/sidebar/sidebar-updatebanner.svelte b/frontend/src/lib/components/sidebar/sidebar-updatebanner.svelte
index 9b9a6f9b2..fb8aa30fd 100644
--- a/frontend/src/lib/components/sidebar/sidebar-updatebanner.svelte
+++ b/frontend/src/lib/components/sidebar/sidebar-updatebanner.svelte
@@ -24,8 +24,15 @@
<Separator.Root class="mb-3 opacity-30" />
{#if !isCollapsed}
- <div class="rounded-xl border border-blue-500/20 bg-gradient-to-br from-blue-500/10 to-blue-600/5 p-3 transition-all hover:scale-[1.02] hover:from-blue-500/15 hover:to-blue-600/10 hover:shadow-md">
- <a href={versionInformation?.releaseUrl} target="_blank" rel="noopener noreferrer" class="group flex items-center justify-between text-blue-600 transition-colors duration-200 hover:text-blue-700 dark:text-blue-400 dark:hover:text-blue-300">
+ <div
+ class="rounded-xl border border-blue-500/20 bg-gradient-to-br from-blue-500/10 to-blue-600/5 p-3 transition-all hover:scale-[1.02] hover:from-blue-500/15 hover:to-blue-600/10 hover:shadow-md"
+ >
+ <a
+ href={versionInformation?.releaseUrl}
+ target="_blank"
+ rel="noopener noreferrer"
+ class="group flex items-center justify-between text-blue-600 transition-colors duration-200 hover:text-blue-700 dark:text-blue-400 dark:hover:text-blue-300"
+ >
<div class="flex flex-col gap-1">
<span class="text-sm font-semibold">Update available</span>
<span class="text-xs text-blue-500/80">v{versionInformation?.newestVersion}</span>
@@ -38,8 +45,16 @@
<Tooltip.Root>
<Tooltip.Trigger>
{#snippet child({ props })}
- <div class="flex h-8 w-8 items-center justify-center rounded-lg border border-blue-500/20 bg-gradient-to-br from-blue-500/10 to-blue-600/5 transition-all hover:scale-[1.02] hover:from-blue-500/15 hover:to-blue-600/10 hover:shadow-md" {...props}>
- <a href={versionInformation?.releaseUrl} target="_blank" rel="noopener noreferrer" class="flex h-full w-full items-center justify-center text-blue-600 transition-all duration-200 hover:scale-110 hover:text-blue-700 dark:text-blue-400 dark:hover:text-blue-300">
+ <div
+ class="flex h-8 w-8 items-center justify-center rounded-lg border border-blue-500/20 bg-gradient-to-br from-blue-500/10 to-blue-600/5 transition-all hover:scale-[1.02] hover:from-blue-500/15 hover:to-blue-600/10 hover:shadow-md"
+ {...props}
+ >
+ <a
+ href={versionInformation?.releaseUrl}
+ target="_blank"
+ rel="noopener noreferrer"
+ class="flex h-full w-full items-center justify-center text-blue-600 transition-all duration-200 hover:scale-110 hover:text-blue-700 dark:text-blue-400 dark:hover:text-blue-300"
+ >
<ExternalLink size={14} />
</a>
</div>
diff --git a/frontend/src/lib/components/sidebar/sidebar-user.svelte b/frontend/src/lib/components/sidebar/sidebar-user.svelte
index c2359e14a..bc5bdfd1f 100644
--- a/frontend/src/lib/components/sidebar/sidebar-user.svelte
+++ b/frontend/src/lib/components/sidebar/sidebar-user.svelte
@@ -46,11 +46,17 @@
<DropdownMenu.Root>
<DropdownMenu.Trigger>
{#snippet child({ props })}
- <Sidebar.MenuButton size="lg" class="data-[state=open]:bg-sidebar-accent data-[state=open]:text-sidebar-accent-foreground" {...props}>
+ <Sidebar.MenuButton
+ size="lg"
+ class="data-[state=open]:bg-sidebar-accent data-[state=open]:text-sidebar-accent-foreground"
+ {...props}
+ >
{#if user && user.displayName}
<Avatar.Root class="size-8 rounded-lg">
<Avatar.Image src={gravatarUrl} alt={user.displayName} />
- <Avatar.Fallback class="from-primary/20 to-primary/10 text-primary border-primary/20 rounded-lg border bg-gradient-to-br">
+ <Avatar.Fallback
+ class="from-primary/20 to-primary/10 text-primary border-primary/20 rounded-lg border bg-gradient-to-br"
+ >
{user.displayName?.charAt(0).toUpperCase()}
</Avatar.Fallback>
</Avatar.Root>
@@ -65,12 +71,19 @@
</Sidebar.MenuButton>
{/snippet}
</DropdownMenu.Trigger>
- <DropdownMenu.Content class="w-(--bits-dropdown-menu-anchor-width) min-w-56 rounded-lg" side={sidebar.isMobile ? 'bottom' : 'right'} align="end" sideOffset={4}>
+ <DropdownMenu.Content
+ class="w-(--bits-dropdown-menu-anchor-width) min-w-56 rounded-lg"
+ side={sidebar.isMobile ? 'bottom' : 'right'}
+ align="end"
+ sideOffset={4}
+ >
<DropdownMenu.Label class="p-0 font-normal">
<div class="flex items-center gap-2 px-1 py-1.5 text-left text-sm">
<Avatar.Root class="size-8 rounded-lg">
<Avatar.Image src={gravatarUrl} alt={user.displayName} />
- <Avatar.Fallback class="from-primary/20 to-primary/10 text-primary border-primary/20 rounded-lg border bg-gradient-to-br">
+ <Avatar.Fallback
+ class="from-primary/20 to-primary/10 text-primary border-primary/20 rounded-lg border bg-gradient-to-br"
+ >
{user.displayName?.charAt(0).toUpperCase()}
</Avatar.Fallback>
</Avatar.Root>
diff --git a/frontend/src/lib/components/sidebar/sidebar.svelte b/frontend/src/lib/components/sidebar/sidebar.svelte
index 03bf9c7bd..fd35ccab1 100644
--- a/frontend/src/lib/components/sidebar/sidebar.svelte
+++ b/frontend/src/lib/components/sidebar/sidebar.svelte
@@ -53,11 +53,7 @@
<SidebarItemGroup label="Administration" items={sidebarItems.settingsItems} />
</Sidebar.Content>
<Sidebar.Footer>
- <SidebarUpdatebanner
- {isCollapsed}
- {versionInformation}
- updateAvailable={versionInformation.updateAvailable}
- />
+ <SidebarUpdatebanner {isCollapsed} {versionInformation} updateAvailable={versionInformation.updateAvailable} />
{#if effectiveUser}
<SidebarUser {isCollapsed} user={effectiveUser} />
{/if}
diff --git a/frontend/src/lib/components/ui/accordion/accordion-content.svelte b/frontend/src/lib/components/ui/accordion/accordion-content.svelte
index 629c9696f..e46957e42 100644
--- a/frontend/src/lib/components/ui/accordion/accordion-content.svelte
+++ b/frontend/src/lib/components/ui/accordion/accordion-content.svelte
@@ -2,10 +2,22 @@
import { Accordion as AccordionPrimitive, type WithoutChild } from 'bits-ui';
import { cn } from '$lib/utils.js';
- let { ref = $bindable(null), class: className, children, ...restProps }: WithoutChild<AccordionPrimitive.ContentProps> = $props();
+ let {
+ ref = $bindable(null),
+ class: className,
+ children,
+ ...restProps
+ }: WithoutChild<AccordionPrimitive.ContentProps> = $props();
</script>
-<AccordionPrimitive.Content bind:ref class={cn('data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm transition-all', className)} {...restProps}>
+<AccordionPrimitive.Content
+ bind:ref
+ class={cn(
+ 'data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm transition-all',
+ className
+ )}
+ {...restProps}
+>
<div class="pt-0 pb-4">
{@render children?.()}
</div>
diff --git a/frontend/src/lib/components/ui/accordion/accordion-trigger.svelte b/frontend/src/lib/components/ui/accordion/accordion-trigger.svelte
index 51d51e29c..df2a61944 100644
--- a/frontend/src/lib/components/ui/accordion/accordion-trigger.svelte
+++ b/frontend/src/lib/components/ui/accordion/accordion-trigger.svelte
@@ -15,7 +15,14 @@
</script>
<AccordionPrimitive.Header {level} class="flex">
- <AccordionPrimitive.Trigger bind:ref class={cn('flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180', className)} {...restProps}>
+ <AccordionPrimitive.Trigger
+ bind:ref
+ class={cn(
+ 'flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180',
+ className
+ )}
+ {...restProps}
+ >
{@render children?.()}
<ChevronDown class="size-4 shrink-0 transition-transform duration-200" />
</AccordionPrimitive.Trigger>
diff --git a/frontend/src/lib/components/ui/alert/alert-description.svelte b/frontend/src/lib/components/ui/alert/alert-description.svelte
index a47e9ebdc..8d98ca116 100644
--- a/frontend/src/lib/components/ui/alert/alert-description.svelte
+++ b/frontend/src/lib/components/ui/alert/alert-description.svelte
@@ -3,7 +3,12 @@
import type { HTMLAttributes } from 'svelte/elements';
import { cn } from '$lib/utils.js';
- let { ref = $bindable(null), class: className, children, ...restProps }: WithElementRef<HTMLAttributes<HTMLDivElement>> = $props();
+ let {
+ ref = $bindable(null),
+ class: className,
+ children,
+ ...restProps
+ }: WithElementRef<HTMLAttributes<HTMLDivElement>> = $props();
</script>
<div bind:this={ref} class={cn('text-sm [&_p]:leading-relaxed', className)} {...restProps}>
diff --git a/frontend/src/lib/components/ui/alert/alert-title.svelte b/frontend/src/lib/components/ui/alert/alert-title.svelte
index c05eca987..3e947df2b 100644
--- a/frontend/src/lib/components/ui/alert/alert-title.svelte
+++ b/frontend/src/lib/components/ui/alert/alert-title.svelte
@@ -14,6 +14,12 @@
} = $props();
</script>
-<div role="heading" aria-level={level} bind:this={ref} class={cn('mb-1 leading-none font-medium tracking-tight', className)} {...restProps}>
+<div
+ role="heading"
+ aria-level={level}
+ bind:this={ref}
+ class={cn('mb-1 leading-none font-medium tracking-tight', className)}
+ {...restProps}
+>
{@render children?.()}
</div>
diff --git a/frontend/src/lib/components/ui/avatar/avatar-fallback.svelte b/frontend/src/lib/components/ui/avatar/avatar-fallback.svelte
index 1c184235e..1ed7eb890 100644
--- a/frontend/src/lib/components/ui/avatar/avatar-fallback.svelte
+++ b/frontend/src/lib/components/ui/avatar/avatar-fallback.svelte
@@ -5,4 +5,9 @@
let { ref = $bindable(null), class: className, ...restProps }: AvatarPrimitive.FallbackProps = $props();
</script>
-<AvatarPrimitive.Fallback bind:ref data-slot="avatar-fallback" class={cn('bg-muted flex size-full items-center justify-center rounded-full', className)} {...restProps} />
+<AvatarPrimitive.Fallback
+ bind:ref
+ data-slot="avatar-fallback"
+ class={cn('bg-muted flex size-full items-center justify-center rounded-full', className)}
+ {...restProps}
+/>
diff --git a/frontend/src/lib/components/ui/avatar/avatar.svelte b/frontend/src/lib/components/ui/avatar/avatar.svelte
index 04d601eb0..c54d28863 100644
--- a/frontend/src/lib/components/ui/avatar/avatar.svelte
+++ b/frontend/src/lib/components/ui/avatar/avatar.svelte
@@ -5,4 +5,9 @@
let { ref = $bindable(null), class: className, ...restProps }: AvatarPrimitive.RootProps = $props();
</script>
-<AvatarPrimitive.Root bind:ref data-slot="avatar" class={cn('relative flex size-8 shrink-0 overflow-hidden rounded-full', className)} {...restProps} />
+<AvatarPrimitive.Root
+ bind:ref
+ data-slot="avatar"
+ class={cn('relative flex size-8 shrink-0 overflow-hidden rounded-full', className)}
+ {...restProps}
+/>
diff --git a/frontend/src/lib/components/ui/badge/badge.svelte b/frontend/src/lib/components/ui/badge/badge.svelte
index 500045702..abe9b67ef 100644
--- a/frontend/src/lib/components/ui/badge/badge.svelte
+++ b/frontend/src/lib/components/ui/badge/badge.svelte
@@ -1,36 +1,34 @@
<script lang="ts" module>
- import { type VariantProps, tv } from "tailwind-variants";
+ import { type VariantProps, tv } from 'tailwind-variants';
export const badgeVariants = tv({
- base: "focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive inline-flex w-fit shrink-0 items-center justify-center gap-1 overflow-hidden whitespace-nowrap rounded-md border px-2 py-0.5 text-xs font-medium transition-[color,box-shadow] focus-visible:ring-[3px] [&>svg]:pointer-events-none [&>svg]:size-3",
+ base: 'focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive inline-flex w-fit shrink-0 items-center justify-center gap-1 overflow-hidden whitespace-nowrap rounded-md border px-2 py-0.5 text-xs font-medium transition-[color,box-shadow] focus-visible:ring-[3px] [&>svg]:pointer-events-none [&>svg]:size-3',
variants: {
variant: {
- default:
- "bg-primary text-primary-foreground [a&]:hover:bg-primary/90 border-transparent",
- secondary:
- "bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90 border-transparent",
+ default: 'bg-primary text-primary-foreground [a&]:hover:bg-primary/90 border-transparent',
+ secondary: 'bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90 border-transparent',
destructive:
- "bg-destructive [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/70 border-transparent text-white",
- outline: "text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground",
- },
+ 'bg-destructive [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/70 border-transparent text-white',
+ outline: 'text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground'
+ }
},
defaultVariants: {
- variant: "default",
- },
+ variant: 'default'
+ }
});
- export type BadgeVariant = VariantProps<typeof badgeVariants>["variant"];
+ export type BadgeVariant = VariantProps<typeof badgeVariants>['variant'];
</script>
<script lang="ts">
- import type { HTMLAnchorAttributes } from "svelte/elements";
- import { cn, type WithElementRef } from "$lib/utils.js";
+ import type { HTMLAnchorAttributes } from 'svelte/elements';
+ import { cn, type WithElementRef } from '$lib/utils.js';
let {
ref = $bindable(null),
href,
class: className,
- variant = "default",
+ variant = 'default',
children,
...restProps
}: WithElementRef<HTMLAnchorAttributes> & {
@@ -39,7 +37,7 @@
</script>
<svelte:element
- this={href ? "a" : "span"}
+ this={href ? 'a' : 'span'}
bind:this={ref}
data-slot="badge"
{href}
diff --git a/frontend/src/lib/components/ui/badge/index.ts b/frontend/src/lib/components/ui/badge/index.ts
index 64e0aa9b0..f05fb87fa 100644
--- a/frontend/src/lib/components/ui/badge/index.ts
+++ b/frontend/src/lib/components/ui/badge/index.ts
@@ -1,2 +1,2 @@
-export { default as Badge } from "./badge.svelte";
-export { badgeVariants, type BadgeVariant } from "./badge.svelte";
+export { default as Badge } from './badge.svelte';
+export { badgeVariants, type BadgeVariant } from './badge.svelte';
diff --git a/frontend/src/lib/components/ui/breadcrumb/breadcrumb-ellipsis.svelte b/frontend/src/lib/components/ui/breadcrumb/breadcrumb-ellipsis.svelte
index 6fdf6a7fd..f40df5be1 100644
--- a/frontend/src/lib/components/ui/breadcrumb/breadcrumb-ellipsis.svelte
+++ b/frontend/src/lib/components/ui/breadcrumb/breadcrumb-ellipsis.svelte
@@ -4,10 +4,20 @@
import type { HTMLAttributes } from 'svelte/elements';
import { cn } from '$lib/utils.js';
- let { ref = $bindable(null), class: className, ...restProps }: WithoutChildren<WithElementRef<HTMLAttributes<HTMLSpanElement>>> = $props();
+ let {
+ ref = $bindable(null),
+ class: className,
+ ...restProps
+ }: WithoutChildren<WithElementRef<HTMLAttributes<HTMLSpanElement>>> = $props();
</script>
-<span bind:this={ref} role="presentation" aria-hidden="true" class={cn('flex size-9 items-center justify-center', className)} {...restProps}>
+<span
+ bind:this={ref}
+ role="presentation"
+ aria-hidden="true"
+ class={cn('flex size-9 items-center justify-center', className)}
+ {...restProps}
+>
<Ellipsis class="size-4" />
<span class="sr-only">More</span>
</span>
diff --git a/frontend/src/lib/components/ui/breadcrumb/breadcrumb-list.svelte b/frontend/src/lib/components/ui/breadcrumb/breadcrumb-list.svelte
index 17fd0a4d6..557885fc8 100644
--- a/frontend/src/lib/components/ui/breadcrumb/breadcrumb-list.svelte
+++ b/frontend/src/lib/components/ui/breadcrumb/breadcrumb-list.svelte
@@ -6,6 +6,10 @@
let { ref = $bindable(null), class: className, children, ...restProps }: WithElementRef<HTMLOlAttributes> = $props();
</script>
-<ol bind:this={ref} class={cn('text-muted-foreground flex flex-wrap items-center gap-1.5 text-sm break-words sm:gap-2.5', className)} {...restProps}>
+<ol
+ bind:this={ref}
+ class={cn('text-muted-foreground flex flex-wrap items-center gap-1.5 text-sm break-words sm:gap-2.5', className)}
+ {...restProps}
+>
{@render children?.()}
</ol>
diff --git a/frontend/src/lib/components/ui/breadcrumb/breadcrumb-page.svelte b/frontend/src/lib/components/ui/breadcrumb/breadcrumb-page.svelte
index c2a203d7d..6ee61fbf1 100644
--- a/frontend/src/lib/components/ui/breadcrumb/breadcrumb-page.svelte
+++ b/frontend/src/lib/components/ui/breadcrumb/breadcrumb-page.svelte
@@ -3,9 +3,21 @@
import type { HTMLAttributes } from 'svelte/elements';
import { cn } from '$lib/utils.js';
- let { ref = $bindable(null), class: className, children, ...restProps }: WithElementRef<HTMLAttributes<HTMLSpanElement>> = $props();
+ let {
+ ref = $bindable(null),
+ class: className,
+ children,
+ ...restProps
+ }: WithElementRef<HTMLAttributes<HTMLSpanElement>> = $props();
</script>
-<span bind:this={ref} role="link" aria-disabled="true" aria-current="page" class={cn('text-foreground font-normal', className)} {...restProps}>
+<span
+ bind:this={ref}
+ role="link"
+ aria-disabled="true"
+ aria-current="page"
+ class={cn('text-foreground font-normal', className)}
+ {...restProps}
+>
{@render children?.()}
</span>
diff --git a/frontend/src/lib/components/ui/button/button.svelte b/frontend/src/lib/components/ui/button/button.svelte
index 4daf4535c..16f1a3ccb 100644
--- a/frontend/src/lib/components/ui/button/button.svelte
+++ b/frontend/src/lib/components/ui/button/button.svelte
@@ -1,36 +1,36 @@
<script lang="ts" module>
- import { cn, type WithElementRef } from "$lib/utils.js";
- import type { HTMLAnchorAttributes, HTMLButtonAttributes } from "svelte/elements";
- import { type VariantProps, tv } from "tailwind-variants";
+ import { cn, type WithElementRef } from '$lib/utils.js';
+ import type { HTMLAnchorAttributes, HTMLButtonAttributes } from 'svelte/elements';
+ import { type VariantProps, tv } from 'tailwind-variants';
export const buttonVariants = tv({
base: "focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive inline-flex shrink-0 items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium outline-none transition-all focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",
variants: {
variant: {
- default: "bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",
+ default: 'bg-primary text-primary-foreground shadow-xs hover:bg-primary/90',
destructive:
- "bg-destructive shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60 text-white",
+ 'bg-destructive shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60 text-white',
outline:
- "bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50 border",
- secondary: "bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",
- ghost: "hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",
- link: "text-primary underline-offset-4 hover:underline",
+ 'bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50 border',
+ secondary: 'bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80',
+ ghost: 'hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50',
+ link: 'text-primary underline-offset-4 hover:underline'
},
size: {
- default: "h-9 px-4 py-2 has-[>svg]:px-3",
- sm: "h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5",
- lg: "h-10 rounded-md px-6 has-[>svg]:px-4",
- icon: "size-9",
- },
+ default: 'h-9 px-4 py-2 has-[>svg]:px-3',
+ sm: 'h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5',
+ lg: 'h-10 rounded-md px-6 has-[>svg]:px-4',
+ icon: 'size-9'
+ }
},
defaultVariants: {
- variant: "default",
- size: "default",
- },
+ variant: 'default',
+ size: 'default'
+ }
});
- export type ButtonVariant = VariantProps<typeof buttonVariants>["variant"];
- export type ButtonSize = VariantProps<typeof buttonVariants>["size"];
+ export type ButtonVariant = VariantProps<typeof buttonVariants>['variant'];
+ export type ButtonSize = VariantProps<typeof buttonVariants>['size'];
export type ButtonProps = WithElementRef<HTMLButtonAttributes> &
WithElementRef<HTMLAnchorAttributes> & {
@@ -42,11 +42,11 @@
<script lang="ts">
let {
class: className,
- variant = "default",
- size = "default",
+ variant = 'default',
+ size = 'default',
ref = $bindable(null),
href = undefined,
- type = "button",
+ type = 'button',
disabled,
children,
...restProps
@@ -60,7 +60,7 @@
class={cn(buttonVariants({ variant, size }), className)}
href={disabled ? undefined : href}
aria-disabled={disabled}
- role={disabled ? "link" : undefined}
+ role={disabled ? 'link' : undefined}
tabindex={disabled ? -1 : undefined}
{...restProps}
>
diff --git a/frontend/src/lib/components/ui/button/index.ts b/frontend/src/lib/components/ui/button/index.ts
index fb585d768..3fd7e24ba 100644
--- a/frontend/src/lib/components/ui/button/index.ts
+++ b/frontend/src/lib/components/ui/button/index.ts
@@ -1,9 +1,4 @@
-import Root, {
- type ButtonProps,
- type ButtonSize,
- type ButtonVariant,
- buttonVariants,
-} from "./button.svelte";
+import Root, { type ButtonProps, type ButtonSize, type ButtonVariant, buttonVariants } from './button.svelte';
export {
Root,
@@ -13,5 +8,5 @@ export {
buttonVariants,
type ButtonProps,
type ButtonSize,
- type ButtonVariant,
+ type ButtonVariant
};
diff --git a/frontend/src/lib/components/ui/card/card-content.svelte b/frontend/src/lib/components/ui/card/card-content.svelte
index bc90b8371..1d60124ad 100644
--- a/frontend/src/lib/components/ui/card/card-content.svelte
+++ b/frontend/src/lib/components/ui/card/card-content.svelte
@@ -1,6 +1,6 @@
<script lang="ts">
- import type { HTMLAttributes } from "svelte/elements";
- import { cn, type WithElementRef } from "$lib/utils.js";
+ import type { HTMLAttributes } from 'svelte/elements';
+ import { cn, type WithElementRef } from '$lib/utils.js';
let {
ref = $bindable(null),
@@ -10,6 +10,6 @@
}: WithElementRef<HTMLAttributes<HTMLDivElement>> = $props();
</script>
-<div bind:this={ref} data-slot="card-content" class={cn("px-6", className)} {...restProps}>
+<div bind:this={ref} data-slot="card-content" class={cn('px-6', className)} {...restProps}>
{@render children?.()}
</div>
diff --git a/frontend/src/lib/components/ui/card/card-description.svelte b/frontend/src/lib/components/ui/card/card-description.svelte
index 9b20ac701..913a1ad41 100644
--- a/frontend/src/lib/components/ui/card/card-description.svelte
+++ b/frontend/src/lib/components/ui/card/card-description.svelte
@@ -1,6 +1,6 @@
<script lang="ts">
- import type { HTMLAttributes } from "svelte/elements";
- import { cn, type WithElementRef } from "$lib/utils.js";
+ import type { HTMLAttributes } from 'svelte/elements';
+ import { cn, type WithElementRef } from '$lib/utils.js';
let {
ref = $bindable(null),
@@ -10,11 +10,6 @@
}: WithElementRef<HTMLAttributes<HTMLParagraphElement>> = $props();
</script>
-<p
- bind:this={ref}
- data-slot="card-description"
- class={cn("text-muted-foreground text-sm", className)}
- {...restProps}
->
+<p bind:this={ref} data-slot="card-description" class={cn('text-muted-foreground text-sm', className)} {...restProps}>
{@render children?.()}
</p>
diff --git a/frontend/src/lib/components/ui/card/card-footer.svelte b/frontend/src/lib/components/ui/card/card-footer.svelte
index cf4335399..512466cb9 100644
--- a/frontend/src/lib/components/ui/card/card-footer.svelte
+++ b/frontend/src/lib/components/ui/card/card-footer.svelte
@@ -1,6 +1,6 @@
<script lang="ts">
- 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),
@@ -10,11 +10,6 @@
}: WithElementRef<HTMLAttributes<HTMLDivElement>> = $props();
</script>
-<div
- bind:this={ref}
- data-slot="card-footer"
- class={cn("[.border-t]:pt-6 flex items-center px-6", className)}
- {...restProps}
->
+<div bind:this={ref} data-slot="card-footer" class={cn('flex items-center px-6 [.border-t]:pt-6', className)} {...restProps}>
{@render children?.()}
</div>
diff --git a/frontend/src/lib/components/ui/card/card-header.svelte b/frontend/src/lib/components/ui/card/card-header.svelte
index 28c8f568d..9cdc602ba 100644
--- a/frontend/src/lib/components/ui/card/card-header.svelte
+++ b/frontend/src/lib/components/ui/card/card-header.svelte
@@ -14,7 +14,7 @@
bind:this={ref}
data-slot="card-header"
class={cn(
- '@container/card-header has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6 grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6',
+ '@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6',
className
)}
{...restProps}
diff --git a/frontend/src/lib/components/ui/card/card-title.svelte b/frontend/src/lib/components/ui/card/card-title.svelte
index 3c2e74b7a..cb15dfc49 100644
--- a/frontend/src/lib/components/ui/card/card-title.svelte
+++ b/frontend/src/lib/components/ui/card/card-title.svelte
@@ -13,7 +13,7 @@
<div
bind:this={ref}
data-slot="card-title"
- class={cn('flex flex-row gap-2 text-2xl font-semibold leading-none', className)}
+ class={cn('flex flex-row gap-2 text-2xl leading-none font-semibold', className)}
{...restProps}
>
{@render children?.()}
diff --git a/frontend/src/lib/components/ui/card/index.ts b/frontend/src/lib/components/ui/card/index.ts
index 4d3fce489..77d367477 100644
--- a/frontend/src/lib/components/ui/card/index.ts
+++ b/frontend/src/lib/components/ui/card/index.ts
@@ -1,10 +1,10 @@
-import Root from "./card.svelte";
-import Content from "./card-content.svelte";
-import Description from "./card-description.svelte";
-import Footer from "./card-footer.svelte";
-import Header from "./card-header.svelte";
-import Title from "./card-title.svelte";
-import Action from "./card-action.svelte";
+import Root from './card.svelte';
+import Content from './card-content.svelte';
+import Description from './card-description.svelte';
+import Footer from './card-footer.svelte';
+import Header from './card-header.svelte';
+import Title from './card-title.svelte';
+import Action from './card-action.svelte';
export {
Root,
@@ -21,5 +21,5 @@ export {
Footer as CardFooter,
Header as CardHeader,
Title as CardTitle,
- Action as CardAction,
+ Action as CardAction
};
diff --git a/frontend/src/lib/components/ui/checkbox/checkbox.svelte b/frontend/src/lib/components/ui/checkbox/checkbox.svelte
index 1622e05c3..fc8614a74 100644
--- a/frontend/src/lib/components/ui/checkbox/checkbox.svelte
+++ b/frontend/src/lib/components/ui/checkbox/checkbox.svelte
@@ -1,8 +1,8 @@
<script lang="ts">
- import { Checkbox as CheckboxPrimitive } from "bits-ui";
- import CheckIcon from "@lucide/svelte/icons/check";
- import MinusIcon from "@lucide/svelte/icons/minus";
- import { cn, type WithoutChildrenOrChild } from "$lib/utils.js";
+ import { Checkbox as CheckboxPrimitive } from 'bits-ui';
+ import CheckIcon from '@lucide/svelte/icons/check';
+ import MinusIcon from '@lucide/svelte/icons/minus';
+ import { cn, type WithoutChildrenOrChild } from '$lib/utils.js';
let {
ref = $bindable(null),
@@ -17,7 +17,7 @@
bind:ref
data-slot="checkbox"
class={cn(
- "border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive shadow-xs peer flex size-4 shrink-0 items-center justify-center rounded-[4px] border outline-none transition-shadow focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",
+ 'border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive peer flex size-4 shrink-0 items-center justify-center rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50',
className
)}
bind:checked
diff --git a/frontend/src/lib/components/ui/checkbox/index.ts b/frontend/src/lib/components/ui/checkbox/index.ts
index 6d92d9458..5c276719b 100644
--- a/frontend/src/lib/components/ui/checkbox/index.ts
+++ b/frontend/src/lib/components/ui/checkbox/index.ts
@@ -1,6 +1,6 @@
-import Root from "./checkbox.svelte";
+import Root from './checkbox.svelte';
export {
Root,
//
- Root as Checkbox,
+ Root as Checkbox
};
diff --git a/frontend/src/lib/components/ui/collapsible/collapsible-trigger.svelte b/frontend/src/lib/components/ui/collapsible/collapsible-trigger.svelte
index ece7ad68e..c88cebaff 100644
--- a/frontend/src/lib/components/ui/collapsible/collapsible-trigger.svelte
+++ b/frontend/src/lib/components/ui/collapsible/collapsible-trigger.svelte
@@ -1,5 +1,5 @@
<script lang="ts">
- import { Collapsible as CollapsiblePrimitive } from "bits-ui";
+ import { Collapsible as CollapsiblePrimitive } from 'bits-ui';
let { ref = $bindable(null), ...restProps }: CollapsiblePrimitive.TriggerProps = $props();
</script>
diff --git a/frontend/src/lib/components/ui/collapsible/collapsible.svelte b/frontend/src/lib/components/ui/collapsible/collapsible.svelte
index 39cdd4e4e..6dc75c671 100644
--- a/frontend/src/lib/components/ui/collapsible/collapsible.svelte
+++ b/frontend/src/lib/components/ui/collapsible/collapsible.svelte
@@ -1,11 +1,7 @@
<script lang="ts">
- import { Collapsible as CollapsiblePrimitive } from "bits-ui";
+ import { Collapsible as CollapsiblePrimitive } from 'bits-ui';
- let {
- ref = $bindable(null),
- open = $bindable(false),
- ...restProps
- }: CollapsiblePrimitive.RootProps = $props();
+ let { ref = $bindable(null), open = $bindable(false), ...restProps }: CollapsiblePrimitive.RootProps = $props();
</script>
<CollapsiblePrimitive.Root bind:ref bind:open data-slot="collapsible" {...restProps} />
diff --git a/frontend/src/lib/components/ui/collapsible/index.ts b/frontend/src/lib/components/ui/collapsible/index.ts
index 169b4791d..8181f6448 100644
--- a/frontend/src/lib/components/ui/collapsible/index.ts
+++ b/frontend/src/lib/components/ui/collapsible/index.ts
@@ -1,6 +1,6 @@
-import Root from "./collapsible.svelte";
-import Trigger from "./collapsible-trigger.svelte";
-import Content from "./collapsible-content.svelte";
+import Root from './collapsible.svelte';
+import Trigger from './collapsible-trigger.svelte';
+import Content from './collapsible-content.svelte';
export {
Root,
@@ -9,5 +9,5 @@ export {
//
Root as Collapsible,
Content as CollapsibleContent,
- Trigger as CollapsibleTrigger,
+ Trigger as CollapsibleTrigger
};
diff --git a/frontend/src/lib/components/ui/command/command-dialog.svelte b/frontend/src/lib/components/ui/command/command-dialog.svelte
index 5c9a82a8d..c4d3587b0 100644
--- a/frontend/src/lib/components/ui/command/command-dialog.svelte
+++ b/frontend/src/lib/components/ui/command/command-dialog.svelte
@@ -1,16 +1,16 @@
<script lang="ts">
- import type { Command as CommandPrimitive, Dialog as DialogPrimitive } from "bits-ui";
- import type { Snippet } from "svelte";
- import Command from "./command.svelte";
- import * as Dialog from "$lib/components/ui/dialog/index.js";
- import type { WithoutChildrenOrChild } from "$lib/utils.js";
+ import type { Command as CommandPrimitive, Dialog as DialogPrimitive } from 'bits-ui';
+ import type { Snippet } from 'svelte';
+ import Command from './command.svelte';
+ import * as Dialog from '$lib/components/ui/dialog/index.js';
+ import type { WithoutChildrenOrChild } from '$lib/utils.js';
let {
open = $bindable(false),
ref = $bindable(null),
- value = $bindable(""),
- title = "Command Palette",
- description = "Search for a command to run",
+ value = $bindable(''),
+ title = 'Command Palette',
+ description = 'Search for a command to run',
portalProps,
children,
...restProps
@@ -30,7 +30,7 @@
</Dialog.Header>
<Dialog.Content class="overflow-hidden p-0" {portalProps}>
<Command
- class="**:data-[slot=command-input-wrapper]:h-12 [&_[data-command-group]:not([hidden])_~[data-command-group]]:pt-0 [&_[data-command-group]]:px-2 [&_[data-command-input-wrapper]_svg]:h-5 [&_[data-command-input-wrapper]_svg]:w-5 [&_[data-command-input]]:h-12 [&_[data-command-item]]:px-2 [&_[data-command-item]]:py-3 [&_[data-command-item]_svg]:h-5 [&_[data-command-item]_svg]:w-5"
+ class="**:data-[slot=command-input-wrapper]:h-12 [&_[data-command-group]]:px-2 [&_[data-command-group]:not([hidden])_~[data-command-group]]:pt-0 [&_[data-command-input-wrapper]_svg]:h-5 [&_[data-command-input-wrapper]_svg]:w-5 [&_[data-command-input]]:h-12 [&_[data-command-item]]:px-2 [&_[data-command-item]]:py-3 [&_[data-command-item]_svg]:h-5 [&_[data-command-item]_svg]:w-5"
{...restProps}
bind:value
bind:ref
diff --git a/frontend/src/lib/components/ui/command/command-empty.svelte b/frontend/src/lib/components/ui/command/command-empty.svelte
index 6726cd8d1..71a244acb 100644
--- a/frontend/src/lib/components/ui/command/command-empty.svelte
+++ b/frontend/src/lib/components/ui/command/command-empty.svelte
@@ -1,17 +1,8 @@
<script lang="ts">
- import { Command as CommandPrimitive } from "bits-ui";
- import { cn } from "$lib/utils.js";
+ import { Command as CommandPrimitive } from 'bits-ui';
+ import { cn } from '$lib/utils.js';
- let {
- ref = $bindable(null),
- class: className,
- ...restProps
- }: CommandPrimitive.EmptyProps = $props();
+ let { ref = $bindable(null), class: className, ...restProps }: CommandPrimitive.EmptyProps = $props();
</script>
-<CommandPrimitive.Empty
- bind:ref
- data-slot="command-empty"
- class={cn("py-6 text-center text-sm", className)}
- {...restProps}
-/>
+<CommandPrimitive.Empty bind:ref data-slot="command-empty" class={cn('py-6 text-center text-sm', className)} {...restProps} />
diff --git a/frontend/src/lib/components/ui/command/command-group.svelte b/frontend/src/lib/components/ui/command/command-group.svelte
index 104f81701..409722219 100644
--- a/frontend/src/lib/components/ui/command/command-group.svelte
+++ b/frontend/src/lib/components/ui/command/command-group.svelte
@@ -1,6 +1,6 @@
<script lang="ts">
- import { Command as CommandPrimitive, useId } from "bits-ui";
- import { cn } from "$lib/utils.js";
+ import { Command as CommandPrimitive, useId } from 'bits-ui';
+ import { cn } from '$lib/utils.js';
let {
ref = $bindable(null),
@@ -17,14 +17,12 @@
<CommandPrimitive.Group
bind:ref
data-slot="command-group"
- class={cn("text-foreground overflow-hidden p-1", className)}
+ class={cn('text-foreground overflow-hidden p-1', className)}
value={value ?? heading ?? `----${useId()}`}
{...restProps}
>
{#if heading}
- <CommandPrimitive.GroupHeading
- class="text-muted-foreground px-2 py-1.5 text-xs font-medium"
- >
+ <CommandPrimitive.GroupHeading class="text-muted-foreground px-2 py-1.5 text-xs font-medium">
{heading}
</CommandPrimitive.GroupHeading>
{/if}
diff --git a/frontend/src/lib/components/ui/command/command-input.svelte b/frontend/src/lib/components/ui/command/command-input.svelte
index 611b00dc2..d6aeb24c5 100644
--- a/frontend/src/lib/components/ui/command/command-input.svelte
+++ b/frontend/src/lib/components/ui/command/command-input.svelte
@@ -1,22 +1,17 @@
<script lang="ts">
- import { Command as CommandPrimitive } from "bits-ui";
- import SearchIcon from "@lucide/svelte/icons/search";
- import { cn } from "$lib/utils.js";
+ import { Command as CommandPrimitive } from 'bits-ui';
+ import SearchIcon from '@lucide/svelte/icons/search';
+ import { cn } from '$lib/utils.js';
- let {
- ref = $bindable(null),
- class: className,
- value = $bindable(""),
- ...restProps
- }: CommandPrimitive.InputProps = $props();
+ let { ref = $bindable(null), class: className, value = $bindable(''), ...restProps }: CommandPrimitive.InputProps = $props();
</script>
-<div class="flex h-9 items-center gap-2 border-b pl-3 pr-8" data-slot="command-input-wrapper">
+<div class="flex h-9 items-center gap-2 border-b pr-8 pl-3" data-slot="command-input-wrapper">
<SearchIcon class="size-4 shrink-0 opacity-50" />
<CommandPrimitive.Input
data-slot="command-input"
class={cn(
- "placeholder:text-muted-foreground outline-hidden flex h-10 w-full rounded-md bg-transparent py-3 text-sm disabled:cursor-not-allowed disabled:opacity-50",
+ 'placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50',
className
)}
bind:ref
diff --git a/frontend/src/lib/components/ui/command/command-item.svelte b/frontend/src/lib/components/ui/command/command-item.svelte
index d94d07f6e..9a2afdca2 100644
--- a/frontend/src/lib/components/ui/command/command-item.svelte
+++ b/frontend/src/lib/components/ui/command/command-item.svelte
@@ -1,19 +1,15 @@
<script lang="ts">
- import { Command as CommandPrimitive } from "bits-ui";
- import { cn } from "$lib/utils.js";
+ import { Command as CommandPrimitive } from 'bits-ui';
+ import { cn } from '$lib/utils.js';
- let {
- ref = $bindable(null),
- class: className,
- ...restProps
- }: CommandPrimitive.ItemProps = $props();
+ let { ref = $bindable(null), class: className, ...restProps }: CommandPrimitive.ItemProps = $props();
</script>
<CommandPrimitive.Item
bind:ref
data-slot="command-item"
class={cn(
- "aria-selected:bg-accent aria-selected:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground outline-hidden relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",
+ "aria-selected:bg-accent aria-selected:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
className
)}
{...restProps}
diff --git a/frontend/src/lib/components/ui/command/command-link-item.svelte b/frontend/src/lib/components/ui/command/command-link-item.svelte
index 944c22dc6..dd2200fc1 100644
--- a/frontend/src/lib/components/ui/command/command-link-item.svelte
+++ b/frontend/src/lib/components/ui/command/command-link-item.svelte
@@ -1,19 +1,15 @@
<script lang="ts">
- import { Command as CommandPrimitive } from "bits-ui";
- import { cn } from "$lib/utils.js";
+ import { Command as CommandPrimitive } from 'bits-ui';
+ import { cn } from '$lib/utils.js';
- let {
- ref = $bindable(null),
- class: className,
- ...restProps
- }: CommandPrimitive.LinkItemProps = $props();
+ let { ref = $bindable(null), class: className, ...restProps }: CommandPrimitive.LinkItemProps = $props();
</script>
<CommandPrimitive.LinkItem
bind:ref
data-slot="command-item"
class={cn(
- "aria-selected:bg-accent aria-selected:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground outline-hidden relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",
+ "aria-selected:bg-accent aria-selected:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
className
)}
{...restProps}
diff --git a/frontend/src/lib/components/ui/command/command-list.svelte b/frontend/src/lib/components/ui/command/command-list.svelte
index 569f59570..bc53b730b 100644
--- a/frontend/src/lib/components/ui/command/command-list.svelte
+++ b/frontend/src/lib/components/ui/command/command-list.svelte
@@ -1,17 +1,13 @@
<script lang="ts">
- import { Command as CommandPrimitive } from "bits-ui";
- import { cn } from "$lib/utils.js";
+ import { Command as CommandPrimitive } from 'bits-ui';
+ import { cn } from '$lib/utils.js';
- let {
- ref = $bindable(null),
- class: className,
- ...restProps
- }: CommandPrimitive.ListProps = $props();
+ let { ref = $bindable(null), class: className, ...restProps }: CommandPrimitive.ListProps = $props();
</script>
<CommandPrimitive.List
bind:ref
data-slot="command-list"
- class={cn("max-h-[300px] scroll-py-1 overflow-y-auto overflow-x-hidden", className)}
+ class={cn('max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto', className)}
{...restProps}
/>
diff --git a/frontend/src/lib/components/ui/command/command-separator.svelte b/frontend/src/lib/components/ui/command/command-separator.svelte
index 35c4c9575..27038f50a 100644
--- a/frontend/src/lib/components/ui/command/command-separator.svelte
+++ b/frontend/src/lib/components/ui/command/command-separator.svelte
@@ -1,17 +1,8 @@
<script lang="ts">
- import { Command as CommandPrimitive } from "bits-ui";
- import { cn } from "$lib/utils.js";
+ import { Command as CommandPrimitive } from 'bits-ui';
+ import { cn } from '$lib/utils.js';
- let {
- ref = $bindable(null),
- class: className,
- ...restProps
- }: CommandPrimitive.SeparatorProps = $props();
+ let { ref = $bindable(null), class: className, ...restProps }: CommandPrimitive.SeparatorProps = $props();
</script>
-<CommandPrimitive.Separator
- bind:ref
- data-slot="command-separator"
- class={cn("bg-border -mx-1 h-px", className)}
- {...restProps}
-/>
+<CommandPrimitive.Separator bind:ref data-slot="command-separator" class={cn('bg-border -mx-1 h-px', className)} {...restProps} />
diff --git a/frontend/src/lib/components/ui/command/command-shortcut.svelte b/frontend/src/lib/components/ui/command/command-shortcut.svelte
index 3d68bc565..0c479333a 100644
--- a/frontend/src/lib/components/ui/command/command-shortcut.svelte
+++ b/frontend/src/lib/components/ui/command/command-shortcut.svelte
@@ -1,6 +1,6 @@
<script lang="ts">
- 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),
@@ -13,7 +13,7 @@
<span
bind:this={ref}
data-slot="command-shortcut"
- class={cn("text-muted-foreground ml-auto text-xs tracking-widest", className)}
+ class={cn('text-muted-foreground ml-auto text-xs tracking-widest', className)}
{...restProps}
>
{@render children?.()}
diff --git a/frontend/src/lib/components/ui/command/command.svelte b/frontend/src/lib/components/ui/command/command.svelte
index c64a77efb..1a6bdb703 100644
--- a/frontend/src/lib/components/ui/command/command.svelte
+++ b/frontend/src/lib/components/ui/command/command.svelte
@@ -1,22 +1,14 @@
<script lang="ts">
- import { Command as CommandPrimitive } from "bits-ui";
- import { cn } from "$lib/utils.js";
+ import { Command as CommandPrimitive } from 'bits-ui';
+ import { cn } from '$lib/utils.js';
- let {
- ref = $bindable(null),
- value = $bindable(""),
- class: className,
- ...restProps
- }: CommandPrimitive.RootProps = $props();
+ let { ref = $bindable(null), value = $bindable(''), class: className, ...restProps }: CommandPrimitive.RootProps = $props();
</script>
<CommandPrimitive.Root
bind:value
bind:ref
data-slot="command"
- class={cn(
- "bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",
- className
- )}
+ class={cn('bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md', className)}
{...restProps}
/>
diff --git a/frontend/src/lib/components/ui/command/index.ts b/frontend/src/lib/components/ui/command/index.ts
index d3dbadeae..dee236429 100644
--- a/frontend/src/lib/components/ui/command/index.ts
+++ b/frontend/src/lib/components/ui/command/index.ts
@@ -1,15 +1,15 @@
-import { Command as CommandPrimitive } from "bits-ui";
+import { Command as CommandPrimitive } from 'bits-ui';
-import Root from "./command.svelte";
-import Dialog from "./command-dialog.svelte";
-import Empty from "./command-empty.svelte";
-import Group from "./command-group.svelte";
-import Item from "./command-item.svelte";
-import Input from "./command-input.svelte";
-import List from "./command-list.svelte";
-import Separator from "./command-separator.svelte";
-import Shortcut from "./command-shortcut.svelte";
-import LinkItem from "./command-link-item.svelte";
+import Root from './command.svelte';
+import Dialog from './command-dialog.svelte';
+import Empty from './command-empty.svelte';
+import Group from './command-group.svelte';
+import Item from './command-item.svelte';
+import Input from './command-input.svelte';
+import List from './command-list.svelte';
+import Separator from './command-separator.svelte';
+import Shortcut from './command-shortcut.svelte';
+import LinkItem from './command-link-item.svelte';
const Loading = CommandPrimitive.Loading;
@@ -36,5 +36,5 @@ export {
List as CommandList,
Separator as CommandSeparator,
Shortcut as CommandShortcut,
- Loading as CommandLoading,
+ Loading as CommandLoading
};
diff --git a/frontend/src/lib/components/ui/copy-button/types.ts b/frontend/src/lib/components/ui/copy-button/types.ts
index 4b1e59328..4d91cd359 100644
--- a/frontend/src/lib/components/ui/copy-button/types.ts
+++ b/frontend/src/lib/components/ui/copy-button/types.ts
@@ -18,5 +18,4 @@ export type CopyButtonPropsWithoutHTML = WithChildren<
}
>;
-export type CopyButtonProps = CopyButtonPropsWithoutHTML &
- WithoutChildren<HTMLAttributes<HTMLButtonElement>>;
+export type CopyButtonProps = CopyButtonPropsWithoutHTML & WithoutChildren<HTMLAttributes<HTMLButtonElement>>;
diff --git a/frontend/src/lib/components/ui/data-table/data-table.svelte.ts b/frontend/src/lib/components/ui/data-table/data-table.svelte.ts
index 9e0b91306..e2ed26bd2 100644
--- a/frontend/src/lib/components/ui/data-table/data-table.svelte.ts
+++ b/frontend/src/lib/components/ui/data-table/data-table.svelte.ts
@@ -1,10 +1,4 @@
-import {
- type RowData,
- type TableOptions,
- type TableOptionsResolved,
- type TableState,
- createTable,
-} from "@tanstack/table-core";
+import { type RowData, type TableOptions, type TableOptionsResolved, type TableState, createTable } from '@tanstack/table-core';
/**
* Creates a reactive TanStack table object for Svelte.
@@ -38,12 +32,9 @@ export function createSvelteTable<TData extends RowData>(options: TableOptions<T
state: {},
onStateChange() {},
renderFallbackValue: null,
- mergeOptions: (
- defaultOptions: TableOptions<TData>,
- options: Partial<TableOptions<TData>>
- ) => {
+ mergeOptions: (defaultOptions: TableOptions<TData>, options: Partial<TableOptions<TData>>) => {
return mergeObjects(defaultOptions, options);
- },
+ }
},
options
);
@@ -62,7 +53,7 @@ export function createSvelteTable<TData extends RowData>(options: TableOptions<T
else state = mergeObjects(state, updater);
options.onStateChange?.(updater);
- },
+ }
});
});
}
@@ -77,9 +68,7 @@ export function createSvelteTable<TData extends RowData>(options: TableOptions<T
}
type MaybeThunk<T extends object> = T | (() => T | null | undefined);
-type Intersection<T extends readonly unknown[]> = (T extends [infer H, ...infer R]
- ? H & Intersection<R>
- : unknown) & {};
+type Intersection<T extends readonly unknown[]> = (T extends [infer H, ...infer R] ? H & Intersection<R> : unknown) & {};
/**
* Lazily merges several objects (or thunks) while preserving
@@ -92,7 +81,7 @@ export function mergeObjects<Sources extends readonly MaybeThunk<any>[]>(
...sources: Sources
): Intersection<{ [K in keyof Sources]: Sources[K] }> {
const resolve = <T extends object>(src: MaybeThunk<T>): T | undefined =>
- typeof src === "function" ? (src() ?? undefined) : src;
+ typeof src === 'function' ? (src() ?? undefined) : src;
const findSourceWithKey = (key: PropertyKey) => {
for (let i = sources.length - 1; i >= 0; i--) {
@@ -134,8 +123,8 @@ export function mergeObjects<Sources extends readonly MaybeThunk<any>[]>(
enumerable: true,
// eslint-disable-next-line @typescript-eslint/no-explicit-any
value: (src as any)[key],
- writable: true,
+ writable: true
};
- },
+ }
}) as Intersection<{ [K in keyof Sources]: Sources[K] }>;
}
diff --git a/frontend/src/lib/components/ui/data-table/flex-render.svelte b/frontend/src/lib/components/ui/data-table/flex-render.svelte
index 12d2af10e..97487fc24 100644
--- a/frontend/src/lib/components/ui/data-table/flex-render.svelte
+++ b/frontend/src/lib/components/ui/data-table/flex-render.svelte
@@ -1,9 +1,6 @@
-<script
- lang="ts"
- generics="TData, TValue, TContext extends HeaderContext<TData, TValue> | CellContext<TData, TValue>"
->
- import type { CellContext, ColumnDefTemplate, HeaderContext } from "@tanstack/table-core";
- import { RenderComponentConfig, RenderSnippetConfig } from "./render-helpers.js";
+<script lang="ts" generics="TData, TValue, TContext extends HeaderContext<TData, TValue> | CellContext<TData, TValue>">
+ import type { CellContext, ColumnDefTemplate, HeaderContext } from '@tanstack/table-core';
+ import { RenderComponentConfig, RenderSnippetConfig } from './render-helpers.js';
type Props = {
/** The cell or header field of the current cell's column definition. */
content?: TContext extends HeaderContext<TData, TValue>
@@ -18,7 +15,7 @@
let { content, context }: Props = $props();
</script>
-{#if typeof content === "string"}
+{#if typeof content === 'string'}
{content}
{:else if content instanceof Function}
<!-- It's unlikely that a CellContext will be passed to a Header -->
diff --git a/frontend/src/lib/components/ui/data-table/index.ts b/frontend/src/lib/components/ui/data-table/index.ts
index 5f4e77ea0..05fb82150 100644
--- a/frontend/src/lib/components/ui/data-table/index.ts
+++ b/frontend/src/lib/components/ui/data-table/index.ts
@@ -1,3 +1,3 @@
-export { default as FlexRender } from "./flex-render.svelte";
-export { renderComponent, renderSnippet } from "./render-helpers.js";
-export { createSvelteTable } from "./data-table.svelte.js";
+export { default as FlexRender } from './flex-render.svelte';
+export { renderComponent, renderSnippet } from './render-helpers.js';
+export { createSvelteTable } from './data-table.svelte.js';
diff --git a/frontend/src/lib/components/ui/data-table/render-helpers.ts b/frontend/src/lib/components/ui/data-table/render-helpers.ts
index fa036d62a..99a6dffda 100644
--- a/frontend/src/lib/components/ui/data-table/render-helpers.ts
+++ b/frontend/src/lib/components/ui/data-table/render-helpers.ts
@@ -1,4 +1,4 @@
-import type { Component, ComponentProps, Snippet } from "svelte";
+import type { Component, ComponentProps, Snippet } from 'svelte';
/**
* A helper class to make it easy to identify Svelte components in
@@ -19,10 +19,7 @@ import type { Component, ComponentProps, Snippet } from "svelte";
export class RenderComponentConfig<TComponent extends Component> {
component: TComponent;
props: ComponentProps<TComponent> | Record<string, never>;
- constructor(
- component: TComponent,
- props: ComponentProps<TComponent> | Record<string, never> = {}
- ) {
+ constructor(component: TComponent, props: ComponentProps<TComponent> | Record<string, never> = {}) {
this.component = component;
this.props = props;
}
@@ -77,7 +74,7 @@ export class RenderSnippetConfig<TProps> {
export function renderComponent<
// eslint-disable-next-line @typescript-eslint/no-explicit-any
T extends Component<any>,
- Props extends ComponentProps<T>,
+ Props extends ComponentProps<T>
>(component: T, props: Props = {} as Props) {
return new RenderComponentConfig(component, props);
}
diff --git a/frontend/src/lib/components/ui/dialog/dialog-description.svelte b/frontend/src/lib/components/ui/dialog/dialog-description.svelte
index a20bc38e8..2b29f7203 100644
--- a/frontend/src/lib/components/ui/dialog/dialog-description.svelte
+++ b/frontend/src/lib/components/ui/dialog/dialog-description.svelte
@@ -5,4 +5,9 @@
let { ref = $bindable(null), class: className, ...restProps }: DialogPrimitive.DescriptionProps = $props();
</script>
-<DialogPrimitive.Description bind:ref data-slot="dialog-description" class={cn('text-muted-foreground text-sm', className)} {...restProps} />
+<DialogPrimitive.Description
+ bind:ref
+ data-slot="dialog-description"
+ class={cn('text-muted-foreground text-sm', className)}
+ {...restProps}
+/>
diff --git a/frontend/src/lib/components/ui/dialog/dialog-footer.svelte b/frontend/src/lib/components/ui/dialog/dialog-footer.svelte
index a7789619a..c457d5632 100644
--- a/frontend/src/lib/components/ui/dialog/dialog-footer.svelte
+++ b/frontend/src/lib/components/ui/dialog/dialog-footer.svelte
@@ -2,9 +2,19 @@
import { cn, type WithElementRef } from '$lib/utils.js';
import type { HTMLAttributes } from 'svelte/elements';
- let { ref = $bindable(null), class: className, children, ...restProps }: WithElementRef<HTMLAttributes<HTMLDivElement>> = $props();
+ let {
+ ref = $bindable(null),
+ class: className,
+ children,
+ ...restProps
+ }: WithElementRef<HTMLAttributes<HTMLDivElement>> = $props();
</script>
-<div bind:this={ref} data-slot="dialog-footer" class={cn('flex flex-col-reverse gap-2 sm:flex-row sm:justify-end', className)} {...restProps}>
+<div
+ bind:this={ref}
+ data-slot="dialog-footer"
+ class={cn('flex flex-col-reverse gap-2 sm:flex-row sm:justify-end', className)}
+ {...restProps}
+>
{@render children?.()}
</div>
diff --git a/frontend/src/lib/components/ui/dialog/dialog-header.svelte b/frontend/src/lib/components/ui/dialog/dialog-header.svelte
index f6038a838..5fe41452b 100644
--- a/frontend/src/lib/components/ui/dialog/dialog-header.svelte
+++ b/frontend/src/lib/components/ui/dialog/dialog-header.svelte
@@ -2,9 +2,19 @@
import type { HTMLAttributes } from 'svelte/elements';
import { cn, type WithElementRef } from '$lib/utils.js';
- let { ref = $bindable(null), class: className, children, ...restProps }: WithElementRef<HTMLAttributes<HTMLDivElement>> = $props();
+ let {
+ ref = $bindable(null),
+ class: className,
+ children,
+ ...restProps
+ }: WithElementRef<HTMLAttributes<HTMLDivElement>> = $props();
</script>
-<div bind:this={ref} data-slot="dialog-header" class={cn('flex flex-col gap-2 text-center sm:text-left', className)} {...restProps}>
+<div
+ bind:this={ref}
+ data-slot="dialog-header"
+ class={cn('flex flex-col gap-2 text-center sm:text-left', className)}
+ {...restProps}
+>
{@render children?.()}
</div>
diff --git a/frontend/src/lib/components/ui/dialog/dialog-overlay.svelte b/frontend/src/lib/components/ui/dialog/dialog-overlay.svelte
index 8c04b04b2..2fc9203e9 100644
--- a/frontend/src/lib/components/ui/dialog/dialog-overlay.svelte
+++ b/frontend/src/lib/components/ui/dialog/dialog-overlay.svelte
@@ -5,4 +5,12 @@
let { ref = $bindable(null), class: className, ...restProps }: DialogPrimitive.OverlayProps = $props();
</script>
-<DialogPrimitive.Overlay bind:ref data-slot="dialog-overlay" class={cn('data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50', className)} {...restProps} />
+<DialogPrimitive.Overlay
+ bind:ref
+ data-slot="dialog-overlay"
+ class={cn(
+ 'data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50',
+ className
+ )}
+ {...restProps}
+/>
diff --git a/frontend/src/lib/components/ui/dialog/dialog-title.svelte b/frontend/src/lib/components/ui/dialog/dialog-title.svelte
index 29baf09ac..db5b51777 100644
--- a/frontend/src/lib/components/ui/dialog/dialog-title.svelte
+++ b/frontend/src/lib/components/ui/dialog/dialog-title.svelte
@@ -5,4 +5,9 @@
let { ref = $bindable(null), class: className, ...restProps }: DialogPrimitive.TitleProps = $props();
</script>
-<DialogPrimitive.Title bind:ref data-slot="dialog-title" class={cn('text-lg leading-none font-semibold', className)} {...restProps} />
+<DialogPrimitive.Title
+ bind:ref
+ data-slot="dialog-title"
+ class={cn('text-lg leading-none font-semibold', className)}
+ {...restProps}
+/>
diff --git a/frontend/src/lib/components/ui/dropdown-button/dropdown-button-content.svelte b/frontend/src/lib/components/ui/dropdown-button/dropdown-button-content.svelte
index 52460dbc6..c23d152dd 100644
--- a/frontend/src/lib/components/ui/dropdown-button/dropdown-button-content.svelte
+++ b/frontend/src/lib/components/ui/dropdown-button/dropdown-button-content.svelte
@@ -1,38 +1,39 @@
<script lang="ts" module>
- import { cn } from '$lib/utils.js';
- import { DropdownMenu as DropdownMenuPrimitive } from 'bits-ui';
+ import { cn } from '$lib/utils.js';
+ import { DropdownMenu as DropdownMenuPrimitive } from 'bits-ui';
- export type DropdownButtonContentProps = DropdownMenuPrimitive.ContentProps;
+ export type DropdownButtonContentProps = DropdownMenuPrimitive.ContentProps;
</script>
<script lang="ts">
- import { tryUseDropdownButtonRoot } from './dropdown-button.svelte.js';
- const root = tryUseDropdownButtonRoot();
+ import { tryUseDropdownButtonRoot } from './dropdown-button.svelte.js';
+ const root = tryUseDropdownButtonRoot();
- let {
- ref = $bindable(null),
- sideOffset = 4,
- portalProps,
- align = root?.align ?? 'end',
- class: className,
- children,
- ...restProps
- }: DropdownMenuPrimitive.ContentProps & {
- portalProps?: DropdownMenuPrimitive.PortalProps;
- } = $props();
+ let {
+ ref = $bindable(null),
+ sideOffset = 4,
+ portalProps,
+ align = root?.align ?? 'end',
+ class: className,
+ children,
+ ...restProps
+ }: DropdownMenuPrimitive.ContentProps & {
+ portalProps?: DropdownMenuPrimitive.PortalProps;
+ } = $props();
</script>
<DropdownMenuPrimitive.Portal {...portalProps}>
- <DropdownMenuPrimitive.Content
- bind:ref
- {sideOffset}
- {align}
- class={cn(
- 'bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-32 overflow-hidden rounded-md border p-1 shadow-md outline-none',
- className
- )}
- {...restProps}>
- <DropdownMenuPrimitive.Arrow />
- {@render children?.()}
- </DropdownMenuPrimitive.Content>
+ <DropdownMenuPrimitive.Content
+ bind:ref
+ {sideOffset}
+ {align}
+ class={cn(
+ 'bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-32 overflow-hidden rounded-md border p-1 shadow-md outline-none',
+ className
+ )}
+ {...restProps}
+ >
+ <DropdownMenuPrimitive.Arrow />
+ {@render children?.()}
+ </DropdownMenuPrimitive.Content>
</DropdownMenuPrimitive.Portal>
diff --git a/frontend/src/lib/components/ui/dropdown-button/dropdown-button-item.svelte b/frontend/src/lib/components/ui/dropdown-button/dropdown-button-item.svelte
index e720c14f0..b8ed0c4f7 100644
--- a/frontend/src/lib/components/ui/dropdown-button/dropdown-button-item.svelte
+++ b/frontend/src/lib/components/ui/dropdown-button/dropdown-button-item.svelte
@@ -1,19 +1,20 @@
<script lang="ts" module>
- import { DropdownMenu as DropdownMenuPrimitive } from 'bits-ui';
- import { cn } from '$lib/utils.js';
- export type DropdownButtonItemProps = DropdownMenuPrimitive.ItemProps;
+ import { DropdownMenu as DropdownMenuPrimitive } from 'bits-ui';
+ import { cn } from '$lib/utils.js';
+ export type DropdownButtonItemProps = DropdownMenuPrimitive.ItemProps;
</script>
<script lang="ts">
- let { ref = $bindable(null), class: className, children, ...restProps }: DropdownButtonItemProps = $props();
+ let { ref = $bindable(null), class: className, children, ...restProps }: DropdownButtonItemProps = $props();
</script>
<DropdownMenuPrimitive.Item
- bind:ref
- class={cn(
- 'data-highlighted:bg-accent data-highlighted:text-accent-foreground relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0',
- className
- )}
- {...restProps}>
- {@render children?.()}
+ bind:ref
+ class={cn(
+ 'data-highlighted:bg-accent data-highlighted:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm transition-colors outline-none select-none data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0',
+ className
+ )}
+ {...restProps}
+>
+ {@render children?.()}
</DropdownMenuPrimitive.Item>
diff --git a/frontend/src/lib/components/ui/dropdown-button/dropdown-button-main.svelte b/frontend/src/lib/components/ui/dropdown-button/dropdown-button-main.svelte
index 991256bc7..0440aeb65 100644
--- a/frontend/src/lib/components/ui/dropdown-button/dropdown-button-main.svelte
+++ b/frontend/src/lib/components/ui/dropdown-button/dropdown-button-main.svelte
@@ -1,36 +1,37 @@
<script lang="ts" module>
- import { cn, type WithElementRef } from '$lib/utils.js';
- import type { HTMLButtonAttributes } from 'svelte/elements';
- import { buttonVariants, type ButtonVariant, type ButtonSize } from '$lib/components/ui/button/button.svelte';
+ import { cn, type WithElementRef } from '$lib/utils.js';
+ import type { HTMLButtonAttributes } from 'svelte/elements';
+ import { buttonVariants, type ButtonVariant, type ButtonSize } from '$lib/components/ui/button/button.svelte';
- export type DropdownButtonMainProps = WithElementRef<HTMLButtonAttributes> & {
- variant?: ButtonVariant;
- size?: ButtonSize;
- };
+ export type DropdownButtonMainProps = WithElementRef<HTMLButtonAttributes> & {
+ variant?: ButtonVariant;
+ size?: ButtonSize;
+ };
</script>
<script lang="ts">
- import { tryUseDropdownButtonRoot } from './dropdown-button.svelte.js';
- const root = tryUseDropdownButtonRoot();
+ import { tryUseDropdownButtonRoot } from './dropdown-button.svelte.js';
+ const root = tryUseDropdownButtonRoot();
- let {
- class: className,
- variant = root?.variant ?? 'default',
- size = root?.size ?? 'default',
- ref = $bindable(null),
- type = 'button',
- disabled = root?.disabled ?? undefined,
- children,
- ...restProps
- }: DropdownButtonMainProps = $props();
+ let {
+ class: className,
+ variant = root?.variant ?? 'default',
+ size = root?.size ?? 'default',
+ ref = $bindable(null),
+ type = 'button',
+ disabled = root?.disabled ?? undefined,
+ children,
+ ...restProps
+ }: DropdownButtonMainProps = $props();
</script>
<button
- bind:this={ref}
- data-slot="dropdown-button-main"
- class={cn(buttonVariants({ variant, size }), 'rounded-r-none border-r-0', className)}
- {type}
- {disabled}
- {...restProps}>
- {@render children?.()}
+ bind:this={ref}
+ data-slot="dropdown-button-main"
+ class={cn(buttonVariants({ variant, size }), 'rounded-r-none border-r-0', className)}
+ {type}
+ {disabled}
+ {...restProps}
+>
+ {@render children?.()}
</button>
diff --git a/frontend/src/lib/components/ui/dropdown-button/dropdown-button-separator.svelte b/frontend/src/lib/components/ui/dropdown-button/dropdown-button-separator.svelte
index 6177f75c5..72d0effe5 100644
--- a/frontend/src/lib/components/ui/dropdown-button/dropdown-button-separator.svelte
+++ b/frontend/src/lib/components/ui/dropdown-button/dropdown-button-separator.svelte
@@ -1,13 +1,13 @@
<script lang="ts" module>
- import { cn } from '$lib/utils.js';
+ import { cn } from '$lib/utils.js';
- export type DropdownButtonSeparatorProps = DropdownMenuPrimitive.SeparatorProps;
+ export type DropdownButtonSeparatorProps = DropdownMenuPrimitive.SeparatorProps;
</script>
<script lang="ts">
- import { DropdownMenu as DropdownMenuPrimitive } from 'bits-ui';
+ import { DropdownMenu as DropdownMenuPrimitive } from 'bits-ui';
- let { ref = $bindable(null), class: className, ...restProps }: DropdownMenuPrimitive.SeparatorProps = $props();
+ let { ref = $bindable(null), class: className, ...restProps }: DropdownMenuPrimitive.SeparatorProps = $props();
</script>
<DropdownMenuPrimitive.Separator bind:ref class={cn('bg-muted -mx-1 my-1 h-px', className)} {...restProps} />
diff --git a/frontend/src/lib/components/ui/dropdown-button/dropdown-button-trigger.svelte b/frontend/src/lib/components/ui/dropdown-button/dropdown-button-trigger.svelte
index 4e3775cf6..609857d53 100644
--- a/frontend/src/lib/components/ui/dropdown-button/dropdown-button-trigger.svelte
+++ b/frontend/src/lib/components/ui/dropdown-button/dropdown-button-trigger.svelte
@@ -1,44 +1,45 @@
<script lang="ts" module>
- import { cn, type WithElementRef } from '$lib/utils.js';
- import type { HTMLButtonAttributes } from 'svelte/elements';
- import { buttonVariants, type ButtonVariant, type ButtonSize } from '$lib/components/ui/button/button.svelte';
+ import { cn, type WithElementRef } from '$lib/utils.js';
+ import type { HTMLButtonAttributes } from 'svelte/elements';
+ import { buttonVariants, type ButtonVariant, type ButtonSize } from '$lib/components/ui/button/button.svelte';
- export type DropdownButtonTriggerProps = WithElementRef<HTMLButtonAttributes> & {
- variant?: ButtonVariant;
- size?: ButtonSize;
- builders?: any[];
- };
+ export type DropdownButtonTriggerProps = WithElementRef<HTMLButtonAttributes> & {
+ variant?: ButtonVariant;
+ size?: ButtonSize;
+ builders?: any[];
+ };
</script>
<script lang="ts">
- import ChevronDown from '@lucide/svelte/icons/chevron-down';
- import { tryUseDropdownButtonRoot } from './dropdown-button.svelte.js';
- const root = tryUseDropdownButtonRoot();
+ import ChevronDown from '@lucide/svelte/icons/chevron-down';
+ import { tryUseDropdownButtonRoot } from './dropdown-button.svelte.js';
+ const root = tryUseDropdownButtonRoot();
- let {
- class: className,
- variant = root?.variant ?? 'default',
- size = root?.size ?? 'default',
- ref = $bindable(null),
- type = 'button',
- disabled = root?.disabled ?? undefined,
- builders = [],
- children,
- ...restProps
- }: DropdownButtonTriggerProps = $props();
+ let {
+ class: className,
+ variant = root?.variant ?? 'default',
+ size = root?.size ?? 'default',
+ ref = $bindable(null),
+ type = 'button',
+ disabled = root?.disabled ?? undefined,
+ builders = [],
+ children,
+ ...restProps
+ }: DropdownButtonTriggerProps = $props();
</script>
<button
- bind:this={ref}
- use:builders[0]
- data-slot="dropdown-button-trigger"
- class={cn(buttonVariants({ variant, size }), 'rounded-l-none px-2 border-l border-l-background/20', className)}
- {type}
- {disabled}
- {...restProps}>
- {#if children}
- {@render children()}
- {:else}
- <ChevronDown class="size-4" />
- {/if}
+ bind:this={ref}
+ use:builders[0]
+ data-slot="dropdown-button-trigger"
+ class={cn(buttonVariants({ variant, size }), 'border-l-background/20 rounded-l-none border-l px-2', className)}
+ {type}
+ {disabled}
+ {...restProps}
+>
+ {#if children}
+ {@render children()}
+ {:else}
+ <ChevronDown class="size-4" />
+ {/if}
</button>
diff --git a/frontend/src/lib/components/ui/dropdown-button/dropdown-button.svelte b/frontend/src/lib/components/ui/dropdown-button/dropdown-button.svelte
index 1648bf848..2a0310973 100644
--- a/frontend/src/lib/components/ui/dropdown-button/dropdown-button.svelte
+++ b/frontend/src/lib/components/ui/dropdown-button/dropdown-button.svelte
@@ -1,33 +1,33 @@
<script lang="ts" module>
- import { cn, type WithElementRef } from '$lib/utils.js';
- import type { HTMLAttributes } from 'svelte/elements';
- import type { ButtonVariant, ButtonSize } from '$lib/components/ui/button/button.svelte';
+ import { cn, type WithElementRef } from '$lib/utils.js';
+ import type { HTMLAttributes } from 'svelte/elements';
+ import type { ButtonVariant, ButtonSize } from '$lib/components/ui/button/button.svelte';
- export type DropdownButtonProps = WithElementRef<HTMLAttributes<HTMLDivElement>> & {
- variant?: ButtonVariant;
- size?: ButtonSize;
- align?: 'start' | 'center' | 'end';
- disabled?: boolean;
- };
+ export type DropdownButtonProps = WithElementRef<HTMLAttributes<HTMLDivElement>> & {
+ variant?: ButtonVariant;
+ size?: ButtonSize;
+ align?: 'start' | 'center' | 'end';
+ disabled?: boolean;
+ };
</script>
<script lang="ts">
- import { provideDropdownButtonRoot } from './dropdown-button.svelte.js';
+ import { provideDropdownButtonRoot } from './dropdown-button.svelte.js';
- let {
- class: className,
- ref = $bindable(null),
- children,
- variant = 'default',
- size = 'default',
- align = 'end',
- disabled = false,
- ...restProps
- }: DropdownButtonProps = $props();
+ let {
+ class: className,
+ ref = $bindable(null),
+ children,
+ variant = 'default',
+ size = 'default',
+ align = 'end',
+ disabled = false,
+ ...restProps
+ }: DropdownButtonProps = $props();
- provideDropdownButtonRoot({ variant, size, align, disabled });
+ provideDropdownButtonRoot({ variant, size, align, disabled });
</script>
<div bind:this={ref} data-slot="dropdown-button" class={cn('flex', className)} {...restProps}>
- {@render children?.()}
+ {@render children?.()}
</div>
diff --git a/frontend/src/lib/components/ui/dropdown-button/dropdown-button.svelte.ts b/frontend/src/lib/components/ui/dropdown-button/dropdown-button.svelte.ts
index 0b2930cd5..98e6fff5c 100644
--- a/frontend/src/lib/components/ui/dropdown-button/dropdown-button.svelte.ts
+++ b/frontend/src/lib/components/ui/dropdown-button/dropdown-button.svelte.ts
@@ -2,26 +2,26 @@ import { Context } from 'runed';
import type { ButtonSize, ButtonVariant } from '$lib/components/ui/button/button.svelte';
export type DropdownButtonCtx = {
- variant: ButtonVariant;
- size: ButtonSize;
- disabled: boolean;
- align: 'start' | 'center' | 'end';
+ variant: ButtonVariant;
+ size: ButtonSize;
+ disabled: boolean;
+ align: 'start' | 'center' | 'end';
};
const ctx = new Context<DropdownButtonCtx>('dropdown-button-root');
export function provideDropdownButtonRoot(props: DropdownButtonCtx) {
- return ctx.set(props);
+ return ctx.set(props);
}
export function useDropdownButtonRoot() {
- return ctx.get();
+ return ctx.get();
}
export function tryUseDropdownButtonRoot(): DropdownButtonCtx | null {
- try {
- return ctx.get();
- } catch {
- return null;
- }
+ try {
+ return ctx.get();
+ } catch {
+ return null;
+ }
}
diff --git a/frontend/src/lib/components/ui/dropdown-button/index.ts b/frontend/src/lib/components/ui/dropdown-button/index.ts
index c539e6212..dfcef40ab 100644
--- a/frontend/src/lib/components/ui/dropdown-button/index.ts
+++ b/frontend/src/lib/components/ui/dropdown-button/index.ts
@@ -10,23 +10,23 @@ const DropdownRoot = DropdownMenuPrimitive.Root;
const DropdownTrigger = DropdownMenuPrimitive.Trigger;
export {
- Root,
- Main,
- Trigger,
- Content,
- Item,
- Separator,
- DropdownRoot,
- DropdownTrigger,
- //
- Root as DropdownButton,
- Main as DropdownButtonMain,
- Trigger as DropdownButtonTrigger,
- Content as DropdownButtonContent,
- Item as DropdownButtonItem,
- Separator as DropdownButtonSeparator,
- DropdownRoot as DropdownButtonRoot,
- DropdownTrigger as DropdownButtonPrimitiveTrigger,
+ Root,
+ Main,
+ Trigger,
+ Content,
+ Item,
+ Separator,
+ DropdownRoot,
+ DropdownTrigger,
+ //
+ Root as DropdownButton,
+ Main as DropdownButtonMain,
+ Trigger as DropdownButtonTrigger,
+ Content as DropdownButtonContent,
+ Item as DropdownButtonItem,
+ Separator as DropdownButtonSeparator,
+ DropdownRoot as DropdownButtonRoot,
+ DropdownTrigger as DropdownButtonPrimitiveTrigger
};
export type { DropdownButtonProps } from './dropdown-button.svelte';
diff --git a/frontend/src/lib/components/ui/dropdown-menu/dropdown-menu-checkbox-item.svelte b/frontend/src/lib/components/ui/dropdown-menu/dropdown-menu-checkbox-item.svelte
index e03f94916..e94c6372e 100644
--- a/frontend/src/lib/components/ui/dropdown-menu/dropdown-menu-checkbox-item.svelte
+++ b/frontend/src/lib/components/ui/dropdown-menu/dropdown-menu-checkbox-item.svelte
@@ -1,9 +1,9 @@
<script lang="ts">
- import { DropdownMenu as DropdownMenuPrimitive } from "bits-ui";
- import CheckIcon from "@lucide/svelte/icons/check";
- import MinusIcon from "@lucide/svelte/icons/minus";
- import { cn, type WithoutChildrenOrChild } from "$lib/utils.js";
- import type { Snippet } from "svelte";
+ import { DropdownMenu as DropdownMenuPrimitive } from 'bits-ui';
+ import CheckIcon from '@lucide/svelte/icons/check';
+ import MinusIcon from '@lucide/svelte/icons/minus';
+ import { cn, type WithoutChildrenOrChild } from '$lib/utils.js';
+ import type { Snippet } from 'svelte';
let {
ref = $bindable(null),
@@ -23,7 +23,7 @@
bind:indeterminate
data-slot="dropdown-menu-checkbox-item"
class={cn(
- "focus:bg-accent focus:text-accent-foreground outline-hidden relative flex cursor-default select-none items-center gap-2 rounded-sm py-1.5 pl-8 pr-2 text-sm data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",
+ "focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
className
)}
{...restProps}
@@ -33,7 +33,7 @@
{#if indeterminate}
<MinusIcon class="size-4" />
{:else}
- <CheckIcon class={cn("size-4", !checked && "text-transparent")} />
+ <CheckIcon class={cn('size-4', !checked && 'text-transparent')} />
{/if}
</span>
{@render childrenProp?.()}
diff --git a/frontend/src/lib/components/ui/dropdown-menu/dropdown-menu-content.svelte b/frontend/src/lib/components/ui/dropdown-menu/dropdown-menu-content.svelte
index f9b090593..a8ab40ddc 100644
--- a/frontend/src/lib/components/ui/dropdown-menu/dropdown-menu-content.svelte
+++ b/frontend/src/lib/components/ui/dropdown-menu/dropdown-menu-content.svelte
@@ -20,7 +20,7 @@
preventScroll={false}
{sideOffset}
class={cn(
- 'bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 max-h-(--radix-dropdown-menu-content-available-height) origin-(--radix-dropdown-menu-content-transform-origin) z-50 min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border p-1 shadow-md outline-none',
+ 'bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md outline-none',
className
)}
{...restProps}
diff --git a/frontend/src/lib/components/ui/dropdown-menu/dropdown-menu-group-heading.svelte b/frontend/src/lib/components/ui/dropdown-menu/dropdown-menu-group-heading.svelte
index 48d14a916..920848ee4 100644
--- a/frontend/src/lib/components/ui/dropdown-menu/dropdown-menu-group-heading.svelte
+++ b/frontend/src/lib/components/ui/dropdown-menu/dropdown-menu-group-heading.svelte
@@ -1,7 +1,7 @@
<script lang="ts">
- import { DropdownMenu as DropdownMenuPrimitive } from "bits-ui";
- import { cn } from "$lib/utils.js";
- import type { ComponentProps } from "svelte";
+ import { DropdownMenu as DropdownMenuPrimitive } from 'bits-ui';
+ import { cn } from '$lib/utils.js';
+ import type { ComponentProps } from 'svelte';
let {
ref = $bindable(null),
@@ -17,6 +17,6 @@
bind:ref
data-slot="dropdown-menu-group-heading"
data-inset={inset}
- class={cn("px-2 py-1.5 text-sm font-semibold data-[inset]:pl-8", className)}
+ class={cn('px-2 py-1.5 text-sm font-semibold data-[inset]:pl-8', className)}
{...restProps}
/>
diff --git a/frontend/src/lib/components/ui/dropdown-menu/dropdown-menu-group.svelte b/frontend/src/lib/components/ui/dropdown-menu/dropdown-menu-group.svelte
index aca1f7bd5..261ab7e63 100644
--- a/frontend/src/lib/components/ui/dropdown-menu/dropdown-menu-group.svelte
+++ b/frontend/src/lib/components/ui/dropdown-menu/dropdown-menu-group.svelte
@@ -1,5 +1,5 @@
<script lang="ts">
- import { DropdownMenu as DropdownMenuPrimitive } from "bits-ui";
+ import { DropdownMenu as DropdownMenuPrimitive } from 'bits-ui';
let { ref = $bindable(null), ...restProps }: DropdownMenuPrimitive.GroupProps = $props();
</script>
diff --git a/frontend/src/lib/components/ui/dropdown-menu/dropdown-menu-item.svelte b/frontend/src/lib/components/ui/dropdown-menu/dropdown-menu-item.svelte
index 64bb28310..38bc45bf0 100644
--- a/frontend/src/lib/components/ui/dropdown-menu/dropdown-menu-item.svelte
+++ b/frontend/src/lib/components/ui/dropdown-menu/dropdown-menu-item.svelte
@@ -1,16 +1,16 @@
<script lang="ts">
- import { cn } from "$lib/utils.js";
- import { DropdownMenu as DropdownMenuPrimitive } from "bits-ui";
+ import { cn } from '$lib/utils.js';
+ import { DropdownMenu as DropdownMenuPrimitive } from 'bits-ui';
let {
ref = $bindable(null),
class: className,
inset,
- variant = "default",
+ variant = 'default',
...restProps
}: DropdownMenuPrimitive.ItemProps & {
inset?: boolean;
- variant?: "default" | "destructive";
+ variant?: 'default' | 'destructive';
} = $props();
</script>
@@ -20,7 +20,7 @@
data-inset={inset}
data-variant={variant}
class={cn(
- "data-highlighted:bg-accent data-highlighted:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:data-highlighted:bg-destructive/10 dark:data-[variant=destructive]:data-highlighted:bg-destructive/20 data-[variant=destructive]:data-highlighted:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground outline-hidden relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm data-[disabled]:pointer-events-none data-[inset]:pl-8 data-[disabled]:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",
+ "data-highlighted:bg-accent data-highlighted:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:data-highlighted:bg-destructive/10 dark:data-[variant=destructive]:data-highlighted:bg-destructive/20 data-[variant=destructive]:data-highlighted:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
className
)}
{...restProps}
diff --git a/frontend/src/lib/components/ui/dropdown-menu/dropdown-menu-label.svelte b/frontend/src/lib/components/ui/dropdown-menu/dropdown-menu-label.svelte
index f72e477e1..14e40f751 100644
--- a/frontend/src/lib/components/ui/dropdown-menu/dropdown-menu-label.svelte
+++ b/frontend/src/lib/components/ui/dropdown-menu/dropdown-menu-label.svelte
@@ -1,6 +1,6 @@
<script lang="ts">
- 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),
@@ -17,7 +17,7 @@
bind:this={ref}
data-slot="dropdown-menu-label"
data-inset={inset}
- class={cn("px-2 py-1.5 text-sm font-semibold data-[inset]:pl-8", className)}
+ class={cn('px-2 py-1.5 text-sm font-semibold data-[inset]:pl-8', className)}
{...restProps}
>
{@render children?.()}
diff --git a/frontend/src/lib/components/ui/dropdown-menu/dropdown-menu-radio-group.svelte b/frontend/src/lib/components/ui/dropdown-menu/dropdown-menu-radio-group.svelte
index 189aef40e..8a7efb4fd 100644
--- a/frontend/src/lib/components/ui/dropdown-menu/dropdown-menu-radio-group.svelte
+++ b/frontend/src/lib/components/ui/dropdown-menu/dropdown-menu-radio-group.svelte
@@ -1,16 +1,7 @@
<script lang="ts">
- import { DropdownMenu as DropdownMenuPrimitive } from "bits-ui";
+ import { DropdownMenu as DropdownMenuPrimitive } from 'bits-ui';
- let {
- ref = $bindable(null),
- value = $bindable(),
- ...restProps
- }: DropdownMenuPrimitive.RadioGroupProps = $props();
+ let { ref = $bindable(null), value = $bindable(), ...restProps }: DropdownMenuPrimitive.RadioGroupProps = $props();
</script>
-<DropdownMenuPrimitive.RadioGroup
- bind:ref
- bind:value
- data-slot="dropdown-menu-radio-group"
- {...restProps}
-/>
+<DropdownMenuPrimitive.RadioGroup bind:ref bind:value data-slot="dropdown-menu-radio-group" {...restProps} />
diff --git a/frontend/src/lib/components/ui/dropdown-menu/dropdown-menu-radio-item.svelte b/frontend/src/lib/components/ui/dropdown-menu/dropdown-menu-radio-item.svelte
index 513170aa3..3c6330a21 100644
--- a/frontend/src/lib/components/ui/dropdown-menu/dropdown-menu-radio-item.svelte
+++ b/frontend/src/lib/components/ui/dropdown-menu/dropdown-menu-radio-item.svelte
@@ -1,7 +1,7 @@
<script lang="ts">
- import { DropdownMenu as DropdownMenuPrimitive } from "bits-ui";
- import CircleIcon from "@lucide/svelte/icons/circle";
- import { cn, type WithoutChild } from "$lib/utils.js";
+ import { DropdownMenu as DropdownMenuPrimitive } from 'bits-ui';
+ import CircleIcon from '@lucide/svelte/icons/circle';
+ import { cn, type WithoutChild } from '$lib/utils.js';
let {
ref = $bindable(null),
@@ -15,7 +15,7 @@
bind:ref
data-slot="dropdown-menu-radio-item"
class={cn(
- "focus:bg-accent focus:text-accent-foreground outline-hidden relative flex cursor-default select-none items-center gap-2 rounded-sm py-1.5 pl-8 pr-2 text-sm data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",
+ "focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
className
)}
{...restProps}
diff --git a/frontend/src/lib/components/ui/dropdown-menu/dropdown-menu-separator.svelte b/frontend/src/lib/components/ui/dropdown-menu/dropdown-menu-separator.svelte
index 90f1b6f10..42bf9e68b 100644
--- a/frontend/src/lib/components/ui/dropdown-menu/dropdown-menu-separator.svelte
+++ b/frontend/src/lib/components/ui/dropdown-menu/dropdown-menu-separator.svelte
@@ -1,17 +1,13 @@
<script lang="ts">
- import { DropdownMenu as DropdownMenuPrimitive } from "bits-ui";
- import { cn } from "$lib/utils.js";
+ import { DropdownMenu as DropdownMenuPrimitive } from 'bits-ui';
+ import { cn } from '$lib/utils.js';
- let {
- ref = $bindable(null),
- class: className,
- ...restProps
- }: DropdownMenuPrimitive.SeparatorProps = $props();
+ let { ref = $bindable(null), class: className, ...restProps }: DropdownMenuPrimitive.SeparatorProps = $props();
</script>
<DropdownMenuPrimitive.Separator
bind:ref
data-slot="dropdown-menu-separator"
- class={cn("bg-border -mx-1 my-1 h-px", className)}
+ class={cn('bg-border -mx-1 my-1 h-px', className)}
{...restProps}
/>
diff --git a/frontend/src/lib/components/ui/dropdown-menu/dropdown-menu-shortcut.svelte b/frontend/src/lib/components/ui/dropdown-menu/dropdown-menu-shortcut.svelte
index 697494778..dbe6e2076 100644
--- a/frontend/src/lib/components/ui/dropdown-menu/dropdown-menu-shortcut.svelte
+++ b/frontend/src/lib/components/ui/dropdown-menu/dropdown-menu-shortcut.svelte
@@ -1,6 +1,6 @@
<script lang="ts">
- import type { HTMLAttributes } from "svelte/elements";
- import { cn, type WithElementRef } from "$lib/utils.js";
+ import type { HTMLAttributes } from 'svelte/elements';
+ import { cn, type WithElementRef } from '$lib/utils.js';
let {
ref = $bindable(null),
@@ -13,7 +13,7 @@
<span
bind:this={ref}
data-slot="dropdown-menu-shortcut"
- class={cn("text-muted-foreground ml-auto text-xs tracking-widest", className)}
+ class={cn('text-muted-foreground ml-auto text-xs tracking-widest', className)}
{...restProps}
>
{@render children?.()}
diff --git a/frontend/src/lib/components/ui/dropdown-menu/dropdown-menu-sub-content.svelte b/frontend/src/lib/components/ui/dropdown-menu/dropdown-menu-sub-content.svelte
index 30deb9eb9..4350c9529 100644
--- a/frontend/src/lib/components/ui/dropdown-menu/dropdown-menu-sub-content.svelte
+++ b/frontend/src/lib/components/ui/dropdown-menu/dropdown-menu-sub-content.svelte
@@ -1,19 +1,15 @@
<script lang="ts">
- import { DropdownMenu as DropdownMenuPrimitive } from "bits-ui";
- import { cn } from "$lib/utils.js";
+ import { DropdownMenu as DropdownMenuPrimitive } from 'bits-ui';
+ import { cn } from '$lib/utils.js';
- let {
- ref = $bindable(null),
- class: className,
- ...restProps
- }: DropdownMenuPrimitive.SubContentProps = $props();
+ let { ref = $bindable(null), class: className, ...restProps }: DropdownMenuPrimitive.SubContentProps = $props();
</script>
<DropdownMenuPrimitive.SubContent
bind:ref
data-slot="dropdown-menu-sub-content"
class={cn(
- "bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-(--radix-dropdown-menu-content-transform-origin) z-50 min-w-[8rem] overflow-hidden rounded-md border p-1 shadow-lg",
+ 'bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg',
className
)}
{...restProps}
diff --git a/frontend/src/lib/components/ui/dropdown-menu/dropdown-menu-sub-trigger.svelte b/frontend/src/lib/components/ui/dropdown-menu/dropdown-menu-sub-trigger.svelte
index f9b286a29..e37ac1ad0 100644
--- a/frontend/src/lib/components/ui/dropdown-menu/dropdown-menu-sub-trigger.svelte
+++ b/frontend/src/lib/components/ui/dropdown-menu/dropdown-menu-sub-trigger.svelte
@@ -1,7 +1,7 @@
<script lang="ts">
- import { DropdownMenu as DropdownMenuPrimitive } from "bits-ui";
- import ChevronRightIcon from "@lucide/svelte/icons/chevron-right";
- import { cn } from "$lib/utils.js";
+ import { DropdownMenu as DropdownMenuPrimitive } from 'bits-ui';
+ import ChevronRightIcon from '@lucide/svelte/icons/chevron-right';
+ import { cn } from '$lib/utils.js';
let {
ref = $bindable(null),
@@ -19,7 +19,7 @@
data-slot="dropdown-menu-sub-trigger"
data-inset={inset}
class={cn(
- "data-highlighted:bg-accent data-highlighted:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground outline-hidden [&_svg:not([class*='text-'])]:text-muted-foreground flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm data-[disabled]:pointer-events-none data-[inset]:pl-8 data-[disabled]:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",
+ "data-highlighted:bg-accent data-highlighted:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
className
)}
{...restProps}
diff --git a/frontend/src/lib/components/ui/dropdown-menu/dropdown-menu-trigger.svelte b/frontend/src/lib/components/ui/dropdown-menu/dropdown-menu-trigger.svelte
index cb053444d..032b64531 100644
--- a/frontend/src/lib/components/ui/dropdown-menu/dropdown-menu-trigger.svelte
+++ b/frontend/src/lib/components/ui/dropdown-menu/dropdown-menu-trigger.svelte
@@ -1,5 +1,5 @@
<script lang="ts">
- import { DropdownMenu as DropdownMenuPrimitive } from "bits-ui";
+ import { DropdownMenu as DropdownMenuPrimitive } from 'bits-ui';
let { ref = $bindable(null), ...restProps }: DropdownMenuPrimitive.TriggerProps = $props();
</script>
diff --git a/frontend/src/lib/components/ui/dropdown-menu/index.ts b/frontend/src/lib/components/ui/dropdown-menu/index.ts
index 1cf9f701c..aeb398e06 100644
--- a/frontend/src/lib/components/ui/dropdown-menu/index.ts
+++ b/frontend/src/lib/components/ui/dropdown-menu/index.ts
@@ -1,17 +1,17 @@
-import { DropdownMenu as DropdownMenuPrimitive } from "bits-ui";
-import CheckboxItem from "./dropdown-menu-checkbox-item.svelte";
-import Content from "./dropdown-menu-content.svelte";
-import Group from "./dropdown-menu-group.svelte";
-import Item from "./dropdown-menu-item.svelte";
-import Label from "./dropdown-menu-label.svelte";
-import RadioGroup from "./dropdown-menu-radio-group.svelte";
-import RadioItem from "./dropdown-menu-radio-item.svelte";
-import Separator from "./dropdown-menu-separator.svelte";
-import Shortcut from "./dropdown-menu-shortcut.svelte";
-import Trigger from "./dropdown-menu-trigger.svelte";
-import SubContent from "./dropdown-menu-sub-content.svelte";
-import SubTrigger from "./dropdown-menu-sub-trigger.svelte";
-import GroupHeading from "./dropdown-menu-group-heading.svelte";
+import { DropdownMenu as DropdownMenuPrimitive } from 'bits-ui';
+import CheckboxItem from './dropdown-menu-checkbox-item.svelte';
+import Content from './dropdown-menu-content.svelte';
+import Group from './dropdown-menu-group.svelte';
+import Item from './dropdown-menu-item.svelte';
+import Label from './dropdown-menu-label.svelte';
+import RadioGroup from './dropdown-menu-radio-group.svelte';
+import RadioItem from './dropdown-menu-radio-item.svelte';
+import Separator from './dropdown-menu-separator.svelte';
+import Shortcut from './dropdown-menu-shortcut.svelte';
+import Trigger from './dropdown-menu-trigger.svelte';
+import SubContent from './dropdown-menu-sub-content.svelte';
+import SubTrigger from './dropdown-menu-sub-trigger.svelte';
+import GroupHeading from './dropdown-menu-group-heading.svelte';
const Sub = DropdownMenuPrimitive.Sub;
const Root = DropdownMenuPrimitive.Root;
@@ -45,5 +45,5 @@ export {
Sub,
SubContent,
SubTrigger,
- Trigger,
+ Trigger
};
diff --git a/frontend/src/lib/components/ui/field-set/field-set-title.svelte b/frontend/src/lib/components/ui/field-set/field-set-title.svelte
index a4c729798..91018211f 100644
--- a/frontend/src/lib/components/ui/field-set/field-set-title.svelte
+++ b/frontend/src/lib/components/ui/field-set/field-set-title.svelte
@@ -10,7 +10,7 @@
role="heading"
aria-level={level}
bind:this={ref}
- class={cn('text-2xl font-semibold leading-none tracking-tight', className)}
+ class={cn('text-2xl leading-none font-semibold tracking-tight', className)}
{...rest}
>
{@render children?.()}
diff --git a/frontend/src/lib/components/ui/form/form-button.svelte b/frontend/src/lib/components/ui/form/form-button.svelte
index a9ffd02ec..44dde3975 100644
--- a/frontend/src/lib/components/ui/form/form-button.svelte
+++ b/frontend/src/lib/components/ui/form/form-button.svelte
@@ -11,15 +11,7 @@
children?: import('svelte').Snippet;
}
- let {
- ref = $bindable(null),
- variant,
- size,
- disabled,
- class: className,
- onclick,
- children
- }: Props = $props();
+ let { ref = $bindable(null), variant, size, disabled, class: className, onclick, children }: Props = $props();
</script>
<Button bind:ref type="submit" {variant} {size} {disabled} class={className} {onclick}>
diff --git a/frontend/src/lib/components/ui/form/form-element-field.svelte b/frontend/src/lib/components/ui/form/form-element-field.svelte
index 1c33df665..851497d17 100644
--- a/frontend/src/lib/components/ui/form/form-element-field.svelte
+++ b/frontend/src/lib/components/ui/form/form-element-field.svelte
@@ -10,7 +10,14 @@
import type { WithElementRef, WithoutChildren } from 'bits-ui';
import { cn } from '$lib/utils.js';
- let { ref = $bindable(null), class: className, form, name, children: childrenProp, ...restProps }: WithoutChildren<WithElementRef<HTMLAttributes<HTMLDivElement>>> & FormPrimitive.ElementFieldProps<T, U> = $props();
+ let {
+ ref = $bindable(null),
+ class: className,
+ form,
+ name,
+ children: childrenProp,
+ ...restProps
+ }: WithoutChildren<WithElementRef<HTMLAttributes<HTMLDivElement>>> & FormPrimitive.ElementFieldProps<T, U> = $props();
</script>
<FormPrimitive.ElementField {form} {name}>
diff --git a/frontend/src/lib/components/ui/form/form-field.svelte b/frontend/src/lib/components/ui/form/form-field.svelte
index af9470df6..8891fb4b6 100644
--- a/frontend/src/lib/components/ui/form/form-field.svelte
+++ b/frontend/src/lib/components/ui/form/form-field.svelte
@@ -10,7 +10,14 @@
import { cn } from '$lib/utils.js';
import type { HTMLAttributes } from 'svelte/elements';
- let { ref = $bindable(null), class: className, form, name, children: childrenProp, ...restProps }: FormPrimitive.FieldProps<T, U> & WithoutChildren<WithElementRef<HTMLAttributes<HTMLDivElement>>> = $props();
+ let {
+ ref = $bindable(null),
+ class: className,
+ form,
+ name,
+ children: childrenProp,
+ ...restProps
+ }: FormPrimitive.FieldProps<T, U> & WithoutChildren<WithElementRef<HTMLAttributes<HTMLDivElement>>> = $props();
</script>
<FormPrimitive.Field {form} {name}>
diff --git a/frontend/src/lib/components/ui/form/form-fieldset.svelte b/frontend/src/lib/components/ui/form/form-fieldset.svelte
index 568aeefc3..02d0ab5ac 100644
--- a/frontend/src/lib/components/ui/form/form-fieldset.svelte
+++ b/frontend/src/lib/components/ui/form/form-fieldset.svelte
@@ -9,7 +9,13 @@
import type { WithoutChild } from 'bits-ui';
import { cn } from '$lib/utils.js';
- let { ref = $bindable(null), class: className, form, name, ...restProps }: WithoutChild<FormPrimitive.FieldsetProps<T, U>> = $props();
+ let {
+ ref = $bindable(null),
+ class: className,
+ form,
+ name,
+ ...restProps
+ }: WithoutChild<FormPrimitive.FieldsetProps<T, U>> = $props();
</script>
<FormPrimitive.Fieldset bind:ref {form} {name} class={cn('space-y-2', className)} {...restProps} />
diff --git a/frontend/src/lib/components/ui/form/form-legend.svelte b/frontend/src/lib/components/ui/form/form-legend.svelte
index fd7444241..18cce6516 100644
--- a/frontend/src/lib/components/ui/form/form-legend.svelte
+++ b/frontend/src/lib/components/ui/form/form-legend.svelte
@@ -6,4 +6,8 @@
let { ref = $bindable(null), class: className, ...restProps }: WithoutChild<FormPrimitive.LegendProps> = $props();
</script>
-<FormPrimitive.Legend bind:ref class={cn('data-fs-error:text-destructive text-sm leading-none font-medium', className)} {...restProps} />
+<FormPrimitive.Legend
+ bind:ref
+ class={cn('data-fs-error:text-destructive text-sm leading-none font-medium', className)}
+ {...restProps}
+/>
diff --git a/frontend/src/lib/components/ui/input/input.svelte b/frontend/src/lib/components/ui/input/input.svelte
index 18fae946c..5d29b1dbc 100644
--- a/frontend/src/lib/components/ui/input/input.svelte
+++ b/frontend/src/lib/components/ui/input/input.svelte
@@ -4,7 +4,9 @@
type InputType = Exclude<HTMLInputTypeAttribute, 'file'>;
- type Props = WithElementRef<Omit<HTMLInputAttributes, 'type'> & ({ type: 'file'; files?: FileList } | { type?: InputType; files?: undefined })>;
+ type Props = WithElementRef<
+ Omit<HTMLInputAttributes, 'type'> & ({ type: 'file'; files?: FileList } | { type?: InputType; files?: undefined })
+ >;
let { ref = $bindable(null), value = $bindable(), type, files = $bindable(), class: className, ...restProps }: Props = $props();
</script>
diff --git a/frontend/src/lib/components/ui/label/label.svelte b/frontend/src/lib/components/ui/label/label.svelte
index a1a513484..d8dbf6d81 100644
--- a/frontend/src/lib/components/ui/label/label.svelte
+++ b/frontend/src/lib/components/ui/label/label.svelte
@@ -5,4 +5,8 @@
let { ref = $bindable(null), class: className, ...restProps }: LabelPrimitive.RootProps = $props();
</script>
-<LabelPrimitive.Root bind:ref class={cn('text-sm leading-none font-medium peer-disabled:cursor-not-allowed peer-disabled:opacity-70', className)} {...restProps} />
+<LabelPrimitive.Root
+ bind:ref
+ class={cn('text-sm leading-none font-medium peer-disabled:cursor-not-allowed peer-disabled:opacity-70', className)}
+ {...restProps}
+/>
diff --git a/frontend/src/lib/components/ui/meter/meter.svelte b/frontend/src/lib/components/ui/meter/meter.svelte
index e0d156d69..eded49553 100644
--- a/frontend/src/lib/components/ui/meter/meter.svelte
+++ b/frontend/src/lib/components/ui/meter/meter.svelte
@@ -54,13 +54,7 @@
</div>
{/if}
-<div
- class={cn(
- 'bg-secondary relative w-full overflow-hidden rounded-full',
- sizeStyles[size],
- className
- )}
->
+<div class={cn('bg-secondary relative w-full overflow-hidden rounded-full', sizeStyles[size], className)}>
<Meter.Root
aria-labelledby={label ? labelId : undefined}
aria-valuetext={valueLabel}
@@ -71,10 +65,7 @@
{...restProps}
>
<div
- class={cn(
- 'h-full rounded-full transition-all duration-300 ease-in-out',
- variantStyles[variant]
- )}
+ class={cn('h-full rounded-full transition-all duration-300 ease-in-out', variantStyles[variant])}
style="width: {percentage}%"
></div>
</Meter.Root>
diff --git a/frontend/src/lib/components/ui/pagination/pagination-content.svelte b/frontend/src/lib/components/ui/pagination/pagination-content.svelte
index e2a771ecc..62e5cca6e 100644
--- a/frontend/src/lib/components/ui/pagination/pagination-content.svelte
+++ b/frontend/src/lib/components/ui/pagination/pagination-content.svelte
@@ -3,7 +3,12 @@
import type { WithElementRef } from '$lib/utils.js';
import { cn } from '$lib/utils.js';
- let { ref = $bindable(null), class: className, children, ...restProps }: WithElementRef<HTMLAttributes<HTMLUListElement>> = $props();
+ let {
+ ref = $bindable(null),
+ class: className,
+ children,
+ ...restProps
+ }: WithElementRef<HTMLAttributes<HTMLUListElement>> = $props();
</script>
<ul bind:this={ref} class={cn('flex flex-row items-center gap-1', className)} {...restProps}>
diff --git a/frontend/src/lib/components/ui/pagination/pagination-ellipsis.svelte b/frontend/src/lib/components/ui/pagination/pagination-ellipsis.svelte
index 4a4af71c1..99663b85a 100644
--- a/frontend/src/lib/components/ui/pagination/pagination-ellipsis.svelte
+++ b/frontend/src/lib/components/ui/pagination/pagination-ellipsis.svelte
@@ -4,7 +4,11 @@
import type { HTMLAttributes } from 'svelte/elements';
import { cn } from '$lib/utils.js';
- let { ref = $bindable(null), class: className, ...restProps }: WithoutChildren<WithElementRef<HTMLAttributes<HTMLSpanElement>>> = $props();
+ let {
+ ref = $bindable(null),
+ class: className,
+ ...restProps
+ }: WithoutChildren<WithElementRef<HTMLAttributes<HTMLSpanElement>>> = $props();
</script>
<span bind:this={ref} aria-hidden="true" class={cn('flex size-9 items-center justify-center', className)} {...restProps}>
diff --git a/frontend/src/lib/components/ui/pagination/pagination.svelte b/frontend/src/lib/components/ui/pagination/pagination.svelte
index c0eda3e6c..dde9bd332 100644
--- a/frontend/src/lib/components/ui/pagination/pagination.svelte
+++ b/frontend/src/lib/components/ui/pagination/pagination.svelte
@@ -3,7 +3,23 @@
import { cn } from '$lib/utils.js';
- let { ref = $bindable(null), class: className, count = 0, perPage = 10, page = $bindable(1), siblingCount = 1, ...restProps }: PaginationPrimitive.RootProps = $props();
+ let {
+ ref = $bindable(null),
+ class: className,
+ count = 0,
+ perPage = 10,
+ page = $bindable(1),
+ siblingCount = 1,
+ ...restProps
+ }: PaginationPrimitive.RootProps = $props();
</script>
-<PaginationPrimitive.Root bind:ref class={cn('mx-auto flex w-full flex-col items-center', className)} {count} {perPage} {siblingCount} bind:page {...restProps} />
+<PaginationPrimitive.Root
+ bind:ref
+ class={cn('mx-auto flex w-full flex-col items-center', className)}
+ {count}
+ {perPage}
+ {siblingCount}
+ bind:page
+ {...restProps}
+/>
diff --git a/frontend/src/lib/components/ui/popover/index.ts b/frontend/src/lib/components/ui/popover/index.ts
index 9f30922f7..0dcc3ccb8 100644
--- a/frontend/src/lib/components/ui/popover/index.ts
+++ b/frontend/src/lib/components/ui/popover/index.ts
@@ -1,6 +1,6 @@
-import { Popover as PopoverPrimitive } from "bits-ui";
-import Content from "./popover-content.svelte";
-import Trigger from "./popover-trigger.svelte";
+import { Popover as PopoverPrimitive } from 'bits-ui';
+import Content from './popover-content.svelte';
+import Trigger from './popover-trigger.svelte';
const Root = PopoverPrimitive.Root;
const Close = PopoverPrimitive.Close;
@@ -13,5 +13,5 @@ export {
Root as Popover,
Content as PopoverContent,
Trigger as PopoverTrigger,
- Close as PopoverClose,
+ Close as PopoverClose
};
diff --git a/frontend/src/lib/components/ui/popover/popover-content.svelte b/frontend/src/lib/components/ui/popover/popover-content.svelte
index 701cdc805..b2293b1fb 100644
--- a/frontend/src/lib/components/ui/popover/popover-content.svelte
+++ b/frontend/src/lib/components/ui/popover/popover-content.svelte
@@ -22,7 +22,7 @@
{sideOffset}
{align}
class={cn(
- 'bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-(--bits-popover-content-transform-origin) outline-hidden z-50 w-72 rounded-md border p-4 shadow-md',
+ 'bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--bits-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden',
className
)}
{...restProps}
diff --git a/frontend/src/lib/components/ui/popover/popover-trigger.svelte b/frontend/src/lib/components/ui/popover/popover-trigger.svelte
index 586323c71..4d759159f 100644
--- a/frontend/src/lib/components/ui/popover/popover-trigger.svelte
+++ b/frontend/src/lib/components/ui/popover/popover-trigger.svelte
@@ -1,17 +1,8 @@
<script lang="ts">
- import { cn } from "$lib/utils.js";
- import { Popover as PopoverPrimitive } from "bits-ui";
+ import { cn } from '$lib/utils.js';
+ import { Popover as PopoverPrimitive } from 'bits-ui';
- let {
- ref = $bindable(null),
- class: className,
- ...restProps
- }: PopoverPrimitive.TriggerProps = $props();
+ let { ref = $bindable(null), class: className, ...restProps }: PopoverPrimitive.TriggerProps = $props();
</script>
-<PopoverPrimitive.Trigger
- bind:ref
- data-slot="popover-trigger"
- class={cn("", className)}
- {...restProps}
-/>
+<PopoverPrimitive.Trigger bind:ref data-slot="popover-trigger" class={cn('', className)} {...restProps} />
diff --git a/frontend/src/lib/components/ui/progress/progress.svelte b/frontend/src/lib/components/ui/progress/progress.svelte
index 79303786a..9440050d1 100644
--- a/frontend/src/lib/components/ui/progress/progress.svelte
+++ b/frontend/src/lib/components/ui/progress/progress.svelte
@@ -2,9 +2,24 @@
import { Progress as ProgressPrimitive, type WithoutChildrenOrChild } from 'bits-ui';
import { cn } from '$lib/utils.js';
- let { ref = $bindable(null), class: className, max = 100, value, ...restProps }: WithoutChildrenOrChild<ProgressPrimitive.RootProps> = $props();
+ let {
+ ref = $bindable(null),
+ class: className,
+ max = 100,
+ value,
+ ...restProps
+ }: WithoutChildrenOrChild<ProgressPrimitive.RootProps> = $props();
</script>
-<ProgressPrimitive.Root bind:ref class={cn('bg-secondary relative h-4 w-full overflow-hidden rounded-full', className)} {value} {max} {...restProps}>
- <div class="bg-primary h-full w-full flex-1 transition-all" style={`transform: translateX(-${100 - (100 * (value ?? 0)) / (max ?? 1)}%)`}></div>
+<ProgressPrimitive.Root
+ bind:ref
+ class={cn('bg-secondary relative h-4 w-full overflow-hidden rounded-full', className)}
+ {value}
+ {max}
+ {...restProps}
+>
+ <div
+ class="bg-primary h-full w-full flex-1 transition-all"
+ style={`transform: translateX(-${100 - (100 * (value ?? 0)) / (max ?? 1)}%)`}
+ ></div>
</ProgressPrimitive.Root>
diff --git a/frontend/src/lib/components/ui/radio-group/radio-group-item.svelte b/frontend/src/lib/components/ui/radio-group/radio-group-item.svelte
index 65ac11420..436dfbc0e 100644
--- a/frontend/src/lib/components/ui/radio-group/radio-group-item.svelte
+++ b/frontend/src/lib/components/ui/radio-group/radio-group-item.svelte
@@ -8,7 +8,10 @@
<RadioGroupPrimitive.Item
bind:ref
- class={cn('border-primary text-primary ring-offset-background focus-visible:ring-ring aspect-square size-4 rounded-full border focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50', className)}
+ class={cn(
+ 'border-primary text-primary ring-offset-background focus-visible:ring-ring aspect-square size-4 rounded-full border focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50',
+ className
+ )}
{...restProps}
>
{#snippet children({ checked })}
diff --git a/frontend/src/lib/components/ui/resizable/resizable-pane-group.svelte b/frontend/src/lib/components/ui/resizable/resizable-pane-group.svelte
index 40c49e99e..c706d3299 100644
--- a/frontend/src/lib/components/ui/resizable/resizable-pane-group.svelte
+++ b/frontend/src/lib/components/ui/resizable/resizable-pane-group.svelte
@@ -12,4 +12,9 @@
} = $props();
</script>
-<ResizablePrimitive.PaneGroup bind:this={paneGroup} data-slot="resizable-pane-group" class={cn('flex h-full w-full data-[direction=vertical]:flex-col', className)} {...restProps} />
+<ResizablePrimitive.PaneGroup
+ bind:this={paneGroup}
+ data-slot="resizable-pane-group"
+ class={cn('flex h-full w-full data-[direction=vertical]:flex-col', className)}
+ {...restProps}
+/>
diff --git a/frontend/src/lib/components/ui/scroll-area/index.ts b/frontend/src/lib/components/ui/scroll-area/index.ts
index e86a25b21..d5468067d 100644
--- a/frontend/src/lib/components/ui/scroll-area/index.ts
+++ b/frontend/src/lib/components/ui/scroll-area/index.ts
@@ -1,10 +1,10 @@
-import Scrollbar from "./scroll-area-scrollbar.svelte";
-import Root from "./scroll-area.svelte";
+import Scrollbar from './scroll-area-scrollbar.svelte';
+import Root from './scroll-area.svelte';
export {
Root,
Scrollbar,
//,
Root as ScrollArea,
- Scrollbar as ScrollAreaScrollbar,
+ Scrollbar as ScrollAreaScrollbar
};
diff --git a/frontend/src/lib/components/ui/scroll-area/scroll-area-scrollbar.svelte b/frontend/src/lib/components/ui/scroll-area/scroll-area-scrollbar.svelte
index 412744467..e5a913972 100644
--- a/frontend/src/lib/components/ui/scroll-area/scroll-area-scrollbar.svelte
+++ b/frontend/src/lib/components/ui/scroll-area/scroll-area-scrollbar.svelte
@@ -1,11 +1,11 @@
<script lang="ts">
- import { ScrollArea as ScrollAreaPrimitive } from "bits-ui";
- import { cn, type WithoutChild } from "$lib/utils.js";
+ import { ScrollArea as ScrollAreaPrimitive } from 'bits-ui';
+ import { cn, type WithoutChild } from '$lib/utils.js';
let {
ref = $bindable(null),
class: className,
- orientation = "vertical",
+ orientation = 'vertical',
children,
...restProps
}: WithoutChild<ScrollAreaPrimitive.ScrollbarProps> = $props();
@@ -16,16 +16,13 @@
data-slot="scroll-area-scrollbar"
{orientation}
class={cn(
- "flex touch-none select-none p-px transition-colors",
- orientation === "vertical" && "h-full w-2.5 border-l border-l-transparent",
- orientation === "horizontal" && "h-2.5 flex-col border-t border-t-transparent",
+ 'flex touch-none p-px transition-colors select-none',
+ orientation === 'vertical' && 'h-full w-2.5 border-l border-l-transparent',
+ orientation === 'horizontal' && 'h-2.5 flex-col border-t border-t-transparent',
className
)}
{...restProps}
>
{@render children?.()}
- <ScrollAreaPrimitive.Thumb
- data-slot="scroll-area-thumb"
- class="bg-border relative flex-1 rounded-full"
- />
+ <ScrollAreaPrimitive.Thumb data-slot="scroll-area-thumb" class="bg-border relative flex-1 rounded-full" />
</ScrollAreaPrimitive.Scrollbar>
diff --git a/frontend/src/lib/components/ui/scroll-area/scroll-area.svelte b/frontend/src/lib/components/ui/scroll-area/scroll-area.svelte
index 38a1847f5..b96f2a9dc 100644
--- a/frontend/src/lib/components/ui/scroll-area/scroll-area.svelte
+++ b/frontend/src/lib/components/ui/scroll-area/scroll-area.svelte
@@ -1,39 +1,34 @@
<script lang="ts">
- import { ScrollArea as ScrollAreaPrimitive } from "bits-ui";
- import { Scrollbar } from "./index.js";
- import { cn, type WithoutChild } from "$lib/utils.js";
+ import { ScrollArea as ScrollAreaPrimitive } from 'bits-ui';
+ import { Scrollbar } from './index.js';
+ import { cn, type WithoutChild } from '$lib/utils.js';
let {
ref = $bindable(null),
class: className,
- orientation = "vertical",
- scrollbarXClasses = "",
- scrollbarYClasses = "",
+ orientation = 'vertical',
+ scrollbarXClasses = '',
+ scrollbarYClasses = '',
children,
...restProps
}: WithoutChild<ScrollAreaPrimitive.RootProps> & {
- orientation?: "vertical" | "horizontal" | "both" | undefined;
+ orientation?: 'vertical' | 'horizontal' | 'both' | undefined;
scrollbarXClasses?: string | undefined;
scrollbarYClasses?: string | undefined;
} = $props();
</script>
-<ScrollAreaPrimitive.Root
- bind:ref
- data-slot="scroll-area"
- class={cn("relative", className)}
- {...restProps}
->
+<ScrollAreaPrimitive.Root bind:ref data-slot="scroll-area" class={cn('relative', className)} {...restProps}>
<ScrollAreaPrimitive.Viewport
data-slot="scroll-area-viewport"
- class="ring-ring/10 dark:ring-ring/20 dark:outline-ring/40 outline-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] focus-visible:outline-1 focus-visible:ring-4"
+ class="ring-ring/10 dark:ring-ring/20 dark:outline-ring/40 outline-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] focus-visible:ring-4 focus-visible:outline-1"
>
{@render children?.()}
</ScrollAreaPrimitive.Viewport>
- {#if orientation === "vertical" || orientation === "both"}
+ {#if orientation === 'vertical' || orientation === 'both'}
<Scrollbar orientation="vertical" class={scrollbarYClasses} />
{/if}
- {#if orientation === "horizontal" || orientation === "both"}
+ {#if orientation === 'horizontal' || orientation === 'both'}
<Scrollbar orientation="horizontal" class={scrollbarXClasses} />
{/if}
<ScrollAreaPrimitive.Corner />
diff --git a/frontend/src/lib/components/ui/select/index.ts b/frontend/src/lib/components/ui/select/index.ts
index 9e8d3e903..bfa73d90e 100644
--- a/frontend/src/lib/components/ui/select/index.ts
+++ b/frontend/src/lib/components/ui/select/index.ts
@@ -1,14 +1,14 @@
-import { Select as SelectPrimitive } from "bits-ui";
+import { Select as SelectPrimitive } from 'bits-ui';
-import Group from "./select-group.svelte";
-import Label from "./select-label.svelte";
-import Item from "./select-item.svelte";
-import Content from "./select-content.svelte";
-import Trigger from "./select-trigger.svelte";
-import Separator from "./select-separator.svelte";
-import ScrollDownButton from "./select-scroll-down-button.svelte";
-import ScrollUpButton from "./select-scroll-up-button.svelte";
-import GroupHeading from "./select-group-heading.svelte";
+import Group from './select-group.svelte';
+import Label from './select-label.svelte';
+import Item from './select-item.svelte';
+import Content from './select-content.svelte';
+import Trigger from './select-trigger.svelte';
+import Separator from './select-separator.svelte';
+import ScrollDownButton from './select-scroll-down-button.svelte';
+import ScrollUpButton from './select-scroll-up-button.svelte';
+import GroupHeading from './select-group-heading.svelte';
const Root = SelectPrimitive.Root;
@@ -33,5 +33,5 @@ export {
Separator as SelectSeparator,
ScrollDownButton as SelectScrollDownButton,
ScrollUpButton as SelectScrollUpButton,
- GroupHeading as SelectGroupHeading,
+ GroupHeading as SelectGroupHeading
};
diff --git a/frontend/src/lib/components/ui/select/select-content.svelte b/frontend/src/lib/components/ui/select/select-content.svelte
index dc16d65dd..0cad80acc 100644
--- a/frontend/src/lib/components/ui/select/select-content.svelte
+++ b/frontend/src/lib/components/ui/select/select-content.svelte
@@ -1,8 +1,8 @@
<script lang="ts">
- import { Select as SelectPrimitive } from "bits-ui";
- import SelectScrollUpButton from "./select-scroll-up-button.svelte";
- import SelectScrollDownButton from "./select-scroll-down-button.svelte";
- import { cn, type WithoutChild } from "$lib/utils.js";
+ import { Select as SelectPrimitive } from 'bits-ui';
+ import SelectScrollUpButton from './select-scroll-up-button.svelte';
+ import SelectScrollDownButton from './select-scroll-down-button.svelte';
+ import { cn, type WithoutChild } from '$lib/utils.js';
let {
ref = $bindable(null),
@@ -22,16 +22,14 @@
{sideOffset}
data-slot="select-content"
class={cn(
- "bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 max-h-(--bits-select-content-available-height) origin-(--bits-select-content-transform-origin) relative z-50 min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border shadow-md data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
+ 'bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--bits-select-content-available-height) min-w-[8rem] origin-(--bits-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1',
className
)}
{...restProps}
>
<SelectScrollUpButton />
<SelectPrimitive.Viewport
- class={cn(
- "h-(--bits-select-anchor-height) min-w-(--bits-select-anchor-width) w-full scroll-my-1 p-1"
- )}
+ class={cn('h-(--bits-select-anchor-height) w-full min-w-(--bits-select-anchor-width) scroll-my-1 p-1')}
>
{@render children?.()}
</SelectPrimitive.Viewport>
diff --git a/frontend/src/lib/components/ui/select/select-group-heading.svelte b/frontend/src/lib/components/ui/select/select-group-heading.svelte
index 1fab5f002..3ff70030e 100644
--- a/frontend/src/lib/components/ui/select/select-group-heading.svelte
+++ b/frontend/src/lib/components/ui/select/select-group-heading.svelte
@@ -1,7 +1,7 @@
<script lang="ts">
- import { Select as SelectPrimitive } from "bits-ui";
- import { cn } from "$lib/utils.js";
- import type { ComponentProps } from "svelte";
+ import { Select as SelectPrimitive } from 'bits-ui';
+ import { cn } from '$lib/utils.js';
+ import type { ComponentProps } from 'svelte';
let {
ref = $bindable(null),
@@ -14,7 +14,7 @@
<SelectPrimitive.GroupHeading
bind:ref
data-slot="select-group-heading"
- class={cn("text-muted-foreground px-2 py-1.5 text-xs", className)}
+ class={cn('text-muted-foreground px-2 py-1.5 text-xs', className)}
{...restProps}
>
{@render children?.()}
diff --git a/frontend/src/lib/components/ui/select/select-group.svelte b/frontend/src/lib/components/ui/select/select-group.svelte
index 5454fdb39..2520795d7 100644
--- a/frontend/src/lib/components/ui/select/select-group.svelte
+++ b/frontend/src/lib/components/ui/select/select-group.svelte
@@ -1,5 +1,5 @@
<script lang="ts">
- import { Select as SelectPrimitive } from "bits-ui";
+ import { Select as SelectPrimitive } from 'bits-ui';
let { ref = $bindable(null), ...restProps }: SelectPrimitive.GroupProps = $props();
</script>
diff --git a/frontend/src/lib/components/ui/select/select-item.svelte b/frontend/src/lib/components/ui/select/select-item.svelte
index 49dbbd7fa..06e48be38 100644
--- a/frontend/src/lib/components/ui/select/select-item.svelte
+++ b/frontend/src/lib/components/ui/select/select-item.svelte
@@ -1,7 +1,7 @@
<script lang="ts">
- import CheckIcon from "@lucide/svelte/icons/check";
- import { Select as SelectPrimitive } from "bits-ui";
- import { cn, type WithoutChild } from "$lib/utils.js";
+ import CheckIcon from '@lucide/svelte/icons/check';
+ import { Select as SelectPrimitive } from 'bits-ui';
+ import { cn, type WithoutChild } from '$lib/utils.js';
let {
ref = $bindable(null),
@@ -18,7 +18,7 @@
{value}
data-slot="select-item"
class={cn(
- "data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground outline-hidden *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2 relative flex w-full cursor-default select-none items-center gap-2 rounded-sm py-1.5 pl-2 pr-8 text-sm data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",
+ "data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",
className
)}
{...restProps}
diff --git a/frontend/src/lib/components/ui/select/select-label.svelte b/frontend/src/lib/components/ui/select/select-label.svelte
index 46960259f..b0a6b8354 100644
--- a/frontend/src/lib/components/ui/select/select-label.svelte
+++ b/frontend/src/lib/components/ui/select/select-label.svelte
@@ -1,6 +1,6 @@
<script lang="ts">
- 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),
@@ -10,11 +10,6 @@
}: WithElementRef<HTMLAttributes<HTMLDivElement>> & {} = $props();
</script>
-<div
- bind:this={ref}
- data-slot="select-label"
- class={cn("text-muted-foreground px-2 py-1.5 text-xs", className)}
- {...restProps}
->
+<div bind:this={ref} data-slot="select-label" class={cn('text-muted-foreground px-2 py-1.5 text-xs', className)} {...restProps}>
{@render children?.()}
</div>
diff --git a/frontend/src/lib/components/ui/select/select-scroll-down-button.svelte b/frontend/src/lib/components/ui/select/select-scroll-down-button.svelte
index 362920582..350214839 100644
--- a/frontend/src/lib/components/ui/select/select-scroll-down-button.svelte
+++ b/frontend/src/lib/components/ui/select/select-scroll-down-button.svelte
@@ -1,7 +1,7 @@
<script lang="ts">
- import ChevronDownIcon from "@lucide/svelte/icons/chevron-down";
- import { Select as SelectPrimitive } from "bits-ui";
- import { cn, type WithoutChildrenOrChild } from "$lib/utils.js";
+ import ChevronDownIcon from '@lucide/svelte/icons/chevron-down';
+ import { Select as SelectPrimitive } from 'bits-ui';
+ import { cn, type WithoutChildrenOrChild } from '$lib/utils.js';
let {
ref = $bindable(null),
@@ -13,7 +13,7 @@
<SelectPrimitive.ScrollDownButton
bind:ref
data-slot="select-scroll-down-button"
- class={cn("flex cursor-default items-center justify-center py-1", className)}
+ class={cn('flex cursor-default items-center justify-center py-1', className)}
{...restProps}
>
<ChevronDownIcon class="size-4" />
diff --git a/frontend/src/lib/components/ui/select/select-scroll-up-button.svelte b/frontend/src/lib/components/ui/select/select-scroll-up-button.svelte
index 1aa2300c9..3d35e04c3 100644
--- a/frontend/src/lib/components/ui/select/select-scroll-up-button.svelte
+++ b/frontend/src/lib/components/ui/select/select-scroll-up-button.svelte
@@ -1,7 +1,7 @@
<script lang="ts">
- import ChevronUpIcon from "@lucide/svelte/icons/chevron-up";
- import { Select as SelectPrimitive } from "bits-ui";
- import { cn, type WithoutChildrenOrChild } from "$lib/utils.js";
+ import ChevronUpIcon from '@lucide/svelte/icons/chevron-up';
+ import { Select as SelectPrimitive } from 'bits-ui';
+ import { cn, type WithoutChildrenOrChild } from '$lib/utils.js';
let {
ref = $bindable(null),
@@ -13,7 +13,7 @@
<SelectPrimitive.ScrollUpButton
bind:ref
data-slot="select-scroll-up-button"
- class={cn("flex cursor-default items-center justify-center py-1", className)}
+ class={cn('flex cursor-default items-center justify-center py-1', className)}
{...restProps}
>
<ChevronUpIcon class="size-4" />
diff --git a/frontend/src/lib/components/ui/select/select-separator.svelte b/frontend/src/lib/components/ui/select/select-separator.svelte
index 0eac3ebc5..299305dce 100644
--- a/frontend/src/lib/components/ui/select/select-separator.svelte
+++ b/frontend/src/lib/components/ui/select/select-separator.svelte
@@ -1,18 +1,14 @@
<script lang="ts">
- import type { Separator as SeparatorPrimitive } from "bits-ui";
- import { Separator } from "$lib/components/ui/separator/index.js";
- import { cn } from "$lib/utils.js";
+ import type { Separator as SeparatorPrimitive } from 'bits-ui';
+ import { Separator } from '$lib/components/ui/separator/index.js';
+ import { cn } from '$lib/utils.js';
- let {
- ref = $bindable(null),
- class: className,
- ...restProps
- }: SeparatorPrimitive.RootProps = $props();
+ let { ref = $bindable(null), class: className, ...restProps }: SeparatorPrimitive.RootProps = $props();
</script>
<Separator
bind:ref
data-slot="select-separator"
- class={cn("bg-border pointer-events-none -mx-1 my-1 h-px", className)}
+ class={cn('bg-border pointer-events-none -mx-1 my-1 h-px', className)}
{...restProps}
/>
diff --git a/frontend/src/lib/components/ui/select/select-trigger.svelte b/frontend/src/lib/components/ui/select/select-trigger.svelte
index d405187db..f14abe05c 100644
--- a/frontend/src/lib/components/ui/select/select-trigger.svelte
+++ b/frontend/src/lib/components/ui/select/select-trigger.svelte
@@ -1,16 +1,16 @@
<script lang="ts">
- import { Select as SelectPrimitive } from "bits-ui";
- import ChevronDownIcon from "@lucide/svelte/icons/chevron-down";
- import { cn, type WithoutChild } from "$lib/utils.js";
+ import { Select as SelectPrimitive } from 'bits-ui';
+ import ChevronDownIcon from '@lucide/svelte/icons/chevron-down';
+ import { cn, type WithoutChild } from '$lib/utils.js';
let {
ref = $bindable(null),
class: className,
children,
- size = "default",
+ size = 'default',
...restProps
}: WithoutChild<SelectPrimitive.TriggerProps> & {
- size?: "sm" | "default";
+ size?: 'sm' | 'default';
} = $props();
</script>
@@ -19,7 +19,7 @@
data-slot="select-trigger"
data-size={size}
class={cn(
- "border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 shadow-xs flex w-fit select-none items-center justify-between gap-2 whitespace-nowrap rounded-md border bg-transparent px-3 py-2 text-sm outline-none transition-[color,box-shadow] focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",
+ "border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none select-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
className
)}
{...restProps}
diff --git a/frontend/src/lib/components/ui/separator/index.ts b/frontend/src/lib/components/ui/separator/index.ts
index 82442d2cd..768efac96 100644
--- a/frontend/src/lib/components/ui/separator/index.ts
+++ b/frontend/src/lib/components/ui/separator/index.ts
@@ -1,7 +1,7 @@
-import Root from "./separator.svelte";
+import Root from './separator.svelte';
export {
Root,
//
- Root as Separator,
+ Root as Separator
};
diff --git a/frontend/src/lib/components/ui/separator/separator.svelte b/frontend/src/lib/components/ui/separator/separator.svelte
index 09d88f4a9..ae8321b6c 100644
--- a/frontend/src/lib/components/ui/separator/separator.svelte
+++ b/frontend/src/lib/components/ui/separator/separator.svelte
@@ -1,19 +1,15 @@
<script lang="ts">
- import { Separator as SeparatorPrimitive } from "bits-ui";
- import { cn } from "$lib/utils.js";
+ import { Separator as SeparatorPrimitive } from 'bits-ui';
+ import { cn } from '$lib/utils.js';
- let {
- ref = $bindable(null),
- class: className,
- ...restProps
- }: SeparatorPrimitive.RootProps = $props();
+ let { ref = $bindable(null), class: className, ...restProps }: SeparatorPrimitive.RootProps = $props();
</script>
<SeparatorPrimitive.Root
bind:ref
data-slot="separator"
class={cn(
- "bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=vertical]:h-full data-[orientation=horizontal]:w-full data-[orientation=vertical]:w-px",
+ 'bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px',
className
)}
{...restProps}
diff --git a/frontend/src/lib/components/ui/sheet/sheet-content.svelte b/frontend/src/lib/components/ui/sheet/sheet-content.svelte
index 7bc223569..ee8d8169e 100644
--- a/frontend/src/lib/components/ui/sheet/sheet-content.svelte
+++ b/frontend/src/lib/components/ui/sheet/sheet-content.svelte
@@ -5,9 +5,11 @@
variants: {
side: {
top: 'data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b',
- bottom: 'data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t',
+ bottom:
+ 'data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t',
left: 'data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm',
- right: 'data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm'
+ right:
+ 'data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm'
}
},
defaultVariants: {
@@ -43,7 +45,9 @@
<SheetOverlay />
<SheetPrimitive.Content bind:ref data-slot="sheet-content" class={cn(sheetVariants({ side }), className)} {...restProps}>
{@render children?.()}
- <SheetPrimitive.Close class="ring-offset-background focus-visible:ring-ring rounded-xs focus-visible:outline-hidden absolute right-4 top-4 opacity-70 transition-opacity hover:opacity-100 focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none">
+ <SheetPrimitive.Close
+ class="ring-offset-background focus-visible:ring-ring absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-hidden disabled:pointer-events-none"
+ >
<XIcon class="size-4" />
<span class="sr-only">Close</span>
</SheetPrimitive.Close>
diff --git a/frontend/src/lib/components/ui/sheet/sheet-description.svelte b/frontend/src/lib/components/ui/sheet/sheet-description.svelte
index a50501d24..accf95cc0 100644
--- a/frontend/src/lib/components/ui/sheet/sheet-description.svelte
+++ b/frontend/src/lib/components/ui/sheet/sheet-description.svelte
@@ -5,4 +5,9 @@
let { ref = $bindable(null), class: className, ...restProps }: SheetPrimitive.DescriptionProps = $props();
</script>
-<SheetPrimitive.Description bind:ref data-slot="sheet-description" class={cn('text-muted-foreground text-sm', className)} {...restProps} />
+<SheetPrimitive.Description
+ bind:ref
+ data-slot="sheet-description"
+ class={cn('text-muted-foreground text-sm', className)}
+ {...restProps}
+/>
diff --git a/frontend/src/lib/components/ui/sheet/sheet-footer.svelte b/frontend/src/lib/components/ui/sheet/sheet-footer.svelte
index 4830e4ea5..e7be1d0a5 100644
--- a/frontend/src/lib/components/ui/sheet/sheet-footer.svelte
+++ b/frontend/src/lib/components/ui/sheet/sheet-footer.svelte
@@ -2,7 +2,12 @@
import { cn, type WithElementRef } from '$lib/utils.js';
import type { HTMLAttributes } from 'svelte/elements';
- let { ref = $bindable(null), class: className, children, ...restProps }: WithElementRef<HTMLAttributes<HTMLDivElement>> = $props();
+ let {
+ ref = $bindable(null),
+ class: className,
+ children,
+ ...restProps
+ }: WithElementRef<HTMLAttributes<HTMLDivElement>> = $props();
</script>
<div bind:this={ref} data-slot="sheet-footer" class={cn('mt-auto flex flex-col gap-2 p-4', className)} {...restProps}>
diff --git a/frontend/src/lib/components/ui/sheet/sheet-header.svelte b/frontend/src/lib/components/ui/sheet/sheet-header.svelte
index 36fbe9278..0b17c3116 100644
--- a/frontend/src/lib/components/ui/sheet/sheet-header.svelte
+++ b/frontend/src/lib/components/ui/sheet/sheet-header.svelte
@@ -2,7 +2,12 @@
import type { HTMLAttributes } from 'svelte/elements';
import { cn, type WithElementRef } from '$lib/utils.js';
- let { ref = $bindable(null), class: className, children, ...restProps }: WithElementRef<HTMLAttributes<HTMLDivElement>> = $props();
+ let {
+ ref = $bindable(null),
+ class: className,
+ children,
+ ...restProps
+ }: WithElementRef<HTMLAttributes<HTMLDivElement>> = $props();
</script>
<div bind:this={ref} data-slot="sheet-header" class={cn('flex flex-col gap-1.5 p-4', className)} {...restProps}>
diff --git a/frontend/src/lib/components/ui/sheet/sheet-overlay.svelte b/frontend/src/lib/components/ui/sheet/sheet-overlay.svelte
index b67bae81d..adbff4de6 100644
--- a/frontend/src/lib/components/ui/sheet/sheet-overlay.svelte
+++ b/frontend/src/lib/components/ui/sheet/sheet-overlay.svelte
@@ -5,4 +5,12 @@
let { ref = $bindable(null), class: className, ...restProps }: SheetPrimitive.OverlayProps = $props();
</script>
-<SheetPrimitive.Overlay bind:ref data-slot="sheet-overlay" class={cn('data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50', className)} {...restProps} />
+<SheetPrimitive.Overlay
+ bind:ref
+ data-slot="sheet-overlay"
+ class={cn(
+ 'data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50',
+ className
+ )}
+ {...restProps}
+/>
diff --git a/frontend/src/lib/components/ui/sidebar/sidebar-content.svelte b/frontend/src/lib/components/ui/sidebar/sidebar-content.svelte
index 66a1e751a..0be73d234 100644
--- a/frontend/src/lib/components/ui/sidebar/sidebar-content.svelte
+++ b/frontend/src/lib/components/ui/sidebar/sidebar-content.svelte
@@ -5,6 +5,12 @@
let { ref = $bindable(null), class: className, children, ...restProps }: WithElementRef<HTMLAttributes<HTMLElement>> = $props();
</script>
-<div bind:this={ref} data-slot="sidebar-content" data-sidebar="content" class={cn('flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden', className)} {...restProps}>
+<div
+ bind:this={ref}
+ data-slot="sidebar-content"
+ data-sidebar="content"
+ class={cn('flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden', className)}
+ {...restProps}
+>
{@render children?.()}
</div>
diff --git a/frontend/src/lib/components/ui/sidebar/sidebar-footer.svelte b/frontend/src/lib/components/ui/sidebar/sidebar-footer.svelte
index 4b29494c6..2653e07f5 100644
--- a/frontend/src/lib/components/ui/sidebar/sidebar-footer.svelte
+++ b/frontend/src/lib/components/ui/sidebar/sidebar-footer.svelte
@@ -5,6 +5,12 @@
let { ref = $bindable(null), class: className, children, ...restProps }: WithElementRef<HTMLAttributes<HTMLElement>> = $props();
</script>
-<div bind:this={ref} data-slot="sidebar-footer" data-sidebar="footer" class={cn('flex flex-col gap-2 p-2', className)} {...restProps}>
+<div
+ bind:this={ref}
+ data-slot="sidebar-footer"
+ data-sidebar="footer"
+ class={cn('flex flex-col gap-2 p-2', className)}
+ {...restProps}
+>
{@render children?.()}
</div>
diff --git a/frontend/src/lib/components/ui/sidebar/sidebar-group-content.svelte b/frontend/src/lib/components/ui/sidebar/sidebar-group-content.svelte
index 9cc74a5f7..fafaceefe 100644
--- a/frontend/src/lib/components/ui/sidebar/sidebar-group-content.svelte
+++ b/frontend/src/lib/components/ui/sidebar/sidebar-group-content.svelte
@@ -2,9 +2,20 @@
import { cn, type WithElementRef } from '$lib/utils.js';
import type { HTMLAttributes } from 'svelte/elements';
- let { ref = $bindable(null), class: className, children, ...restProps }: WithElementRef<HTMLAttributes<HTMLDivElement>> = $props();
+ let {
+ ref = $bindable(null),
+ class: className,
+ children,
+ ...restProps
+ }: WithElementRef<HTMLAttributes<HTMLDivElement>> = $props();
</script>
-<div bind:this={ref} data-slot="sidebar-group-content" data-sidebar="group-content" class={cn('w-full text-sm', className)} {...restProps}>
+<div
+ bind:this={ref}
+ data-slot="sidebar-group-content"
+ data-sidebar="group-content"
+ class={cn('w-full text-sm', className)}
+ {...restProps}
+>
{@render children?.()}
</div>
diff --git a/frontend/src/lib/components/ui/sidebar/sidebar-group.svelte b/frontend/src/lib/components/ui/sidebar/sidebar-group.svelte
index 87340bde0..88173a549 100644
--- a/frontend/src/lib/components/ui/sidebar/sidebar-group.svelte
+++ b/frontend/src/lib/components/ui/sidebar/sidebar-group.svelte
@@ -5,6 +5,12 @@
let { ref = $bindable(null), class: className, children, ...restProps }: WithElementRef<HTMLAttributes<HTMLElement>> = $props();
</script>
-<div bind:this={ref} data-slot="sidebar-group" data-sidebar="group" class={cn('relative flex w-full min-w-0 flex-col p-2', className)} {...restProps}>
+<div
+ bind:this={ref}
+ data-slot="sidebar-group"
+ data-sidebar="group"
+ class={cn('relative flex w-full min-w-0 flex-col p-2', className)}
+ {...restProps}
+>
{@render children?.()}
</div>
diff --git a/frontend/src/lib/components/ui/sidebar/sidebar-header.svelte b/frontend/src/lib/components/ui/sidebar/sidebar-header.svelte
index c06115f98..8ac95ebcc 100644
--- a/frontend/src/lib/components/ui/sidebar/sidebar-header.svelte
+++ b/frontend/src/lib/components/ui/sidebar/sidebar-header.svelte
@@ -5,6 +5,12 @@
let { ref = $bindable(null), class: className, children, ...restProps }: WithElementRef<HTMLAttributes<HTMLElement>> = $props();
</script>
-<div bind:this={ref} data-slot="sidebar-header" data-sidebar="header" class={cn('flex flex-col gap-2 p-2', className)} {...restProps}>
+<div
+ bind:this={ref}
+ data-slot="sidebar-header"
+ data-sidebar="header"
+ class={cn('flex flex-col gap-2 p-2', className)}
+ {...restProps}
+>
{@render children?.()}
</div>
diff --git a/frontend/src/lib/components/ui/sidebar/sidebar-input.svelte b/frontend/src/lib/components/ui/sidebar/sidebar-input.svelte
index 7f466a352..cb4062d97 100644
--- a/frontend/src/lib/components/ui/sidebar/sidebar-input.svelte
+++ b/frontend/src/lib/components/ui/sidebar/sidebar-input.svelte
@@ -6,4 +6,11 @@
let { ref = $bindable(null), value = $bindable(''), class: className, ...restProps }: ComponentProps<typeof Input> = $props();
</script>
-<Input bind:ref bind:value data-slot="sidebar-input" data-sidebar="input" class={cn('bg-background h-8 w-full shadow-none', className)} {...restProps} />
+<Input
+ bind:ref
+ bind:value
+ data-slot="sidebar-input"
+ data-sidebar="input"
+ class={cn('bg-background h-8 w-full shadow-none', className)}
+ {...restProps}
+/>
diff --git a/frontend/src/lib/components/ui/sidebar/sidebar-inset.svelte b/frontend/src/lib/components/ui/sidebar/sidebar-inset.svelte
index 07a864304..1f39ff53c 100644
--- a/frontend/src/lib/components/ui/sidebar/sidebar-inset.svelte
+++ b/frontend/src/lib/components/ui/sidebar/sidebar-inset.svelte
@@ -8,7 +8,11 @@
<main
bind:this={ref}
data-slot="sidebar-inset"
- class={cn('bg-background relative flex w-full flex-1 flex-col', 'md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2', className)}
+ class={cn(
+ 'bg-background relative flex w-full flex-1 flex-col',
+ 'md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2',
+ className
+ )}
{...restProps}
>
{@render children?.()}
diff --git a/frontend/src/lib/components/ui/sidebar/sidebar-menu-action.svelte b/frontend/src/lib/components/ui/sidebar/sidebar-menu-action.svelte
index d5ca1fa10..3f178c8f5 100644
--- a/frontend/src/lib/components/ui/sidebar/sidebar-menu-action.svelte
+++ b/frontend/src/lib/components/ui/sidebar/sidebar-menu-action.svelte
@@ -24,7 +24,8 @@
'peer-data-[size=default]/menu-button:top-1.5',
'peer-data-[size=lg]/menu-button:top-2.5',
'group-data-[collapsible=icon]:hidden',
- showOnHover && 'peer-data-[active=true]/menu-button:text-sidebar-accent-foreground group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 md:opacity-0',
+ showOnHover &&
+ 'peer-data-[active=true]/menu-button:text-sidebar-accent-foreground group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 md:opacity-0',
className
),
'data-slot': 'sidebar-menu-action',
diff --git a/frontend/src/lib/components/ui/sidebar/sidebar-menu-button.svelte b/frontend/src/lib/components/ui/sidebar/sidebar-menu-button.svelte
index b5cb48518..c358b7082 100644
--- a/frontend/src/lib/components/ui/sidebar/sidebar-menu-button.svelte
+++ b/frontend/src/lib/components/ui/sidebar/sidebar-menu-button.svelte
@@ -6,7 +6,8 @@
variants: {
variant: {
default: 'hover:bg-sidebar-accent hover:text-sidebar-accent-foreground',
- outline: 'bg-background hover:bg-sidebar-accent hover:text-sidebar-accent-foreground shadow-[0_0_0_1px_var(--sidebar-border)] hover:shadow-[0_0_0_1px_var(--sidebar-accent)]'
+ outline:
+ 'bg-background hover:bg-sidebar-accent hover:text-sidebar-accent-foreground shadow-[0_0_0_1px_var(--sidebar-border)] hover:shadow-[0_0_0_1px_var(--sidebar-accent)]'
},
size: {
default: 'h-8 text-sm',
@@ -84,7 +85,12 @@
{@render Button({ props })}
{/snippet}
</Tooltip.Trigger>
- <Tooltip.Content side="right" align="center" hidden={sidebar.state !== 'collapsed' || sidebar.isMobile} {...tooltipContentProps}>
+ <Tooltip.Content
+ side="right"
+ align="center"
+ hidden={sidebar.state !== 'collapsed' || sidebar.isMobile}
+ {...tooltipContentProps}
+ >
{#if typeof tooltipContent === 'string'}
{tooltipContent}
{:else if tooltipContent}
diff --git a/frontend/src/lib/components/ui/sidebar/sidebar-menu-item.svelte b/frontend/src/lib/components/ui/sidebar/sidebar-menu-item.svelte
index f7e40bbcb..acd286066 100644
--- a/frontend/src/lib/components/ui/sidebar/sidebar-menu-item.svelte
+++ b/frontend/src/lib/components/ui/sidebar/sidebar-menu-item.svelte
@@ -2,9 +2,20 @@
import { cn, type WithElementRef } from '$lib/utils.js';
import type { HTMLAttributes } from 'svelte/elements';
- let { ref = $bindable(null), class: className, children, ...restProps }: WithElementRef<HTMLAttributes<HTMLLIElement>, HTMLLIElement> = $props();
+ let {
+ ref = $bindable(null),
+ class: className,
+ children,
+ ...restProps
+ }: WithElementRef<HTMLAttributes<HTMLLIElement>, HTMLLIElement> = $props();
</script>
-<li bind:this={ref} data-slot="sidebar-menu-item" data-sidebar="menu-item" class={cn('group/menu-item relative', className)} {...restProps}>
+<li
+ bind:this={ref}
+ data-slot="sidebar-menu-item"
+ data-sidebar="menu-item"
+ class={cn('group/menu-item relative', className)}
+ {...restProps}
+>
{@render children?.()}
</li>
diff --git a/frontend/src/lib/components/ui/sidebar/sidebar-menu-skeleton.svelte b/frontend/src/lib/components/ui/sidebar/sidebar-menu-skeleton.svelte
index 5caa40fce..50d362e7f 100644
--- a/frontend/src/lib/components/ui/sidebar/sidebar-menu-skeleton.svelte
+++ b/frontend/src/lib/components/ui/sidebar/sidebar-menu-skeleton.svelte
@@ -17,7 +17,13 @@
const width = `${Math.floor(Math.random() * 40) + 50}%`;
</script>
-<div bind:this={ref} data-slot="sidebar-menu-skeleton" data-sidebar="menu-skeleton" class={cn('flex h-8 items-center gap-2 rounded-md px-2', className)} {...restProps}>
+<div
+ bind:this={ref}
+ data-slot="sidebar-menu-skeleton"
+ data-sidebar="menu-skeleton"
+ class={cn('flex h-8 items-center gap-2 rounded-md px-2', className)}
+ {...restProps}
+>
{#if showIcon}
<Skeleton class="size-4 rounded-md" data-sidebar="menu-skeleton-icon" />
{/if}
diff --git a/frontend/src/lib/components/ui/sidebar/sidebar-menu-sub-item.svelte b/frontend/src/lib/components/ui/sidebar/sidebar-menu-sub-item.svelte
index eba55e3f8..4274f0e09 100644
--- a/frontend/src/lib/components/ui/sidebar/sidebar-menu-sub-item.svelte
+++ b/frontend/src/lib/components/ui/sidebar/sidebar-menu-sub-item.svelte
@@ -2,9 +2,20 @@
import { cn, type WithElementRef } from '$lib/utils.js';
import type { HTMLAttributes } from 'svelte/elements';
- let { ref = $bindable(null), children, class: className, ...restProps }: WithElementRef<HTMLAttributes<HTMLLIElement>> = $props();
+ let {
+ ref = $bindable(null),
+ children,
+ class: className,
+ ...restProps
+ }: WithElementRef<HTMLAttributes<HTMLLIElement>> = $props();
</script>
-<li bind:this={ref} data-slot="sidebar-menu-sub-item" data-sidebar="menu-sub-item" class={cn('group/menu-sub-item relative', className)} {...restProps}>
+<li
+ bind:this={ref}
+ data-slot="sidebar-menu-sub-item"
+ data-sidebar="menu-sub-item"
+ class={cn('group/menu-sub-item relative', className)}
+ {...restProps}
+>
{@render children?.()}
</li>
diff --git a/frontend/src/lib/components/ui/sidebar/sidebar-menu-sub.svelte b/frontend/src/lib/components/ui/sidebar/sidebar-menu-sub.svelte
index 042e520b5..620ea999c 100644
--- a/frontend/src/lib/components/ui/sidebar/sidebar-menu-sub.svelte
+++ b/frontend/src/lib/components/ui/sidebar/sidebar-menu-sub.svelte
@@ -2,9 +2,24 @@
import { cn, type WithElementRef } from '$lib/utils.js';
import type { HTMLAttributes } from 'svelte/elements';
- let { ref = $bindable(null), class: className, children, ...restProps }: WithElementRef<HTMLAttributes<HTMLUListElement>> = $props();
+ let {
+ ref = $bindable(null),
+ class: className,
+ children,
+ ...restProps
+ }: WithElementRef<HTMLAttributes<HTMLUListElement>> = $props();
</script>
-<ul bind:this={ref} data-slot="sidebar-menu-sub" data-sidebar="menu-sub" class={cn('border-sidebar-border mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l px-2.5 py-0.5', 'group-data-[collapsible=icon]:hidden', className)} {...restProps}>
+<ul
+ bind:this={ref}
+ data-slot="sidebar-menu-sub"
+ data-sidebar="menu-sub"
+ class={cn(
+ 'border-sidebar-border mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l px-2.5 py-0.5',
+ 'group-data-[collapsible=icon]:hidden',
+ className
+ )}
+ {...restProps}
+>
{@render children?.()}
</ul>
diff --git a/frontend/src/lib/components/ui/sidebar/sidebar-menu.svelte b/frontend/src/lib/components/ui/sidebar/sidebar-menu.svelte
index 8c6405237..094f0f07b 100644
--- a/frontend/src/lib/components/ui/sidebar/sidebar-menu.svelte
+++ b/frontend/src/lib/components/ui/sidebar/sidebar-menu.svelte
@@ -2,9 +2,20 @@
import { cn, type WithElementRef } from '$lib/utils.js';
import type { HTMLAttributes } from 'svelte/elements';
- let { ref = $bindable(null), class: className, children, ...restProps }: WithElementRef<HTMLAttributes<HTMLUListElement>, HTMLUListElement> = $props();
+ let {
+ ref = $bindable(null),
+ class: className,
+ children,
+ ...restProps
+ }: WithElementRef<HTMLAttributes<HTMLUListElement>, HTMLUListElement> = $props();
</script>
-<ul bind:this={ref} data-slot="sidebar-menu" data-sidebar="menu" class={cn('flex w-full min-w-0 flex-col gap-1', className)} {...restProps}>
+<ul
+ bind:this={ref}
+ data-slot="sidebar-menu"
+ data-sidebar="menu"
+ class={cn('flex w-full min-w-0 flex-col gap-1', className)}
+ {...restProps}
+>
{@render children?.()}
</ul>
diff --git a/frontend/src/lib/components/ui/sidebar/sidebar-provider.svelte b/frontend/src/lib/components/ui/sidebar/sidebar-provider.svelte
index 59bbae4ed..461f43774 100644
--- a/frontend/src/lib/components/ui/sidebar/sidebar-provider.svelte
+++ b/frontend/src/lib/components/ui/sidebar/sidebar-provider.svelte
@@ -33,7 +33,13 @@
<svelte:window onkeydown={sidebar.handleShortcutKeydown} />
<Tooltip.Provider delayDuration={0}>
- <div data-slot="sidebar-wrapper" style="--sidebar-width: {SIDEBAR_WIDTH}; --sidebar-width-icon: {SIDEBAR_WIDTH_ICON}; {style}" class={cn('group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full', className)} bind:this={ref} {...restProps}>
+ <div
+ data-slot="sidebar-wrapper"
+ style="--sidebar-width: {SIDEBAR_WIDTH}; --sidebar-width-icon: {SIDEBAR_WIDTH_ICON}; {style}"
+ class={cn('group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full', className)}
+ bind:this={ref}
+ {...restProps}
+ >
{@render children?.()}
</div>
</Tooltip.Provider>
diff --git a/frontend/src/lib/components/ui/sidebar/sidebar-rail.svelte b/frontend/src/lib/components/ui/sidebar/sidebar-rail.svelte
index 8297411a4..220f62e5b 100644
--- a/frontend/src/lib/components/ui/sidebar/sidebar-rail.svelte
+++ b/frontend/src/lib/components/ui/sidebar/sidebar-rail.svelte
@@ -3,7 +3,12 @@
import type { HTMLAttributes } from 'svelte/elements';
import { useSidebar } from './context.svelte.js';
- let { ref = $bindable(null), class: className, children, ...restProps }: WithElementRef<HTMLAttributes<HTMLButtonElement>, HTMLButtonElement> = $props();
+ let {
+ ref = $bindable(null),
+ class: className,
+ children,
+ ...restProps
+ }: WithElementRef<HTMLAttributes<HTMLButtonElement>, HTMLButtonElement> = $props();
const sidebar = useSidebar();
</script>
diff --git a/frontend/src/lib/components/ui/sidebar/sidebar-separator.svelte b/frontend/src/lib/components/ui/sidebar/sidebar-separator.svelte
index d51e89fa0..3519b20f3 100644
--- a/frontend/src/lib/components/ui/sidebar/sidebar-separator.svelte
+++ b/frontend/src/lib/components/ui/sidebar/sidebar-separator.svelte
@@ -6,4 +6,10 @@
let { ref = $bindable(null), class: className, ...restProps }: ComponentProps<typeof Separator> = $props();
</script>
-<Separator bind:ref data-slot="sidebar-separator" data-sidebar="separator" class={cn('bg-sidebar-border mx-2 w-auto', className)} {...restProps} />
+<Separator
+ bind:ref
+ data-slot="sidebar-separator"
+ data-sidebar="separator"
+ class={cn('bg-sidebar-border mx-2 w-auto', className)}
+ {...restProps}
+/>
diff --git a/frontend/src/lib/components/ui/sidebar/sidebar.svelte b/frontend/src/lib/components/ui/sidebar/sidebar.svelte
index 3a67584a1..909abeaa0 100644
--- a/frontend/src/lib/components/ui/sidebar/sidebar.svelte
+++ b/frontend/src/lib/components/ui/sidebar/sidebar.svelte
@@ -23,12 +23,23 @@
</script>
{#if collapsible === 'none'}
- <div class={cn('bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col', className)} bind:this={ref} {...restProps}>
+ <div
+ class={cn('bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col', className)}
+ bind:this={ref}
+ {...restProps}
+ >
{@render children?.()}
</div>
{:else if sidebar.isMobile}
<Sheet.Root bind:open={() => sidebar.openMobile, (v) => sidebar.setOpenMobile(v)} {...restProps}>
- <Sheet.Content data-sidebar="sidebar" data-slot="sidebar" data-mobile="true" class="bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden" style="--sidebar-width: {SIDEBAR_WIDTH_MOBILE};" {side}>
+ <Sheet.Content
+ data-sidebar="sidebar"
+ data-slot="sidebar"
+ data-mobile="true"
+ class="bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden"
+ style="--sidebar-width: {SIDEBAR_WIDTH_MOBILE};"
+ {side}
+ >
<Sheet.Header class="sr-only">
<Sheet.Title>Sidebar</Sheet.Title>
<Sheet.Description>Displays the mobile sidebar.</Sheet.Description>
@@ -39,7 +50,15 @@
</Sheet.Content>
</Sheet.Root>
{:else}
- <div bind:this={ref} class="text-sidebar-foreground group peer hidden md:block" data-state={sidebar.state} data-collapsible={sidebar.state === 'collapsed' ? collapsible : ''} data-variant={variant} data-side={side} data-slot="sidebar">
+ <div
+ bind:this={ref}
+ class="text-sidebar-foreground group peer hidden md:block"
+ data-state={sidebar.state}
+ data-collapsible={sidebar.state === 'collapsed' ? collapsible : ''}
+ data-variant={variant}
+ data-side={side}
+ data-slot="sidebar"
+ >
<!-- This is what handles the sidebar gap on desktop -->
<div
data-slot="sidebar-gap"
@@ -47,21 +66,31 @@
'relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear',
'group-data-[collapsible=offcanvas]:w-0',
'group-data-[side=right]:rotate-180',
- variant === 'floating' || variant === 'inset' ? 'group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]' : 'group-data-[collapsible=icon]:w-(--sidebar-width-icon)'
+ variant === 'floating' || variant === 'inset'
+ ? 'group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]'
+ : 'group-data-[collapsible=icon]:w-(--sidebar-width-icon)'
)}
></div>
<div
data-slot="sidebar-container"
class={cn(
'fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex',
- side === 'left' ? 'left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]' : 'right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]',
+ side === 'left'
+ ? 'left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]'
+ : 'right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]',
// Adjust the padding for floating and inset variants.
- variant === 'floating' || variant === 'inset' ? 'p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]' : 'group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l',
+ variant === 'floating' || variant === 'inset'
+ ? 'p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]'
+ : 'group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l',
className
)}
{...restProps}
>
- <div data-sidebar="sidebar" data-slot="sidebar-inner" class="bg-sidebar group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm">
+ <div
+ data-sidebar="sidebar"
+ data-slot="sidebar-inner"
+ class="bg-sidebar group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm"
+ >
{@render children?.()}
</div>
</div>
diff --git a/frontend/src/lib/components/ui/skeleton/skeleton.svelte b/frontend/src/lib/components/ui/skeleton/skeleton.svelte
index bf80ff70c..05e9ef0f8 100644
--- a/frontend/src/lib/components/ui/skeleton/skeleton.svelte
+++ b/frontend/src/lib/components/ui/skeleton/skeleton.svelte
@@ -2,7 +2,11 @@
import { cn, type WithElementRef, type WithoutChildren } from '$lib/utils.js';
import type { HTMLAttributes } from 'svelte/elements';
- let { ref = $bindable(null), class: className, ...restProps }: WithoutChildren<WithElementRef<HTMLAttributes<HTMLDivElement>>> = $props();
+ let {
+ ref = $bindable(null),
+ class: className,
+ ...restProps
+ }: WithoutChildren<WithElementRef<HTMLAttributes<HTMLDivElement>>> = $props();
</script>
<div bind:this={ref} data-slot="skeleton" class={cn('bg-accent animate-pulse rounded-md', className)} {...restProps}></div>
diff --git a/frontend/src/lib/components/ui/snippet/snippet.svelte b/frontend/src/lib/components/ui/snippet/snippet.svelte
index 04b5f405f..018c66a7a 100644
--- a/frontend/src/lib/components/ui/snippet/snippet.svelte
+++ b/frontend/src/lib/components/ui/snippet/snippet.svelte
@@ -36,19 +36,19 @@
<div class={cn(style({ variant, className: className }))}>
{#if typeof text == 'string'}
- <pre class={cn('overflow-y-auto whitespace-nowrap text-left font-mono text-sm font-light')}>
+ <pre class={cn('overflow-y-auto text-left font-mono text-sm font-light whitespace-nowrap')}>
{text}
</pre>
{:else}
{#each text as line, i (i)}
- <pre class={cn('overflow-y-auto whitespace-nowrap text-left font-mono text-sm font-light')}>
+ <pre class={cn('overflow-y-auto text-left font-mono text-sm font-light whitespace-nowrap')}>
{line}
</pre>
{/each}
{/if}
<CopyButton
- class="absolute right-2 top-1/2 size-7 -translate-y-1/2 transition-opacity ease-in-out hover:bg-transparent hover:text-opacity-80 dark:hover:bg-transparent"
+ class="hover:text-opacity-80 absolute top-1/2 right-2 size-7 -translate-y-1/2 transition-opacity ease-in-out hover:bg-transparent dark:hover:bg-transparent"
text={typeof text === 'string' ? text : text.join('\n')}
{onCopy}
/>
diff --git a/frontend/src/lib/components/ui/sonner/sonner.svelte b/frontend/src/lib/components/ui/sonner/sonner.svelte
index d650006e2..f6360abac 100644
--- a/frontend/src/lib/components/ui/sonner/sonner.svelte
+++ b/frontend/src/lib/components/ui/sonner/sonner.svelte
@@ -10,7 +10,8 @@
class="toaster group"
toastOptions={{
classes: {
- toast: 'group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg',
+ toast:
+ 'group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg',
description: 'group-[.toast]:text-muted-foreground',
actionButton: 'group-[.toast]:bg-primary group-[.toast]:text-primary-foreground',
cancelButton: 'group-[.toast]:bg-muted group-[.toast]:text-muted-foreground'
diff --git a/frontend/src/lib/components/ui/switch/switch.svelte b/frontend/src/lib/components/ui/switch/switch.svelte
index 63f10b27a..5681d5fb7 100644
--- a/frontend/src/lib/components/ui/switch/switch.svelte
+++ b/frontend/src/lib/components/ui/switch/switch.svelte
@@ -2,7 +2,12 @@
import { Switch as SwitchPrimitive, type WithoutChildrenOrChild } from 'bits-ui';
import { cn } from '$lib/utils.js';
- let { ref = $bindable(null), class: className, checked = $bindable(false), ...restProps }: WithoutChildrenOrChild<SwitchPrimitive.RootProps> = $props();
+ let {
+ ref = $bindable(null),
+ class: className,
+ checked = $bindable(false),
+ ...restProps
+ }: WithoutChildrenOrChild<SwitchPrimitive.RootProps> = $props();
</script>
<SwitchPrimitive.Root
@@ -14,5 +19,9 @@
)}
{...restProps}
>
- <SwitchPrimitive.Thumb class={cn('bg-background pointer-events-none block size-5 rounded-full shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0')} />
+ <SwitchPrimitive.Thumb
+ class={cn(
+ 'bg-background pointer-events-none block size-5 rounded-full shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0'
+ )}
+ />
</SwitchPrimitive.Root>
diff --git a/frontend/src/lib/components/ui/table/index.ts b/frontend/src/lib/components/ui/table/index.ts
index 14695c815..99239aeea 100644
--- a/frontend/src/lib/components/ui/table/index.ts
+++ b/frontend/src/lib/components/ui/table/index.ts
@@ -1,11 +1,11 @@
-import Root from "./table.svelte";
-import Body from "./table-body.svelte";
-import Caption from "./table-caption.svelte";
-import Cell from "./table-cell.svelte";
-import Footer from "./table-footer.svelte";
-import Head from "./table-head.svelte";
-import Header from "./table-header.svelte";
-import Row from "./table-row.svelte";
+import Root from './table.svelte';
+import Body from './table-body.svelte';
+import Caption from './table-caption.svelte';
+import Cell from './table-cell.svelte';
+import Footer from './table-footer.svelte';
+import Head from './table-head.svelte';
+import Header from './table-header.svelte';
+import Row from './table-row.svelte';
export {
Root,
@@ -24,5 +24,5 @@ export {
Footer as TableFooter,
Head as TableHead,
Header as TableHeader,
- Row as TableRow,
+ Row as TableRow
};
diff --git a/frontend/src/lib/components/ui/table/table-body.svelte b/frontend/src/lib/components/ui/table/table-body.svelte
index 29e96875f..522f21c0b 100644
--- a/frontend/src/lib/components/ui/table/table-body.svelte
+++ b/frontend/src/lib/components/ui/table/table-body.svelte
@@ -1,6 +1,6 @@
<script lang="ts">
- 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),
@@ -10,11 +10,6 @@
}: WithElementRef<HTMLAttributes<HTMLTableSectionElement>> = $props();
</script>
-<tbody
- bind:this={ref}
- data-slot="table-body"
- class={cn("[&_tr:last-child]:border-0", className)}
- {...restProps}
->
+<tbody bind:this={ref} data-slot="table-body" class={cn('[&_tr:last-child]:border-0', className)} {...restProps}>
{@render children?.()}
</tbody>
diff --git a/frontend/src/lib/components/ui/table/table-caption.svelte b/frontend/src/lib/components/ui/table/table-caption.svelte
index 4696cff57..924801743 100644
--- a/frontend/src/lib/components/ui/table/table-caption.svelte
+++ b/frontend/src/lib/components/ui/table/table-caption.svelte
@@ -1,20 +1,10 @@
<script lang="ts">
- 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<HTMLAttributes<HTMLElement>> = $props();
+ let { ref = $bindable(null), class: className, children, ...restProps }: WithElementRef<HTMLAttributes<HTMLElement>> = $props();
</script>
-<caption
- bind:this={ref}
- data-slot="table-caption"
- class={cn("text-muted-foreground mt-4 text-sm", className)}
- {...restProps}
->
+<caption bind:this={ref} data-slot="table-caption" class={cn('text-muted-foreground mt-4 text-sm', className)} {...restProps}>
{@render children?.()}
</caption>
diff --git a/frontend/src/lib/components/ui/table/table-cell.svelte b/frontend/src/lib/components/ui/table/table-cell.svelte
index 1a2f033fb..e34014e2d 100644
--- a/frontend/src/lib/components/ui/table/table-cell.svelte
+++ b/frontend/src/lib/components/ui/table/table-cell.svelte
@@ -1,22 +1,14 @@
<script lang="ts">
- import { cn, type WithElementRef } from "$lib/utils.js";
- import type { HTMLTdAttributes } from "svelte/elements";
+ import { cn, type WithElementRef } from '$lib/utils.js';
+ import type { HTMLTdAttributes } from 'svelte/elements';
- let {
- ref = $bindable(null),
- class: className,
- children,
- ...restProps
- }: WithElementRef<HTMLTdAttributes> = $props();
+ let { ref = $bindable(null), class: className, children, ...restProps }: WithElementRef<HTMLTdAttributes> = $props();
</script>
<td
bind:this={ref}
data-slot="table-cell"
- class={cn(
- "whitespace-nowrap bg-clip-padding p-2 align-middle [&:has([role=checkbox])]:pr-0",
- className
- )}
+ class={cn('bg-clip-padding p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0', className)}
{...restProps}
>
{@render children?.()}
diff --git a/frontend/src/lib/components/ui/table/table-footer.svelte b/frontend/src/lib/components/ui/table/table-footer.svelte
index b9b14ebfa..53a9eb458 100644
--- a/frontend/src/lib/components/ui/table/table-footer.svelte
+++ b/frontend/src/lib/components/ui/table/table-footer.svelte
@@ -1,6 +1,6 @@
<script lang="ts">
- 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),
@@ -13,7 +13,7 @@
<tfoot
bind:this={ref}
data-slot="table-footer"
- class={cn("bg-muted/50 border-t font-medium [&>tr]:last:border-b-0", className)}
+ class={cn('bg-muted/50 border-t font-medium [&>tr]:last:border-b-0', className)}
{...restProps}
>
{@render children?.()}
diff --git a/frontend/src/lib/components/ui/table/table-head.svelte b/frontend/src/lib/components/ui/table/table-head.svelte
index e9dd2378d..a42c4238e 100644
--- a/frontend/src/lib/components/ui/table/table-head.svelte
+++ b/frontend/src/lib/components/ui/table/table-head.svelte
@@ -1,20 +1,15 @@
<script lang="ts">
- import { cn, type WithElementRef } from "$lib/utils.js";
- import type { HTMLThAttributes } from "svelte/elements";
+ import { cn, type WithElementRef } from '$lib/utils.js';
+ import type { HTMLThAttributes } from 'svelte/elements';
- let {
- ref = $bindable(null),
- class: className,
- children,
- ...restProps
- }: WithElementRef<HTMLThAttributes> = $props();
+ let { ref = $bindable(null), class: className, children, ...restProps }: WithElementRef<HTMLThAttributes> = $props();
</script>
<th
bind:this={ref}
data-slot="table-head"
class={cn(
- "text-foreground h-10 whitespace-nowrap bg-clip-padding px-2 text-left align-middle font-medium [&:has([role=checkbox])]:pr-0",
+ 'text-foreground h-10 bg-clip-padding px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0',
className
)}
{...restProps}
diff --git a/frontend/src/lib/components/ui/table/table-header.svelte b/frontend/src/lib/components/ui/table/table-header.svelte
index f47d2597c..d72e3d3be 100644
--- a/frontend/src/lib/components/ui/table/table-header.svelte
+++ b/frontend/src/lib/components/ui/table/table-header.svelte
@@ -1,6 +1,6 @@
<script lang="ts">
- 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),
@@ -10,11 +10,6 @@
}: WithElementRef<HTMLAttributes<HTMLTableSectionElement>> = $props();
</script>
-<thead
- bind:this={ref}
- data-slot="table-header"
- class={cn("[&_tr]:border-b", className)}
- {...restProps}
->
+<thead bind:this={ref} data-slot="table-header" class={cn('[&_tr]:border-b', className)} {...restProps}>
{@render children?.()}
</thead>
diff --git a/frontend/src/lib/components/ui/table/table-row.svelte b/frontend/src/lib/components/ui/table/table-row.svelte
index 0df769e0a..57e044e7a 100644
--- a/frontend/src/lib/components/ui/table/table-row.svelte
+++ b/frontend/src/lib/components/ui/table/table-row.svelte
@@ -1,6 +1,6 @@
<script lang="ts">
- 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),
@@ -14,7 +14,7 @@
bind:this={ref}
data-slot="table-row"
class={cn(
- "hover:[&,&>svelte-css-wrapper]:[&>th,td]:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors",
+ 'hover:[&,&>svelte-css-wrapper]:[&>th,td]:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors',
className
)}
{...restProps}
diff --git a/frontend/src/lib/components/ui/table/table.svelte b/frontend/src/lib/components/ui/table/table.svelte
index a33495632..044cf6eef 100644
--- a/frontend/src/lib/components/ui/table/table.svelte
+++ b/frontend/src/lib/components/ui/table/table.svelte
@@ -1,22 +1,12 @@
<script lang="ts">
- import type { HTMLTableAttributes } from "svelte/elements";
- import { cn, type WithElementRef } from "$lib/utils.js";
+ import type { HTMLTableAttributes } from 'svelte/elements';
+ import { cn, type WithElementRef } from '$lib/utils.js';
- let {
- ref = $bindable(null),
- class: className,
- children,
- ...restProps
- }: WithElementRef<HTMLTableAttributes> = $props();
+ let { ref = $bindable(null), class: className, children, ...restProps }: WithElementRef<HTMLTableAttributes> = $props();
</script>
<div data-slot="table-container" class="relative w-full overflow-x-auto">
- <table
- bind:this={ref}
- data-slot="table"
- class={cn("w-full caption-bottom text-sm", className)}
- {...restProps}
- >
+ <table bind:this={ref} data-slot="table" class={cn('w-full caption-bottom text-sm', className)} {...restProps}>
{@render children?.()}
</table>
</div>
diff --git a/frontend/src/lib/components/ui/tabs/tabs-content.svelte b/frontend/src/lib/components/ui/tabs/tabs-content.svelte
index 4ca82d2dd..c000a3783 100644
--- a/frontend/src/lib/components/ui/tabs/tabs-content.svelte
+++ b/frontend/src/lib/components/ui/tabs/tabs-content.svelte
@@ -5,4 +5,11 @@
let { ref = $bindable(null), class: className, ...restProps }: TabsPrimitive.ContentProps = $props();
</script>
-<TabsPrimitive.Content bind:ref class={cn('ring-offset-background focus-visible:ring-ring mt-2 focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none', className)} {...restProps} />
+<TabsPrimitive.Content
+ bind:ref
+ class={cn(
+ 'ring-offset-background focus-visible:ring-ring mt-2 focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none',
+ className
+ )}
+ {...restProps}
+/>
diff --git a/frontend/src/lib/components/ui/tabs/tabs-list.svelte b/frontend/src/lib/components/ui/tabs/tabs-list.svelte
index 23b706fdd..e8e11db5b 100644
--- a/frontend/src/lib/components/ui/tabs/tabs-list.svelte
+++ b/frontend/src/lib/components/ui/tabs/tabs-list.svelte
@@ -5,4 +5,8 @@
let { ref = $bindable(null), class: className, ...restProps }: TabsPrimitive.ListProps = $props();
</script>
-<TabsPrimitive.List bind:ref class={cn('bg-muted text-muted-foreground inline-flex h-10 items-center justify-center rounded-md p-1', className)} {...restProps} />
+<TabsPrimitive.List
+ bind:ref
+ class={cn('bg-muted text-muted-foreground inline-flex h-10 items-center justify-center rounded-md p-1', className)}
+ {...restProps}
+/>
diff --git a/frontend/src/lib/components/ui/textarea/textarea.svelte b/frontend/src/lib/components/ui/textarea/textarea.svelte
index 620a54537..d226b65f6 100644
--- a/frontend/src/lib/components/ui/textarea/textarea.svelte
+++ b/frontend/src/lib/components/ui/textarea/textarea.svelte
@@ -3,7 +3,12 @@
import type { HTMLTextareaAttributes } from 'svelte/elements';
import { cn } from '$lib/utils.js';
- let { ref = $bindable(null), value = $bindable(), class: className, ...restProps }: WithoutChildren<WithElementRef<HTMLTextareaAttributes>> = $props();
+ let {
+ ref = $bindable(null),
+ value = $bindable(),
+ class: className,
+ ...restProps
+ }: WithoutChildren<WithElementRef<HTMLTextareaAttributes>> = $props();
</script>
<textarea
diff --git a/frontend/src/lib/icons/docker-icon.svelte b/frontend/src/lib/icons/docker-icon.svelte
index cc3624d63..41602463b 100644
--- a/frontend/src/lib/icons/docker-icon.svelte
+++ b/frontend/src/lib/icons/docker-icon.svelte
@@ -6,7 +6,15 @@
} = $props();
</script>
-<svg fill="currentColor" width="24" height="24" viewBox="0 0 24 24" role="img" xmlns="http://www.w3.org/2000/svg" class={className}>
+<svg
+ fill="currentColor"
+ width="24"
+ height="24"
+ viewBox="0 0 24 24"
+ role="img"
+ xmlns="http://www.w3.org/2000/svg"
+ class={className}
+>
<title>Docker icon</title>
<path
d="M13.983 11.078h2.119a.186.186 0 00.186-.185V9.006a.186.186 0 00-.186-.186h-2.119a.185.185 0 00-.185.185v1.888c0 .102.083.185.185.185m-2.954-5.43h2.118a.186.186 0 00.186-.186V3.574a.186.186 0 00-.186-.185h-2.118a.185.185 0 00-.185.185v1.888c0 .102.082.185.185.185m0 2.716h2.118a.187.187 0 00.186-.186V6.29a.186.186 0 00-.186-.185h-2.118a.185.185 0 00-.185.185v1.887c0 .102.082.185.185.186m-2.93 0h2.12a.186.186 0 00.184-.186V6.29a.185.185 0 00-.185-.185H8.1a.185.185 0 00-.185.185v1.887c0 .102.083.185.185.186m-2.964 0h2.119a.186.186 0 00.185-.186V6.29a.185.185 0 00-.185-.185H5.136a.186.186 0 00-.186.185v1.887c0 .102.084.185.186.186m5.893 2.715h2.118a.186.186 0 00.186-.185V9.006a.186.186 0 00-.186-.186h-2.118a.185.185 0 00-.185.185v1.888c0 .102.082.185.185.185m-2.93 0h2.12a.185.185 0 00.184-.185V9.006a.185.185 0 00-.184-.186h-2.12a.185.185 0 00-.184.185v1.888c0 .102.083.185.185.185m-2.964 0h2.119a.185.185 0 00.185-.185V9.006a.185.185 0 00-.184-.186h-2.12a.186.186 0 00-.186.186v1.887c0 .102.084.185.186.185m-2.92 0h2.12a.185.185 0 00.184-.185V9.006a.185.185 0 00-.184-.186h-2.12a.185.185 0 00-.184.185v1.888c0 .102.082.185.185.185M23.763 9.89c-.065-.051-.672-.51-1.954-.51-.338.001-.676.03-1.01.087-.248-1.7-1.653-2.53-1.716-2.566l-.344-.199-.226.327c-.284.438-.49.922-.612 1.43-.23.97-.09 1.882.403 2.661-.595.332-1.55.413-1.744.42H.751a.751.751 0 00-.75.748 11.376 11.376 0 00.692 4.062c.545 1.428 1.355 2.48 2.41 3.124 1.18.723 3.1 1.137 5.275 1.137.983.003 1.963-.086 2.93-.266a12.248 12.248 0 003.823-1.389c.98-.567 1.86-1.288 2.61-2.136 1.252-1.418 1.998-2.997 2.553-4.4h.221c1.372 0 2.215-.549 2.68-1.009.309-.293.55-.65.707-1.046l.098-.288Z"
diff --git a/frontend/src/lib/services/api/api-service.ts b/frontend/src/lib/services/api/api-service.ts
index 4dc2c7129..104bdcd04 100644
--- a/frontend/src/lib/services/api/api-service.ts
+++ b/frontend/src/lib/services/api/api-service.ts
@@ -66,10 +66,7 @@ abstract class BaseAPIService {
const response = await promise;
const payload = response.data;
const extracted =
- payload &&
- typeof payload === 'object' &&
- 'data' in payload &&
- (payload as any).data !== undefined
+ payload && typeof payload === 'object' && 'data' in payload && (payload as any).data !== undefined
? (payload as any).data
: payload;
return extracted as T;
diff --git a/frontend/src/lib/services/api/auth-api-service.ts b/frontend/src/lib/services/api/auth-api-service.ts
index 84ec8bb4d..2a2b52b98 100644
--- a/frontend/src/lib/services/api/auth-api-service.ts
+++ b/frontend/src/lib/services/api/auth-api-service.ts
@@ -21,9 +21,7 @@ type LoginResponseData = {
export class AuthService extends BaseAPIService {
async login(credentials: LoginCredentials): Promise<User> {
try {
- const data = await this.handleResponse<LoginResponseData>(
- this.api.post('/auth/login', credentials)
- );
+ const data = await this.handleResponse<LoginResponseData>(this.api.post('/auth/login', credentials));
const user = data.user as User;
userStore.setUser(user);
diff --git a/frontend/src/lib/services/api/autoupdate-api-service.ts b/frontend/src/lib/services/api/autoupdate-api-service.ts
index 1337bac80..15b00d26c 100644
--- a/frontend/src/lib/services/api/autoupdate-api-service.ts
+++ b/frontend/src/lib/services/api/autoupdate-api-service.ts
@@ -1,43 +1,38 @@
import BaseAPIService from './api-service';
-import type {
- AutoUpdateCheck,
- AutoUpdateResult,
- AutoUpdateRecord,
- AutoUpdateStatus
-} from '$lib/types/auto-update.type';
+import type { AutoUpdateCheck, AutoUpdateResult, AutoUpdateRecord, AutoUpdateStatus } from '$lib/types/auto-update.type';
export default class AutoUpdateAPIService extends BaseAPIService {
- async checkForUpdates(options?: AutoUpdateCheck): Promise<AutoUpdateResult> {
- const response = await this.api.post('/updates/check', options || {});
- return response.data;
- }
+ async checkForUpdates(options?: AutoUpdateCheck): Promise<AutoUpdateResult> {
+ const response = await this.api.post('/updates/check', options || {});
+ return response.data;
+ }
- async checkContainers(): Promise<AutoUpdateResult> {
- const response = await this.api.post('/updates/check/containers');
- return response.data;
- }
+ async checkContainers(): Promise<AutoUpdateResult> {
+ const response = await this.api.post('/updates/check/containers');
+ return response.data;
+ }
- async checkStacks(): Promise<AutoUpdateResult> {
- const response = await this.api.post('/updates/check/compose');
- return response.data;
- }
+ async checkStacks(): Promise<AutoUpdateResult> {
+ const response = await this.api.post('/updates/check/compose');
+ return response.data;
+ }
- async getUpdateHistory(limit?: number): Promise<AutoUpdateRecord[]> {
- const params = limit ? { limit } : {};
- const response = await this.api.get('/updates/history', { params });
- return response.data.data;
- }
+ async getUpdateHistory(limit?: number): Promise<AutoUpdateRecord[]> {
+ const params = limit ? { limit } : {};
+ const response = await this.api.get('/updates/history', { params });
+ return response.data.data;
+ }
- async getUpdateStatus(): Promise<AutoUpdateStatus> {
- const response = await this.api.get('/updates/status');
- return response.data.data;
- }
+ async getUpdateStatus(): Promise<AutoUpdateStatus> {
+ const response = await this.api.get('/updates/status');
+ return response.data.data;
+ }
- async dryRun(type: 'containers' | 'stacks' | 'all' = 'all'): Promise<AutoUpdateResult> {
- const response = await this.api.post('/updates/check', {
- type,
- dryRun: true
- });
- return response.data;
- }
+ async dryRun(type: 'containers' | 'stacks' | 'all' = 'all'): Promise<AutoUpdateResult> {
+ const response = await this.api.post('/updates/check', {
+ type,
+ dryRun: true
+ });
+ return response.data;
+ }
}
diff --git a/frontend/src/lib/services/api/image-api-service.ts b/frontend/src/lib/services/api/image-api-service.ts
index a5df4549d..f8f0c5843 100644
--- a/frontend/src/lib/services/api/image-api-service.ts
+++ b/frontend/src/lib/services/api/image-api-service.ts
@@ -1,9 +1,5 @@
import BaseAPIService from './api-service';
-import type {
- PaginationRequest,
- SortRequest,
- PaginatedApiResponse
-} from '$lib/types/pagination.type';
+import type { PaginationRequest, SortRequest, PaginatedApiResponse } from '$lib/types/pagination.type';
export default class ImageAPIService extends BaseAPIService {
async list(filters?: Record<string, string>) {
diff --git a/frontend/src/lib/services/api/image-update-api-service.ts b/frontend/src/lib/services/api/image-update-api-service.ts
index 895468d87..ff459e6b1 100644
--- a/frontend/src/lib/services/api/image-update-api-service.ts
+++ b/frontend/src/lib/services/api/image-update-api-service.ts
@@ -1,83 +1,83 @@
import BaseAPIService from './api-service';
export interface ImageUpdateData {
- hasUpdate: boolean;
- updateType: string;
- currentVersion: string;
- latestVersion?: string;
- currentDigest?: string;
- latestDigest?: string;
- checkTime: string;
- responseTimeMs: number;
- error?: string;
+ hasUpdate: boolean;
+ updateType: string;
+ currentVersion: string;
+ latestVersion?: string;
+ currentDigest?: string;
+ latestDigest?: string;
+ checkTime: string;
+ responseTimeMs: number;
+ error?: string;
}
export interface ImageUpdateSummary {
- totalImages: number;
- imagesWithUpdates: number;
- digestUpdates: number;
- tagUpdates: number;
- errorsCount: number;
+ totalImages: number;
+ imagesWithUpdates: number;
+ digestUpdates: number;
+ tagUpdates: number;
+ errorsCount: number;
}
export interface ImageVersions {
- imageRef: string;
- current: string;
- versions: string[];
- latest?: string;
+ imageRef: string;
+ current: string;
+ versions: string[];
+ latest?: string;
}
export interface VersionComparison {
- currentVersion: string;
- targetVersion: string;
- isNewer: boolean;
- updateType: string;
- changeLevel: string;
+ currentVersion: string;
+ targetVersion: string;
+ isNewer: boolean;
+ updateType: string;
+ changeLevel: string;
}
export interface BatchImageUpdateRequest {
- imageRefs: string[];
+ imageRefs: string[];
}
export interface CompareVersionRequest {
- currentVersion: string;
- targetVersion: string;
- imageRef: string;
+ currentVersion: string;
+ targetVersion: string;
+ imageRef: string;
}
export default class ImageUpdateAPIService extends BaseAPIService {
- async checkImageUpdate(imageRef: string): Promise<ImageUpdateData> {
- const res = await this.api.get(`/image-updates/check?imageRef=${encodeURIComponent(imageRef)}`);
- return this.handleResponse(res.data);
- }
+ async checkImageUpdate(imageRef: string): Promise<ImageUpdateData> {
+ const res = await this.api.get(`/image-updates/check?imageRef=${encodeURIComponent(imageRef)}`);
+ return this.handleResponse(res.data);
+ }
- async checkImageUpdateByID(imageId: string): Promise<ImageUpdateData> {
- const res = await this.api.get(`/image-updates/check/${imageId}`);
- return this.handleResponse(res.data);
- }
+ async checkImageUpdateByID(imageId: string): Promise<ImageUpdateData> {
+ const res = await this.api.get(`/image-updates/check/${imageId}`);
+ return this.handleResponse(res.data);
+ }
- async checkMultipleImages(imageRefs: string[]): Promise<Record<string, ImageUpdateData>> {
- const res = await this.api.post('/image-updates/check-batch', { imageRefs });
- return this.handleResponse(res.data);
- }
+ async checkMultipleImages(imageRefs: string[]): Promise<Record<string, ImageUpdateData>> {
+ const res = await this.api.post('/image-updates/check-batch', { imageRefs });
+ return this.handleResponse(res.data);
+ }
- async checkAllImages(limit: number = 50): Promise<Record<string, ImageUpdateData>> {
- const res = await this.api.get(`/image-updates/check-all?limit=${limit}`);
- return this.handleResponse(res.data);
- }
+ async checkAllImages(limit: number = 50): Promise<Record<string, ImageUpdateData>> {
+ const res = await this.api.get(`/image-updates/check-all?limit=${limit}`);
+ return this.handleResponse(res.data);
+ }
- async getUpdateSummary(): Promise<ImageUpdateSummary> {
- const res = await this.api.get('/image-updates/summary');
- return this.handleResponse(res.data);
- }
+ async getUpdateSummary(): Promise<ImageUpdateSummary> {
+ const res = await this.api.get('/image-updates/summary');
+ return this.handleResponse(res.data);
+ }
- async getImageVersions(imageRef: string, limit: number = 20): Promise<ImageVersions> {
- const res = await this.api.get(`/image-updates/versions?imageRef=${encodeURIComponent(imageRef)}&limit=${limit}`);
- return this.handleResponse(res.data);
- }
+ async getImageVersions(imageRef: string, limit: number = 20): Promise<ImageVersions> {
+ const res = await this.api.get(`/image-updates/versions?imageRef=${encodeURIComponent(imageRef)}&limit=${limit}`);
+ return this.handleResponse(res.data);
+ }
- async compareVersions(request: CompareVersionRequest): Promise<VersionComparison> {
- const res = await this.api.post('/image-updates/compare', request);
- return this.handleResponse(res.data);
- }
-}
\ No newline at end of file
+ async compareVersions(request: CompareVersionRequest): Promise<VersionComparison> {
+ const res = await this.api.post('/image-updates/compare', request);
+ return this.handleResponse(res.data);
+ }
+}
diff --git a/frontend/src/lib/services/api/settings-api-service.ts b/frontend/src/lib/services/api/settings-api-service.ts
index 843f9cb14..c56333c13 100644
--- a/frontend/src/lib/services/api/settings-api-service.ts
+++ b/frontend/src/lib/services/api/settings-api-service.ts
@@ -55,11 +55,7 @@ export default class SettingsAPIService extends BaseAPIService {
private parseValue(key: string, value: string) {
// Special handling for JSON fields
- if (
- key === 'onboardingSteps' ||
- key === 'registryCredentials' ||
- key === 'templateRegistries'
- ) {
+ if (key === 'onboardingSteps' || key === 'registryCredentials' || key === 'templateRegistries') {
try {
return JSON.parse(value);
} catch {
diff --git a/frontend/src/lib/services/app-version-service.ts b/frontend/src/lib/services/app-version-service.ts
index b1b11f791..adba81aee 100644
--- a/frontend/src/lib/services/app-version-service.ts
+++ b/frontend/src/lib/services/app-version-service.ts
@@ -34,10 +34,7 @@ export class AppVersionService {
if (!this.cachedVersionInfo || cacheExpired) {
try {
- const [newestVersion, isUpToDate] = await Promise.all([
- this.getNewestVersion(),
- this.isUpToDate()
- ]);
+ const [newestVersion, isUpToDate] = await Promise.all([this.getNewestVersion(), this.isUpToDate()]);
this.cachedVersionInfo = {
currentVersion: this.getCurrentVersion(),
diff --git a/frontend/src/lib/stores/user-store.ts b/frontend/src/lib/stores/user-store.ts
index f9ea22bc4..19147c50a 100644
--- a/frontend/src/lib/stores/user-store.ts
+++ b/frontend/src/lib/stores/user-store.ts
@@ -4,15 +4,15 @@ import { writable } from 'svelte/store';
const userStore = writable<User | null>(null);
const setUser = (user: User) => {
- userStore.set(user);
+ userStore.set(user);
};
const clearUser = () => {
- userStore.set(null);
+ userStore.set(null);
};
export default {
- subscribe: userStore.subscribe,
- setUser,
- clearUser
+ subscribe: userStore.subscribe,
+ setUser,
+ clearUser
};
diff --git a/frontend/src/lib/types/auto-update.type.ts b/frontend/src/lib/types/auto-update.type.ts
index f062c33bb..b596a25d3 100644
--- a/frontend/src/lib/types/auto-update.type.ts
+++ b/frontend/src/lib/types/auto-update.type.ts
@@ -1,54 +1,54 @@
export interface AutoUpdateCheck {
- type?: 'containers' | 'stacks' | 'all';
- resourceIds?: string[];
- forceUpdate?: boolean;
- dryRun?: boolean;
+ type?: 'containers' | 'stacks' | 'all';
+ resourceIds?: string[];
+ forceUpdate?: boolean;
+ dryRun?: boolean;
}
export interface AutoUpdateResult {
- success: boolean;
- checked: number;
- updated: number;
- skipped: number;
- failed: number;
- startTime: string;
- endTime: string;
- duration: string;
- results: AutoUpdateResourceResult[];
+ success: boolean;
+ checked: number;
+ updated: number;
+ skipped: number;
+ failed: number;
+ startTime: string;
+ endTime: string;
+ duration: string;
+ results: AutoUpdateResourceResult[];
}
export interface AutoUpdateResourceResult {
- resourceId: string;
- resourceName: string;
- resourceType: 'container' | 'stack';
- status: 'checked' | 'up_to_date' | 'update_available' | 'updated' | 'failed' | 'skipped';
- updateAvailable: boolean;
- updateApplied: boolean;
- oldImages?: Record<string, string>;
- newImages?: Record<string, string>;
- error?: string;
- details?: Record<string, any>;
+ resourceId: string;
+ resourceName: string;
+ resourceType: 'container' | 'stack';
+ status: 'checked' | 'up_to_date' | 'update_available' | 'updated' | 'failed' | 'skipped';
+ updateAvailable: boolean;
+ updateApplied: boolean;
+ oldImages?: Record<string, string>;
+ newImages?: Record<string, string>;
+ error?: string;
+ details?: Record<string, any>;
}
export interface AutoUpdateRecord {
- id: string;
- resourceId: string;
- resourceType: string;
- resourceName: string;
- status: string;
- startTime: string;
- endTime?: string;
- updateAvailable: boolean;
- updateApplied: boolean;
- oldImageVersions?: Record<string, string>;
- newImageVersions?: Record<string, string>;
- error?: string;
- details?: Record<string, any>;
+ id: string;
+ resourceId: string;
+ resourceType: string;
+ resourceName: string;
+ status: string;
+ startTime: string;
+ endTime?: string;
+ updateAvailable: boolean;
+ updateApplied: boolean;
+ oldImageVersions?: Record<string, string>;
+ newImageVersions?: Record<string, string>;
+ error?: string;
+ details?: Record<string, any>;
}
export interface AutoUpdateStatus {
- updatingContainers: number;
- updatingStacks: number;
- containerIds: string[];
- stackIds: string[];
-}
\ No newline at end of file
+ updatingContainers: number;
+ updatingStacks: number;
+ containerIds: string[];
+ stackIds: string[];
+}
diff --git a/frontend/src/lib/types/docker-info.type.ts b/frontend/src/lib/types/docker-info.type.ts
index eb2a799ed..d2eb5f496 100644
--- a/frontend/src/lib/types/docker-info.type.ts
+++ b/frontend/src/lib/types/docker-info.type.ts
@@ -1,26 +1,26 @@
export interface DockerInfo {
- success: boolean;
- version: string;
- apiVersion: string;
- gitCommit: string;
- goVersion: string;
- os: string;
- arch: string;
- buildTime: string;
- containers: number;
- containersRunning: number;
- containersPaused: number;
- containersStopped: number;
- images: number;
- storageDriver: string;
- loggingDriver: string;
- cgroupDriver: string;
- cgroupVersion: string;
- kernelVersion: string;
- operatingSystem: string;
- osVersion: string;
- serverVersion: string;
- architecture: string;
- cpus: number;
- memTotal: number;
-}
\ No newline at end of file
+ success: boolean;
+ version: string;
+ apiVersion: string;
+ gitCommit: string;
+ goVersion: string;
+ os: string;
+ arch: string;
+ buildTime: string;
+ containers: number;
+ containersRunning: number;
+ containersPaused: number;
+ containersStopped: number;
+ images: number;
+ storageDriver: string;
+ loggingDriver: string;
+ cgroupDriver: string;
+ cgroupVersion: string;
+ kernelVersion: string;
+ operatingSystem: string;
+ osVersion: string;
+ serverVersion: string;
+ architecture: string;
+ cpus: number;
+ memTotal: number;
+}
diff --git a/frontend/src/lib/types/pagination.type.ts b/frontend/src/lib/types/pagination.type.ts
index 4742e1ed5..bae4f41b7 100644
--- a/frontend/src/lib/types/pagination.type.ts
+++ b/frontend/src/lib/types/pagination.type.ts
@@ -1,57 +1,57 @@
export type PaginationRequest = {
- page: number;
- limit: number;
+ page: number;
+ limit: number;
};
export type SortRequest = {
- column: string;
- direction: 'asc' | 'desc';
+ column: string;
+ direction: 'asc' | 'desc';
};
export type FilterMap = Record<string, string>;
export type SearchPaginationSortRequest = {
- search?: string;
- pagination?: PaginationRequest;
- sort?: SortRequest;
- filters?: FilterMap;
+ search?: string;
+ pagination?: PaginationRequest;
+ sort?: SortRequest;
+ filters?: FilterMap;
};
export type PaginationResponse = {
- totalPages: number;
- totalItems: number;
- currentPage: number;
- itemsPerPage: number;
+ totalPages: number;
+ totalItems: number;
+ currentPage: number;
+ itemsPerPage: number;
};
export type Paginated<T> = {
- data: T[];
- pagination: PaginationResponse;
+ data: T[];
+ pagination: PaginationResponse;
};
export interface PaginatedApiResponse<T> {
- success: boolean;
- data: T[];
- pagination: PaginationResponse;
+ success: boolean;
+ data: T[];
+ pagination: PaginationResponse;
}
export interface SortedPaginationRequest {
- pagination: {
- page: number;
- limit: number;
- };
- sort: {
- column: string;
- direction: 'asc' | 'desc';
- };
+ pagination: {
+ page: number;
+ limit: number;
+ };
+ sort: {
+ column: string;
+ direction: 'asc' | 'desc';
+ };
}
export interface ExternalPagination {
- pageSize: number;
- currentPage: number;
- totalPages: number;
- totalItems: number;
+ pageSize: number;
+ currentPage: number;
+ totalPages: number;
+ totalItems: number;
}
export const DEFAULT_PAGE_SIZE = 20;
-export const MAX_PAGE_SIZE = 100;
\ No newline at end of file
+export const MAX_PAGE_SIZE = 100;
diff --git a/frontend/src/lib/types/user.type.ts b/frontend/src/lib/types/user.type.ts
index c93fe25f5..48d97e95a 100644
--- a/frontend/src/lib/types/user.type.ts
+++ b/frontend/src/lib/types/user.type.ts
@@ -46,14 +46,7 @@ export interface UpdateUserDto {
export type CreateUser = Omit<
User,
- | 'id'
- | 'createdAt'
- | 'updatedAt'
- | 'lastLogin'
- | 'oidcSubjectId'
- | 'passwordHash'
- | 'requirePasswordChange'
- | 'roles'
+ 'id' | 'createdAt' | 'updatedAt' | 'lastLogin' | 'oidcSubjectId' | 'passwordHash' | 'requirePasswordChange' | 'roles'
> & {
password: string;
roles?: string[];
diff --git a/frontend/src/routes/+error.svelte b/frontend/src/routes/+error.svelte
index ed5374625..330a81b36 100644
--- a/frontend/src/routes/+error.svelte
+++ b/frontend/src/routes/+error.svelte
@@ -7,9 +7,7 @@
const status = $derived(props.status ?? page.status ?? 500);
const message = $derived(
- props.error?.message ??
- page.error?.message ??
- (status === 404 ? 'Not Found' : 'Something went wrong')
+ props.error?.message ?? page.error?.message ?? (status === 404 ? 'Not Found' : 'Something went wrong')
);
</script>
diff --git a/frontend/src/routes/auth/login/+page.svelte b/frontend/src/routes/auth/login/+page.svelte
index ef9cd27d6..9c00f4ac8 100644
--- a/frontend/src/routes/auth/login/+page.svelte
+++ b/frontend/src/routes/auth/login/+page.svelte
@@ -215,8 +215,8 @@
</div>
</div>
-<div class="fixed bottom-0 left-0 right-0 p-4">
- <div class="text-muted-foreground text-balance text-center text-xs">
+<div class="fixed right-0 bottom-0 left-0 p-4">
+ <div class="text-muted-foreground text-center text-xs text-balance">
<div class="flex items-center justify-center gap-4">
<a
href="https://github.com/ofkm/arcane"
diff --git a/frontend/src/routes/auth/oidc/callback/+page.svelte b/frontend/src/routes/auth/oidc/callback/+page.svelte
index 7d65165fd..bad048cb3 100644
--- a/frontend/src/routes/auth/oidc/callback/+page.svelte
+++ b/frontend/src/routes/auth/oidc/callback/+page.svelte
@@ -87,8 +87,7 @@
let userMessage = 'An error occurred during authentication. Please try again.';
if (err.message?.includes('network') || err.message?.includes('timeout')) {
- userMessage =
- 'Network error during authentication. Please check your connection and try again.';
+ userMessage = 'Network error during authentication. Please check your connection and try again.';
}
error = userMessage;
@@ -100,15 +99,13 @@
<svelte:head><title>Arcane</title></svelte:head>
-<div class="flex min-h-screen items-center justify-center bg-background">
+<div class="bg-background flex min-h-screen items-center justify-center">
<div class="w-full max-w-md space-y-8">
<div class="text-center">
{#if isProcessing}
- <div class="mx-auto h-12 w-12 animate-spin rounded-full border-b-2 border-primary"></div>
+ <div class="border-primary mx-auto h-12 w-12 animate-spin rounded-full border-b-2"></div>
<h2 class="mt-6 text-2xl font-bold">Processing Login...</h2>
- <p class="mt-2 text-sm text-muted-foreground">
- Please wait while we complete your authentication.
- </p>
+ <p class="text-muted-foreground mt-2 text-sm">Please wait while we complete your authentication.</p>
{:else if error}
<div class="text-destructive">
<svg class="mx-auto h-12 w-12" fill="none" viewBox="0 0 24 24" stroke="currentColor">
@@ -121,7 +118,7 @@
</svg>
<h2 class="mt-6 text-2xl font-bold">Authentication Error</h2>
<p class="mt-2 text-sm">{error}</p>
- <p class="mt-4 text-xs text-muted-foreground">Redirecting you back to login...</p>
+ <p class="text-muted-foreground mt-4 text-xs">Redirecting you back to login...</p>
</div>
{/if}
</div>
diff --git a/frontend/src/routes/auth/oidc/login/+page.svelte b/frontend/src/routes/auth/oidc/login/+page.svelte
index 0becd3218..709573340 100644
--- a/frontend/src/routes/auth/oidc/login/+page.svelte
+++ b/frontend/src/routes/auth/oidc/login/+page.svelte
@@ -13,8 +13,7 @@
const status = await oidcAPI.getStatus();
if (!status.dbEnabled || !status.dbConfigured) {
- error =
- 'OIDC authentication is not properly configured. Please contact your administrator.';
+ error = 'OIDC authentication is not properly configured. Please contact your administrator.';
setTimeout(() => goto('/auth/login?error=oidc_not_configured'), 3000);
isRedirecting = false;
return;
@@ -22,8 +21,7 @@
const authUrl = await oidcAPI.getAuthUrl(redirect);
if (!authUrl) {
- error =
- 'Unable to generate authentication URL. Please try again or contact your administrator.';
+ error = 'Unable to generate authentication URL. Please try again or contact your administrator.';
setTimeout(() => goto('/auth/login?error=oidc_url_generation_failed'), 3000);
isRedirecting = false;
return;
@@ -38,8 +36,7 @@
if (err.message?.includes('discovery')) {
userMessage = 'OIDC provider configuration error. Please contact your administrator.';
} else if (err.message?.includes('network') || err.message?.includes('timeout')) {
- userMessage =
- 'Network error connecting to authentication provider. Please check your connection and try again.';
+ userMessage = 'Network error connecting to authentication provider. Please check your connection and try again.';
}
error = userMessage;
@@ -51,15 +48,13 @@
<svelte:head><title>Arcane</title></svelte:head>
-<div class="flex min-h-screen items-center justify-center bg-background">
+<div class="bg-background flex min-h-screen items-center justify-center">
<div class="w-full max-w-md space-y-8">
<div class="text-center">
{#if isRedirecting && !error}
- <div class="mx-auto h-12 w-12 animate-spin rounded-full border-b-2 border-primary"></div>
+ <div class="border-primary mx-auto h-12 w-12 animate-spin rounded-full border-b-2"></div>
<h2 class="mt-6 text-2xl font-bold">Redirecting to Login...</h2>
- <p class="mt-2 text-sm text-muted-foreground">
- Please wait while we redirect you to your identity provider.
- </p>
+ <p class="text-muted-foreground mt-2 text-sm">Please wait while we redirect you to your identity provider.</p>
{:else if error}
<div class="text-destructive">
<svg class="mx-auto h-12 w-12" fill="none" viewBox="0 0 24 24" stroke="currentColor">
@@ -72,9 +67,7 @@
</svg>
<h2 class="mt-6 text-2xl font-bold">Authentication Error</h2>
<p class="mt-2 text-sm">{error}</p>
- <p class="mt-4 text-xs text-muted-foreground">
- Redirecting you back to the login page...
- </p>
+ <p class="text-muted-foreground mt-4 text-xs">Redirecting you back to the login page...</p>
</div>
{/if}
</div>
diff --git a/frontend/src/routes/compose/[projectId]/+page.svelte b/frontend/src/routes/compose/[projectId]/+page.svelte
index 23095c693..b1ae2ae11 100644
--- a/frontend/src/routes/compose/[projectId]/+page.svelte
+++ b/frontend/src/routes/compose/[projectId]/+page.svelte
@@ -241,7 +241,7 @@
</div>
{#if showFloatingHeader}
- <div class="fixed left-1/2 top-4 z-30 -translate-x-1/2 transition-all duration-300 ease-in-out">
+ <div class="fixed top-4 left-1/2 z-30 -translate-x-1/2 transition-all duration-300 ease-in-out">
<div class="bg-background/90 border-border/50 rounded-lg border px-4 py-3 shadow-xl backdrop-blur-xl">
<div class="flex items-center gap-4">
<div class="flex items-center gap-2">
@@ -301,7 +301,7 @@
<IconComponent class="size-4" />
{#if section.id === 'services' && project.serviceCount}
<span
- class="bg-primary text-primary-foreground absolute -right-1 -top-1 flex h-[18px] min-w-[18px] items-center justify-center rounded-full px-1 text-xs"
+ class="bg-primary text-primary-foreground absolute -top-1 -right-1 flex h-[18px] min-w-[18px] items-center justify-center rounded-full px-1 text-xs"
>
{project.serviceCount}
</span>
diff --git a/frontend/src/routes/compose/new/+page.svelte b/frontend/src/routes/compose/new/+page.svelte
index 3636c7820..0dd794a29 100644
--- a/frontend/src/routes/compose/new/+page.svelte
+++ b/frontend/src/routes/compose/new/+page.svelte
@@ -146,7 +146,7 @@
</Button>
<div class="bg-border h-4 w-px"></div>
<div class="flex items-center gap-2">
- <h1 class="text-lg font-semibold leading-none">Create New Project</h1>
+ <h1 class="text-lg leading-none font-semibold">Create New Project</h1>
</div>
</div>
@@ -179,7 +179,7 @@
type="button"
variant="ghost"
size="sm"
- class="h-auto w-full justify-start whitespace-normal break-all p-2 text-left font-mono text-xs"
+ class="h-auto w-full justify-start p-2 text-left font-mono text-xs break-all whitespace-normal"
onclick={() => useExample(command)}
>
<CopyIcon class="mr-2 size-3 shrink-0" />
diff --git a/frontend/src/routes/containers/[containerId]/+page.svelte b/frontend/src/routes/containers/[containerId]/+page.svelte
index 12db3f941..ca8f39a85 100644
--- a/frontend/src/routes/containers/[containerId]/+page.svelte
+++ b/frontend/src/routes/containers/[containerId]/+page.svelte
@@ -294,7 +294,7 @@
</div>
{#if showFloatingHeader}
- <div class="fixed left-1/2 top-4 z-30 -translate-x-1/2 transition-all duration-300 ease-in-out">
+ <div class="fixed top-4 left-1/2 z-30 -translate-x-1/2 transition-all duration-300 ease-in-out">
<div class="bg-background/90 border-border/50 rounded-lg border px-4 py-3 shadow-xl backdrop-blur-xl">
<div class="flex items-center gap-4">
<div class="flex items-center gap-2">
diff --git a/frontend/src/routes/customize/registries/registry-table.svelte b/frontend/src/routes/customize/registries/registry-table.svelte
index 585b77417..7fa304e7d 100644
--- a/frontend/src/routes/customize/registries/registry-table.svelte
+++ b/frontend/src/routes/customize/registries/registry-table.svelte
@@ -207,7 +207,7 @@
Edit
</DropdownMenu.Item>
<DropdownMenu.Item
- class="focus:text-red-700! text-red-500"
+ class="text-red-500 focus:text-red-700!"
onclick={() => handleDeleteOne(item.id, item.url)}
disabled={isLoading.removing}
>
diff --git a/frontend/src/routes/customize/templates/+page.svelte b/frontend/src/routes/customize/templates/+page.svelte
index 3f891524d..47179f800 100644
--- a/frontend/src/routes/customize/templates/+page.svelte
+++ b/frontend/src/routes/customize/templates/+page.svelte
@@ -197,7 +197,7 @@
{registry.enabled ? 'Enabled' : 'Disabled'}
</Badge>
</div>
- <p class="text-muted-foreground break-all text-sm">{registry.url}</p>
+ <p class="text-muted-foreground text-sm break-all">{registry.url}</p>
{#if registry.description}
<p class="text-muted-foreground mt-1 text-sm">{registry.description}</p>
{/if}
diff --git a/frontend/src/routes/dashboard/+page.ts b/frontend/src/routes/dashboard/+page.ts
index 669a9eb33..b3323a138 100644
--- a/frontend/src/routes/dashboard/+page.ts
+++ b/frontend/src/routes/dashboard/+page.ts
@@ -27,10 +27,7 @@ export const load: PageLoad = async () => {
const containers = await environmentAPI.getContainers(containerRequestOptions);
const images = await environmentAPI.getImages(imageRequestOptions);
- const [dockerInfoResult, settingsResult] = await Promise.allSettled([
- systemAPI.getDockerInfo(),
- settingsAPI.getSettings()
- ]);
+ const [dockerInfoResult, settingsResult] = await Promise.allSettled([systemAPI.getDockerInfo(), settingsAPI.getSettings()]);
const dockerInfo = dockerInfoResult.status === 'fulfilled' ? dockerInfoResult.value : null;
const settings = settingsResult.status === 'fulfilled' ? settingsResult.value : null;
diff --git a/frontend/src/routes/dashboard/dash-container-table.svelte b/frontend/src/routes/dashboard/dash-container-table.svelte
index d1646466f..451666275 100644
--- a/frontend/src/routes/dashboard/dash-container-table.svelte
+++ b/frontend/src/routes/dashboard/dash-container-table.svelte
@@ -50,7 +50,7 @@
{/snippet}
<Card.Root class="relative flex flex-col rounded-lg border shadow-sm">
- <Card.Header class="px-6 pb-3 pt-5">
+ <Card.Header class="px-6 pt-5 pb-3">
<div class="flex items-center justify-between">
<div>
<Card.Title>
diff --git a/frontend/src/routes/dashboard/dash-image-table.svelte b/frontend/src/routes/dashboard/dash-image-table.svelte
index e33363008..dde0639ea 100644
--- a/frontend/src/routes/dashboard/dash-image-table.svelte
+++ b/frontend/src/routes/dashboard/dash-image-table.svelte
@@ -68,7 +68,7 @@
{/snippet}
<Card.Root class="relative flex flex-col rounded-lg border shadow-sm">
- <Card.Header class="px-6 pb-3 pt-5">
+ <Card.Header class="px-6 pt-5 pb-3">
<div class="flex items-center justify-between">
<div>
<Card.Title>
diff --git a/frontend/src/routes/environments/[id]/+page.svelte b/frontend/src/routes/environments/[id]/+page.svelte
index 75d5cb137..94c137f17 100644
--- a/frontend/src/routes/environments/[id]/+page.svelte
+++ b/frontend/src/routes/environments/[id]/+page.svelte
@@ -206,7 +206,7 @@
<Card.Content class="space-y-4">
<div>
<Label class="text-muted-foreground text-sm font-medium">API URL</Label>
- <div class="bg-muted mt-1 break-all rounded-md px-3 py-2 font-mono text-sm">{environment.apiUrl}</div>
+ <div class="bg-muted mt-1 rounded-md px-3 py-2 font-mono text-sm break-all">{environment.apiUrl}</div>
</div>
{#if environment.lastSeen}
<div>
@@ -280,7 +280,7 @@
</div>
{#if isRefreshing}
- <div class="fixed bottom-4 right-4 flex items-center gap-2 rounded-lg bg-blue-600 px-3 py-2 text-white shadow-lg">
+ <div class="fixed right-4 bottom-4 flex items-center gap-2 rounded-lg bg-blue-600 px-3 py-2 text-white shadow-lg">
<RefreshCwIcon class="h-4 w-4 animate-spin" />
<span class="text-sm">Refreshing...</span>
</div>
diff --git a/frontend/src/routes/environments/environment-table.svelte b/frontend/src/routes/environments/environment-table.svelte
index 5561018ce..c0e1899f5 100644
--- a/frontend/src/routes/environments/environment-table.svelte
+++ b/frontend/src/routes/environments/environment-table.svelte
@@ -164,7 +164,7 @@
<MonitorIcon class="text-muted-foreground size-4" />
</div>
<div
- class="border-background absolute -right-1 -top-1 size-3 rounded-full border-2 {item.status === 'online'
+ class="border-background absolute -top-1 -right-1 size-3 rounded-full border-2 {item.status === 'online'
? 'bg-green-500'
: 'bg-red-500'}"
></div>
@@ -214,7 +214,7 @@
</DropdownMenu.Item>
<DropdownMenu.Separator />
<DropdownMenu.Item
- class="focus:text-red-700! text-red-500"
+ class="text-red-500 focus:text-red-700!"
onclick={() => handleDeleteOne(item.id, item.hostname)}
disabled={isLoading.removing}
>
diff --git a/frontend/src/routes/images/[imageId]/+page.svelte b/frontend/src/routes/images/[imageId]/+page.svelte
index 32640474c..c4590041b 100644
--- a/frontend/src/routes/images/[imageId]/+page.svelte
+++ b/frontend/src/routes/images/[imageId]/+page.svelte
@@ -87,7 +87,7 @@
</Breadcrumb.List>
</Breadcrumb.Root>
<div class="mt-2 flex items-center gap-2">
- <h1 class="break-all text-2xl font-bold tracking-tight">
+ <h1 class="text-2xl font-bold tracking-tight break-all">
{image?.repoTags?.[0] || shortId}
</h1>
</div>
@@ -197,8 +197,8 @@
{@const [key, ...valueParts] = env.split('=')}
{@const value = valueParts.join('=')}
<div class="flex flex-col text-sm sm:flex-row sm:items-center">
- <span class="text-muted-foreground w-full break-all font-medium sm:w-1/4">{key}:</span>
- <span class="w-full break-all font-mono text-xs sm:w-3/4 sm:text-sm">{value}</span>
+ <span class="text-muted-foreground w-full font-medium break-all sm:w-1/4">{key}:</span>
+ <span class="w-full font-mono text-xs break-all sm:w-3/4 sm:text-sm">{value}</span>
</div>
{#if env !== image.config.env[image.config.env.length - 1]}
<Separator class="my-2" />
diff --git a/frontend/src/routes/networks/[networkId]/+page.svelte b/frontend/src/routes/networks/[networkId]/+page.svelte
index adcccd6e5..438c45efd 100644
--- a/frontend/src/routes/networks/[networkId]/+page.svelte
+++ b/frontend/src/routes/networks/[networkId]/+page.svelte
@@ -164,7 +164,7 @@
</div>
<div class="min-w-0 flex-1">
<p class="text-muted-foreground text-sm font-medium">Name</p>
- <p class="mt-1 break-words text-base font-semibold">{network.name}</p>
+ <p class="mt-1 text-base font-semibold break-words">{network.name}</p>
</div>
</div>
@@ -339,14 +339,14 @@
<div class="bg-card divide-y rounded-lg border">
{#each connectedContainers as container (container.Name)}
<div class="flex flex-col p-3 sm:flex-row sm:items-center">
- <div class="mb-2 w-full break-all font-medium sm:mb-0 sm:w-1/3">
+ <div class="mb-2 w-full font-medium break-all sm:mb-0 sm:w-1/3">
<a href="/containers/{container.Name}" class="text-primary flex items-center hover:underline">
<ContainerIcon class="text-muted-foreground mr-1.5 size-3.5" />
{container.Name}
</a>
</div>
<div class="w-full pl-0 sm:w-2/3 sm:pl-4">
- <code class="bg-muted text-muted-foreground break-all rounded px-1.5 py-0.5 font-mono text-xs sm:text-sm">
+ <code class="bg-muted text-muted-foreground rounded px-1.5 py-0.5 font-mono text-xs break-all sm:text-sm">
{container.IPv4Address || container.IPv6Address || 'N/A'}
</code>
</div>
@@ -370,10 +370,10 @@
<div class="bg-card divide-y rounded-lg border">
{#each Object.entries(network.labels) as [key, value] (key)}
<div class="flex flex-col p-3 sm:flex-row">
- <div class="text-muted-foreground mb-2 w-full break-all font-medium sm:mb-0 sm:w-1/3">
+ <div class="text-muted-foreground mb-2 w-full font-medium break-all sm:mb-0 sm:w-1/3">
{key}
</div>
- <div class="bg-muted/50 w-full break-all rounded p-2 font-mono text-xs sm:w-2/3 sm:text-sm">
+ <div class="bg-muted/50 w-full rounded p-2 font-mono text-xs break-all sm:w-2/3 sm:text-sm">
{value}
</div>
</div>
@@ -396,10 +396,10 @@
<div class="bg-card divide-y rounded-lg border">
{#each Object.entries(network.options) as [key, value] (key)}
<div class="flex flex-col p-3 sm:flex-row">
- <div class="text-muted-foreground mb-2 w-full break-all font-medium sm:mb-0 sm:w-1/3">
+ <div class="text-muted-foreground mb-2 w-full font-medium break-all sm:mb-0 sm:w-1/3">
{key}
</div>
- <div class="bg-muted/50 w-full break-all rounded p-2 font-mono text-xs sm:w-2/3 sm:text-sm">
+ <div class="bg-muted/50 w-full rounded p-2 font-mono text-xs break-all sm:w-2/3 sm:text-sm">
{value}
</div>
</div>
diff --git a/frontend/src/routes/settings/docker/+page.svelte b/frontend/src/routes/settings/docker/+page.svelte
index 5996214ab..35e853a2d 100644
--- a/frontend/src/routes/settings/docker/+page.svelte
+++ b/frontend/src/routes/settings/docker/+page.svelte
@@ -30,7 +30,7 @@
<div
class="from-background/60 via-background/40 to-background/60 relative overflow-hidden rounded-xl border bg-gradient-to-br p-6 shadow-sm"
>
- <div class="bg-primary/10 pointer-events-none absolute -right-10 -top-10 size-40 rounded-full blur-3xl"></div>
+ <div class="bg-primary/10 pointer-events-none absolute -top-10 -right-10 size-40 rounded-full blur-3xl"></div>
<div class="bg-muted/40 pointer-events-none absolute -bottom-10 -left-10 size-40 rounded-full blur-3xl"></div>
<div class="relative flex items-start gap-4">
<div class="bg-primary/10 text-primary ring-primary/20 flex size-10 items-center justify-center rounded-lg ring-1">
diff --git a/frontend/src/routes/settings/general/+page.svelte b/frontend/src/routes/settings/general/+page.svelte
index e89aa9416..d1f24701f 100644
--- a/frontend/src/routes/settings/general/+page.svelte
+++ b/frontend/src/routes/settings/general/+page.svelte
@@ -25,7 +25,7 @@
<div
class="from-background/60 via-background/40 to-background/60 relative overflow-hidden rounded-xl border bg-gradient-to-br p-6 shadow-sm"
>
- <div class="bg-primary/10 pointer-events-none absolute -right-10 -top-10 size-40 rounded-full blur-3xl"></div>
+ <div class="bg-primary/10 pointer-events-none absolute -top-10 -right-10 size-40 rounded-full blur-3xl"></div>
<div class="bg-muted/40 pointer-events-none absolute -bottom-10 -left-10 size-40 rounded-full blur-3xl"></div>
<div class="relative flex items-start gap-4">
<div class="bg-primary/10 text-primary ring-primary/20 flex size-10 items-center justify-center rounded-lg ring-1">
diff --git a/frontend/src/routes/settings/security/+page.svelte b/frontend/src/routes/settings/security/+page.svelte
index 6aaeaf2b7..a28d6e836 100644
--- a/frontend/src/routes/settings/security/+page.svelte
+++ b/frontend/src/routes/settings/security/+page.svelte
@@ -26,7 +26,7 @@
<div
class="from-background/60 via-background/40 to-background/60 relative overflow-hidden rounded-xl border bg-gradient-to-br p-6 shadow-sm"
>
- <div class="bg-primary/10 pointer-events-none absolute -right-10 -top-10 size-40 rounded-full blur-3xl"></div>
+ <div class="bg-primary/10 pointer-events-none absolute -top-10 -right-10 size-40 rounded-full blur-3xl"></div>
<div class="bg-muted/40 pointer-events-none absolute -bottom-10 -left-10 size-40 rounded-full blur-3xl"></div>
<div class="relative flex items-start gap-4">
<div class="bg-primary/10 text-primary ring-primary/20 flex size-10 items-center justify-center rounded-lg ring-1">
diff --git a/frontend/src/routes/volumes/[volumeName]/+page.svelte b/frontend/src/routes/volumes/[volumeName]/+page.svelte
index 000176261..759b26033 100644
--- a/frontend/src/routes/volumes/[volumeName]/+page.svelte
+++ b/frontend/src/routes/volumes/[volumeName]/+page.svelte
@@ -124,7 +124,7 @@
</div>
<div class="min-w-0 flex-1">
<p class="text-muted-foreground text-sm font-medium">Name</p>
- <p class="mt-1 break-words text-base font-semibold">{volume.name}</p>
+ <p class="mt-1 text-base font-semibold break-words">{volume.name}</p>
</div>
</div>
@@ -181,7 +181,7 @@
<div class="min-w-0 flex-1">
<p class="text-muted-foreground text-sm font-medium">Mountpoint</p>
<div class="bg-muted/50 mt-2 rounded-lg border p-3">
- <code class="break-all font-mono text-sm">{volume.mountpoint}</code>
+ <code class="font-mono text-sm break-all">{volume.mountpoint}</code>
</div>
</div>
</div>
@@ -202,7 +202,7 @@
<div class="divide-y rounded-lg border">
{#each volume.containers as id (id)}
<div class="flex items-center justify-between gap-3 p-3">
- <code class="break-all font-mono text-sm">{truncateString(id, 48)}</code>
+ <code class="font-mono text-sm break-all">{truncateString(id, 48)}</code>
<a href={`/containers/${id}`} class="text-primary text-sm hover:underline" title="View container details">
View
</a>
@@ -228,10 +228,10 @@
<div class="bg-card divide-y rounded-lg border">
{#each Object.entries(volume.labels) as [key, value] (key)}
<div class="flex flex-col p-3 sm:flex-row">
- <div class="text-muted-foreground mb-2 w-full break-all font-medium sm:mb-0 sm:w-1/3">
+ <div class="text-muted-foreground mb-2 w-full font-medium break-all sm:mb-0 sm:w-1/3">
{key}
</div>
- <div class="bg-muted/50 w-full break-all rounded p-2 font-mono text-xs sm:w-2/3 sm:text-sm">
+ <div class="bg-muted/50 w-full rounded p-2 font-mono text-xs break-all sm:w-2/3 sm:text-sm">
{value}
</div>
</div>
@@ -254,10 +254,10 @@
<div class="bg-card divide-y rounded-lg border">
{#each Object.entries(volume.options) as [key, value] (key)}
<div class="flex flex-col p-3 sm:flex-row">
- <div class="text-muted-foreground mb-2 w-full break-all font-medium sm:mb-0 sm:w-1/3">
+ <div class="text-muted-foreground mb-2 w-full font-medium break-all sm:mb-0 sm:w-1/3">
{key}
</div>
- <div class="bg-muted/50 w-full break-all rounded p-2 font-mono text-xs sm:w-2/3 sm:text-sm">
+ <div class="bg-muted/50 w-full rounded p-2 font-mono text-xs break-all sm:w-2/3 sm:text-sm">
{value}
</div>
</div>
@@ -269,7 +269,7 @@
{#if (!volume.labels || Object.keys(volume.labels).length === 0) && (!volume.options || Object.keys(volume.options).length === 0)}
<Card.Root class="bg-muted/10 border shadow-sm">
- <Card.Content class="pb-6 pt-6 text-center">
+ <Card.Content class="pt-6 pb-6 text-center">
<div class="flex flex-col items-center justify-center">
<div class="bg-muted/30 mb-4 rounded-full p-3">
<TagIcon class="text-muted-foreground size-5 opacity-50" />