| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent f47f9a2 commit 9d5511a
6 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -51,6 +51,22 @@ | |||
| 51 | 51 | "completed": "Batch import completed", | |
| 52 | 52 | "summary": "{success} succeeded, {failed} failed, {cancelled} skipped", | |
| 53 | 53 | "view": "View" | |
| 54 | + }, | ||
| 55 | + "options": { | ||
| 56 | + "title": "More Options", | ||
| 57 | + "mergeImport": "Merge Import", | ||
| 58 | + "mergeImportHint": "Multiple files will be merged into one chat record" | ||
| 59 | + }, | ||
| 60 | + "merge": { | ||
| 61 | + "importing": "Merging", | ||
| 62 | + "parsing": "Parsing files...", | ||
| 63 | + "parsingFile": "Parsing: {name}", | ||
| 64 | + "merging": "Merging messages...", | ||
| 65 | + "completed": "Merge completed", | ||
| 66 | + "completedHint": "{count} files merged", | ||
| 67 | + "messageCount": "{count} messages", | ||
| 68 | + "failed": "Merge failed", | ||
| 69 | + "cancel": "Cancel merge" | ||
| 54 | 70 | } | |
| 55 | 71 | }, | |
| 56 | 72 | "migration": { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -51,6 +51,22 @@ | |||
| 51 | 51 | "completed": "批量导入完成", | |
| 52 | 52 | "summary": "成功 {success} 个,失败 {failed} 个,跳过 {cancelled} 个", | |
| 53 | 53 | "view": "查看" | |
| 54 | + }, | ||
| 55 | + "options": { | ||
| 56 | + "title": "更多选项", | ||
| 57 | + "mergeImport": "合并导入", | ||
| 58 | + "mergeImportHint": "勾选后,多个文件将合并为一个聊天记录" | ||
| 59 | + }, | ||
| 60 | + "merge": { | ||
| 61 | + "importing": "正在合并", | ||
| 62 | + "parsing": "正在解析文件...", | ||
| 63 | + "parsingFile": "正在解析: {name}", | ||
| 64 | + "merging": "正在合并消息...", | ||
| 65 | + "completed": "合并完成", | ||
| 66 | + "completedHint": "{count} 个文件已合并", | ||
| 67 | + "messageCount": "{count} 条消息", | ||
| 68 | + "failed": "合并失败", | ||
| 69 | + "cancel": "取消合并" | ||
| 54 | 70 | } | |
| 55 | 71 | }, | |
| 56 | 72 | "migration": { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,45 @@ | |||
| 1 | + <script setup lang="ts"> | ||
| 2 | + /** | ||
| 3 | + * 文件列表项组件 | ||
| 4 | + * 用于批量导入/合并导入的文件列表显示 | ||
| 5 | + */ | ||
| 6 | + defineProps<{ | ||
| 7 | + /** 文件名 */ | ||
| 8 | + name: string | ||
| 9 | + /** 状态图标名称 */ | ||
| 10 | + statusIcon: string | ||
| 11 | + /** 状态图标样式类 */ | ||
| 12 | + statusClass: string | ||
| 13 | + /** 进度/状态描述文本 */ | ||
| 14 | + progressText?: string | ||
| 15 | + /** 当前索引(从0开始) */ | ||
| 16 | + index: number | ||
| 17 | + /** 总数 */ | ||
| 18 | + total: number | ||
| 19 | + /** 是否高亮当前项 */ | ||
| 20 | + highlight?: boolean | ||
| 21 | + }>() | ||
| 22 | + </script> | ||
| 23 | + | ||
| 24 | + <template> | ||
| 25 | + <div | ||
| 26 | + class="flex items-center gap-3 rounded-lg px-3 py-2 transition-colors" | ||
| 27 | + :class="{ 'bg-pink-50/50 dark:bg-pink-500/5': highlight }" | ||
| 28 | + > | ||
| 29 | + <UIcon :name="statusIcon" class="h-5 w-5 shrink-0" :class="statusClass" /> | ||
| 30 | + <div class="min-w-0 flex-1"> | ||
| 31 | + <p class="truncate text-sm font-medium text-gray-900 dark:text-white"> | ||
| 32 | + {{ name }} | ||
| 33 | + </p> | ||
| 34 | + <p v-if="progressText" class="text-xs text-gray-500 dark:text-gray-400"> | ||
| 35 | + {{ progressText }} | ||
| 36 | + </p> | ||
| 37 | + <!-- 额外内容插槽(如错误信息、操作按钮等) --> | ||
| 38 | + <slot name="extra" /> | ||
| 39 | + </div> | ||
| 40 | + <span class="text-xs text-gray-400">{{ index + 1 }}/{{ total }}</span> | ||
| 41 | + <!-- 操作按钮插槽 --> | ||
| 42 | + <slot name="action" /> | ||
| 43 | + </div> | ||
| 44 | + </template> | ||
| 45 | + | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments