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

View File

@ -11,7 +11,7 @@
### 文本
| 格式 | 描述 | 格式 | 描述 |
| :------------: | :-----------------: | :---------------: | :--------------: |
| :------------: | :-----------------: | :---------------: | :----------------: |
| .bat | 批处理文件 | .java | Java源代码文件 |
| .c | C语言源代码文件 | .js | JavaScript文件 |
| .cmd | Windows命令脚本文件 | .json | JSON文件 |
@ -29,8 +29,9 @@
| .go | Go源代码文件 | LICENSE | 许可证文件 |
| .h | 头文件 | .condarc | Conda配置文件 |
| .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视频文件 |
| .rm | RealMedia视频文件 | .rmvb | RealMedia可变比特率视频文件 |
| .wmv | Windows Media视频文件 | .mkv | Matroska视频文件 |