started note abstractions

This commit is contained in:
Ben
2018-09-15 11:21:58 +01:00
parent a880ea15af
commit f9a93d61ab
3 changed files with 29 additions and 1 deletions

View File

@@ -23,6 +23,7 @@
"webpack-cli": "^3.1.0" "webpack-cli": "^3.1.0"
}, },
"scripts": { "scripts": {
"start": "node index.js",
"test": "echo \"Error: no test specified\" && exit 1" "test": "echo \"Error: no test specified\" && exit 1"
}, },
"author": "Ben (plane000)", "author": "Ben (plane000)",

View File

@@ -1,3 +1,3 @@
export class Groups { export class Groups {
constructor() { }
} }

View File

@@ -1,5 +1,32 @@
import {Groups} from './groups'; import {Groups} from './groups';
import {Database} from '../database/database';
export class Notes extends Groups { export class Notes extends Groups {
static async newNote(id, content, creatorid, order) {
Database.notes.newNote(id, null, )
}
static async getNoteByEndpoint(endpoint) {
}
static async makeNotePerma(id, endpoint) {
}
static async newGroupedNote(id, content, creatorid, order, parentgroup) {
}
static async reorderNote(id, newPosition) {
}
static async regroupNote(id, groupid) {
}
static async deleteNote(id) {
}
} }