feat: add json file preview and icon (#17930)

This commit is contained in:
chanx
2026-08-06 16:22:32 +08:00
committed by GitHub
parent 5c6536a86c
commit f72cb14e18
3 changed files with 9 additions and 7 deletions

File diff suppressed because one or more lines are too long

View File

@@ -42,7 +42,7 @@ const DocumentPreview = function ({
<DocPreviewer className={className} url={url} />
</section>
)}
{['txt'].indexOf(fileType) > -1 && (
{['txt', 'json'].indexOf(fileType) > -1 && (
<section>
<TxtPreviewer className={className} url={url} />
</section>

View File

@@ -18,4 +18,5 @@ export const FileIconMap = {
mkv: 'mkv',
rmvb: 'rmvb',
wav: 'wav',
json: 'json',
};