feat: 处理语法校验

This commit is contained in:
笔记本里的永平
2025-07-07 14:29:28 +08:00
parent 5b8969f4a6
commit c29fbd1bbb
11 changed files with 11884 additions and 44 deletions

View File

@@ -1,6 +1,6 @@
import React, { useState, useEffect, useRef, useCallback } from 'react';
import { useNavigate } from 'react-router-dom';
import { Search, RefreshCw, ArrowRightLeft, AlertCircle, Loader2 } from 'lucide-react';
import { Search, RefreshCw, Loader2 } from 'lucide-react';
import { fetchWechatAccountList, transformWechatAccount } from '@/api/wechat-accounts';
import { useToast } from '@/components/ui/toast';
import { useWechatAccount } from '@/contexts/WechatAccountContext';
@@ -119,7 +119,6 @@ export default function WechatAccounts() {
}
};
const filteredAccounts = accounts;
const totalPages = Math.ceil(totalAccounts / accountsPerPage);
const handleTransferFriends = (account: WechatAccount) => {
@@ -259,7 +258,7 @@ export default function WechatAccounts() {
handleTransferFriends(account);
}}
>
<ArrowRightLeft className="h-4 w-4" />
{/* ArrowRightLeft className="h-4 w-4" */}
</button>
</div>
<div className="mt-2 text-sm text-gray-500 space-y-1">
@@ -274,7 +273,7 @@ export default function WechatAccounts() {
<span></span>
<span className="font-medium">{account.remainingAdds}</span>
<div className="relative group">
<AlertCircle className="h-4 w-4 text-gray-400" />
{/* AlertCircle className="h-4 w-4 text-gray-400" */}
<div className="absolute bottom-full left-1/2 transform -translate-x-1/2 mb-2 px-2 py-1 text-xs bg-gray-800 text-white rounded opacity-0 group-hover:opacity-100 transition-opacity whitespace-nowrap">
{account.maxDailyAdds}
</div>