mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-12-04 06:54:28 +00:00
refactor(webui): modularize file viewer components into registry-driven architecture
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
import { FileTypeDefinition } from '../types'
|
||||
import DefaultViewer from './default-viewer'
|
||||
|
||||
export const defaultTypeDefinition: FileTypeDefinition = {
|
||||
id: 'default',
|
||||
name: 'Default',
|
||||
match: () => true,
|
||||
viewer: DefaultViewer,
|
||||
commentsConfig: {
|
||||
hasTimestamp: false,
|
||||
hasAnnotations: false,
|
||||
hasAiBots: false,
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user