style: format code biome
Local Build and Deploy / deploy (push) Failing after 46s

This commit is contained in:
openhands committed 2026-07-13 21:57:41 +02:00
1 parent 8efd032cc6
commit df38dccbf1
735 files changed
+128321 -120870

No files matched your search

+40 -38
View File
@@ -3,46 +3,48 @@ import { PERMS } from "@/lib/permissions";
import { OnlineTable } from "./online-table";
export default async function OnlineUsersPage({
params: paramsPromise,
searchParams,
params: paramsPromise,
searchParams,
}: {
params: Promise<{ locale: string }>;
searchParams: Promise<Record<string, string>>;
params: Promise<{ locale: string }>;
searchParams: Promise<Record<string, string>>;
}) {
const result = await fetchAdminList(
{
permission: PERMS.USERS_VIEW,
model: "user",
searchFields: ["username", "motto"],
baseWhere: { online: "1" },
defaultPerPage: 50,
select: {
id: true,
username: true,
motto: true,
look: true,
},
},
paramsPromise,
searchParams,
);
const result = await fetchAdminList(
{
permission: PERMS.USERS_VIEW,
model: "user",
searchFields: ["username", "motto"],
baseWhere: { online: "1" },
defaultPerPage: 50,
select: {
id: true,
username: true,
motto: true,
look: true,
},
},
paramsPromise,
searchParams,
);
return (
<div className="space-y-6">
<div>
<h1 className="text-3xl font-bold tracking-tight">Online Users</h1>
<p className="text-muted-foreground">Currently online users ({result.total} connected)</p>
</div>
return (
<div className="space-y-6">
<div>
<h1 className="text-3xl font-bold tracking-tight">Online Users</h1>
<p className="text-muted-foreground">
Currently online users ({result.total} connected)
</p>
</div>
<OnlineTable
data={{
rows: result.rows,
total: result.total,
page: result.page,
perPage: result.perPage,
lastPage: result.lastPage,
}}
/>
</div>
);
<OnlineTable
data={{
rows: result.rows,
total: result.total,
page: result.page,
perPage: result.perPage,
lastPage: result.lastPage,
}}
/>
</div>
);
}