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
remove trialing commas
ammarahm-edb2151de5065e
diff --git a/apps/mobile/html/Web.bundle/site/constants.js b/apps/mobile/html/Web.bundle/site/constants.jsindex e1a709b93..ded77646c 100755--- a/apps/mobile/html/Web.bundle/site/constants.js+++ b/apps/mobile/html/Web.bundle/site/constants.js@@ -39,32 +39,32 @@ const markdownPatterns = [{start: '1. ',cmd: 'InsertOrderedList',- value: {'list-style-type': 'decimal'},+ value: {'list-style-type': 'decimal'}},{start: '1) ',cmd: 'InsertOrderedList',- value: {'list-style-type': 'decimal'},+ value: {'list-style-type': 'decimal'}},{start: 'a. ',cmd: 'InsertOrderedList',- value: {'list-style-type': 'lower-alpha'},+ value: {'list-style-type': 'lower-alpha'}},{start: 'a) ',cmd: 'InsertOrderedList',- value: {'list-style-type': 'lower-alpha'},+ value: {'list-style-type': 'lower-alpha'}},{start: 'i. ',cmd: 'InsertOrderedList',- value: {'list-style-type': 'lower-roman'},+ value: {'list-style-type': 'lower-roman'}},{start: 'i) ',cmd: 'InsertOrderedList',- value: {'list-style-type': 'lower-roman'},+ value: {'list-style-type': 'lower-roman'}},{start: '---', replacement: '<hr/>'},{start: '--', replacement: '—'},diff --git a/apps/mobile/html/Web.bundle/site/init.js b/apps/mobile/html/Web.bundle/site/init.jsindex c972bd950..3b9e68a04 100755--- a/apps/mobile/html/Web.bundle/site/init.js+++ b/apps/mobile/html/Web.bundle/site/init.js@@ -1,3 +1,4 @@+attachTitleInputListeners();autosize();function reactNativeEventHandler(type, value) {@@ -5,8 +6,8 @@ function reactNativeEventHandler(type, value) {window.ReactNativeWebView.postMessage(JSON.stringify({type: type,- value: value,- }),+ value: value+ }));}}@@ -134,7 +135,7 @@ function init_tiny(size) {};xhr.open('GET',- tinymce.activeEditor.selection.getNode().getAttribute('src'),+ tinymce.activeEditor.selection.getNode().getAttribute('src'));xhr.send();}@@ -151,7 +152,7 @@ function init_tiny(size) {selectchange();reactNativeEventHandler('history', {undo: editor.undoManager.hasUndo(),- redo: editor.undoManager.hasRedo(),+ redo: editor.undoManager.hasRedo()});});@@ -199,7 +200,7 @@ const onChange = function (event) {reactNativeEventHandler('history', {undo: editor.undoManager.hasUndo(),- redo: editor.undoManager.hasRedo(),+ redo: editor.undoManager.hasRedo()});}, 1);};@@ -244,7 +245,7 @@ function selectchange() {currentFormats.current = {index: range.startOffset,- length: range.endOffset - range.startOffset,+ length: range.endOffset - range.startOffset};currentFormats.fontsize = editor.selection.getNode().style.fontSize;diff --git a/apps/mobile/src/views/Editor/tiny/tiny.js b/apps/mobile/src/views/Editor/tiny/tiny.jsindex c2c015cc4..834a797bf 100644--- a/apps/mobile/src/views/Editor/tiny/tiny.js+++ b/apps/mobile/src/views/Editor/tiny/tiny.js@@ -78,7 +78,7 @@ const updateDateEdited = value => `const updateSavingState = value => `(function() {info = document.querySelector(infoBar);- info.querySelector('#infosaved').innerText = "${value}";+ info.querySelector('#infosaved').innerText = "${value}";})();`;diff --git a/apps/mobile/src/views/Editor/tiny/toolbar/commands.js b/apps/mobile/src/views/Editor/tiny/toolbar/commands.jsindex 911429a93..ac0c1fe7d 100644--- a/apps/mobile/src/views/Editor/tiny/toolbar/commands.js+++ b/apps/mobile/src/views/Editor/tiny/toolbar/commands.js@@ -55,8 +55,7 @@ export const execCommands = {ltr: `tinymce.activeEditor.execCommand('mceDirectionLTR');`,magnify: `tinymce.activeEditor.execCommand('SearchReplace');`,table: (r, c) =>- `- (function() {+ `(function() {let body = tinymce.activeEditor.contentDocument.getElementsByTagName("body")[0];if (body.lastElementChild && body.lastElementChild.innerHTML === tinymce.activeEditor.selection.getNode().innerHTML) {let rng = tinymce.activeEditor.selection.getRng()@@ -67,10 +66,8 @@ export const execCommands = {editor.undoManager.transact(function() {tinymce.activeEditor.execCommand('mceInsertTable', false, { rows: ${r}, columns: ${c} });});-- })();- `,+ })();`,cl: `tinymce.activeEditor.execCommand('InsertCheckList')`,image: async () => {@@ -157,7 +154,7 @@ export const execCommands = {window.ReactNativeWebView.postMessage(JSON.stringify({type: 'imagepreview',- value: blobAsDataUrl,+ value: blobAsDataUrl}));reader.abort();@@ -167,7 +164,7 @@ export const execCommands = {};xhr.open('GET',- tinymce.activeEditor.selection.getNode().getAttribute('src'),+ tinymce.activeEditor.selection.getNode().getAttribute('src'));xhr.send();}@@ -178,7 +175,7 @@ export const execCommands = {if (tinymce.activeEditor.selection.getNode().tagName === 'IMG') {editor.undoManager.transact(function() {tinymce.activeEditor.execCommand('Delete');});}- })+ })();`,};@@ -196,7 +193,7 @@ const handleImageResponse = response => {pTag = "<p></p>"}-minifyImg(+ minifyImg("${b64}",1024,'image/jpeg',@@ -204,9 +201,9 @@ minifyImg(var content = "<img style=" + "max-width:100% !important;" + "src=" + r + ">" + pTag;editor.undoManager.transact(function() {editor.execCommand("mceInsertContent",false,content)});},- 0.6,-);--})();+ 0.6+ );++ })();`);};