refactor(webui): modularize file viewer components into registry-driven architecture

This commit is contained in:
yiling
2026-07-05 10:51:42 +08:00
parent 229070fe19
commit 4cc35d3453
28 changed files with 1161 additions and 1043 deletions
@@ -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,
},
}