mirror of
https://github.com/zadam/trilium.git
synced 2025-11-06 13:26:01 +01:00
shaca now loads attributes, added favicon and shareJs
This commit is contained in:
@@ -410,6 +410,19 @@ class Note extends AbstractEntity {
|
||||
|
||||
return sharedAlias || this.noteId;
|
||||
}
|
||||
|
||||
getPojoWithAttributes() {
|
||||
return {
|
||||
noteId: this.noteId,
|
||||
title: this.title,
|
||||
type: this.type,
|
||||
mime: this.mime,
|
||||
utcDateModified: this.utcDateModified,
|
||||
attributes: this.getAttributes().map(attr => attr.getPojo()),
|
||||
parentNoteIds: this.parents.map(parentNote => parentNote.noteId),
|
||||
childNoteIds: this.children.map(child => child.noteId)
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = Note;
|
||||
|
||||
Reference in New Issue
Block a user