Modern Docker Management, Designed for Everyone
Go composecontainer-managementcontainersdockerdocker-composedocker-managementgoself-hostedsveltekittypescriptweb-ui
chore: run formatter
Kyle Mendell407bb8cd3d03
diff --git a/backend/internal/huma/handlers/container_registries.go b/backend/internal/huma/handlers/container_registries.goindex d38db10e4..8d0c57963 100644--- a/backend/internal/huma/handlers/container_registries.go+++ b/backend/internal/huma/handlers/container_registries.go@@ -32,11 +32,11 @@ type ContainerRegistryPaginatedResponse struct {}type ListContainerRegistriesInput struct {- Search string `query:"search" doc:"Search query"`- Sort string `query:"sort" doc:"Column to sort by"`- Order string `query:"order" default:"asc" doc:"Sort direction"`- Start int `query:"start" default:"0" doc:"Start index"`- Limit int `query:"limit" default:"20" doc:"Items per page"`+ Search string `query:"search" doc:"Search query"`+ Sort string `query:"sort" doc:"Column to sort by"`+ Order string `query:"order" default:"asc" doc:"Sort direction"`+ Start int `query:"start" default:"0" doc:"Start index"`+ Limit int `query:"limit" default:"20" doc:"Items per page"`}type ListContainerRegistriesOutput struct {diff --git a/frontend/src/lib/components/monaco-code-editor/monaco.ts b/frontend/src/lib/components/monaco-code-editor/monaco.tsindex 656bfb0a9..ae15a6591 100644--- a/frontend/src/lib/components/monaco-code-editor/monaco.ts+++ b/frontend/src/lib/components/monaco-code-editor/monaco.ts@@ -19,7 +19,6 @@ import { registerYamlProviders } from './yaml-providers';import { shikiToMonaco } from '@shikijs/monaco';import { createHighlighter } from 'shiki';-/*** Initialize Shiki highlighter for Monaco*/diff --git a/frontend/src/lib/components/monaco-code-editor/yaml-providers.ts b/frontend/src/lib/components/monaco-code-editor/yaml-providers.tsindex 2933bb186..68aab4037 100644--- a/frontend/src/lib/components/monaco-code-editor/yaml-providers.ts+++ b/frontend/src/lib/components/monaco-code-editor/yaml-providers.ts@@ -294,9 +294,7 @@ export function registerYamlCompletionProvider(monaco: typeof Monaco) {const suggestions = schemaManager.getSuggestions(context).map((s) => ({...s,range,- insertTextRules: s.insertText.includes('$')- ? monaco.languages.CompletionItemInsertTextRule.InsertAsSnippet- : undefined+ insertTextRules: s.insertText.includes('$') ? monaco.languages.CompletionItemInsertTextRule.InsertAsSnippet : undefined}));return { suggestions };@@ -316,12 +314,7 @@ export function registerYamlHoverProvider(monaco: typeof Monaco) {const documentation = schemaManager.getDocumentation(word.word);if (documentation) {return {- range: new monaco.Range(- position.lineNumber,- word.startColumn,- position.lineNumber,- word.endColumn- ),+ range: new monaco.Range(position.lineNumber, word.startColumn, position.lineNumber, word.endColumn),contents: [{ value: documentation }]};}@@ -337,4 +330,3 @@ export function registerYamlHoverProvider(monaco: typeof Monaco) {export function registerYamlProviders(monaco: typeof Monaco) {return [registerYamlCompletionProvider(monaco), registerYamlHoverProvider(monaco)];}-diff --git a/frontend/src/lib/components/ui/calendar/calendar-caption.svelte b/frontend/src/lib/components/ui/calendar/calendar-caption.svelteindex 5c9303701..670ee832a 100644--- a/frontend/src/lib/components/ui/calendar/calendar-caption.svelte+++ b/frontend/src/lib/components/ui/calendar/calendar-caption.svelte@@ -1,9 +1,9 @@<script lang="ts">- import type { ComponentProps } from "svelte";- import type Calendar from "./calendar.svelte";- import CalendarMonthSelect from "./calendar-month-select.svelte";- import CalendarYearSelect from "./calendar-year-select.svelte";- import { DateFormatter, getLocalTimeZone, type DateValue } from "@internationalized/date";+ import type { ComponentProps } from 'svelte';+ import type Calendar from './calendar.svelte';+ import CalendarMonthSelect from './calendar-month-select.svelte';+ import CalendarYearSelect from './calendar-year-select.svelte';+ import { DateFormatter, getLocalTimeZone, type DateValue } from '@internationalized/date';let {captionLayout,@@ -14,13 +14,13 @@month,locale,placeholder = $bindable(),- monthIndex = 0,+ monthIndex = 0}: {- captionLayout: ComponentProps<typeof Calendar>["captionLayout"];- months: ComponentProps<typeof CalendarMonthSelect>["months"];- monthFormat: ComponentProps<typeof CalendarMonthSelect>["monthFormat"];- years: ComponentProps<typeof CalendarYearSelect>["years"];- yearFormat: ComponentProps<typeof CalendarYearSelect>["yearFormat"];+ captionLayout: ComponentProps<typeof Calendar>['captionLayout'];+ months: ComponentProps<typeof CalendarMonthSelect>['months'];+ monthFormat: ComponentProps<typeof CalendarMonthSelect>['monthFormat'];+ years: ComponentProps<typeof CalendarYearSelect>['years'];+ yearFormat: ComponentProps<typeof CalendarYearSelect>['yearFormat'];month: DateValue;placeholder: DateValue | undefined;locale: string;@@ -29,13 +29,13 @@function formatYear(date: DateValue) {const dateObj = date.toDate(getLocalTimeZone());- if (typeof yearFormat === "function") return yearFormat(dateObj.getFullYear());+ if (typeof yearFormat === 'function') return yearFormat(dateObj.getFullYear());return new DateFormatter(locale, { year: yearFormat }).format(dateObj);}function formatMonth(date: DateValue) {const dateObj = date.toDate(getLocalTimeZone());- if (typeof monthFormat === "function") return monthFormat(dateObj.getMonth() + 1);+ if (typeof monthFormat === 'function') return monthFormat(dateObj.getMonth() + 1);return new DateFormatter(locale, { month: monthFormat }).format(dateObj);}</script>@@ -58,15 +58,15 @@<CalendarYearSelect {years} {yearFormat} value={month.year} />{/snippet}-{#if captionLayout === "dropdown"}+{#if captionLayout === 'dropdown'}{@render MonthSelect()}{@render YearSelect()}-{:else if captionLayout === "dropdown-months"}+{:else if captionLayout === 'dropdown-months'}{@render MonthSelect()}{#if placeholder}{formatYear(placeholder)}{/if}-{:else if captionLayout === "dropdown-years"}+{:else if captionLayout === 'dropdown-years'}{#if placeholder}{formatMonth(placeholder)}{/if}diff --git a/frontend/src/lib/components/ui/calendar/calendar-cell.svelte b/frontend/src/lib/components/ui/calendar/calendar-cell.svelteindex fad6c3670..9c0dfc84f 100644--- a/frontend/src/lib/components/ui/calendar/calendar-cell.svelte+++ b/frontend/src/lib/components/ui/calendar/calendar-cell.svelte@@ -1,18 +1,14 @@<script lang="ts">- import { Calendar as CalendarPrimitive } from "bits-ui";- import { cn } from "$lib/utils.js";+ import { Calendar as CalendarPrimitive } from 'bits-ui';+ import { cn } from '$lib/utils.js';- let {- ref = $bindable(null),- class: className,- ...restProps- }: CalendarPrimitive.CellProps = $props();+ let { ref = $bindable(null), class: className, ...restProps }: CalendarPrimitive.CellProps = $props();</script><CalendarPrimitive.Cellbind:refclass={cn(- "size-(--cell-size) relative p-0 text-center text-sm focus-within:z-20 [&:first-child[data-selected]_[data-bits-day]]:rounded-s-md [&:last-child[data-selected]_[data-bits-day]]:rounded-e-md",+ 'relative size-(--cell-size) p-0 text-center text-sm focus-within:z-20 [&:first-child[data-selected]_[data-bits-day]]:rounded-s-md [&:last-child[data-selected]_[data-bits-day]]:rounded-e-md',className)}{...restProps}diff --git a/frontend/src/lib/components/ui/calendar/calendar-day.svelte b/frontend/src/lib/components/ui/calendar/calendar-day.svelteindex 32e9c8345..3d65effec 100644--- a/frontend/src/lib/components/ui/calendar/calendar-day.svelte+++ b/frontend/src/lib/components/ui/calendar/calendar-day.svelte@@ -1,34 +1,30 @@<script lang="ts">- import { buttonVariants } from "$lib/components/ui/button/index.js";- import { cn } from "$lib/utils.js";- import { Calendar as CalendarPrimitive } from "bits-ui";+ import { buttonVariants } from '$lib/components/ui/button/index.js';+ import { cn } from '$lib/utils.js';+ import { Calendar as CalendarPrimitive } from 'bits-ui';- let {- ref = $bindable(null),- class: className,- ...restProps- }: CalendarPrimitive.DayProps = $props();+ let { ref = $bindable(null), class: className, ...restProps }: CalendarPrimitive.DayProps = $props();</script><CalendarPrimitive.Daybind:refclass={cn(- buttonVariants({ variant: "ghost" }),- "size-(--cell-size) flex select-none flex-col items-center justify-center gap-1 whitespace-nowrap p-0 font-normal leading-none",- "[&[data-today]:not([data-selected])]:bg-accent [&[data-today]:not([data-selected])]:text-accent-foreground [&[data-today][data-disabled]]:text-muted-foreground",- "data-[selected]:bg-primary dark:data-[selected]:hover:bg-accent/50 data-[selected]:text-primary-foreground",+ buttonVariants({ variant: 'ghost' }),+ 'flex size-(--cell-size) flex-col items-center justify-center gap-1 p-0 leading-none font-normal whitespace-nowrap select-none',+ '[&[data-today]:not([data-selected])]:bg-accent [&[data-today]:not([data-selected])]:text-accent-foreground [&[data-today][data-disabled]]:text-muted-foreground',+ 'data-[selected]:bg-primary dark:data-[selected]:hover:bg-accent/50 data-[selected]:text-primary-foreground',// Outside months- "[&[data-outside-month]:not([data-selected])]:text-muted-foreground [&[data-outside-month]:not([data-selected])]:hover:text-accent-foreground",+ '[&[data-outside-month]:not([data-selected])]:text-muted-foreground [&[data-outside-month]:not([data-selected])]:hover:text-accent-foreground',// Disabled- "data-[disabled]:text-muted-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",+ 'data-[disabled]:text-muted-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50',// Unavailable- "data-[unavailable]:text-muted-foreground data-[unavailable]:line-through",+ 'data-[unavailable]:text-muted-foreground data-[unavailable]:line-through',// hover- "dark:hover:text-accent-foreground",+ 'dark:hover:text-accent-foreground',// focus- "focus:border-ring focus:ring-ring/50 focus:relative",+ 'focus:border-ring focus:ring-ring/50 focus:relative',// inner spans- "[&>span]:text-xs [&>span]:opacity-70",+ '[&>span]:text-xs [&>span]:opacity-70',className)}{...restProps}diff --git a/frontend/src/lib/components/ui/calendar/calendar-grid-body.svelte b/frontend/src/lib/components/ui/calendar/calendar-grid-body.svelteindex 8cd86decd..cb9d47d1c 100644--- a/frontend/src/lib/components/ui/calendar/calendar-grid-body.svelte+++ b/frontend/src/lib/components/ui/calendar/calendar-grid-body.svelte@@ -1,12 +1,8 @@<script lang="ts">- import { Calendar as CalendarPrimitive } from "bits-ui";- import { cn } from "$lib/utils.js";+ import { Calendar as CalendarPrimitive } from 'bits-ui';+ import { cn } from '$lib/utils.js';- let {- ref = $bindable(null),- class: className,- ...restProps- }: CalendarPrimitive.GridBodyProps = $props();+ let { ref = $bindable(null), class: className, ...restProps }: CalendarPrimitive.GridBodyProps = $props();</script><CalendarPrimitive.GridBody bind:ref class={cn(className)} {...restProps} />diff --git a/frontend/src/lib/components/ui/calendar/calendar-grid-head.svelte b/frontend/src/lib/components/ui/calendar/calendar-grid-head.svelteindex 333edc47e..4379ed613 100644--- a/frontend/src/lib/components/ui/calendar/calendar-grid-head.svelte+++ b/frontend/src/lib/components/ui/calendar/calendar-grid-head.svelte@@ -1,12 +1,8 @@<script lang="ts">- import { Calendar as CalendarPrimitive } from "bits-ui";- import { cn } from "$lib/utils.js";+ import { Calendar as CalendarPrimitive } from 'bits-ui';+ import { cn } from '$lib/utils.js';- let {- ref = $bindable(null),- class: className,- ...restProps- }: CalendarPrimitive.GridHeadProps = $props();+ let { ref = $bindable(null), class: className, ...restProps }: CalendarPrimitive.GridHeadProps = $props();</script><CalendarPrimitive.GridHead bind:ref class={cn(className)} {...restProps} />diff --git a/frontend/src/lib/components/ui/calendar/calendar-grid-row.svelte b/frontend/src/lib/components/ui/calendar/calendar-grid-row.svelteindex 903223698..c4976e885 100644--- a/frontend/src/lib/components/ui/calendar/calendar-grid-row.svelte+++ b/frontend/src/lib/components/ui/calendar/calendar-grid-row.svelte@@ -1,12 +1,8 @@<script lang="ts">- import { Calendar as CalendarPrimitive } from "bits-ui";- import { cn } from "$lib/utils.js";+ import { Calendar as CalendarPrimitive } from 'bits-ui';+ import { cn } from '$lib/utils.js';- let {- ref = $bindable(null),- class: className,- ...restProps- }: CalendarPrimitive.GridRowProps = $props();+ let { ref = $bindable(null), class: className, ...restProps }: CalendarPrimitive.GridRowProps = $props();</script>-<CalendarPrimitive.GridRow bind:ref class={cn("flex", className)} {...restProps} />+<CalendarPrimitive.GridRow bind:ref class={cn('flex', className)} {...restProps} />diff --git a/frontend/src/lib/components/ui/calendar/calendar-grid.svelte b/frontend/src/lib/components/ui/calendar/calendar-grid.svelteindex e0c8627f3..2581d1442 100644--- a/frontend/src/lib/components/ui/calendar/calendar-grid.svelte+++ b/frontend/src/lib/components/ui/calendar/calendar-grid.svelte@@ -1,16 +1,8 @@<script lang="ts">- import { Calendar as CalendarPrimitive } from "bits-ui";- import { cn } from "$lib/utils.js";+ import { Calendar as CalendarPrimitive } from 'bits-ui';+ import { cn } from '$lib/utils.js';- let {- ref = $bindable(null),- class: className,- ...restProps- }: CalendarPrimitive.GridProps = $props();+ let { ref = $bindable(null), class: className, ...restProps }: CalendarPrimitive.GridProps = $props();</script>-<CalendarPrimitive.Grid- bind:ref- class={cn("mt-4 flex w-full border-collapse flex-col gap-1", className)}- {...restProps}-/>+<CalendarPrimitive.Grid bind:ref class={cn('mt-4 flex w-full border-collapse flex-col gap-1', className)} {...restProps} />diff --git a/frontend/src/lib/components/ui/calendar/calendar-head-cell.svelte b/frontend/src/lib/components/ui/calendar/calendar-head-cell.svelteindex 131807e2d..e8ae40f10 100644--- a/frontend/src/lib/components/ui/calendar/calendar-head-cell.svelte+++ b/frontend/src/lib/components/ui/calendar/calendar-head-cell.svelte@@ -1,19 +1,12 @@<script lang="ts">- import { Calendar as CalendarPrimitive } from "bits-ui";- import { cn } from "$lib/utils.js";+ import { Calendar as CalendarPrimitive } from 'bits-ui';+ import { cn } from '$lib/utils.js';- let {- ref = $bindable(null),- class: className,- ...restProps- }: CalendarPrimitive.HeadCellProps = $props();+ let { ref = $bindable(null), class: className, ...restProps }: CalendarPrimitive.HeadCellProps = $props();</script><CalendarPrimitive.HeadCellbind:ref- class={cn(- "text-muted-foreground w-(--cell-size) rounded-md text-[0.8rem] font-normal",- className- )}+ class={cn('text-muted-foreground w-(--cell-size) rounded-md text-[0.8rem] font-normal', className)}{...restProps}/>diff --git a/frontend/src/lib/components/ui/calendar/calendar-header.svelte b/frontend/src/lib/components/ui/calendar/calendar-header.svelteindex 5b7e3972f..574daa580 100644--- a/frontend/src/lib/components/ui/calendar/calendar-header.svelte+++ b/frontend/src/lib/components/ui/calendar/calendar-header.svelte@@ -1,19 +1,12 @@<script lang="ts">- import { Calendar as CalendarPrimitive } from "bits-ui";- import { cn } from "$lib/utils.js";+ import { Calendar as CalendarPrimitive } from 'bits-ui';+ import { cn } from '$lib/utils.js';- let {- ref = $bindable(null),- class: className,- ...restProps- }: CalendarPrimitive.HeaderProps = $props();+ let { ref = $bindable(null), class: className, ...restProps }: CalendarPrimitive.HeaderProps = $props();</script><CalendarPrimitive.Headerbind:ref- class={cn(- "h-(--cell-size) flex w-full items-center justify-center gap-1.5 text-sm font-medium",- className- )}+ class={cn('flex h-(--cell-size) w-full items-center justify-center gap-1.5 text-sm font-medium', className)}{...restProps}/>diff --git a/frontend/src/lib/components/ui/calendar/calendar-heading.svelte b/frontend/src/lib/components/ui/calendar/calendar-heading.svelteindex a9b9810c6..e4fd17a1f 100644--- a/frontend/src/lib/components/ui/calendar/calendar-heading.svelte+++ b/frontend/src/lib/components/ui/calendar/calendar-heading.svelte@@ -1,16 +1,8 @@<script lang="ts">- import { Calendar as CalendarPrimitive } from "bits-ui";- import { cn } from "$lib/utils.js";+ import { Calendar as CalendarPrimitive } from 'bits-ui';+ import { cn } from '$lib/utils.js';- let {- ref = $bindable(null),- class: className,- ...restProps- }: CalendarPrimitive.HeadingProps = $props();+ let { ref = $bindable(null), class: className, ...restProps }: CalendarPrimitive.HeadingProps = $props();</script>-<CalendarPrimitive.Heading- bind:ref- class={cn("px-(--cell-size) text-sm font-medium", className)}- {...restProps}-/>+<CalendarPrimitive.Heading bind:ref class={cn('px-(--cell-size) text-sm font-medium', className)} {...restProps} />diff --git a/frontend/src/lib/components/ui/calendar/calendar-month.svelte b/frontend/src/lib/components/ui/calendar/calendar-month.svelteindex e747fae74..efe380f5b 100644--- a/frontend/src/lib/components/ui/calendar/calendar-month.svelte+++ b/frontend/src/lib/components/ui/calendar/calendar-month.svelte@@ -1,15 +1,10 @@<script lang="ts">- import { type WithElementRef, cn } from "$lib/utils.js";- import type { HTMLAttributes } from "svelte/elements";+ import { type WithElementRef, cn } from '$lib/utils.js';+ import type { HTMLAttributes } from 'svelte/elements';- let {- ref = $bindable(null),- class: className,- children,- ...restProps- }: WithElementRef<HTMLAttributes<HTMLElement>> = $props();+ let { ref = $bindable(null), class: className, children, ...restProps }: WithElementRef<HTMLAttributes<HTMLElement>> = $props();</script>-<div {...restProps} bind:this={ref} class={cn("flex flex-col", className)}>+<div {...restProps} bind:this={ref} class={cn('flex flex-col', className)}>{@render children?.()}</div>diff --git a/frontend/src/lib/components/ui/calendar/calendar-months.svelte b/frontend/src/lib/components/ui/calendar/calendar-months.svelteindex f717a9d9a..819ac90e7 100644--- a/frontend/src/lib/components/ui/calendar/calendar-months.svelte+++ b/frontend/src/lib/components/ui/calendar/calendar-months.svelte@@ -1,6 +1,6 @@<script lang="ts">- import type { HTMLAttributes } from "svelte/elements";- import { cn, type WithElementRef } from "$lib/utils.js";+ import type { HTMLAttributes } from 'svelte/elements';+ import { cn, type WithElementRef } from '$lib/utils.js';let {ref = $bindable(null),@@ -10,10 +10,6 @@}: WithElementRef<HTMLAttributes<HTMLDivElement>> = $props();</script>-<div- bind:this={ref}- class={cn("relative flex flex-col gap-4 md:flex-row", className)}- {...restProps}->+<div bind:this={ref} class={cn('relative flex flex-col gap-4 md:flex-row', className)} {...restProps}>{@render children?.()}</div>diff --git a/frontend/src/lib/components/ui/calendar/calendar-nav.svelte b/frontend/src/lib/components/ui/calendar/calendar-nav.svelteindex 27f33d797..85014715e 100644--- a/frontend/src/lib/components/ui/calendar/calendar-nav.svelte+++ b/frontend/src/lib/components/ui/calendar/calendar-nav.svelte@@ -1,19 +1,14 @@<script lang="ts">- import { cn, type WithElementRef } from "$lib/utils.js";- import type { HTMLAttributes } from "svelte/elements";+ import { cn, type WithElementRef } from '$lib/utils.js';+ import type { HTMLAttributes } from 'svelte/elements';- let {- ref = $bindable(null),- class: className,- children,- ...restProps- }: WithElementRef<HTMLAttributes<HTMLElement>> = $props();+ let { ref = $bindable(null), class: className, children, ...restProps }: WithElementRef<HTMLAttributes<HTMLElement>> = $props();</script><nav{...restProps}bind:this={ref}- class={cn("absolute inset-x-0 top-0 flex w-full items-center justify-between gap-1", className)}+ class={cn('absolute inset-x-0 top-0 flex w-full items-center justify-between gap-1', className)}>{@render children?.()}</nav>diff --git a/frontend/src/lib/components/ui/calendar/calendar.svelte b/frontend/src/lib/components/ui/calendar/calendar.svelteindex 29b6fff9a..482e52900 100644--- a/frontend/src/lib/components/ui/calendar/calendar.svelte+++ b/frontend/src/lib/components/ui/calendar/calendar.svelte@@ -1,41 +1,41 @@<script lang="ts">- import { Calendar as CalendarPrimitive } from "bits-ui";- import * as Calendar from "./index.js";- import { cn, type WithoutChildrenOrChild } from "$lib/utils.js";- import type { ButtonVariant } from "../button/button.svelte";- import { isEqualMonth, type DateValue } from "@internationalized/date";- import type { Snippet } from "svelte";+ import { Calendar as CalendarPrimitive } from 'bits-ui';+ import * as Calendar from './index.js';+ import { cn, type WithoutChildrenOrChild } from '$lib/utils.js';+ import type { ButtonVariant } from '../button/button.svelte';+ import { isEqualMonth, type DateValue } from '@internationalized/date';+ import type { Snippet } from 'svelte';let {ref = $bindable(null),value = $bindable(),placeholder = $bindable(),class: className,- weekdayFormat = "short",- buttonVariant = "ghost",- captionLayout = "label",- locale = "en-US",+ weekdayFormat = 'short',+ buttonVariant = 'ghost',+ captionLayout = 'label',+ locale = 'en-US',months: monthsProp,years,monthFormat: monthFormatProp,- yearFormat = "numeric",+ yearFormat = 'numeric',day,disableDaysOutsideMonth = false,...restProps}: WithoutChildrenOrChild<CalendarPrimitive.RootProps> & {buttonVariant?: ButtonVariant;- captionLayout?: "dropdown" | "dropdown-months" | "dropdown-years" | "label";- months?: CalendarPrimitive.MonthSelectProps["months"];- years?: CalendarPrimitive.YearSelectProps["years"];- monthFormat?: CalendarPrimitive.MonthSelectProps["monthFormat"];- yearFormat?: CalendarPrimitive.YearSelectProps["yearFormat"];+ captionLayout?: 'dropdown' | 'dropdown-months' | 'dropdown-years' | 'label';+ months?: CalendarPrimitive.MonthSelectProps['months'];+ years?: CalendarPrimitive.YearSelectProps['years'];+ monthFormat?: CalendarPrimitive.MonthSelectProps['monthFormat'];+ yearFormat?: CalendarPrimitive.YearSelectProps['yearFormat'];day?: Snippet<[{ day: DateValue; outsideMonth: boolean }]>;} = $props();const monthFormat = $derived.by(() => {if (monthFormatProp) return monthFormatProp;- if (captionLayout.startsWith("dropdown")) return "short";- return "long";+ if (captionLayout.startsWith('dropdown')) return 'short';+ return 'long';});</script>@@ -50,7 +50,7 @@ get along, so we shut typescript up by casting `value` to `never`.{weekdayFormat}{disableDaysOutsideMonth}class={cn(- "bg-background group/calendar p-3 [--cell-size:--spacing(8)] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent",+ 'bg-background group/calendar p-3 [--cell-size:--spacing(8)] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent',className)}{locale}@@ -97,7 +97,7 @@ get along, so we shut typescript up by casting `value` to `never`.{#if day}{@render day({day: date,- outsideMonth: !isEqualMonth(date, month.value),+ outsideMonth: !isEqualMonth(date, month.value)})}{:else}<Calendar.Day />diff --git a/frontend/src/lib/components/ui/calendar/index.ts b/frontend/src/lib/components/ui/calendar/index.tsindex f3a16d2d5..180d173b2 100644--- a/frontend/src/lib/components/ui/calendar/index.ts+++ b/frontend/src/lib/components/ui/calendar/index.ts@@ -1,21 +1,21 @@-import Root from "./calendar.svelte";-import Cell from "./calendar-cell.svelte";-import Day from "./calendar-day.svelte";-import Grid from "./calendar-grid.svelte";-import Header from "./calendar-header.svelte";-import Months from "./calendar-months.svelte";-import GridRow from "./calendar-grid-row.svelte";-import Heading from "./calendar-heading.svelte";-import GridBody from "./calendar-grid-body.svelte";-import GridHead from "./calendar-grid-head.svelte";-import HeadCell from "./calendar-head-cell.svelte";-import NextButton from "./calendar-next-button.svelte";-import PrevButton from "./calendar-prev-button.svelte";-import MonthSelect from "./calendar-month-select.svelte";-import YearSelect from "./calendar-year-select.svelte";-import Month from "./calendar-month.svelte";-import Nav from "./calendar-nav.svelte";-import Caption from "./calendar-caption.svelte";+import Root from './calendar.svelte';+import Cell from './calendar-cell.svelte';+import Day from './calendar-day.svelte';+import Grid from './calendar-grid.svelte';+import Header from './calendar-header.svelte';+import Months from './calendar-months.svelte';+import GridRow from './calendar-grid-row.svelte';+import Heading from './calendar-heading.svelte';+import GridBody from './calendar-grid-body.svelte';+import GridHead from './calendar-grid-head.svelte';+import HeadCell from './calendar-head-cell.svelte';+import NextButton from './calendar-next-button.svelte';+import PrevButton from './calendar-prev-button.svelte';+import MonthSelect from './calendar-month-select.svelte';+import YearSelect from './calendar-year-select.svelte';+import Month from './calendar-month.svelte';+import Nav from './calendar-nav.svelte';+import Caption from './calendar-caption.svelte';export {Day,@@ -36,5 +36,5 @@ export {MonthSelect,Caption,//- Root as Calendar,+ Root as Calendar};diff --git a/frontend/src/lib/components/ui/item/index.ts b/frontend/src/lib/components/ui/item/index.tsindex 168bc3eca..3b548a5a7 100644--- a/frontend/src/lib/components/ui/item/index.ts+++ b/frontend/src/lib/components/ui/item/index.ts@@ -1,13 +1,13 @@-import Root from "./item.svelte";-import Group from "./item-group.svelte";-import Separator from "./item-separator.svelte";-import Header from "./item-header.svelte";-import Footer from "./item-footer.svelte";-import Content from "./item-content.svelte";-import Title from "./item-title.svelte";-import Description from "./item-description.svelte";-import Actions from "./item-actions.svelte";-import Media from "./item-media.svelte";+import Root from './item.svelte';+import Group from './item-group.svelte';+import Separator from './item-separator.svelte';+import Header from './item-header.svelte';+import Footer from './item-footer.svelte';+import Content from './item-content.svelte';+import Title from './item-title.svelte';+import Description from './item-description.svelte';+import Actions from './item-actions.svelte';+import Media from './item-media.svelte';export {Root,@@ -30,5 +30,5 @@ export {Title as ItemTitle,Description as ItemDescription,Actions as ItemActions,- Media as ItemMedia,+ Media as ItemMedia};diff --git a/frontend/src/lib/components/ui/item/item-actions.svelte b/frontend/src/lib/components/ui/item/item-actions.svelteindex 83a6bb2ad..cfce38037 100644--- a/frontend/src/lib/components/ui/item/item-actions.svelte+++ b/frontend/src/lib/components/ui/item/item-actions.svelte@@ -1,6 +1,6 @@<script lang="ts">- import { cn, type WithElementRef } from "$lib/utils.js";- import type { HTMLAttributes } from "svelte/elements";+ import { cn, type WithElementRef } from '$lib/utils.js';+ import type { HTMLAttributes } from 'svelte/elements';let {ref = $bindable(null),@@ -10,11 +10,6 @@}: WithElementRef<HTMLAttributes<HTMLDivElement>> = $props();</script>-<div- bind:this={ref}- data-slot="item-actions"- class={cn("flex items-center gap-2", className)}- {...restProps}->+<div bind:this={ref} data-slot="item-actions" class={cn('flex items-center gap-2', className)} {...restProps}>{@render children?.()}</div>diff --git a/frontend/src/lib/components/ui/item/item-content.svelte b/frontend/src/lib/components/ui/item/item-content.svelteindex 55516f2df..6cab3caa3 100644--- a/frontend/src/lib/components/ui/item/item-content.svelte+++ b/frontend/src/lib/components/ui/item/item-content.svelte@@ -1,6 +1,6 @@<script lang="ts">- import { cn, type WithElementRef } from "$lib/utils.js";- import type { HTMLAttributes } from "svelte/elements";+ import { cn, type WithElementRef } from '$lib/utils.js';+ import type { HTMLAttributes } from 'svelte/elements';let {ref = $bindable(null),@@ -13,7 +13,7 @@<divbind:this={ref}data-slot="item-content"- class={cn("flex flex-1 flex-col gap-1 [&+[data-slot=item-content]]:flex-none", className)}+ class={cn('flex flex-1 flex-col gap-1 [&+[data-slot=item-content]]:flex-none', className)}{...restProps}>{@render children?.()}diff --git a/frontend/src/lib/components/ui/item/item-description.svelte b/frontend/src/lib/components/ui/item/item-description.svelteindex 35981750c..808446d28 100644--- a/frontend/src/lib/components/ui/item/item-description.svelte+++ b/frontend/src/lib/components/ui/item/item-description.svelte@@ -1,6 +1,6 @@<script lang="ts">- import { cn, type WithElementRef } from "$lib/utils.js";- import type { HTMLAttributes } from "svelte/elements";+ import { cn, type WithElementRef } from '$lib/utils.js';+ import type { HTMLAttributes } from 'svelte/elements';let {ref = $bindable(null),@@ -14,8 +14,8 @@bind:this={ref}data-slot="item-description"class={cn(- "text-muted-foreground line-clamp-2 text-balance text-sm font-normal leading-normal",- "[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4",+ 'text-muted-foreground line-clamp-2 text-sm leading-normal font-normal text-balance',+ '[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4',className)}{...restProps}diff --git a/frontend/src/lib/components/ui/item/item-footer.svelte b/frontend/src/lib/components/ui/item/item-footer.svelteindex c998caa5a..5be2f8519 100644--- a/frontend/src/lib/components/ui/item/item-footer.svelte+++ b/frontend/src/lib/components/ui/item/item-footer.svelte@@ -1,6 +1,6 @@<script lang="ts">- import { cn, type WithElementRef } from "$lib/utils.js";- import type { HTMLAttributes } from "svelte/elements";+ import { cn, type WithElementRef } from '$lib/utils.js';+ import type { HTMLAttributes } from 'svelte/elements';let {ref = $bindable(null),@@ -13,7 +13,7 @@<divbind:this={ref}data-slot="item-footer"- class={cn("flex basis-full items-center justify-between gap-2", className)}+ class={cn('flex basis-full items-center justify-between gap-2', className)}{...restProps}>{@render children?.()}diff --git a/frontend/src/lib/components/ui/item/item-group.svelte b/frontend/src/lib/components/ui/item/item-group.svelteindex 57ebbd5dc..ab41edba3 100644--- a/frontend/src/lib/components/ui/item/item-group.svelte+++ b/frontend/src/lib/components/ui/item/item-group.svelte@@ -1,6 +1,6 @@<script lang="ts">- import { cn, type WithElementRef } from "$lib/utils.js";- import type { HTMLAttributes } from "svelte/elements";+ import { cn, type WithElementRef } from '$lib/utils.js';+ import type { HTMLAttributes } from 'svelte/elements';let {ref = $bindable(null),@@ -10,12 +10,6 @@}: WithElementRef<HTMLAttributes<HTMLDivElement>> = $props();</script>-<div- bind:this={ref}- role="list"- data-slot="item-group"- class={cn("group/item-group flex flex-col", className)}- {...restProps}->+<div bind:this={ref} role="list" data-slot="item-group" class={cn('group/item-group flex flex-col', className)} {...restProps}>{@render children?.()}</div>diff --git a/frontend/src/lib/components/ui/item/item-header.svelte b/frontend/src/lib/components/ui/item/item-header.svelteindex 1afe1fafa..36655782d 100644--- a/frontend/src/lib/components/ui/item/item-header.svelte+++ b/frontend/src/lib/components/ui/item/item-header.svelte@@ -1,6 +1,6 @@<script lang="ts">- import { cn, type WithElementRef } from "$lib/utils.js";- import type { HTMLAttributes } from "svelte/elements";+ import { cn, type WithElementRef } from '$lib/utils.js';+ import type { HTMLAttributes } from 'svelte/elements';let {ref = $bindable(null),@@ -13,7 +13,7 @@<divbind:this={ref}data-slot="item-header"- class={cn("flex basis-full items-center justify-between gap-2", className)}+ class={cn('flex basis-full items-center justify-between gap-2', className)}{...restProps}>{@render children?.()}diff --git a/frontend/src/lib/components/ui/item/item-media.svelte b/frontend/src/lib/components/ui/item/item-media.svelteindex 78490fd99..7fbd54134 100644--- a/frontend/src/lib/components/ui/item/item-media.svelte+++ b/frontend/src/lib/components/ui/item/item-media.svelte@@ -1,32 +1,32 @@<script lang="ts" module>- import { tv, type VariantProps } from "tailwind-variants";+ import { tv, type VariantProps } from 'tailwind-variants';export const itemMediaVariants = tv({- base: "flex shrink-0 items-center justify-center gap-2 group-has-[[data-slot=item-description]]/item:translate-y-0.5 group-has-[[data-slot=item-description]]/item:self-start [&_svg]:pointer-events-none",+ base: 'flex shrink-0 items-center justify-center gap-2 group-has-[[data-slot=item-description]]/item:translate-y-0.5 group-has-[[data-slot=item-description]]/item:self-start [&_svg]:pointer-events-none',variants: {variant: {- default: "bg-transparent",+ default: 'bg-transparent',icon: "bg-muted size-8 rounded-sm border [&_svg:not([class*='size-'])]:size-4",- image: "size-10 overflow-hidden rounded-sm [&_img]:size-full [&_img]:object-cover",- },+ image: 'size-10 overflow-hidden rounded-sm [&_img]:size-full [&_img]:object-cover'+ }},defaultVariants: {- variant: "default",- },+ variant: 'default'+ }});- export type ItemMediaVariant = VariantProps<typeof itemMediaVariants>["variant"];+ export type ItemMediaVariant = VariantProps<typeof itemMediaVariants>['variant'];</script><script lang="ts">- import { cn, type WithElementRef } from "$lib/utils.js";- import type { HTMLAttributes } from "svelte/elements";+ import { cn, type WithElementRef } from '$lib/utils.js';+ import type { HTMLAttributes } from 'svelte/elements';let {ref = $bindable(null),class: className,children,- variant = "default",+ variant = 'default',...restProps}: WithElementRef<HTMLAttributes<HTMLDivElement>> & { variant?: ItemMediaVariant } = $props();</script>diff --git a/frontend/src/lib/components/ui/item/item-separator.svelte b/frontend/src/lib/components/ui/item/item-separator.svelteindex 6f2f51a03..270a7caaf 100644--- a/frontend/src/lib/components/ui/item/item-separator.svelte+++ b/frontend/src/lib/components/ui/item/item-separator.svelte@@ -1,19 +1,9 @@<script lang="ts">- import { Separator } from "$lib/components/ui/separator/index.js";- import { cn } from "$lib/utils.js";- import type { ComponentProps } from "svelte";+ import { Separator } from '$lib/components/ui/separator/index.js';+ import { cn } from '$lib/utils.js';+ import type { ComponentProps } from 'svelte';- let {- ref = $bindable(null),- class: className,- ...restProps- }: ComponentProps<typeof Separator> = $props();+ let { ref = $bindable(null), class: className, ...restProps }: ComponentProps<typeof Separator> = $props();</script>-<Separator- bind:ref- data-slot="item-separator"- orientation="horizontal"- class={cn("my-0", className)}- {...restProps}-/>+<Separator bind:ref data-slot="item-separator" orientation="horizontal" class={cn('my-0', className)} {...restProps} />diff --git a/frontend/src/lib/components/ui/item/item-title.svelte b/frontend/src/lib/components/ui/item/item-title.svelteindex bdcea856e..3baaed7f0 100644--- a/frontend/src/lib/components/ui/item/item-title.svelte+++ b/frontend/src/lib/components/ui/item/item-title.svelte@@ -1,6 +1,6 @@<script lang="ts">- import { cn, type WithElementRef } from "$lib/utils.js";- import type { HTMLAttributes } from "svelte/elements";+ import { cn, type WithElementRef } from '$lib/utils.js';+ import type { HTMLAttributes } from 'svelte/elements';let {ref = $bindable(null),@@ -13,7 +13,7 @@<divbind:this={ref}data-slot="item-title"- class={cn("flex w-fit items-center gap-2 text-sm font-medium leading-snug", className)}+ class={cn('flex w-fit items-center gap-2 text-sm leading-snug font-medium', className)}{...restProps}>{@render children?.()}diff --git a/frontend/src/lib/components/ui/item/item.svelte b/frontend/src/lib/components/ui/item/item.svelteindex ad59d0131..778a29a6d 100644--- a/frontend/src/lib/components/ui/item/item.svelte+++ b/frontend/src/lib/components/ui/item/item.svelte@@ -1,33 +1,33 @@<script lang="ts" module>- import { tv, type VariantProps } from "tailwind-variants";+ import { tv, type VariantProps } from 'tailwind-variants';export const itemVariants = tv({- base: "group/item [a]:hover:bg-accent/50 [a]:transition-colors focus-visible:border-ring focus-visible:ring-ring/50 flex flex-wrap items-center rounded-md border border-transparent text-sm outline-none transition-colors duration-100 focus-visible:ring-[3px]",+ base: 'group/item [a]:hover:bg-accent/50 [a]:transition-colors focus-visible:border-ring focus-visible:ring-ring/50 flex flex-wrap items-center rounded-md border border-transparent text-sm outline-none transition-colors duration-100 focus-visible:ring-[3px]',variants: {variant: {- default: "bg-transparent",- outline: "border-border",- muted: "bg-muted/50",+ default: 'bg-transparent',+ outline: 'border-border',+ muted: 'bg-muted/50'},size: {- default: "gap-4 p-4",- sm: "gap-2.5 px-4 py-3",- },+ default: 'gap-4 p-4',+ sm: 'gap-2.5 px-4 py-3'+ }},defaultVariants: {- variant: "default",- size: "default",- },+ variant: 'default',+ size: 'default'+ }});- export type ItemSize = VariantProps<typeof itemVariants>["size"];- export type ItemVariant = VariantProps<typeof itemVariants>["variant"];+ export type ItemSize = VariantProps<typeof itemVariants>['size'];+ export type ItemVariant = VariantProps<typeof itemVariants>['variant'];</script><script lang="ts">- import { cn, type WithElementRef } from "$lib/utils.js";- import type { HTMLAttributes } from "svelte/elements";- import type { Snippet } from "svelte";+ import { cn, type WithElementRef } from '$lib/utils.js';+ import type { HTMLAttributes } from 'svelte/elements';+ import type { Snippet } from 'svelte';let {ref = $bindable(null),@@ -44,10 +44,10 @@const mergedProps = $derived({class: cn(itemVariants({ variant, size }), className),- "data-slot": "item",- "data-variant": variant,- "data-size": size,- ...restProps,+ 'data-slot': 'item',+ 'data-variant': variant,+ 'data-size': size,+ ...restProps});</script>diff --git a/frontend/src/lib/components/ui/separator/index.ts b/frontend/src/lib/components/ui/separator/index.tsindex 82442d2cd..768efac96 100644--- a/frontend/src/lib/components/ui/separator/index.ts+++ b/frontend/src/lib/components/ui/separator/index.ts@@ -1,7 +1,7 @@-import Root from "./separator.svelte";+import Root from './separator.svelte';export {Root,//- Root as Separator,+ Root as Separator};diff --git a/frontend/src/lib/components/ui/tooltip/index.ts b/frontend/src/lib/components/ui/tooltip/index.tsindex 171860421..809e219e4 100644--- a/frontend/src/lib/components/ui/tooltip/index.ts+++ b/frontend/src/lib/components/ui/tooltip/index.ts@@ -1,8 +1,8 @@-import Root from "./tooltip.svelte";-import Trigger from "./tooltip-trigger.svelte";-import Content from "./tooltip-content.svelte";-import Provider from "./tooltip-provider.svelte";-import Portal from "./tooltip-portal.svelte";+import Root from './tooltip.svelte';+import Trigger from './tooltip-trigger.svelte';+import Content from './tooltip-content.svelte';+import Provider from './tooltip-provider.svelte';+import Portal from './tooltip-portal.svelte';export {Root,@@ -15,5 +15,5 @@ export {Content as TooltipContent,Trigger as TooltipTrigger,Provider as TooltipProvider,- Portal as TooltipPortal,+ Portal as TooltipPortal};diff --git a/frontend/src/lib/components/ui/tooltip/tooltip-portal.svelte b/frontend/src/lib/components/ui/tooltip/tooltip-portal.svelteindex d234f7d7d..7d328f018 100644--- a/frontend/src/lib/components/ui/tooltip/tooltip-portal.svelte+++ b/frontend/src/lib/components/ui/tooltip/tooltip-portal.svelte@@ -1,5 +1,5 @@<script lang="ts">- import { Tooltip as TooltipPrimitive } from "bits-ui";+ import { Tooltip as TooltipPrimitive } from 'bits-ui';let { ...restProps }: TooltipPrimitive.PortalProps = $props();</script>diff --git a/frontend/src/lib/components/ui/tooltip/tooltip-provider.svelte b/frontend/src/lib/components/ui/tooltip/tooltip-provider.svelteindex 8150bef2e..b3bb5b74f 100644--- a/frontend/src/lib/components/ui/tooltip/tooltip-provider.svelte+++ b/frontend/src/lib/components/ui/tooltip/tooltip-provider.svelte@@ -1,5 +1,5 @@<script lang="ts">- import { Tooltip as TooltipPrimitive } from "bits-ui";+ import { Tooltip as TooltipPrimitive } from 'bits-ui';let { ...restProps }: TooltipPrimitive.ProviderProps = $props();</script>diff --git a/frontend/src/lib/components/ui/tooltip/tooltip.svelte b/frontend/src/lib/components/ui/tooltip/tooltip.svelteindex 0b0f9cef2..7c9d71254 100644--- a/frontend/src/lib/components/ui/tooltip/tooltip.svelte+++ b/frontend/src/lib/components/ui/tooltip/tooltip.svelte@@ -1,5 +1,5 @@<script lang="ts">- import { Tooltip as TooltipPrimitive } from "bits-ui";+ import { Tooltip as TooltipPrimitive } from 'bits-ui';let { open = $bindable(false), ...restProps }: TooltipPrimitive.RootProps = $props();</script>diff --git a/frontend/src/lib/hooks/is-touch-device.svelte.ts b/frontend/src/lib/hooks/is-touch-device.svelte.tsindex 5f9c29c26..dff600534 100644--- a/frontend/src/lib/hooks/is-touch-device.svelte.ts+++ b/frontend/src/lib/hooks/is-touch-device.svelte.ts@@ -1,6 +1,6 @@/*** Detects if the device has touch capability.- *+ ** Note: Some hybrid devices (laptops with touchscreens) will be detected as touch devices,* which is correct as they support both touch and pointer interactions.*/@@ -30,4 +30,3 @@ export class IsTouchDevice {return hasTouchPoints || hasTouchStart || hasTouchEvent || hasPointerCoarse;}}-diff --git a/frontend/src/lib/layouts/index.ts b/frontend/src/lib/layouts/index.tsindex aff464254..2d5f3b554 100644--- a/frontend/src/lib/layouts/index.ts+++ b/frontend/src/lib/layouts/index.ts@@ -1,8 +1,4 @@-export {- default as ResourcePageLayout,- type ActionButton,- type StatCardConfig-} from './resource-page-layout.svelte';+export { default as ResourcePageLayout, type ActionButton, type StatCardConfig } from './resource-page-layout.svelte';export { default as TabbedPageLayout } from './tabbed-page-layout.svelte';export {default as SettingsPageLayout,diff --git a/frontend/src/lib/services/network-service.ts b/frontend/src/lib/services/network-service.tsindex 669538235..7ad9c1191 100644--- a/frontend/src/lib/services/network-service.ts+++ b/frontend/src/lib/services/network-service.ts@@ -1,6 +1,12 @@import BaseAPIService from './api-service';import { environmentStore } from '$lib/stores/environment.store.svelte';-import type { NetworkSummaryDto, NetworkUsageCounts, NetworkCreateRequest, NetworkCreateOptions, NetworkInspectDto } from '$lib/types/network.type';+import type {+ NetworkSummaryDto,+ NetworkUsageCounts,+ NetworkCreateRequest,+ NetworkCreateOptions,+ NetworkInspectDto+} from '$lib/types/network.type';import type { SearchPaginationSortRequest, Paginated } from '$lib/types/pagination.type';import { transformPaginationParams } from '$lib/utils/params.util';diff --git a/frontend/src/lib/types/system-stats.type.ts b/frontend/src/lib/types/system-stats.type.tsindex b6809c8cd..ae4783d54 100644--- a/frontend/src/lib/types/system-stats.type.ts+++ b/frontend/src/lib/types/system-stats.type.ts@@ -15,6 +15,6 @@ export interface SystemStats {export interface GPUStats {name: string;index: number;- memoryUsed: number; // in MB+ memoryUsed: number; // in MBmemoryTotal: number; // in MB}diff --git a/frontend/src/lib/utils/refresh.util.ts b/frontend/src/lib/utils/refresh.util.tsindex 3a7216bbc..935376b7f 100644--- a/frontend/src/lib/utils/refresh.util.ts+++ b/frontend/src/lib/utils/refresh.util.ts@@ -10,7 +10,7 @@ export interface RefreshTask<T> {/*** Executes multiple refresh tasks in parallel with unified loading state management.- *+ ** @param tasks - Array of refresh tasks to execute* @param setLoading - Callback to update loading state*/@@ -19,13 +19,13 @@ export async function parallelRefresh<T extends Record<string, RefreshTask<any>>setLoading: (loading: boolean) => void): Promise<void> {setLoading(true);-+const taskKeys = Object.keys(tasks);- const completionStatus = Object.fromEntries(taskKeys.map(k => [k, true]));-+ const completionStatus = Object.fromEntries(taskKeys.map((k) => [k, true]));+const updateLoading = (key: string, value: boolean) => {completionStatus[key] = value;- const stillLoading = Object.values(completionStatus).some(v => v);+ const stillLoading = Object.values(completionStatus).some((v) => v);setLoading(stillLoading);};diff --git a/frontend/src/routes/(app)/environments/+page.svelte b/frontend/src/routes/(app)/environments/+page.svelteindex 1f25e3b6d..f3ce22535 100644--- a/frontend/src/routes/(app)/environments/+page.svelte+++ b/frontend/src/routes/(app)/environments/+page.svelte@@ -49,7 +49,9 @@result,message: m.common_bulk_remove_failed({ count: selectedIds.length, resource: m.environments_title() }),setLoadingState: () => {},- onSuccess: () => { successCount += 1; }+ onSuccess: () => {+ successCount += 1;+ }});if (result.error) failureCount += 1;}@@ -78,10 +80,31 @@const actionButtons: ActionButton[] = $derived([...(selectedIds.length > 0- ? [{ id: 'remove-selected', action: 'remove' as const, label: m.environments_remove_selected_button(), onclick: handleBulkDelete, loading: isLoading.deleting, disabled: isLoading.deleting }]+ ? [+ {+ id: 'remove-selected',+ action: 'remove' as const,+ label: m.environments_remove_selected_button(),+ onclick: handleBulkDelete,+ loading: isLoading.deleting,+ disabled: isLoading.deleting+ }+ ]: []),- { id: 'create', action: 'create' as const, label: m.common_add_button({ resource: m.resource_environment_cap() }), onclick: () => (showEnvironmentSheet = true) },- { id: 'refresh', action: 'restart' as const, label: m.common_refresh(), onclick: refresh, loading: isLoading.refresh, disabled: isLoading.refresh }+ {+ id: 'create',+ action: 'create' as const,+ label: m.common_add_button({ resource: m.resource_environment_cap() }),+ onclick: () => (showEnvironmentSheet = true)+ },+ {+ id: 'refresh',+ action: 'restart' as const,+ label: m.common_refresh(),+ onclick: refresh,+ loading: isLoading.refresh,+ disabled: isLoading.refresh+ }]);</script>