import { Card, Divider, Tag, Timeline, Avatar, Typography } from 'antd'; import { InfoCircleOutlined, LinkOutlined, HistoryOutlined, UserOutlined, FileTextOutlined, GithubOutlined, QqOutlined } from '@ant-design/icons'; import { useTranslation } from 'react-i18next'; const { Title } = Typography; const SystemInfoPage = () => { const { t } = useTranslation(); // 系统基本信息 const systemInfo = [ { label: t('system.info.label.name'), value: 'XinAdmin' }, { label: t('system.info.label.version'), value: 'v2.0' }, { label: t('system.info.label.build'), value: 'Vite 7.1.5' }, { label: t('system.info.label.frontend'), value: 'React 19.1.0' }, { label: t('system.info.label.ui'), value: 'Ant Design 5.27.1' }, { label: t('system.info.label.css'), value: 'TailwindCSS 4.1.11' }, { label: t('system.info.label.router'), value: 'React Router 7.8.2' }, { label: t('system.info.label.state'), value: 'Zustand 5.0.8' }, { label: t('system.info.label.ts'), value: '5.8.3' }, ]; // 项目地址 const projectLinks = [ { name: t('system.info.link.github'), url: 'https://github.com/xin-admin/xin-admin', icon: }, { name: t('system.info.link.docs'), url: 'https://xinadmin.cn/ui/intro', icon: }, { name: t('system.info.link.demo'), url: 'https://ui.xinadmin.cn', icon: }, { name: t('system.info.link.issues'), url: 'https://github.com/xin-admin/xin-admin/issues', icon: }, ]; // 更新日志 const changelog = [ { time: '2025-11', version: 'v2.0', content: t('system.info.log.content') }, ]; // 作者信息 const authorInfo = { name: t('system.info.author.name'), avatar: 'https://file.xinadmin.cn/file/favicons.ico', role: t('system.info.author.role'), contact: [ { type: t('system.info.contact.github'), value: 'https://github.com/xin-admin/xin-admin', icon: }, { type: t('system.info.contact.group'), value: 'Xin Admin Official Community', icon: }, { type: t('system.info.contact.discuss'), value: 'https://github.com/xin-admin/xin-admin/discussions', icon: }, ], }; return (
{t('system.info.title')}
{/* 系统基本信息卡片 */} {t('system.info.basic.title')}
} >
{systemInfo.map((item, index) => (
{item.label}: {item.value}
))}
React 19 Ant Design TailwindCSS TypeScript Vite 7 Zustand
{/* 项目地址卡片 */} {t('system.info.project.title')}
} >
{projectLinks.map((link, index) => (
{link.icon} {link.name}: {link.url}
))}
{t('system.info.join')}
{/* 更新日志卡片 */} {t('system.info.changelog.title')} } > {changelog.map((log, index) => (
{log.version}{log.time}
{log.content}
))}
{/* 作者介绍卡片 */} {t('system.info.author.title')} } >

{authorInfo.name}

{authorInfo.role}

{authorInfo.contact.map((item, index) => (
{item.icon} {item.type}: {item.value.startsWith('http') ? ( {item.value} ) : ( item.value )}
))}
{/* 系统描述卡片 */} {t('system.info.desc.title')} } className="md:col-span-2 lg:col-span-1" >

{t('system.info.desc.content')}

{t('system.info.tag.enterprise')} {t('system.info.tag.ready')} {t('system.info.tag.scalable')} {t('system.info.tag.modern')} {t('system.info.tag.i18n')} {t('system.info.tag.auth')}
); }; export default SystemInfoPage;