mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-10-14 02:46:37 +08:00
f02fc9676a
- Fix Go backend mnd (magic number) and revive lint issues in zone stats. - Remove unused React/Lucide imports and variables in zone overview. - Add generateStaticParams and Suspense wrapper for websites/[zoneId] page to support Next.js static HTML export. - Remove next/font/google dependency to allow fully offline frontend compilation. - Fix hardcoded time dependency in ssl_renew_test.go. - Fix async_tasks_test.go to respect minimum 90-day retention clamping in database auto-cleanup. - Add Zone and ZoneDomain models to test database AutoMigrate schemas. - Update integration tests to use the new zone_domain_ids route binding scheme.
22 lines
619 B
TypeScript
22 lines
619 B
TypeScript
import {Suspense} from 'react'
|
|
import {Globe} from 'lucide-react'
|
|
import {LoadingStateWithBorder} from '@/components/layout/loading'
|
|
import {ZonePageClient} from './page-client'
|
|
|
|
export async function generateStaticParams() {
|
|
return [{zoneId: '1'}];
|
|
}
|
|
|
|
export default async function ZonePage({params}: PageProps<'/websites/[zoneId]'>) {
|
|
const {zoneId} = await params
|
|
return (
|
|
<Suspense fallback={
|
|
<div className="py-6 px-1">
|
|
<LoadingStateWithBorder icon={Globe} description="加载 Zone 详情中..." />
|
|
</div>
|
|
}>
|
|
<ZonePageClient zoneId={Number(zoneId)} />
|
|
</Suspense>
|
|
)
|
|
}
|