'use client'; import { useQuery } from '@tanstack/react-query'; import { AlertTriangle, Cloud, FolderCog, Settings } from 'lucide-react'; import Link from 'next/link'; import { Alert, AlertDescription, AlertTitle } from '@/components/ui/alert'; import { Badge } from '@/components/ui/badge'; import { Button } from '@/components/ui/button'; import { Card, CardContent, CardDescription, CardHeader, CardTitle, } from '@/components/ui/card'; import { ErrorInline } from '@/components/layout/error'; import { LoadingStateWithBorder } from '@/components/layout/loading'; import { CloudflareService, cloudflareQueryKey, } from '@/lib/services/openflare'; import { getErrorMessage } from '../websites/components/website-utils'; export default function CloudflarePage() { const overviewQuery = useQuery({ queryKey: [...cloudflareQueryKey, 'overview'], queryFn: () => CloudflareService.getOverview(), }); const overview = overviewQuery.data; return (
同步会覆盖本模块接管的同名 A 记录;如果 Cloudflare 中存在多条同名 A,需先手动清理。
成员移出或分组删除时,默认同时删除本模块管理的远端 A 记录。