TF-3450 Refactor image and text preview

This commit is contained in:
DatDang
2025-02-26 11:19:25 +07:00
committed by Dat H. Pham
parent ef1d37f7ac
commit aabfe6a3a5
14 changed files with 94 additions and 285 deletions
@@ -3,6 +3,7 @@ class SupportedPreviewFileTypes {
'image/bmp',
'image/jpeg',
'image/gif',
'image/webp',
'image/png',];
static const textMimeTypes = [
@@ -10,6 +11,10 @@ class SupportedPreviewFileTypes {
'text/markdown',
];
static const jsonMimeTypes = [
'application/json',
];
static const docMimeTypes = [
'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
'application/vnd.oasis.opendocument.text',