From f9a93d61ab5e4cf74058ecef3cb0f480574998fa Mon Sep 17 00:00:00 2001 From: Ben Date: Sat, 15 Sep 2018 11:21:58 +0100 Subject: [PATCH] started note abstractions --- package.json | 1 + src/models/notes/groups.js | 2 +- src/models/notes/notes.js | 27 +++++++++++++++++++++++++++ 3 files changed, 29 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 612a6c4..9c61609 100644 --- a/package.json +++ b/package.json @@ -23,6 +23,7 @@ "webpack-cli": "^3.1.0" }, "scripts": { + "start": "node index.js", "test": "echo \"Error: no test specified\" && exit 1" }, "author": "Ben (plane000)", diff --git a/src/models/notes/groups.js b/src/models/notes/groups.js index cefe690..4369ccf 100644 --- a/src/models/notes/groups.js +++ b/src/models/notes/groups.js @@ -1,3 +1,3 @@ export class Groups { - + constructor() { } } diff --git a/src/models/notes/notes.js b/src/models/notes/notes.js index bb96204..5471d43 100644 --- a/src/models/notes/notes.js +++ b/src/models/notes/notes.js @@ -1,5 +1,32 @@ import {Groups} from './groups'; +import {Database} from '../database/database'; 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) { + + } }