feat: 合并代码后 系统设置 ui样式优化、bug修复、全局统一图标对齐等

This commit is contained in:
zhanjunhao
2026-11-10 17:27:36 +08:00
parent 23824dad32
commit 425077f94b
195 changed files with 3546 additions and 1984 deletions
+8 -3
View File
@@ -17,11 +17,11 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
For commercial licensing, please contact support@quantumnous.com
*/
import { Check as ActionCheck } from '@/components/common/icons/ActionIcons';
import React from 'react';
import { getCurrencyConfig } from '../../helpers/render';
import { renderQuota } from '../../helpers';
import { calculatePresetPayableAmount } from '../../helpers/rechargeAmount';
import { Check } from 'lucide-react';
// 折扣角标:0.99 → 99折,0.9 → 9折(与原型一致的中文折扣写法)
const formatDiscountRate = (discount) => {
@@ -65,7 +65,12 @@ const AmountCard = ({
type='button'
onClick={onClick}
aria-pressed={selected}
className={`rc-amount ${selected ? 'selected' : ''}`}
className={[
'app-action-button',
`rc-amount ${selected ? 'selected' : ''}`,
]
.filter(Boolean)
.join(' ')}
>
{/* 角标:优先显示自定义badge,其次显示折扣 */}
{badge ? (
@@ -110,7 +115,7 @@ const AmountCard = ({
<span className='rc-amount-bonus'>+{renderQuota(bonus)}</span>
)}
{selected && <Check size={12} className='rc-amount-check' />}
{selected && <ActionCheck size={12} className='rc-amount-check' />}
</button>
);
};
+2 -2
View File
@@ -17,6 +17,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
For commercial licensing, please contact support@quantumnous.com
*/
import { Search as ActionSearch } from '@/components/common/icons/ActionIcons';
import { useEffectEvent } from '../../hooks/common/useEffectEvent';
import React, { useState, useEffect, useMemo } from 'react';
import { Button as AntButton, Empty as AntEmpty, Tag as AntTag } from 'antd';
@@ -29,7 +30,6 @@ import {
Toast,
Pagination,
} from '@/components/ui';
import { Search } from 'lucide-react';
import { API, timestamp2string } from '../../helpers';
import { isAdmin } from '../../helpers/utils';
@@ -221,7 +221,7 @@ const HistoryPanel = ({ t, refreshTrigger }) => {
</Button>
<Button
type='primary'
icon={<Search size={14} />}
icon={<ActionSearch size={14} />}
onClick={() => loadTopups(page, pageSize)}
>
{t('搜索')}
+16 -7
View File
@@ -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 {
Check as ActionCheck,
ArrowUpRight as ActionArrowUpRight,
} from '@/components/common/icons/ActionIcons';
import React, { useEffect, useState, useContext } from 'react';
import { Segmented } from 'antd';
import {
@@ -28,7 +32,7 @@ import {
Banner,
Progress,
} from '@/components/ui';
import { ArrowUpRight, Crown, Zap, Check, Clock } from 'lucide-react';
import { Crown, Zap, Clock } from 'lucide-react';
import { useTranslation } from 'react-i18next';
import { UserContext } from '../../context/User';
import { API, showError, showSuccess, renderQuota } from '../../helpers';
@@ -441,7 +445,12 @@ const MembershipPanel = () => {
type='button'
onClick={() => handlePlanClick(plan)}
aria-pressed={isSelected}
className={`rc-plan ${isSelected ? 'selected' : ''}`}
className={[
'app-action-button',
`rc-plan ${isSelected ? 'selected' : ''}`,
]
.filter(Boolean)
.join(' ')}
>
{(plan.badge || plan.is_recommend) && (
<span className='rc-plan-badge'>
@@ -467,15 +476,15 @@ const MembershipPanel = () => {
)}
<ul className='rc-plan-features'>
<li>
<Check size={12} />
<ActionCheck size={12} />
{t('每日自动重置额度')}
</li>
<li>
<Check size={12} />
<ActionCheck size={12} />
{t('会员额度优先消耗')}
</li>
<li>
<Check size={12} />
<ActionCheck size={12} />
{t('额度用完转账户余额')}
</li>
</ul>
@@ -485,9 +494,9 @@ const MembershipPanel = () => {
{subText && <small>{subText}</small>}
</span>
{isSelected ? (
<Check size={14} />
<ActionCheck size={14} />
) : (
<ArrowUpRight size={14} />
<ActionArrowUpRight size={14} />
)}
</span>
</button>
+2 -2
View File
@@ -17,10 +17,10 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
For commercial licensing, please contact support@quantumnous.com
*/
import { Check as ActionCheck } from '@/components/common/icons/ActionIcons';
import React from 'react';
import { Alert } from 'antd';
import { Button, Spin, Tooltip } from '@/components/ui';
import { Check } from 'lucide-react';
import {
AlipayBrandIcon,
StripeBrandIcon,
@@ -226,7 +226,7 @@ const RechargePanel = ({
className={`rc-pay-method ${selected ? 'is-selected' : ''}`}
>
{method.name}
{selected && <Check size={14} />}
{selected && <ActionCheck size={14} />}
</Button>
);
if (disabled && minTopupVal > Number(topUpCount || 0)) {
+7 -3
View File
@@ -17,9 +17,9 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
For commercial licensing, please contact support@quantumnous.com
*/
import { ExternalLink as ActionExternalLink } from '@/components/common/icons/ActionIcons';
import React from 'react';
import { Button, Input, Skeleton } from '@/components/ui';
import { ExternalLink } from 'lucide-react';
import { useMinimumLoadingTime } from '../../hooks/common/useMinimumLoadingTime';
/**
@@ -78,8 +78,12 @@ const WalletCard = ({
{topUpLink && (
<div className='rc-wallet-link'>
{t('在找兑换码?')}{' '}
<button type='button' onClick={openTopUpLink}>
{t('购买兑换码')} <ExternalLink size={12} />
<button
className='app-action-button'
type='button'
onClick={openTopUpLink}
>
{t('购买兑换码')} <ActionExternalLink size={12} />
</button>
</div>
)}