mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-22 22:49:45 +01:00
refactor: fix all warnings
This commit is contained in:
@@ -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() {
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user