Skip to content

Commit 8599ddb

Browse files
committed
Updated prettier
1 parent a1691a3 commit 8599ddb

9 files changed

Lines changed: 48 additions & 61 deletions

File tree

resources/js/components/image-add-dialog.tsx

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,7 @@ interface Props {
1212
}
1313

1414
export default function ImageAddDialog({ open, setOpen }: Props) {
15-
const {
16-
searchComplete,
17-
validationError,
18-
remoteRepo,
19-
selectedBranch,
20-
setRemoteRepo,
21-
getFormAction,
22-
getFormData,
23-
handleFormSuccess,
24-
} = useRemotes(setOpen);
15+
const { searchComplete, validationError, remoteRepo, selectedBranch, setRemoteRepo, getFormAction, getFormData, handleFormSuccess } = useRemotes(setOpen);
2516

2617
return (
2718
<Dialog open={open} onOpenChange={setOpen}>

resources/js/hooks/use-deployments.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export function useDeployments() {
1717
});
1818
return response.data;
1919
} catch (error) {
20-
console.error((error as Error).message || "An unknown error occoured while retrieving deployments")
20+
console.error((error as Error).message || 'An unknown error occoured while retrieving deployments');
2121
}
2222
},
2323
staleTime: 5 * 60 * 1000,

resources/js/hooks/use-service-form.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ export function useServiceForm() {
397397
if (!currentBlueprint) return;
398398
await navigator.clipboard.writeText(blueprintFormat === 'yaml' ? yamlConfig : jsonConfig);
399399
} catch (error) {
400-
console.error((error as Error).message || "An unknown error occoured while retrieving blueprints")
400+
console.error((error as Error).message || 'An unknown error occoured while retrieving blueprints');
401401
}
402402
};
403403

resources/js/hooks/use-services.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,3 @@ export function useServices(projectId?: string) {
1818
isLoading: query.isLoading,
1919
};
2020
}
21-

resources/js/layouts/settings/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export default function SettingsLayout({ children }: PropsWithChildren) {
7171
</div>
7272
</div>
7373
<div className="mt-auto flex w-full justify-center">
74-
<p className="text-xs text-muted-foreground">Version {(version as string)}</p>
74+
<p className="text-xs text-muted-foreground">Version {version as string}</p>
7575
</div>
7676
</div>
7777
);

resources/js/lib/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ export function parseLog(raw: string): Log {
8888
};
8989
}
9090
} catch (error) {
91-
console.error((error as Error).message || "An unknown error occoured while parsing log")
91+
console.error((error as Error).message || 'An unknown error occoured while parsing log');
9292
}
9393

9494
return { id, message: raw, level_name: 'INFO' };

resources/js/pages/deployments/view-deployment.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@ export default function ViewDeployment() {
4242
try {
4343
if (!blueprint) return;
4444
await navigator.clipboard.writeText(blueprintFormat === 'yaml' ? yamlConfig : jsonConfig);
45-
} catch { return; }
45+
} catch {
46+
return;
47+
}
4648
};
4749

4850
return (

resources/js/pages/projects/services/index.tsx

Lines changed: 39 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -120,44 +120,44 @@ export default function Services() {
120120
<TableBody>
121121
{!isLoading
122122
? paginatedServices!.map((service) => (
123-
<TableRow key={service.id} className="h-16">
124-
<TableCell className="h-16 align-middle font-medium">{service.name}</TableCell>
125-
<TableCell className="h-16 align-middle">
126-
<StatusChip status={service.status} />
127-
</TableCell>
128-
<TableCell className="h-16 align-middle">
129-
<div className="flex items-center gap-2">
130-
{getRuntimeIcon(service.runtime)}
131-
<span>{service.runtime}</span>
132-
</div>
133-
</TableCell>
134-
<TableCell className="h-16 align-middle">{service.region}</TableCell>
135-
<TableCell className="h-16 w-[200px] text-right align-middle">
136-
{service.last_deployed instanceof Date
137-
? service.last_deployed.toLocaleString()
138-
: service.last_deployed}
139-
</TableCell>
140-
</TableRow>
141-
))
123+
<TableRow key={service.id} className="h-16">
124+
<TableCell className="h-16 align-middle font-medium">{service.name}</TableCell>
125+
<TableCell className="h-16 align-middle">
126+
<StatusChip status={service.status} />
127+
</TableCell>
128+
<TableCell className="h-16 align-middle">
129+
<div className="flex items-center gap-2">
130+
{getRuntimeIcon(service.runtime)}
131+
<span>{service.runtime}</span>
132+
</div>
133+
</TableCell>
134+
<TableCell className="h-16 align-middle">{service.region}</TableCell>
135+
<TableCell className="h-16 w-[200px] text-right align-middle">
136+
{service.last_deployed instanceof Date
137+
? service.last_deployed.toLocaleString()
138+
: service.last_deployed}
139+
</TableCell>
140+
</TableRow>
141+
))
142142
: Array.from({ length: 3 }).map((_, idx) => (
143-
<TableRow key={`skeleton-${idx}`} className="h-16">
144-
<TableCell className="h-16 max-w-[240px] overflow-hidden align-middle font-medium">
145-
<div className="h-4 w-32 animate-pulse rounded bg-muted" />
146-
</TableCell>
147-
<TableCell className="h-16 align-middle">
148-
<div className="h-4 w-16 animate-pulse rounded bg-muted" />
149-
</TableCell>
150-
<TableCell className="h-16 align-middle">
151-
<div className="h-4 w-20 animate-pulse rounded bg-muted" />
152-
</TableCell>
153-
<TableCell className="h-16 max-w-[320px] overflow-hidden align-middle">
154-
<div className="h-4 w-40 animate-pulse rounded bg-muted" />
155-
</TableCell>
156-
<TableCell className="h-16 w-[200px] overflow-hidden text-right align-middle">
157-
<div className="ml-auto h-4 w-24 animate-pulse rounded bg-muted" />
158-
</TableCell>
159-
</TableRow>
160-
))}
143+
<TableRow key={`skeleton-${idx}`} className="h-16">
144+
<TableCell className="h-16 max-w-[240px] overflow-hidden align-middle font-medium">
145+
<div className="h-4 w-32 animate-pulse rounded bg-muted" />
146+
</TableCell>
147+
<TableCell className="h-16 align-middle">
148+
<div className="h-4 w-16 animate-pulse rounded bg-muted" />
149+
</TableCell>
150+
<TableCell className="h-16 align-middle">
151+
<div className="h-4 w-20 animate-pulse rounded bg-muted" />
152+
</TableCell>
153+
<TableCell className="h-16 max-w-[320px] overflow-hidden align-middle">
154+
<div className="h-4 w-40 animate-pulse rounded bg-muted" />
155+
</TableCell>
156+
<TableCell className="h-16 w-[200px] overflow-hidden text-right align-middle">
157+
<div className="ml-auto h-4 w-24 animate-pulse rounded bg-muted" />
158+
</TableCell>
159+
</TableRow>
160+
))}
161161
</TableBody>
162162
</Table>
163163

@@ -166,8 +166,8 @@ export default function Services() {
166166
{(services ?? []).length === 0
167167
? 'No services found'
168168
: services!.length === 1
169-
? 'Showing 1 of 1 service'
170-
: `Showing ${startIndex + 1} to ${Math.min(endIndex, services?.length ?? 0)} of ${services?.length ?? 0} services`}{' '}
169+
? 'Showing 1 of 1 service'
170+
: `Showing ${startIndex + 1} to ${Math.min(endIndex, services?.length ?? 0)} of ${services?.length ?? 0} services`}{' '}
171171
</div>
172172
<div className="flex items-center space-x-2">
173173
<Button

resources/js/pages/settings/config.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,7 @@ export default function Config() {
7373
</TableHeader>
7474
<TableBody>
7575
{Object.entries(config || {}).map(([key, value]) => {
76-
const isSet =
77-
value !== null &&
78-
value !== undefined &&
79-
value !== '' &&
80-
value !== false &&
81-
value !== 0;
76+
const isSet = value !== null && value !== undefined && value !== '' && value !== false && value !== 0;
8277

8378
let lastUpdated: string | null = null;
8479
if (isSet) {

0 commit comments

Comments
 (0)