From e4f7950a5695f4409763f10d90c53db57b303e7e Mon Sep 17 00:00:00 2001 From: Jaime Idolpx Date: Tue, 9 Jun 2026 03:18:24 -0400 Subject: [PATCH] feat(MediaManager): update file extension sets for JSON, XML, IMAGE, HD, and ARCHIVE types --- src/app/components/MediaManager.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/app/components/MediaManager.tsx b/src/app/components/MediaManager.tsx index 057b4bb..3b696e8 100644 --- a/src/app/components/MediaManager.tsx +++ b/src/app/components/MediaManager.tsx @@ -82,16 +82,16 @@ type ViewMode = 'text' | 'markdown' | 'json' | 'xml' | 'hex' | 'image' | 'config const TEXT_EXTS = new Set(['txt', 'cfg', 'ini', 'bas', 'asm', 'seq', 'rel', 'prg', 'log', 'csv', 's', 'lst']); const MD_EXTS = new Set(['md', 'markdown']); -const JSON_EXTS = new Set(['json']); -const XML_EXTS = new Set(['xml', 'svg', 'html', 'htm', 'rss', 'atom', 'xsl']); -const IMAGE_EXTS = new Set(['png', 'jpg', 'jpeg', 'gif', 'bmp', 'webp']); +const JSON_EXTS = new Set(['json', 'manifest']); +const XML_EXTS = new Set(['xml', 'html', 'htm', 'rss', 'atom', 'xsl']); +const IMAGE_EXTS = new Set(['png', 'jpg', 'jpeg', 'gif', 'bmp', 'webp', 'svg', 'ico']); const AUDIO_EXTS = new Set(['sid', 'psid', 'mus', 'vgm']); const ROM_EXTS = new Set(['bin', 'rom', 'crt']); const TAPE_EXTS = new Set(['tap', 'htap', 't64', 'tcrt']); const DISK_EXTS = new Set(['d41', 'd64', 'd71', 'd80', 'd81', 'd82', 'g64', 'g71', 'g81', 'p64', 'p71', 'p81', 'nib']); const DISC_EXTS = new Set(['iso', 'img', 'cue']); -const HD_EXTS = new Set(['d1m', 'd2m', 'd4m', 'd90', 'dhd', 'hdd']); -const ARCHIVE_EXTS = new Set(['zip', '7z', 'tar', 'gz', 'bz2', 'xz', 'rar', 'arj', 'lzh', 'ace', 'z', 'lha', 'cab', 'lbr', 'arc', 'ark', 'lnx', 'bbt', 'd8b', 'dfi']); +const HD_EXTS = new Set(['d1m', 'd2m', 'd4m', 'd90', 'dhd', 'hdd', 'bbt', 'd8b', 'dfi']); +const ARCHIVE_EXTS = new Set(['zip', '7z', 'tar', 'gz', 'bz2', 'xz', 'rar', 'arj', 'lzh', 'ace', 'z', 'lha', 'cab', 'lbr', 'arc', 'ark', 'lnx']); const CONFIG_EXTS = new Set(['config']); function defaultViewMode(entry: EntryInfo): ViewMode {