feat: 参考原型图 ui优化提交 个人端-用户中心 相关的页面

This commit is contained in:
zhanjunhao
2026-11-04 19:59:06 +08:00
parent 472e534fe1
commit e6c41e7587
576 changed files with 18075 additions and 18912 deletions
@@ -0,0 +1,48 @@
/*
Copyright (C) 2025 QuantumNous
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
For commercial licensing, please contact support@quantumnous.com
*/
import React from 'react';
import { Breadcrumb } from 'antd';
import { useLocation } from 'react-router-dom';
import { useTranslation } from 'react-i18next';
const pageTitles = {
'/user-center/key-management': '密钥管理',
'/user-center/dashboard': '数据看板',
'/user-center/usage-record': '使用记录',
'/user-center/service-dashboard': '服务监控',
'/user-center/topup': '在线充值',
'/user-center/settings': '个人设置',
'/user-center/invite': '邀请有奖',
'/user-center/invoice': '发票管理',
'/user-center/weyai-download': '下载 WeyAi 桌面端',
};
export default function UserCenterBreadcrumb() {
const { pathname } = useLocation();
const { t } = useTranslation();
const title = pageTitles[pathname.replace(/\/$/, '')];
if (!title) return null;
return (
<Breadcrumb
className='ui-dashboard-breadcrumb ui-user-center-breadcrumb'
items={[{ title: t('用户中心') }, { title: t(title) }]}
/>
);
}