Add site batch import/export functionality with preview and validation

Co-authored-by: jxxghp <jxxghp@live.cn>
This commit is contained in:
Cursor Agent
2025-08-22 23:09:03 +00:00
co-authored by jxxghp
parent c330aee560
commit afc7c81028
10 changed files with 17725 additions and 684 deletions
+28
View File
@@ -1003,6 +1003,7 @@ export default {
limitSeconds: '访问间隔(秒)',
useProxy: '使用代理访问',
browserSimulation: '浏览器仿真',
selectFile: '选择文件',
},
hints: {
url: '格式:http://www.example.com/',
@@ -1020,16 +1021,36 @@ export default {
limitSeconds: '每次访问需要间隔的最小时间',
useProxy: '使用代理服务器访问该站点',
browserSimulation: '使用浏览器模拟真实访问该站点',
import: '批量导入站点数据,支持JSON格式文件',
selectFile: '选择JSON文件',
dragDropFile: '拖拽文件到此处或点击选择文件',
supportedFormat: '支持JSON格式的站点配置文件',
},
actions: {
add: '新增站点',
edit: '编辑站点',
import: '批量导入',
export: '批量导出',
startImport: '开始导入',
},
messages: {
addSuccess: '新增站点成功',
addFailed: '新增站点失败',
updateSuccess: '更新成功',
updateFailed: '更新失败',
exportSuccess: '站点导出成功',
exportFailed: '站点导出失败',
importSuccess: '成功导入 {count} 个站点',
importFailed: '站点导入失败',
importPartialFailed: '导入完成,成功 {success} 个,失败 {failed} 个',
noDataToImport: '没有数据可导入',
noValidData: '没有有效的数据',
someInvalidData: '部分数据无效,有效数据 {valid}/{total} 个',
invalidFileType: '不支持的文件类型,请选择JSON文件',
invalidFileFormat: '文件格式无效,请检查文件内容',
parseFileError: '文件解析失败,请检查文件格式',
previewData: '预览数据 ({count} 个站点)',
importing: '正在导入... ({progress}%)',
},
errors: {
loadDownloader: '加载下载器设置失败',
@@ -1064,6 +1085,13 @@ export default {
accessTime: '访问时间',
responseTime: '响应时间',
noTimeRecords: '暂无耗时记录',
preview: {
title: '预览站点',
showing: '显示 {count}/{total}',
unnamed: '未命名站点',
noUrl: '无站点地址',
invalid: '数据无效',
},
},
message: {
loadMore: '加载更多',