'use client'; // Copyright 2026 Arctel.net // SPDX-License-Identifier: Apache-2.0 import * as React from 'react'; import { useTranslations } from 'next-intl'; import { Code } from 'lucide-react'; import { Card, CardContent, CardDescription, CardHeader, CardTitle, } from '@/components/ui/card'; import { Tabs, TabsContent, TabsList, TabsTrigger } from '@/components/ui/tabs'; // 引入模块化拆分后的 Tab 子组件 import { DashboardTab } from './tabs/dashboard-tab'; import { TableTab } from './tabs/table-tab'; import { ControlsTab } from './tabs/controls-tab'; export default function HeaderDemoPage() { const rt = useTranslations('runtime'); const t = useTranslations('admin.demo'); const [activeTab, setActiveTab] = React.useState('dashboard'); return (
{/* 1. 标准页面标题 */}

{t('pageTitle')}

{/* 说明区域 */}
{t('specTitle')}
{t('specDescription')}

{t('coreSpecTitle')}

  • {t('rules.structureFocus.title')} {t('rules.structureFocus.description')}
  • {t('rules.containerAlignment.title')} {rt('use_1b3d699e')}{' '} flex items-center gap-2 {' '} {t('rules.containerAlignment.description')}{' '} py-6 px-1 {' '} {rt('or_07d4e3c0')}{' '} py-6 ) {t('rules.containerAlignment.description2')}
  • {t('rules.iconPresentation.title')} {rt('place_the_lucide_icon_directly_inside_the_104f794c')}{' '} size-5 text-primary {' '} {t('rules.iconPresentation.description')}
  • {t('rules.textStyle.title')} {rt('use_only_5e12eecb')}{' '} {'h1 className="text-2xl font-semibold tracking-tight"'} {t('rules.textStyle.description')}{' '} font-bold {t('rules.textStyle.description2')}
  • {t('rules.tabsModular.title')} {rt('for_pages_with_multiple_tabs_keep_each_5f721959')}{' '} tabs/events-tab.tsx {' '} {t('rules.tabsModular.description')}{' '} components/ {' '} {t('rules.tabsModular.description2')}
  • {t('rules.complexityDriven.title')} {rt('beyond_tabs_when_a_page_exceeds_600_d152cfdc')} {t('rules.complexityDriven.description')}{' '} app/(main)/admin/database/components/ {t('rules.complexityDriven.description2')}{' '} components/common/ {t('rules.complexityDriven.description3')}{' '} /admin/database {rt('message_18ab4763')}{' '} table-browser.tsx {rt('list_separator')} cache-manager.tsx {' '} {rt('and_de1d5dd0')}{' '} sql-console.tsx {rt('sentence_end')}
{/* Tabs 切换 */} {t('tabs.dashboard')} {t('tabs.table')} {t('tabs.controls')}
); }