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: fix all warnings
thecodrrc278de182cf6
diff --git a/apps/web/src/app-effects.js b/apps/web/src/app-effects.jsindex a08da65cc..3408ea1c9 100644--- a/apps/web/src/app-effects.js+++ b/apps/web/src/app-effects.js@@ -2,7 +2,6 @@ import React, { useEffect } from "react";import { useStore } from "./stores/app-store";import { useStore as useUserStore } from "./stores/user-store";import { useStore as useNotesStore } from "./stores/note-store";-import useVersion, { getCachedVersion } from "./utils/useVersion";import { resetReminders } from "./common/reminders";import { introduceFeatures } from "./common";import { db } from "./common/db";@@ -22,19 +21,6 @@ function AppEffects({ isMobile, isTablet, setShow, slideToIndex }) {const initUser = useUserStore((store) => store.init);const initNotes = useNotesStore((store) => store.init);const setIsVaultCreated = useStore((store) => store.setIsVaultCreated);- // const [version] = useVersion();-- // useEffect(() => {- // (async function () {- // const cached = getCachedVersion();- // if (!cached) return;- // await import("./common/dialogcontroller").then((dialogs) => {- // if (cached.appUpdated) return dialogs.showAppUpdatedNotice(cached);- // else if (cached.appUpdateable)- // return dialogs.showAppAvailableNotice(cached);- // });- // })();- // }, [version]);useEffect(function initializeApp() {diff --git a/apps/web/src/common/db.js b/apps/web/src/common/db.jsindex d4c09325b..2966b9eab 100644--- a/apps/web/src/common/db.js+++ b/apps/web/src/common/db.js@@ -18,10 +18,16 @@ function initializeDatabase() {// SSE_HOST: "https://events.streetwriters.co",// });+ // db.host({+ // API_HOST: "http://localhost:5264",+ // AUTH_HOST: "http://localhost:8264",+ // SSE_HOST: "http://localhost:7264",+ // });+db.host({- API_HOST: "http://localhost:5264",- AUTH_HOST: "http://localhost:8264",- SSE_HOST: "http://localhost:7264",+ API_HOST: "http://192.168.10.23:5264",+ AUTH_HOST: "http://192.168.10.23:8264",+ SSE_HOST: "http://192.168.10.23:7264",});await db.init();diff --git a/apps/web/src/components/navigation-menu/index.js b/apps/web/src/components/navigation-menu/index.jsindex d3860b202..0af12cf40 100644--- a/apps/web/src/components/navigation-menu/index.js+++ b/apps/web/src/components/navigation-menu/index.js@@ -6,9 +6,8 @@ import { useStore as useUserStore } from "../../stores/user-store";import { useStore as useThemeStore } from "../../stores/theme-store";import Animated from "../animated";import NavigationItem from "./navigation-item";-import { hashNavigate, navigate } from "../../navigation";+import { navigate } from "../../navigation";import { toTitleCase } from "../../utils/string";-import { COLORS } from "../../common";import { db } from "../../common/db";import useMobile from "../../utils/use-mobile";import { useLocation } from "wouter";diff --git a/apps/web/src/components/note/index.js b/apps/web/src/components/note/index.jsindex 58da953df..e9421e3ce 100644--- a/apps/web/src/components/note/index.js+++ b/apps/web/src/components/note/index.js@@ -5,7 +5,6 @@ import TimeAgo from "timeago-react";import ListItem from "../list-item";import { showMoveNoteDialog } from "../../common/dialog-controller";import { store, useStore } from "../../stores/note-store";-import { COLORS } from "../../common";import { db } from "../../common/db";import Colors from "../menu/colors";import { showExportDialog } from "../../common/dialog-controller";