mirror of
https://github.com/zadam/trilium.git
synced 2025-12-20 22:34:23 +01:00
feat(note_info): separate note type from mime type
This commit is contained in:
parent
bea15c46e5
commit
7222b233f0
@ -825,6 +825,7 @@
|
|||||||
"created": "Created",
|
"created": "Created",
|
||||||
"modified": "Modified",
|
"modified": "Modified",
|
||||||
"type": "Type",
|
"type": "Type",
|
||||||
|
"mime": "MIME type",
|
||||||
"note_size": "Note size",
|
"note_size": "Note size",
|
||||||
"note_size_info": "Note size provides rough estimate of storage requirements for this note. It takes into account note's content and content of its note revisions.",
|
"note_size_info": "Note size provides rough estimate of storage requirements for this note. It takes into account note's content and content of its note revisions.",
|
||||||
"calculate": "calculate",
|
"calculate": "calculate",
|
||||||
|
|||||||
@ -232,7 +232,8 @@ export function NoteInfoBadge({ note, setSimilarNotesShown }: NoteInfoContext) {
|
|||||||
{originalFileName && <NoteInfoValue text={t("file_properties.original_file_name")} value={originalFileName} />}
|
{originalFileName && <NoteInfoValue text={t("file_properties.original_file_name")} value={originalFileName} />}
|
||||||
<NoteInfoValue text={t("note_info_widget.created")} value={formatDateTime(metadata?.dateCreated)} />
|
<NoteInfoValue text={t("note_info_widget.created")} value={formatDateTime(metadata?.dateCreated)} />
|
||||||
<NoteInfoValue text={t("note_info_widget.modified")} value={formatDateTime(metadata?.dateModified)} />
|
<NoteInfoValue text={t("note_info_widget.modified")} value={formatDateTime(metadata?.dateModified)} />
|
||||||
<NoteInfoValue text={t("note_info_widget.type")} value={<span>{note.type} {note.mime && <span>({note.mime})</span>}</span>} />
|
<NoteInfoValue text={t("note_info_widget.type")} value={note.type} />
|
||||||
|
<NoteInfoValue text={t("note_info_widget.mime")} value={note.mime} />
|
||||||
<NoteInfoValue text={t("note_info_widget.note_id")} value={<code>{note.noteId}</code>} />
|
<NoteInfoValue text={t("note_info_widget.note_id")} value={<code>{note.noteId}</code>} />
|
||||||
<NoteInfoValue text={t("note_info_widget.note_size")} title={t("note_info_widget.note_size_info")} value={<NoteSizeWidget {...sizeProps} />} />
|
<NoteInfoValue text={t("note_info_widget.note_size")} title={t("note_info_widget.note_size_info")} value={<NoteSizeWidget {...sizeProps} />} />
|
||||||
</ul>
|
</ul>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user