mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-08-07 08:01:13 +08:00
feat: add json file preview and icon (#17930)
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -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>
|
||||
|
||||
@@ -18,4 +18,5 @@ export const FileIconMap = {
|
||||
mkv: 'mkv',
|
||||
rmvb: 'rmvb',
|
||||
wav: 'wav',
|
||||
json: 'json',
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user