Feature(custom): add preview support for more types of text file

This commit is contained in:
Kuingsmile 2023-12-09 19:03:11 -08:00
parent 6d7584e566
commit 2c46dca064
2 changed files with 31 additions and 24 deletions

View File

@ -1,13 +1,16 @@
export const textFileExt = [ export const textFileExt = [
'.applescript',
'.bat', '.bat',
'.c', '.c',
'.cmd', '.cmd',
'.condarc',
'.conf', '.conf',
'.config', '.config',
'.cpp', '.cpp',
'.css', '.css',
'.csv', '.csv',
'.dart', '.dart',
'.eslintignore',
'.gitattributes', '.gitattributes',
'.gitconfig', '.gitconfig',
'.gitignore', '.gitignore',
@ -22,20 +25,24 @@ export const textFileExt = [
'.java', '.java',
'.js', '.js',
'.json', '.json',
'.jsx',
'.lock',
'.log', '.log',
'.php', '.php',
'.prop', '.prop',
'.properties', '.properties',
'.ps1',
'.py', '.py',
'.rc', '.rc',
'.sh', '.sh',
'.ts',
'.tsv', '.tsv',
'.tsx',
'.txt', '.txt',
'.vue',
'.xml', '.xml',
'.yaml', '.yaml',
'.yml', '.yml',
'.ts',
'.yarnrc', '.yarnrc',
'.condarc',
'license' 'license'
] ]

View File

@ -10,27 +10,28 @@
### 文本 ### 文本
| 格式 | 描述 | 格式 | 描述 | | 格式 | 描述 | 格式 | 描述 |
| :------------: | :-----------------: | :---------------: | :--------------: | | :------------: | :-----------------: | :---------------: | :----------------: |
| .bat | 批处理文件 | .java | Java源代码文件 | | .bat | 批处理文件 | .java | Java源代码文件 |
| .c | C语言源代码文件 | .js | JavaScript文件 | | .c | C语言源代码文件 | .js | JavaScript文件 |
| .cmd | Windows命令脚本文件 | .json | JSON文件 | | .cmd | Windows命令脚本文件 | .json | JSON文件 |
| .conf | 配置文件 | .log | 日志文件 | | .conf | 配置文件 | .log | 日志文件 |
| .config | 配置文件 | .php | PHP源代码文件 | | .config | 配置文件 | .php | PHP源代码文件 |
| .cpp | C++源代码文件 | .prop/.properties | 属性文件 | | .cpp | C++源代码文件 | .prop/.properties | 属性文件 |
| .css | 层叠样式表文件 | .py | Python源代码文件 | | .css | 层叠样式表文件 | .py | Python源代码文件 |
| .csv | 逗号分隔值文件 | .rc | Windows资源文件 | | .csv | 逗号分隔值文件 | .rc | Windows资源文件 |
| .dart | Dart源代码文件 | .sh | Shell脚本文件 | | .dart | Dart源代码文件 | .sh | Shell脚本文件 |
| .gitattributes | Git属性文件 | .tsv | 制表符分隔值文件 | | .gitattributes | Git属性文件 | .tsv | 制表符分隔值文件 |
| .gitconfig | Git配置文件 | .txt | 纯文本文件 | | .gitconfig | Git配置文件 | .txt | 纯文本文件 |
| .gitignore | Git忽略文件 | .xml | XML文件 | | .gitignore | Git忽略文件 | .xml | XML文件 |
| .gitkeep | Git保留文件 | .yaml/.yml | YAML文件 | | .gitkeep | Git保留文件 | .yaml/.yml | YAML文件 |
| .gitmodules | Git子模块文件 | .yarnrc | Yarn配置文件 | | .gitmodules | Git子模块文件 | .yarnrc | Yarn配置文件 |
| .go | Go源代码文件 | LICENSE | 许可证文件 | | .go | Go源代码文件 | LICENSE | 许可证文件 |
| .h | 头文件 | .condarc | Conda配置文件 | | .h | 头文件 | .condarc | Conda配置文件 |
| .hpp | C++头文件 | .md | Markdown文件 | | .hpp | C++头文件 | .md | Markdown文件 |
| .htm/.html | HTML文件 | | | | .htm/.html | HTML文件 | .jsx/.tsx/.vue | JSX文件等 |
| .applescript | AppleScript脚本文件 | .eslintignore | ESLint忽略文件 |
| .lock | 锁文件 | .ps1 | PowerShell脚本文件 |
### 视频 ### 视频
@ -50,4 +51,3 @@
| .mxf | MXF视频文件 | .asf | Advanced Systems Format视频文件 | | .mxf | MXF视频文件 | .asf | Advanced Systems Format视频文件 |
| .rm | RealMedia视频文件 | .rmvb | RealMedia可变比特率视频文件 | | .rm | RealMedia视频文件 | .rmvb | RealMedia可变比特率视频文件 |
| .wmv | Windows Media视频文件 | .mkv | Matroska视频文件 | | .wmv | Windows Media视频文件 | .mkv | Matroska视频文件 |