Skip to content

Modern Docker Management, Designed for Everyone

chore: update tsconfig for better type safety (#2136)

Kyle Mendellb62adc68c360
diff --git a/backend/pkg/utils/distribution/distribution.go b/backend/pkg/utils/distribution/distribution.go
index d2be2fada..52aad53f7 100644
--- a/backend/pkg/utils/distribution/distribution.go
+++ b/backend/pkg/utils/distribution/distribution.go
@@ -5,6 +5,7 @@ import (
"encoding/base64"
"encoding/json"
"fmt"
+ "net"
"net/http"
"net/url"
"strings"
@@ -415,8 +416,8 @@ func validateAuthRealmInternal(registryHost, realm string) error {
return fmt.Errorf("auth realm must use HTTPS, got %q", parsedRealm.Scheme)
}
- realmHost := normalizeRegistryForComparisonInternal(parsedRealm.Hostname())
- registry := normalizeRegistryForComparisonInternal(registryHost)
+ realmHost := normalizeAuthRealmHostInternal(parsedRealm.Host)
+ registry := normalizeAuthRealmHostInternal(registryHost)
if realmHost == "" {
return fmt.Errorf("invalid auth realm host")
@@ -434,6 +435,24 @@ func validateAuthRealmInternal(registryHost, realm string) error {
return fmt.Errorf("untrusted auth realm host %q for registry %q", realmHost, registry)
}
+func normalizeAuthRealmHostInternal(raw string) string {
+ normalized := normalizeRegistryForComparisonInternal(raw)
+ if normalized == "" {
+ return ""
+ }
+
+ host, port, err := net.SplitHostPort(normalized)
+ if err != nil {
+ return normalized
+ }
+
+ if port == "443" {
+ return host
+ }
+
+ return net.JoinHostPort(host, port)
+}
+
func normalizeRegistryForComparisonInternal(raw string) string {
value := strings.TrimSpace(strings.ToLower(raw))
value = strings.TrimPrefix(value, "https://")
diff --git a/backend/pkg/utils/distribution/distribution_test.go b/backend/pkg/utils/distribution/distribution_test.go
index 25b4729f8..dee50ddc3 100644
--- a/backend/pkg/utils/distribution/distribution_test.go
+++ b/backend/pkg/utils/distribution/distribution_test.go
@@ -135,6 +135,11 @@ func TestValidateAuthRealmInternal(t *testing.T) {
registryHost: "registry.example.com",
realm: "https://registry.example.com:443/token",
},
+ {
+ name: "same host with matching non-default port allowed",
+ registryHost: "127.0.0.1:5000",
+ realm: "https://127.0.0.1:5000/token",
+ },
{
name: "docker hub auth host allowed",
registryHost: "registry-1.docker.io",
diff --git a/frontend/package.json b/frontend/package.json
index 6a8268ec1..f4f0027c8 100644
--- a/frontend/package.json
+++ b/frontend/package.json
@@ -1,88 +1,88 @@
{
- "name": "arcane-frontend",
- "private": true,
- "version": "1.16.4",
- "type": "module",
- "scripts": {
- "dev": "vite dev --port 3000 --host",
- "build": "vite build",
- "preview": "vite preview --port 3000",
- "lint-staged": "lint-staged",
- "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
- "format": "prettier --write ./src",
- "format:check": "prettier --check ./src",
- "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
- "knip": "knip",
- "i18n:unused": "i18n-unused display-unused",
- "i18n:remove": "i18n-unused remove-unused",
- "i18n:mark": "i18n-unused mark-unused"
- },
- "dependencies": {
- "@codemirror/autocomplete": "^6.20.1",
- "@codemirror/lang-yaml": "^6.1.2",
- "@codemirror/language": "^6.12.2",
- "@codemirror/legacy-modes": "^6.5.2",
- "@codemirror/lint": "^6.9.5",
- "@codemirror/merge": "^6.12.1",
- "@codemirror/state": "^6.6.0",
- "@codemirror/view": "^6.40.0",
- "@lezer/highlight": "^1.2.3",
- "@sveltejs/adapter-static": "^3.0.10",
- "@sveltejs/kit": "^2.55.0",
- "@tanstack/svelte-query": "^6.1.7",
- "@tanstack/table-core": "^8.21.3",
- "@uiw/codemirror-themes": "^4.25.8",
- "@xterm/addon-fit": "^0.11.0",
- "@xterm/xterm": "^6.0.0",
- "ajv": "^8.18.0",
- "ansi-to-html": "^0.7.2",
- "axios": "^1.13.6",
- "date-fns": "^4.1.0",
- "embla-carousel-svelte": "^8.6.0",
- "js-yaml": "^4.1.1",
- "prettier": "^3.8.1",
- "prettier-plugin-svelte": "^3.5.1",
- "prettier-plugin-tailwindcss": "^0.7.2",
- "svelte": "^5.54.1",
- "svelte-codemirror-editor": "^2.1.0",
- "svelte-motion": "^0.12.2",
- "yaml": "^2.8.2"
- },
- "devDependencies": {
- "@iconify/json": "^2.2.449",
- "@inlang/paraglide-js": "2.15.0",
- "@internationalized/date": "^3.12.0",
- "@prettier/plugin-oxc": "^0.1.3",
- "@sveltejs/vite-plugin-svelte": "^7.0.0",
- "@tailwindcss/vite": "^4.2.2",
- "@tanstack/eslint-plugin-query": "^5.91.4",
- "@tanstack/svelte-query-devtools": "^6.0.4",
- "@types/js-yaml": "^4.0.9",
- "@types/node": "^25.5.0",
- "@typescript/native-preview": "7.0.0-dev.20260322.1",
- "bits-ui": "^2.16.3",
- "clsx": "^2.1.1",
- "formsnap": "^2.0.1",
- "isomorphic-dompurify": "^3.3.0",
- "knip": "^6.0.1",
- "mode-watcher": "^1.1.0",
- "paneforge": "^1.0.2",
- "runed": "^0.37.1",
- "svelte-check": "^4.4.5",
- "svelte-check-rs": "^0.9.6",
- "svelte-sonner": "^1.1.0",
- "svelte-toolbelt": "^0.10.6",
- "sveltekit-superforms": "^2.30.0",
- "tailwind-merge": "^3.5.0",
- "tailwind-variants": "^3.2.2",
- "tailwindcss": "^4.2.1",
- "tsx": "^4.21.0",
- "tw-animate-css": "^1.4.0",
- "typescript": "^5.9.3",
- "unplugin-icons": "^23.0.1",
- "vaul-svelte": "1.0.0-next.7",
- "vite": "^8.0.0",
- "vite-plugin-devtools-json": "^1.0.0",
- "zod": "^4.3.6"
- }
+ "name": "arcane-frontend",
+ "private": true,
+ "version": "1.16.4",
+ "type": "module",
+ "scripts": {
+ "dev": "vite dev --port 3000 --host",
+ "build": "vite build",
+ "preview": "vite preview --port 3000",
+ "lint-staged": "lint-staged",
+ "check": "svelte-kit sync && svelte-check-rs --tsconfig ./tsconfig.json",
+ "format": "prettier --write ./src",
+ "format:check": "prettier --check ./src",
+ "check:watch": "svelte-kit sync && svelte-check-rs --tsconfig ./tsconfig.json --watch",
+ "knip": "knip",
+ "i18n:unused": "i18n-unused display-unused",
+ "i18n:remove": "i18n-unused remove-unused",
+ "i18n:mark": "i18n-unused mark-unused"
+ },
+ "dependencies": {
+ "@codemirror/autocomplete": "^6.20.1",
+ "@codemirror/lang-yaml": "^6.1.2",
+ "@codemirror/language": "^6.12.2",
+ "@codemirror/legacy-modes": "^6.5.2",
+ "@codemirror/lint": "^6.9.5",
+ "@codemirror/merge": "^6.12.1",
+ "@codemirror/state": "^6.6.0",
+ "@codemirror/view": "^6.40.0",
+ "@lezer/highlight": "^1.2.3",
+ "@sveltejs/adapter-static": "^3.0.10",
+ "@sveltejs/kit": "^2.55.0",
+ "@tanstack/svelte-query": "^6.1.7",
+ "@tanstack/table-core": "^8.21.3",
+ "@uiw/codemirror-themes": "^4.25.8",
+ "@xterm/addon-fit": "^0.11.0",
+ "@xterm/xterm": "^6.0.0",
+ "ajv": "^8.18.0",
+ "ansi-to-html": "^0.7.2",
+ "axios": "^1.13.6",
+ "date-fns": "^4.1.0",
+ "embla-carousel-svelte": "^8.6.0",
+ "js-yaml": "^4.1.1",
+ "prettier": "^3.8.1",
+ "prettier-plugin-svelte": "^3.5.1",
+ "prettier-plugin-tailwindcss": "^0.7.2",
+ "svelte": "^5.54.1",
+ "svelte-codemirror-editor": "^2.1.0",
+ "svelte-motion": "^0.12.2",
+ "yaml": "^2.8.2"
+ },
+ "devDependencies": {
+ "@iconify/json": "^2.2.449",
+ "@inlang/paraglide-js": "2.15.0",
+ "@internationalized/date": "^3.12.0",
+ "@prettier/plugin-oxc": "^0.1.3",
+ "@sveltejs/vite-plugin-svelte": "^7.0.0",
+ "@tailwindcss/vite": "^4.2.2",
+ "@tanstack/eslint-plugin-query": "^5.91.4",
+ "@tanstack/svelte-query-devtools": "^6.0.4",
+ "@types/js-yaml": "^4.0.9",
+ "@types/node": "^25.5.0",
+ "@typescript/native-preview": "7.0.0-dev.20260322.1",
+ "bits-ui": "^2.16.3",
+ "clsx": "^2.1.1",
+ "formsnap": "^2.0.1",
+ "isomorphic-dompurify": "^3.3.0",
+ "knip": "^6.0.1",
+ "mode-watcher": "^1.1.0",
+ "paneforge": "^1.0.2",
+ "runed": "^0.37.1",
+ "svelte-check": "^4.4.5",
+ "svelte-check-rs": "^0.9.6",
+ "svelte-sonner": "^1.1.0",
+ "svelte-toolbelt": "^0.10.6",
+ "sveltekit-superforms": "^2.30.0",
+ "tailwind-merge": "^3.5.0",
+ "tailwind-variants": "^3.2.2",
+ "tailwindcss": "^4.2.1",
+ "tsx": "^4.21.0",
+ "tw-animate-css": "^1.4.0",
+ "typescript": "^6.0.2",
+ "unplugin-icons": "^23.0.1",
+ "vaul-svelte": "1.0.0-next.7",
+ "vite": "^8.0.0",
+ "vite-plugin-devtools-json": "^1.0.0",
+ "zod": "^4.3.6"
+ }
}
diff --git a/frontend/src/lib/components/action-button-group/action-button-group.svelte b/frontend/src/lib/components/action-button-group/action-button-group.svelte
index 18b5a2ca8..7fa3073f7 100644
--- a/frontend/src/lib/components/action-button-group/action-button-group.svelte
+++ b/frontend/src/lib/components/action-button-group/action-button-group.svelte
@@ -34,7 +34,7 @@
let usedWidth = DROPDOWN_WIDTH;
for (let i = 0; i < total; i++) {
- const needed = buttonWidths[i] + (i > 0 ? GAP : 0);
+ const needed = (buttonWidths[i] ?? 0) + (i > 0 ? GAP : 0);
if (usedWidth + needed > containerWidth) {
return i;
}
diff --git a/frontend/src/lib/components/action-buttons.svelte b/frontend/src/lib/components/action-buttons.svelte
index 6ab957040..d66ba2108 100644
--- a/frontend/src/lib/components/action-buttons.svelte
+++ b/frontend/src/lib/components/action-buttons.svelte
@@ -282,8 +282,9 @@
if (entries.length === 0) return m.progress_deploy_starting();
const waiting = entries.filter(([_, v]) => v.phase === 'service_waiting_healthy').sort(([a], [b]) => a.localeCompare(b));
- if (waiting.length > 0) {
- const [service, v] = waiting[0];
+ const firstWaiting = waiting[0];
+ if (firstWaiting) {
+ const [service, v] = firstWaiting;
const health = String(v.health ?? '').trim();
return health
? m.progress_deploy_waiting_for_service_with_health({ service, health })
@@ -293,8 +294,9 @@
const stateIssues = entries
.filter(([_, v]) => v.phase === 'service_state' && (v.state ?? '').toLowerCase() !== 'running')
.sort(([a], [b]) => a.localeCompare(b));
- if (stateIssues.length > 0) {
- const [service, v] = stateIssues[0];
+ const firstStateIssue = stateIssues[0];
+ if (firstStateIssue) {
+ const [service, v] = firstStateIssue;
return m.progress_deploy_service_state({ service, state: String(v.state ?? '') });
}
diff --git a/frontend/src/lib/components/arcane-button/arcane-button.svelte b/frontend/src/lib/components/arcane-button/arcane-button.svelte
index 6951922e6..41efa6ed2 100644
--- a/frontend/src/lib/components/arcane-button/arcane-button.svelte
+++ b/frontend/src/lib/components/arcane-button/arcane-button.svelte
@@ -45,6 +45,8 @@
import { arcaneButtonVariants, actionConfigs } from './variants';
import { m } from '$lib/paraglide/messages';
+ void arcaneButtonVariants;
+
let {
ref = $bindable(null),
action,
@@ -73,8 +75,6 @@
let isIconOnlyButton = $derived(size === 'icon' || !showLabel);
let IconComponent = $derived(icon === null ? null : (icon ?? config.IconComponent));
-
- let hasChildren = $derived(!!children);
</script>
<svelte:element
@@ -88,7 +88,7 @@
role={href && disabled ? 'link' : undefined}
tabindex={href && disabled ? -1 : tabindex}
class={cn('relative', arcaneButtonVariants({ tone: tone ?? config.tone, size, hoverEffect }), className)}
- aria-label={hasChildren ? undefined : isIconOnlyButton ? displayLabel : undefined}
+ aria-label={children ? undefined : isIconOnlyButton ? displayLabel : undefined}
bind:this={ref}
onclick={async (e: any) => {
onclick?.(e);
diff --git a/frontend/src/lib/components/arcane-table/arcane-table-checkbox.svelte b/frontend/src/lib/components/arcane-table/arcane-table-checkbox.svelte
index 221494d69..4471752d7 100644
--- a/frontend/src/lib/components/arcane-table/arcane-table-checkbox.svelte
+++ b/frontend/src/lib/components/arcane-table/arcane-table-checkbox.svelte
@@ -2,7 +2,7 @@
import { Checkbox } from '$lib/components/ui/checkbox/index.js';
import type { ComponentProps } from 'svelte';
- let { checked = false, onCheckedChange = (v: boolean) => {}, ...restProps }: ComponentProps<typeof Checkbox> = $props();
+ let { checked = false, onCheckedChange, ...restProps }: ComponentProps<typeof Checkbox> = $props();
</script>
<Checkbox {checked} {onCheckedChange} {...restProps} />
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.svelte
index 2a601ff59..311b77011 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,5 +1,5 @@
<script lang="ts">
- import { type Table as TableType, type Header, type Cell } from '@tanstack/table-core';
+ import { type Table as TableType, type Cell } from '@tanstack/table-core';
import * as Table from '$lib/components/ui/table/index.js';
import * as Empty from '$lib/components/ui/empty/index.js';
import FlexRender from '$lib/components/ui/data-table/flex-render.svelte';
diff --git a/frontend/src/lib/components/arcane-table/arcane-table-mobile-view.svelte b/frontend/src/lib/components/arcane-table/arcane-table-mobile-view.svelte
index 3246edf08..120cf04d0 100644
--- a/frontend/src/lib/components/arcane-table/arcane-table-mobile-view.svelte
+++ b/frontend/src/lib/components/arcane-table/arcane-table-mobile-view.svelte
@@ -14,8 +14,6 @@
mobileFieldVisibility,
groupedRows = null,
groupIcon,
- onGroupToggle,
- groupCollapsedState = {},
unstyled = false
}: {
table: TableType<any>;
@@ -23,8 +21,6 @@
mobileFieldVisibility: Record<string, boolean>;
groupedRows?: GroupedData<any>[] | null;
groupIcon?: (groupName: string) => Component;
- onGroupToggle?: (groupName: string) => void;
- groupCollapsedState?: Record<string, boolean>;
unstyled?: boolean;
} = $props();
diff --git a/frontend/src/lib/components/arcane-table/arcane-table-view-options.svelte b/frontend/src/lib/components/arcane-table/arcane-table-view-options.svelte
index b11c1be80..b27840c6a 100644
--- a/frontend/src/lib/components/arcane-table/arcane-table-view-options.svelte
+++ b/frontend/src/lib/components/arcane-table/arcane-table-view-options.svelte
@@ -51,13 +51,16 @@
.filter((col) => typeof col.accessorFn !== 'undefined' && col.getCanHide()) as column (column)}
{@const meta = column.columnDef.meta as { title?: string }}
{@const headerText = meta?.title ?? column.id}
- <DropdownMenu.CheckboxItem bind:checked={() => column.getIsVisible(), (v) => column.toggleVisibility(!!v)}>
+ <DropdownMenu.CheckboxItem
+ checked={column.getIsVisible()}
+ onCheckedChange={(checked) => column.toggleVisibility(checked === true)}
+ >
{headerText}
</DropdownMenu.CheckboxItem>
{/each}
{:else if fields && onToggleField}
{#each fields as field (field.id)}
- <DropdownMenu.CheckboxItem bind:checked={() => field.visible, (v) => onToggleField(field.id)}>
+ <DropdownMenu.CheckboxItem checked={field.visible} onCheckedChange={() => onToggleField(field.id)}>
{field.label}
</DropdownMenu.CheckboxItem>
{/each}
diff --git a/frontend/src/lib/components/arcane-table/arcane-table.svelte b/frontend/src/lib/components/arcane-table/arcane-table.svelte
index 9a2bf9702..3860c66ce 100644
--- a/frontend/src/lib/components/arcane-table/arcane-table.svelte
+++ b/frontend/src/lib/components/arcane-table/arcane-table.svelte
@@ -683,8 +683,6 @@
{mobileFieldVisibility}
groupedRows={effectiveGroupedRows}
{groupIcon}
- {groupCollapsedState}
- onGroupToggle={handleGroupToggle}
{unstyled}
/>
</div>
@@ -731,15 +729,7 @@
</div>
<div class="block flex-1 overflow-auto md:hidden">
- <ArcaneTableMobileView
- {table}
- {mobileCard}
- {mobileFieldVisibility}
- groupedRows={effectiveGroupedRows}
- {groupIcon}
- {groupCollapsedState}
- onGroupToggle={handleGroupToggle}
- />
+ <ArcaneTableMobileView {table} {mobileCard} {mobileFieldVisibility} groupedRows={effectiveGroupedRows} {groupIcon} />
</div>
{#if !withoutPagination}
diff --git a/frontend/src/lib/components/code-editor/analysis/compose-analysis.ts b/frontend/src/lib/components/code-editor/analysis/compose-analysis.ts
index 9b327c253..067fac02d 100644
--- a/frontend/src/lib/components/code-editor/analysis/compose-analysis.ts
+++ b/frontend/src/lib/components/code-editor/analysis/compose-analysis.ts
@@ -1,10 +1,10 @@
import type { ErrorObject } from 'ajv';
import type { Diagnostic } from '@codemirror/lint';
import type { EditorView } from '@codemirror/view';
-import { LineCounter, isMap, isPair, isScalar, isSeq, parseDocument, type Pair, type ParsedNode, type Scalar } from 'yaml';
+import { LineCounter, isMap, isPair, isScalar, isSeq, parseDocument, type ParsedNode, type Scalar } from 'yaml';
import type { AnalysisResult, EditorContext, OutlineItem } from './types';
import type { ComposeSchemaContext } from './compose-schema';
-import { getMissingComposeVariables, resolveVariableSource } from './vars-analysis';
+import { resolveVariableSource } from './vars-analysis';
const MAX_SCHEMA_DIAGNOSTICS_DEFAULT = 30;
const TAB_INDENT_REGEX = /(^|\n)(\t+)/g;
@@ -170,8 +170,8 @@ function findKeyRangeInSource(source: string, key: string): { from: number; to:
function toSchemaDiagnostic(error: ErrorObject, doc: YamlDocLike, source: string): Diagnostic | null {
const path = pointerToPath(error.instancePath || '');
const params = error.params as Record<string, unknown>;
- const missingProperty = typeof params.missingProperty === 'string' ? params.missingProperty : null;
- const additionalProperty = typeof params.additionalProperty === 'string' ? params.additionalProperty : null;
+ const missingProperty = typeof params['missingProperty'] === 'string' ? params['missingProperty'] : null;
+ const additionalProperty = typeof params['additionalProperty'] === 'string' ? params['additionalProperty'] : null;
const range = getNodeRangeByPath(doc, path) ||
(missingProperty ? findKeyRangeInSource(source, missingProperty) : null) ||
diff --git a/frontend/src/lib/components/code-editor/analysis/compose-schema.ts b/frontend/src/lib/components/code-editor/analysis/compose-schema.ts
index 8568e4a8c..9d8c5492d 100644
--- a/frontend/src/lib/components/code-editor/analysis/compose-schema.ts
+++ b/frontend/src/lib/components/code-editor/analysis/compose-schema.ts
@@ -138,7 +138,7 @@ function resolveRef(root: SchemaObject, ref: string, visited: Set<string>): Sche
function expandCandidates(root: SchemaObject, candidate: SchemaObject, visited: Set<string>): SchemaObject[] {
const expanded: SchemaObject[] = [];
- const ref = candidate.$ref;
+ const ref = candidate['$ref'];
if (typeof ref === 'string') {
const resolved = resolveRef(root, ref, visited);
if (resolved) {
@@ -180,24 +180,24 @@ function getPathCandidates(root: SchemaObject, path: Array<string | number>): Sc
const expanded = expandCandidates(root, candidate, new Set<string>());
for (const node of expanded) {
if (typeof segment === 'number') {
- const prefixItems = node.prefixItems;
+ const prefixItems = node['prefixItems'];
if (Array.isArray(prefixItems) && segment < prefixItems.length) {
const fromPrefix = asSchemaObject(prefixItems[segment]);
if (fromPrefix) nextCandidates.push(fromPrefix);
}
- const items = asSchemaObject(node.items);
+ const items = asSchemaObject(node['items']);
if (items) nextCandidates.push(items);
continue;
}
- const properties = asSchemaObject(node.properties);
+ const properties = asSchemaObject(node['properties']);
if (properties) {
const fromProperty = asSchemaObject(properties[segment]);
if (fromProperty) nextCandidates.push(fromProperty);
}
- const patternProperties = asSchemaObject(node.patternProperties);
+ const patternProperties = asSchemaObject(node['patternProperties']);
if (patternProperties) {
for (const patternValue of Object.values(patternProperties)) {
const fromPattern = asSchemaObject(patternValue);
@@ -205,7 +205,7 @@ function getPathCandidates(root: SchemaObject, path: Array<string | number>): Sc
}
}
- const additionalProperties = asSchemaObject(node.additionalProperties);
+ const additionalProperties = asSchemaObject(node['additionalProperties']);
if (additionalProperties) nextCandidates.push(additionalProperties);
}
}
@@ -231,7 +231,7 @@ function collectPropertySchemas(root: SchemaObject, path: Array<string | number>
for (const candidate of candidates) {
const expanded = expandCandidates(root, candidate, new Set<string>());
for (const node of expanded) {
- const properties = asSchemaObject(node.properties);
+ const properties = asSchemaObject(node['properties']);
if (!properties) continue;
for (const [key, value] of Object.entries(properties)) {
const propertySchema = asSchemaObject(value);
@@ -246,13 +246,13 @@ function collectPropertySchemas(root: SchemaObject, path: Array<string | number>
}
function extractSchemaDoc(schema: SchemaObject): SchemaDoc {
- const title = typeof schema.title === 'string' ? schema.title : undefined;
- const description = typeof schema.description === 'string' ? schema.description : undefined;
- const defaultValue = schema.default !== undefined ? JSON.stringify(schema.default) : undefined;
+ const title = typeof schema['title'] === 'string' ? schema['title'] : undefined;
+ const description = typeof schema['description'] === 'string' ? schema['description'] : undefined;
+ const defaultValue = schema['default'] !== undefined ? JSON.stringify(schema['default']) : undefined;
let examples: string[] | undefined;
- if (Array.isArray(schema.examples)) {
- examples = schema.examples.slice(0, 3).map((value) => JSON.stringify(value));
+ if (Array.isArray(schema['examples'])) {
+ examples = schema['examples'].slice(0, 3).map((value) => JSON.stringify(value));
}
return {
@@ -462,8 +462,8 @@ export function getEnumValueCompletions(schema: SchemaObject | null, path: Array
for (const candidate of candidates) {
const expanded = expandCandidates(schema, candidate, new Set<string>());
for (const node of expanded) {
- if (!Array.isArray(node.enum)) continue;
- for (const value of node.enum) {
+ if (!Array.isArray(node['enum'])) continue;
+ for (const value of node['enum']) {
if (typeof value === 'string' || typeof value === 'number' || typeof value === 'boolean') {
values.add(String(value));
}
diff --git a/frontend/src/lib/components/code-editor/editor.svelte b/frontend/src/lib/components/code-editor/editor.svelte
index 692fa49a6..7e7dfc96c 100644
--- a/frontend/src/lib/components/code-editor/editor.svelte
+++ b/frontend/src/lib/components/code-editor/editor.svelte
@@ -75,10 +75,10 @@
diffOpen?: boolean;
commandPaletteOpen?: boolean;
} = $props();
+ void hasErrors;
let activeOutlineItems = $state<OutlineItem[]>([]);
let activeView = $state<EditorView | null>(null);
- let normalView = $state<EditorView | null>(null);
let schemaState = $state<ComposeSchemaContext | null>(null);
let shortcutsEnabled = $derived($configStore?.keyboardShortcutsEnabled !== false);
@@ -204,10 +204,6 @@
}
}
- function focusEditor() {
- activeView?.focus();
- }
-
function jumpToOutlineItem(item: OutlineItem) {
if (!activeView) return;
activeView.dispatch({
@@ -607,7 +603,6 @@
});
function wireNormalView(view: EditorView) {
- normalView = view;
if (!isDiffActive) {
activeView = view;
restoreEditorState(view);
diff --git a/frontend/src/lib/components/confirm-dialog/confirm-dialog.svelte b/frontend/src/lib/components/confirm-dialog/confirm-dialog.svelte
index cc2d2025a..224dbbd6e 100644
--- a/frontend/src/lib/components/confirm-dialog/confirm-dialog.svelte
+++ b/frontend/src/lib/components/confirm-dialog/confirm-dialog.svelte
@@ -56,7 +56,7 @@
<Checkbox
id={checkbox.id}
checked={false}
- onchange={(e) => (checkboxStates[checkbox.id] = true)}
+ onchange={() => (checkboxStates[checkbox.id] = true)}
aria-labelledby={`${checkbox.id}-label`}
class="mt-0.5"
/>
diff --git a/frontend/src/lib/components/dialogs/create-container-dialog.svelte b/frontend/src/lib/components/dialogs/create-container-dialog.svelte
index fcd0d8051..46ac3f555 100644
--- a/frontend/src/lib/components/dialogs/create-container-dialog.svelte
+++ b/frontend/src/lib/components/dialogs/create-container-dialog.svelte
@@ -8,7 +8,6 @@
import { Label } from '$lib/components/ui/label/index.js';
import { Input } from '$lib/components/ui/input/index.js';
import { Textarea } from '$lib/components/ui/textarea/index.js';
- import { Spinner } from '$lib/components/ui/spinner/index.js';
import type { ContainerCreateRequest } from '$lib/types/container.type';
import { z } from 'zod/v4';
import { createForm, preventDefault } from '$lib/utils/form.utils';
@@ -131,7 +130,7 @@
const [key, ...valueParts] = trimmed.split('=');
const value = valueParts.join('=');
- if (key.trim()) {
+ if (key?.trim()) {
result[key.trim()] = value.trim();
}
}
@@ -288,7 +287,7 @@
</script>
<ResponsiveDialog
- bind:open
+ {open}
onOpenChange={handleOpenChange}
title={m.create_container_title()}
description={m.create_container_description()}
diff --git a/frontend/src/lib/components/dialogs/docker-info-dialog.svelte b/frontend/src/lib/components/dialogs/docker-info-dialog.svelte
index 93a910f5c..68a3fe226 100644
--- a/frontend/src/lib/components/dialogs/docker-info-dialog.svelte
+++ b/frontend/src/lib/components/dialogs/docker-info-dialog.svelte
@@ -32,7 +32,8 @@
</script>
<ResponsiveDialog
- bind:open
+ {open}
+ onOpenChange={(nextOpen) => (open = nextOpen)}
title={m.docker_engine_title({ engine: dockerInfo?.Name ?? 'Docker Engine' })}
description={m.docker_info_dialog_description()}
contentClass="sm:max-w-[1100px]"
diff --git a/frontend/src/lib/components/dialogs/environment-switcher-dialog.svelte b/frontend/src/lib/components/dialogs/environment-switcher-dialog.svelte
index 4e070b9ba..cf672ff3e 100644
--- a/frontend/src/lib/components/dialogs/environment-switcher-dialog.svelte
+++ b/frontend/src/lib/components/dialogs/environment-switcher-dialog.svelte
@@ -35,7 +35,6 @@
let scrollContainer = $state<HTMLDivElement | null>(null);
let lastScrollTop = $state(0);
let loadError = $state<string | null>(null);
- let environmentsPromise = $state<Promise<void> | null>(null);
let currentRequestId = 0;
const PAGE_SIZE = 10;
@@ -116,7 +115,6 @@
searchQuery = '';
requestOptions = DEFAULT_REQUEST_OPTIONS;
lastScrollTop = 0;
- environmentsPromise = null;
loadError = null;
// Keep environments around or clear? Clear so reopening always shows a clean slate
environments = [];
@@ -125,7 +123,7 @@
}
function startInitialLoad() {
- environmentsPromise = Promise.resolve().then(() => loadInitial());
+ void loadInitial();
}
function closeDialog() {
@@ -133,7 +131,7 @@
resetDialogState();
}
- function openSession(node: HTMLElement) {
+ function openSession(_node: HTMLElement) {
// Runs when the dialog content mounts (i.e., when `open` becomes true)
startInitialLoad();
return {
@@ -153,11 +151,11 @@
pagination: { page: 1, limit: PAGE_SIZE },
sort: { column: 'name', direction: 'asc' }
};
- environmentsPromise = Promise.resolve().then(async () => {
+ void (async () => {
if (query !== searchQuery) return;
await resetScrollToTop();
await fetchEnvironments(options, false, true);
- });
+ })();
}, 300);
function clearSearch() {
@@ -168,10 +166,10 @@
pagination: { page: 1, limit: PAGE_SIZE },
sort: { column: 'name', direction: 'asc' }
};
- environmentsPromise = Promise.resolve().then(async () => {
+ void (async () => {
await resetScrollToTop();
await fetchEnvironments(options, false, true);
- });
+ })();
}
function handleScroll(e: Event) {
@@ -271,89 +269,87 @@
</div>
<div bind:this={scrollContainer} onscroll={handleScroll} class="max-h-[50vh] min-h-[200px] overflow-y-auto">
- {#await environmentsPromise}
+ {#if isLoading}
<div class="flex items-center justify-center py-10">
<Spinner class="size-6" />
</div>
- {:then}
- {#if environments.length === 0}
- <div class="text-muted-foreground py-10 text-center">
- <EnvironmentsIcon class="mx-auto mb-4 size-12 opacity-50" />
- <p>{m.sidebar_no_environments()}</p>
- </div>
- {:else}
- <div class="space-y-1">
- {#each environments as env (env.id)}
- {@const isActive = environmentStore.selected?.id === env.id}
- {@const isDisabled = !env.enabled}
- <div
+ {:else if loadError}
+ <div class="text-destructive py-10 text-center">
+ <p>{m.error_generic()}</p>
+ </div>
+ {:else if environments.length === 0}
+ <div class="text-muted-foreground py-10 text-center">
+ <EnvironmentsIcon class="mx-auto mb-4 size-12 opacity-50" />
+ <p>{m.sidebar_no_environments()}</p>
+ </div>
+ {:else}
+ <div class="space-y-1">
+ {#each environments as env (env.id)}
+ {@const isActive = environmentStore.selected?.id === env.id}
+ {@const isDisabled = !env.enabled}
+ <div
+ class={cn(
+ 'flex items-center gap-2 rounded-lg border p-1 transition-colors',
+ isActive && 'bg-primary/10 border-primary font-medium',
+ !isActive && !isDisabled && 'hover:bg-muted/50',
+ !isActive && isDisabled && 'opacity-50'
+ )}
+ >
+ <button
+ type="button"
+ onclick={() => !isActive && !isDisabled && handleSelect(env)}
+ disabled={isDisabled}
class={cn(
- 'flex items-center gap-2 rounded-lg border p-1 transition-colors',
- isActive && 'bg-primary/10 border-primary font-medium',
- !isActive && !isDisabled && 'hover:bg-muted/50',
- !isActive && isDisabled && 'opacity-50'
+ 'flex min-w-0 flex-1 items-center gap-3 rounded-md p-2 text-left',
+ isDisabled && 'cursor-not-allowed'
)}
>
- <button
- type="button"
- onclick={() => !isActive && !isDisabled && handleSelect(env)}
- disabled={isDisabled}
+ <div
class={cn(
- 'flex min-w-0 flex-1 items-center gap-3 rounded-md p-2 text-left',
- isDisabled && 'cursor-not-allowed'
+ 'flex size-8 shrink-0 items-center justify-center rounded-md border',
+ isActive ? 'bg-primary border-primary' : 'border-border'
)}
>
- <div
- class={cn(
- 'flex size-8 shrink-0 items-center justify-center rounded-md border',
- isActive ? 'bg-primary border-primary' : 'border-border'
- )}
- >
- {#if env.id === '0'}
- <EnvironmentsIcon class={cn('size-4', isActive && 'text-primary-foreground')} />
- {:else}
- <RemoteEnvironmentIcon class={cn('size-4', isActive && 'text-primary-foreground')} />
- {/if}
- </div>
- <div class="flex min-w-0 flex-1 flex-col">
- <span class="truncate">{env.name}</span>
- <span class={cn('truncate text-xs', isActive ? 'text-primary/70' : 'text-muted-foreground')}>
- {getConnectionString(env)}
- </span>
- </div>
- </button>
- <div class="flex shrink-0 items-center gap-2 pr-2">
- {#if isActive}
- <span class="text-primary hidden text-xs font-medium sm:inline">
- {m.environments_current_environment()}
- </span>
+ {#if env.id === '0'}
+ <EnvironmentsIcon class={cn('size-4', isActive && 'text-primary-foreground')} />
+ {:else}
+ <RemoteEnvironmentIcon class={cn('size-4', isActive && 'text-primary-foreground')} />
{/if}
- <ArcaneButton
- action="base"
- tone="ghost"
- size="icon"
- class="size-8"
- icon={SettingsIcon}
- showLabel={false}
- customLabel={m.settings_title()}
- onclick={() => handleOpenSettings(env)}
- />
</div>
+ <div class="flex min-w-0 flex-1 flex-col">
+ <span class="truncate">{env.name}</span>
+ <span class={cn('truncate text-xs', isActive ? 'text-primary/70' : 'text-muted-foreground')}>
+ {getConnectionString(env)}
+ </span>
+ </div>
+ </button>
+ <div class="flex shrink-0 items-center gap-2 pr-2">
+ {#if isActive}
+ <span class="text-primary hidden text-xs font-medium sm:inline">
+ {m.environments_current_environment()}
+ </span>
+ {/if}
+ <ArcaneButton
+ action="base"
+ tone="ghost"
+ size="icon"
+ class="size-8"
+ icon={SettingsIcon}
+ showLabel={false}
+ customLabel={m.settings_title()}
+ onclick={() => handleOpenSettings(env)}
+ />
</div>
- {/each}
+ </div>
+ {/each}
- {#if isLoadingMore}
- <div class="flex items-center justify-center py-4">
- <Spinner class="size-5" />
- </div>
- {/if}
- </div>
- {/if}
- {:catch}
- <div class="text-destructive py-10 text-center">
- <p>{m.error_generic()}</p>
+ {#if isLoadingMore}
+ <div class="flex items-center justify-center py-4">
+ <Spinner class="size-5" />
+ </div>
+ {/if}
</div>
- {/await}
+ {/if}
</div>
</div>
{/snippet}
diff --git a/frontend/src/lib/components/dialogs/event-details-dialog.svelte b/frontend/src/lib/components/dialogs/event-details-dialog.svelte
index d963addae..fd2dd000c 100644
--- a/frontend/src/lib/components/dialogs/event-details-dialog.svelte
+++ b/frontend/src/lib/components/dialogs/event-details-dialog.svelte
@@ -47,7 +47,7 @@
if (!event) {
return null;
}
- const metadataError = event.metadata?.error;
+ const metadataError = event.metadata?.['error'];
if (typeof metadataError === 'string' && metadataError.trim() !== '') {
return metadataError;
}
@@ -133,7 +133,7 @@
}
</script>
-<ResponsiveDialog bind:open contentClass="sm:max-w-[980px]">
+<ResponsiveDialog {open} onOpenChange={(nextOpen) => (open = nextOpen)} contentClass="sm:max-w-[980px]">
{#snippet children()}
<div class="space-y-4 pt-4">
{@render headerContent()}
diff --git a/frontend/src/lib/components/dialogs/first-login-password-dialog.svelte b/frontend/src/lib/components/dialogs/first-login-password-dialog.svelte
index 02ec96a8a..f90022985 100644
--- a/frontend/src/lib/components/dialogs/first-login-password-dialog.svelte
+++ b/frontend/src/lib/components/dialogs/first-login-password-dialog.svelte
@@ -58,7 +58,7 @@
</script>
<ResponsiveDialog
- bind:open
+ {open}
onOpenChange={(isOpen) => {
if (!isOpen) {
open = true;
diff --git a/frontend/src/lib/components/dialogs/gitops-import-dialog.svelte b/frontend/src/lib/components/dialogs/gitops-import-dialog.svelte
index 463188508..98fd1ce8a 100644
--- a/frontend/src/lib/components/dialogs/gitops-import-dialog.svelte
+++ b/frontend/src/lib/components/dialogs/gitops-import-dialog.svelte
@@ -4,10 +4,8 @@
import { Spinner } from '$lib/components/ui/spinner/index.js';
import { Label } from '$lib/components/ui/label/index.js';
import { Textarea } from '$lib/components/ui/textarea/index.js';
- import { toast } from 'svelte-sonner';
import type { ImportGitOpsSyncRequest } from '$lib/types/gitops.type';
import { m } from '$lib/paraglide/messages';
- import { preventDefault } from '$lib/utils/form.utils';
type GitOpsImportFormProps = {
open: boolean;
@@ -69,7 +67,8 @@
</script>
<ResponsiveDialog
- bind:open
+ {open}
+ onOpenChange={(nextOpen) => (open = nextOpen)}
title={m.git_sync_import_title()}
description={m.git_sync_import_description()}
contentClass="sm:max-w-2xl"
diff --git a/frontend/src/lib/components/dialogs/prune-confirmation-dialog.svelte b/frontend/src/lib/components/dialogs/prune-confirmation-dialog.svelte
index 2759f6b64..79338fa25 100644
--- a/frontend/src/lib/components/dialogs/prune-confirmation-dialog.svelte
+++ b/frontend/src/lib/components/dialogs/prune-confirmation-dialog.svelte
@@ -3,10 +3,9 @@
import { ArcaneButton } from '$lib/components/arcane-button/index.js';
import * as Checkbox from '$lib/components/ui/checkbox/index.js';
import { Label } from '$lib/components/ui/label/index.js';
- import { Spinner } from '$lib/components/ui/spinner/index.js';
import * as Alert from '$lib/components/ui/alert/index.js';
import { m } from '$lib/paraglide/messages';
- import { TrashIcon, AlertIcon } from '$lib/icons';
+ import { AlertIcon } from '$lib/icons';
type PruneType = 'containers' | 'images' | 'networks' | 'volumes' | 'buildCache';
@@ -56,7 +55,7 @@
</script>
<ResponsiveDialog
- bind:open
+ {open}
onOpenChange={(isOpen) => !isOpen && handleCancel()}
title={m.prune_confirm_system_title()}
description={m.prune_confirm_description()}
diff --git a/frontend/src/lib/components/dialogs/template-selection-dialog.svelte b/frontend/src/lib/components/dialogs/template-selection-dialog.svelte
index 2bbdbbf4f..0848f43c1 100644
--- a/frontend/src/lib/components/dialogs/template-selection-dialog.svelte
+++ b/frontend/src/lib/components/dialogs/template-selection-dialog.svelte
@@ -3,7 +3,6 @@
import { ArcaneButton } from '$lib/components/arcane-button/index.js';
import { Card } from '$lib/components/ui/card/index.js';
import { Badge } from '$lib/components/ui/badge/index.js';
- import { Spinner } from '$lib/components/ui/spinner/index.js';
import { ScrollArea } from '$lib/components/ui/scroll-area/index.js';
import type { Template } from '$lib/types/template.type';
import { Label } from '$lib/components/ui/label/index.js';
@@ -34,6 +33,7 @@
}
let { open = $bindable(), templates = [], onSelect, onDownloadSuccess }: Props = $props();
+ void open;
let loadingStates = $state<Set<string>>(new Set());
let sortBy = $state<'name-asc' | 'name-desc'>('name-asc');
diff --git a/frontend/src/lib/components/dialogs/upgrade-confirmation-dialog.svelte b/frontend/src/lib/components/dialogs/upgrade-confirmation-dialog.svelte
index e64ec85d3..4e5b34ffe 100644
--- a/frontend/src/lib/components/dialogs/upgrade-confirmation-dialog.svelte
+++ b/frontend/src/lib/components/dialogs/upgrade-confirmation-dialog.svelte
@@ -41,7 +41,6 @@
let countdownInterval: ReturnType<typeof setInterval> | null = null;
let fallbackTimeout: ReturnType<typeof setTimeout> | null = null;
let baselineVersionInfo = $state<AppVersionInformation | null>(null);
- let lastSeenVersionInfo = $state<AppVersionInformation | null>(null);
let consecutiveHealthyChecks = $state(0);
function short(v?: string | null, n = 12): string {
@@ -121,8 +120,6 @@
queryFn: () => systemUpgradeService.getVersionInfo(envId),
staleTime: 0
});
- lastSeenVersionInfo = info;
-
const expVer = expectedVersion?.trim();
const expDig = expectedDigest?.trim();
const ok = matchesExpected(info);
@@ -169,7 +166,6 @@
queryFn: () => systemUpgradeService.getVersionInfo(environmentId ?? '0'),
staleTime: 0
});
- lastSeenVersionInfo = baselineVersionInfo;
if (!baselineVersionInfo) return;
const baseline = baselineVersionInfo;
@@ -247,7 +243,7 @@
});
</script>
-<Dialog.Root bind:open>
+<Dialog.Root {open} onOpenChange={(nextOpen) => (open = nextOpen)}>
<Dialog.Content
class={cn('sm:max-w-[500px]', upgrading && '[&>button]:hidden')}
onInteractOutside={(e: Event) => {
diff --git a/frontend/src/lib/components/dialogs/version-info-dialog.svelte b/frontend/src/lib/components/dialogs/version-info-dialog.svelte
index 957f1f790..ffb61b186 100644
--- a/frontend/src/lib/components/dialogs/version-info-dialog.svelte
+++ b/frontend/src/lib/components/dialogs/version-info-dialog.svelte
@@ -23,7 +23,7 @@
const logoUrl = $derived(getApplicationLogo(false, accentColor, accentColor));
</script>
-<ResponsiveDialog bind:open {onOpenChange} description={m.version_info_description()} contentClass="sm:max-w-md">
+<ResponsiveDialog {open} {onOpenChange} description={m.version_info_description()} contentClass="sm:max-w-md">
{#snippet title()}
<div class="flex items-center gap-2">
<img src={logoUrl} alt="Arcane" class="size-6" />
diff --git a/frontend/src/lib/components/disk-meter.svelte b/frontend/src/lib/components/disk-meter.svelte
index 8b3620212..cc8d7b025 100644
--- a/frontend/src/lib/components/disk-meter.svelte
+++ b/frontend/src/lib/components/disk-meter.svelte
@@ -65,7 +65,9 @@
if (!result.success) {
const firstError = result.error.issues[0];
- toast.error(firstError.message);
+ if (firstError) {
+ toast.error(firstError.message);
+ }
return;
}
diff --git a/frontend/src/lib/components/docker-overview.svelte b/frontend/src/lib/components/docker-overview.svelte
index cd31a325f..75d32ef75 100644
--- a/frontend/src/lib/components/docker-overview.svelte
+++ b/frontend/src/lib/components/docker-overview.svelte
@@ -11,7 +11,6 @@
let {
dockerInfo,
containersRunning,
- containersStopped,
totalContainers,
totalImages,
loading = false,
@@ -19,7 +18,6 @@
}: {
dockerInfo: DockerInfo | null;
containersRunning: number;
- containersStopped: number;
totalContainers: number;
totalImages: number;
loading?: boolean;
diff --git a/frontend/src/lib/components/dropdown-card.svelte b/frontend/src/lib/components/dropdown-card.svelte
index 2fde3d147..c835b3d2c 100644
--- a/frontend/src/lib/components/dropdown-card.svelte
+++ b/frontend/src/lib/components/dropdown-card.svelte
@@ -26,6 +26,7 @@
let expanded = $state(false);
let initialized = $state(false);
+ void slide;
function loadExpandedState() {
const state = JSON.parse(localStorage.getItem('collapsible-cards-expanded') || '{}');
diff --git a/frontend/src/lib/components/file-browser/CreateFolderDialog.svelte b/frontend/src/lib/components/file-browser/CreateFolderDialog.svelte
index 6f8b14906..f9776e926 100644
--- a/frontend/src/lib/components/file-browser/CreateFolderDialog.svelte
+++ b/frontend/src/lib/components/file-browser/CreateFolderDialog.svelte
@@ -37,7 +37,7 @@
}
</script>
-<Dialog.Root bind:open>
+<Dialog.Root {open} onOpenChange={(nextOpen) => (open = nextOpen)}>
<Dialog.Content class="sm:max-w-[425px]">
<Dialog.Header>
<Dialog.Title>{m.volumes_browser_new_folder()}</Dialog.Title>
diff --git a/frontend/src/lib/components/file-browser/FileList.svelte b/frontend/src/lib/components/file-browser/FileList.svelte
index 0f0074bcd..dc0983e42 100644
--- a/frontend/src/lib/components/file-browser/FileList.svelte
+++ b/frontend/src/lib/components/file-browser/FileList.svelte
@@ -47,12 +47,19 @@
minimal?: boolean;
} = $props();
+ // Kept for component API compatibility with callers that pass the current path.
+ // svelte-ignore state_referenced_locally
+ void currentPath;
+
let requestOptions = $state<SearchPaginationSortRequest>({
pagination: { page: 1, limit: 100 },
sort: { column: 'name', direction: 'asc' }
});
let mobileFieldVisibility = $state<Record<string, boolean>>({});
+ // Bound to ArcaneTable so mobile visibility preferences can persist externally.
+ // svelte-ignore state_referenced_locally
+ void mobileFieldVisibility;
function compareByColumn(a: FileEntry, b: FileEntry, column: string): number {
switch (column) {
@@ -244,7 +251,7 @@
getValue: (item) => (item.isDirectory ? '--' : formatBytes(item.size)),
icon: EyeOnIcon,
iconVariant: 'gray',
- show: mobileFieldVisibility.size ?? true
+ show: mobileFieldVisibility['size'] ?? true
}
]}
footer={{
diff --git a/frontend/src/lib/components/file-browser/FileUploadDialog.svelte b/frontend/src/lib/components/file-browser/FileUploadDialog.svelte
index c59ab5310..ff2c22414 100644
--- a/frontend/src/lib/components/file-browser/FileUploadDialog.svelte
+++ b/frontend/src/lib/components/file-browser/FileUploadDialog.svelte
@@ -1,7 +1,7 @@
<script lang="ts">
import * as Dialog from '$lib/components/ui/dialog';
import { ArcaneButton } from '$lib/components/arcane-button';
- import { FileDropZone, displaySize, MEGABYTE, type FileDropZoneProps } from '$lib/components/ui/file-drop-zone';
+ import { FileDropZone, displaySize, type FileDropZoneProps } from '$lib/components/ui/file-drop-zone';
import { toast } from 'svelte-sonner';
import * as m from '$lib/paraglide/messages.js';
import { CloseIcon } from '$lib/icons';
@@ -50,8 +50,9 @@
</script>
<Dialog.Root
- bind:open
+ {open}
onOpenChange={(isOpen) => {
+ open = isOpen;
if (!isOpen) files = [];
}}
>
diff --git a/frontend/src/lib/components/file-browser/GenericFileBrowser.svelte b/frontend/src/lib/components/file-browser/GenericFileBrowser.svelte
index 7be853f01..501178237 100644
--- a/frontend/src/lib/components/file-browser/GenericFileBrowser.svelte
+++ b/frontend/src/lib/components/file-browser/GenericFileBrowser.svelte
@@ -86,7 +86,10 @@
try {
backups = await provider.listBackups();
if (backups.length > 0) {
- selectedBackupId = backups[0].id;
+ const firstBackup = backups[0];
+ if (firstBackup) {
+ selectedBackupId = firstBackup.id;
+ }
}
} catch (e: any) {
toast.error(e.message || m.common_failed());
@@ -237,7 +240,8 @@
{/if}
<ResponsiveDialog
- bind:open={showRestoreFile}
+ open={showRestoreFile}
+ onOpenChange={(nextOpen) => (showRestoreFile = nextOpen)}
title="Restore file from backup"
description="Select a backup to restore the chosen file."
contentClass="sm:max-w-[520px]"
diff --git a/frontend/src/lib/components/form/date-picker.svelte b/frontend/src/lib/components/form/date-picker.svelte
index 75830340d..0b0be59f9 100644
--- a/frontend/src/lib/components/form/date-picker.svelte
+++ b/frontend/src/lib/components/form/date-picker.svelte
@@ -51,7 +51,7 @@
}
});
- function handleCalendarInteraction(newDateValue?: DateValue) {
+ function handleCalendarInteraction(_newDateValue?: DateValue) {
open = false;
}
@@ -61,7 +61,7 @@
</script>
<div class="w-full" {...restProps}>
- <Popover.Root bind:open>
+ <Popover.Root {open} onOpenChange={(nextOpen) => (open = nextOpen)}>
<Popover.Trigger {id} class="w-full">
{#snippet child({ props })}
<ArcaneButton
diff --git a/frontend/src/lib/components/form/labeled-switch.svelte b/frontend/src/lib/components/form/labeled-switch.svelte
index 1a35f48a7..d65b1b922 100644
--- a/frontend/src/lib/components/form/labeled-switch.svelte
+++ b/frontend/src/lib/components/form/labeled-switch.svelte
@@ -19,6 +19,7 @@
disabled?: boolean;
onCheckedChange?: (checked: boolean) => void;
} = $props();
+ void checked;
</script>
<div class="flex items-center space-x-2">
diff --git a/frontend/src/lib/components/form/mobile-floating-form-actions.svelte b/frontend/src/lib/components/form/mobile-floating-form-actions.svelte
index f9d818fa8..a5d039be7 100644
--- a/frontend/src/lib/components/form/mobile-floating-form-actions.svelte
+++ b/frontend/src/lib/components/form/mobile-floating-form-actions.svelte
@@ -47,10 +47,15 @@
if (transform !== 'none' && transform.includes('matrix')) {
const matrix = transform.match(/matrix.*\((.+)\)/);
if (matrix) {
- const values = matrix[1].split(', ');
- const translateY = parseFloat(values[5] || '0');
- // If translateY is positive (moved down), nav is hidden
- mobileNavVisible = translateY === 0 && opacity > 0.5;
+ const rawValues = matrix[1];
+ if (rawValues) {
+ const values = rawValues.split(', ');
+ const translateY = parseFloat(values[5] ?? '0');
+ // If translateY is positive (moved down), nav is hidden
+ mobileNavVisible = translateY === 0 && opacity > 0.5;
+ } else {
+ mobileNavVisible = opacity > 0.5;
+ }
}
} else {
mobileNavVisible = opacity > 0.5;
diff --git a/frontend/src/lib/components/form/text-input-with-label.svelte b/frontend/src/lib/components/form/text-input-with-label.svelte
index 9d72d7039..653aba0d2 100644
--- a/frontend/src/lib/components/form/text-input-with-label.svelte
+++ b/frontend/src/lib/components/form/text-input-with-label.svelte
@@ -55,7 +55,7 @@
<Input
{id}
{name}
- bind:value
+ {value}
{placeholder}
{disabled}
{type}
diff --git a/frontend/src/lib/components/form/url-input.svelte b/frontend/src/lib/components/form/url-input.svelte
index bfe4c0ebc..91424df8e 100644
--- a/frontend/src/lib/components/form/url-input.svelte
+++ b/frontend/src/lib/components/form/url-input.svelte
@@ -33,6 +33,10 @@
function selectProtocol(p: 'https' | 'http') {
protocol = p;
}
+
+ function handleInput(e: Event) {
+ value = (e.target as HTMLInputElement).value;
+ }
</script>
<div class="grid gap-2">
@@ -62,7 +66,7 @@
</DropdownMenu.Content>
</DropdownMenu.Root>
<InputGroup.Root class={['flex-1', error ? 'border-destructive' : ''].filter(Boolean).join(' ')}>
- <InputGroup.Input {id} bind:value {placeholder} {disabled} {required} aria-invalid={!!error} />
+ <InputGroup.Input {id} {value} oninput={handleInput} {placeholder} {disabled} {required} aria-invalid={!!error} />
</InputGroup.Root>
</ButtonGroup.Root>
diff --git a/frontend/src/lib/components/logs/log-controls.svelte b/frontend/src/lib/components/logs/log-controls.svelte
index e832fa4b3..501147b38 100644
--- a/frontend/src/lib/components/logs/log-controls.svelte
+++ b/frontend/src/lib/components/logs/log-controls.svelte
@@ -41,7 +41,7 @@
const persistedAutoStart = new PersistedState('arcane_log_auto_start', 'false');
const persistedJsonParsing = new PersistedState('arcane_log_json_parsing', 'false');
- let selectedTail = $state<string>(persistedTailLines.current);
+ let selectedTail = $state<string>(persistedTailLines.current || (tailLines >= 999999 ? 'all' : String(tailLines)));
$effect(() => {
persistedTailLines.current = selectedTail;
diff --git a/frontend/src/lib/components/logs/log-viewer.svelte b/frontend/src/lib/components/logs/log-viewer.svelte
index bb8106b44..1716815ac 100644
--- a/frontend/src/lib/components/logs/log-viewer.svelte
+++ b/frontend/src/lib/components/logs/log-viewer.svelte
@@ -362,7 +362,7 @@
for (let i = 0; i < service.length; i++) {
hash = service.charCodeAt(i) + ((hash << 5) - hash);
}
- return colors[Math.abs(hash) % colors.length];
+ return colors[Math.abs(hash) % colors.length] ?? 'text-gray-300';
}
function tryParseJson(message: string): { isJson: boolean; parsed?: any } {
diff --git a/frontend/src/lib/components/logs/structured-log-entry.svelte b/frontend/src/lib/components/logs/structured-log-entry.svelte
index f61899bd9..843eacfe7 100644
--- a/frontend/src/lib/components/logs/structured-log-entry.svelte
+++ b/frontend/src/lib/components/logs/structured-log-entry.svelte
@@ -105,8 +105,8 @@
}
// Fallback: use 'event' field if no message found
- if (!message && obj.event) {
- message = String(obj.event);
+ if (!message && obj['event']) {
+ message = String(obj['event']);
}
const rawTimestamp = findValue(obj, TIMESTAMP_KEYS);
diff --git a/frontend/src/lib/components/mobile-nav/mobile-nav-menu-button.svelte b/frontend/src/lib/components/mobile-nav/mobile-nav-menu-button.svelte
index dd8787444..632360a6e 100644
--- a/frontend/src/lib/components/mobile-nav/mobile-nav-menu-button.svelte
+++ b/frontend/src/lib/components/mobile-nav/mobile-nav-menu-button.svelte
@@ -19,12 +19,12 @@
'flex-shrink-0 rounded-full transition-all duration-200 ease-out active:scale-95',
'flex items-center justify-center',
// Keep a large tap target but allow a slightly smaller footprint on the smallest screens.
- 'size-[52px] sm:size-14'
+ showLabels ? 'size-[52px] sm:size-14' : 'size-12 sm:size-[52px]'
)}
aria-label={m.mobile_navigation()}
{onclick}
data-testid="mobile-nav-open"
>
- <MobileNavDrawerIcon class="size-8 sm:size-8.5" aria-hidden="true" />
+ <MobileNavDrawerIcon class={showLabels ? 'size-8 sm:size-8.5' : 'size-7.5 sm:size-8'} aria-hidden="true" />
<span class="sr-only">{m.mobile_navigation()}</span>
</button>
diff --git a/frontend/src/lib/components/mobile-nav/mobile-nav-sheet.svelte b/frontend/src/lib/components/mobile-nav/mobile-nav-sheet.svelte
index 0d589f9cb..afc142021 100644
--- a/frontend/src/lib/components/mobile-nav/mobile-nav-sheet.svelte
+++ b/frontend/src/lib/components/mobile-nav/mobile-nav-sheet.svelte
@@ -130,7 +130,7 @@
}
</script>
-<Drawer.Root bind:open shouldScaleBackground direction="bottom" modal={true}>
+<Drawer.Root {open} onOpenChange={(nextOpen) => (open = nextOpen)} shouldScaleBackground direction="bottom" modal={true}>
<Drawer.Overlay class="fixed inset-0 z-40 bg-black/40 backdrop-blur-xl" />
<Drawer.Content
data-testid="mobile-nav-sheet"
diff --git a/frontend/src/lib/components/sheets/add-template-registry-sheet.svelte b/frontend/src/lib/components/sheets/add-template-registry-sheet.svelte
index cedb97aac..68f8fbd30 100644
--- a/frontend/src/lib/components/sheets/add-template-registry-sheet.svelte
+++ b/frontend/src/lib/components/sheets/add-template-registry-sheet.svelte
@@ -3,7 +3,6 @@
import { ArcaneButton } from '$lib/components/arcane-button/index.js';
import FormInput from '$lib/components/form/form-input.svelte';
import SwitchWithLabel from '$lib/components/form/labeled-switch.svelte';
- import { Spinner } from '$lib/components/ui/spinner/index.js';
import { z } from 'zod/v4';
import { createForm, preventDefault } from '$lib/utils/form.utils';
import * as Alert from '$lib/components/ui/alert/index.js';
@@ -71,7 +70,7 @@
</script>
<ResponsiveDialog.Root
- bind:open
+ {open}
onOpenChange={handleOpenChange}
variant="sheet"
title={m.templates_add_registry_title()}
diff --git a/frontend/src/lib/components/sheets/api-key-form-sheet.svelte b/frontend/src/lib/components/sheets/api-key-form-sheet.svelte
index fca4d179d..a2ffb9aa0 100644
--- a/frontend/src/lib/components/sheets/api-key-form-sheet.svelte
+++ b/frontend/src/lib/components/sheets/api-key-form-sheet.svelte
@@ -61,7 +61,7 @@
</script>
<ResponsiveDialog.Root
- bind:open
+ {open}
onOpenChange={handleOpenChange}
variant="sheet"
title={isStaticApiKey
diff --git a/frontend/src/lib/components/sheets/create-network-sheet.svelte b/frontend/src/lib/components/sheets/create-network-sheet.svelte
index 56bf60a1c..c75d47f3d 100644
--- a/frontend/src/lib/components/sheets/create-network-sheet.svelte
+++ b/frontend/src/lib/components/sheets/create-network-sheet.svelte
@@ -6,13 +6,12 @@
import { Label } from '$lib/components/ui/label/index.js';
import { Input } from '$lib/components/ui/input/index.js';
import { Textarea } from '$lib/components/ui/textarea/index.js';
- import { Spinner } from '$lib/components/ui/spinner/index.js';
import type { NetworkCreateOptions } from '$lib/types/network.type';
import { z } from 'zod/v4';
import { createForm, preventDefault } from '$lib/utils/form.utils';
import SelectWithLabel from '../form/select-with-label.svelte';
import { m } from '$lib/paraglide/messages';
- import { AddIcon, CloseIcon, NetworksIcon } from '$lib/icons';
+ import { CloseIcon } from '$lib/icons';
type CreateNetworkFormProps = {
open: boolean;
@@ -72,7 +71,7 @@
const [key, ...valueParts] = trimmed.split('=');
const value = valueParts.join('=');
- if (key.trim()) {
+ if (key?.trim()) {
result[key.trim()] = value.trim();
}
}
@@ -156,7 +155,7 @@
</script>
<ResponsiveDialog.Root
- bind:open
+ {open}
onOpenChange={handleOpenChange}
variant="sheet"
title={m.create_network_title()}
diff --git a/frontend/src/lib/components/sheets/create-volume-sheet.svelte b/frontend/src/lib/components/sheets/create-volume-sheet.svelte
index ab860997f..b0e43f253 100644
--- a/frontend/src/lib/components/sheets/create-volume-sheet.svelte
+++ b/frontend/src/lib/components/sheets/create-volume-sheet.svelte
@@ -3,13 +3,11 @@
import { ArcaneButton } from '$lib/components/arcane-button/index.js';
import FormInput from '$lib/components/form/form-input.svelte';
import * as Accordion from '$lib/components/ui/accordion/index.js';
- import { Spinner } from '$lib/components/ui/spinner/index.js';
import type { VolumeCreateRequest } from '$lib/types/volume.type';
import { z } from 'zod/v4';
import { createForm, preventDefault } from '$lib/utils/form.utils';
import SelectWithLabel from '../form/select-with-label.svelte';
import { m } from '$lib/paraglide/messages';
- import { AddIcon, VolumesIcon } from '$lib/icons';
type CreateVolumeFormProps = {
open: boolean;
@@ -56,7 +54,7 @@
const [key, ...valueParts] = trimmed.split('=');
const value = valueParts.join('=');
- if (key.trim()) {
+ if (key?.trim()) {
result[key.trim()] = value.trim();
}
}
@@ -93,7 +91,7 @@
</script>
<ResponsiveDialog.Root
- bind:open
+ {open}
onOpenChange={handleOpenChange}
variant="sheet"
title={m.create_volume_title()}
diff --git a/frontend/src/lib/components/sheets/image-pull-sheet.svelte b/frontend/src/lib/components/sheets/image-pull-sheet.svelte
index 30bd4eace..93d022325 100644
--- a/frontend/src/lib/components/sheets/image-pull-sheet.svelte
+++ b/frontend/src/lib/components/sheets/image-pull-sheet.svelte
@@ -23,7 +23,7 @@
isIndeterminatePhase,
getAggregateStatus
} from '$lib/utils/pull-progress';
- import { ArrowDownIcon, SuccessIcon, DownloadIcon } from '$lib/icons';
+ import { ArrowDownIcon } from '$lib/icons';
type ImagePullFormProps = {
open: boolean;
diff --git a/frontend/src/lib/components/sheets/new-environment-sheet.svelte b/frontend/src/lib/components/sheets/new-environment-sheet.svelte
index de85ca4e0..2b020d148 100644
--- a/frontend/src/lib/components/sheets/new-environment-sheet.svelte
+++ b/frontend/src/lib/components/sheets/new-environment-sheet.svelte
@@ -39,7 +39,7 @@
let isLoadingSnippets = $state(false);
const createEnvironmentMutation = createMutation(() => ({
- mutationFn: ({ dto, apiUrl, isEdge }: { dto: CreateEnvironmentDTO; apiUrl: string; isEdge: boolean }) =>
+ mutationFn: ({ dto }: { dto: CreateEnvironmentDTO; apiUrl: string; isEdge: boolean }) =>
environmentManagementService.create(dto),
onSuccess: async (created, variables) => {
await queryClient.invalidateQueries({ queryKey: queryKeys.environments.all });
diff --git a/frontend/src/lib/components/sheets/user-form-sheet.svelte b/frontend/src/lib/components/sheets/user-form-sheet.svelte
index 26bcee55c..d4d3604fc 100644
--- a/frontend/src/lib/components/sheets/user-form-sheet.svelte
+++ b/frontend/src/lib/components/sheets/user-form-sheet.svelte
@@ -8,12 +8,10 @@
import { createForm, preventDefault } from '$lib/utils/form.utils';
import { isValidUserEmail } from '$lib/utils/email.utils';
import { m } from '$lib/paraglide/messages';
- import { AddIcon, SaveIcon } from '$lib/icons';
type UserFormProps = {
open: boolean;
userToEdit: User | null;
- roles: { id: string; name: string }[];
onSubmit: (data: { user: Partial<User> & { password?: string }; isEditMode: boolean; userId?: string }) => void;
isLoading: boolean;
allowUsernameEdit?: boolean;
@@ -22,11 +20,11 @@
let {
open = $bindable(false),
userToEdit = $bindable(),
- roles,
onSubmit,
isLoading,
allowUsernameEdit = false
}: UserFormProps = $props();
+ void open;
let isEditMode = $derived(!!userToEdit);
let canEditUsername = $derived(!isEditMode || allowUsernameEdit);
diff --git a/frontend/src/lib/components/sidebar/sidebar-collapsible-item.svelte b/frontend/src/lib/components/sidebar/sidebar-collapsible-item.svelte
index 1367f053e..c29caf0f3 100644
--- a/frontend/src/lib/components/sidebar/sidebar-collapsible-item.svelte
+++ b/frontend/src/lib/components/sidebar/sidebar-collapsible-item.svelte
@@ -37,7 +37,7 @@
{#snippet child({ props })}
<Sidebar.MenuItem {...props}>
<Collapsible.Trigger>
- {#snippet child({ props })}
+ {#snippet child()}
{@const Icon = item.icon}
<Sidebar.MenuButton tooltipContent={showTooltip ? tooltipContent : undefined} isActive={item.isActive}>
{#snippet child({ props })}
diff --git a/frontend/src/lib/components/sidebar/sidebar-user.svelte b/frontend/src/lib/components/sidebar/sidebar-user.svelte
index 496afcee5..95846aa52 100644
--- a/frontend/src/lib/components/sidebar/sidebar-user.svelte
+++ b/frontend/src/lib/components/sidebar/sidebar-user.svelte
@@ -55,7 +55,7 @@
<Avatar.Image src={getDefaultProfilePicture()} alt={user.displayName} />
{:then url}
<Avatar.Image src={url} alt={user.displayName} />
- {:catch _}
+ {:catch}
<Avatar.Image src={getDefaultProfilePicture()} alt={user.displayName} />
{/await}
{:else}
@@ -106,7 +106,7 @@
<Avatar.Image src={getDefaultProfilePicture()} alt={user.displayName} />
{:then url}
<Avatar.Image src={url} alt={user.displayName} />
- {:catch _}
+ {:catch}
<Avatar.Image src={getDefaultProfilePicture()} alt={user.displayName} />
{/await}
{:else}
diff --git a/frontend/src/lib/components/stat-card.svelte b/frontend/src/lib/components/stat-card.svelte
index d9b06493f..bfe91e232 100644
--- a/frontend/src/lib/components/stat-card.svelte
+++ b/frontend/src/lib/components/stat-card.svelte
@@ -67,7 +67,8 @@
<div
class={cn(
'flex size-10 items-center justify-center rounded-full transition-colors duration-300',
- 'bg-transparent group-hover:bg-(--stat-hover-tint)/10'
+ bgColor,
+ 'group-hover:bg-(--stat-hover-tint)/10'
)}
>
<Icon class={cn('size-6 transition-transform duration-300 group-hover:scale-110', iconColor)} />
diff --git a/frontend/src/lib/components/terminal/terminal-controls.svelte b/frontend/src/lib/components/terminal/terminal-controls.svelte
index 683138bf7..a67929bf1 100644
--- a/frontend/src/lib/components/terminal/terminal-controls.svelte
+++ b/frontend/src/lib/components/terminal/terminal-controls.svelte
@@ -3,7 +3,6 @@
import { ArcaneButton } from '$lib/components/arcane-button/index.js';
import { Input } from '$lib/components/ui/input/index.js';
import { m } from '$lib/paraglide/messages';
- import { RefreshIcon } from '$lib/icons';
let {
selectedShell = $bindable(),
diff --git a/frontend/src/lib/components/ui/badge/badge.svelte b/frontend/src/lib/components/ui/badge/badge.svelte
index 265ca26c7..566b82584 100644
--- a/frontend/src/lib/components/ui/badge/badge.svelte
+++ b/frontend/src/lib/components/ui/badge/badge.svelte
@@ -43,6 +43,7 @@
variant?: BadgeVariant;
hoverEffect?: BadgeHoverEffect;
} = $props();
+ void cn;
</script>
<svelte:element
diff --git a/frontend/src/lib/components/ui/copy-button/copy-button.svelte b/frontend/src/lib/components/ui/copy-button/copy-button.svelte
index 2fb94dac4..c68207459 100644
--- a/frontend/src/lib/components/ui/copy-button/copy-button.svelte
+++ b/frontend/src/lib/components/ui/copy-button/copy-button.svelte
@@ -25,8 +25,10 @@
tabindex = -1,
children
}: CopyButtonProps = $props();
+ void ref;
const clipboard = new UseClipboard();
+ void scale;
const resolvedSize = $derived(size === 'icon' && children ? 'default' : size);
diff --git a/frontend/src/lib/components/ui/dropdown-menu/dropdown-menu-radio-item.svelte b/frontend/src/lib/components/ui/dropdown-menu/dropdown-menu-radio-item.svelte
index 23647270a..eba29c65b 100644
--- a/frontend/src/lib/components/ui/dropdown-menu/dropdown-menu-radio-item.svelte
+++ b/frontend/src/lib/components/ui/dropdown-menu/dropdown-menu-radio-item.svelte
@@ -1,6 +1,5 @@
<script lang="ts">
import { DropdownMenu as DropdownMenuPrimitive } from 'bits-ui';
- import { CheckIcon } from '$lib/icons';
import { cn, type WithoutChild } from '$lib/utils.js';
let {
diff --git a/frontend/src/lib/components/ui/file-drop-zone/file-drop-zone.svelte b/frontend/src/lib/components/ui/file-drop-zone/file-drop-zone.svelte
index a54d8203d..2d638acbd 100644
--- a/frontend/src/lib/components/ui/file-drop-zone/file-drop-zone.svelte
+++ b/frontend/src/lib/components/ui/file-drop-zone/file-drop-zone.svelte
@@ -99,6 +99,7 @@
for (let i = 0; i < uploadFiles.length; i++) {
const file = uploadFiles[i];
+ if (!file) continue;
const rejectedReason = shouldAcceptFile(file, (fileCount ?? 0) + i + 1);
diff --git a/frontend/src/lib/components/ui/form/form-button.svelte b/frontend/src/lib/components/ui/form/form-button.svelte
index 7d44d217c..f6b4e2901 100644
--- a/frontend/src/lib/components/ui/form/form-button.svelte
+++ b/frontend/src/lib/components/ui/form/form-button.svelte
@@ -12,6 +12,7 @@
}
let { ref = $bindable(null), variant, size, disabled, class: className, onclick, children }: Props = $props();
+ void ref;
</script>
<ArcaneButton
diff --git a/frontend/src/lib/components/ui/radio-group/radio-group-item.svelte b/frontend/src/lib/components/ui/radio-group/radio-group-item.svelte
index 671f882cb..ea0bada89 100644
--- a/frontend/src/lib/components/ui/radio-group/radio-group-item.svelte
+++ b/frontend/src/lib/components/ui/radio-group/radio-group-item.svelte
@@ -1,6 +1,5 @@
<script lang="ts">
import { RadioGroup as RadioGroupPrimitive } from 'bits-ui';
- import { CheckIcon } from '$lib/icons';
import { cn, type WithoutChildrenOrChild } from '$lib/utils.js';
let { ref = $bindable(null), class: className, ...restProps }: WithoutChildrenOrChild<RadioGroupPrimitive.ItemProps> = $props();
diff --git a/frontend/src/lib/components/ui/responsive-dialog/responsive-dialog.svelte b/frontend/src/lib/components/ui/responsive-dialog/responsive-dialog.svelte
index 6cdb99092..498fcb21f 100644
--- a/frontend/src/lib/components/ui/responsive-dialog/responsive-dialog.svelte
+++ b/frontend/src/lib/components/ui/responsive-dialog/responsive-dialog.svelte
@@ -37,7 +37,7 @@
{#if isDesktop.current}
{#if variant === 'sheet'}
- <Sheet.Root bind:open onOpenChange={handleOpenChange}>
+ <Sheet.Root {open} onOpenChange={handleOpenChange}>
{#if trigger}
<Sheet.Trigger>
{@render trigger()}
@@ -67,7 +67,7 @@
</Sheet.Content>
</Sheet.Root>
{:else}
- <Dialog.Root bind:open onOpenChange={handleOpenChange}>
+ <Dialog.Root {open} onOpenChange={handleOpenChange}>
{#if trigger}
<Dialog.Trigger>
{@render trigger()}
@@ -101,7 +101,7 @@
</Dialog.Root>
{/if}
{:else}
- <Drawer.Root bind:open onOpenChange={handleOpenChange}>
+ <Drawer.Root {open} onOpenChange={handleOpenChange}>
{#if trigger}
<Drawer.Trigger>
{@render trigger()}
diff --git a/frontend/src/lib/components/ui/sidebar/sidebar-rail.svelte b/frontend/src/lib/components/ui/sidebar/sidebar-rail.svelte
index d0eb0e9eb..cdce318a6 100644
--- a/frontend/src/lib/components/ui/sidebar/sidebar-rail.svelte
+++ b/frontend/src/lib/components/ui/sidebar/sidebar-rail.svelte
@@ -19,7 +19,7 @@
data-slot="sidebar-rail"
aria-label="Toggle Sidebar"
tabindex={sidebar.isTablet ? -1 : -1}
- onclick={(e) => {
+ onclick={() => {
if (!sidebar.isTablet) {
sidebar.toggle();
}
diff --git a/frontend/src/lib/components/ui/sidebar/sidebar.svelte b/frontend/src/lib/components/ui/sidebar/sidebar.svelte
index 5d8ded43d..ad5ab9ac1 100644
--- a/frontend/src/lib/components/ui/sidebar/sidebar.svelte
+++ b/frontend/src/lib/components/ui/sidebar/sidebar.svelte
@@ -1,8 +1,6 @@
<script lang="ts">
- import * as Sheet from '$lib/components/ui/sheet/index.js';
import { cn, type WithElementRef } from '$lib/utils.js';
import type { HTMLAttributes } from 'svelte/elements';
- import { SIDEBAR_WIDTH_MOBILE } from './constants.js';
import { useSidebar } from './context.svelte.js';
let {
diff --git a/frontend/src/lib/components/vulnerability/vulnerability-scan-item.svelte b/frontend/src/lib/components/vulnerability/vulnerability-scan-item.svelte
index 8ff142ce0..f7fc4e4b7 100644
--- a/frontend/src/lib/components/vulnerability/vulnerability-scan-item.svelte
+++ b/frontend/src/lib/components/vulnerability/vulnerability-scan-item.svelte
@@ -39,7 +39,6 @@
const hasCritical = $derived((scanSummary?.summary?.critical ?? 0) > 0);
const hasHigh = $derived((scanSummary?.summary?.high ?? 0) > 0);
const hasMedium = $derived((scanSummary?.summary?.medium ?? 0) > 0);
- const hasLow = $derived((scanSummary?.summary?.low ?? 0) > 0);
const hasAnyVuln = $derived((scanSummary?.summary?.total ?? 0) > 0);
const totalCount = $derived(scanSummary?.summary?.total ?? 0);
const isScanInProgress = $derived(isScanning || isVulnerabilityScanInProgress(scanSummary?.status));
@@ -99,20 +98,6 @@
return m.vuln_severity_unknown();
});
- const statusVariant = $derived.by(() => {
- if (hasError) return 'red';
- if (!isCompleted) return 'gray';
- if (totalCount === 0) return 'emerald';
- if (totalCount < 10) return 'amber';
- if (totalCount < 50) return 'orange';
- return 'red';
- });
-
- const statusBadgeText = $derived.by(() => {
- if (!isCompleted) return statusLabel;
- return `${statusLabel} · ${totalCount}`;
- });
-
const triggerDotClass = $derived.by(() => {
if (hasError) return 'bg-red-500';
if (!isCompleted) return 'bg-muted-foreground/50';
diff --git a/frontend/src/lib/components/vulnerability/vulnerability-scan-panel.svelte b/frontend/src/lib/components/vulnerability/vulnerability-scan-panel.svelte
index 084d9ca16..53dfb04ef 100644
--- a/frontend/src/lib/components/vulnerability/vulnerability-scan-panel.svelte
+++ b/frontend/src/lib/components/vulnerability/vulnerability-scan-panel.svelte
@@ -256,9 +256,9 @@
}
const mergedFilters = { ...(options.filters ?? {}) };
- if (mergedFilters.vulnSeverity) {
- mergedFilters.severity = mergedFilters.vulnSeverity;
- delete mergedFilters.vulnSeverity;
+ if (mergedFilters['vulnSeverity']) {
+ mergedFilters['severity'] = mergedFilters['vulnSeverity'];
+ delete mergedFilters['vulnSeverity'];
}
const sort = options.sort?.column === 'vulnSeverity' ? { ...options.sort, column: 'severity' } : options.sort;
@@ -315,7 +315,7 @@
{/snippet}
{#snippet PackageCell({ item }: { item: VulnerabilityRow })}
- <span class="font-mono text-xs">{item.pkgName}</span>
+ <span class="font-mono text-xs">{item['pkgName']}</span>
{/snippet}
{#snippet SeverityCell({ item }: { item: VulnerabilityRow })}
@@ -333,19 +333,17 @@
{/snippet}
{#snippet InstalledCell({ item }: { item: VulnerabilityRow })}
- <span class="font-mono text-xs">{item.installedVersion}</span>
+ <span class="font-mono text-xs">{item['installedVersion']}</span>
{/snippet}
{#snippet FixedCell({ item }: { item: VulnerabilityRow })}
- <span class="font-mono text-xs">{item.fixedVersion || m.vuln_no_fix()}</span>
+ <span class="font-mono text-xs">{item['fixedVersion'] || m.vuln_no_fix()}</span>
{/snippet}
{#snippet VulnerabilityMobileCard({
- row,
item,
mobileFieldVisibility
}: {
- row: any;
item: VulnerabilityRow;
mobileFieldVisibility: Record<string, boolean>;
})}
@@ -353,32 +351,32 @@
{item}
icon={(item) => ({
component: ShieldAlertIcon,
- variant: getSeverityIconVariant(item.severity)
+ variant: getSeverityIconVariant(item['severity'])
})}
- title={(item) => item.vulnerabilityId}
- subtitle={(item) => ((mobileFieldVisibility.pkgName ?? true) ? item.pkgName : null)}
+ title={(item) => item['vulnerabilityId']}
+ subtitle={(item) => ((mobileFieldVisibility['pkgName'] ?? true) ? item['pkgName'] : null)}
badges={[
(item) =>
- (mobileFieldVisibility.vulnSeverity ?? true)
- ? { variant: getSeverityBadgeVariant(item.severity), text: getSeverityLabel(item.severity) }
+ (mobileFieldVisibility['vulnSeverity'] ?? true)
+ ? { variant: getSeverityBadgeVariant(item['severity']), text: getSeverityLabel(item['severity']) }
: null
]}
fields={[
{
label: m.vuln_installed_version(),
- getValue: (item) => item.installedVersion,
+ getValue: (item) => item['installedVersion'],
type: 'mono',
icon: CodeIcon,
iconVariant: 'blue',
- show: mobileFieldVisibility.installedVersion ?? true
+ show: mobileFieldVisibility['installedVersion'] ?? true
},
{
label: m.vuln_fixed_version(),
- getValue: (item) => item.fixedVersion || m.vuln_no_fix(),
+ getValue: (item) => item['fixedVersion'] || m.vuln_no_fix(),
type: 'mono',
icon: CheckIcon,
- iconVariant: item.fixedVersion ? 'emerald' : 'gray',
- show: mobileFieldVisibility.fixedVersion ?? true
+ iconVariant: item['fixedVersion'] ? 'emerald' : 'gray',
+ show: mobileFieldVisibility['fixedVersion'] ?? true
}
]}
/>
diff --git a/frontend/src/lib/config/navigation-config.ts b/frontend/src/lib/config/navigation-config.ts
index 217fd11c2..fc69f602e 100644
--- a/frontend/src/lib/config/navigation-config.ts
+++ b/frontend/src/lib/config/navigation-config.ts
@@ -30,7 +30,15 @@ export type NavigationItem = {
items?: NavigationItem[];
};
-export const navigationItems: Record<string, NavigationItem[]> = {
+export type NavigationSections = {
+ managementItems: NavigationItem[];
+ resourceItems: NavigationItem[];
+ deploymentItems: NavigationItem[];
+ securityItems: NavigationItem[];
+ settingsItems: NavigationItem[];
+};
+
+export const navigationItems: NavigationSections = {
managementItems: [
{ title: m.dashboard_title(), url: '/dashboard', icon: DashboardIcon, shortcut: ['mod', '1'] },
{ title: m.projects_title(), url: '/projects', icon: ProjectsIcon, shortcut: ['mod', '2'] },
@@ -81,10 +89,10 @@ export const navigationItems: Record<string, NavigationItem[]> = {
};
export const defaultMobilePinnedItems: NavigationItem[] = [
- navigationItems.managementItems[0],
- navigationItems.managementItems[1],
- navigationItems.resourceItems[0],
- navigationItems.resourceItems[1]
+ navigationItems.managementItems[0]!,
+ navigationItems.managementItems[1]!,
+ navigationItems.resourceItems[0]!,
+ navigationItems.resourceItems[1]!
];
export type MobileNavigationSettings = {
@@ -95,33 +103,20 @@ export type MobileNavigationSettings = {
};
export function getAvailableMobileNavItems(): NavigationItem[] {
- const flatItems: NavigationItem[] = [];
-
- if (navigationItems.managementItems) {
- flatItems.push(...navigationItems.managementItems);
- }
-
- if (navigationItems.resourceItems) {
- flatItems.push(...navigationItems.resourceItems);
- }
-
- if (navigationItems.deploymentItems) {
- flatItems.push(...navigationItems.deploymentItems);
- }
-
- if (navigationItems.securityItems) {
- flatItems.push(...navigationItems.securityItems);
- }
+ const flatItems: NavigationItem[] = [
+ ...navigationItems.managementItems,
+ ...navigationItems.resourceItems,
+ ...navigationItems.deploymentItems,
+ ...navigationItems.securityItems
+ ];
- if (navigationItems.settingsItems) {
- const settingsTopLevel = navigationItems.settingsItems.filter((item) => !item.items);
- flatItems.push(...settingsTopLevel);
+ const settingsTopLevel = navigationItems.settingsItems.filter((item) => !item.items);
+ flatItems.push(...settingsTopLevel);
- // Also add the main settings item itself if it has children, as it's a valid navigation target
- const settingsMain = navigationItems.settingsItems.find((item) => item.items);
- if (settingsMain) {
- flatItems.push(settingsMain);
- }
+ // Also add the main settings item itself if it has children, as it's a valid navigation target
+ const settingsMain = navigationItems.settingsItems.find((item) => item.items);
+ if (settingsMain) {
+ flatItems.push(settingsMain);
}
return flatItems;
diff --git a/frontend/src/lib/hooks/use-mobile-nav-interactions.ts b/frontend/src/lib/hooks/use-mobile-nav-interactions.ts
index dde987acc..0d8894e3d 100644
--- a/frontend/src/lib/hooks/use-mobile-nav-interactions.ts
+++ b/frontend/src/lib/hooks/use-mobile-nav-interactions.ts
@@ -45,7 +45,6 @@ export class MobileNavInteractionManager {
private state: MobileNavInteractionState;
private navElement: HTMLElement | null = null;
- private lastGestureTime = 0;
private lastScrollDirection: string | null = null;
private lastScrollY = 0;
@@ -85,7 +84,6 @@ export class MobileNavInteractionManager {
this.swipeDetector = new SwipeGestureDetector(
(direction: SwipeDirection) => {
if (direction === 'up') {
- this.lastGestureTime = Date.now();
this.callbacks.onMenuOpen();
}
},
@@ -145,6 +143,8 @@ export class MobileNavInteractionManager {
// Only track if we moved off an interactive element
if (this.isInteractiveTouch) {
const touch = e.touches[0];
+ if (!touch) return;
+
const target = document.elementFromPoint(touch.clientX, touch.clientY) as HTMLElement;
const stillOnInteractive = target && target.closest('button, a, [role="button"], input, select, textarea');
@@ -155,7 +155,7 @@ export class MobileNavInteractionManager {
}
};
- const handleTouchEnd = (e: TouchEvent) => {
+ const handleTouchEnd = () => {
// Reset touch state
this.touchStartTarget = null;
this.isInteractiveTouch = false;
diff --git a/frontend/src/lib/hooks/use-swipe-gesture.svelte.ts b/frontend/src/lib/hooks/use-swipe-gesture.svelte.ts
index 36661288b..d22ef3bc1 100644
--- a/frontend/src/lib/hooks/use-swipe-gesture.svelte.ts
+++ b/frontend/src/lib/hooks/use-swipe-gesture.svelte.ts
@@ -12,11 +12,9 @@ export class SwipeGestureDetector {
private startX = 0;
private startY = 0;
private startTime = 0;
- private element = $state<HTMLElement | null>(null);
private onSwipe: (direction: SwipeDirection, details: SwipeDetails) => void;
private options: Required<SwipeGestureOptions>;
private cleanupFn: (() => void) | null = null;
- private isInteractiveTouch = false;
constructor(onSwipe: (direction: SwipeDirection, details: SwipeDetails) => void, options: SwipeGestureOptions = {}) {
this.onSwipe = onSwipe;
@@ -42,24 +40,21 @@ export class SwipeGestureDetector {
this.cleanupFn = null;
}
- this.element = element;
-
if (!element) return;
const handleTouchStart = (e: TouchEvent) => {
const touch = e.touches[0];
+ if (!touch) return;
+
this.startX = touch.clientX;
this.startY = touch.clientY;
this.startTime = Date.now();
-
- // Store if this started on an interactive element
- const target = e.target as HTMLElement;
- const isInteractive = target.closest('button, a, [role="button"], input, textarea, select');
- this.isInteractiveTouch = !!isInteractive;
};
const handleTouchEnd = (e: TouchEvent) => {
const touch = e.changedTouches[0];
+ if (!touch) return;
+
const endX = touch.clientX;
const endY = touch.clientY;
const endTime = Date.now();
diff --git a/frontend/src/lib/services/api-service.ts b/frontend/src/lib/services/api-service.ts
index bcad94117..afb3e9139 100644
--- a/frontend/src/lib/services/api-service.ts
+++ b/frontend/src/lib/services/api-service.ts
@@ -8,10 +8,10 @@ function extractServerMessage(data: any, includeErrors = false): string | undefi
}
if (inner) {
// Support both old format (error/message) and Huma RFC 7807 format (detail)
- const msg = inner.error || inner.message || inner.detail || inner.error_description;
+ const msg = inner['error'] || inner['message'] || inner['detail'] || inner['error_description'];
if (msg) return msg;
- if (includeErrors && Array.isArray(inner.errors) && inner.errors.length) {
- return inner.errors[0]?.message || inner.errors[0];
+ if (includeErrors && Array.isArray(inner['errors']) && inner['errors'].length) {
+ return inner['errors'][0]?.message || inner['errors'][0];
}
}
return undefined;
@@ -30,8 +30,9 @@ abstract class BaseAPIService {
}
constructor() {
- if (typeof process !== 'undefined' && process?.env?.DEV_BACKEND_URL) {
- this.api.defaults.baseURL = process.env.DEV_BACKEND_URL;
+ const devBackendUrl = typeof process !== 'undefined' ? process?.env?.['DEV_BACKEND_URL'] : undefined;
+ if (devBackendUrl) {
+ this.api.defaults.baseURL = devBackendUrl;
}
this.api.interceptors.response.use(
@@ -56,7 +57,7 @@ abstract class BaseAPIService {
const u = new URL(reqUrl, baseURL);
reqUrl = u.pathname;
}
- } catch (e) {
+ } catch {
// ignore URL parse errors and fall back to raw reqUrl
}
diff --git a/frontend/src/lib/services/container-service.ts b/frontend/src/lib/services/container-service.ts
index eaa1326b3..99c1d0484 100644
--- a/frontend/src/lib/services/container-service.ts
+++ b/frontend/src/lib/services/container-service.ts
@@ -4,7 +4,6 @@ import type {
ContainerStatusCounts,
ContainerSummaryDto,
ContainerSummaryGroupDto,
- ContainerStats,
ContainerCreateRequest,
ContainerDetailsDto
} from '$lib/types/container.type';
@@ -39,7 +38,7 @@ export class ContainerService extends BaseAPIService {
): Promise<ContainersPaginatedResponse> {
const params = transformPaginationParams(options);
if (options?.groupByProject) {
- params.groupBy = 'project';
+ params['groupBy'] = 'project';
}
const res = await this.api.get(`/environments/${environmentId}/containers`, { params });
return res.data;
@@ -87,8 +86,8 @@ export class ContainerService extends BaseAPIService {
async deleteContainer(containerId: string, opts?: { force?: boolean; volumes?: boolean }): Promise<any> {
const envId = await environmentStore.getCurrentEnvironmentId();
const params: Record<string, string> = {};
- if (opts?.force !== undefined) params.force = String(!!opts.force);
- if (opts?.volumes !== undefined) params.volumes = String(!!opts.volumes);
+ if (opts?.force !== undefined) params['force'] = String(!!opts.force);
+ if (opts?.volumes !== undefined) params['volumes'] = String(!!opts.volumes);
return this.handleResponse(this.api.delete(`/environments/${envId}/containers/${containerId}`, { params }));
}
diff --git a/frontend/src/lib/services/notification-service.ts b/frontend/src/lib/services/notification-service.ts
index 4f06071e2..4addd2d85 100644
--- a/frontend/src/lib/services/notification-service.ts
+++ b/frontend/src/lib/services/notification-service.ts
@@ -11,6 +11,8 @@ export default class NotificationService extends BaseAPIService {
async updateSettings(provider: string, settings: NotificationSettings): Promise<NotificationSettings> {
const envId = await environmentStore.getCurrentEnvironmentId();
+ // The current backend settings endpoint applies the full notification config, not a provider-specific subresource.
+ void provider;
const res = await this.api.post(`/environments/${envId}/notifications/settings`, settings);
return res.data;
}
diff --git a/frontend/src/lib/services/project-service.ts b/frontend/src/lib/services/project-service.ts
index 4b37737e1..e0477d454 100644
--- a/frontend/src/lib/services/project-service.ts
+++ b/frontend/src/lib/services/project-service.ts
@@ -125,13 +125,13 @@ export class ProjectService extends BaseAPIService {
const envId = await environmentStore.getCurrentEnvironmentId();
const payload: Record<string, string> = {};
if (name !== undefined) {
- payload.name = name;
+ payload['name'] = name;
}
if (composeContent !== undefined) {
- payload.composeContent = composeContent;
+ payload['composeContent'] = composeContent;
}
if (envContent !== undefined) {
- payload.envContent = envContent;
+ payload['envContent'] = envContent;
}
return this.handleResponse(this.api.put(`/environments/${envId}/projects/${projectId}`, payload));
}
diff --git a/frontend/src/lib/services/vulnerability-service.ts b/frontend/src/lib/services/vulnerability-service.ts
index a647b038b..7eeedef80 100644
--- a/frontend/src/lib/services/vulnerability-service.ts
+++ b/frontend/src/lib/services/vulnerability-service.ts
@@ -115,11 +115,11 @@ export class VulnerabilityService extends BaseAPIService {
environmentId: string,
options?: SearchPaginationSortRequest
): Promise<string[]> {
- const severityFilter = options?.filters?.severity;
+ const severityFilter = options?.filters?.['severity'];
const params: Record<string, string> = {};
if (severityFilter !== undefined && severityFilter !== null) {
- params.severity = Array.isArray(severityFilter) ? severityFilter.join(',') : String(severityFilter);
+ params['severity'] = Array.isArray(severityFilter) ? severityFilter.join(',') : String(severityFilter);
}
return this.handleResponse(this.api.get(`/environments/${environmentId}/vulnerabilities/image-options`, { params }));
diff --git a/frontend/src/lib/types/notification-providers.ts b/frontend/src/lib/types/notification-providers.ts
index 65f120e8d..6847bed2a 100644
--- a/frontend/src/lib/types/notification-providers.ts
+++ b/frontend/src/lib/types/notification-providers.ts
@@ -166,100 +166,136 @@ export interface ProviderState<T> {
errors: Partial<Record<keyof T, string>>;
}
+type ProviderConfig = Record<string, unknown>;
+type ProviderEvents = Partial<
+ Record<'image_update' | 'container_update' | 'vulnerability_found' | 'prune_report' | 'auto_heal', boolean>
+>;
+
+function getConfig(settings?: NotificationSettings): ProviderConfig {
+ return (settings?.config ?? {}) as ProviderConfig;
+}
+
+function getEvents(config: ProviderConfig): ProviderEvents {
+ return (config['events'] ?? {}) as ProviderEvents;
+}
+
+function getString(config: ProviderConfig, key: string, fallback = ''): string {
+ return typeof config[key] === 'string' ? (config[key] as string) : fallback;
+}
+
+function getNumber(config: ProviderConfig, key: string, fallback = 0): number {
+ return typeof config[key] === 'number' ? (config[key] as number) : fallback;
+}
+
+function getBoolean(config: ProviderConfig, key: string, fallback = false): boolean {
+ return typeof config[key] === 'boolean' ? (config[key] as boolean) : fallback;
+}
+
+function getStringArray(config: ProviderConfig, key: string): string[] {
+ const value = config[key];
+ if (!Array.isArray(value)) return [];
+ return value.filter((item): item is string => typeof item === 'string');
+}
+
+function getStringRecord(config: ProviderConfig, key: string): Record<string, string> {
+ const value = config[key];
+ if (!value || typeof value !== 'object' || Array.isArray(value)) return {};
+ return Object.fromEntries(
+ Object.entries(value as Record<string, unknown>).filter(([, entryValue]) => typeof entryValue === 'string') as Array<
+ [string, string]
+ >
+ );
+}
+
+function eventFlagsToFormValues(
+ events: ProviderEvents
+): Pick<
+ BaseProviderFormValues,
+ 'eventImageUpdate' | 'eventContainerUpdate' | 'eventVulnerabilityFound' | 'eventPruneReport' | 'eventAutoHeal'
+> {
+ return {
+ eventImageUpdate: events['image_update'] ?? true,
+ eventContainerUpdate: events['container_update'] ?? true,
+ eventVulnerabilityFound: events['vulnerability_found'] ?? true,
+ eventPruneReport: events['prune_report'] ?? true,
+ eventAutoHeal: events['auto_heal'] ?? true
+ };
+}
+
// Helper to convert settings to form values
export function discordSettingsToFormValues(settings?: NotificationSettings): DiscordFormValues {
- const cfg = (settings?.config ?? {}) as Record<string, unknown>;
- const events = (cfg?.events ?? {}) as Record<string, boolean>;
+ const cfg = getConfig(settings);
+ const events = getEvents(cfg);
return {
enabled: settings?.enabled ?? false,
- webhookId: (cfg?.webhookId as string) || '',
- token: (cfg?.token as string) || '',
- username: (cfg?.username as string) || 'Arcane',
- avatarUrl: (cfg?.avatarUrl as string) || '',
- eventImageUpdate: events?.image_update ?? true,
- eventContainerUpdate: events?.container_update ?? true,
- eventVulnerabilityFound: events?.vulnerability_found ?? true,
- eventPruneReport: events?.prune_report ?? true,
- eventAutoHeal: events?.auto_heal ?? true
+ webhookId: getString(cfg, 'webhookId'),
+ token: getString(cfg, 'token'),
+ username: getString(cfg, 'username', 'Arcane'),
+ avatarUrl: getString(cfg, 'avatarUrl'),
+ ...eventFlagsToFormValues(events)
};
}
export function emailSettingsToFormValues(settings?: NotificationSettings): EmailFormValues {
- const cfg = (settings?.config ?? {}) as Record<string, unknown>;
- const events = (cfg?.events ?? {}) as Record<string, boolean>;
+ const cfg = getConfig(settings);
+ const events = getEvents(cfg);
return {
enabled: settings?.enabled ?? false,
- smtpHost: (cfg?.smtpHost as string) || '',
- smtpPort: (cfg?.smtpPort as number) || 587,
- smtpUsername: (cfg?.smtpUsername as string) || '',
- smtpPassword: (cfg?.smtpPassword as string) || '',
- fromAddress: (cfg?.fromAddress as string) || '',
- toAddresses: Array.isArray(cfg?.toAddresses) ? (cfg.toAddresses as string[]).join(', ') : '',
- tlsMode: ((cfg?.tlsMode as string) || 'starttls') as EmailTLSMode,
- eventImageUpdate: events?.image_update ?? true,
- eventContainerUpdate: events?.container_update ?? true,
- eventVulnerabilityFound: events?.vulnerability_found ?? true,
- eventPruneReport: events?.prune_report ?? true,
- eventAutoHeal: events?.auto_heal ?? true
+ smtpHost: getString(cfg, 'smtpHost'),
+ smtpPort: getNumber(cfg, 'smtpPort', 587),
+ smtpUsername: getString(cfg, 'smtpUsername'),
+ smtpPassword: getString(cfg, 'smtpPassword'),
+ fromAddress: getString(cfg, 'fromAddress'),
+ toAddresses: getStringArray(cfg, 'toAddresses').join(', '),
+ tlsMode: getString(cfg, 'tlsMode', 'starttls') as EmailTLSMode,
+ ...eventFlagsToFormValues(events)
};
}
export function telegramSettingsToFormValues(settings?: NotificationSettings): TelegramFormValues {
- const cfg = (settings?.config ?? {}) as Record<string, unknown>;
- const events = (cfg?.events ?? {}) as Record<string, boolean>;
+ const cfg = getConfig(settings);
+ const events = getEvents(cfg);
return {
enabled: settings?.enabled ?? false,
- botToken: (cfg?.botToken as string) || '',
- chatIds: Array.isArray(cfg?.chatIds) ? (cfg.chatIds as string[]).join(', ') : '',
- preview: (cfg?.preview as boolean) ?? true,
- notification: (cfg?.notification as boolean) ?? true,
- title: (cfg?.title as string) || '',
- eventImageUpdate: events?.image_update ?? true,
- eventContainerUpdate: events?.container_update ?? true,
- eventVulnerabilityFound: events?.vulnerability_found ?? true,
- eventPruneReport: events?.prune_report ?? true,
- eventAutoHeal: events?.auto_heal ?? true
+ botToken: getString(cfg, 'botToken'),
+ chatIds: getStringArray(cfg, 'chatIds').join(', '),
+ preview: getBoolean(cfg, 'preview', true),
+ notification: getBoolean(cfg, 'notification', true),
+ title: getString(cfg, 'title'),
+ ...eventFlagsToFormValues(events)
};
}
export function signalSettingsToFormValues(settings?: NotificationSettings): SignalFormValues {
- const cfg = (settings?.config ?? {}) as Record<string, unknown>;
- const events = (cfg?.events ?? {}) as Record<string, boolean>;
+ const cfg = getConfig(settings);
+ const events = getEvents(cfg);
return {
enabled: settings?.enabled ?? false,
- host: (cfg?.host as string) || 'localhost',
- port: (cfg?.port as number) || 8080,
- user: (cfg?.user as string) || '',
- password: (cfg?.password as string) || '',
- token: (cfg?.token as string) || '',
- source: (cfg?.source as string) || '',
- recipients: Array.isArray(cfg?.recipients) ? (cfg.recipients as string[]).join(', ') : '',
- disableTls: (cfg?.disableTls as boolean) ?? false,
- eventImageUpdate: events?.image_update ?? true,
- eventContainerUpdate: events?.container_update ?? true,
- eventVulnerabilityFound: events?.vulnerability_found ?? true,
- eventPruneReport: events?.prune_report ?? true,
- eventAutoHeal: events?.auto_heal ?? true
+ host: getString(cfg, 'host', 'localhost'),
+ port: getNumber(cfg, 'port', 8080),
+ user: getString(cfg, 'user'),
+ password: getString(cfg, 'password'),
+ token: getString(cfg, 'token'),
+ source: getString(cfg, 'source'),
+ recipients: getStringArray(cfg, 'recipients').join(', '),
+ disableTls: getBoolean(cfg, 'disableTls', false),
+ ...eventFlagsToFormValues(events)
};
}
export function slackSettingsToFormValues(settings?: NotificationSettings): SlackFormValues {
- const cfg = (settings?.config ?? {}) as Record<string, unknown>;
- const events = (cfg?.events ?? {}) as Record<string, boolean>;
+ const cfg = getConfig(settings);
+ const events = getEvents(cfg);
return {
enabled: settings?.enabled ?? false,
- token: (cfg?.token as string) || '',
- botName: (cfg?.botName as string) || 'Arcane',
- icon: (cfg?.icon as string) || '',
- color: (cfg?.color as string) || '',
- title: (cfg?.title as string) || '',
- channel: (cfg?.channel as string) || '',
- threadTs: (cfg?.threadTs as string) || '',
- eventImageUpdate: events?.image_update ?? true,
- eventContainerUpdate: events?.container_update ?? true,
- eventVulnerabilityFound: events?.vulnerability_found ?? true,
- eventPruneReport: events?.prune_report ?? true,
- eventAutoHeal: events?.auto_heal ?? true
+ token: getString(cfg, 'token'),
+ botName: getString(cfg, 'botName', 'Arcane'),
+ icon: getString(cfg, 'icon'),
+ color: getString(cfg, 'color'),
+ title: getString(cfg, 'title'),
+ channel: getString(cfg, 'channel'),
+ threadTs: getString(cfg, 'threadTs'),
+ ...eventFlagsToFormValues(events)
};
}
@@ -394,91 +430,75 @@ export function slackFormValuesToSettings(values: SlackFormValues): Notification
}
export function ntfySettingsToFormValues(settings?: NotificationSettings): NtfyFormValues {
- const cfg = (settings?.config ?? {}) as Record<string, unknown>;
- const events = (cfg?.events ?? {}) as Record<string, boolean>;
+ const cfg = getConfig(settings);
+ const events = getEvents(cfg);
return {
enabled: settings?.enabled ?? false,
- host: (cfg?.host as string) || 'ntfy.sh',
- port: (cfg?.port as number) || 0,
- topic: (cfg?.topic as string) || '',
- username: (cfg?.username as string) || '',
- password: (cfg?.password as string) || '',
- title: (cfg?.title as string) || '',
- priority: (cfg?.priority as string) || 'default',
- tags: Array.isArray(cfg?.tags) ? (cfg.tags as string[]).join(', ') : '',
- icon: (cfg?.icon as string) || '',
- cache: (cfg?.cache as boolean) ?? true,
- firebase: (cfg?.firebase as boolean) ?? true,
- disableTlsVerification: (cfg?.disableTlsVerification as boolean) ?? false,
- eventImageUpdate: events?.image_update ?? true,
- eventContainerUpdate: events?.container_update ?? true,
- eventVulnerabilityFound: events?.vulnerability_found ?? true,
- eventPruneReport: events?.prune_report ?? true,
- eventAutoHeal: events?.auto_heal ?? true
+ host: getString(cfg, 'host', 'ntfy.sh'),
+ port: getNumber(cfg, 'port', 0),
+ topic: getString(cfg, 'topic'),
+ username: getString(cfg, 'username'),
+ password: getString(cfg, 'password'),
+ title: getString(cfg, 'title'),
+ priority: getString(cfg, 'priority', 'default'),
+ tags: getStringArray(cfg, 'tags').join(', '),
+ icon: getString(cfg, 'icon'),
+ cache: getBoolean(cfg, 'cache', true),
+ firebase: getBoolean(cfg, 'firebase', true),
+ disableTlsVerification: getBoolean(cfg, 'disableTlsVerification', false),
+ ...eventFlagsToFormValues(events)
};
}
export function pushoverSettingsToFormValues(settings?: NotificationSettings): PushoverFormValues {
- const cfg = (settings?.config ?? {}) as Record<string, unknown>;
- const events = (cfg?.events ?? {}) as Record<string, boolean>;
+ const cfg = getConfig(settings);
+ const events = getEvents(cfg);
return {
enabled: settings?.enabled ?? false,
- token: (cfg?.token as string) || '',
- user: (cfg?.user as string) || '',
- devices: Array.isArray(cfg?.devices) ? (cfg.devices as string[]).join(', ') : '',
- priority: Number(cfg?.priority ?? 0),
- title: (cfg?.title as string) || '',
- eventImageUpdate: events?.image_update ?? true,
- eventContainerUpdate: events?.container_update ?? true,
- eventVulnerabilityFound: events?.vulnerability_found ?? true,
- eventPruneReport: events?.prune_report ?? true,
- eventAutoHeal: events?.auto_heal ?? true
+ token: getString(cfg, 'token'),
+ user: getString(cfg, 'user'),
+ devices: getStringArray(cfg, 'devices').join(', '),
+ priority: Number(cfg['priority'] ?? 0),
+ title: getString(cfg, 'title'),
+ ...eventFlagsToFormValues(events)
};
}
export function gotifySettingsToFormValues(settings?: NotificationSettings): GotifyFormValues {
- const cfg = (settings?.config ?? {}) as Record<string, unknown>;
- const events = (cfg?.events ?? {}) as Record<string, boolean>;
+ const cfg = getConfig(settings);
+ const events = getEvents(cfg);
return {
enabled: settings?.enabled ?? false,
- host: (cfg?.host as string) || '',
- port: (cfg?.port as number) || 0,
- token: (cfg?.token as string) || '',
- path: (cfg?.path as string) || '',
- priority: Number(cfg?.priority ?? 0),
- title: (cfg?.title as string) || '',
- disableTls: (cfg?.disableTls as boolean) ?? false,
- eventImageUpdate: events?.image_update ?? true,
- eventContainerUpdate: events?.container_update ?? true,
- eventVulnerabilityFound: events?.vulnerability_found ?? true,
- eventPruneReport: events?.prune_report ?? true,
- eventAutoHeal: events?.auto_heal ?? true
+ host: getString(cfg, 'host'),
+ port: getNumber(cfg, 'port', 0),
+ token: getString(cfg, 'token'),
+ path: getString(cfg, 'path'),
+ priority: Number(cfg['priority'] ?? 0),
+ title: getString(cfg, 'title'),
+ disableTls: getBoolean(cfg, 'disableTls', false),
+ ...eventFlagsToFormValues(events)
};
}
export function matrixSettingsToFormValues(settings?: NotificationSettings): MatrixFormValues {
- const cfg = (settings?.config ?? {}) as Record<string, unknown>;
- const events = (cfg?.events ?? {}) as Record<string, boolean>;
+ const cfg = getConfig(settings);
+ const events = getEvents(cfg);
return {
enabled: settings?.enabled ?? false,
- host: (cfg?.host as string) || '',
- port: (cfg?.port as number) || 0,
- rooms: (cfg?.rooms as string) || '',
- username: (cfg?.username as string) || '',
- password: (cfg?.password as string) || '',
- disableTlsVerification: (cfg?.disableTlsVerification as boolean) ?? false,
- eventImageUpdate: events?.image_update ?? true,
- eventContainerUpdate: events?.container_update ?? true,
- eventVulnerabilityFound: events?.vulnerability_found ?? true,
- eventPruneReport: events?.prune_report ?? true,
- eventAutoHeal: events?.auto_heal ?? true
+ host: getString(cfg, 'host'),
+ port: getNumber(cfg, 'port', 0),
+ rooms: getString(cfg, 'rooms'),
+ username: getString(cfg, 'username'),
+ password: getString(cfg, 'password'),
+ disableTlsVerification: getBoolean(cfg, 'disableTlsVerification', false),
+ ...eventFlagsToFormValues(events)
};
}
export function genericSettingsToFormValues(settings?: NotificationSettings): GenericFormValues {
- const cfg = (settings?.config ?? {}) as Record<string, unknown>;
- const events = (cfg?.events ?? {}) as Record<string, boolean>;
- const customHeaders = (cfg?.customHeaders ?? {}) as Record<string, string>;
+ const cfg = getConfig(settings);
+ const events = getEvents(cfg);
+ const customHeaders = getStringRecord(cfg, 'customHeaders');
// Convert customHeaders object to string format (key1:value1, key2:value2)
const customHeadersStr = Object.entries(customHeaders)
@@ -487,17 +507,13 @@ export function genericSettingsToFormValues(settings?: NotificationSettings): Ge
return {
enabled: settings?.enabled ?? false,
- webhookUrl: (cfg?.webhookUrl as string) || '',
- method: (cfg?.method as string) || 'POST',
- contentType: (cfg?.contentType as string) || 'application/json',
- titleKey: (cfg?.titleKey as string) || 'title',
- messageKey: (cfg?.messageKey as string) || 'message',
+ webhookUrl: getString(cfg, 'webhookUrl'),
+ method: getString(cfg, 'method', 'POST'),
+ contentType: getString(cfg, 'contentType', 'application/json'),
+ titleKey: getString(cfg, 'titleKey', 'title'),
+ messageKey: getString(cfg, 'messageKey', 'message'),
customHeaders: customHeadersStr,
- eventImageUpdate: events?.image_update ?? true,
- eventContainerUpdate: events?.container_update ?? true,
- eventVulnerabilityFound: events?.vulnerability_found ?? true,
- eventPruneReport: events?.prune_report ?? true,
- eventAutoHeal: events?.auto_heal ?? true
+ ...eventFlagsToFormValues(events)
};
}
diff --git a/frontend/src/lib/utils/accent-color-util.ts b/frontend/src/lib/utils/accent-color-util.ts
index d4b835970..6543dbc71 100644
--- a/frontend/src/lib/utils/accent-color-util.ts
+++ b/frontend/src/lib/utils/accent-color-util.ts
@@ -55,7 +55,9 @@ function getColorBrightness(color: string): number {
return 0.5;
}
- const [, r, g, b] = rgbMatch.map(Number);
+ const r = Number.parseInt(rgbMatch[1] ?? '0', 10);
+ const g = Number.parseInt(rgbMatch[2] ?? '0', 10);
+ const b = Number.parseInt(rgbMatch[3] ?? '0', 10);
// Calculate relative luminance using the standard formula
// https://www.w3.org/WAI/WCAG21/Understanding/contrast-minimum.html
diff --git a/frontend/src/lib/utils/bytes.ts b/frontend/src/lib/utils/bytes.ts
index 2d75b33ec..4ec5cf2e9 100644
--- a/frontend/src/lib/utils/bytes.ts
+++ b/frontend/src/lib/utils/bytes.ts
@@ -117,8 +117,14 @@ export function parse(val: string | number): number | null {
floatValue = Number.parseInt(val, 10);
unit = 'b';
} else {
- floatValue = Number.parseFloat(results[1]);
- unit = results[4].toLowerCase() as keyof typeof map;
+ const numericValue = results[1];
+ const matchedUnit = results[4];
+ if (!numericValue || !matchedUnit) {
+ return null;
+ }
+
+ floatValue = Number.parseFloat(numericValue);
+ unit = matchedUnit.toLowerCase() as keyof typeof map;
}
if (Number.isNaN(floatValue)) {
diff --git a/frontend/src/lib/utils/git.ts b/frontend/src/lib/utils/git.ts
index 4e68f329c..8115d9f6e 100644
--- a/frontend/src/lib/utils/git.ts
+++ b/frontend/src/lib/utils/git.ts
@@ -33,7 +33,10 @@ export function toGitWebUrl(raw: string): string | null {
const scpMatch = /^(?:.+@)?([^:\/]+):(.+)$/.exec(trimmed);
if (scpMatch) {
const host = scpMatch[1];
- const path = stripGitSuffix(scpMatch[2].replace(/^\/+/, ''));
+ const matchedPath = scpMatch[2];
+ if (!host || !matchedPath) return null;
+
+ const path = stripGitSuffix(matchedPath.replace(/^\/+/, ''));
if (!host || !path) return null;
return `https://${host}/${path}`;
}
@@ -41,7 +44,10 @@ export function toGitWebUrl(raw: string): string | null {
const hostPathMatch = /^([^\/]+)\/(.+)$/.exec(trimmed);
if (hostPathMatch) {
const host = hostPathMatch[1];
- const path = stripGitSuffix(hostPathMatch[2].replace(/^\/+/, ''));
+ const matchedPath = hostPathMatch[2];
+ if (!host || !matchedPath) return null;
+
+ const path = stripGitSuffix(matchedPath.replace(/^\/+/, ''));
if (!host || !path) return null;
return `https://${host}/${path}`;
}
diff --git a/frontend/src/lib/utils/keyboard-shortcut.utils.ts b/frontend/src/lib/utils/keyboard-shortcut.utils.ts
index ef588c1d0..6b75f1739 100644
--- a/frontend/src/lib/utils/keyboard-shortcut.utils.ts
+++ b/frontend/src/lib/utils/keyboard-shortcut.utils.ts
@@ -41,12 +41,15 @@ export function matchesShortcutEvent(keys: ShortcutKey[], event: KeyboardEvent,
const key = event.key.toLowerCase();
if (MODIFIER_KEYS.has(key)) return false;
- const expectedCode = getExpectedCode(nonModifierKeys[0]);
+ const primaryKey = nonModifierKeys[0];
+ if (!primaryKey) return false;
+
+ const expectedCode = getExpectedCode(primaryKey);
if (expectedCode) {
return event.code.toLowerCase() === expectedCode;
}
- return key === nonModifierKeys[0];
+ return key === primaryKey;
}
export function isEditableTarget(target: EventTarget | null): boolean {
diff --git a/frontend/src/lib/utils/params.util.ts b/frontend/src/lib/utils/params.util.ts
index 3fa2b57cf..14c463e6d 100644
--- a/frontend/src/lib/utils/params.util.ts
+++ b/frontend/src/lib/utils/params.util.ts
@@ -6,18 +6,18 @@ export function transformPaginationParams(options?: SearchPaginationSortRequest)
if (!options) return params;
if (options.search) {
- params.search = options.search;
+ params['search'] = options.search;
}
if (options.pagination) {
const { page, limit } = options.pagination;
- params.start = Math.max(0, (page - 1) * limit);
- params.limit = limit;
+ params['start'] = Math.max(0, (page - 1) * limit);
+ params['limit'] = limit;
}
if (options.sort) {
- params.sort = options.sort.column;
- params.order = options.sort.direction;
+ params['sort'] = options.sort.column;
+ params['order'] = options.sort.direction;
}
if (options.filters) {
@@ -31,7 +31,7 @@ export function transformPaginationParams(options?: SearchPaginationSortRequest)
}
if (typeof options.includeInternal === 'boolean') {
- params.includeInternal = String(options.includeInternal);
+ params['includeInternal'] = String(options.includeInternal);
}
return params;
diff --git a/frontend/src/lib/utils/pull-progress.ts b/frontend/src/lib/utils/pull-progress.ts
index 9456cc2d2..8cf008a17 100644
--- a/frontend/src/lib/utils/pull-progress.ts
+++ b/frontend/src/lib/utils/pull-progress.ts
@@ -73,11 +73,11 @@ export function isDownloadingLine(data: unknown): boolean {
if (!data || typeof data !== 'object') return false;
const obj = data as Record<string, unknown>;
- const status = String(obj?.status ?? '').toLowerCase();
- const pd = obj?.progressDetail as Record<string, unknown> | undefined;
+ const status = String(obj['status'] ?? '').toLowerCase();
+ const pd = obj['progressDetail'] as Record<string, unknown> | undefined;
// Open if we see byte progress or any of the common pull statuses
- if (pd && (typeof pd.total === 'number' || typeof pd.current === 'number')) return true;
+ if (pd && (typeof pd['total'] === 'number' || typeof pd['current'] === 'number')) return true;
return (
status.includes('downloading') ||
@@ -178,12 +178,12 @@ export function extractErrorMessage(data: unknown, fallbackMessage: string): str
if (!data || typeof data !== 'object') return fallbackMessage;
const obj = data as Record<string, unknown>;
- if (!obj.error) return '';
+ if (!obj['error']) return '';
- if (typeof obj.error === 'string') return obj.error;
- if (typeof obj.error === 'object' && obj.error !== null) {
- const errObj = obj.error as Record<string, unknown>;
- if (typeof errObj.message === 'string') return errObj.message;
+ if (typeof obj['error'] === 'string') return obj['error'];
+ if (typeof obj['error'] === 'object' && obj['error'] !== null) {
+ const errObj = obj['error'] as Record<string, unknown>;
+ if (typeof errObj['message'] === 'string') return errObj['message'];
}
return fallbackMessage;
@@ -196,20 +196,20 @@ export function updateLayerFromStreamData(layers: Record<string, LayerProgress>,
if (!data || typeof data !== 'object') return layers;
const obj = data as Record<string, unknown>;
- const id = obj.id as string | undefined;
+ const id = obj['id'] as string | undefined;
if (!id) return layers;
const currentLayer = layers[id] || { current: 0, total: 0, status: '' };
- const status = obj.status as string | undefined;
+ const status = obj['status'] as string | undefined;
if (status) {
currentLayer.status = status;
}
- const progressDetail = obj.progressDetail as Record<string, unknown> | undefined;
+ const progressDetail = obj['progressDetail'] as Record<string, unknown> | undefined;
if (progressDetail) {
- const current = progressDetail.current as number | undefined;
- const total = progressDetail.total as number | undefined;
+ const current = progressDetail['current'] as number | undefined;
+ const total = progressDetail['total'] as number | undefined;
if (typeof current === 'number') currentLayer.current = current;
if (typeof total === 'number') currentLayer.total = total;
}
@@ -249,8 +249,8 @@ export function createPullStreamHandler(callbacks: {
// Update status text
const obj = data as Record<string, unknown>;
- if (obj.status && typeof obj.status === 'string') {
- callbacks.onStatusChange(obj.status);
+ if (obj['status'] && typeof obj['status'] === 'string') {
+ callbacks.onStatusChange(obj['status']);
}
// Update layer progress
diff --git a/frontend/src/lib/utils/refresh.util.ts b/frontend/src/lib/utils/refresh.util.ts
index 935376b7f..4a98b4f55 100644
--- a/frontend/src/lib/utils/refresh.util.ts
+++ b/frontend/src/lib/utils/refresh.util.ts
@@ -31,7 +31,9 @@ export async function parallelRefresh<T extends Record<string, RefreshTask<any>>
await Promise.all(
taskKeys.map(async (key) => {
- const task = tasks[key];
+ const task = tasks[key as keyof T];
+ if (!task) return;
+
handleApiResultWithCallbacks({
result: await tryCatch(task.fetch()),
message: task.errorMessage,
diff --git a/frontend/src/routes/(app)/settings/users/+page.svelte b/frontend/src/routes/(app)/settings/users/+page.svelte
index 055782db8..afa885a71 100644
--- a/frontend/src/routes/(app)/settings/users/+page.svelte
+++ b/frontend/src/routes/(app)/settings/users/+page.svelte
@@ -135,18 +135,11 @@
{/snippet}
{#snippet additionalContent()}
- <UserFormSheet
- bind:open={isDialogOpen.create}
- userToEdit={null}
- roles={[]}
- onSubmit={handleUserSubmit}
- isLoading={isLoading.creating}
- />
+ <UserFormSheet bind:open={isDialogOpen.create} userToEdit={null} onSubmit={handleUserSubmit} isLoading={isLoading.creating} />
<UserFormSheet
bind:open={isDialogOpen.edit}
{userToEdit}
- roles={[]}
onSubmit={handleUserSubmit}
isLoading={isLoading.editing}
allowUsernameEdit={true}
diff --git a/frontend/src/routes/+layout.svelte b/frontend/src/routes/+layout.svelte
index 56f443cb1..12d5411ef 100644
--- a/frontend/src/routes/+layout.svelte
+++ b/frontend/src/routes/+layout.svelte
@@ -17,18 +17,10 @@
import { QueryClientProvider } from '@tanstack/svelte-query';
import { SvelteQueryDevtools } from '@tanstack/svelte-query-devtools';
import { ModeWatcher } from 'mode-watcher';
- import type { Snippet } from 'svelte';
import { onMount } from 'svelte';
import '../app.css';
- import type { LayoutData } from './$types';
- let {
- data,
- children
- }: {
- data: LayoutData;
- children: Snippet;
- } = $props();
+ let { data, children }: LayoutProps = $props();
onMount(() => {
if (!dev && browser && 'serviceWorker' in navigator) {
diff --git a/frontend/tsconfig.json b/frontend/tsconfig.json
index 59ae35763..16f446261 100644
--- a/frontend/tsconfig.json
+++ b/frontend/tsconfig.json
@@ -11,6 +11,14 @@
"skipLibCheck": true,
"sourceMap": false,
"strict": true,
+ "noUnusedLocals": true,
+ "noUnusedParameters": true,
+ "allowUnusedLabels": false,
+ "noUncheckedSideEffectImports": true,
+ "noFallthroughCasesInSwitch": true,
+ "allowUnreachableCode": false,
+ "noUncheckedIndexedAccess": true,
+ "noPropertyAccessFromIndexSignature": true,
"moduleResolution": "bundler",
"types": ["unplugin-icons/types/svelte"]
}
diff --git a/frontend/vite.config.ts b/frontend/vite.config.ts
index dcc86dfd3..c0462618e 100644
--- a/frontend/vite.config.ts
+++ b/frontend/vite.config.ts
@@ -25,10 +25,10 @@ export default defineConfig({
target: 'es2022'
},
server: {
- host: process.env.HOST,
+ host: process.env['HOST'],
proxy: {
'/api': {
- target: process.env.DEV_BACKEND_URL || 'http://localhost:3552',
+ target: process.env['DEV_BACKEND_URL'] || 'http://localhost:3552',
changeOrigin: true,
ws: true
}
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index c2dca8b66..41dfed940 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -97,10 +97,10 @@ importers:
version: 1.2.3
'@sveltejs/adapter-static':
specifier: ^3.0.10
'@sveltejs/kit':
specifier: ^2.55.0
'@tanstack/svelte-query':
specifier: ^6.1.7
version: 6.1.7([email protected])
@@ -176,7 +176,7 @@ importers:
'@tanstack/eslint-plugin-query':
specifier: ^5.91.4
'@tanstack/svelte-query-devtools':
specifier: ^6.0.4
@@ -191,13 +191,13 @@ importers:
version: 7.0.0-dev.20260322.1
bits-ui:
specifier: ^2.16.3
clsx:
specifier: ^2.1.1
version: 2.1.1
formsnap:
specifier: ^2.0.1
isomorphic-dompurify:
specifier: ^3.3.0
version: 3.3.0
@@ -212,10 +212,10 @@ importers:
version: 1.0.2([email protected])
runed:
specifier: ^0.37.1
svelte-check:
specifier: ^4.4.5
svelte-check-rs:
specifier: ^0.9.6
version: 0.9.6(@typescript/[email protected])
@@ -224,10 +224,10 @@ importers:
version: 1.1.0([email protected])
svelte-toolbelt:
specifier: ^0.10.6
sveltekit-superforms:
specifier: ^2.30.0
tailwind-merge:
specifier: ^3.5.0
version: 3.5.0
@@ -244,8 +244,8 @@ importers:
specifier: ^1.4.0
version: 1.4.0
typescript:
- specifier: ^5.9.3
- version: 5.9.3
+ specifier: ^6.0.2
+ version: 6.0.2
unplugin-icons:
specifier: ^23.0.1
version: 23.0.1([email protected])
@@ -4239,8 +4239,8 @@ packages:
resolution: {integrity: sha512-O2iWCF+RboQfDqr6n83eOq0dKCjVchMWklKgdwKFeR01MGTskILHYEFi9n3lQvfuua4CtvG/EJEIg3P8H9eBcw==}
- resolution: {integrity: sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==}
+ resolution: {integrity: sha512-bGdAIrZ0wiGDo5l8c++HWtbaNCWTS4UTv7RaTH/ThVIgjkveJt83m74bBHMJkuCbslY8ixgLBVZJIOiQlQTjfQ==}
engines: {node: '>=14.17'}
hasBin: true
@@ -5775,11 +5775,11 @@ snapshots:
dependencies:
acorn: 8.16.0
dependencies:
dependencies:
'@standard-schema/spec': 1.1.0
'@sveltejs/acorn-typescript': 1.0.9([email protected])
@@ -5797,7 +5797,7 @@ snapshots:
svelte: 5.54.1
optionalDependencies:
- typescript: 5.9.3
+ typescript: 6.0.2
dependencies:
@@ -5884,12 +5884,12 @@ snapshots:
tailwindcss: 4.2.2
dependencies:
- '@typescript-eslint/utils': 8.57.0([email protected]([email protected]))([email protected])
+ '@typescript-eslint/utils': 8.57.0([email protected]([email protected]))([email protected])
eslint: 9.39.2([email protected])
optionalDependencies:
- typescript: 5.9.3
+ typescript: 6.0.2
transitivePeerDependencies:
- supports-color
@@ -5970,12 +5970,12 @@ snapshots:
'@types/json-schema': 7.0.15
optional: true
- '@typescript-eslint/[email protected]([email protected])':
+ '@typescript-eslint/[email protected]([email protected])':
dependencies:
- '@typescript-eslint/tsconfig-utils': 8.57.0([email protected])
+ '@typescript-eslint/tsconfig-utils': 8.57.0([email protected])
'@typescript-eslint/types': 8.57.1
debug: 4.4.3
- typescript: 5.9.3
+ typescript: 6.0.2
transitivePeerDependencies:
- supports-color
@@ -5984,37 +5984,37 @@ snapshots:
'@typescript-eslint/types': 8.57.0
'@typescript-eslint/visitor-keys': 8.57.0
- '@typescript-eslint/[email protected]([email protected])':
+ '@typescript-eslint/[email protected]([email protected])':
dependencies:
- typescript: 5.9.3
+ typescript: 6.0.2
'@typescript-eslint/[email protected]': {}
'@typescript-eslint/[email protected]': {}
- '@typescript-eslint/[email protected]([email protected])':
+ '@typescript-eslint/[email protected]([email protected])':
dependencies:
- '@typescript-eslint/project-service': 8.57.0([email protected])
- '@typescript-eslint/tsconfig-utils': 8.57.0([email protected])
+ '@typescript-eslint/project-service': 8.57.0([email protected])
+ '@typescript-eslint/tsconfig-utils': 8.57.0([email protected])
'@typescript-eslint/types': 8.57.0
'@typescript-eslint/visitor-keys': 8.57.0
debug: 4.4.3
minimatch: 10.2.4
semver: 7.7.4
tinyglobby: 0.2.15
- ts-api-utils: 2.4.0([email protected])
- typescript: 5.9.3
+ ts-api-utils: 2.4.0([email protected])
+ typescript: 6.0.2
transitivePeerDependencies:
- supports-color
dependencies:
'@eslint-community/eslint-utils': 4.9.1([email protected]([email protected]))
'@typescript-eslint/scope-manager': 8.57.0
'@typescript-eslint/types': 8.57.0
- '@typescript-eslint/typescript-estree': 8.57.0([email protected])
+ '@typescript-eslint/typescript-estree': 8.57.0([email protected])
eslint: 9.39.2([email protected])
- typescript: 5.9.3
+ typescript: 6.0.2
transitivePeerDependencies:
- supports-color
@@ -6060,9 +6060,9 @@ snapshots:
'@codemirror/state': 6.6.0
'@codemirror/view': 6.40.0
dependencies:
- valibot: 1.2.0([email protected])
+ valibot: 1.2.0([email protected])
optional: true
'@vinejs/[email protected]':
@@ -6169,15 +6169,15 @@ snapshots:
dependencies:
require-from-string: 2.0.2
dependencies:
'@floating-ui/core': 1.7.5
'@floating-ui/dom': 1.7.6
'@internationalized/date': 3.12.0
esm-env: 1.2.2
svelte: 5.54.1
tabbable: 6.4.0
transitivePeerDependencies:
- '@sveltejs/kit'
@@ -6741,11 +6741,11 @@ snapshots:
dependencies:
fd-package-json: 2.0.0
dependencies:
svelte: 5.54.1
svelte-toolbelt: 0.5.0([email protected])
dependencies:
@@ -7566,23 +7566,23 @@ snapshots:
esm-env: 1.2.2
svelte: 5.54.1
dependencies:
dequal: 2.0.3
esm-env: 1.2.2
lz-string: 1.5.0
svelte: 5.54.1
optionalDependencies:
dependencies:
dequal: 2.0.3
esm-env: 1.2.2
lz-string: 1.5.0
svelte: 5.54.1
optionalDependencies:
zod: 4.3.6
@@ -7777,7 +7777,7 @@ snapshots:
'@svelte-check-rs/linux-x64': 0.9.6
'@svelte-check-rs/win32-x64': 0.9.6
dependencies:
'@jridgewell/trace-mapping': 0.3.31
chokidar: 4.0.3
@@ -7785,7 +7785,7 @@ snapshots:
picocolors: 1.1.1
sade: 1.8.1
svelte: 5.54.1
- typescript: 5.9.3
+ typescript: 6.0.2
transitivePeerDependencies:
- picomatch
@@ -7808,10 +7808,10 @@ snapshots:
runed: 0.28.0([email protected])
svelte: 5.54.1
dependencies:
clsx: 2.1.1
style-to-object: 1.0.14
svelte: 5.54.1
transitivePeerDependencies:
@@ -7856,9 +7856,9 @@ snapshots:
magic-string: 0.30.21
zimmerframe: 1.1.4
dependencies:
devalue: 5.6.4
memoize-weak: 1.0.2
svelte: 5.54.1
@@ -7867,7 +7867,7 @@ snapshots:
'@exodus/schemasafe': 1.3.0
'@standard-schema/spec': 1.1.0
'@typeschema/class-validator': 0.3.0(@types/[email protected])([email protected])
- '@valibot/to-json-schema': 1.5.0([email protected]([email protected]))
+ '@valibot/to-json-schema': 1.5.0([email protected]([email protected]))
'@vinejs/vine': 3.0.1
arktype: 2.2.0
class-validator: 0.14.4
@@ -7876,7 +7876,7 @@ snapshots:
json-schema-to-ts: 3.1.1
superstruct: 2.0.2
typebox: 1.1.6
- valibot: 1.2.0([email protected])
+ valibot: 1.2.0([email protected])
yup: 1.7.1
zod: 4.3.6
zod-v3-to-json-schema: 4.0.0([email protected])
@@ -7950,9 +7950,9 @@ snapshots:
optional: true
dependencies:
- typescript: 5.9.3
+ typescript: 6.0.2
@@ -7989,7 +7989,7 @@ snapshots:
optional: true
@@ -8026,9 +8026,9 @@ snapshots:
optionalDependencies:
- typescript: 5.9.3
+ typescript: 6.0.2
optional: true