mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-04-25 00:51:20 +00:00
chore: layout
This commit is contained in:
parent
fc21c14206
commit
d8d4ef4e20
1 changed files with 72 additions and 68 deletions
|
|
@ -12,6 +12,7 @@ import {
|
||||||
RotateCw,
|
RotateCw,
|
||||||
Wifi,
|
Wifi,
|
||||||
WifiOff,
|
WifiOff,
|
||||||
|
Wrench,
|
||||||
X,
|
X,
|
||||||
} from "lucide-react";
|
} from "lucide-react";
|
||||||
import { Cell, Grid } from "@nous-research/ui";
|
import { Cell, Grid } from "@nous-research/ui";
|
||||||
|
|
@ -265,7 +266,7 @@ export default function StatusPage() {
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
<Grid className="border-b lg:!grid-cols-3">
|
<Grid className="border-b md:!grid-cols-2 lg:!grid-cols-4">
|
||||||
{items.map(({ icon: Icon, label, value, badgeText, badgeVariant }) => (
|
{items.map(({ icon: Icon, label, value, badgeText, badgeVariant }) => (
|
||||||
<Cell
|
<Cell
|
||||||
key={label}
|
key={label}
|
||||||
|
|
@ -293,15 +294,16 @@ export default function StatusPage() {
|
||||||
)}
|
)}
|
||||||
</Cell>
|
</Cell>
|
||||||
))}
|
))}
|
||||||
</Grid>
|
|
||||||
|
|
||||||
<Card>
|
<Cell className="flex min-w-0 flex-col gap-2 overflow-hidden">
|
||||||
<CardHeader>
|
<div className="flex items-center justify-between">
|
||||||
<CardTitle className="text-base">{t.status.actions}</CardTitle>
|
<CardTitle className="text-sm font-medium">
|
||||||
</CardHeader>
|
{t.status.actions}
|
||||||
|
</CardTitle>
|
||||||
|
<Wrench className="h-4 w-4 text-muted-foreground" />
|
||||||
|
</div>
|
||||||
|
|
||||||
<CardContent className="flex flex-col gap-4">
|
<div className="flex gap-4">
|
||||||
<div className="flex flex-wrap gap-3">
|
|
||||||
<Button
|
<Button
|
||||||
variant="outline"
|
variant="outline"
|
||||||
size="sm"
|
size="sm"
|
||||||
|
|
@ -310,6 +312,7 @@ export default function StatusPage() {
|
||||||
pendingAction !== null ||
|
pendingAction !== null ||
|
||||||
(activeAction !== null && actionStatus?.running !== false)
|
(activeAction !== null && actionStatus?.running !== false)
|
||||||
}
|
}
|
||||||
|
className="flex-1 min-w-0"
|
||||||
>
|
>
|
||||||
<RotateCw
|
<RotateCw
|
||||||
className={cn(
|
className={cn(
|
||||||
|
|
@ -333,6 +336,7 @@ export default function StatusPage() {
|
||||||
pendingAction !== null ||
|
pendingAction !== null ||
|
||||||
(activeAction !== null && actionStatus?.running !== false)
|
(activeAction !== null && actionStatus?.running !== false)
|
||||||
}
|
}
|
||||||
|
className="flex-1 min-w-0"
|
||||||
>
|
>
|
||||||
<Download
|
<Download
|
||||||
className={cn(
|
className={cn(
|
||||||
|
|
@ -348,6 +352,8 @@ export default function StatusPage() {
|
||||||
: t.status.updateHermes}
|
: t.status.updateHermes}
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
|
</Cell>
|
||||||
|
</Grid>
|
||||||
|
|
||||||
{activeAction && (
|
{activeAction && (
|
||||||
<div className="border border-border bg-background-base/50">
|
<div className="border border-border bg-background-base/50">
|
||||||
|
|
@ -411,8 +417,6 @@ export default function StatusPage() {
|
||||||
</pre>
|
</pre>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
</CardContent>
|
|
||||||
</Card>
|
|
||||||
|
|
||||||
{platforms.length > 0 && (
|
{platforms.length > 0 && (
|
||||||
<PlatformsCard
|
<PlatformsCard
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue