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
cleanup
ammarahm-edb4ec7136aece
diff --git a/apps/mobile/src/components/NotebookItem/index.js b/apps/mobile/src/components/NotebookItem/index.jsindex 39ad7c277..254faef7f 100644--- a/apps/mobile/src/components/NotebookItem/index.js+++ b/apps/mobile/src/components/NotebookItem/index.js@@ -243,7 +243,7 @@ export const NotebookItem = ({onPress={async () => {let noteIds = [];selectedItemsList.forEach(item => noteIds.push(item.id));- console.log(noteIds);+db.notes.move({topic: item.title,diff --git a/apps/mobile/src/components/NotesList/index.js b/apps/mobile/src/components/NotesList/index.jsindex 60065356f..32400deaa 100644--- a/apps/mobile/src/components/NotesList/index.js+++ b/apps/mobile/src/components/NotesList/index.js@@ -194,7 +194,7 @@ export const NotesList = ({isGrouped = false}) => {);const _listKeyExtractor = (item, index) => item.id.toString();- console.log(notes);+return isGrouped && searchResults.length === 0 ? (<SectionListref={ref => (sectionListRef = ref)}diff --git a/apps/mobile/src/provider/reducer.js b/apps/mobile/src/provider/reducer.jsindex 8d4367152..50c2c2571 100644--- a/apps/mobile/src/provider/reducer.js+++ b/apps/mobile/src/provider/reducer.js@@ -1,5 +1,5 @@import {db} from '../../App';-import {SideMenuEvent} from '../utils/utils';+import {SideMenuEvent, history} from '../utils/utils';import {ACTIONS} from './actions';export const reducer = (state, action) => {@@ -99,13 +99,14 @@ export const reducer = (state, action) => {} else {selectedItems.push(action.item);}-+ history.selectedItemsList = selectedItems;return {...state,selectedItemsList: selectedItems,};}case ACTIONS.CLEAR_SELECTION: {+ history.selectedItemsList = [];return {...state,selectedItemsList: [],diff --git a/apps/mobile/src/services/validation.js b/apps/mobile/src/services/validation.jsindex de3e5f9dc..95bf33840 100644--- a/apps/mobile/src/services/validation.js+++ b/apps/mobile/src/services/validation.js@@ -1,26 +1,18 @@-import {ToastEvent} from '../utils/utils';-let regex = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/;export function validateEmail(email) {if (email && email.length > 0) {- ToastEvent.show('Please enter a valid email address');return regex.test(email);} else {- ToastEvent.show('Please enter email or passoword to login');return false;}}export function validatePass(password) {if (password && password.length <= 0) {- ToastEvent.show('No password provided');-return false;}if (password && password.length < 8 && password.length > 0) {- ToastEvent.show('Password too short');-return false;} else if (password && password.length > 8 && password.length > 0) {return true;@@ -30,10 +22,8 @@ export function validatePass(password) {export function validateUsername(username) {let regex = /^[a-z0-9_-]{3,16}$/gim;if (username && username.length > 0) {- //ToastEvent.show('Please enter a valid email address');return regex.test(username);} else {- //ToastEvent.show('Please enter email or passoword to login');return false;}}