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
reformat
ammarahm-ed7d94978135e6
diff --git a/apps/mobile/App.js b/apps/mobile/App.jsindex 418040ec0..e609d52fb 100644--- a/apps/mobile/App.js+++ b/apps/mobile/App.js@@ -1,12 +1,12 @@import http from 'notes-core/utils/http';-import React, { useEffect } from 'react';+import React, {useEffect} from 'react';import Orientation from 'react-native-orientation';-import { SafeAreaProvider } from 'react-native-safe-area-context';+import {SafeAreaProvider} from 'react-native-safe-area-context';import SplashScreen from 'react-native-splash-screen';-import { AppRootEvents } from './AppRootEvents';-import { RootView } from './initializer.root';+import {AppRootEvents} from './AppRootEvents';+import {RootView} from './initializer.root';import AppLoader from './src/components/AppLoader';-import { useTracked } from './src/provider';+import {useTracked} from './src/provider';import {initialize,useMessageStore,@@ -14,7 +14,7 @@ import {useSettingStore,useUserStore} from './src/provider/stores';-import { DDS } from './src/services/DeviceDetection';+import {DDS} from './src/services/DeviceDetection';import {eSendEvent,eSubscribeEvent,@@ -22,19 +22,20 @@ import {} from './src/services/EventManager';import Notifications from './src/services/Notifications';import SettingsService from './src/services/SettingsService';-import { Tracker } from './src/utils';-import { db } from './src/utils/DB';-import { eDispatchAction } from './src/utils/Events';-import { MMKV } from './src/utils/mmkv';+import {Tracker} from './src/utils';+import {db} from './src/utils/DB';+import {eDispatchAction} from './src/utils/Events';+import {MMKV} from './src/utils/mmkv';let databaseHasLoaded = false;-async function loadDefaultNotes() {try {const isCreated = await MMKV.getItem('defaultNoteCreated');if (isCreated) return;- const notes = await http.get('https://app.notesnook.com/notes/index_14.json');+ const notes = await http.get(+ 'https://app.notesnook.com/notes/index_14.json'+ );if (!notes) return;for (let note of notes) {const content = await http.get(note.mobileContent);@@ -42,7 +43,7 @@ async function loadDefaultNotes() {title: note.title,headline: note.headline,localOnly: true,- content: {type: 'tiny', data: content},+ content: {type: 'tiny', data: content}});}await MMKV.setItem('defaultNoteCreated', 'yes');@@ -61,8 +62,8 @@ const loadDatabase = async () => {await MMKV.setItem('askForRating',JSON.stringify({- timestamp: Date.now() + 86400000 * 2,- }),+ timestamp: Date.now() + 86400000 * 2+ }));}};@@ -80,7 +81,7 @@ function checkOrientation() {? 'tablet': DDS.isSmallTab? 'smallTablet'- : 'mobile',+ : 'mobile');});}diff --git a/apps/mobile/src/components/ActionSheetComponent/index.js b/apps/mobile/src/components/ActionSheetComponent/index.jsindex 62a0f58ec..0f9452e01 100644--- a/apps/mobile/src/components/ActionSheetComponent/index.js+++ b/apps/mobile/src/components/ActionSheetComponent/index.js@@ -298,7 +298,7 @@ export const ActionSheetComponent = ({tag: note.id});await sleep(1000);- let notifs = await Notifications.get();+ await Notifications.get();checkNotifPinned();}},diff --git a/apps/mobile/src/views/Editor/tiny/toolbar/item.js b/apps/mobile/src/views/Editor/tiny/toolbar/item.jsindex f66cd34db..f48461aee 100644--- a/apps/mobile/src/views/Editor/tiny/toolbar/item.js+++ b/apps/mobile/src/views/Editor/tiny/toolbar/item.js@@ -10,7 +10,7 @@ import {useTracked} from '../../../../provider';import {eSubscribeEvent,eUnSubscribeEvent,- eSendEvent,+ eSendEvent} from '../../../../services/EventManager';import PremiumService from '../../../../services/PremiumService';import {editing, showTooltip, TOOLTIP_POSITIONS} from '../../../../utils';@@ -26,7 +26,7 @@ import {properties,TOOLBAR_ICONS,rgbToHex,- font_names,+ font_names} from './constants';import ToolbarItemPin from './itempin';import ToolbarListFormat from './listformat';@@ -44,7 +44,7 @@ const ToolbarItem = ({groupType,text,formatValue,- fullname,+ fullname}) => {const [state] = useTracked();const {colors} = state;@@ -112,7 +112,7 @@ const ToolbarItem = ({eSendEvent('showTooltip', {data: null,value: data['link'],- type: 'link',+ type: 'link'});return;}@@ -195,7 +195,7 @@ const ToolbarItem = ({eSendEvent(eShowGetPremium, {context: 'editor',title: 'Get Notesnook Pro',- desc: 'Enjoy Full Rich Text Editor with Markdown Support!',+ desc: 'Enjoy Full Rich Text Editor with Markdown Support!'});}return;@@ -232,7 +232,7 @@ const ToolbarItem = ({title: format,default: valueIcon,type: groupType,- pageX: event.nativeEvent.pageX,+ pageX: event.nativeEvent.pageX});return;}@@ -295,7 +295,7 @@ const ToolbarItem = ({justifyContent: 'center',alignItems: 'center',height: normalize(50),- minWidth: 60,+ minWidth: 60}}>{type === 'tooltip' && (<ToolbarItemPin format={format} color={selected && color} />@@ -331,7 +331,7 @@ const ToolbarItem = ({? formatValue: format === 'fontname' && icon !== '-apple-system' && icon? icon- : null,+ : null}}size={text.includes('%') ? SIZE.sm : SIZE.md}>{currentText || text}@@ -359,11 +359,11 @@ const ToolbarItem = ({position: 'absolute',transform: [{- rotateZ: '-45deg',- },+ rotateZ: '-45deg'+ }],top: 0,- right: 0,+ right: 0}}/>)}