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
ammarahm-ed2eca9d73960d
diff --git a/apps/mobile/html/Web.bundle/loader.html b/apps/mobile/html/Web.bundle/loader.htmlindex 8b82c4fcf..adada6e45 100755--- a/apps/mobile/html/Web.bundle/loader.html+++ b/apps/mobile/html/Web.bundle/loader.html@@ -1,2 +1 @@-<!-- You can style this into a Splash Loading screen --><a id="progress-bar" href="#"></a>\ No newline at end of filediff --git a/apps/mobile/src/common/common.js b/apps/mobile/src/common/common.jsindex f54cbe1af..784064fb9 100755--- a/apps/mobile/src/common/common.js+++ b/apps/mobile/src/common/common.js@@ -83,19 +83,22 @@ const getDpi = pd => {let multiplier = pd / 1.5;return 240 * multiplier;} else if (pd > 1.5 && pd <= 2) {- let multiplier = pd / 1.5;+ let multiplier = pd / 2;return 320 * multiplier;} else if (pd > 2 && pd <= 3) {let multiplier = pd / 3;return 480 * multiplier;- } else if (pd > 3) {- return 510;+ } else if (pd > 3 && pd <= 3.5) {+ let multiplier = pd / 3.5;+ return 520 * multiplier;+ } else if (pd > 3.5) {+ return 550;}};const correction = (size, multiplier) => {let dSize = getDeviceSize();-+ console.log(getDeviceSize());if (dSize > 4 && dSize <= 5.3 && pixelDensity <= 3) {return size * 0.87;} else if (dSize > 5.5 && dSize < 6.5 && pixelDensity <= 3) {@@ -115,6 +118,7 @@ const correction = (size, multiplier) => {export const normalize = size => {let pd = pixelDensity;+ console.log(pd);if (pd === 1 || pd < 1) {return correction(size, 0.75);diff --git a/apps/mobile/src/views/Editor/index.js b/apps/mobile/src/views/Editor/index.jsindex ea6983005..9d2e10afe 100755--- a/apps/mobile/src/views/Editor/index.js+++ b/apps/mobile/src/views/Editor/index.js@@ -214,7 +214,7 @@ const Editor = ({navigation, noMenu}) => {const onWebViewLoad = () => {console.log('requesting focus');- EditorWebView.requestFocus();+ //EditorWebView.requestFocus();if (noMenu) {post(JSON.stringify({@@ -279,14 +279,13 @@ const Editor = ({navigation, noMenu}) => {};const params = 'platform=' + Platform.OS;-const sourceUri =(Platform.OS === 'android' ? 'file:///android_asset/' : '') +'Web.bundle/loader.html';const injectedJS = `if (!window.location.search) {- var link = document.getElementById('progress-bar');- link.href = './site/index.html?${params}';- link.click();+ var link = document.getElementById('progress-bar');+ link.href = './site/index.html?${params}';+ link.click();}`;const _renderEditor = () => {@@ -405,7 +404,7 @@ const Editor = ({navigation, noMenu}) => {ref={ref => (EditorWebView = ref)}onError={error => console.log(error)}onLoad={onWebViewLoad}- javaScriptEnabled+ javaScriptEnabled={true}injectedJavaScript={Platform.OS === 'ios' ? injectedJS : null}onShouldStartLoadWithRequest={_onShouldStartLoadWithRequest}renderLoading={() => (@@ -417,19 +416,20 @@ const Editor = ({navigation, noMenu}) => {}}/>)}- cacheMode="LOAD_CACHE_ELSE_NETWORK"+ cacheMode="LOAD_DEFAULT"cacheEnabled={true}- domStorageEnabled+ domStorageEnabled={true}scrollEnabled={false}bounces={false}allowFileAccess={true}scalesPageToFit={true}+ allowingReadAccessToURL={Platform.OS === 'android' ? true : null}allowFileAccessFromFileURLs={true}allowUniversalAccessFromFileURLs={true}- originWhitelist={'*'}+ originWhitelist={['*']}source={Platform.OS === 'ios'- ? sourceUri+ ? {uri: sourceUri}: {uri: 'file:///android_asset/texteditor.html',baseUrl: 'file:///android_asset/',