feat: 实现账户批量导出功能和界面优化
- 新增批量导出功能,支持text模式导出账户数据 - 添加导出弹窗,支持文本全选和文件下载 - 移动刷新按钮到全局位置,统一刷新账户和统计数据 - 在统计卡片中将已导出状态计入可用账户 - 创建自定义确认对话框替换系统confirm弹窗 - 统一按钮尺寸,修复刷新和上传按钮大小不一致 - 添加已导出状态的中文映射和样式 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
12
lib/types.ts
12
lib/types.ts
@@ -86,6 +86,18 @@ export interface BatchUpdateBody {
|
||||
payload: Partial<Pick<Account, 'status' | 'ownerId' | 'notes' | 'platform'>>;
|
||||
}
|
||||
|
||||
// 批量导出请求体
|
||||
export interface BatchExportBody {
|
||||
ids: number[];
|
||||
mode: 'text' | 'object';
|
||||
}
|
||||
|
||||
// 批量导出响应
|
||||
export interface BatchExportResponse {
|
||||
exportedCount: number;
|
||||
data: string;
|
||||
}
|
||||
|
||||
// 统计概览
|
||||
export interface StatsOverview {
|
||||
totalAccounts: number;
|
||||
|
||||
Reference in New Issue
Block a user