init
This commit is contained in:
@@ -31,6 +31,8 @@ public static class FileViewerFactory
|
||||
{
|
||||
// Image types taken from https://developer.mozilla.org/en-US/docs/Web/Media/Guides/Formats/Image_types
|
||||
RegisterViewerComponent<ImageViewer>([".apng", ".png", ".avif", ".gif", ".jpg", ".jpeg", ".jfif", ".pjpeg", ".pjp", ".svg", ".webp"]);
|
||||
RegisterViewerComponent<TextViewer>([".txt"]);
|
||||
RegisterViewerComponent<PdfViewer>([".pdf"]);
|
||||
}
|
||||
|
||||
public static void RegisterViewerComponent<ComponentType>(IEnumerable<string> extensions) where ComponentType : IFileViewer
|
||||
|
||||
Reference in New Issue
Block a user