A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
Feat: expose tags/colors in api
Waqar Ahmed979de6faf070
diff --git a/packages/core/api/index.js b/packages/core/api/index.jsindex 5ea6cdb7d..a17253420 100644--- a/packages/core/api/index.js+++ b/packages/core/api/index.js@@ -1,6 +1,7 @@import Notes from "../collections/notes";import Notebooks from "../collections/notebooks";import Trash from "../collections/trash";+import Tags from "../collections/tags";import User from "../models/user";import Sync from "./sync";@@ -13,9 +14,13 @@ class Database {this.notes = new Notes(this.context);this.trash = new Trash(this.context);this.user = new User(this.context);+ this.tags = new Tags(this.context, "tags");+ this.colors = new Tags(this.context, "colors");await this.notes.init(this.notebooks, this.trash);await this.notebooks.init(this.notes, this.trash);await this.trash.init(this.notes, this.notebooks);+ await this.tags.init();+ await this.colors.init();this.syncer = new Sync(this);}