trilium/src/public/javascripts/entities/note_full.js

33 lines
866 B
JavaScript
Raw Normal View History

2018-03-26 11:25:17 +08:00
import NoteShort from './note_short.js';
2018-08-23 18:55:45 +08:00
/**
* Represents full note, specifically including note's content.
*/
2018-03-26 11:25:17 +08:00
class NoteFull extends NoteShort {
2019-10-26 15:51:08 +08:00
constructor(treeCache, row, noteShort) {
super(treeCache, row, []);
2018-03-26 11:25:17 +08:00
2018-08-23 18:55:45 +08:00
/** @param {string} */
this.content = row.content;
2018-03-26 11:25:17 +08:00
/** @param {string} */
this.dateCreated = row.dateCreated;
/** @param {string} */
this.dateModified = row.dateModified;
2019-02-15 03:56:33 +08:00
/** @param {string} */
2019-03-13 03:58:31 +08:00
this.utcDateCreated = row.utcDateCreated;
2019-02-15 03:56:33 +08:00
/** @param {string} */
2019-03-13 03:58:31 +08:00
this.utcDateModified = row.utcDateModified;
2019-10-26 15:51:08 +08:00
/* ugly */
this.parents = noteShort.parents;
this.parentToBranch = noteShort.parentToBranch;
this.children = noteShort.children;
this.childToBranch = noteShort.childToBranch;
2018-03-26 11:25:17 +08:00
}
}
export default NoteFull;