Modern Docker Management, Designed for Everyone
Go composecontainer-managementcontainersdockerdocker-composedocker-managementgoself-hostedsveltekittypescriptweb-ui
chore: fix linter
Kyle Mendell622d6f16b421
diff --git a/frontend/src/lib/components/arcane-table/arcane-table-desktop-view.svelte b/frontend/src/lib/components/arcane-table/arcane-table-desktop-view.svelteindex 98ac82cad..464493826 100644--- a/frontend/src/lib/components/arcane-table/arcane-table-desktop-view.svelte+++ b/frontend/src/lib/components/arcane-table/arcane-table-desktop-view.svelte@@ -1,6 +1,6 @@<script lang="ts" generics="TData extends Record<string, any> & { id: string }">- import type { ArcaneCell, ArcaneRow, ArcaneSvelteTable } from './table-features';- import { FlexRender } from '@tanstack/svelte-table';+ import type { ArcaneCell, ArcaneHeader, ArcaneRow, ArcaneSvelteTable } from './table-features';+ import { FlexRender as FlexRenderBase } from '@tanstack/svelte-table';import { createVirtualizer } from './virtualizer.svelte';import Skeleton from '$lib/components/ui/skeleton/skeleton.svelte';import * as Table from '$lib/components/ui/table/index.js';@@ -65,6 +65,11 @@const hasExpand = $derived(!!expandedRowContent);+ // FlexRender's generics can't be inferred from its union-shaped props, so unaided it+ // resolves to the broad `Cell<TableFeatures, …>` (which includes feature APIs our cells+ // don't carry). Pin it to the Arcane feature set instead.+ const FlexRender = FlexRenderBase as unknown as Component<{ cell: ArcaneCell<TData> } | { header: ArcaneHeader<TData> }>;+// Get column width class from metafunction getWidthClass(width?: ColumnWidth): string {if (!width || width === 'auto') return '';diff --git a/frontend/src/lib/components/arcane-table/table-features.ts b/frontend/src/lib/components/arcane-table/table-features.tsindex af05f510c..39a24788b 100644--- a/frontend/src/lib/components/arcane-table/table-features.ts+++ b/frontend/src/lib/components/arcane-table/table-features.ts@@ -7,7 +7,7 @@ import {tableFeatures,type SvelteTable} from '@tanstack/svelte-table';-import type { Cell, Column, ColumnDef, FilterFn, Row, RowData, Table } from '@tanstack/table-core';+import type { Cell, Column, ColumnDef, FilterFn, Header, Row, RowData, Table } from '@tanstack/table-core';/*** The single, app-wide TanStack Table v9 feature set shared by every Arcane table.@@ -50,6 +50,7 @@ export type ArcaneColumnDef<T extends RowData> = ColumnDef<ArcaneFeatures, T>;export type ArcaneRow<T extends RowData> = Row<ArcaneFeatures, T>;export type ArcaneColumn<T extends RowData> = Column<ArcaneFeatures, T>;export type ArcaneCell<T extends RowData> = Cell<ArcaneFeatures, T>;+export type ArcaneHeader<T extends RowData> = Header<ArcaneFeatures, T>;/** Core table type — used for callback contexts and read-only method access. */export type ArcaneTable<T extends RowData> = Table<ArcaneFeatures, T>;/** The Svelte adapter table instance — adds reactive `.state` (read state slices). */