Remove unused metadata type

This commit is contained in:
Connor Yoh 2025-09-15 11:35:34 +01:00
parent 9c49cf9584
commit bd6c9042d3
2 changed files with 0 additions and 59 deletions

View File

@ -53,55 +53,6 @@ const FileInfoCard: React.FC<FileInfoCardProps> = ({
</Group>
<Divider />
{/* Standard PDF Metadata */}
{currentFile?.pdfMetadata?.title && (
<>
<Group justify="space-between" py="xs">
<Text size="sm" c="dimmed">{t('fileManager.title', 'Title')}</Text>
<Text size="sm" fw={500} style={{ maxWidth: '60%', textAlign: 'right' }} truncate>
{currentFile.pdfMetadata.title}
</Text>
</Group>
<Divider />
</>
)}
{currentFile?.pdfMetadata?.author && (
<>
<Group justify="space-between" py="xs">
<Text size="sm" c="dimmed">{t('fileManager.author', 'Author')}</Text>
<Text size="sm" fw={500} style={{ maxWidth: '60%', textAlign: 'right' }} truncate>
{currentFile.pdfMetadata.author}
</Text>
</Group>
<Divider />
</>
)}
{currentFile?.pdfMetadata?.subject && (
<>
<Group justify="space-between" py="xs">
<Text size="sm" c="dimmed">{t('fileManager.subject', 'Subject')}</Text>
<Text size="sm" fw={500} style={{ maxWidth: '60%', textAlign: 'right' }} truncate>
{currentFile.pdfMetadata.subject}
</Text>
</Group>
<Divider />
</>
)}
{currentFile?.pdfMetadata?.creationDate && (
<>
<Group justify="space-between" py="xs">
<Text size="sm" c="dimmed">{t('fileManager.created', 'Created')}</Text>
<Text size="sm" fw={500}>
{new Date(currentFile.pdfMetadata.creationDate).toLocaleDateString()}
</Text>
</Group>
<Divider />
</>
)}
<Group justify="space-between" py="xs">
<Text size="sm" c="dimmed">{t('fileManager.lastModified', 'Last Modified')}</Text>
<Text size="sm" fw={500}>

View File

@ -37,14 +37,4 @@ export interface BaseFileMetadata {
timestamp: number;
}>; // Tool chain for history tracking
// Standard PDF document metadata
pdfMetadata?: {
title?: string;
author?: string;
subject?: string;
creator?: string;
producer?: string;
creationDate?: Date;
modificationDate?: Date;
};
}