chore: lint and format
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -76,9 +76,7 @@ builder.queryField("adminQueueJobs", (t) =>
|
|||||||
|
|
||||||
const limit = args.limit ?? 25;
|
const limit = args.limit ?? 25;
|
||||||
const offset = args.offset ?? 0;
|
const offset = args.offset ?? 0;
|
||||||
const statuses: JobStatus[] = args.status
|
const statuses: JobStatus[] = args.status ? [args.status as JobStatus] : [...JOB_STATUSES];
|
||||||
? [args.status as JobStatus]
|
|
||||||
: [...JOB_STATUSES];
|
|
||||||
|
|
||||||
const jobs = await queue.getJobs(statuses, offset, offset + limit - 1);
|
const jobs = await queue.getJobs(statuses, offset, offset + limit - 1);
|
||||||
return Promise.all(jobs.map((job) => toJobData(job, args.queue)));
|
return Promise.all(jobs.map((job) => toJobData(job, args.queue)));
|
||||||
|
|||||||
@@ -11,12 +11,12 @@
|
|||||||
} from "$lib/services";
|
} from "$lib/services";
|
||||||
import { Button } from "$lib/components/ui/button";
|
import { Button } from "$lib/components/ui/button";
|
||||||
import { Badge } from "$lib/components/ui/badge";
|
import { Badge } from "$lib/components/ui/badge";
|
||||||
import type { Job, QueueInfo } from "$lib/services";
|
import type { Job } from "$lib/services";
|
||||||
|
|
||||||
const { data } = $props();
|
const { data } = $props();
|
||||||
|
|
||||||
const queues = $derived(data.queues);
|
const queues = $derived(data.queues);
|
||||||
// eslint-disable-next-line svelte/no-unnecessary-state-wrap -- selectedQueue is user-controlled state, only seeded from initial data
|
|
||||||
let selectedQueue = $state<string | null>(queues[0]?.name ?? null);
|
let selectedQueue = $state<string | null>(queues[0]?.name ?? null);
|
||||||
let selectedStatus = $state<string | null>(null);
|
let selectedStatus = $state<string | null>(null);
|
||||||
let jobs = $state<Job[]>([]);
|
let jobs = $state<Job[]>([]);
|
||||||
@@ -214,14 +214,10 @@
|
|||||||
<th class="px-4 py-3 text-left font-medium text-muted-foreground"
|
<th class="px-4 py-3 text-left font-medium text-muted-foreground"
|
||||||
>{$_("admin.queues.col_status")}</th
|
>{$_("admin.queues.col_status")}</th
|
||||||
>
|
>
|
||||||
<th
|
<th class="px-4 py-3 text-left font-medium text-muted-foreground hidden md:table-cell">
|
||||||
class="px-4 py-3 text-left font-medium text-muted-foreground hidden md:table-cell"
|
|
||||||
>
|
|
||||||
{$_("admin.queues.col_attempts")}
|
{$_("admin.queues.col_attempts")}
|
||||||
</th>
|
</th>
|
||||||
<th
|
<th class="px-4 py-3 text-left font-medium text-muted-foreground hidden lg:table-cell">
|
||||||
class="px-4 py-3 text-left font-medium text-muted-foreground hidden lg:table-cell"
|
|
||||||
>
|
|
||||||
{$_("admin.queues.col_created")}
|
{$_("admin.queues.col_created")}
|
||||||
</th>
|
</th>
|
||||||
<th class="px-4 py-3 text-right font-medium text-muted-foreground"
|
<th class="px-4 py-3 text-right font-medium text-muted-foreground"
|
||||||
|
|||||||
Reference in New Issue
Block a user