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: do not show first sign up if skipInitiation is true
thecodrree7b389acdc6
diff --git a/apps/web/src/index.js b/apps/web/src/index.jsindex aa1570a4e..1b7618be8 100644--- a/apps/web/src/index.js+++ b/apps/web/src/index.js@@ -5,6 +5,7 @@ import "./index.css";import * as serviceWorker from "./serviceWorkerRegistration";import "./utils/overrides";import { loadTrackerScript } from "./utils/analytics";+import Config from "./utils/config";if (process.env.NODE_ENV === "production") {loadTrackerScript();@@ -13,7 +14,11 @@ if (process.env.NODE_ENV === "production") {initializeDatabase().then(async (db) => {const isLoggedIn = !!(await db.user.getUser());- if (!isLoggedIn && window.location.pathname === "/")+ if (+ !isLoggedIn &&+ window.location.pathname === "/" &&+ !Config.get("skipInitiation", false)+ )window.location.replace("/signup");import("react-dom").then(({ render }) => {diff --git a/apps/web/src/views/auth.js b/apps/web/src/views/auth.jsindex 304e1a787..1e8d60121 100644--- a/apps/web/src/views/auth.js+++ b/apps/web/src/views/auth.js@@ -6,6 +6,7 @@ import Field from "../components/field";import { getQueryParams, navigate, useQueryParams } from "../navigation";import { store as userstore } from "../stores/user-store";import { db } from "../common/db";+import Config from "../utils/config";const features = [{@@ -187,7 +188,10 @@ function Auth(props) {alignItems="center"sx={{ position: "absolute", top: 3, right: 30, cursor: "pointer" }}title="Go to app"- onClick={() => navigate("/")}+ onClick={() => {+ Config.set("skipInitiation", true);+ navigate("/");+ }}><Icon.ArrowRight size={16} /><Text variant="body" ml={1}>