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
@@ -34,12 +34,7 @@ import {
Select,
Popconfirm,
} from '@/components/ui';
import {
IconPlus,
IconDelete,
IconEdit,
IconRefresh,
} from '@/components/ui/icons';
import { IconPlus, IconRefresh } from '@/components/ui/icons';
import { Crown, Sparkles, Zap } from 'lucide-react';
import { API, showError, showSuccess, renderQuota } from '../../../helpers';
import QuotaInput from '../../../components/common/ui/QuotaInput';
@@ -265,18 +260,22 @@ export default function SettingsMembership() {
render: (_, record) => (
<Space>
<Button
icon={<IconEdit />}
size='small'
onClick={() => {
setEditingPlan({ ...record });
setEditModalVisible(true);
}}
/>
type='link'
size='small'
>
{t('编辑')}
</Button>
<Popconfirm
title={t('确定删除此方案?')}
onConfirm={() => deletePlan(record.id)}
>
<Button icon={<IconDelete />} size='small' type='danger' />
<Button type='link' size='small' danger>
{t('删除')}
</Button>
</Popconfirm>
</Space>
),
@@ -16,6 +16,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
For commercial licensing, please contact support@quantumnous.com
*/
import { Plus as ActionPlus } from '@/components/common/icons/ActionIcons';
import React, { useEffect, useState, useRef } from 'react';
import {
Banner,
@@ -34,7 +35,6 @@ import {
const { Text } = Typography;
import { API, showError, showSuccess } from '../../../helpers';
import { useTranslation } from 'react-i18next';
import { Plus, Trash2 } from 'lucide-react';
export default function SettingsPaymentGatewayCreem(props) {
const { t } = useTranslation();
@@ -234,19 +234,20 @@ export default function SettingsPaymentGatewayCreem(props) {
render: (_, record) => (
<div className='flex gap-2'>
<Button
type='tertiary'
size='small'
onClick={() => openProductModal(record)}
type='link'
size='small'
>
{t('编辑')}
</Button>
<Button
type='danger'
theme='borderless'
size='small'
icon={<Trash2 size={14} />}
onClick={() => deleteProduct(record.productId)}
/>
type='link'
size='small'
danger
>
{t('删除')}
</Button>
</div>
),
},
@@ -302,7 +303,7 @@ export default function SettingsPaymentGatewayCreem(props) {
<Text strong>{t('产品配置')}</Text>
<Button
type='primary'
icon={<Plus size={16} />}
icon={<ActionPlus size={16} />}
onClick={() => openProductModal()}
>
{t('添加产品')}
@@ -594,24 +594,23 @@ export default function SettingsPaymentGatewayPayPal(props) {
render: (_, row) => (
<div className='flex flex-wrap gap-2'>
<Button
size='small'
htmlType='button'
onClick={() => inspectOperationOrder(row.trade_no)}
type='link'
size='small'
>
{t('查询远端状态')}
</Button>
<Button
size='small'
theme='solid'
htmlType='button'
onClick={() => reconcileOperationOrder(row.trade_no)}
disabled={!row.third_trade_no}
type='link'
size='small'
>
{t('触发对账')}
</Button>
<Button
size='small'
type='danger'
htmlType='button'
onClick={() => {
setExpireOrder(row);
@@ -619,12 +618,13 @@ export default function SettingsPaymentGatewayPayPal(props) {
setForceExpireConfirmed(false);
setExpireReason(t('确认该订单未完成 PayPal 支付'));
}}
type='link'
size='small'
danger
>
{t('确认未付款并过期')}
</Button>
<Button
size='small'
type='warning'
htmlType='button'
onClick={() => {
setExpireOrder(row);
@@ -634,6 +634,8 @@ export default function SettingsPaymentGatewayPayPal(props) {
t('管理员确认远端状态无法核验,强制关闭该 PayPal 订单'),
);
}}
type='link'
size='small'
>
{t('强制过期')}
</Button>