主要变更: - RDP 远程桌面:新增 backend/pkg/rdp(RDP 引擎 + credssp/display/rle/trace)、 backend/controller/rdp*(连接/凭证/文件/会话/实时)、frontend RDP 组件与 API - Windows SMB 文件传输:backend/pkg/winsmb - 云账单同步:backend/pkg/billingsync + billing_sync/aliyun_billing,前端账单详情 - Agent CLI Kubernetes 工具:kubernetes_action/get、pod_execute/logs - 服务器导入助手:server_import_helpers、ImportCredentialSettings - 国际化与组件重构(cloud/deploy/monitor/server/system 等多模块) - 清理编译产物二进制:移除 backend/server、backend/agent/bin/aiops-agent-* - .gitignore:新增 backend/agent/ 与 .cache/(避免 334MB go-build 缓存误入库) Co-Authored-By: Claude <noreply@anthropic.com>
33 lines
916 B
TypeScript
33 lines
916 B
TypeScript
import type { ReactNode } from "react"
|
|
|
|
import {
|
|
Empty,
|
|
EmptyContent,
|
|
EmptyDescription,
|
|
EmptyHeader,
|
|
EmptyMedia,
|
|
EmptyTitle,
|
|
} from "@/components/ui/empty"
|
|
import { cn } from "@/lib/utils"
|
|
|
|
type EmptyStateProps = {
|
|
title: ReactNode
|
|
description?: ReactNode
|
|
icon?: ReactNode
|
|
action?: ReactNode
|
|
className?: string
|
|
}
|
|
|
|
export function EmptyState({ title, description, icon, action, className }: EmptyStateProps) {
|
|
return (
|
|
<Empty className={cn("border border-dashed border-[var(--dg-border)] bg-[var(--dg-bg-secondary)]", className)}>
|
|
<EmptyHeader>
|
|
{icon ? <EmptyMedia variant="icon">{icon}</EmptyMedia> : null}
|
|
<EmptyTitle className="text-[var(--dg-text-primary)]">{title}</EmptyTitle>
|
|
{description ? <EmptyDescription>{description}</EmptyDescription> : null}
|
|
</EmptyHeader>
|
|
{action ? <EmptyContent>{action}</EmptyContent> : null}
|
|
</Empty>
|
|
)
|
|
}
|