重构: df-ai-core trait下沉拆crate+导入历史项目批量扫描

This commit is contained in:
2026-06-16 20:19:55 +08:00
parent d00b30f0ba
commit 2069f79198
19 changed files with 1518 additions and 311 deletions

View File

@@ -36,6 +36,26 @@ export default {
aiScanNoDesc: 'AI could not generate a description, please fill manually',
aiScanFailed: 'AI scan failed',
dirConflict: 'This directory is already bound to project "{name}"',
// Import historical projects (F-260614-06 scan step 2)
importHistory: '📥 Import Projects',
importTitle: 'Import Historical Projects',
importSelectRoot: 'Select root directory to scan',
importScanning: 'Scanning…',
importRescan: 'Rescan',
importEmpty: 'No candidate projects found in this directory (need Cargo.toml/package.json/go.mod etc.)',
importColName: 'Name',
importColPath: 'Path',
importColStack: 'Stack',
importColBound: 'Bound',
importMonoHint: 'monorepo',
importSelectAll: 'Select all',
importSelected: '{n} selected',
importRun: 'Import selected',
importRunning: 'Importing…',
importDone: 'Import complete: {imported} succeeded, {skipped} skipped',
importNoSelection: 'Please select projects to import first',
importScanFailed: 'Failed to scan directory',
importFailed: 'Batch import failed',
// Status labels (PROJECT_STATUS_LABELS values in constants/project.ts use these keys)
status: {
planning: '📐 Planning',

View File

@@ -22,6 +22,26 @@ export default {
aiScanNoDesc: 'AI 未能生成描述,可手动填写',
aiScanFailed: 'AI 扫描失败',
dirConflict: '该目录已被项目「{name}」绑定',
// 导入历史项目(F-260614-06 scan 第二步)
importHistory: '📥 导入历史项目',
importTitle: '导入历史项目',
importSelectRoot: '选择根目录扫描',
importScanning: '扫描中…',
importRescan: '重新扫描',
importEmpty: '该目录下未发现候选项目(需要有 Cargo.toml/package.json/go.mod 等标志文件)',
importColName: '项目名',
importColPath: '路径',
importColStack: '技术栈',
importColBound: '已绑定',
importMonoHint: 'monorepo',
importSelectAll: '全选',
importSelected: '已选 {n} 项',
importRun: '导入选中项',
importRunning: '导入中…',
importDone: '导入完成:成功 {imported} 项,跳过 {skipped} 项',
importNoSelection: '请先勾选要导入的项目',
importScanFailed: '扫描目录失败',
importFailed: '批量导入失败',
// 回收站模态框
trashTitle: '🗑 回收站',
trashEmpty: '回收站为空',