feat(webui): support custom timestamp formatting for PDF viewer comments (P9)

This commit is contained in:
yiling
2026-07-18 11:20:13 +08:00
parent 2b72f3038a
commit ea201ad19f
5 changed files with 27 additions and 5 deletions
@@ -10,5 +10,6 @@ export const pdfTypeDefinition: FileTypeDefinition = {
hasTimestamp: true,
hasAnnotations: true,
hasAiBots: true,
formatTimestamp: (second: number) => `P${Math.round(second)}`,
},
}
@@ -49,5 +49,6 @@ export interface FileTypeDefinition {
hasTimestamp?: boolean
hasAnnotations?: boolean
hasAiBots?: boolean
formatTimestamp?: (second: number) => string
}
}