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: upgrade packages and improve build perf
thecodrr60300c2da17b
diff --git a/apps/web/.env-cmdrc.js b/apps/web/.env-cmdrc.jsindex 7e610ecd7..ccda0d189 100644--- a/apps/web/.env-cmdrc.js+++ b/apps/web/.env-cmdrc.js@@ -1,8 +1,15 @@const { execSync } = require("child_process");+const { cpus } = require("os");+const NUM_CPUS = cpus().length;+const IS_CI = process.env.CI;const gitHash = execSync("git rev-parse --short HEAD").toString().trim();module.exports = {all: {+ UV_THREADPOOL_SIZE: IS_CI ? NUM_CPUS : 2,+ GENERATE_SOURCEMAP: false,+ INLINE_RUNTIME_CHUNK: false,+ DISABLE_ESLINT_PLUGIN: true,REACT_APP_GIT_HASH: gitHash,},dev: {diff --git a/apps/web/package.json b/apps/web/package.jsonindex 3ae72a3a8..203454790 100644--- a/apps/web/package.json+++ b/apps/web/package.json@@ -11,7 +11,7 @@"@mdi/react": "^1.4.0","@notesnook/desktop": "file:./desktop/","@rebass/forms": "^4.0.6",- "@streetwritersco/tinymce-plugins": "^1.3.1",+ "@streetwritersco/tinymce-plugins": "^1.3.2","@tinymce/tinymce-react": "^3.13.0","axios": "^0.21.4","clipboard-polyfill": "^3.0.3",@@ -72,6 +72,7 @@"eslint-plugin-jsx-a11y": "^6.2.3","eslint-plugin-react": "^7.22.0","eslint-plugin-react-hooks": "^4.2.0",+ "file-loader": "^6.2.0","find-process": "^1.4.4","patch-package": "^6.4.7","source-map-explorer": "^2.5.2",diff --git a/apps/web/public/index.html b/apps/web/public/index.htmlindex 515f2b2fc..8db866bbe 100644--- a/apps/web/public/index.html+++ b/apps/web/public/index.html@@ -6,7 +6,7 @@/security#csp-meta-tag --><metahttp-equiv="Content-Security-Policy"- content="script-src 'self' https://analytics.streetwriters.co https://cdn.paddle.com 'unsafe-inline' 'unsafe-eval';"+ content="script-src 'self' https://analytics.streetwriters.co https://cdn.paddle.com https://cdnjs.cloudflare.com 'unsafe-inline' 'unsafe-eval';"/><linkrel="apple-touch-icon"diff --git a/apps/web/src/common/db.js b/apps/web/src/common/db.jsindex 7101b9421..7eb54d5ca 100644--- a/apps/web/src/common/db.js+++ b/apps/web/src/common/db.js@@ -1,6 +1,5 @@import StorageInterface from "../interfaces/storage";import FS from "../interfaces/fs";-import EventSource from "eventsource";import Config from "../utils/config";import http from "notes-core/utils/http";import { EV, EVENTS } from "notes-core/common";diff --git a/apps/web/src/components/editor/tinymce.js b/apps/web/src/components/editor/tinymce.jsindex a82f9c7c3..b0e6cc087 100644--- a/apps/web/src/components/editor/tinymce.js+++ b/apps/web/src/components/editor/tinymce.js@@ -3,8 +3,10 @@ import "./editor.css";import "@streetwritersco/tinymce-plugins/codeblock/styles.css";import "@streetwritersco/tinymce-plugins/collapsibleheaders/styles.css";import "tinymce/tinymce";-import "tinymce/icons/default";-import "tinymce/themes/silver";+// eslint-disable-next-line import/no-webpack-loader-syntax+import "file-loader?name=static/js/icons/default/icons.js&esModule=false!tinymce/icons/default/icons.min.js";+// eslint-disable-next-line import/no-webpack-loader-syntax+import "file-loader?name=static/js/themes/silver/theme.js&esModule=false!tinymce/themes/silver/theme.min.js";import "tinymce/plugins/table";import "tinymce/plugins/autoresize";import "tinymce/plugins/searchreplace";