Modern Docker Management, Designed for Everyone
Go composecontainer-managementcontainersdockerdocker-composedocker-managementgoself-hostedsveltekittypescriptweb-ui
refactor: upgrade shadcn-svelte and tailwind classes (#183)
Kyle Mendell75173d0dd095
diff --git a/package-lock.json b/package-lock.jsonindex 3225f662a..c88b10061 100644--- a/package-lock.json+++ b/package-lock.json@@ -20,13 +20,15 @@"dockerode-compose": "^1.4.0","js-yaml": "^4.1.0","nanoid": "^5.1.5",+ "paneforge": "^1.0.0-next.5","prettier": "^3.5.3","prettier-plugin-svelte": "^3.3.3","proper-lockfile": "^4.1.2","slugify": "^1.6.6","svelte-codemirror-editor": "^1.4.1","svelte-kit-cookie-session": "^4.1.1",- "thememirror": "^2.0.1"+ "thememirror": "^2.0.1",+ "vaul-svelte": "^1.0.0-next.7"},"devDependencies": {"@eslint/compat": "^1.2.5",@@ -51,12 +53,12 @@"mode-watcher": "^1.0.7","svelte": "^5.28.2","svelte-check": "^4.1.7",- "svelte-sonner": "^1.0.0",+ "svelte-sonner": "^1.0.1","sveltekit-superforms": "^2.25.0","tailwind-merge": "^3.3.0","tailwind-variants": "^1.0.0",- "tailwindcss": "^4.0.0",- "tailwindcss-animate": "^1.0.7",+ "tailwindcss": "^4.1.6",+ "tw-animate-css": "^1.2.9","typescript": "^5.8.0","typescript-eslint": "^8.32.0","vite": "^6.3.5",@@ -4491,7 +4493,6 @@"version": "0.2.4","resolved": "https://registry.npmjs.org/inline-style-parser/-/inline-style-parser-0.2.4.tgz","integrity": "sha512-0aO8FkhNZlj/ZIbNi7Lxxr12obT7cL1moPfE4tg1LkX7LlLfC6DeX4l2ZEud1ukP9jNQyNnfzQVqwbwmAATY4Q==",- "dev": true,"license": "MIT"},"node_modules/ipaddr.js": {@@ -5378,6 +5379,19 @@"url": "https://github.com/sponsors/sindresorhus"}},+ "node_modules/paneforge": {+ "version": "1.0.0-next.5",+ "resolved": "https://registry.npmjs.org/paneforge/-/paneforge-1.0.0-next.5.tgz",+ "integrity": "sha512-1ArDM+GMEO+o6pixEAFobhTkWkyxUDdHyw2bKruvQIXBStJmdRP7HoV4jNBZ/2i9UHDzmczxJzA3D2tKa91phw==",+ "license": "MIT",+ "dependencies": {+ "runed": "^0.23.4",+ "svelte-toolbelt": "^0.7.1"+ },+ "peerDependencies": {+ "svelte": "^5.20.0"+ }+ },"node_modules/parent-module": {"version": "1.0.1","resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz",@@ -6028,7 +6042,6 @@"version": "0.23.4","resolved": "https://registry.npmjs.org/runed/-/runed-0.23.4.tgz","integrity": "sha512-9q8oUiBYeXIDLWNK5DfCWlkL0EW3oGbk845VdKlPeia28l751VpfesaB/+7pI6rnbx1I6rqoZ2fZxptOJLxILA==",- "dev": true,"funding": ["https://github.com/sponsors/huntabyte","https://github.com/sponsors/tglide"@@ -6398,7 +6411,6 @@"version": "1.0.8","resolved": "https://registry.npmjs.org/style-to-object/-/style-to-object-1.0.8.tgz","integrity": "sha512-xT47I/Eo0rwJmaXC4oilDGDWLohVhR6o/xAQcPQN8q6QBuZVL8qMYL85kLmST5cPjAorwvqIA4qXTRQoYHaL6g==",- "dev": true,"license": "MIT","dependencies": {"inline-style-parser": "0.2.4"@@ -6572,7 +6584,6 @@"version": "0.7.1","resolved": "https://registry.npmjs.org/svelte-toolbelt/-/svelte-toolbelt-0.7.1.tgz","integrity": "sha512-HcBOcR17Vx9bjaOceUvxkY3nGmbBmCBBbuWLLEWO6jtmWH8f/QoWmbyUfQZrpDINH39en1b8mptfPQT9VKQ1xQ==",- "dev": true,"funding": ["https://github.com/sponsors/huntabyte"],@@ -6748,16 +6759,6 @@"dev": true,"license": "MIT"},- "node_modules/tailwindcss-animate": {- "version": "1.0.7",- "resolved": "https://registry.npmjs.org/tailwindcss-animate/-/tailwindcss-animate-1.0.7.tgz",- "integrity": "sha512-bl6mpH3T7I3UFxuvDEXLxy/VuFxBk5bbzplh7tXI68mwMokNYd1t9qPBHlnyTwfa4JGC4zP516I1hYYtQ/vspA==",- "dev": true,- "license": "MIT",- "peerDependencies": {- "tailwindcss": ">=3.0.0 || insiders"- }- },"node_modules/tapable": {"version": "2.2.1","resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.1.tgz",@@ -6935,6 +6936,16 @@"dev": true,"license": "0BSD"},+ "node_modules/tw-animate-css": {+ "version": "1.2.9",+ "resolved": "https://registry.npmjs.org/tw-animate-css/-/tw-animate-css-1.2.9.tgz",+ "integrity": "sha512-9O4k1at9pMQff9EAcCEuy1UNO43JmaPQvq+0lwza9Y0BQ6LB38NiMj+qHqjoQf40355MX+gs6wtlR6H9WsSXFg==",+ "dev": true,+ "license": "MIT",+ "funding": {+ "url": "https://github.com/sponsors/Wombosvideo"+ }+ },"node_modules/tweetnacl": {"version": "0.14.5","resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz",@@ -7102,6 +7113,23 @@"node": ">= 0.8"}},+ "node_modules/vaul-svelte": {+ "version": "1.0.0-next.7",+ "resolved": "https://registry.npmjs.org/vaul-svelte/-/vaul-svelte-1.0.0-next.7.tgz",+ "integrity": "sha512-7zN7Bi3dFQixvvbUJY9uGDe7Ws/dGZeBQR2pXdXmzQiakjrxBvWo0QrmsX3HK+VH+SZOltz378cmgmCS9f9rSg==",+ "license": "MIT",+ "dependencies": {+ "runed": "^0.23.2",+ "svelte-toolbelt": "^0.7.1"+ },+ "engines": {+ "node": ">=18",+ "pnpm": ">=8.7.0"+ },+ "peerDependencies": {+ "svelte": "^5.0.0"+ }+ },"node_modules/vite": {"version": "6.3.5","resolved": "https://registry.npmjs.org/vite/-/vite-6.3.5.tgz",diff --git a/package.json b/package.jsonindex 07a4dc9dd..06c95b481 100644--- a/package.json+++ b/package.json@@ -41,12 +41,12 @@"mode-watcher": "^1.0.7","svelte": "^5.28.2","svelte-check": "^4.1.7",- "svelte-sonner": "^1.0.0",+ "svelte-sonner": "^1.0.1","sveltekit-superforms": "^2.25.0","tailwind-merge": "^3.3.0","tailwind-variants": "^1.0.0",- "tailwindcss": "^4.0.0",- "tailwindcss-animate": "^1.0.7",+ "tailwindcss": "^4.1.6",+ "tw-animate-css": "^1.2.9","typescript": "^5.8.0","typescript-eslint": "^8.32.0","vite": "^6.3.5",@@ -65,12 +65,14 @@"dockerode-compose": "^1.4.0","js-yaml": "^4.1.0","nanoid": "^5.1.5",+ "paneforge": "^1.0.0-next.5","prettier": "^3.5.3","prettier-plugin-svelte": "^3.3.3","proper-lockfile": "^4.1.2","slugify": "^1.6.6","svelte-codemirror-editor": "^1.4.1","svelte-kit-cookie-session": "^4.1.1",- "thememirror": "^2.0.1"+ "thememirror": "^2.0.1",+ "vaul-svelte": "^1.0.0-next.7"}}diff --git a/src/app.css b/src/app.cssindex 549f89906..2eeeb7f63 100644--- a/src/app.css+++ b/src/app.css@@ -1,51 +1,81 @@+@import url('https://fonts.googleapis.com/css2?family=Kantumruy+Pro:ital,wght@0,100..700;1,100..700&display=swap');@import 'tailwindcss';+@import 'tw-animate-css';@config '../tailwind.config.ts';-@layer base {- :root {- --background: 0 0% 100%;- --foreground: 224 71.4% 4.1%;- --card: 0 0% 100%;- --card-foreground: 224 71.4% 4.1%;- --popover: 0 0% 100%;- --popover-foreground: 224 71.4% 4.1%;- --primary: 262.1 83.3% 57.8%;- --primary-foreground: 210 20% 98%;- --secondary: 220 14.3% 95.9%;- --secondary-foreground: 220.9 39.3% 11%;- --muted: 220 14.3% 95.9%;- --muted-foreground: 220 8.9% 46.1%;- --accent: 220 14.3% 95.9%;- --accent-foreground: 220.9 39.3% 11%;- --destructive: 0 72.22% 50.59%;- --destructive-foreground: 210 20% 98%;- --border: 220 13% 91%;- --input: 220 13% 91%;- --ring: 262.1 83.3% 57.8%;- --radius: 1rem;- }- .dark {- --background: 224 71.4% 4.1%;- --foreground: 210 20% 98%;- --card: 224 71.4% 4.1%;- --card-foreground: 210 20% 98%;- --popover: 224 71.4% 4.1%;- --popover-foreground: 210 20% 98%;- --primary: 263.4 70% 50.4%;- --primary-foreground: 210 20% 98%;- --secondary: 215 27.9% 16.9%;- --secondary-foreground: 210 20% 98%;- --muted: 215 27.9% 16.9%;- --muted-foreground: 217.9 10.6% 64.9%;- --accent: 215 27.9% 16.9%;- --accent-foreground: 210 20% 98%;- --destructive: 0 62.8% 30.6%;- --destructive-foreground: 210 20% 98%;- --border: 215 27.9% 16.9%;- --input: 215 27.9% 16.9%;- --ring: 263.4 70% 50.4%;- }+@theme {+ --font-sans: 'Kantumruy Pro', sans-serif;+}++/* Move :root and .dark outside of @layer base with hsl() wrappers */+:root {+ --background: hsl(0 0% 100%);+ --foreground: hsl(224 71.4% 4.1%);+ --card: hsl(0 0% 100%);+ --card-foreground: hsl(224 71.4% 4.1%);+ --popover: hsl(0 0% 100%);+ --popover-foreground: hsl(224 71.4% 4.1%);+ --primary: hsl(262.1 83.3% 57.8%);+ --primary-foreground: hsl(210 20% 98%);+ --secondary: hsl(220 14.3% 95.9%);+ --secondary-foreground: hsl(220.9 39.3% 11%);+ --muted: hsl(220 14.3% 95.9%);+ --muted-foreground: hsl(220 8.9% 46.1%);+ --accent: hsl(220 14.3% 95.9%);+ --accent-foreground: hsl(220.9 39.3% 11%);+ --destructive: hsl(0 72.22% 50.59%);+ --destructive-foreground: hsl(210 20% 98%);+ --border: hsl(220 13% 91%);+ --input: hsl(220 13% 91%);+ --ring: hsl(262.1 83.3% 57.8%);+ --radius: 1rem;+}++.dark {+ --background: hsl(224 71.4% 4.1%);+ --foreground: hsl(210 20% 98%);+ --card: hsl(224 71.4% 4.1%);+ --card-foreground: hsl(210 20% 98%);+ --popover: hsl(224 71.4% 4.1%);+ --popover-foreground: hsl(210 20% 98%);+ --primary: hsl(263.4 70% 50.4%);+ --primary-foreground: hsl(210 20% 98%);+ --secondary: hsl(215 27.9% 16.9%);+ --secondary-foreground: hsl(210 20% 98%);+ --muted: hsl(215 27.9% 16.9%);+ --muted-foreground: hsl(217.9 10.6% 64.9%);+ --accent: hsl(215 27.9% 16.9%);+ --accent-foreground: hsl(210 20% 98%);+ --destructive: hsl(0 62.8% 30.6%);+ --destructive-foreground: hsl(210 20% 98%);+ --border: hsl(215 27.9% 16.9%);+ --input: hsl(215 27.9% 16.9%);+ --ring: hsl(263.4 70% 50.4%);+}++/* Add @theme inline block */+@theme inline {+ --color-background: var(--background);+ --color-foreground: var(--foreground);+ --color-card: var(--card);+ --color-card-foreground: var(--card-foreground);+ --color-popover: var(--popover);+ --color-popover-foreground: var(--popover-foreground);+ --color-primary: var(--primary);+ --color-primary-foreground: var(--primary-foreground);+ --color-secondary: var(--secondary);+ --color-secondary-foreground: var(--secondary-foreground);+ --color-muted: var(--muted);+ --color-muted-foreground: var(--muted-foreground);+ --color-accent: var(--accent);+ --color-accent-foreground: var(--accent-foreground);+ --color-destructive: var(--destructive);+ --color-destructive-foreground: var(--destructive-foreground);+ --color-border: var(--border);+ --color-input: var(--input);+ --color-ring: var(--ring);+ --radius: var(--radius);}@layer base {diff --git a/src/lib/components/action-buttons.svelte b/src/lib/components/action-buttons.svelteindex f25802f14..8f64b40a6 100644--- a/src/lib/components/action-buttons.svelte+++ b/src/lib/components/action-buttons.svelte@@ -152,27 +152,27 @@{#if !isRunning}<Button type="button" variant="default" disabled={isLoading.start || loading.start} class="font-medium" onclick={() => handleStart()}>{#if isLoading.start || loading.start}- <Loader2 class="w-4 h-4 mr-2 animate-spin" />+ <Loader2 class="mr-2 animate-spin size-4" />{:else}- <Play class="w-4 h-4 mr-2" />+ <Play class="mr-2 size-4" />{/if}{type === 'stack' ? 'Deploy' : 'Start'}</Button>{:else}<Button type="button" variant="secondary" disabled={isLoading.stop || loading.stop} class="font-medium" onclick={() => handleStop()}>{#if isLoading.stop || loading.stop}- <Loader2 class="w-4 h-4 animate-spin" />+ <Loader2 class="animate-spin size-4" />{:else}- <StopCircle class="w-4 h-4" />+ <StopCircle class="size-4" />{/if}Stop</Button><Button type="button" variant="outline" disabled={isLoading.restart || loading.restart} class="font-medium" onclick={() => handleRestart()}>{#if isLoading.restart || loading.restart}- <Loader2 class="w-4 h-4 animate-spin" />+ <Loader2 class="animate-spin size-4" />{:else}- <RotateCcw class="w-4 h-4" />+ <RotateCcw class="size-4" />{/if}Restart</Button>@@ -181,36 +181,36 @@{#if type === 'container'}<Button type="button" variant="destructive" disabled={isLoading.remove || loading.remove} class="font-medium" onclick={() => confirmAction('remove')}>{#if isLoading.remove || loading.remove}- <Loader2 class="w-4 h-4 animate-spin" />+ <Loader2 class="animate-spin size-4" />{:else}- <Trash2 class="w-4 h-4" />+ <Trash2 class="size-4" />{/if}Remove</Button>{:else}<Button type="button" variant="secondary" disabled={isLoading.redeploy || loading.redeploy} class="font-medium" onclick={() => confirmAction('redeploy')}>{#if isLoading.redeploy || loading.redeploy}- <Loader2 class="w-4 h-4 animate-spin" />+ <Loader2 class="animate-spin size-4" />{:else}- <RefreshCcwDot class="w-4 h-4" />+ <RefreshCcwDot class="size-4" />{/if}Redeploy</Button><Button type="button" variant="outline" disabled={isLoading.pulling || loading.pull} class="font-medium" onclick={() => handlePull()}>{#if isLoading.pulling || loading.pull}- <Loader2 class="w-4 h-4 animate-spin" />+ <Loader2 class="animate-spin size-4" />{:else}- <Download class="w-4 h-4" />+ <Download class="size-4" />{/if}Pull</Button><Button type="button" variant="destructive" disabled={isLoading.remove || loading.remove} class="font-medium" onclick={() => confirmAction('remove')}>{#if isLoading.remove || loading.remove}- <Loader2 class="w-4 h-4 animate-spin" />+ <Loader2 class="animate-spin size-4" />{:else}- <Trash2 class="w-4 h-4" />+ <Trash2 class="size-4" />{/if}Remove</Button>diff --git a/src/lib/components/confirm-dialog/confirm-dialog.svelte b/src/lib/components/confirm-dialog/confirm-dialog.svelteindex 9aa450c5c..6b6a9bf07 100644--- a/src/lib/components/confirm-dialog/confirm-dialog.svelte+++ b/src/lib/components/confirm-dialog/confirm-dialog.svelte@@ -9,7 +9,7 @@<Dialog.Content class="max-w-md w-full"><Dialog.Header><Dialog.Title class="flex items-center gap-2 text-lg font-semibold">- <AlertTriangle class="h-5 w-5 text-destructive flex-shrink-0" />+ <AlertTriangle class="text-destructive shrink-0 size-5" />{$confirmDialogStore.title}</Dialog.Title></Dialog.Header>diff --git a/src/lib/components/dialogs/prune-confirmation-dialog.svelte b/src/lib/components/dialogs/prune-confirmation-dialog.svelteindex a220427e0..b63fe90c1 100644--- a/src/lib/components/dialogs/prune-confirmation-dialog.svelte+++ b/src/lib/components/dialogs/prune-confirmation-dialog.svelte@@ -85,7 +85,7 @@{#if pruneVolumes}<Alert.Root variant="destructive" class="mt-2">- <AlertCircle class="h-4 w-4" />+ <AlertCircle class="size-4" /><Alert.Title>Warning: Pruning Volumes</Alert.Title><Alert.Description>Pruning volumes permanently deletes data. Ensure you have backups if necessary.</Alert.Description></Alert.Root>@@ -96,9 +96,9 @@<Button variant="outline" onclick={handleCancel} disabled={isPruning}>Cancel</Button><Button variant="destructive" onclick={handleConfirm} disabled={selectedTypes.length === 0 || isPruning}>{#if isPruning}- <Loader2 class="h-4 w-4 mr-2 animate-spin" /> Pruning...+ <Loader2 class="mr-2 animate-spin size-4" /> Pruning...{:else}- <Trash2 class="h-4 w-4 mr-2" /> Prune Selected ({selectedTypes.length})+ <Trash2 class="mr-2 size-4" /> Prune Selected ({selectedTypes.length}){/if}</Button></Dialog.Footer>diff --git a/src/lib/components/dialogs/registry-form-dialog.svelte b/src/lib/components/dialogs/registry-form-dialog.svelteindex 7bc4c62e2..b056272fa 100644--- a/src/lib/components/dialogs/registry-form-dialog.svelte+++ b/src/lib/components/dialogs/registry-form-dialog.svelte@@ -71,7 +71,7 @@<Button type="button" variant="outline" onclick={() => (open = false)} disabled={isLoading}>Cancel</Button><Button type="submit" disabled={isLoading}>{#if isLoading}- <Loader2 class="mr-2 h-4 w-4 animate-spin" />+ <Loader2 class="mr-2 animate-spin size-4" />{/if}{isEditMode ? 'Save Changes' : 'Add Registry'}</Button>diff --git a/src/lib/components/dialogs/user-form-dialog.svelte b/src/lib/components/dialogs/user-form-dialog.svelteindex 39e2aab0f..e635af850 100644--- a/src/lib/components/dialogs/user-form-dialog.svelte+++ b/src/lib/components/dialogs/user-form-dialog.svelte@@ -127,10 +127,10 @@<Button type="button" variant="outline" onclick={() => (open = false)} disabled={isLoading}>Cancel</Button><Button type="submit" disabled={isLoading}>{#if isLoading}- <Loader2 class="mr-2 h-4 w-4 animate-spin" />+ <Loader2 class="mr-2 animate-spin size-4" />Creating...{:else}- <SubmitIcon class="mr-2 h-4 w-4" />+ <SubmitIcon class="mr-2 size-4" />{submitButtonText}{/if}</Button>diff --git a/src/lib/components/navbar.svelte b/src/lib/components/navbar.svelteindex 43d6ae07d..785d3dd0e 100644--- a/src/lib/components/navbar.svelte+++ b/src/lib/components/navbar.svelte@@ -61,10 +61,10 @@{/if}</Button>-<div class={cn('fixed md:sticky top-0 left-0 h-screen md:h-[100dvh] transition-all duration-300 ease-in-out', 'bg-card border-r shadow-sm z-40', 'flex flex-col', isCollapsed ? 'w-[70px]' : 'w-64', isOpen ? 'translate-x-0' : '-translate-x-full md:translate-x-0')}>+<div class={cn('fixed md:sticky top-0 left-0 h-screen md:h-dvh transition-all duration-300 ease-in-out', 'bg-card border-r shadow-sm z-40', 'flex flex-col', isCollapsed ? 'w-[70px]' : 'w-64', isOpen ? 'translate-x-0' : '-translate-x-full md:translate-x-0')}><div class={cn('flex items-center h-14 transition-all duration-300', isCollapsed ? 'justify-center px-2' : 'gap-3 px-5 p-4')}>- <div class="flex-shrink-0">- <img src="/img/arcane.svg" alt="Arcane" class="h-15 w-15" width="30" height="30" />+ <div class="shrink-0">+ <img src="/img/arcane.svg" alt="Arcane" class="size-15" width="30" height="30" /></div>{#if !isCollapsed}<div class="flex flex-col justify-center">@@ -77,7 +77,7 @@<Separator /><div class="hidden md:flex justify-end px-2 -mt-1 mb-1 relative">- <Button variant="outline" size="icon" class="h-6 w-6 rounded-full bg-background absolute right-0 translate-x-1/2" onclick={toggleCollapse} aria-label={isCollapsed ? 'Expand sidebar' : 'Collapse sidebar'}>+ <Button variant="outline" size="icon" class="rounded-full bg-background absolute right-0 translate-x-1/2 size-6" onclick={toggleCollapse} aria-label={isCollapsed ? 'Expand sidebar' : 'Collapse sidebar'}>{#if isCollapsed}<ChevronRight size={14} />{:else}@@ -124,12 +124,12 @@<span>Update available</span><span class="flex items-center">v{versionInformation.newestVersion}- <ExternalLink class="ml-1 h-3 w-3" />+ <ExternalLink class="ml-1 size-3" /></span></a>{:else}<a href={versionInformation.releaseUrl} target="_blank" rel="noopener noreferrer" title="Update available: v{versionInformation.newestVersion}" class="flex justify-center text-blue-500">- <ExternalLink class="h-4 w-4" />+ <ExternalLink class="size-4" /></a>{/if}</div>diff --git a/src/lib/components/ui/dropdown-menu/dropdown-menu-checkbox-item.svelte b/src/lib/components/ui/dropdown-menu/dropdown-menu-checkbox-item.svelteindex a28c7e11b..c2996156c 100644--- a/src/lib/components/ui/dropdown-menu/dropdown-menu-checkbox-item.svelte+++ b/src/lib/components/ui/dropdown-menu/dropdown-menu-checkbox-item.svelte@@ -17,7 +17,7 @@} = $props();</script>-<DropdownMenuPrimitive.CheckboxItem bind:ref bind:checked bind:indeterminate class={cn('data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50', className)} {...restProps}>+<DropdownMenuPrimitive.CheckboxItem bind:ref bind:checked bind:indeterminate class={cn('data-highlighted:bg-accent data-highlighted:text-accent-foreground relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none data-disabled:pointer-events-none data-disabled:opacity-50', className)} {...restProps}>{#snippet children({ checked, indeterminate })}<span class="absolute left-2 flex size-3.5 items-center justify-center">{#if indeterminate}diff --git a/src/lib/components/ui/dropdown-menu/dropdown-menu-content.svelte b/src/lib/components/ui/dropdown-menu/dropdown-menu-content.svelteindex dad7be9fe..6fe32187e 100644--- a/src/lib/components/ui/dropdown-menu/dropdown-menu-content.svelte+++ b/src/lib/components/ui/dropdown-menu/dropdown-menu-content.svelte@@ -18,7 +18,7 @@bind:ref{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 z-50 min-w-[8rem] overflow-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 min-w-32 overflow-hidden rounded-md border p-1 shadow-md outline-none',className)}{...restProps}diff --git a/src/lib/components/ui/dropdown-menu/dropdown-menu-item.svelte b/src/lib/components/ui/dropdown-menu/dropdown-menu-item.svelteindex b639614b5..0b6796ec0 100644--- a/src/lib/components/ui/dropdown-menu/dropdown-menu-item.svelte+++ b/src/lib/components/ui/dropdown-menu/dropdown-menu-item.svelte@@ -14,6 +14,6 @@<DropdownMenuPrimitive.Itembind: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', inset && 'pl-8', className)}+ 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', inset && 'pl-8', className)}{...restProps}/>diff --git a/src/lib/components/ui/dropdown-menu/dropdown-menu-radio-item.svelte b/src/lib/components/ui/dropdown-menu/dropdown-menu-radio-item.svelteindex 02def291b..d2109b5f2 100644--- a/src/lib/components/ui/dropdown-menu/dropdown-menu-radio-item.svelte+++ b/src/lib/components/ui/dropdown-menu/dropdown-menu-radio-item.svelte@@ -6,7 +6,7 @@let { ref = $bindable(null), class: className, children: childrenProp, ...restProps }: WithoutChild<DropdownMenuPrimitive.RadioItemProps> = $props();</script>-<DropdownMenuPrimitive.RadioItem bind:ref class={cn('data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50', className)} {...restProps}>+<DropdownMenuPrimitive.RadioItem bind:ref class={cn('data-highlighted:bg-accent data-highlighted:text-accent-foreground relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none data-disabled:pointer-events-none data-disabled:opacity-50', className)} {...restProps}>{#snippet children({ checked })}<span class="absolute left-2 flex size-3.5 items-center justify-center">{#if checked}diff --git a/src/lib/components/ui/dropdown-menu/dropdown-menu-sub-content.svelte b/src/lib/components/ui/dropdown-menu/dropdown-menu-sub-content.svelteindex 62525ce82..e53b55529 100644--- a/src/lib/components/ui/dropdown-menu/dropdown-menu-sub-content.svelte+++ b/src/lib/components/ui/dropdown-menu/dropdown-menu-sub-content.svelte@@ -5,4 +5,4 @@let { ref = $bindable(null), class: className, ...restProps }: DropdownMenuPrimitive.SubContentProps = $props();</script>-<DropdownMenuPrimitive.SubContent bind:ref class={cn('bg-popover text-popover-foreground z-50 min-w-[8rem] rounded-md border p-1 shadow-lg focus:outline-none', className)} {...restProps} />+<DropdownMenuPrimitive.SubContent bind:ref class={cn('bg-popover text-popover-foreground z-50 min-w-32 rounded-md border p-1 shadow-lg focus:outline-none', className)} {...restProps} />diff --git a/src/lib/components/ui/dropdown-menu/dropdown-menu-sub-trigger.svelte b/src/lib/components/ui/dropdown-menu/dropdown-menu-sub-trigger.svelteindex 42f75bcfc..2cdcda256 100644--- a/src/lib/components/ui/dropdown-menu/dropdown-menu-sub-trigger.svelte+++ b/src/lib/components/ui/dropdown-menu/dropdown-menu-sub-trigger.svelte@@ -14,7 +14,7 @@} = $props();</script>-<DropdownMenuPrimitive.SubTrigger bind:ref class={cn('data-[highlighted]:bg-accent data-[state=open]:bg-accent flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0', inset && 'pl-8', className)} {...restProps}>+<DropdownMenuPrimitive.SubTrigger bind:ref class={cn('data-highlighted:bg-accent data-[state=open]:bg-accent flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0', inset && 'pl-8', className)} {...restProps}>{@render children?.()}<ChevronRight class="ml-auto" /></DropdownMenuPrimitive.SubTrigger>diff --git a/src/lib/components/ui/form/form-label.svelte b/src/lib/components/ui/form/form-label.svelteindex 4b79d84f4..894edd94e 100644--- a/src/lib/components/ui/form/form-label.svelte+++ b/src/lib/components/ui/form/form-label.svelte@@ -9,7 +9,7 @@<FormPrimitive.Label {...restProps} bind:ref>{#snippet child({ props })}- <Label {...props} class={cn('data-[fs-error]:text-destructive', className)}>+ <Label {...props} class={cn('data-fs-error:text-destructive', className)}>{@render children?.()}</Label>{/snippet}diff --git a/src/lib/components/ui/form/form-legend.svelte b/src/lib/components/ui/form/form-legend.svelteindex c926d004a..46670cec0 100644--- a/src/lib/components/ui/form/form-legend.svelte+++ b/src/lib/components/ui/form/form-legend.svelte@@ -6,4 +6,4 @@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 font-medium leading-none', className)} {...restProps} />+<FormPrimitive.Legend bind:ref class={cn('data-fs-error:text-destructive text-sm font-medium leading-none', className)} {...restProps} />diff --git a/src/lib/components/ui/pagination/pagination-next-button.svelte b/src/lib/components/ui/pagination/pagination-next-button.svelteindex 6a0f6a1c1..2dfb2f966 100644--- a/src/lib/components/ui/pagination/pagination-next-button.svelte+++ b/src/lib/components/ui/pagination/pagination-next-button.svelte@@ -8,7 +8,7 @@</script>{#snippet Fallback()}- <ChevronRight class="h-4 w-4" />+ <ChevronRight class="size-4" />{/snippet}<PaginationPrimitive.NextButtondiff --git a/src/lib/components/ui/pagination/pagination-prev-button.svelte b/src/lib/components/ui/pagination/pagination-prev-button.svelteindex 04e89e2ca..ffa8c6fc3 100644--- a/src/lib/components/ui/pagination/pagination-prev-button.svelte+++ b/src/lib/components/ui/pagination/pagination-prev-button.svelte@@ -8,7 +8,7 @@</script>{#snippet Fallback()}- <ChevronLeft class="h-4 w-4" />+ <ChevronLeft class="size-4" />{/snippet}<PaginationPrimitive.PrevButtondiff --git a/src/lib/components/ui/select/select-content.svelte b/src/lib/components/ui/select/select-content.svelteindex 7c41808b4..796c425b5 100644--- a/src/lib/components/ui/select/select-content.svelte+++ b/src/lib/components/ui/select/select-content.svelte@@ -21,13 +21,13 @@bind:ref{sideOffset}class={cn(- '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 bg-popover text-popover-foreground relative z-50 max-h-96 min-w-[8rem] overflow-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',+ '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 bg-popover text-popover-foreground relative z-50 max-h-96 min-w-32 overflow-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',className)}{...restProps}><SelectScrollUpButton />- <SelectPrimitive.Viewport class={cn('h-[var(--bits-select-anchor-height)] w-full min-w-[var(--bits-select-anchor-width)] p-1')}>+ <SelectPrimitive.Viewport class={cn('h-(--bits-select-anchor-height) w-full min-w-(--bits-select-anchor-width) p-1')}>{@render children?.()}</SelectPrimitive.Viewport><SelectScrollDownButton />diff --git a/src/lib/components/ui/select/select-item.svelte b/src/lib/components/ui/select/select-item.svelteindex 69aa470dc..f1dd71d8c 100644--- a/src/lib/components/ui/select/select-item.svelte+++ b/src/lib/components/ui/select/select-item.svelte@@ -6,7 +6,7 @@let { ref = $bindable(null), class: className, value, label, children: childrenProp, ...restProps }: WithoutChild<SelectPrimitive.ItemProps> = $props();</script>-<SelectPrimitive.Item bind:ref {value} class={cn('data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50', className)} {...restProps}>+<SelectPrimitive.Item bind:ref {value} class={cn('data-highlighted:bg-accent data-highlighted:text-accent-foreground relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none data-disabled:pointer-events-none data-disabled:opacity-50', className)} {...restProps}>{#snippet children({ selected, highlighted })}<span class="absolute left-2 flex size-3.5 items-center justify-center">{#if selected}diff --git a/src/lib/components/ui/select/select-trigger.svelte b/src/lib/components/ui/select/select-trigger.svelteindex 3af948d22..7f6ee49f2 100644--- a/src/lib/components/ui/select/select-trigger.svelte+++ b/src/lib/components/ui/select/select-trigger.svelte@@ -6,7 +6,7 @@let { ref = $bindable(null), class: className, children, ...restProps }: WithoutChild<SelectPrimitive.TriggerProps> = $props();</script>-<SelectPrimitive.Trigger bind:ref class={cn('border-input bg-background ring-offset-background data-[placeholder]:text-muted-foreground focus:ring-ring flex h-10 w-full items-center justify-between rounded-md border px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1', className)} {...restProps}>+<SelectPrimitive.Trigger bind:ref class={cn('border-input bg-background ring-offset-background data-placeholder:text-muted-foreground focus:ring-ring flex h-10 w-full items-center justify-between rounded-md border px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1', className)} {...restProps}>{@render children?.()}<ChevronDown class="size-4 opacity-50" /></SelectPrimitive.Trigger>diff --git a/src/lib/components/ui/separator/separator.svelte b/src/lib/components/ui/separator/separator.svelteindex 00c765f48..18d33bf63 100644--- a/src/lib/components/ui/separator/separator.svelte+++ b/src/lib/components/ui/separator/separator.svelte@@ -5,4 +5,4 @@let { ref = $bindable(null), class: className, orientation = 'horizontal', ...restProps }: SeparatorPrimitive.RootProps = $props();</script>-<SeparatorPrimitive.Root bind:ref class={cn('bg-border shrink-0', orientation === 'horizontal' ? 'h-[1px] w-full' : 'min-h-full w-[1px]', className)} {orientation} {...restProps} />+<SeparatorPrimitive.Root bind:ref class={cn('bg-border shrink-0', orientation === 'horizontal' ? 'h-px w-full' : 'min-h-full w-px', className)} {orientation} {...restProps} />diff --git a/src/lib/components/ui/tooltip/index.ts b/src/lib/components/ui/tooltip/index.tsindex e9e1fd739..034ab2079 100644--- a/src/lib/components/ui/tooltip/index.ts+++ b/src/lib/components/ui/tooltip/index.ts@@ -1,5 +1,5 @@-import { Tooltip as TooltipPrimitive } from "bits-ui";-import Content from "./tooltip-content.svelte";+import { Tooltip as TooltipPrimitive } from 'bits-ui';+import Content from './tooltip-content.svelte';const Root = TooltipPrimitive.Root;const Trigger = TooltipPrimitive.Trigger;@@ -14,5 +14,5 @@ export {Root as Tooltip,Content as TooltipContent,Trigger as TooltipTrigger,- Provider as TooltipProvider,+ Provider as TooltipProvider};diff --git a/src/lib/components/ui/tooltip/tooltip-content.svelte b/src/lib/components/ui/tooltip/tooltip-content.svelteindex 68ff232ba..c805815f8 100644--- a/src/lib/components/ui/tooltip/tooltip-content.svelte+++ b/src/lib/components/ui/tooltip/tooltip-content.svelte@@ -1,20 +1,15 @@<script lang="ts">- import { Tooltip as TooltipPrimitive } from "bits-ui";- import { cn } from "$lib/utils.js";+ import { Tooltip as TooltipPrimitive } from 'bits-ui';+ import { cn } from '$lib/utils.js';- let {- ref = $bindable(null),- class: className,- sideOffset = 4,- ...restProps- }: TooltipPrimitive.ContentProps = $props();+ let { ref = $bindable(null), class: className, sideOffset = 4, ...restProps }: TooltipPrimitive.ContentProps = $props();</script><TooltipPrimitive.Contentbind:ref{sideOffset}class={cn(- "bg-popover text-popover-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-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 overflow-hidden rounded-md border px-3 py-1.5 text-sm shadow-md",+ 'bg-popover text-popover-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-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 overflow-hidden rounded-md border px-3 py-1.5 text-sm shadow-md',className)}{...restProps}diff --git a/src/lib/components/universal-table.svelte b/src/lib/components/universal-table.svelteindex 639adf694..3d28ada7d 100644--- a/src/lib/components/universal-table.svelte+++ b/src/lib/components/universal-table.svelte@@ -152,7 +152,7 @@{#each table.getHeaderGroups() as headerGroup (headerGroup.id)}<Table.Row>{#if enableSelection}- <Table.Head class="w-12">+ <Table.Head class="size-12"><Checkbox checked={allRowsSelected} onCheckedChange={(checked) => table.toggleAllPageRowsSelected(!!checked)} /></Table.Head>{/if}@@ -181,7 +181,7 @@{@const isDisabled = 'isExternal' in row.original && !!row.original.isExternal}<Table.Row data-state={row.getIsSelected() && 'selected'}>{#if enableSelection}- <Table.Cell class="w-12">+ <Table.Cell class="size-12"><Checkboxchecked={row.getIsSelected()}disabled={isDisabled}@@ -208,7 +208,7 @@{/each}{:else}<Table.Row>- <Table.Cell colspan={enableSelection ? columns.length + 1 : columns.length} class="h-24 text-center">+ <Table.Cell colspan={enableSelection ? columns.length + 1 : columns.length} class="text-center size-24">{noResultsMessage}</Table.Cell></Table.Row>diff --git a/src/lib/utils.ts b/src/lib/utils.tsindex 404e855e7..d6304fd36 100644--- a/src/lib/utils.ts+++ b/src/lib/utils.ts@@ -18,32 +18,3 @@ export function debounced<T extends (...args: any[]) => void>(func: T, delay: nu}, delay);};}--export function formatBytes(bytes: number, decimals = 2): string {- if (!+bytes) return '0 Bytes';- const k = 1024;- const dm = decimals < 0 ? 0 : decimals;- const sizes = ['Bytes', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'];- const i = Math.floor(Math.log(bytes) / Math.log(k));- return `${parseFloat((bytes / Math.pow(k, i)).toFixed(dm))} ${sizes[i]}`;-}--export function formatDate(dateString: string | undefined | null): string {- if (!dateString) return 'Unknown';- try {- return new Date(dateString).toLocaleString();- } catch (e) {- return 'Invalid Date';- }-}--// Function to format logs with some basic highlighting-export function formatLogLine(line: string): string {- if (line.includes('ERROR') || line.includes('FATAL') || line.includes('WARN')) {- return `<span class="text-red-400">${line}</span>`;- }- if (line.includes('INFO')) {- return `<span class="text-blue-400">${line}</span>`;- }- return line;-}diff --git a/src/lib/utils/bytes.ts b/src/lib/utils/bytes.util.tssimilarity index 67%rename from src/lib/utils/bytes.tsrename to src/lib/utils/bytes.util.tsindex b78acd21a..e23312338 100644--- a/src/lib/utils/bytes.ts+++ b/src/lib/utils/bytes.util.ts@@ -24,3 +24,12 @@ export function parseBytes(input: string): number {throw new Error(`Invalid memory unit: ${unit}. Use b, k, m, or g.`);}}++export function formatBytes(bytes: number, decimals = 2): string {+ if (!+bytes) return '0 Bytes';+ const k = 1024;+ const dm = decimals < 0 ? 0 : decimals;+ const sizes = ['Bytes', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'];+ const i = Math.floor(Math.log(bytes) / Math.log(k));+ return `${parseFloat((bytes / Math.pow(k, i)).toFixed(dm))} ${sizes[i]}`;+}diff --git a/src/lib/utils/string.utils.ts b/src/lib/utils/string.utils.tsindex a7d605829..082cbbdd9 100644--- a/src/lib/utils/string.utils.ts+++ b/src/lib/utils/string.utils.ts@@ -15,3 +15,23 @@ export function truncateString(str: string | undefined, maxLength: number): stri}return str.substring(0, maxLength - 3) + '...';}++export function formatDate(dateString: string | undefined | null): string {+ if (!dateString) return 'Unknown';+ try {+ return new Date(dateString).toLocaleString();+ } catch (e) {+ return 'Invalid Date';+ }+}++// Function to format logs with some basic highlighting+export function formatLogLine(line: string): string {+ if (line.includes('ERROR') || line.includes('FATAL') || line.includes('WARN')) {+ return `<span class="text-red-400">${line}</span>`;+ }+ if (line.includes('INFO')) {+ return `<span class="text-blue-400">${line}</span>`;+ }+ return line;+}diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelteindex 71c2d38fa..412640e02 100644--- a/src/routes/+layout.svelte+++ b/src/routes/+layout.svelte@@ -26,7 +26,7 @@<!-- Loading Indicator -->{#if isNavigating}- <div class="fixed top-0 left-0 right-0 h-2 z-50">+ <div class="fixed top-0 left-0 right-0 z-50 h-2"><div class="h-full bg-primary animate-pulse"></div></div>{/if}diff --git a/src/routes/+page.svelte b/src/routes/+page.svelteindex 4b3ec8fe5..5ddac66f1 100644--- a/src/routes/+page.svelte+++ b/src/routes/+page.svelte@@ -7,14 +7,13 @@import * as Alert from '$lib/components/ui/alert/index.js';import { Progress } from '$lib/components/ui/progress/index.js';import { capitalizeFirstLetter, truncateString } from '$lib/utils/string.utils';- import { formatBytes } from '$lib/utils';+ import { formatBytes } from '$lib/utils/bytes.util';import StatusBadge from '$lib/components/badges/status-badge.svelte';import { invalidateAll } from '$app/navigation';import { toast } from 'svelte-sonner';import PruneConfirmationDialog from '$lib/components/dialogs/prune-confirmation-dialog.svelte';import * as Table from '$lib/components/ui/table';import { statusVariantMap } from '$lib/types/statuses';- import { shortId } from '$lib/utils/string.utils';import { handleApiResultWithCallbacks } from '$lib/utils/api.util';import { tryCatch } from '$lib/utils/try-catch';import ContainerAPIService from '$lib/services/api/container-api-service';@@ -134,9 +133,9 @@</div><Button variant="outline" size="sm" class="h-9" onclick={refreshData} disabled={isLoading.refreshing || isLoading.starting || isLoading.stopping || isLoading.pruning}>{#if isLoading.refreshing}- <Loader2 class="h-4 w-4 mr-2 animate-spin" />+ <Loader2 class="mr-2 animate-spin size-4" />{:else}- <RefreshCw class="h-4 w-4 mr-2" />+ <RefreshCw class="mr-2 size-4" />{/if}Refresh</Button>@@ -144,7 +143,7 @@{#if dashboardStates.error}<Alert.Root variant="destructive">- <AlertCircle class="h-4 w-4 mr-2" />+ <AlertCircle class="mr-2 size-4" /><Alert.Title>Connection Error</Alert.Title><Alert.Description>{dashboardStates.error} Please check your Docker connection in@@ -172,11 +171,11 @@</div></div><div class="bg-green-500/10 p-2 rounded-full">- <Box class="h-5 w-5 text-green-500" />+ <Box class="text-green-500 size-5" /></div></div>{#if dashboardStates.containers?.length}- <Progress value={(runningContainers / dashboardStates.containers.length) * 100} class="h-1 mt-4" />+ <Progress value={(runningContainers / dashboardStates.containers.length) * 100} class="mt-4 h-2" />{/if}</Card.Content></Card.Root>@@ -189,7 +188,7 @@<p class="text-2xl font-bold mt-1">{dashboardStates.dockerInfo?.Images || 0}</p></div><div class="bg-blue-500/10 p-2 rounded-full">- <HardDrive class="h-5 w-5 text-blue-500" />+ <HardDrive class="text-blue-500 size-5" /></div></div>{#if totalImageSize > 0}@@ -210,7 +209,7 @@<p class="text-2xl font-bold mt-1">{dashboardStates.dockerInfo?.NCPU || 'N/A'}</p></div><div class="bg-purple-500/10 p-2 rounded-full">- <Cpu class="h-5 w-5 text-purple-500" />+ <Cpu class="text-purple-500 size-5" /></div></div><div class="mt-4 text-xs text-muted-foreground">@@ -229,7 +228,7 @@</p></div><div class="bg-amber-500/10 p-2 rounded-full">- <MemoryStick class="h-5 w-5 text-amber-500" />+ <MemoryStick class="text-amber-500 size-5" /></div></div><div class="mt-4 text-xs text-muted-foreground">@@ -249,9 +248,9 @@<Card.Root class="flex flex-col justify-center items-center p-5 h-full"><Button onclick={handleStartAll} class="w-full" disabled={!dashboardStates.dockerInfo || stoppedContainers === 0 || isLoading.starting || isLoading.stopping || isLoading.pruning} variant="default">{#if isLoading.starting}- <Loader2 class="h-4 w-4 mr-2 animate-spin" />+ <Loader2 class="mr-2 animate-spin size-4" />{:else}- <PlayCircle class="h-4 w-4 mr-2" />+ <PlayCircle class="mr-2 size-4" />{/if}Start All Stopped<StatusBadge variant="amber" text={stoppedContainers.toString()} />@@ -262,9 +261,9 @@<Card.Root class="flex flex-col justify-center items-center p-5 h-full"><Button onclick={handleStopAll} class="w-full" variant="secondary" disabled={!dashboardStates.dockerInfo || runningContainers === 0 || isLoading.starting || isLoading.stopping || isLoading.pruning}>{#if isLoading.stopping}- <Loader2 class="h-4 w-4 mr-2 animate-spin" />+ <Loader2 class="mr-2 animate-spin size-4" />{:else}- <StopCircle class="h-4 w-4 mr-2" />+ <StopCircle class="mr-2 size-4" />{/if}Stop All Running<StatusBadge variant="amber" text={runningContainers.toString()} />@@ -275,9 +274,9 @@<Card.Root class="flex flex-col justify-center items-center p-5 h-full"><Button onclick={() => (dashboardStates.isPruneDialogOpen = true)} class="w-full" variant="destructive" disabled={!dashboardStates.dockerInfo || isLoading.starting || isLoading.stopping || isLoading.pruning}>{#if isLoading.pruning}- <Loader2 class="h-4 w-4 mr-2 animate-spin" />+ <Loader2 class="mr-2 animate-spin size-4" />{:else}- <Trash2 class="h-4 w-4 mr-2" />+ <Trash2 class="mr-2 size-4" />{/if}Prune System</Button>@@ -298,7 +297,7 @@</div><Button variant="ghost" size="sm" href="/containers" disabled={!dashboardStates.dockerInfo}>View All- <ArrowRight class="ml-2 h-4 w-4" />+ <ArrowRight class="ml-2 size-4" /></Button></div></Card.Header>@@ -346,7 +345,7 @@</div>{:else if !dashboardStates.error}<div class="flex flex-col items-center justify-center py-10 px-6 text-center">- <Box class="h-8 w-8 text-muted-foreground mb-2 opacity-40" />+ <Box class="text-muted-foreground mb-2 opacity-40 size-8" /><p class="text-sm text-muted-foreground">No containers found</p><p class="text-xs text-muted-foreground mt-1">Use Docker CLI or another tool to create containers</p></div>@@ -363,7 +362,7 @@</div><Button variant="ghost" size="sm" href="/images" disabled={!dashboardStates.dockerInfo}>View All- <ArrowRight class="ml-2 h-4 w-4" />+ <ArrowRight class="ml-2 size-4" /></Button></div></Card.Header>@@ -419,7 +418,7 @@</div>{:else if !dashboardStates.error}<div class="flex flex-col items-center justify-center py-10 px-6 text-center">- <HardDrive class="h-8 w-8 text-muted-foreground mb-2 opacity-40" />+ <HardDrive class="text-muted-foreground mb-2 opacity-40 size-8" /><p class="text-sm text-muted-foreground">No images found</p><p class="text-xs text-muted-foreground mt-1">Pull images using Docker CLI or another tool</p></div>@@ -433,12 +432,12 @@<div class="flex justify-between items-center text-muted-foreground text-sm"><div class="flex items-center"><a href="/settings" class="hover:text-foreground transition-colors" title="Settings">- <Settings class="h-4 w-4" />+ <Settings class="size-4" /><span class="sr-only">Settings</span></a><span class="mx-2">•</span><a href="https://github.com/ofkm/arcane" target="_blank" rel="noopener noreferrer" class="hover:text-foreground transition-colors" title="GitHub">- <svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="h-4 w-4 fill-current">+ <svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="fill-current size-4"><title>GitHub</title><pathd="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"diff --git a/src/routes/api/images/prune/+server.ts b/src/routes/api/images/prune/+server.tsindex a197388b8..5d6ae6f43 100644--- a/src/routes/api/images/prune/+server.ts+++ b/src/routes/api/images/prune/+server.ts@@ -2,7 +2,7 @@ import { json } from '@sveltejs/kit';import type { RequestHandler } from './$types';import { pruneImages } from '$lib/services/docker/image-service';import { getSettings } from '$lib/services/settings-service';-import { formatBytes } from '$lib/utils';+import { formatBytes } from '$lib/utils/bytes.util';import { ApiErrorCode, type ApiErrorResponse } from '$lib/types/errors.type';import { extractDockerErrorMessage } from '$lib/utils/errors.util';import { tryCatch } from '$lib/utils/try-catch';diff --git a/src/routes/api/system/prune/+server.ts b/src/routes/api/system/prune/+server.tsindex 9850faa76..0568fe9e8 100644--- a/src/routes/api/system/prune/+server.ts+++ b/src/routes/api/system/prune/+server.ts@@ -1,7 +1,7 @@import { json } from '@sveltejs/kit';import { pruneSystem } from '$lib/services/docker/system-service';import type { RequestHandler } from './$types';-import { formatBytes } from '$lib/utils';+import { formatBytes } from '$lib/utils/bytes.util';import type { PruneType } from '$lib/types/actions.type';import { ApiErrorCode, type ApiErrorResponse } from '$lib/types/errors.type';import { tryCatch } from '$lib/utils/try-catch';diff --git a/src/routes/auth/login/+page.svelte b/src/routes/auth/login/+page.svelteindex f297675ab..d6c51255a 100644--- a/src/routes/auth/login/+page.svelte+++ b/src/routes/auth/login/+page.svelte@@ -35,7 +35,7 @@<div class="flex max-h-screen flex-col justify-center my-auto py-12 sm:px-6 lg:px-8"><div class="mx-auto w-full max-w-md">- <img class="h-40 w-auto mx-auto" src="/img/arcane.png" alt="Arcane" />+ <img class="w-auto mx-auto size-40" src="/img/arcane.png" alt="Arcane" /><h2 class="mt-2 text-center text-2xl font-bold leading-9 tracking-tight">Sign in to Arcane</h2></div>@@ -43,7 +43,7 @@<div class="bg-card px-6 py-5 shadow sm:rounded-lg sm:px-12">{#if data.error}<Alert.Root class="mb-4" variant="destructive">- <AlertCircle class="h-4 w-4 mr-2" />+ <AlertCircle class="mr-2 size-4" /><Alert.Title>Login Problem</Alert.Title><Alert.Description>{#if data.error === 'oidc_invalid_response'}@@ -68,7 +68,7 @@{/if}{#if form?.error}<Alert.Root class="mb-4" variant="destructive">- <AlertCircle class="h-4 w-4 mr-2" />+ <AlertCircle class="mr-2 size-4" /><Alert.Title>Authentication Failed</Alert.Title><Alert.Description>{form.error}</Alert.Description></Alert.Root>@@ -76,7 +76,7 @@{#if !showLocalLoginForm && !showOidcLoginButton}<Alert.Root variant="destructive">- <AlertCircle class="h-4 w-4 mr-2" />+ <AlertCircle class="mr-2 size-4" /><Alert.Title>No Login Methods Configured</Alert.Title><Alert.Description>There are currently no login methods enabled. Please contact an administrator.</Alert.Description></Alert.Root>@@ -142,7 +142,7 @@{#if showOidcLoginButton}<div class="mt-6 {showLocalLoginForm ? '' : 'pt-0'}"><Button onclick={handleOidcLogin} variant="outline" class="w-full">- <LogIn class="mr-2 h-4 w-4" />+ <LogIn class="mr-2 size-4" />Sign in with OIDC Provider</Button></div>diff --git a/src/routes/containers/+page.svelte b/src/routes/containers/+page.svelteindex 6ddae6461..4b52e5119 100644--- a/src/routes/containers/+page.svelte+++ b/src/routes/containers/+page.svelte@@ -137,7 +137,7 @@<p class="text-2xl font-bold">{totalContainers}</p></div><div class="bg-primary/10 p-2 rounded-full">- <Box class="h-5 w-5 text-primary" />+ <Box class="text-primary size-5" /></div></Card.Content></Card.Root>@@ -149,7 +149,7 @@<p class="text-2xl font-bold">{runningContainers}</p></div><div class="bg-green-500/10 p-2 rounded-full">- <Box class="h-5 w-5 text-green-500" />+ <Box class="text-green-500 size-5" /></div></Card.Content></Card.Root>@@ -161,7 +161,7 @@<p class="text-2xl font-bold">{stoppedContainers}</p></div><div class="bg-amber-500/10 p-2 rounded-full">- <Box class="h-5 w-5 text-amber-500" />+ <Box class="text-amber-500 size-5" /></div></Card.Content></Card.Root>@@ -169,16 +169,16 @@{#if containers?.length === 0}<div class="flex flex-col items-center justify-center py-12 px-6 text-center border rounded-lg bg-card">- <Box class="h-12 w-12 text-muted-foreground mb-4 opacity-40" />+ <Box class="text-muted-foreground mb-4 opacity-40 size-12" /><p class="text-lg font-medium">No containers found</p><p class="text-sm text-muted-foreground mt-1 max-w-md">Create a new container using the "Create Container" button above or use the Docker CLI</p><div class="flex gap-3 mt-4"><Button variant="secondary" onclick={refreshData}>- <RefreshCw class="h-4 w-4" />+ <RefreshCw class="size-4" />Refresh</Button><Button variant="secondary" onclick={openCreateDialog}>- <Plus class="h-4 w-4" />+ <Plus class="size-4" />Create Container</Button></div>@@ -193,7 +193,7 @@</div><div class="flex items-center gap-2"><Button variant="secondary" onclick={openCreateDialog}>- <Plus class="w-4 h-4" />+ <Plus class="size-4" />Create Container</Button></div>@@ -239,34 +239,34 @@<DropdownMenu.Content align="end"><DropdownMenu.Group><DropdownMenu.Item onclick={() => goto(`/containers/${item.id}`)} disabled={isAnyLoading}>- <ScanSearch class="w-4 h-4" />+ <ScanSearch class="size-4" />Inspect</DropdownMenu.Item>{#if item.state !== 'running'}<DropdownMenu.Item onclick={() => performContainerAction('start', item.id)} disabled={isLoading.start || isAnyLoading}>{#if isLoading.start}- <Loader2 class="w-4 h-4 animate-spin" />+ <Loader2 class="animate-spin size-4" />{:else}- <Play class="w-4 h-4" />+ <Play class="size-4" />{/if}Start</DropdownMenu.Item>{:else}<DropdownMenu.Item onclick={() => performContainerAction('restart', item.id)} disabled={isLoading.restart || isAnyLoading}>{#if isLoading.restart}- <Loader2 class="w-4 h-4 animate-spin" />+ <Loader2 class="animate-spin size-4" />{:else}- <RotateCcw class="w-4 h-4" />+ <RotateCcw class="size-4" />{/if}Restart</DropdownMenu.Item><DropdownMenu.Item onclick={() => performContainerAction('stop', item.id)} disabled={isLoading.stop || isAnyLoading}>{#if isLoading.stop}- <Loader2 class="w-4 h-4 animate-spin" />+ <Loader2 class="animate-spin size-4" />{:else}- <StopCircle class="w-4 h-4" />+ <StopCircle class="size-4" />{/if}Stop</DropdownMenu.Item>@@ -274,11 +274,11 @@<DropdownMenu.Separator />- <DropdownMenu.Item class="text-red-500 focus:!text-red-700" onclick={() => handleRemoveContainer(item.id)} disabled={isLoading.remove || isAnyLoading}>+ <DropdownMenu.Item class="text-red-500 focus:text-red-700!" onclick={() => handleRemoveContainer(item.id)} disabled={isLoading.remove || isAnyLoading}>{#if isLoading.remove}- <Loader2 class="w-4 h-4 animate-spin" />+ <Loader2 class="animate-spin size-4" />{:else}- <Trash2 class="w-4 h-4" />+ <Trash2 class="size-4" />{/if}Remove</DropdownMenu.Item>diff --git a/src/routes/containers/[id]/+page.svelte b/src/routes/containers/[id]/+page.svelteindex 9849f154c..2f36e3523 100644--- a/src/routes/containers/[id]/+page.svelte+++ b/src/routes/containers/[id]/+page.svelte@@ -7,7 +7,8 @@import { invalidateAll } from '$app/navigation';import { Badge } from '$lib/components/ui/badge/index.js';import ActionButtons from '$lib/components/action-buttons.svelte';- import { formatDate, formatLogLine, formatBytes } from '$lib/utils';+ import { formatDate, formatLogLine } from '$lib/utils/string.utils';+ import { formatBytes } from '$lib/utils/bytes.util';import type Docker from 'dockerode';import type { ContainerInspectInfo } from 'dockerode';import StatusBadge from '$lib/components/badges/status-badge.svelte';@@ -288,8 +289,8 @@<Card.Content><div class="grid grid-cols-1 sm:grid-cols-2 gap-6"><div class="flex items-start gap-3">- <div class="bg-blue-500/10 p-2 rounded-full h-10 w-10 flex items-center justify-center flex-shrink-0">- <HardDrive class="h-5 w-5 text-blue-500" />+ <div class="bg-blue-500/10 p-2 rounded-full flex items-center justify-center shrink-0 size-10">+ <HardDrive class="text-blue-500 size-5" /></div><div class="min-w-0 flex-1"><p class="text-sm font-medium text-muted-foreground">Image</p>@@ -302,8 +303,8 @@</div><div class="flex items-start gap-3">- <div class="bg-green-500/10 p-2 rounded-full h-10 w-10 flex items-center justify-center flex-shrink-0">- <Clock class="h-5 w-5 text-green-500" />+ <div class="bg-green-500/10 p-2 rounded-full flex items-center justify-center shrink-0 size-10">+ <Clock class="text-green-500 size-5" /></div><div class="min-w-0 flex-1"><p class="text-sm font-medium text-muted-foreground">Created</p>@@ -314,8 +315,8 @@</div><div class="flex items-start gap-3">- <div class="bg-purple-500/10 p-2 rounded-full h-10 w-10 flex items-center justify-center flex-shrink-0">- <Network class="h-5 w-5 text-purple-500" />+ <div class="bg-purple-500/10 p-2 rounded-full flex items-center justify-center shrink-0 size-10">+ <Network class="text-purple-500 size-5" /></div><div class="min-w-0 flex-1"><p class="text-sm font-medium text-muted-foreground">IP Address</p>@@ -326,8 +327,8 @@</div><div class="flex items-start gap-3">- <div class="bg-amber-500/10 p-2 rounded-full h-10 w-10 flex items-center justify-center flex-shrink-0">- <Terminal class="h-5 w-5 text-amber-500" />+ <div class="bg-amber-500/10 p-2 rounded-full flex items-center justify-center shrink-0 size-10">+ <Terminal class="text-amber-500 size-5" /></div><div class="min-w-0 flex-1"><p class="text-sm font-medium text-muted-foreground">Command</p>@@ -399,7 +400,7 @@{@const [key, ...valueParts] = env.split('=')}{@const value = valueParts.join('=')}<div class="flex w-full">- <span class="font-semibold mr-2 min-w-[120px] max-w-[180px] truncate flex-shrink-0" title={key}>{key}:</span>+ <span class="font-semibold mr-2 min-w-[120px] max-w-[180px] truncate shrink-0" title={key}>{key}:</span><span class="truncate flex-1" title={value}>{value}</span></div>{:else}@@ -459,7 +460,7 @@{#each Object.entries(container.labels) as [key, value] (key)}<div class="text-xs flex overflow-hidden"><div class="flex w-full">- <span class="font-semibold mr-2 min-w-[120px] max-w-[180px] truncate flex-shrink-0" title={key}>{key}:</span>+ <span class="font-semibold mr-2 min-w-[120px] max-w-[180px] truncate shrink-0" title={key}>{key}:</span><span class="truncate flex-1" title={value?.toString()}>{value?.toString() || ''}</span></div></div>@@ -626,7 +627,7 @@</div>{:else}<div class="text-center py-8 border rounded-md border-dashed">- <div class="mb-3 w-12 h-12 rounded-full bg-muted/50 flex items-center justify-center mx-auto">+ <div class="mb-3 rounded-full bg-muted/50 flex items-center justify-center mx-auto size-12"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="text-muted-foreground"><path d="M21 5c0-1.1-.9-2-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0-2-2H5a2 2 0 0 0-2-2V5Z"></path><path d="M2 10h20"></path>@@ -663,7 +664,7 @@<Card.Content><div- class="bg-muted/50 text-foreground p-4 rounded-md font-mono text-xs h-[500px] overflow-auto border"+ class="bg-muted/50 text-foreground p-4 rounded-md font-mono text-xs overflow-auto border size-[500px]"bind:this={logsContainer}id="logs-container"style="overflow-x: auto;"@@ -680,7 +681,7 @@<pre class="m-0 whitespace-pre-wrap break-words">{@html formattedLogHtml}</pre>{:else}<div class="flex flex-col items-center justify-center h-full text-center">- <Terminal class="h-8 w-8 text-muted-foreground mb-3 opacity-40" />+ <Terminal class="text-muted-foreground mb-3 opacity-40 size-8" /><p class="text-muted-foreground italic">No logs available. The container may not have started yet or produces no output.</p></div>{/if}@@ -708,27 +709,27 @@<div class="space-y-6"><div><div class="flex justify-between items-center mb-2">- <span class="text-sm font-medium flex items-center gap-2"><Cpu class="h-4 w-4 text-muted-foreground" /> CPU Usage</span>+ <span class="text-sm font-medium flex items-center gap-2"><Cpu class="text-muted-foreground size-4" /> CPU Usage</span><span class="text-sm font-semibold">{cpuUsagePercent.toFixed(2)}%</span></div>- <div class="w-full bg-secondary rounded-full h-3 overflow-hidden">- <div class="bg-primary h-3 rounded-full transition-all duration-300" style="width: {Math.min(cpuUsagePercent, 100)}%"></div>+ <div class="w-full bg-secondary rounded-full overflow-hidden size-3">+ <div class="bg-primary rounded-full transition-all duration-300 size-3" style="width: {Math.min(cpuUsagePercent, 100)}%"></div></div></div><div><div class="flex justify-between items-center mb-2">- <span class="text-sm font-medium flex items-center gap-2"><MemoryStick class="h-4 w-4 text-muted-foreground" /> Memory Usage</span>+ <span class="text-sm font-medium flex items-center gap-2"><MemoryStick class="text-muted-foreground size-4" /> Memory Usage</span><span class="text-sm font-semibold">{memoryUsageFormatted} / {memoryLimitFormatted}</span></div>- <div class="w-full bg-secondary rounded-full h-3 overflow-hidden">- <div class="bg-primary h-3 rounded-full transition-all duration-300" style="width: {memoryUsagePercent.toFixed(2)}%"></div>+ <div class="w-full bg-secondary rounded-full overflow-hidden size-3">+ <div class="bg-primary rounded-full transition-all duration-300 size-3" style="width: {memoryUsagePercent.toFixed(2)}%"></div></div></div><div><h4 class="text-sm font-medium mb-2 flex items-center gap-2">- <Network class="h-4 w-4 text-muted-foreground" /> Network I/O+ <Network class="text-muted-foreground size-4" /> Network I/O</h4><div class="grid grid-cols-2 gap-4 bg-muted/30 p-3 rounded-md"><div>@@ -781,17 +782,17 @@{:else}<div class="flex flex-col items-center justify-center py-12 border rounded-lg shadow-sm bg-card"><div class="rounded-full bg-muted/50 p-4 mb-4">- <AlertCircle class="h-8 w-8 text-muted-foreground" />+ <AlertCircle class="text-muted-foreground size-8" /></div><h2 class="text-lg font-medium mb-2">Container Not Found</h2><p class="text-center text-muted-foreground max-w-md">Could not load container data. It may have been removed or the Docker engine is not accessible.</p><div class="flex gap-3 mt-6"><Button variant="outline" href="/containers">- <ArrowLeft class="h-4 w-4 mr-2" />+ <ArrowLeft class="mr-2 size-4" />Back to Containers</Button><Button variant="default" onclick={refreshData}>- <RefreshCw class="h-4 w-4 mr-2" />+ <RefreshCw class="mr-2 size-4" />Retry</Button></div>diff --git a/src/routes/containers/create-container-dialog.svelte b/src/routes/containers/create-container-dialog.svelteindex 37200fa9a..81f682564 100644--- a/src/routes/containers/create-container-dialog.svelte+++ b/src/routes/containers/create-container-dialog.svelte@@ -8,7 +8,7 @@import { AlertCircle, Eye, EyeOff, Loader2, Plus, Trash } from '@lucide/svelte';import * as Select from '$lib/components/ui/select/index.js';import * as Tabs from '$lib/components/ui/tabs/index.js';- import { parseBytes } from '$lib/utils/bytes';+ import { parseBytes } from '$lib/utils/bytes.util';import { toast } from 'svelte-sonner';import { invalidateAll } from '$app/navigation';import Switch from '$lib/components/ui/switch/switch.svelte';@@ -349,7 +349,7 @@<Input id={`host-port-${index}`} bind:value={port.hostPort} placeholder="e.g., 8080" disabled={isCreating} type="text" pattern="[0-9]*" inputmode="numeric" class={port.hostError && port.hostPort ? 'border-red-500' : ''} />{#if port.hostError && port.hostPort}<div class="flex items-center text-xs text-red-500 mt-1">- <AlertCircle class="h-3 w-3 mr-1" />+ <AlertCircle class="mr-1 size-3" />{port.hostError}</div>{/if}@@ -360,20 +360,20 @@<Input id={`container-port-${index}`} bind:value={port.containerPort} placeholder="e.g., 80" disabled={isCreating} type="text" pattern="[0-9]*" inputmode="numeric" class={port.containerError && port.containerPort ? 'border-red-500' : ''} />{#if port.containerError && port.containerPort}<div class="flex items-center text-xs text-red-500 mt-1">- <AlertCircle class="h-3 w-3 mr-1" />+ <AlertCircle class="mr-1 size-3" />{port.containerError}</div>{/if}</div></div>- <Button variant="destructive" size="icon" type="button" onclick={() => removePort(index)} disabled={ports.length <= 1 || isCreating} class="flex-shrink-0">- <Trash class="h-4 w-4" />+ <Button variant="destructive" size="icon" type="button" onclick={() => removePort(index)} disabled={ports.length <= 1 || isCreating} class="shrink-0">+ <Trash class="size-4" /></Button></div>{/each}<Button variant="outline" type="button" onclick={addPort} class="w-full" disabled={isCreating}>- <Plus class="h-4 w-4 mr-2" /> Add Port Mapping+ <Plus class="mr-2 size-4" /> Add Port Mapping</Button></div></Tabs.Content>@@ -404,13 +404,13 @@<Input id={`volume-target-${index}`} bind:value={mount.target} placeholder="/data" disabled={isCreating} /></div></div>- <Button variant="destructive" size="icon" type="button" onclick={() => removeVolumeMount(index)} disabled={volumeMounts.length <= 1 || isCreating} class="flex-shrink-0">- <Trash class="h-4 w-4" />+ <Button variant="destructive" size="icon" type="button" onclick={() => removeVolumeMount(index)} disabled={volumeMounts.length <= 1 || isCreating} class="shrink-0">+ <Trash class="size-4" /></Button></div>{/each}<Button variant="outline" type="button" onclick={addVolumeMount} class="w-full" disabled={isCreating}>- <Plus class="h-4 w-4 mr-2" /> Add Volume Mount+ <Plus class="mr-2 size-4" /> Add Volume Mount</Button></div></Tabs.Content>@@ -440,21 +440,21 @@title={env.sensitive ? 'Show value' : 'Hide value'}>{#if env.sensitive}- <Eye class="h-4 w-4" />+ <Eye class="size-4" />{:else}- <EyeOff class="h-4 w-4" />+ <EyeOff class="size-4" />{/if}</Button></div></div></div>- <Button variant="destructive" size="icon" type="button" onclick={() => removeEnvVar(index)} disabled={envVars.length <= 1 || isCreating} class="flex-shrink-0">- <Trash class="h-4 w-4" />+ <Button variant="destructive" size="icon" type="button" onclick={() => removeEnvVar(index)} disabled={envVars.length <= 1 || isCreating} class="shrink-0">+ <Trash class="size-4" /></Button></div>{/each}<Button variant="outline" type="button" onclick={addEnvVar} class="w-full" disabled={isCreating}>- <Plus class="h-4 w-4 mr-2" /> Add Environment Variable+ <Plus class="mr-2 size-4" /> Add Environment Variable</Button></div></Tabs.Content>@@ -501,7 +501,7 @@<Tabs.Content value="healthcheck"><div class="space-y-4"><div class="flex items-center space-x-2">- <input type="checkbox" id="enable-healthcheck" bind:checked={enableHealthcheck} disabled={isCreating} class="form-checkbox h-4 w-4 text-primary focus:ring-primary border-gray-300 rounded" />+ <input type="checkbox" id="enable-healthcheck" bind:checked={enableHealthcheck} disabled={isCreating} class="form-checkbox text-primary focus:ring-primary border-gray-300 rounded size-4" /><Label for="enable-healthcheck" class="cursor-pointer">Enable Healthcheck</Label></div>@@ -555,13 +555,13 @@<Input id={`label-value-${index}`} bind:value={label.value} placeholder="e.g., my-app" disabled={isCreating} /></div></div>- <Button variant="destructive" size="icon" type="button" onclick={() => removeLabel(index)} disabled={labels.length <= 1 || isCreating} class="flex-shrink-0">- <Trash class="h-4 w-4" />+ <Button variant="destructive" size="icon" type="button" onclick={() => removeLabel(index)} disabled={labels.length <= 1 || isCreating} class="shrink-0">+ <Trash class="size-4" /></Button></div>{/each}<Button variant="outline" type="button" onclick={addLabel} class="w-full" disabled={isCreating}>- <Plus class="h-4 w-4 mr-2" /> Add Label+ <Plus class="mr-2 size-4" /> Add Label</Button></div>@@ -615,7 +615,7 @@<Button variant="outline" onclick={handleClose} disabled={isCreating} class="mr-2">Cancel</Button><Button type="button" onclick={handleSubmit} disabled={isCreating || !containerName.trim() || !selectedImage}>{#if isCreating}- <Loader2 class="h-4 w-4 mr-2 animate-spin" /> Creating...+ <Loader2 class="mr-2 animate-spin size-4" /> Creating...{:else}Create Container{/if}diff --git a/src/routes/images/+page.svelte b/src/routes/images/+page.svelteindex 1fdddd426..3dec13314 100644--- a/src/routes/images/+page.svelte+++ b/src/routes/images/+page.svelte@@ -9,7 +9,7 @@import { goto, invalidateAll } from '$app/navigation';import { toast } from 'svelte-sonner';import PullImageDialog from './pull-image-dialog.svelte';- import { formatBytes } from '$lib/utils';+ import { formatBytes } from '$lib/utils/bytes.util';import * as DropdownMenu from '$lib/components/ui/dropdown-menu/index.js';import { openConfirmDialog } from '$lib/components/confirm-dialog';import * as Table from '$lib/components/ui/table';@@ -323,7 +323,7 @@{#if error}<Alert.Root variant="destructive">- <AlertCircle class="h-4 w-4 mr-2" />+ <AlertCircle class="mr-2 size-4" /><Alert.Title>Error Loading Images</Alert.Title><Alert.Description>{error}</Alert.Description></Alert.Root>@@ -336,7 +336,7 @@<p class="text-2xl font-bold">{totalImages}</p></div><div class="bg-blue-500/10 p-2 rounded-full">- <HardDrive class="h-5 w-5 text-blue-500" />+ <HardDrive class="text-blue-500 size-5" /></div></Card.Content></Card.Root>@@ -348,7 +348,7 @@<p class="text-2xl font-bold">{formatBytes(totalSize)}</p></div><div class="bg-purple-500/10 p-2 rounded-full">- <HardDrive class="h-5 w-5 text-purple-500" />+ <HardDrive class="text-purple-500 size-5" /></div></Card.Content></Card.Root>@@ -368,9 +368,9 @@<DropdownMenu.Trigger>{#snippet child({ props })}<Button {...props} variant="outline">- <Funnel class="w-4 h-4" />+ <Funnel class="size-4" />Filter- <ChevronDown class="w-4 h-4" />+ <ChevronDown class="size-4" /></Button>{/snippet}</DropdownMenu.Trigger>@@ -397,33 +397,33 @@{#if selectedIds.length > 0}<Button variant="destructive" onclick={() => handleDeleteSelected()} disabled={isLoading.removing}>{#if isLoading.removing}- <Loader2 class="w-4 h-4 mr-2 animate-spin" />+ <Loader2 class="mr-2 animate-spin size-4" />Processing...{:else}- <Trash2 class="w-4 h-4" />+ <Trash2 class="size-4" />Delete Selected{/if}</Button>{/if}<Button variant="secondary" onclick={() => (isConfirmPruneDialogOpen = true)} disabled={isLoading.pruning}>{#if isLoading.pruning}- <Loader2 class="w-4 h-4 animate-spin" /> Pruning...+ <Loader2 class="animate-spin size-4" /> Pruning...{:else}- <CopyX class="w-4 h-4" /> Prune Unused+ <CopyX class="size-4" /> Prune Unused{/if}</Button><Button variant="secondary" onclick={() => (isPullDialogOpen = true)} disabled={isLoading.pulling}>{#if isLoading.pulling}- <Loader2 class="w-4 h-4 animate-spin" /> Pulling...+ <Loader2 class="animate-spin size-4" /> Pulling...{:else}- <Download class="w-4 h-4" /> Pull Image+ <Download class="size-4" /> Pull Image{/if}</Button><Button variant="outline" onclick={() => checkAllMaturity()} disabled={isLoading.checking}>{#if isLoading.checking}- <Loader2 class="w-4 h-4 mr-2 animate-spin" /> Checking...+ <Loader2 class="mr-2 animate-spin size-4" /> Checking...{:else}- <ScanSearch class="w-4 h-4 mr-2" /> Check Updates+ <ScanSearch class="mr-2 size-4" /> Check Updates{/if}</Button></div>@@ -460,18 +460,18 @@<Tooltip.Provider><Tooltip.Root><Tooltip.Trigger>- <span class="inline-flex items-center justify-center align-middle w-4 h-4 mr-2">+ <span class="inline-flex items-center justify-center align-middle mr-2 size-4">{#if !item.maturity.updatesAvailable}<!-- Green checkmark for up-to-date images -->- <CircleCheck class="w-10 h-10 text-green-500" fill="none" stroke="currentColor" strokeWidth="2" />- <!-- <CircleFadingArrowUp class="w-4 h-4 text-green-500" fill="none" stroke="currentColor" strokeWidth="2" /> -->+ <CircleCheck class="text-green-500 size-10" fill="none" stroke="currentColor" strokeWidth="2" />+ <!-- <CircleFadingArrowUp class="text-green-500 size-4" fill="none" stroke="currentColor" strokeWidth="2" /> -->{:else if item.maturity.status === 'Not Matured'}<!-- Yellow warning icon for non-matured updates -->- <CircleFadingArrowUp class="w-10 h-10 text-yellow-500" fill="none" stroke="currentColor" stroke-width="2" />+ <CircleFadingArrowUp class="text-yellow-500 size-10" fill="none" stroke="currentColor" stroke-width="2" />{:else}<!-- Blue checkmark for matured updates -->- <CircleArrowUp class="w-10 h-10 text-blue-500" fill="none" stroke="currentColor" stroke-width="2" />+ <CircleArrowUp class="text-blue-500 size-10" fill="none" stroke="currentColor" stroke-width="2" />{/if}</span></Tooltip.Trigger>@@ -481,15 +481,15 @@<div class="flex items-center gap-2">{#if !item.maturity.updatesAvailable}<!-- Green checkmark in tooltip -->- <CircleCheck class="w-5 h-5 text-green-500" fill="none" stroke="currentColor" strokeWidth="2" />+ <CircleCheck class="text-green-500 size-5" fill="none" stroke="currentColor" strokeWidth="2" /><span class="font-medium">Image Up to Date</span>{:else if item.maturity.status === 'Not Matured'}<!-- Yellow warning icon in tooltip -->- <CircleFadingArrowUp class="w-5 h-5 text-yellow-500" fill="none" stroke="currentColor" stroke-width="2" />+ <CircleFadingArrowUp class="text-yellow-500 size-5" fill="none" stroke="currentColor" stroke-width="2" /><span class="font-medium">Update Available (Not Matured)</span>{:else}<!-- Blue info icon in tooltip -->- <CircleArrowUp class="w-5 h-5 text-blue-500" fill="none" stroke="currentColor" stroke-width="2" />+ <CircleArrowUp class="text-blue-500 size-5" fill="none" stroke="currentColor" stroke-width="2" /><span class="font-medium">Matured Update Available</span>{/if}</div>@@ -521,8 +521,8 @@<Tooltip.Provider><Tooltip.Root><Tooltip.Trigger>- <span class="inline-flex items-center justify-center w-4 h-4 mr-2 opacity-30">- <svg class="w-4 h-4 text-gray-500" fill="none" stroke="currentColor" stroke-width="2" viewBox="0 0 24 24">+ <span class="inline-flex items-center justify-center mr-2 opacity-30 size-4">+ <svg class="text-gray-500 size-4" fill="none" stroke="currentColor" stroke-width="2" viewBox="0 0 24 24"><circle cx="12" cy="12" r="10" /><path d="M9 12l2 2 4-4" /></svg>@@ -537,7 +537,7 @@<!-- End Maturity Indicator --><!-- Repository name as a separate element -->- <a class="font-medium hover:underline flex-shrink truncate" href="/images/{item.id}/">+ <a class="font-medium hover:underline shrink truncate" href="/images/{item.id}/">{item.repo}</a></div>@@ -566,20 +566,20 @@<DropdownMenu.Content align="end"><DropdownMenu.Group><DropdownMenu.Item onclick={() => goto(`/images/${item.id}`)}>- <ScanSearch class="h-4 w-4" />+ <ScanSearch class="size-4" />Inspect</DropdownMenu.Item><DropdownMenu.Item onclick={() => pullImageByRepoTag(item.repoTags?.[0])} disabled={isLoading.pulling || !item.repoTags?.[0]}>{#if isLoading.pulling}- <Loader2 class="h-4 w-4 animate-spin" />+ <Loader2 class="animate-spin size-4" />Pulling...{:else}- <Download class="h-4 w-4" />+ <Download class="size-4" />Pull{/if}</DropdownMenu.Item>- <DropdownMenu.Item class="text-red-500 focus:!text-red-700" onclick={() => handleImageRemove(item.id)}>- <Trash2 class="h-4 w-4" />+ <DropdownMenu.Item class="text-red-500 focus:text-red-700!" onclick={() => handleImageRemove(item.id)}>+ <Trash2 class="size-4" />Remove</DropdownMenu.Item></DropdownMenu.Group>@@ -592,12 +592,12 @@</Card.Root>{:else if !error}<div class="flex flex-col items-center justify-center py-12 px-6 text-center border rounded-lg bg-card">- <HardDrive class="h-12 w-12 text-muted-foreground mb-4 opacity-40" />+ <HardDrive class="text-muted-foreground mb-4 opacity-40 size-12" /><p class="text-lg font-medium">No images found</p><p class="text-sm text-muted-foreground mt-1 max-w-md">Pull a new image using the "Pull Image" button above or use the Docker CLI</p><div class="flex gap-3 mt-4"><Button variant="outline" size="sm" onclick={() => (isPullDialogOpen = true)}>- <Download class="h-4 w-4" />+ <Download class="size-4" />Pull Image</Button></div>@@ -616,7 +616,7 @@<Button variant="outline" onclick={() => (isConfirmPruneDialogOpen = false)} disabled={isLoading.pruning}>Cancel</Button><Button variant="destructive" onclick={handlePruneImages} disabled={isLoading.pruning}>{#if isLoading.pruning}- <Loader2 class="w-4 h-4 mr-2 animate-spin" /> Pruning...+ <Loader2 class="mr-2 animate-spin size-4" /> Pruning...{:else}Prune Images{/if}diff --git a/src/routes/images/[imageId]/+page.svelte b/src/routes/images/[imageId]/+page.svelteindex 3db0b3baf..d9ae70fd4 100644--- a/src/routes/images/[imageId]/+page.svelte+++ b/src/routes/images/[imageId]/+page.svelte@@ -7,7 +7,8 @@import { goto } from '$app/navigation';import { Separator } from '$lib/components/ui/separator/index.js';import { Badge } from '$lib/components/ui/badge/index.js';- import { formatDate, formatBytes } from '$lib/utils';+ import { formatDate } from '$lib/utils/string.utils';+ import { formatBytes } from '$lib/utils/bytes.util';import { openConfirmDialog } from '$lib/components/confirm-dialog';import { handleApiResultWithCallbacks } from '$lib/utils/api.util';import { tryCatch } from '$lib/utils/try-catch';@@ -76,9 +77,9 @@<div class="flex gap-2 flex-wrap"><Button variant="destructive" size="sm" onclick={() => handleImageRemove(image.Id)} disabled={isLoading.removing}>{#if isLoading.removing}- <Loader2 class="h-4 w-4 mr-2 animate-spin" />+ <Loader2 class="mr-2 animate-spin size-4" />{:else}- <Trash2 class="h-4 w-4 mr-2" />+ <Trash2 class="mr-2 size-4" />{/if} Remove</Button></div>@@ -94,8 +95,8 @@<div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6"><!-- ID --><div class="flex items-start gap-3">- <div class="bg-gray-500/10 p-2 rounded-full h-10 w-10 flex items-center justify-center flex-shrink-0">- <Hash class="h-5 w-5 text-gray-500" />+ <div class="bg-gray-500/10 p-2 rounded-full flex items-center justify-center shrink-0 size-10">+ <Hash class="text-gray-500 size-5" /></div><div class="min-w-0 flex-1"><p class="text-sm font-medium text-muted-foreground">ID</p>@@ -105,8 +106,8 @@<!-- Size --><div class="flex items-start gap-3">- <div class="bg-blue-500/10 p-2 rounded-full h-10 w-10 flex items-center justify-center flex-shrink-0">- <HardDrive class="h-5 w-5 text-blue-500" />+ <div class="bg-blue-500/10 p-2 rounded-full flex items-center justify-center shrink-0 size-10">+ <HardDrive class="text-blue-500 size-5" /></div><div class="min-w-0 flex-1"><p class="text-sm font-medium text-muted-foreground">Size</p>@@ -116,8 +117,8 @@<!-- Created --><div class="flex items-start gap-3">- <div class="bg-green-500/10 p-2 rounded-full h-10 w-10 flex items-center justify-center flex-shrink-0">- <Clock class="h-5 w-5 text-green-500" />+ <div class="bg-green-500/10 p-2 rounded-full flex items-center justify-center shrink-0 size-10">+ <Clock class="text-green-500 size-5" /></div><div class="min-w-0 flex-1"><p class="text-sm font-medium text-muted-foreground">Created</p>@@ -127,8 +128,8 @@<!-- Architecture --><div class="flex items-start gap-3">- <div class="bg-orange-500/10 p-2 rounded-full h-10 w-10 flex items-center justify-center flex-shrink-0">- <Cpu class="h-5 w-5 text-orange-500" />+ <div class="bg-orange-500/10 p-2 rounded-full flex items-center justify-center shrink-0 size-10">+ <Cpu class="text-orange-500 size-5" /></div><div class="min-w-0 flex-1"><p class="text-sm font-medium text-muted-foreground">Architecture</p>@@ -138,8 +139,8 @@<!-- OS --><div class="flex items-start gap-3">- <div class="bg-indigo-500/10 p-2 rounded-full h-10 w-10 flex items-center justify-center flex-shrink-0">- <Layers class="h-5 w-5 text-indigo-500" />+ <div class="bg-indigo-500/10 p-2 rounded-full flex items-center justify-center shrink-0 size-10">+ <Layers class="text-indigo-500 size-5" /></div><div class="min-w-0 flex-1"><p class="text-sm font-medium text-muted-foreground">OS</p>@@ -154,7 +155,7 @@{#if image.RepoTags && image.RepoTags.length > 0}<Card.Root class="border shadow-sm"><Card.Header>- <Card.Title class="flex items-center gap-2"><Tag class="h-5 w-5 text-muted-foreground" /> Tags</Card.Title>+ <Card.Title class="flex items-center gap-2"><Tag class="text-muted-foreground size-5" /> Tags</Card.Title></Card.Header><Card.Content><div class="flex flex-wrap gap-2">@@ -190,7 +191,7 @@<div class="text-center py-12"><p class="text-lg font-medium text-muted-foreground">Image not found.</p><Button href="/images" variant="outline" size="sm" class="mt-4">- <ArrowLeft class="h-4 w-4 mr-2" /> Back to Images+ <ArrowLeft class="mr-2 size-4" /> Back to Images</Button></div>{/if}diff --git a/src/routes/images/pull-image-dialog.svelte b/src/routes/images/pull-image-dialog.svelteindex dce03c30b..64752973b 100644--- a/src/routes/images/pull-image-dialog.svelte+++ b/src/routes/images/pull-image-dialog.svelte@@ -135,7 +135,7 @@<span>Pulling image...</span><span>{Math.round(pullProgress)}%</span></div>- <div class="w-full bg-secondary h-2 rounded-full overflow-hidden">+ <div class="w-full bg-secondary rounded-full overflow-hidden size-2"><div class="bg-primary h-full transition-all duration-300 ease-in-out" style="width: {pullProgress}%"></div></div><p class="text-xs text-muted-foreground mt-1">This may take a while depending on the image size and your internet connection.</p>@@ -151,7 +151,7 @@<circle class="text-primary-400/20" cx="50" cy="50" r="45" fill="none" stroke="currentColor" stroke-width="8" /><circle class="text-primary-500" cx="50" cy="50" r="45" fill="none" stroke="currentColor" stroke-width="8" stroke-linecap="round" stroke-dasharray={283} stroke-dashoffset={283 * (1 - pullProgress / 100)} transform="rotate(-90 50 50)" /></svg>- <Loader2 class="h-4 w-4 animate-spin" />+ <Loader2 class="animate-spin size-4" /></div><span class="opacity-0">Pull Image</span>{:else}diff --git a/src/routes/networks/+page.svelte b/src/routes/networks/+page.svelteindex 60e8232d5..ea2943dd3 100644--- a/src/routes/networks/+page.svelte+++ b/src/routes/networks/+page.svelte@@ -149,7 +149,7 @@</div><div class="flex items-center gap-2"><Button variant="secondary" data-testid="create-network-button" onclick={() => (networkPageStates.isCreateDialogOpen = true)} disabled={isLoading.create}>- <Plus class="w-4 h-4" />+ <Plus class="size-4" />Create Network</Button></div>@@ -157,7 +157,7 @@{#if networkPageStates.error}<Alert.Root variant="destructive">- <AlertCircle class="h-4 w-4 mr-2" />+ <AlertCircle class="mr-2 size-4" /><Alert.Title>Error Loading Networks</Alert.Title><Alert.Description>{networkPageStates.error}</Alert.Description></Alert.Root>@@ -171,7 +171,7 @@<p class="text-2xl font-bold">{totalNetworks}</p></div><div class="bg-primary/10 p-2 rounded-full">- <Network class="h-5 w-5 text-primary" />+ <Network class="text-primary size-5" /></div></Card.Content></Card.Root>@@ -183,7 +183,7 @@<p class="text-2xl font-bold">{bridgeNetworks}</p></div><div class="bg-blue-500/10 p-2 rounded-full">- <Network class="h-5 w-5 text-blue-500" />+ <Network class="text-blue-500 size-5" /></div></Card.Content></Card.Root>@@ -195,7 +195,7 @@<p class="text-2xl font-bold">{overlayNetworks}</p></div><div class="bg-purple-500/10 p-2 rounded-full">- <Network class="h-5 w-5 text-purple-500" />+ <Network class="text-purple-500 size-5" /></div></Card.Content></Card.Root>@@ -212,10 +212,10 @@{#if networkPageStates.selectedNetworks.length > 0}<Button variant="destructive" onclick={() => handleDeleteSelected()} disabled={isLoading.remove}>{#if isLoading.remove}- <Loader2 class="w-4 h-4 mr-2 animate-spin" />+ <Loader2 class="mr-2 animate-spin size-4" />Processing...{:else}- <Trash2 class="w-4 h-4" />+ <Trash2 class="size-4" />Delete Selected{/if}</Button>@@ -263,17 +263,17 @@<DropdownMenu.Content align="end"><DropdownMenu.Group><DropdownMenu.Item onclick={() => goto(`/networks/${item.id}`)} disabled={isAnyLoading}>- <ScanSearch class="w-4 h-4" />+ <ScanSearch class="size-4" />Inspect</DropdownMenu.Item>{#if !isDefaultNetwork}<DropdownMenu.Separator />- <DropdownMenu.Item class="text-red-500 focus:!text-red-700" onclick={() => handleDeleteNetwork(item.id)} disabled={isLoading.remove || isAnyLoading}>+ <DropdownMenu.Item class="text-red-500 focus:text-red-700!" onclick={() => handleDeleteNetwork(item.id)} disabled={isLoading.remove || isAnyLoading}>{#if isLoading.remove}- <Loader2 class="w-4 h-4 animate-spin" />+ <Loader2 class="animate-spin size-4" />{:else}- <Trash2 class="w-4 h-4" />+ <Trash2 class="size-4" />{/if}Remove</DropdownMenu.Item>@@ -286,12 +286,12 @@</UniversalTable>{:else if !networkPageStates.error}<div class="flex flex-col items-center justify-center py-12 px-6 text-center">- <Network class="h-12 w-12 text-muted-foreground mb-4 opacity-40" />+ <Network class="text-muted-foreground mb-4 opacity-40 size-12" /><p class="text-lg font-medium">No networks found</p><p class="text-sm text-muted-foreground mt-1 max-w-md">Create a new network using the "Create Network" button above or use the Docker CLI</p><div class="flex gap-3 mt-4"><Button variant="outline" size="sm" onclick={() => (networkPageStates.isCreateDialogOpen = true)}>- <Plus class="h-4 w-4" />+ <Plus class="size-4" />Create Network</Button></div>diff --git a/src/routes/networks/CreateNetworkDialog.svelte b/src/routes/networks/CreateNetworkDialog.svelteindex dd81a5372..02ab486e6 100644--- a/src/routes/networks/CreateNetworkDialog.svelte+++ b/src/routes/networks/CreateNetworkDialog.svelte@@ -151,12 +151,12 @@<Input placeholder="Key" bind:value={label.key} class="flex-1" disabled={isCreating} /><Input placeholder="Value" bind:value={label.value} class="flex-1" disabled={isCreating} /><Button type="button" variant="ghost" size="icon" onclick={() => removeLabel(index)} disabled={isCreating || labels.length <= 1} class="text-destructive hover:text-destructive" title="Remove Label">- <X class="w-4 h-4" />+ <X class="size-4" /></Button></div>{/each}<Button type="button" variant="outline" size="sm" onclick={addLabel} disabled={isCreating}>- <Plus class="w-4 h-4 mr-2" /> Add Label+ <Plus class="mr-2 size-4" /> Add Label</Button></div></div>@@ -183,7 +183,7 @@<Button type="button" variant="outline" onclick={() => (open = false)} disabled={isCreating}>Cancel</Button><Button type="submit" disabled={isCreating || !name.trim()}>{#if isCreating}- <Loader2 class="w-4 h-4 mr-2 animate-spin" /> Creating...+ <Loader2 class="mr-2 animate-spin size-4" /> Creating...{:else}Create Network{/if}diff --git a/src/routes/networks/[networkId]/+page.svelte b/src/routes/networks/[networkId]/+page.svelteindex 038a402f5..5c8171dab 100644--- a/src/routes/networks/[networkId]/+page.svelte+++ b/src/routes/networks/[networkId]/+page.svelte@@ -8,7 +8,7 @@import * as Alert from '$lib/components/ui/alert/index.js';import { Separator } from '$lib/components/ui/separator/index.js';import { Badge } from '$lib/components/ui/badge/index.js';- import { formatDate } from '$lib/utils';+ import { formatDate } from '$lib/utils/string.utils';import type { NetworkInspectInfo } from 'dockerode';import { toast } from 'svelte-sonner';@@ -54,7 +54,7 @@{network?.Name || 'Network Details'}</h1>{#if inUse}- <Badge variant="outline"><Container class="h-3 w-3 mr-1" /> In Use</Badge>+ <Badge variant="outline"><Container class="mr-1 size-3" /> In Use</Badge>{/if}{#if isPredefined}<Badge variant="secondary">Predefined</Badge>@@ -66,9 +66,9 @@<!-- Remove Button triggers dialog --><Button variant="destructive" size="sm" onclick={triggerRemove} disabled={isRemoving || isPredefined} title={isPredefined ? 'Cannot remove predefined networks' : ''}>{#if isRemoving}- <Loader2 class="h-4 w-4 mr-2 animate-spin" />+ <Loader2 class="mr-2 animate-spin size-4" />{:else}- <Trash2 class="h-4 w-4 mr-2" />+ <Trash2 class="mr-2 size-4" />{/if} Remove</Button><!-- Hidden form for removal action -->@@ -95,7 +95,7 @@<!-- Error Alert -->{#if form?.error}<Alert.Root variant="destructive">- <AlertCircle class="h-4 w-4 mr-2" />+ <AlertCircle class="mr-2 size-4" /><Alert.Title>Action Failed</Alert.Title><Alert.Description>{form.error}</Alert.Description></Alert.Root>@@ -112,8 +112,8 @@<div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6"><!-- ID --><div class="flex items-start gap-3">- <div class="bg-gray-500/10 p-2 rounded-full h-10 w-10 flex items-center justify-center flex-shrink-0">- <Hash class="h-5 w-5 text-gray-500" />+ <div class="bg-gray-500/10 p-2 rounded-full flex items-center justify-center shrink-0 size-10">+ <Hash class="text-gray-500 size-5" /></div><div class="min-w-0 flex-1"><p class="text-sm font-medium text-muted-foreground">ID</p>@@ -123,8 +123,8 @@<!-- Name --><div class="flex items-start gap-3">- <div class="bg-blue-500/10 p-2 rounded-full h-10 w-10 flex items-center justify-center flex-shrink-0">- <Network class="h-5 w-5 text-blue-500" />+ <div class="bg-blue-500/10 p-2 rounded-full flex items-center justify-center shrink-0 size-10">+ <Network class="text-blue-500 size-5" /></div><div class="min-w-0 flex-1"><p class="text-sm font-medium text-muted-foreground">Name</p>@@ -134,8 +134,8 @@<!-- Driver --><div class="flex items-start gap-3">- <div class="bg-orange-500/10 p-2 rounded-full h-10 w-10 flex items-center justify-center flex-shrink-0">- <HardDrive class="h-5 w-5 text-orange-500" />+ <div class="bg-orange-500/10 p-2 rounded-full flex items-center justify-center shrink-0 size-10">+ <HardDrive class="text-orange-500 size-5" /></div><div class="min-w-0 flex-1"><p class="text-sm font-medium text-muted-foreground">Driver</p>@@ -145,8 +145,8 @@<!-- Scope --><div class="flex items-start gap-3">- <div class="bg-purple-500/10 p-2 rounded-full h-10 w-10 flex items-center justify-center flex-shrink-0">- <Globe class="h-5 w-5 text-purple-500" />+ <div class="bg-purple-500/10 p-2 rounded-full flex items-center justify-center shrink-0 size-10">+ <Globe class="text-purple-500 size-5" /></div><div class="min-w-0 flex-1"><p class="text-sm font-medium text-muted-foreground">Scope</p>@@ -156,8 +156,8 @@<!-- Created --><div class="flex items-start gap-3">- <div class="bg-green-500/10 p-2 rounded-full h-10 w-10 flex items-center justify-center flex-shrink-0">- <Clock class="h-5 w-5 text-green-500" />+ <div class="bg-green-500/10 p-2 rounded-full flex items-center justify-center shrink-0 size-10">+ <Clock class="text-green-500 size-5" /></div><div class="min-w-0 flex-1"><p class="text-sm font-medium text-muted-foreground">Created</p>@@ -167,8 +167,8 @@<!-- Attachable --><div class="flex items-start gap-3">- <div class="bg-yellow-500/10 p-2 rounded-full h-10 w-10 flex items-center justify-center flex-shrink-0">- <Layers class="h-5 w-5 text-yellow-500" />+ <div class="bg-yellow-500/10 p-2 rounded-full flex items-center justify-center shrink-0 size-10">+ <Layers class="text-yellow-500 size-5" /></div><div class="min-w-0 flex-1"><p class="text-sm font-medium text-muted-foreground">Attachable</p>@@ -178,8 +178,8 @@<!-- Internal --><div class="flex items-start gap-3">- <div class="bg-red-500/10 p-2 rounded-full h-10 w-10 flex items-center justify-center flex-shrink-0">- <Settings class="h-5 w-5 text-red-500" />+ <div class="bg-red-500/10 p-2 rounded-full flex items-center justify-center shrink-0 size-10">+ <Settings class="text-red-500 size-5" /></div><div class="min-w-0 flex-1"><p class="text-sm font-medium text-muted-foreground">Internal</p>@@ -189,8 +189,8 @@<!-- EnableIPv6 --><div class="flex items-start gap-3">- <div class="bg-indigo-500/10 p-2 rounded-full h-10 w-10 flex items-center justify-center flex-shrink-0">- <ListTree class="h-5 w-5 text-indigo-500" />+ <div class="bg-indigo-500/10 p-2 rounded-full flex items-center justify-center shrink-0 size-10">+ <ListTree class="text-indigo-500 size-5" /></div><div class="min-w-0 flex-1"><p class="text-sm font-medium text-muted-foreground">IPv6 Enabled</p>@@ -249,7 +249,7 @@{#if connectedContainers.length > 0}<Card.Root class="border shadow-sm"><Card.Header>- <Card.Title class="flex items-center gap-2"><Container class="h-5 w-5 text-muted-foreground" /> Connected Containers ({connectedContainers.length})</Card.Title>+ <Card.Title class="flex items-center gap-2"><Container class="text-muted-foreground size-5" /> Connected Containers ({connectedContainers.length})</Card.Title></Card.Header><Card.Content class="space-y-2">{#each connectedContainers as container (container.Name)}@@ -273,7 +273,7 @@{#if network.Labels && Object.keys(network.Labels).length > 0}<Card.Root class="border shadow-sm"><Card.Header>- <Card.Title class="flex items-center gap-2"><Tag class="h-5 w-5 text-muted-foreground" /> Labels</Card.Title>+ <Card.Title class="flex items-center gap-2"><Tag class="text-muted-foreground size-5" /> Labels</Card.Title></Card.Header><Card.Content class="space-y-2">{#each Object.entries(network.Labels) as [key, value] (key)}@@ -314,7 +314,7 @@<div class="text-center py-12"><p class="text-lg font-medium text-muted-foreground">Network not found.</p><Button href="/networks" variant="outline" size="sm" class="mt-4">- <ArrowLeft class="h-4 w-4 mr-2" /> Back to Networks+ <ArrowLeft class="mr-2 size-4" /> Back to Networks</Button></div>{/if}diff --git a/src/routes/onboarding/+layout.svelte b/src/routes/onboarding/+layout.svelteindex 944cc20df..d0c263967 100644--- a/src/routes/onboarding/+layout.svelte+++ b/src/routes/onboarding/+layout.svelte@@ -21,7 +21,7 @@<div class="min-h-screen flex flex-col"><header class="pb-6 px-8 border-b"><div class="flex items-center">- <img src="/img/arcane.png" alt="Arcane" class="h-12" />+ <img src="/img/arcane.png" alt="Arcane" class="size-12" /><h1 class="ml-4 text-2xl font-bold">Arcane Setup</h1></div></header>@@ -31,7 +31,7 @@{#each steps as step, i (step.id)}<div class="flex flex-col items-center"><div class={`rounded-full w-10 h-10 flex items-center justify-center ${i <= currentStep ? 'bg-primary text-primary-foreground' : 'bg-muted text-muted-foreground'}`}>- <step.icon class="h-5 w-5" />+ <step.icon class="size-5" /></div><span class={`text-sm mt-2 ${i <= currentStep ? 'text-foreground' : 'text-muted-foreground'}`}>{step.label}</span></div>diff --git a/src/routes/onboarding/complete/+page.svelte b/src/routes/onboarding/complete/+page.svelteindex 935c9aeb5..331febcfa 100644--- a/src/routes/onboarding/complete/+page.svelte+++ b/src/routes/onboarding/complete/+page.svelte@@ -6,7 +6,7 @@<div class="max-w-2xl mx-auto text-center"><div class="mb-6 flex justify-center"><div class="rounded-full bg-green-100 p-4 dark:bg-green-900/20">- <CheckCircle class="h-12 w-12 text-green-600 dark:text-green-400" />+ <CheckCircle class="text-green-600 dark:text-green-400 size-12" /></div></div>diff --git a/src/routes/onboarding/password/+page.svelte b/src/routes/onboarding/password/+page.svelteindex 4f6e562bb..b21282af6 100644--- a/src/routes/onboarding/password/+page.svelte+++ b/src/routes/onboarding/password/+page.svelte@@ -125,7 +125,7 @@{#if error}<Alert.Root class="mb-8" variant="destructive">- <AlertCircle class="h-5 w-5 mr-2" />+ <AlertCircle class="mr-2 size-5" /><Alert.Title>Error</Alert.Title><Alert.Description>{error}</Alert.Description></Alert.Root>@@ -135,22 +135,22 @@<div class="space-y-6"><div class="space-y-4"><Label for="password" class="text-base block mb-2">New Password</Label>- <Input id="password" type="password" bind:value={password} placeholder="Enter new password" class="h-12 px-4 bg-muted/10" required />+ <Input id="password" type="password" bind:value={password} placeholder="Enter new password" class="px-4 bg-muted/10 size-12" required /></div><div class="space-y-4"><Label for="confirmPassword" class="text-base block mb-2">Confirm Password</Label>- <Input id="confirmPassword" type="password" bind:value={confirmPassword} placeholder="Confirm new password" class="h-12 px-4 bg-muted/10" required />+ <Input id="confirmPassword" type="password" bind:value={confirmPassword} placeholder="Confirm new password" class="px-4 bg-muted/10 size-12" required /></div></div><div class="flex pt-8 justify-center">- <Button type="submit" disabled={loading} class="h-12 w-[80%] px-8 flex items-center">+ <Button type="submit" disabled={loading} class="px-8 flex items-center size-12 size-[80%]">{#if loading}- <span class="inline-block w-4 h-4 border-2 border-t-transparent border-white rounded-full animate-spin"></span>+ <span class="inline-block border-2 border-t-transparent border-white rounded-full animate-spin size-4"></span>{/if}Continue- <ChevronRight class="h-4 w-4" />+ <ChevronRight class="size-4" /></Button></div></form>diff --git a/src/routes/onboarding/settings/+page.svelte b/src/routes/onboarding/settings/+page.svelteindex 9471dd65b..e3ae6c983 100644--- a/src/routes/onboarding/settings/+page.svelte+++ b/src/routes/onboarding/settings/+page.svelte@@ -110,7 +110,7 @@{#if error}<Alert.Root class="mb-6" variant="destructive">- <AlertCircle class="h-4 w-4 mr-2" />+ <AlertCircle class="mr-2 size-4" /><Alert.Title>Error</Alert.Title><Alert.Description>{error}</Alert.Description></Alert.Root>@@ -125,7 +125,7 @@<Card.Content class="pt-0 pb-4"><div class="space-y-3"><Label for="dockerHost" class="text-base block mb-2">Docker Host</Label>- <Input id="dockerHost" bind:value={dockerHost} placeholder="unix:///var/run/docker.sock" class="h-12 px-4 bg-muted/10" />+ <Input id="dockerHost" bind:value={dockerHost} placeholder="unix:///var/run/docker.sock" class="px-4 bg-muted/10 size-12" /><p class="text-xs text-muted-foreground">Examples: Unix: <code class="bg-muted/30 px-1 py-0.5 rounded">unix:///var/run/docker.sock</code>Windows: <code class="bg-muted/30 px-1 py-0.5 rounded">npipe:////./pipe/docker_engine</code>@@ -151,7 +151,7 @@{#if pollingEnabled}<div class="px-4"><Label for="pollingInterval" class="text-base block mb-2">Polling Interval (minutes)</Label>- <Input id="pollingInterval" type="number" bind:value={pollingInterval} min="5" max="60" class="h-12 px-4 bg-muted/10" />+ <Input id="pollingInterval" type="number" bind:value={pollingInterval} min="5" max="60" class="px-4 bg-muted/10 size-12" /><p class="text-xs text-muted-foreground mt-1">Set between 5-60 minutes.</p></div>{/if}@@ -167,12 +167,12 @@</Card.Root><div class="flex justify-center pt-4">- <Button type="submit" disabled={loading} class="h-12 px-8 w-[80%] flex items-center gap-2">+ <Button type="submit" disabled={loading} class="px-8 flex items-center gap-2 size-12 size-[80%]">{#if loading}- <span class="inline-block w-4 h-4 border-2 border-t-transparent border-white rounded-full animate-spin"></span>+ <span class="inline-block border-2 border-t-transparent border-white rounded-full animate-spin size-4"></span>{/if}Continue- <ChevronRight class="h-4 w-4" />+ <ChevronRight class="size-4" /></Button></div></form>diff --git a/src/routes/onboarding/welcome/+page.svelte b/src/routes/onboarding/welcome/+page.svelteindex 9e3f54183..fc0e3633c 100644--- a/src/routes/onboarding/welcome/+page.svelte+++ b/src/routes/onboarding/welcome/+page.svelte@@ -33,21 +33,21 @@<div class="space-y-3"><div class="flex items-start gap-3"><div class="rounded-full bg-primary/10 p-1 mt-0.5">- <CheckCircle2 class="h-4 w-4 text-primary" />+ <CheckCircle2 class="text-primary size-4" /></div><p>Change the default admin password for security</p></div><div class="flex items-start gap-3"><div class="rounded-full bg-primary/10 p-1 mt-0.5">- <CheckCircle2 class="h-4 w-4 text-primary" />+ <CheckCircle2 class="text-primary size-4" /></div><p>Configure your Docker connection</p></div><div class="flex items-start gap-3"><div class="rounded-full bg-primary/10 p-1 mt-0.5">- <CheckCircle2 class="h-4 w-4 text-primary" />+ <CheckCircle2 class="text-primary size-4" /></div><p>Set basic application preferences</p></div>@@ -58,9 +58,9 @@</div><div class="flex justify-center pt-8">- <Button type="button" onclick={handleContinue} class="h-12 w-[80%] px-8 flex items-center gap-2">+ <Button type="button" onclick={handleContinue} class="px-8 flex items-center gap-2 h-12 w-[80%]">Continue- <ChevronRight class="h-4 w-4" />+ <ChevronRight class="size-4" /></Button></div></div>diff --git a/src/routes/settings/+page.svelte b/src/routes/settings/+page.svelteindex 301696f0b..ff4bcb8bb 100644--- a/src/routes/settings/+page.svelte+++ b/src/routes/settings/+page.svelte@@ -64,10 +64,10 @@<Button onclick={saveSettings} disabled={isLoading.saving} class="h-10">{#if isLoading.saving}- <RefreshCw class="mr-2 h-4 w-4 animate-spin" />+ <RefreshCw class="animate-spin size-4" />Saving...{:else}- <Save class="mr-2 h-4 w-4" />+ <Save class="size-4" />Save Settings{/if}</Button>@@ -85,7 +85,7 @@<div id="settings-container"><input type="hidden" id="csrf_token" value={data.csrf} />{#each tabs as tab (tab.id)}- <Tabs.Content value={tab.id} class="space-y-4 ">+ <Tabs.Content value={tab.id} class="space-y-4"><tab.component {data} /></Tabs.Content>{/each}diff --git a/src/routes/settings/tabs/app-settings.svelte b/src/routes/settings/tabs/app-settings.svelteindex e0e9d9421..816533257 100644--- a/src/routes/settings/tabs/app-settings.svelte+++ b/src/routes/settings/tabs/app-settings.svelte@@ -92,7 +92,7 @@<Card.Header class="pb-3"><div class="flex items-center gap-2"><div class="bg-primary/10 p-2 rounded-full">- <Cog class="h-5 w-5 text-primary" />+ <Cog class="text-primary size-5" /></div><div><Card.Title>Core Arcane Configuration</Card.Title>diff --git a/src/routes/settings/tabs/authentication.svelte b/src/routes/settings/tabs/authentication.svelteindex 964c85575..6b4399bfe 100644--- a/src/routes/settings/tabs/authentication.svelte+++ b/src/routes/settings/tabs/authentication.svelte@@ -107,7 +107,7 @@<Card.Header class="pb-3"><div class="flex items-center gap-2"><div class="bg-indigo-500/10 p-2 rounded-full">- <Lock class="h-5 w-5 text-indigo-500" />+ <Lock class="text-indigo-500 size-5" /></div><div><Card.Title>Authentication Methods</Card.Title>@@ -149,23 +149,23 @@{#if isOidcForcedByPublicEnv || $settingsStore.auth?.oidcEnabled}{#if isOidcForcedByPublicEnv && !data.oidcEnvVarsConfigured}<Button variant="link" class="p-0 h-auto text-xs text-destructive hover:underline" onclick={openOidcDialog}>- <AlertTriangle class="h-3 w-3 mr-1" />+ <AlertTriangle class="mr-1 size-3" />OIDC is forced ON, but critical server settings are missing. Click for details.</Button>{:else if data.oidcEnvVarsConfigured}<Button variant="link" class="p-0 h-auto text-xs text-sky-600 hover:underline" onclick={openOidcDialog}>- <Info class="h-3 w-3 mr-1" />+ <Info class="mr-1 size-3" />OIDC is configured on server. View Status.</Button>{:else if oidcConfiguredViaAppSettings}<Button variant="link" class="p-0 h-auto text-xs text-sky-600 hover:underline" onclick={openOidcDialog}>- <Info class="h-3 w-3 mr-1" />+ <Info class="mr-1 size-3" />OIDC configured via application settings. Click to Manage Them.</Button>{:else if !showOidcConfigDialog}<!-- This case: Not forced by public env, store has it enabled, but neither server vars nor app settings are fully configured --><Button variant="link" class="p-0 h-auto text-xs text-destructive hover:underline" onclick={openOidcDialog}>- <AlertTriangle class="h-3 w-3 mr-1" />+ <AlertTriangle class="mr-1 size-3" />OIDC application settings not configured. Click to configure.</Button>{/if}@@ -270,7 +270,7 @@<Card.Header class="pb-3"><div class="flex items-center gap-2"><div class="bg-cyan-500/10 p-2 rounded-full">- <Key class="h-5 w-5 text-cyan-500" />+ <Key class="text-cyan-500 size-5" /></div><div><Card.Title>Session Settings</Card.Title>diff --git a/src/routes/settings/tabs/docker-settings.svelte b/src/routes/settings/tabs/docker-settings.svelteindex d686f70f0..61d9fa740 100644--- a/src/routes/settings/tabs/docker-settings.svelte+++ b/src/routes/settings/tabs/docker-settings.svelte@@ -118,7 +118,7 @@<Card.Header class="pb-3"><div class="flex items-center gap-2"><div class="bg-blue-500/10 p-2 rounded-full">- <Server class="h-5 w-5 text-blue-500" />+ <Server class="text-blue-500 size-5" /></div><div><Card.Title>Docker Settings</Card.Title>@@ -138,7 +138,7 @@<div class="flex items-center justify-between gap-2 mb-3"><div class="flex items-center gap-2"><div class="bg-green-500/10 p-2 rounded-full">- <Key class="h-5 w-5 text-green-500" />+ <Key class="text-green-500 size-5" /></div><div><h3 class="font-medium">Docker Registry Credentials</h3>@@ -146,7 +146,7 @@</div></div><Button size="sm" variant="outline" onclick={openCreateRegistryDialog}>- <Plus class="mr-2 h-4 w-4" /> Add Registry+ <Plus class="mr-2 size-4" /> Add Registry</Button></div>@@ -186,18 +186,18 @@<Table.Cell class="text-right"><DropdownMenu.Root><DropdownMenu.Trigger>- <Button variant="ghost" size="icon" class="h-8 w-8">- <Ellipsis class="h-4 w-4" />+ <Button variant="ghost" size="icon" class="size-8">+ <Ellipsis class="size-4" /><span class="sr-only">Open menu</span></Button></DropdownMenu.Trigger><DropdownMenu.Content align="end"><DropdownMenu.Item onclick={() => openEditRegistryDialog(item, index)}>- <Pencil class="mr-2 h-4 w-4" />+ <Pencil class="mr-2 size-4" />Edit</DropdownMenu.Item>- <DropdownMenu.Item onclick={() => confirmRemoveRegistry(index)} class="text-red-500 focus:!text-red-700 focus:bg-destructive/10">- <Trash2 class="mr-2 h-4 w-4" />+ <DropdownMenu.Item onclick={() => confirmRemoveRegistry(index)} class="text-red-500 focus:text-red-700! focus:bg-destructive/10">+ <Trash2 class="mr-2 size-4" />Remove</DropdownMenu.Item></DropdownMenu.Content>@@ -218,7 +218,7 @@<Card.Header class="pb-3"><div class="flex items-center gap-2"><div class="bg-amber-500/10 p-2 rounded-full">- <RefreshCw class="h-5 w-5 text-amber-500" />+ <RefreshCw class="text-amber-500 size-5" /></div><div><Card.Title>Image Polling</Card.Title>@@ -300,7 +300,7 @@<Card.Header class="pb-3"><div class="flex items-center gap-2"><div class="bg-purple-500/10 p-2 rounded-full">- <ImageMinus class="h-5 w-5 text-purple-500" />+ <ImageMinus class="text-purple-500 size-5" /></div><div><Card.Title>Image Pruning</Card.Title>diff --git a/src/routes/settings/tabs/external-services.svelte b/src/routes/settings/tabs/external-services.svelteindex 6ca87c8f7..b9d4beea8 100644--- a/src/routes/settings/tabs/external-services.svelte+++ b/src/routes/settings/tabs/external-services.svelte@@ -16,7 +16,7 @@<Card.Header class="pb-3"><div class="flex items-center gap-2"><div class="bg-gray-500/10 p-2 rounded-full">- <Key class="h-5 w-5 text-gray-500" />+ <Key class="text-gray-500 size-5" /></div><div><Card.Title>Additional Services</Card.Title>diff --git a/src/routes/settings/tabs/rbac-settings.svelte b/src/routes/settings/tabs/rbac-settings.svelteindex ab3cf4a1a..b2415019e 100644--- a/src/routes/settings/tabs/rbac-settings.svelte+++ b/src/routes/settings/tabs/rbac-settings.svelte@@ -91,30 +91,26 @@<div class="flex items-center justify-between"><div class="flex items-center gap-2"><div class="bg-blue-500/10 p-2 rounded-full">- <Users class="h-5 w-5 text-blue-500" />+ <Users class="text-blue-500 size-5" /></div><Card.Title>Roles</Card.Title></div><Button variant="outline" size="sm">- <Plus class="h-4 w-4 mr-1" /> Add+ <Plus class="mr-1 size-4" /> Add</Button></div></Card.Header><Card.Content><div class="space-y-2">{#each roles as role (role.id)}- <button- class="w-full text-left p-3 rounded-md border transition-colors flex items-center justify-between- {selectedRole.id === role.id ? 'bg-primary text-primary-foreground border-primary' : 'hover:bg-muted/50'}"- onclick={() => (selectedRole = role)}- >+ <button class="w-full text-left p-3 rounded-md border transition-colors flex items-center justify-between {selectedRole.id === role.id ? 'bg-primary text-primary-foreground border-primary' : 'hover:bg-muted/50'}" onclick={() => (selectedRole = role)}><div><div class="font-medium">{role.name}</div><div class="text-xs {selectedRole.id === role.id ? 'text-primary-foreground/90' : 'text-muted-foreground'}">{role.description}</div></div>- <Shield class="h-4 w-4 opacity-70" />+ <Shield class="opacity-70 size-4" /></button>{/each}</div>@@ -128,7 +124,7 @@<div class="flex items-center justify-between"><div class="flex items-center gap-2"><div class="bg-purple-500/10 p-2 rounded-full">- <Settings class="h-5 w-5 text-purple-500" />+ <Settings class="text-purple-500 size-5" /></div><div><Card.Title>Role: {selectedRole.name}</Card.Title>diff --git a/src/routes/settings/tabs/user-management.svelte b/src/routes/settings/tabs/user-management.svelteindex d196b2d83..7d0a530f9 100644--- a/src/routes/settings/tabs/user-management.svelte+++ b/src/routes/settings/tabs/user-management.svelte@@ -99,7 +99,7 @@<Card.Header class="pb-3 flex flex-row items-center justify-between space-y-0"><div class="flex items-center gap-2"><div class="bg-blue-500/10 p-2 rounded-full">- <UserCheck class="h-5 w-5 text-blue-500" />+ <UserCheck class="text-blue-500 size-5" /></div><div><Card.Title>User Accounts</Card.Title>@@ -107,7 +107,7 @@</div></div><Button size="sm" onclick={openCreateUserDialog}>- <UserPlus class="mr-2 h-4 w-4" />+ <UserPlus class="mr-2 size-4" />Create User</Button></Card.Header>@@ -166,8 +166,8 @@<Table.Cell><DropdownMenu.Root><DropdownMenu.Trigger>- <Button variant="ghost" size="icon" class="h-8 w-8">- <Ellipsis class="h-4 w-4" />+ <Button variant="ghost" size="icon" class="size-8">+ <Ellipsis class="size-4" /><span class="sr-only">Open menu</span></Button></DropdownMenu.Trigger>@@ -175,12 +175,12 @@<DropdownMenu.Group>{#if !item.oidcSubjectId}<DropdownMenu.Item onclick={() => openEditUserDialog(item)}>- <Pencil class="h-4 w-4" />+ <Pencil class="size-4" />Edit</DropdownMenu.Item>{/if}- <DropdownMenu.Item class="text-red-500 focus:!text-red-700" onclick={() => handleRemoveUser(item.id)}>- <UserX class="h-4 w-4" />+ <DropdownMenu.Item class="text-red-500 focus:text-red-700!" onclick={() => handleRemoveUser(item.id)}>+ <UserX class="size-4" />Remove User</DropdownMenu.Item></DropdownMenu.Group>diff --git a/src/routes/stacks/+page.svelte b/src/routes/stacks/+page.svelteindex 14fd18bb2..39c422fa5 100644--- a/src/routes/stacks/+page.svelte+++ b/src/routes/stacks/+page.svelte@@ -158,7 +158,7 @@{#if data.error}<Alert.Root variant="destructive">- <AlertCircle class="h-4 w-4" />+ <AlertCircle class="size-4" /><Alert.Title>Error Loading Stacks</Alert.Title><Alert.Description>{data.error}</Alert.Description></Alert.Root>@@ -172,7 +172,7 @@<p class="text-2xl font-bold">{totalStacks}</p></div><div class="bg-primary/10 p-2 rounded-full">- <FileStack class="h-5 w-5 text-primary" />+ <FileStack class="text-primary size-5" /></div></Card.Content></Card.Root>@@ -184,7 +184,7 @@<p class="text-2xl font-bold">{runningStacks}</p></div><div class="bg-green-500/10 p-2 rounded-full">- <Layers class="h-5 w-5 text-green-500" />+ <Layers class="text-green-500 size-5" /></div></Card.Content></Card.Root>@@ -196,7 +196,7 @@<p class="text-2xl font-bold">{partialStacks}</p></div><div class="bg-amber-500/10 p-2 rounded-full">- <Layers class="h-5 w-5 text-amber-500" />+ <Layers class="text-amber-500 size-5" /></div></Card.Content></Card.Root>@@ -211,7 +211,7 @@</div><div class="flex items-center gap-2"><Button variant="secondary" onclick={() => goto(`/stacks/new`)}>- <Plus class="w-4 h-4" />+ <Plus class="size-4" />Create Stack</Button></div>@@ -250,7 +250,7 @@</a>{#if item.isLegacy}<span title="This stack uses the legacy layout. Migrate to the new layout from the dropdown menu." class="ml-1 flex items-center" style="filter: drop-shadow(0 0 4px #fbbf24);">- <AlertCircle class="w-4 h-4 text-amber-400 animate-pulse" />+ <AlertCircle class="text-amber-400 animate-pulse size-4" /></span>{/if}</div>@@ -264,9 +264,9 @@{#if item.isExternal}<Button onclick={() => handleImportStack(item.id, item.name)} variant="outline" title="Import Stack to Arcane" disabled={isLoading.import} class="flex items-center">{#if isLoading.import}- <Loader2 class="h-4 w-4 mr-2 animate-spin" />+ <Loader2 class="mr-2 animate-spin size-4" />{:else}- <Import class="h-4 w-4 mr-2" />+ <Import class="mr-2 size-4" />{/if}Import</Button>@@ -283,34 +283,34 @@<DropdownMenu.Content align="end"><DropdownMenu.Group><DropdownMenu.Item onclick={() => goto(`/stacks/${item.id}`)} disabled={isAnyLoading}>- <Pen class="w-4 h-4" />+ <Pen class="size-4" />Edit</DropdownMenu.Item>{#if item.status !== 'running'}<DropdownMenu.Item onclick={() => performStackAction('start', item.id)} disabled={isLoading.start || isAnyLoading}>{#if isLoading.start}- <Loader2 class="w-4 h-4 animate-spin" />+ <Loader2 class="animate-spin size-4" />{:else}- <Play class="w-4 h-4" />+ <Play class="size-4" />{/if}Start</DropdownMenu.Item>{:else}<DropdownMenu.Item onclick={() => performStackAction('restart', item.id)} disabled={isLoading.restart || isAnyLoading}>{#if isLoading.restart}- <Loader2 class="w-4 h-4 animate-spin" />+ <Loader2 class="animate-spin size-4" />{:else}- <RotateCcw class="w-4 h-4" />+ <RotateCcw class="size-4" />{/if}Restart</DropdownMenu.Item><DropdownMenu.Item onclick={() => performStackAction('stop', item.id)} disabled={isLoading.stop || isAnyLoading}>{#if isLoading.stop}- <Loader2 class="w-4 h-4 animate-spin" />+ <Loader2 class="animate-spin size-4" />{:else}- <StopCircle class="w-4 h-4" />+ <StopCircle class="size-4" />{/if}Stop</DropdownMenu.Item>@@ -319,7 +319,7 @@{#if item.isLegacy}<DropdownMenu.Item onclick={() => performStackAction('migrate', item.id)} class="text-amber-600 hover:text-amber-800 flex items-center"><span title="This stack uses the legacy layout. Migrate to the new layout." class="mr-2 flex items-center">- <AlertCircle class="w-4 h-4 text-amber-500" />+ <AlertCircle class="text-amber-500 size-4" /></span>Migrate</DropdownMenu.Item>@@ -327,11 +327,11 @@<DropdownMenu.Separator />- <DropdownMenu.Item class="text-red-500 focus:!text-red-700" onclick={() => performStackAction('destroy', item.id)} disabled={isLoading.remove || isAnyLoading}>+ <DropdownMenu.Item class="text-red-500 focus:text-red-700!" onclick={() => performStackAction('destroy', item.id)} disabled={isLoading.remove || isAnyLoading}>{#if isLoading.remove}- <Loader2 class="w-4 h-4 animate-spin" />+ <Loader2 class="animate-spin size-4" />{:else}- <Trash2 class="w-4 h-4" />+ <Trash2 class="size-4" />{/if}Destroy</DropdownMenu.Item>@@ -344,7 +344,7 @@</UniversalTable>{:else if !data.error}<div class="flex flex-col items-center justify-center py-12 px-6 text-center">- <FileStack class="h-12 w-12 text-muted-foreground mb-4 opacity-40" />+ <FileStack class="text-muted-foreground mb-4 opacity-40 size-12" /><p class="text-lg font-medium">No stacks found</p><p class="text-sm text-muted-foreground mt-1 max-w-md">Create a new stack using the "Create Stack" button above or import an existing compose file</p></div>diff --git a/src/routes/stacks/[stackId]/+page.svelte b/src/routes/stacks/[stackId]/+page.svelteindex 5b996854e..b1d875dc5 100644--- a/src/routes/stacks/[stackId]/+page.svelte+++ b/src/routes/stacks/[stackId]/+page.svelte@@ -165,7 +165,7 @@{#each allUniquePorts as port}<a href={getServicePortUrl(stack, port)} target="_blank" rel="noopener noreferrer" class="text-xs bg-blue-500/10 text-blue-600 dark:text-blue-400 px-2 py-1 rounded-md hover:bg-blue-500/20 transition-colors flex items-center gap-1 self-start mt-1.5">{port}- <ExternalLink class="h-3 w-3" />+ <ExternalLink class="size-3" /></a>{/each}{/if}@@ -192,7 +192,7 @@{#if data.error}<Alert.Root variant="destructive">- <AlertCircle class="h-4 w-4" />+ <AlertCircle class="size-4" /><Alert.Title>Error Loading Stack</Alert.Title><Alert.Description>{data.error}</Alert.Description></Alert.Root>@@ -207,7 +207,7 @@<p class="text-2xl font-bold">{stack.serviceCount}</p></div><div class="bg-primary/10 p-2 rounded-full">- <Layers class="h-5 w-5 text-primary" />+ <Layers class="text-primary size-5" /></div></Card.Content></Card.Root>@@ -219,7 +219,7 @@<p class="text-2xl font-bold">{stack.runningCount}</p></div><div class="bg-green-500/10 p-2 rounded-full">- <Layers class="h-5 w-5 text-green-500" />+ <Layers class="text-green-500 size-5" /></div></Card.Content></Card.Root>@@ -233,7 +233,7 @@</p></div><div class="bg-blue-500/10 p-2 rounded-full">- <FileStack class="h-5 w-5 text-blue-500" />+ <FileStack class="text-blue-500 size-5" /></div></Card.Content></Card.Root>@@ -258,7 +258,7 @@<div class="grid grid-cols-1 md:grid-cols-3 gap-4"><div class="md:col-span-2 space-y-2"><Label for="compose-editor" class="mb-2">Docker Compose File</Label>- <div class="border rounded-md overflow-hidden h-[550px] mt-2">+ <div class="border rounded-md overflow-hidden mt-2 h-[550px]"><YamlEditor bind:value={composeContent} readOnly={isLoading.saving || isLoading.deploying || isLoading.stopping || isLoading.restarting || isLoading.removing} /></div><p class="text-xs text-muted-foreground">@@ -269,7 +269,7 @@<div class="space-y-2"><Label for="env-editor" class="mb-2">Environment Configuration (.env)</Label>- <div class="border rounded-md overflow-hidden h-[550px] mt-2">+ <div class="border rounded-md overflow-hidden mt-2 h-[550px]"><EnvEditor bind:value={envContent} readOnly={isLoading.saving || isLoading.deploying || isLoading.stopping || isLoading.restarting || isLoading.removing} /></div><p class="text-xs text-muted-foreground">Define environment variables in KEY=value format. These will be saved as a .env file in the stack directory.</p>@@ -279,14 +279,14 @@</Card.Content><Card.Footer class="flex justify-between"><Button variant="outline" type="button" onclick={() => window.history.back()} disabled={isLoading.saving}>- <ArrowLeft class="w-4 h-4 mr-2" />+ <ArrowLeft class="mr-2 size-4" />Back</Button><Button type="button" variant="default" onclick={handleSaveChanges} disabled={isLoading.saving || !hasChanges}>{#if isLoading.saving}- <Loader2 class="w-4 h-4 mr-2 animate-spin" /> Saving...+ <Loader2 class="mr-2 animate-spin size-4" /> Saving...{:else}- <Save class="w-4 h-4 mr-2" /> Save Changes+ <Save class="mr-2 size-4" /> Save Changes{/if}</Button></Card.Footer>@@ -310,7 +310,7 @@<div class="flex items-center justify-between"><div class="flex items-center gap-3"><div class="bg-muted rounded-md p-1">- <Layers class="h-4 w-4" />+ <Layers class="size-4" /></div><div><p class="font-medium flex items-center gap-1">{service.name}</p>@@ -321,7 +321,7 @@<StatusBadge {variant} text={capitalizeFirstLetter(status)} /><span class="text-xs text-blue-500 ml-2 flex items-center"><span class="hidden sm:inline">View details</span>- <ArrowRight class="inline-block ml-1 h-3 w-3" />+ <ArrowRight class="inline-block ml-1 size-3" /></span></div></div>@@ -331,7 +331,7 @@<div class="flex items-center justify-between"><div class="flex items-center gap-3"><div class="bg-muted rounded-md p-1">- <Layers class="h-4 w-4" />+ <Layers class="size-4" /></div><div><p class="font-medium flex items-center gap-1">{service.name}</p>@@ -356,13 +356,13 @@{:else if !data.error}<div class="flex flex-col items-center justify-center py-12 border rounded-lg shadow-sm bg-card"><div class="rounded-full bg-muted/50 p-4 mb-4">- <AlertCircle class="h-8 w-8 text-muted-foreground" />+ <AlertCircle class="text-muted-foreground size-8" /></div><h2 class="text-lg font-medium mb-2">Stack Not Found</h2><p class="text-center text-muted-foreground max-w-md">Could not load stack data. It may have been removed or the Docker engine is not accessible.</p><div class="flex gap-3 mt-6"><Button variant="outline" href="/stacks">- <ArrowLeft class="h-4 w-4 mr-2" />+ <ArrowLeft class="mr-2 size-4" />Back to Stacks</Button></div>diff --git a/src/routes/stacks/new/+page.svelte b/src/routes/stacks/new/+page.svelteindex e13a59fcc..469352629 100644--- a/src/routes/stacks/new/+page.svelte+++ b/src/routes/stacks/new/+page.svelte@@ -64,7 +64,7 @@<Card.Header><div class="flex items-center gap-3"><div class="bg-primary/10 p-2 rounded-full">- <FileStack class="h-5 w-5 text-primary" />+ <FileStack class="text-primary size-5" /></div><div><Card.Title>Stack Configuration</Card.Title>@@ -82,7 +82,7 @@<div class="grid grid-cols-1 md:grid-cols-3 gap-4"><div class="md:col-span-2 space-y-2"><Label for="compose-editor" class="mb-2">Docker Compose File</Label>- <div class="border rounded-md overflow-hidden h-[550px] mt-2">+ <div class="border rounded-md overflow-hidden mt-2 h-[550px]"><YamlEditor bind:value={composeContent} readOnly={saving} /></div><p class="text-xs text-muted-foreground">Enter a valid compose.yaml file.</p>@@ -91,7 +91,7 @@<div class="space-y-2"><Label for="env-editor" class="mb-2">Environment Configuration (.env)</Label>- <div class="border rounded-md overflow-hidden h-[550px] mt-2">+ <div class="border rounded-md overflow-hidden mt-2 h-[550px]"><EnvEditor bind:value={envContent} readOnly={saving} /></div><p class="text-xs text-muted-foreground">Define environment variables in KEY=value format. These will be saved as a .env file in the stack directory.</p>@@ -101,14 +101,14 @@</Card.Content><Card.Footer class="flex justify-between"><Button variant="outline" type="button" onclick={() => window.history.back()} disabled={saving}>- <ArrowLeft class="w-4 h-4 mr-2" />+ <ArrowLeft class="mr-2 size-4" />Cancel</Button><Button type="submit" variant="default" disabled={saving || !name || !composeContent}>{#if saving}- <Loader2 class="w-4 h-4 mr-2 animate-spin" />+ <Loader2 class="mr-2 animate-spin size-4" />{:else}- <Save class="w-4 h-4 mr-2" />+ <Save class="mr-2 size-4" />{/if}Create Stack</Button>diff --git a/src/routes/volumes/+page.svelte b/src/routes/volumes/+page.svelteindex 0f9b78c8c..a0a70247d 100644--- a/src/routes/volumes/+page.svelte+++ b/src/routes/volumes/+page.svelte@@ -145,7 +145,7 @@{#if volumePageStates.error}<Alert.Root variant="destructive">- <AlertCircle class="h-4 w-4 mr-2" />+ <AlertCircle class="mr-2 size-4" /><Alert.Title>Error Loading Volumes</Alert.Title><Alert.Description>{volumePageStates.error}</Alert.Description></Alert.Root>@@ -159,7 +159,7 @@<p class="text-2xl font-bold">{totalVolumes}</p></div><div class="bg-amber-500/10 p-2 rounded-full">- <Database class="h-5 w-5 text-amber-500" />+ <Database class="text-amber-500 size-5" /></div></Card.Content></Card.Root>@@ -171,7 +171,7 @@<p class="text-2xl font-bold">local</p></div><div class="bg-blue-500/10 p-2 rounded-full">- <HardDrive class="h-5 w-5 text-blue-500" />+ <HardDrive class="text-blue-500 size-5" /></div></Card.Content></Card.Root>@@ -189,9 +189,9 @@<DropdownMenu.Trigger>{#snippet child({ props })}<Button {...props} variant="outline">- <Funnel class="w-4 h-4" />+ <Funnel class="size-4" />Filter- <ChevronDown class="w-4 h-4" />+ <ChevronDown class="size-4" /></Button>{/snippet}</DropdownMenu.Trigger>@@ -218,16 +218,16 @@{#if volumePageStates.selectedIds.length > 0}<Button variant="destructive" onclick={() => handleDeleteSelected()} disabled={isLoading.remove}>{#if isLoading.remove}- <Loader2 class="w-4 h-4 mr-2 animate-spin" />+ <Loader2 class="mr-2 animate-spin size-4" />Processing...{:else}- <Trash2 class="w-4 h-4" />+ <Trash2 class="size-4" />Delete Selected{/if}</Button>{/if}<Button variant="secondary" onclick={() => (isDialogOpen.create = true)}>- <Plus class="w-4 h-4" />+ <Plus class="size-4" />Create Volume</Button></div>@@ -276,17 +276,17 @@<DropdownMenu.Content align="end"><DropdownMenu.Group><DropdownMenu.Item onclick={() => goto(`/volumes/${encodeURIComponent(item.name)}`)} disabled={isLoading.remove}>- <ScanSearch class="w-4 h-4" />+ <ScanSearch class="size-4" />Inspect</DropdownMenu.Item><DropdownMenu.Separator />- <DropdownMenu.Item class="text-red-500 focus:!text-red-700" onclick={() => handleRemoveVolumeConfirm(item.name)} disabled={isLoading.remove}>+ <DropdownMenu.Item class="text-red-500 focus:text-red-700!" onclick={() => handleRemoveVolumeConfirm(item.name)} disabled={isLoading.remove}>{#if isLoading.remove}- <Loader2 class="w-4 h-4 animate-spin" />+ <Loader2 class="animate-spin size-4" />{:else}- <Trash2 class="w-4 h-4" />+ <Trash2 class="size-4" />{/if}Delete</DropdownMenu.Item>@@ -298,7 +298,7 @@</UniversalTable>{:else if !volumePageStates.error}<div class="flex flex-col items-center justify-center py-12 px-6 text-center">- <Database class="h-12 w-12 text-muted-foreground mb-4 opacity-40" />+ <Database class="text-muted-foreground mb-4 opacity-40 size-12" /><p class="text-lg font-medium">No volumes found</p><p class="text-sm text-muted-foreground mt-1 max-w-md">Create a new volume using the "Create Volume" button above or use the Docker CLI</p></div>diff --git a/src/routes/volumes/[volumeName]/+page.svelte b/src/routes/volumes/[volumeName]/+page.svelteindex 19c1f0a2a..54f30f063 100644--- a/src/routes/volumes/[volumeName]/+page.svelte+++ b/src/routes/volumes/[volumeName]/+page.svelte@@ -9,7 +9,7 @@import * as Alert from '$lib/components/ui/alert/index.js';import { Separator } from '$lib/components/ui/separator/index.js';import { Badge } from '$lib/components/ui/badge/index.js';- import { formatDate } from '$lib/utils';+ import { formatDate } from '$lib/utils/string.utils';let { data, form }: { data: PageData; form: ActionData } = $props();let { volume, inUse } = $derived(data);@@ -53,7 +53,7 @@{volume?.Name || 'Volume Details'}</h1>{#if inUse}- <Badge variant="outline"><Info class="h-3 w-3 mr-1" /> In Use</Badge>+ <Badge variant="outline"><Info class="mr-1 size-3" /> In Use</Badge>{/if}</div></div>@@ -64,9 +64,9 @@</Button><Button variant="destructive" size="sm" onclick={triggerRemove} disabled={isRemoving}>{#if isRemoving}- <Loader2 class="h-4 w-4 mr-2 animate-spin" />+ <Loader2 class="mr-2 animate-spin size-4" />{:else}- <Trash2 class="h-4 w-4 mr-2" />+ <Trash2 class="mr-2 size-4" />{/if} Remove</Button><form@@ -89,7 +89,7 @@{#if form?.error}<Alert.Root variant="destructive">- <AlertCircle class="h-4 w-4 mr-2" />+ <AlertCircle class="mr-2 size-4" /><Alert.Title>Action Failed</Alert.Title><Alert.Description>{form.error}</Alert.Description></Alert.Root>@@ -104,8 +104,8 @@<Card.Content><div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6"><div class="flex items-start gap-3">- <div class="bg-gray-500/10 p-2 rounded-full h-10 w-10 flex items-center justify-center flex-shrink-0">- <Database class="h-5 w-5 text-gray-500" />+ <div class="bg-gray-500/10 p-2 rounded-full flex items-center justify-center shrink-0 size-10">+ <Database class="text-gray-500 size-5" /></div><div class="min-w-0 flex-1"><p class="text-sm font-medium text-muted-foreground">Name</p>@@ -114,8 +114,8 @@</div><div class="flex items-start gap-3">- <div class="bg-blue-500/10 p-2 rounded-full h-10 w-10 flex items-center justify-center flex-shrink-0">- <HardDrive class="h-5 w-5 text-blue-500" />+ <div class="bg-blue-500/10 p-2 rounded-full flex items-center justify-center shrink-0 size-10">+ <HardDrive class="text-blue-500 size-5" /></div><div class="min-w-0 flex-1"><p class="text-sm font-medium text-muted-foreground">Driver</p>@@ -124,8 +124,8 @@</div><div class="flex items-start gap-3">- <div class="bg-green-500/10 p-2 rounded-full h-10 w-10 flex items-center justify-center flex-shrink-0">- <Clock class="h-5 w-5 text-green-500" />+ <div class="bg-green-500/10 p-2 rounded-full flex items-center justify-center shrink-0 size-10">+ <Clock class="text-green-500 size-5" /></div><div class="min-w-0 flex-1"><p class="text-sm font-medium text-muted-foreground">Created</p>@@ -134,8 +134,8 @@</div><div class="flex items-start gap-3">- <div class="bg-purple-500/10 p-2 rounded-full h-10 w-10 flex items-center justify-center flex-shrink-0">- <Globe class="h-5 w-5 text-purple-500" />+ <div class="bg-purple-500/10 p-2 rounded-full flex items-center justify-center shrink-0 size-10">+ <Globe class="text-purple-500 size-5" /></div><div class="min-w-0 flex-1"><p class="text-sm font-medium text-muted-foreground">Scope</p>@@ -144,8 +144,8 @@</div><div class="flex items-start gap-3 col-span-1 sm:col-span-2">- <div class="bg-teal-500/10 p-2 rounded-full h-10 w-10 flex items-center justify-center flex-shrink-0">- <Layers class="h-5 w-5 text-teal-500" />+ <div class="bg-teal-500/10 p-2 rounded-full flex items-center justify-center shrink-0 size-10">+ <Layers class="text-teal-500 size-5" /></div><div class="min-w-0 flex-1"><p class="text-sm font-medium text-muted-foreground">Mountpoint</p>@@ -159,7 +159,7 @@{#if volume.Labels && Object.keys(volume.Labels).length > 0}<Card.Root class="border shadow-sm"><Card.Header>- <Card.Title class="flex items-center gap-2"><Tag class="h-5 w-5 text-muted-foreground" /> Labels</Card.Title>+ <Card.Title class="flex items-center gap-2"><Tag class="text-muted-foreground size-5" /> Labels</Card.Title></Card.Header><Card.Content class="space-y-2">{#each Object.entries(volume.Labels) as [key, value] (key)}@@ -198,7 +198,7 @@<div class="text-center py-12"><p class="text-lg font-medium text-muted-foreground">Volume not found.</p><Button href="/volumes" variant="outline" size="sm" class="mt-4">- <ArrowLeft class="h-4 w-4 mr-2" /> Back to Volumes+ <ArrowLeft class="mr-2 size-4" /> Back to Volumes</Button></div>{/if}diff --git a/src/routes/volumes/create-volume-dialog.svelte b/src/routes/volumes/create-volume-dialog.svelteindex 288133c4f..19d1aac73 100644--- a/src/routes/volumes/create-volume-dialog.svelte+++ b/src/routes/volumes/create-volume-dialog.svelte@@ -128,7 +128,7 @@<Button variant="outline" onclick={() => (open = false)} disabled={isCreating}>Cancel</Button><Button type="submit" onclick={handleSubmit} disabled={isCreating || !volumeCreateStates.volumeName.trim()}>{#if isCreating}- <Loader2 class="h-4 w-4 mr-2 animate-spin" /> Creating...+ <Loader2 class="mr-2 animate-spin size-4" /> Creating...{:else}Create Volume{/if}diff --git a/tailwind.config.ts b/tailwind.config.tsindex efeb6c73b..3de95438c 100644--- a/tailwind.config.ts+++ b/tailwind.config.ts@@ -1,10 +1,8 @@-import { fontFamily } from 'tailwindcss/defaultTheme';import type { Config } from 'tailwindcss';const config: Config = {- darkMode: ['class'],+ darkMode: 'class',content: ['./src/**/*.{html,js,svelte,ts}'],- safelist: ['dark'],theme: {container: {center: true,@@ -65,9 +63,6 @@ const config: Config = {md: 'calc(var(--radius) - 2px)',sm: 'calc(var(--radius) - 4px)'},- fontFamily: {- sans: [...fontFamily.sans]- },keyframes: {'accordion-down': {from: { height: '0' },diff --git a/tests/images.spec.ts b/tests/images.spec.tsindex 01d4c69ff..32f0f50a4 100644--- a/tests/images.spec.ts+++ b/tests/images.spec.ts@@ -1,5 +1,5 @@import { test, expect, type Page } from '@playwright/test';-import { formatBytes } from '../src/lib/utils'; // Assuming utils are accessible+import { formatBytes } from '../src/lib/utils/bytes.util';// Mock data for imagesconst mockImages = [