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
chore: bump version to 1.6.0
thecodrr6790f43b9a95
diff --git a/apps/web/desktop/package.json b/apps/web/desktop/package.jsonindex c82f70814..e0bd099c6 100644--- a/apps/web/desktop/package.json+++ b/apps/web/desktop/package.json@@ -2,7 +2,7 @@"name": "@notesnook/desktop","productName": "Notesnook","description": "Your private note taking space",- "version": "1.5.5",+ "version": "1.6.0","private": true,"main": "./build/electron.js","homepage": "https://notesnook.com/",diff --git a/apps/web/package.json b/apps/web/package.jsonindex 42edf7ce3..e5bf385ff 100644--- a/apps/web/package.json+++ b/apps/web/package.json@@ -1,7 +1,7 @@{"name": "notesnook","description": "Your private note taking space",- "version": "1.5.5",+ "version": "1.6.0","private": true,"main": "./src/App.js","homepage": "https://notesnook.com/",@@ -9,7 +9,7 @@"dependencies": {"@mdi/js": "^5.9.55","@mdi/react": "^1.4.0",- "@notesnook/desktop": "file:./desktop/",+ "@notesnook/desktop": "file:desktop","@rebass/forms": "^4.0.6","@streetwritersco/tinymce-plugins": "^1.3.5","@tinymce/tinymce-react": "^3.13.0",diff --git a/apps/web/src/common/db.js b/apps/web/src/common/db.jsindex 5a426cb9c..b4f6f52e0 100644--- a/apps/web/src/common/db.js+++ b/apps/web/src/common/db.js@@ -18,22 +18,22 @@ async function initializeDatabase() {db = new Database(Storage, EventSource, FS);// if (isTesting()) {- // db.host({- // API_HOST: "https://api.notesnook.com",- // AUTH_HOST: "https://auth.streetwriters.co",- // SSE_HOST: "https://events.streetwriters.co",- // });+ // db.host({+ // API_HOST: "https://api.notesnook.com",+ // AUTH_HOST: "https://auth.streetwriters.co",+ // SSE_HOST: "https://events.streetwriters.co",+ // });// } else {// db.host({// API_HOST: "http://localhost:5264",// AUTH_HOST: "http://localhost:8264",// SSE_HOST: "http://localhost:7264",// });- db.host({- API_HOST: "http://192.168.10.29:5264",- AUTH_HOST: "http://192.168.10.29:8264",- SSE_HOST: "http://192.168.10.29:7264",- });+ // db.host({+ // API_HOST: "http://192.168.10.29:5264",+ // AUTH_HOST: "http://192.168.10.29:8264",+ // SSE_HOST: "http://192.168.10.29:7264",+ // });// }await db.init();diff --git a/apps/web/src/utils/useVersion.js b/apps/web/src/utils/useVersion.jsindex 5efe6dfb6..c23361937 100644--- a/apps/web/src/utils/useVersion.js+++ b/apps/web/src/utils/useVersion.js@@ -1,14 +1,14 @@-import { useEffect, useState } from "react";-import { db } from "../common/db";-import config from "./config";+// import { useEffect, useState } from "react";+// import { db } from "../common/db";+// import config from "./config";var APP_VERSION = {formatted: format(- 1550,+ 1600,process.env.REACT_APP_GIT_HASH,process.env.REACT_APP_PLATFORM),- numerical: 1550,+ numerical: 1600,appUpdated: false,appUpdateable: false,changelog: undefined,@@ -18,16 +18,16 @@ var APP_VERSION = {var CACHED_VERSION = undefined;function useVersion() {- const [version, setVersion] = useState(APP_VERSION);+ // const [version, setVersion] = useState(APP_VERSION);- useEffect(() => {- (async function () {- const version = await getVersion();- setVersion(version);- })();- }, []);+ // useEffect(() => {+ // (async function () {+ // const version = await getVersion();+ // setVersion(version);+ // })();+ // }, []);- return [version, APP_VERSION];+ return [APP_VERSION, APP_VERSION];}export default useVersion;@@ -52,36 +52,36 @@ export function getCachedVersion() {return CACHED_VERSION;}-export async function getVersion() {- try {- var app_version = config.get("app_version");- if (!app_version) {- app_version = APP_VERSION;- config.set("app_version", APP_VERSION);- }- if (APP_VERSION.fetched) return CACHED_VERSION;+// export async function getVersion() {+// try {+// var app_version = config.get("app_version");+// if (!app_version) {+// app_version = APP_VERSION;+// config.set("app_version", APP_VERSION);+// }+// if (APP_VERSION.fetched) return CACHED_VERSION;- const version = await db.version();- if (!version) return APP_VERSION;+// const version = await db.version();+// if (!version) return APP_VERSION;- const changelog = version.web_changelog || version.changelog;- CACHED_VERSION = {- formatted: format(version.web),- numerical: version.web,- appUpdated:- version.web > app_version.numerical &&- APP_VERSION.numerical === version.web,- appUpdateable: version.web > APP_VERSION.numerical,- updateSeverity: version.severity,- changelog: !changelog ? undefined : changelog,- fetched: true,- };- if (CACHED_VERSION.appUpdated) {- config.set("app_version", CACHED_VERSION);- }- return CACHED_VERSION;- } catch (e) {- console.error(e);- }- return APP_VERSION;-}+// const changelog = version.web_changelog || version.changelog;+// CACHED_VERSION = {+// formatted: format(version.web),+// numerical: version.web,+// appUpdated:+// version.web > app_version.numerical &&+// APP_VERSION.numerical === version.web,+// appUpdateable: version.web > APP_VERSION.numerical,+// updateSeverity: version.severity,+// changelog: !changelog ? undefined : changelog,+// fetched: true,+// };+// if (CACHED_VERSION.appUpdated) {+// config.set("app_version", CACHED_VERSION);+// }+// return CACHED_VERSION;+// } catch (e) {+// console.error(e);+// }+// return APP_VERSION;+// }