mirror of
https://github.com/Stirling-Tools/Stirling-PDF.git
synced 2025-09-18 09:29:24 +00:00
Remove unused metadata type
This commit is contained in:
parent
9c49cf9584
commit
bd6c9042d3
@ -53,55 +53,6 @@ const FileInfoCard: React.FC<FileInfoCardProps> = ({
|
|||||||
</Group>
|
</Group>
|
||||||
<Divider />
|
<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">
|
<Group justify="space-between" py="xs">
|
||||||
<Text size="sm" c="dimmed">{t('fileManager.lastModified', 'Last Modified')}</Text>
|
<Text size="sm" c="dimmed">{t('fileManager.lastModified', 'Last Modified')}</Text>
|
||||||
<Text size="sm" fw={500}>
|
<Text size="sm" fw={500}>
|
||||||
|
@ -37,14 +37,4 @@ export interface BaseFileMetadata {
|
|||||||
timestamp: number;
|
timestamp: number;
|
||||||
}>; // Tool chain for history tracking
|
}>; // Tool chain for history tracking
|
||||||
|
|
||||||
// Standard PDF document metadata
|
|
||||||
pdfMetadata?: {
|
|
||||||
title?: string;
|
|
||||||
author?: string;
|
|
||||||
subject?: string;
|
|
||||||
creator?: string;
|
|
||||||
producer?: string;
|
|
||||||
creationDate?: Date;
|
|
||||||
modificationDate?: Date;
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user