Welcome to mirror list, hosted at ThFree Co, Russian Federation.

note.js « browsers « js - github.com/CarnetApp/CarnetNextcloud.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a227c839cd63b68b1a43a1f3432a8a105cd88245 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24


var Note = function(title, text, path, metadata, previews){
    this.title = title;
    this.text = text;
    this.path = path;
    this.previews = previews;
    if(metadata == undefined){
        this.metadata = new NoteMetadata();
        this.metadata.creation_date = Date.now();
        this.metadata.last_modification_date = this.metadata.creation_date;
    }
    else
        this.metadata = metadata;

}

var NoteMetadata = function(){
    this.creation_date = ""
    this.last_modification_date = ""
    this.keywords = []
    this.rating = -1;
}
exports.Note = Note