feat: 合并代码后 系统设置 ui样式优化、bug修复、全局统一图标对齐等
This commit is contained in:
@@ -16,6 +16,12 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
For commercial licensing, please contact support@quantumnous.com
|
||||
*/
|
||||
import {
|
||||
Zap as ActionZap,
|
||||
UserPlus as ActionUserPlus,
|
||||
Copy as ActionCopy,
|
||||
Link as ActionLink,
|
||||
} from '@/components/common/icons/ActionIcons';
|
||||
import React, { useState, useEffect, useContext, useRef } from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import {
|
||||
@@ -31,12 +37,10 @@ import {
|
||||
Tag,
|
||||
} from '@/components/ui';
|
||||
import {
|
||||
Copy,
|
||||
Users,
|
||||
BarChart2,
|
||||
TrendingUp,
|
||||
Gift,
|
||||
Zap,
|
||||
CreditCard,
|
||||
DollarSign,
|
||||
UserPlus,
|
||||
@@ -365,7 +369,7 @@ const Invite = () => {
|
||||
setTransferAmount(stats.current_aff_quota || 0);
|
||||
setOpenTransfer(true);
|
||||
}}
|
||||
icon={<Zap size={15} />}
|
||||
icon={<ActionZap size={15} />}
|
||||
className='!rounded-full !border-0 !bg-gradient-to-r !from-rose-500 !to-orange-400 !px-4 !shadow-lg !shadow-rose-500/20'
|
||||
>
|
||||
{t('\u5212\u8f6c\u5230\u4f59\u989d')}
|
||||
@@ -375,7 +379,7 @@ const Invite = () => {
|
||||
<Button
|
||||
theme='light'
|
||||
type='primary'
|
||||
icon={<UserPlus size={15} />}
|
||||
icon={<ActionUserPlus size={15} />}
|
||||
onClick={() => setOpenBindInviter(true)}
|
||||
className='!rounded-full !border !border-sky-200 !bg-sky-50/80 !px-4 !text-sky-700 dark:!border-sky-400/20 dark:!bg-sky-400/[0.08] dark:!text-sky-300'
|
||||
>
|
||||
@@ -458,7 +462,7 @@ const Invite = () => {
|
||||
theme='solid'
|
||||
size='large'
|
||||
onClick={handleCopyLink}
|
||||
icon={<Copy size={16} />}
|
||||
icon={<ActionCopy size={16} />}
|
||||
className='!rounded-full !border-0 !bg-gradient-to-r !from-rose-500 !to-orange-400 !px-6 !shadow-lg !shadow-rose-500/20'
|
||||
>
|
||||
{t('\u590d\u5236')}
|
||||
@@ -537,7 +541,7 @@ const Invite = () => {
|
||||
type='primary'
|
||||
theme='solid'
|
||||
onClick={() => setOpenBindInviter(true)}
|
||||
icon={<Link size={16} />}
|
||||
icon={<ActionLink size={16} />}
|
||||
className='!rounded-full !border-0 !bg-gradient-to-r !from-sky-500 !to-cyan-400 !px-5'
|
||||
>
|
||||
{t('\u7ed1\u5b9a')}
|
||||
|
||||
@@ -16,6 +16,12 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
For commercial licensing, please contact support@quantumnous.com
|
||||
*/
|
||||
import {
|
||||
Eye as ActionEye,
|
||||
X as ActionX,
|
||||
Download as ActionDownload,
|
||||
Plus as ActionPlus,
|
||||
} from '@/components/common/icons/ActionIcons';
|
||||
import React, { useState, useEffect, useCallback, useContext } from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import {
|
||||
@@ -32,7 +38,7 @@ import {
|
||||
Empty,
|
||||
Spin,
|
||||
} from '@/components/ui';
|
||||
import { Receipt, Plus, Download, Eye, X } from 'lucide-react';
|
||||
import { Receipt } from 'lucide-react';
|
||||
import UserCenterPageHeader from '../../components/common/UserCenterPageHeader';
|
||||
import { API, showError, showSuccess } from '../../helpers';
|
||||
import {
|
||||
@@ -360,7 +366,7 @@ const Invoice = () => {
|
||||
<Button
|
||||
size='small'
|
||||
theme='borderless'
|
||||
icon={<Eye size={14} />}
|
||||
icon={<ActionEye size={14} />}
|
||||
onClick={() => handleViewDetail(record.id)}
|
||||
>
|
||||
{t('详情')}
|
||||
@@ -370,7 +376,7 @@ const Invoice = () => {
|
||||
size='small'
|
||||
theme='borderless'
|
||||
type='danger'
|
||||
icon={<X size={14} />}
|
||||
icon={<ActionX size={14} />}
|
||||
onClick={() => handleCancel(record.id)}
|
||||
>
|
||||
{t('取消')}
|
||||
@@ -380,7 +386,7 @@ const Invoice = () => {
|
||||
<Button
|
||||
size='small'
|
||||
theme='borderless'
|
||||
icon={<Download size={14} />}
|
||||
icon={<ActionDownload size={14} />}
|
||||
onClick={() =>
|
||||
window.open(`/api/user/invoice/download/${record.id}`, '_blank')
|
||||
}
|
||||
@@ -500,7 +506,7 @@ const Invoice = () => {
|
||||
<Button
|
||||
theme='solid'
|
||||
type='primary'
|
||||
icon={<Plus size={16} />}
|
||||
icon={<ActionPlus size={16} />}
|
||||
loading={submitting}
|
||||
onClick={handleSubmit}
|
||||
disabled={selectedTopupIds.length === 0}
|
||||
@@ -632,7 +638,7 @@ const Invoice = () => {
|
||||
<Button
|
||||
theme='solid'
|
||||
type='primary'
|
||||
icon={<Download size={16} />}
|
||||
icon={<ActionDownload size={16} />}
|
||||
block
|
||||
onClick={() =>
|
||||
window.open(
|
||||
|
||||
@@ -17,6 +17,10 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
For commercial licensing, please contact support@quantumnous.com
|
||||
*/
|
||||
|
||||
import {
|
||||
ChevronRight as ActionChevronRight,
|
||||
ChevronLeft as ActionChevronLeft,
|
||||
} from '@/components/common/icons/ActionIcons';
|
||||
import React, { useMemo, useContext } from 'react';
|
||||
import { Link, useLocation } from 'react-router-dom';
|
||||
import {
|
||||
@@ -32,8 +36,6 @@ import {
|
||||
UserRound,
|
||||
Receipt,
|
||||
Gift,
|
||||
ChevronLeft,
|
||||
ChevronRight,
|
||||
Activity,
|
||||
MonitorDown,
|
||||
} from 'lucide-react';
|
||||
@@ -227,11 +229,15 @@ const UserCenterSidebar = () => {
|
||||
</nav>
|
||||
<button
|
||||
type='button'
|
||||
className='ui-center-sidebar-collapse'
|
||||
className='app-action-button ui-center-sidebar-collapse'
|
||||
onClick={toggleCollapsed}
|
||||
aria-label={collapsed ? t('展开导航') : t('收起导航')}
|
||||
>
|
||||
{collapsed ? <ChevronRight size={16} /> : <ChevronLeft size={16} />}
|
||||
{collapsed ? (
|
||||
<ActionChevronRight size={16} />
|
||||
) : (
|
||||
<ActionChevronLeft size={16} />
|
||||
)}
|
||||
{!collapsed && <span>{t('收起导航')}</span>}
|
||||
</button>
|
||||
</aside>
|
||||
|
||||
@@ -92,7 +92,6 @@ const UserDashboard = () => {
|
||||
dashboardData.consumeQuota,
|
||||
dashboardData.consumeTokens,
|
||||
dashboardData.times,
|
||||
dashboardData.trendData,
|
||||
dashboardData.performanceMetrics,
|
||||
dashboardData.navigate,
|
||||
dashboardData.t,
|
||||
|
||||
Reference in New Issue
Block a user