Skip to content

Modern Docker Management, Designed for Everyone

chore: run formatter, update prettier ignored paths

Kyle Mendellaa0fe35358b9
diff --git a/frontend/.prettierignore b/frontend/.prettierignore
index 9ad56c287..34bf0b5c5 100644
--- a/frontend/.prettierignore
+++ b/frontend/.prettierignore
@@ -5,4 +5,13 @@ yarn.lock
# Compiled files
.svelte-kit/
-build/
\ No newline at end of file
+build/
+backend/frontend/dist/**
+
+# Paraglide
+frontend/messages/
+messages/
+frontend/project.inlang
+project.inlang/
+frontend/src/lib/paraglide/**
+src/lib/paraglide/**
diff --git a/frontend/src/lib/components/sidebar/sidebar.svelte b/frontend/src/lib/components/sidebar/sidebar.svelte
index 3446c9732..cf78ca4aa 100644
--- a/frontend/src/lib/components/sidebar/sidebar.svelte
+++ b/frontend/src/lib/components/sidebar/sidebar.svelte
@@ -102,12 +102,7 @@
{/if}
</Sidebar.Content>
<Sidebar.Footer>
- <SidebarUpdatebanner
- {isCollapsed}
- {versionInformation}
- user={effectiveUser}
- debug={false}
- />
+ <SidebarUpdatebanner {isCollapsed} {versionInformation} user={effectiveUser} debug={false} />
{#if effectiveUser}
{#if isCollapsed}
<div class="px-0 pb-2">
diff --git a/frontend/src/lib/components/ui/kbd/index.ts b/frontend/src/lib/components/ui/kbd/index.ts
index 6aa7f0757..8881fc5cb 100644
--- a/frontend/src/lib/components/ui/kbd/index.ts
+++ b/frontend/src/lib/components/ui/kbd/index.ts
@@ -1,10 +1,10 @@
-import Root from "./kbd.svelte";
-import Group from "./kbd-group.svelte";
+import Root from './kbd.svelte';
+import Group from './kbd-group.svelte';
export {
Root,
Group,
//
Root as Kbd,
- Group as KbdGroup,
+ Group as KbdGroup
};
diff --git a/frontend/src/lib/components/ui/kbd/kbd-group.svelte b/frontend/src/lib/components/ui/kbd/kbd-group.svelte
index 61447a52d..0c3f80ae0 100644
--- a/frontend/src/lib/components/ui/kbd/kbd-group.svelte
+++ b/frontend/src/lib/components/ui/kbd/kbd-group.svelte
@@ -1,20 +1,10 @@
<script lang="ts">
- import { cn, type WithElementRef } from "$lib/utils.js";
- import type { HTMLAttributes } from "svelte/elements";
+ import { cn, type WithElementRef } from '$lib/utils.js';
+ import type { HTMLAttributes } from 'svelte/elements';
- let {
- ref = $bindable(null),
- class: className,
- children,
- ...restProps
- }: WithElementRef<HTMLAttributes<HTMLElement>> = $props();
+ let { ref = $bindable(null), class: className, children, ...restProps }: WithElementRef<HTMLAttributes<HTMLElement>> = $props();
</script>
-<kbd
- bind:this={ref}
- data-slot="kbd-group"
- class={cn("inline-flex items-center gap-1", className)}
- {...restProps}
->
+<kbd bind:this={ref} data-slot="kbd-group" class={cn('inline-flex items-center gap-1', className)} {...restProps}>
{@render children?.()}
</kbd>
diff --git a/frontend/src/lib/components/ui/kbd/kbd.svelte b/frontend/src/lib/components/ui/kbd/kbd.svelte
index 7655eb8e4..7332ebc9c 100644
--- a/frontend/src/lib/components/ui/kbd/kbd.svelte
+++ b/frontend/src/lib/components/ui/kbd/kbd.svelte
@@ -1,22 +1,17 @@
<script lang="ts">
- import { cn, type WithElementRef } from "$lib/utils.js";
- import type { HTMLAttributes } from "svelte/elements";
+ import { cn, type WithElementRef } from '$lib/utils.js';
+ import type { HTMLAttributes } from 'svelte/elements';
- let {
- ref = $bindable(null),
- class: className,
- children,
- ...restProps
- }: WithElementRef<HTMLAttributes<HTMLElement>> = $props();
+ let { ref = $bindable(null), class: className, children, ...restProps }: WithElementRef<HTMLAttributes<HTMLElement>> = $props();
</script>
<kbd
bind:this={ref}
data-slot="kbd"
class={cn(
- "bg-muted text-muted-foreground pointer-events-none inline-flex h-5 w-fit min-w-5 items-center justify-center gap-1 rounded-sm px-1 font-sans text-xs font-medium select-none",
+ 'bg-muted text-muted-foreground pointer-events-none inline-flex h-5 w-fit min-w-5 items-center justify-center gap-1 rounded-sm px-1 font-sans text-xs font-medium select-none',
"[&_svg:not([class*='size-'])]:size-3",
- "[[data-slot=tooltip-content]_&]:bg-background/20 [[data-slot=tooltip-content]_&]:text-background dark:[[data-slot=tooltip-content]_&]:bg-background/10",
+ '[[data-slot=tooltip-content]_&]:bg-background/20 [[data-slot=tooltip-content]_&]:text-background dark:[[data-slot=tooltip-content]_&]:bg-background/10',
className
)}
{...restProps}
diff --git a/frontend/src/lib/config/navigation-config.ts b/frontend/src/lib/config/navigation-config.ts
index c30dfb349..df8183328 100644
--- a/frontend/src/lib/config/navigation-config.ts
+++ b/frontend/src/lib/config/navigation-config.ts
@@ -56,7 +56,12 @@ export const navigationItems: Record<string, NavigationItem[]> = {
items: [
{ title: m.api_key_page_title(), url: '/settings/api-keys', icon: ApiKeyIcon, shortcut: ['mod', 'shift', '1'] },
{ title: m.appearance_title(), url: '/settings/appearance', icon: ApperanceIcon, shortcut: ['mod', 'shift', '2'] },
- { title: m.notifications_title(), url: '/settings/notifications', icon: NotificationsIcon, shortcut: ['mod', 'shift', '3'] },
+ {
+ title: m.notifications_title(),
+ url: '/settings/notifications',
+ icon: NotificationsIcon,
+ shortcut: ['mod', 'shift', '3']
+ },
{ title: m.security_title(), url: '/settings/security', icon: SecurityIcon, shortcut: ['mod', 'shift', '4'] },
{ title: m.users_title(), url: '/settings/users', icon: UsersIcon, shortcut: ['mod', 'shift', '5'] }
]
diff --git a/frontend/src/lib/services/volume-backup-service.ts b/frontend/src/lib/services/volume-backup-service.ts
index a431c351a..950b783dc 100644
--- a/frontend/src/lib/services/volume-backup-service.ts
+++ b/frontend/src/lib/services/volume-backup-service.ts
@@ -22,9 +22,7 @@ export class VolumeBackupService extends BaseAPIService {
async restoreBackup(volumeName: string, backupId: string): Promise<void> {
const envId = await environmentStore.getCurrentEnvironmentId();
- return this.handleResponse(
- this.api.post(`/environments/${envId}/volumes/${volumeName}/backups/${backupId}/restore`)
- );
+ return this.handleResponse(this.api.post(`/environments/${envId}/volumes/${volumeName}/backups/${backupId}/restore`));
}
async restoreBackupFiles(volumeName: string, backupId: string, paths: string[]): Promise<void> {
diff --git a/frontend/src/lib/utils/pull-progress.ts b/frontend/src/lib/utils/pull-progress.ts
index 645b0e788..9456cc2d2 100644
--- a/frontend/src/lib/utils/pull-progress.ts
+++ b/frontend/src/lib/utils/pull-progress.ts
@@ -266,11 +266,7 @@ export function createPullStreamHandler(callbacks: {
/**
* Returns a computed aggregate status string based on all layers
*/
-export function getAggregateStatus(
- layers: Record<string, LayerProgress>,
- fallbackStatus = '',
- isComplete = false
-): string {
+export function getAggregateStatus(layers: Record<string, LayerProgress>, fallbackStatus = '', isComplete = false): string {
if (isComplete) return 'Pull complete';
const entries = Object.values(layers);
@@ -296,11 +292,7 @@ export function getAggregateStatus(
/**
* Returns an aggregate PullPhase for phase-based title system
*/
-export function getAggregatePullPhase(
- layers: Record<string, LayerProgress>,
- isComplete = false,
- hasError = false
-): PullPhase {
+export function getAggregatePullPhase(layers: Record<string, LayerProgress>, isComplete = false, hasError = false): PullPhase {
if (hasError) return 'error';
if (isComplete) return 'complete';
diff --git a/frontend/src/routes/(app)/volumes/components/volume-backup-table.svelte b/frontend/src/routes/(app)/volumes/components/volume-backup-table.svelte
index 918b215ab..f09cf5181 100644
--- a/frontend/src/routes/(app)/volumes/components/volume-backup-table.svelte
+++ b/frontend/src/routes/(app)/volumes/components/volume-backup-table.svelte
@@ -1,5 +1,5 @@
<script lang="ts">
-import { volumeBackupService, type VolumeBackupListResponse } from '$lib/services/volume-backup-service';
+ import { volumeBackupService, type VolumeBackupListResponse } from '$lib/services/volume-backup-service';
import { volumeService } from '$lib/services/volume-service';
import type { BackupEntry } from '$lib/types/file-browser.type';
import { onMount } from 'svelte';
@@ -22,7 +22,7 @@ import { volumeBackupService, type VolumeBackupListResponse } from '$lib/service
import bytes from 'bytes';
import { format } from 'date-fns';
import ArcaneTable from '$lib/components/arcane-table/arcane-table.svelte';
-import type { SearchPaginationSortRequest } from '$lib/types/pagination.type';
+ import type { SearchPaginationSortRequest } from '$lib/types/pagination.type';
import { UniversalMobileCard, type ColumnSpec, type MobileFieldVisibility } from '$lib/components/arcane-table';
import * as DropdownMenu from '$lib/components/ui/dropdown-menu';
import { openConfirmDialog } from '$lib/components/confirm-dialog';
@@ -34,16 +34,16 @@ import type { SearchPaginationSortRequest } from '$lib/types/pagination.type';
let { volumeName }: { volumeName: string } = $props();
-let backupsPaginated = $state<VolumeBackupListResponse>({
- data: [],
- pagination: {
- currentPage: 1,
- totalPages: 1,
- totalItems: 0,
- itemsPerPage: 10
- }
-});
-let backupWarnings = $state<string[]>([]);
+ let backupsPaginated = $state<VolumeBackupListResponse>({
+ data: [],
+ pagination: {
+ currentPage: 1,
+ totalPages: 1,
+ totalItems: 0,
+ itemsPerPage: 10
+ }
+ });
+ let backupWarnings = $state<string[]>([]);
let requestOptions = $state<SearchPaginationSortRequest>({
pagination: { page: 1, limit: 10 },