mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-24 11:36:52 +00:00
* feat(webui): use project members for asset comment mentions * refactor(project): remove legacy unused bots endpoint and props
15 lines
377 B
TypeScript
15 lines
377 B
TypeScript
import { FileTypeDefinition } from '../types'
|
|
import PdfViewer from './pdf-viewer'
|
|
|
|
export const pdfTypeDefinition: FileTypeDefinition = {
|
|
id: 'pdf',
|
|
name: 'PDF',
|
|
match: (file) => file.proxyType === 'pdf',
|
|
viewer: PdfViewer,
|
|
commentsConfig: {
|
|
hasTimestamp: true,
|
|
hasAnnotations: true,
|
|
formatTimestamp: (second: number) => `P${Math.round(second)}`,
|
|
},
|
|
}
|