mirror of
https://github.com/zadam/trilium.git
synced 2024-09-30 12:35:59 +08:00
33 lines
866 B
JavaScript
33 lines
866 B
JavaScript
import NoteShort from './note_short.js';
|
|
|
|
/**
|
|
* Represents full note, specifically including note's content.
|
|
*/
|
|
class NoteFull extends NoteShort {
|
|
constructor(treeCache, row, noteShort) {
|
|
super(treeCache, row, []);
|
|
|
|
/** @param {string} */
|
|
this.content = row.content;
|
|
|
|
/** @param {string} */
|
|
this.dateCreated = row.dateCreated;
|
|
|
|
/** @param {string} */
|
|
this.dateModified = row.dateModified;
|
|
|
|
/** @param {string} */
|
|
this.utcDateCreated = row.utcDateCreated;
|
|
|
|
/** @param {string} */
|
|
this.utcDateModified = row.utcDateModified;
|
|
|
|
/* ugly */
|
|
this.parents = noteShort.parents;
|
|
this.parentToBranch = noteShort.parentToBranch;
|
|
this.children = noteShort.children;
|
|
this.childToBranch = noteShort.childToBranch;
|
|
}
|
|
}
|
|
|
|
export default NoteFull; |