started note abstractions
This commit is contained in:
@@ -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)",
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
export class Groups {
|
export class Groups {
|
||||||
|
constructor() { }
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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) {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user