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: updates & fixes
thecodrr31dd6188260d
diff --git a/packages/editor-mobile/package-lock.json b/packages/editor-mobile/package-lock.jsonindex b8f3f2414..bfa032c66 100644--- a/packages/editor-mobile/package-lock.json+++ b/packages/editor-mobile/package-lock.json@@ -14304,7 +14304,7 @@},"node_modules/notesnook-editor": {"version": "0.0.1",- "resolved": "git+ssh://[email protected]/streetwriters/notesnook-editor.git#4aea9e12723c977793cda3c0be687b058ab35a5f",+ "resolved": "git+ssh://[email protected]/streetwriters/notesnook-editor.git#56575d3e30ba6f96923287913460caace938c4dc","dependencies": {"@_ueberdosis/prosemirror-tables": "^1.1.3","@mdi/js": "^6.9.96",@@ -16873,9 +16873,9 @@}},"node_modules/prosemirror-view": {- "version": "1.26.3",- "resolved": "https://registry.npmjs.org/prosemirror-view/-/prosemirror-view-1.26.3.tgz",- "integrity": "sha512-349cR05mXW67xhzmrP1ddEyOCyEuOCkLeo17Bwgw8dWWdGYwT6oTAGJuk/hdc3OSTIUpUPjHLvE4mjP45IIkTg==",+ "version": "1.26.4",+ "resolved": "https://registry.npmjs.org/prosemirror-view/-/prosemirror-view-1.26.4.tgz",+ "integrity": "sha512-Kyu8B/nMJrq7gPpzcIeyl0s4DGLBppTdT/YR2oeAfs6Yf7QZ/S3UeLcueYk7VR4QHPUymu+6w//PI0b/2HTyvQ==","dependencies": {"prosemirror-model": "^1.16.0","prosemirror-state": "^1.0.0",@@ -34152,8 +34152,8 @@}},"notesnook-editor": {- "version": "git+ssh://[email protected]/streetwriters/notesnook-editor.git#4aea9e12723c977793cda3c0be687b058ab35a5f",- "from": "notesnook-editor@https://github.com/streetwriters/notesnook-editor.git#develop",+ "version": "git+ssh://[email protected]/streetwriters/notesnook-editor.git#56575d3e30ba6f96923287913460caace938c4dc",+ "from": "notesnook-editor@github:streetwriters/notesnook-editor#develop","requires": {"@_ueberdosis/prosemirror-tables": "^1.1.3","@mdi/js": "^6.9.96",@@ -36220,9 +36220,9 @@"requires": {}},"prosemirror-view": {- "version": "1.26.3",- "resolved": "https://registry.npmjs.org/prosemirror-view/-/prosemirror-view-1.26.3.tgz",- "integrity": "sha512-349cR05mXW67xhzmrP1ddEyOCyEuOCkLeo17Bwgw8dWWdGYwT6oTAGJuk/hdc3OSTIUpUPjHLvE4mjP45IIkTg==",+ "version": "1.26.4",+ "resolved": "https://registry.npmjs.org/prosemirror-view/-/prosemirror-view-1.26.4.tgz",+ "integrity": "sha512-Kyu8B/nMJrq7gPpzcIeyl0s4DGLBppTdT/YR2oeAfs6Yf7QZ/S3UeLcueYk7VR4QHPUymu+6w//PI0b/2HTyvQ==","requires": {"prosemirror-model": "^1.16.0","prosemirror-state": "^1.0.0",diff --git a/packages/editor-mobile/public/index.html b/packages/editor-mobile/public/index.htmlindex 18b67724b..da192558a 100644--- a/packages/editor-mobile/public/index.html+++ b/packages/editor-mobile/public/index.html@@ -1,56 +1,55 @@<!DOCTYPE html><html style="height: 100%" lang="en">+ <head>+ <meta charset="utf-8" />+ <link rel="icon" href="favicon.ico" />+ <meta name="viewport" content="width=device-width, initial-scale=1" />+ <meta name="theme-color" content="#000000" />+ <link href="fonts.css" rel="stylesheet" />+ <link href="styles.css" rel="stylesheet" />+ <style>+ body {+ height: 100%;+ font-family: "Open Sans";+ }-<head>- <meta charset="utf-8" />- <link rel="icon" href="favicon.ico" />- <meta name="viewport" content="width=device-width, initial-scale=1" />- <meta name="theme-color" content="#000000" />- <link href="fonts.css" rel="stylesheet" />- <link href="styles.css" rel="stylesheet" />- <style>- body {- height: 100%;- font-family: "Open Sans";- }+ p {+ font-family: "Open Sans";+ /* color: var(--nn_pri) ## TODO: use fixed color */+ }- p {- font-family: "Open Sans";- color: var(--nn_pri)- }+ ::selection {+ color: white;+ background-color: var(--nn_accent);+ }- ::selection {- color: white;- background-color: var(--nn_accent);- }+ ::placeholder {+ color: var(--nn_placeholder);+ }- ::placeholder {- color: var(--nn_placeholder)- }+ h1,+ h2,+ h3,+ h4,+ h5,+ h6 {+ font-family: "Open Sans";+ color: var(--nn_heading);+ }- h1,- h2,- h3,- h4,- h5,- h6 {- font-family: "Open Sans";- color: var(--nn_heading)- }-- #root {- height: 100%;- caret-color: var(--nn_accent);- display: flex;- }- </style>- <meta name="description" content="Notesnook editor for mobile" />- <!--+ #root {+ height: 100%;+ caret-color: var(--nn_accent);+ display: flex;+ }+ </style>+ <meta name="description" content="Notesnook editor for mobile" />+ <!--manifest.json provides metadata used when your web app is installed on auser's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/-->- <link rel="manifest" href="manifest.json" />- <!--+ <link rel="manifest" href="manifest.json" />+ <!--Notice the use of %PUBLIC_URL% in the tags above.It will be replaced with the URL of the `public` folder during the build.Only files inside the `public` folder can be referenced from the HTML.@@ -59,13 +58,13 @@work correctly both with client-side routing and a non-root public URL.Learn how to configure a non-root public URL by running `npm run build`.-->- <title>Notesnook editor</title>-</head>+ <title>Notesnook editor</title>+ </head>-<body>- <noscript>You need to enable JavaScript to run this app.</noscript>- <div id="root"></div>- <!--+ <body>+ <noscript>You need to enable JavaScript to run this app.</noscript>+ <div id="root"></div>+ <!--This HTML file is a template.If you open it directly in the browser, you will see an empty page.@@ -75,6 +74,5 @@To begin the development, run `npm start` or `yarn start`.To create a production bundle, use `npm run build` or `yarn build`.-->-</body>--</html>\ No newline at end of file+ </body>+</html>diff --git a/packages/editor-mobile/src/components/editor.tsx b/packages/editor-mobile/src/components/editor.tsxindex eeacd0da2..1897bd169 100644--- a/packages/editor-mobile/src/components/editor.tsx+++ b/packages/editor-mobile/src/components/editor.tsx@@ -173,19 +173,13 @@ const Tiptap = () => {</div>{initialProps.noToolbar ? null : (- <div- style={{- paddingLeft: 10,- paddingTop: 5,- }}- >- <Toolbar- theme={toolbarTheme}- editor={editor}- location="bottom"- tools={[...settings.tools]}- />- </div>+ <Toolbar+ sx={{ pl: "10px", pt: "5px" }}+ theme={toolbarTheme}+ editor={editor}+ location="bottom"+ tools={[...settings.tools]}+ />)}</div></>diff --git a/packages/editor-mobile/src/hooks/useSettings.ts b/packages/editor-mobile/src/hooks/useSettings.tsindex 48c3faff0..695c22dba 100644--- a/packages/editor-mobile/src/hooks/useSettings.ts+++ b/packages/editor-mobile/src/hooks/useSettings.ts@@ -1,5 +1,5 @@-import { DEFAULT_TOOLS } from "notesnook-editor";-import { useEffect, useState } from "react";+import { getDefaultPresets } from "notesnook-editor";+import { useState } from "react";const settingsJson = localStorage.getItem("editorSettings");const initialState = {@@ -7,7 +7,7 @@ const initialState = {fullscreen: false,deviceMode: "mobile",premium: false,- tools: DEFAULT_TOOLS,+ tools: getDefaultPresets().default,noHeader: false,noToolbar: false,};diff --git a/packages/editor-mobile/src/index.css b/packages/editor-mobile/src/index.cssindex cd3d8a490..7fe061cff 100644--- a/packages/editor-mobile/src/index.css+++ b/packages/editor-mobile/src/index.css@@ -1,14 +1,14 @@body {margin: 0;- font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',- 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",+ "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",sans-serif;-webkit-font-smoothing: antialiased;-moz-osx-font-smoothing: grayscale;}code {- font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',+ font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New",monospace;}@@ -16,3 +16,7 @@ input:active,input:focus {outline: none;}++* {+ -webkit-tap-highlight-color: transparent;+}