diff --git a/heicode/web/default/dist/index.html b/heicode/web/default/dist/index.html index da4ba19e..39c524f8 100644 --- a/heicode/web/default/dist/index.html +++ b/heicode/web/default/dist/index.html @@ -20,7 +20,7 @@ - +
diff --git a/heicode/web/default/src/features/agent-status/agent-status-page.tsx b/heicode/web/default/src/features/agent-status/agent-status-page.tsx new file mode 100644 index 00000000..28a64d90 --- /dev/null +++ b/heicode/web/default/src/features/agent-status/agent-status-page.tsx @@ -0,0 +1,267 @@ +import { useMemo, useState } from 'react' +import { useQuery, useQueryClient } from '@tanstack/react-query' +import { Link } from '@tanstack/react-router' +import { Activity, Copy, Database, GitBranch, RefreshCw, Server, X } from 'lucide-react' +import { toast } from 'sonner' +import { api } from '@/lib/api' +import { cn } from '@/lib/utils' +import { Button } from '@/components/ui/button' +import { Skeleton } from '@/components/ui/skeleton' + +type AgentItem = { + agent_id: string + template_id: string + subdomain: string + binding_ids: number[] + status: string + runtime_id: string + created_at: string + updated_at: string +} +type TemplateItem = { template_id: string; name: string } +type ResourceItem = { id: number; name: string; resource_type: string } + +const RESOURCE_ICON: Record+ Heicode Manager +
++ 查看你部署的 Agent 当前运行情况。状态每 15 秒自动刷新。 +
+{label}
+{value}
+{agent.agent_id}
+{label}
+