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
update project
ammarahm-ed0d01d6adfbd6
diff --git a/apps/mobile/.gitignore b/apps/mobile/.gitignoreindex f62c13f2e..a21b48b9a 100644--- a/apps/mobile/.gitignore+++ b/apps/mobile/.gitignore@@ -34,8 +34,8 @@ build/.gradlelocal.properties*.iml+web.bundle/web.bundle-# node.js#node_modules/diff --git a/apps/mobile/patches/notes-core+6.17.0.patch b/apps/mobile/patches/notes-core+7.0.0.patchsimilarity index 100%rename from apps/mobile/patches/notes-core+6.17.0.patchrename to apps/mobile/patches/notes-core+7.0.0.patchdiff --git a/apps/mobile/share/share.js b/apps/mobile/share/share.jsindex 9c157077a..f6cf040e1 100644--- a/apps/mobile/share/share.js+++ b/apps/mobile/share/share.js@@ -150,7 +150,7 @@ let defaultNote = {title: null,id: null,content: {- type: 'tiny',+ type: 'tiptap',data: null}};@@ -300,7 +300,7 @@ const ShareView = ({ quicknote = false }) => {eSendEvent(eOnLoadNote + 'shareEditor', {id: null,content: {- type: 'tiny',+ type: 'tiptap',data: noteContent.current}});@@ -323,7 +323,7 @@ const ShareView = ({ quicknote = false }) => {_note = {content: {data: raw.data + '\n' + noteContent.current,- type: 'tiny'+ type: 'tiptap'},id: appendNote.id,sessionId: Date.now()diff --git a/apps/mobile/src/components/mergeconflicts/index.js b/apps/mobile/src/components/mergeconflicts/index.jsindex a7ed64db4..25b666bd8 100644--- a/apps/mobile/src/components/mergeconflicts/index.js+++ b/apps/mobile/src/components/mergeconflicts/index.js@@ -78,12 +78,9 @@ const MergeConflicts = () => {const show = async item => {let noteContent = await db.content.raw(item.contentId);- switch (noteContent.type) {- case 'tiny':- content.current = { ...noteContent };- if (!noteContent.conflicted) {- content.current.conflicted = { ...noteContent };- }+ content.current = { ...noteContent };+ if (!noteContent.conflicted) {+ content.current.conflicted = { ...noteContent };}setVisible(true);};diff --git a/apps/mobile/src/screens/editor/tiptap/commands.ts b/apps/mobile/src/screens/editor/tiptap/commands.tsindex 82f8958d2..3cee24df4 100644--- a/apps/mobile/src/screens/editor/tiptap/commands.ts+++ b/apps/mobile/src/screens/editor/tiptap/commands.ts@@ -78,10 +78,10 @@ class Commands {clearContent = async () => {await this.doAsync(- `-editor.commands.blur();+ `editor.commands.blur();typeof globalThis.editorTitle !== "undefined" && editorTitle.current && editorTitle.current?.blur();-editor?.commands.clearContent(false);+editorController.content && editorController.content.current = null;+editorController.onUpdate();editorController.setTitle(null);typeof globalThis.statusBar !== "undefined" && statusBar.current.set({date:"",saved:""});`diff --git a/apps/mobile/src/screens/editor/tiptap/useEditor.ts b/apps/mobile/src/screens/editor/tiptap/useEditor.tsindex 2dd05f6a1..e3eb0793f 100644--- a/apps/mobile/src/screens/editor/tiptap/useEditor.ts+++ b/apps/mobile/src/screens/editor/tiptap/useEditor.ts@@ -288,13 +288,13 @@ export const useEditor = (if (type === EditorEvents.content) {currentContent.current = {data: content,- type: 'tiny'+ type: 'tiptap'};}let params = {title,data: content,- type: 'tiny',+ type: 'tiptap',sessionId,id: currentNote.current?.id,sessionHistoryId: sessionHistoryId.currentdiff --git a/apps/mobile/src/screens/settings/editor/configuretoolbar.tsx b/apps/mobile/src/screens/settings/editor/configuretoolbar.tsxindex bf8c6eb92..eaa3eb8b5 100644--- a/apps/mobile/src/screens/settings/editor/configuretoolbar.tsx+++ b/apps/mobile/src/screens/settings/editor/configuretoolbar.tsx@@ -16,14 +16,7 @@ export const ConfigureToolbar = () => {const colors = useThemeStore(state => state.colors);const renderGroups = () => {- return data.map((item, index) =>- index === 0 ? (- //@ts-ignore- <View key={item[0]} />- ) : (- <Group key={`group-${index}`} item={item} index={index} />- )- );+ return data.map((item, index) => <Group key={`group-${index}`} item={item} index={index} />);};return (diff --git a/apps/mobile/src/screens/settings/editor/toolbardefinition.ts b/apps/mobile/src/screens/settings/editor/toolbardefinition.tsindex cb12e112d..b94dbd08b 100644--- a/apps/mobile/src/screens/settings/editor/toolbardefinition.ts+++ b/apps/mobile/src/screens/settings/editor/toolbardefinition.ts@@ -1,14 +1,14 @@import { Icons } from 'notesnook-editor/dist/es/toolbar/icons';-import { DEFAULT_TOOLS, getAllTools } from 'notesnook-editor/dist/es/toolbar/tooldefinitions';+import { getDefaultPresets, getAllTools } from 'notesnook-editor/dist/es/toolbar/tooldefinitions';import { ToolId } from 'notesnook-editor/dist/es/toolbar/tools';import { ToolbarGroupDefinition } from 'notesnook-editor/dist/es/toolbar/index';import { useThemeStore } from '../../../stores/use-theme-store';export const tools = getAllTools();export const presets: { [name: string]: ToolbarGroupDefinition[] } = {- default: DEFAULT_TOOLS,- minimal: [...DEFAULT_TOOLS.slice(0, 2)],- custom: [DEFAULT_TOOLS.slice(0)]+ default: getDefaultPresets().default,+ minimal: getDefaultPresets().default,+ custom: []};export function findToolById(id: keyof typeof tools): { title: string; icon: string } {diff --git a/apps/mobile/src/services/notifications.ts b/apps/mobile/src/services/notifications.tsindex 5e4424d1f..4fb03a852 100644--- a/apps/mobile/src/services/notifications.ts+++ b/apps/mobile/src/services/notifications.ts@@ -85,7 +85,7 @@ function init() {await db.init();await db.notes?.add({content: {- type: 'tiny',+ type: 'tiptap',//@ts-ignoredata: `<p>${notification.reply_text} </p>`}