优化: 文件预览大纲提取 + 预览/图标/滚动条打磨

This commit is contained in:
lxy
2026-08-10 02:23:53 +08:00
parent 40224d603a
commit 2473dcfe68
10 changed files with 905 additions and 58 deletions
+11
View File
@@ -15,7 +15,18 @@ export default {
selectFileHint: '← Select a file on the left to preview',
loadingFile: 'Loading file…',
binaryNotSupported: 'Binary file preview not supported',
binaryInfo: 'Binary file',
pathLabel: 'Path',
sizeLabel: 'Size',
typeLabel: 'Type',
binaryLabel: 'Note',
truncated: 'File too large, only first 1MB shown',
symbols: 'Outline',
outlineGroupType: 'Types',
outlineGroupFn: 'Functions',
outlineGroupVar: 'Variables',
outlineGroupMod: 'Modules',
outlineGroupOther: 'Others',
// Errors
loadFailed: 'Failed to load',
// Diff
+11
View File
@@ -15,7 +15,18 @@ export default {
selectFileHint: '← 选择左侧文件查看预览',
loadingFile: '加载文件中…',
binaryNotSupported: '二进制文件不支持预览',
binaryInfo: '二进制文件',
pathLabel: '路径',
sizeLabel: '大小',
typeLabel: '类型',
binaryLabel: '说明',
truncated: '文件过大,仅显示前 1MB',
symbols: '大纲',
outlineGroupType: '类型',
outlineGroupFn: '函数',
outlineGroupVar: '变量',
outlineGroupMod: '模块',
outlineGroupOther: '其他',
// 错误
loadFailed: '加载失败',
// Diff