mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-12-06 16:24:17 +00:00
refactor(webui): modularize file viewer components into registry-driven architecture
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
import { FileTypeDefinition } from '../types'
|
||||
import ImageViewer from './image-viewer'
|
||||
import { CompareImagePane } from './compare-image-pane'
|
||||
|
||||
export const imageTypeDefinition: FileTypeDefinition = {
|
||||
id: 'image',
|
||||
name: 'Image',
|
||||
match: (file) => !!file.mediaType?.startsWith('image/'),
|
||||
viewer: ImageViewer,
|
||||
comparePane: CompareImagePane,
|
||||
commentsConfig: {
|
||||
hasTimestamp: false,
|
||||
hasAnnotations: true,
|
||||
hasAiBots: true,
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user