feat(doc): Unterstützung für benutzerdefinierte Dokumentattribute hinzufügen

This commit is contained in:
tekh 2025-07-14 13:56:36 +02:00
parent 8d7615fb37
commit d5d82a5a1e

View File

@ -22,6 +22,11 @@ const validExtensions: FileFormat[] = [
'png', 'svg', 'zip', 'md'
];
type DocAttribute = {
name: string;
serilizedValue: string;
}
export class Doc {
static map(source?: Partial<Doc>): Doc {
@ -37,6 +42,7 @@ export class Doc {
addedWho!: string;
changedWhen?: Date;
changedWho?: string;
attributes: Array<DocAttribute> = [];
getChangedInfo(separator: string = " | "): string | null {
const who = this.changedWho?.trim();