shaca now loads attributes, added favicon and shareJs

This commit is contained in:
zadam
2022-01-01 13:23:09 +01:00
parent dad82ea4e8
commit 1fed71a92e
8 changed files with 86 additions and 34 deletions

View File

@@ -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;