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
refactor: remove all extra console.logs
thecodrr1a5d8241e569
diff --git a/apps/web/src/common/db.js b/apps/web/src/common/db.jsindex 55d5c30b5..d6131d97e 100644--- a/apps/web/src/common/db.js+++ b/apps/web/src/common/db.js@@ -8,6 +8,12 @@ var db;function initializeDatabase() {return import("notes-core/api").then(({ default: Database }) => {db = new Database(StorageInterface, EventSource);+ db.host({+ API_HOST: "https://api.notesnook.com",+ AUTH_HOST: "https://auth.streetwriters.co",+ SSE_HOST: "https://events.streetwriters.co",+ });+return db.init();});}@@ -16,12 +22,6 @@ export { db, initializeDatabase };// export const db = new Database(StorageInterface, EventSource);-// // db.host({-// // API_HOST: "https://api.notesnook.com",-// // AUTH_HOST: "https://auth.streetwriters.co",-// // SSE_HOST: "https://events.streetwriters.co",-// // });-// db.host({// API_HOST: "http://localhost:5264",// AUTH_HOST: "http://localhost:8264",diff --git a/apps/web/src/common/upgrade.js b/apps/web/src/common/upgrade.jsindex f436fb73d..bfe14b4ee 100644--- a/apps/web/src/common/upgrade.js+++ b/apps/web/src/common/upgrade.js@@ -48,7 +48,7 @@ async function upgrade(user) {});cart.cart.setCartLockedFlag(true);- cart.cart.checkout().then(console.log); // start checkout process+ cart.cart.checkout(); // start checkout process}export { upgrade };diff --git a/apps/web/src/components/editor/plugins/quickimage/plugin.js b/apps/web/src/components/editor/plugins/quickimage/plugin.jsindex 67e5427a4..d78004206 100644--- a/apps/web/src/components/editor/plugins/quickimage/plugin.js+++ b/apps/web/src/components/editor/plugins/quickimage/plugin.js@@ -16,12 +16,10 @@ import tinymce from "tinymce/tinymce";if (!file) return null;var reader = new FileReader();reader.onload = function (e) {- console.log(e, reader);minifyImg(reader.result,600,(r) => {- console.log(r);var content = `<img src="${r}">`;editor.insertContent(content);reader.onerror = null;diff --git a/apps/web/src/components/note/index.js b/apps/web/src/components/note/index.jsindex 03367e8ab..8fb12e60d 100644--- a/apps/web/src/components/note/index.js+++ b/apps/web/src/components/note/index.js@@ -230,7 +230,6 @@ const topicNoteMenuItems = [title: () => "Remove from topic",color: "red",onClick: async ({ note, context }) => {- console.log("Remove from topic:", Object.isExtensible(note));await db.notebooks.notebook(context.value.id).topics.topic(context.value.topic)diff --git a/apps/web/src/navigation/hash-routes.js b/apps/web/src/navigation/hash-routes.jsindex 2c35c63ae..aef69321b 100644--- a/apps/web/src/navigation/hash-routes.js+++ b/apps/web/src/navigation/hash-routes.js@@ -63,7 +63,6 @@ const hashroutes = {);},"/notes/:noteId/unlock": ({ noteId }) => {- console.log("Unlocking", noteId);return (<RouteContainerbuttons={{diff --git a/apps/web/src/navigation/routes.js b/apps/web/src/navigation/routes.jsindex 8287a47d4..cfc9b3de4 100644--- a/apps/web/src/navigation/routes.js+++ b/apps/web/src/navigation/routes.js@@ -64,7 +64,6 @@ const routes = {type: "topic",value: { id: notebookId, topic: topicId },});- console.log(topic, notebook);return {key: "notes",type: "notes",diff --git a/apps/web/src/stores/user-store.js b/apps/web/src/stores/user-store.jsindex 0fd1ab5c0..b7dd4f017 100644--- a/apps/web/src/stores/user-store.js+++ b/apps/web/src/stores/user-store.js@@ -34,7 +34,6 @@ class UserStore extends BaseStore {});EV.subscribe(EVENTS.appRefreshRequested, () => appStore.refresh());EV.subscribe(EVENTS.userSubscriptionUpdated, (subscription) => {- console.log("USER UPGRAED", subscription);this.set((state) => (state.user.subscription = subscription));});EV.subscribe(EVENTS.userEmailConfirmed, async () => {@@ -42,7 +41,9 @@ class UserStore extends BaseStore {window.location.reload();});- EV.subscribe(EVENTS.databaseSyncRequested, () => this.sync(false));+ EV.subscribe(EVENTS.databaseSyncRequested, async () => {+ await this.sync(false);+ });EV.subscribe(EVENTS.userLoggedOut, async (reason) => {this.set((state) => {state.user = {};