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 Biometric auth strings
ammarahm-ed70eb1e40a599
diff --git a/apps/mobile/src/services/BiometricService.js b/apps/mobile/src/services/BiometricService.jsindex 21d844db4..02c05dcf0 100644--- a/apps/mobile/src/services/BiometricService.js+++ b/apps/mobile/src/services/BiometricService.js@@ -47,18 +47,17 @@ async function hasInternetCredentials() {return await Keychain.hasInternetCredentials('nn_vault');}-async function getCredentials() {+async function getCredentials(title,description) {try {await FingerprintScanner.authenticate(Platform.select({ios: {fallbackEnabled: true,- description:- 'Biometrics are required to unlock note.',+ description:description,},android: {- title: 'Unlock Note',- description: 'Biometrics are required to unlock note.',+ title: title,+ description: description,deviceCredentialAllowed: true,},}),diff --git a/apps/mobile/src/views/Editor/Functions.js b/apps/mobile/src/views/Editor/Functions.jsindex 0a0bd7562..c065d4932 100644--- a/apps/mobile/src/views/Editor/Functions.js+++ b/apps/mobile/src/views/Editor/Functions.js@@ -1,23 +1,23 @@-import {createRef} from 'react';-import {Linking, Platform} from 'react-native';-import {updateEvent} from '../../components/DialogManager/recievers';-import {Actions} from '../../provider/Actions';-import {DDS} from '../../services/DeviceDetection';-import {eSendEvent, sendNoteEditedEvent} from '../../services/EventManager';-import {editing} from '../../utils';-import {COLORS_NOTE, COLOR_SCHEME} from '../../utils/Colors';-import {hexToRGBA} from '../../utils/ColorUtils';-import {db} from '../../utils/DB';+import { createRef } from 'react';+import { Platform } from 'react-native';+import { updateEvent } from '../../components/DialogManager/recievers';+import { Actions } from '../../provider/Actions';+import { DDS } from '../../services/DeviceDetection';+import { eSendEvent, sendNoteEditedEvent } from '../../services/EventManager';+import Navigation from '../../services/Navigation';+import { editing } from '../../utils';+import { COLORS_NOTE, COLOR_SCHEME } from '../../utils/Colors';+import { hexToRGBA } from '../../utils/ColorUtils';+import { db } from '../../utils/DB';import {eOnLoadNote,- eShowGetPremium,- refreshNotesPage,+ eShowGetPremium} from '../../utils/Events';-import {openLinkInBrowser} from '../../utils/functions';-import {MMKV} from '../../utils/mmkv';-import {sideMenuRef, tabBarRef} from '../../utils/Refs';-import {normalize} from '../../utils/SizeUtils';-import {sleep, timeConverter} from '../../utils/TimeUtils';+import { openLinkInBrowser } from '../../utils/functions';+import { MMKV } from '../../utils/mmkv';+import { tabBarRef } from '../../utils/Refs';+import { normalize } from '../../utils/SizeUtils';+import { sleep, timeConverter } from '../../utils/TimeUtils';import tiny from './tiny/tiny';export let EditorWebView = createRef();@@ -371,8 +371,11 @@ async function addToCollection(id) {editing.actionAfterFirstSave = {type: null,};- updateEvent({type: Actions.NOTEBOOKS});- eSendEvent(refreshNotesPage);+ Navigation.setRoutesToUpdate([+ Navigation.routeNames.Notebooks,+ Navigation.routeNames.NotesPage,+ Navigation.routeNames.Notebook,+ ]);break;}case 'tag': {@@ -380,9 +383,10 @@ async function addToCollection(id) {editing.actionAfterFirstSave = {type: null,};-- updateEvent({type: Actions.TAGS});- eSendEvent(refreshNotesPage);+ Navigation.setRoutesToUpdate([+ Navigation.routeNames.Tags,+ Navigation.routeNames.NotesPage,+ ]);break;}case 'color': {@@ -391,7 +395,7 @@ async function addToCollection(id) {editing.actionAfterFirstSave = {type: null,};- eSendEvent(refreshNotesPage);+ Navigation.setRoutesToUpdate([Navigation.routeNames.NotesPage]);updateEvent({type: Actions.COLORS});break;}@@ -421,11 +425,13 @@ export async function saveNote() {if (!locked) {let noteId = await db.notes.add(noteData);if (!id || saveCounter < 3) {- updateEvent({- type: Actions.NOTES,- });+ Navigation.setRoutesToUpdate([+ Navigation.routeNames.Notes,+ Navigation.routeNames.Favorites,+ Navigation.routeNames.NotesPage,+ Navigation.routeNames.Notebook,+ ]);updateEvent({type: Actions.CURRENT_EDITING_NOTE, id: noteId});- eSendEvent(refreshNotesPage);}if (!id) {diff --git a/apps/mobile/src/views/Tags/index.js b/apps/mobile/src/views/Tags/index.jsindex a6c00494a..6190599eb 100644--- a/apps/mobile/src/views/Tags/index.js+++ b/apps/mobile/src/views/Tags/index.js@@ -107,7 +107,7 @@ export const Tags = ({route, navigation}) => {loading={loading}focused={() => navigation.isFocused()}placeholderData={{- heading: 'Your Tags',+ heading: 'Your tags',paragraph: 'You have not created any tags for your notes yet.',button: null,loading: 'Loading your tags.',