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 console.log
ammarahm-eda7f1805ffa53
diff --git a/apps/mobile/App.js b/apps/mobile/App.jsindex 468961c1f..b62f80bcc 100644--- a/apps/mobile/App.js+++ b/apps/mobile/App.js@@ -53,7 +53,6 @@ let {width, height} = Dimensions.get('window');const onAppStateChanged = async (state) => {if (state === 'active') {- console.log('active state');StatusBar.setBarStyle(COLOR_SCHEME.night ? 'light-content' : 'dark-content',true,@@ -164,7 +163,6 @@ const App = () => {(async () => {try {await db.init();- console.log('db is initialized');} catch (e) {error = e;console.log(e, 'ERROR DB');diff --git a/apps/mobile/RootView.js b/apps/mobile/RootView.jsindex 5157cdc64..2fcf144bf 100644--- a/apps/mobile/RootView.js+++ b/apps/mobile/RootView.js@@ -29,7 +29,6 @@ import {getIntent, getNote, post} from './src/views/Editor/Functions';let {width, height} = Dimensions.get('window');const onChangeTab = async (obj) => {- console.log('tab changed');if (obj.i === 1) {eSendEvent(eCloseSideMenu);if (getIntent()) return;diff --git a/apps/mobile/android/app/src/main/assets/constants.js b/apps/mobile/android/app/src/main/assets/constants.jsindex cd287f8a9..2605b6335 100644--- a/apps/mobile/android/app/src/main/assets/constants.js+++ b/apps/mobile/android/app/src/main/assets/constants.js@@ -513,7 +513,7 @@ function fixDropdownMenuLocations() {document.getElementById(dropdown).style.top = downTop + 20;document.getElementById(dropdown).style.left = left;- //console.log('called',downTop + 20,left);+});}}diff --git a/apps/mobile/html/Web.bundle/site/constants.js b/apps/mobile/html/Web.bundle/site/constants.jsindex 4ed677c83..190609f88 100644--- a/apps/mobile/html/Web.bundle/site/constants.js+++ b/apps/mobile/html/Web.bundle/site/constants.js@@ -445,7 +445,7 @@ function fixDropdownMenuLocations() {if (!evt.target.offsetParent) {let _myLocalElement = evt.target.parentElement;- console.log(_myLocalElement)+var rect = _myLocalElement.getBoundingClientRect();evtItemWidth = _myLocalElement.offsetParent.offsetWidth;evtItemHeight = _myLocalElement.offsetParent.offsetHeight;@@ -479,7 +479,6 @@ function fixDropdownMenuLocations() {left = left - (wDiff / 2);}- console.log('position changing')dropDownFixPosition('.ql-picker-label',diff --git a/apps/mobile/src/components/ActionSheetComponent/ActionSheetTagsSection.js b/apps/mobile/src/components/ActionSheetComponent/ActionSheetTagsSection.jsindex 60d666de0..9def51453 100644--- a/apps/mobile/src/components/ActionSheetComponent/ActionSheetTagsSection.js+++ b/apps/mobile/src/components/ActionSheetComponent/ActionSheetTagsSection.js@@ -45,7 +45,7 @@ export const ActionSheetTagsSection = ({item, close}) => {const _onSubmit = useCallback(async () => {if (!tagToAdd || tagToAdd === '' || tagToAdd.trimStart().length == 0) {- console.log('Calling submit', tagToAdd);+ToastEvent.show('Empty Tag', 'error', 'local');return;}diff --git a/apps/mobile/src/components/ActionSheetComponent/index.js b/apps/mobile/src/components/ActionSheetComponent/index.jsindex 54abef999..5f65abea7 100644--- a/apps/mobile/src/components/ActionSheetComponent/index.js+++ b/apps/mobile/src/components/ActionSheetComponent/index.js@@ -424,13 +424,7 @@ export const ActionSheetComponent = ({dispatch({type: Actions.ALL});setRefreshing(false);}- } else {- console.log(- 'here',- user?.lastSynced,- user?.lastSynced < note?.dateEdited,- );- }+ }};const onPressVaultButton = async () => {diff --git a/apps/mobile/src/components/AddNotebookDialog/index.js b/apps/mobile/src/components/AddNotebookDialog/index.jsindex b0ab9f25a..d6d55102b 100644--- a/apps/mobile/src/components/AddNotebookDialog/index.js+++ b/apps/mobile/src/components/AddNotebookDialog/index.js@@ -64,7 +64,6 @@ export class AddNotebookDialog extends React.Component {if (index === 0) return;topicsList.push(item.title);});- console.log(topicsList);this.id = toEdit.id;this.title = toEdit.title;this.description = toEdit.description;@@ -105,7 +104,7 @@ export class AddNotebookDialog extends React.Component {let edit = this.props.toEdit;if (edit && edit.id) {let topicToDelete = edit.topics[index + 1];- console.log(topicToDelete);+if (topicToDelete) {this.topicsToDelete.push(topicToDelete.id);}@@ -432,7 +431,7 @@ export class AddNotebookDialog extends React.Component {<TopicItemitem={item}onPress={(item, index) => {- console.log('here');+this.prevIndex = index;this.prevItem = item;this.topicInputRef.setNativeProps({diff --git a/apps/mobile/src/components/Container/ContainerBottomButton.js b/apps/mobile/src/components/Container/ContainerBottomButton.jsindex 7809134fb..cb76a8215 100644--- a/apps/mobile/src/components/Container/ContainerBottomButton.js+++ b/apps/mobile/src/components/Container/ContainerBottomButton.js@@ -66,10 +66,6 @@ export const ContainerBottomButton = ({title, onPress, color,shouldShow =false})...getElevation(5),borderRadius: 100,}}- onLongPress={(event) => {- console.log(event);- showContext(event, title);- }}onPress={onPress}><Viewstyle={{diff --git a/apps/mobile/src/components/Header/HeaderRightMenu.js b/apps/mobile/src/components/Header/HeaderRightMenu.jsindex 107e390af..eb38ce59f 100644--- a/apps/mobile/src/components/Header/HeaderRightMenu.js+++ b/apps/mobile/src/components/Header/HeaderRightMenu.js@@ -26,7 +26,7 @@ export const HeaderRightMenu = () => {{DDS.isLargeTablet() && containerBottomButton.onPress ? (<ButtononPress={ () => {- console.log('hello');+containerBottomButton.onPress()}}diff --git a/apps/mobile/src/components/LoginDialog/index.js b/apps/mobile/src/components/LoginDialog/index.jsindex 8c8abc8af..cf47531c2 100644--- a/apps/mobile/src/components/LoginDialog/index.js+++ b/apps/mobile/src/components/LoginDialog/index.js@@ -109,7 +109,7 @@ const LoginDialog = () => {try {let res = await db.user.login(username.toLowerCase(), password);- console.log(res, username, password);+} catch (e) {setTimeout(() => {ToastEvent.show(e.message, 'error', 'local');@@ -146,7 +146,7 @@ const LoginDialog = () => {ToastEvent.show('Passwords do not match', 'error', 'local');return false;}- console.log(invalidEmail, invalidPassword, invalidUsername);+if (invalidEmail && invalidPassword && invalidUsername) {ToastEvent.show('Signup information is invalid', 'error', 'local');return false;diff --git a/apps/mobile/src/components/Menu/TagsSection.js b/apps/mobile/src/components/Menu/TagsSection.jsindex 16fea0245..1a600fc87 100644--- a/apps/mobile/src/components/Menu/TagsSection.js+++ b/apps/mobile/src/components/Menu/TagsSection.js@@ -38,9 +38,7 @@ export const TagsSection = () => {eSendEvent(refreshNotesPage, params);NavigationService.closeDrawer();};- useEffect(() => {- console.log(currentScreen);- }, [currentScreen]);+return (<Viewstyle={{diff --git a/apps/mobile/src/components/Menu/index.js b/apps/mobile/src/components/Menu/index.jsindex d46f1ae02..21a0e4dfa 100644--- a/apps/mobile/src/components/Menu/index.js+++ b/apps/mobile/src/components/Menu/index.js@@ -33,10 +33,6 @@ export const Menu = React.memo(dispatch({type: Actions.THEME, colors: newColors});}- React.useEffect(() => {- console.log('rerendering drawer');- });-const BottomItemsList = [{name: 'Night mode',diff --git a/apps/mobile/src/components/RecoveryKeyDialog/index.js b/apps/mobile/src/components/RecoveryKeyDialog/index.jsindex b9e30b750..67089c29a 100644--- a/apps/mobile/src/components/RecoveryKeyDialog/index.js+++ b/apps/mobile/src/components/RecoveryKeyDialog/index.js@@ -112,7 +112,7 @@ class RecoveryKeyDialog extends React.Component {onOpen = async () => {let k = await db.user.key();this.user = await db.user.get();- console.log(k);+if (k) {this.setState({key: k.key,diff --git a/apps/mobile/src/components/RestoreDialog/index.js b/apps/mobile/src/components/RestoreDialog/index.jsindex 8f360ceae..9e715acaf 100644--- a/apps/mobile/src/components/RestoreDialog/index.js+++ b/apps/mobile/src/components/RestoreDialog/index.js@@ -61,7 +61,6 @@ const RestoreDialog = () => {await db.backup.import(backup);await sleep(2000);setRestoring(false);- console.log(db.notes.all);dispatch({type: Actions.ALL});ToastEvent.show('Restore Complete!', 'success');setVisible(false);@@ -77,7 +76,7 @@ const RestoreDialog = () => {}let path = await storage.checkAndCreateDir('/backups/');let files = await RNFetchBlob.fs.lstat(path);- console.log(files);+setFiles(files);};diff --git a/apps/mobile/src/components/SearchInput/index.js b/apps/mobile/src/components/SearchInput/index.jsindex 98d55d584..ef9b27a1b 100644--- a/apps/mobile/src/components/SearchInput/index.js+++ b/apps/mobile/src/components/SearchInput/index.js@@ -12,7 +12,6 @@ export const SearchInput = (props) => {const updateSearchState = () => {setSearchState(SearchService.getSearchInformation().placeholder);- console.log(SearchService.getSearchInformation().placeholder);};useEffect(() => {diff --git a/apps/mobile/src/components/SimpleList/ListHeaderComponent.js b/apps/mobile/src/components/SimpleList/ListHeaderComponent.jsindex 41e0e649a..b1726d10a 100644--- a/apps/mobile/src/components/SimpleList/ListHeaderComponent.js+++ b/apps/mobile/src/components/SimpleList/ListHeaderComponent.js@@ -25,25 +25,7 @@ export const ListHeaderComponent = ({}) => {const [state] = useTracked();const {colors, headerTextState, currentScreen} = state;- /*- const onScroll = async (y) => {- if (y > 100) {- let o = (y - 100) / 100;- o = 1 - o;- console.log(o);- opacity.setValue(o);- } else {- opacity.setValue(1);- }- };-- useEffect(() => {- eSubscribeEvent(eScrollEvent, onScroll);- return () => {- eUnSubscribeEvent(eScrollEvent, onScroll);- };- }, []);- */+return type === 'search' ? null : DDS.isLargeTablet() && !shouldShow ? (<Viewstyle={{diff --git a/apps/mobile/src/components/SimpleList/index.js b/apps/mobile/src/components/SimpleList/index.jsindex 5ff8b369a..1318708cb 100644--- a/apps/mobile/src/components/SimpleList/index.js+++ b/apps/mobile/src/components/SimpleList/index.js@@ -86,7 +86,6 @@ const SimpleList = ({}}><ParagraphonPress={() => {- console.log('clicekd');if (jumpToDialog) {eSendEvent(eOpenJumpToDialog);}diff --git a/apps/mobile/src/components/Toast/index.js b/apps/mobile/src/components/Toast/index.jsindex 47b3f4747..f43537efc 100644--- a/apps/mobile/src/components/Toast/index.js+++ b/apps/mobile/src/components/Toast/index.js@@ -96,7 +96,7 @@ export const Toast = ({context = 'global'}) => {easing: Easing.inOut(Easing.ease),}).start(async () => {await sleep(300);- console.log(toastMessages);+toastMessages.shift();setData({});});diff --git a/apps/mobile/src/components/Typography/Paragraph.js b/apps/mobile/src/components/Typography/Paragraph.jsindex d91d33d78..4eecd8dfb 100644--- a/apps/mobile/src/components/Typography/Paragraph.js+++ b/apps/mobile/src/components/Typography/Paragraph.js@@ -20,7 +20,7 @@ const Paragraph = ({color, size, style, ...restProps}) => {return (<Text- onLayout={e => console.log(e.nativeEvent.layout.height,"HEIGHT")}+{...restProps}style={[{diff --git a/apps/mobile/src/components/VaultDialog/index.js b/apps/mobile/src/components/VaultDialog/index.jsindex a671a5216..e53f1ee0f 100644--- a/apps/mobile/src/components/VaultDialog/index.js+++ b/apps/mobile/src/components/VaultDialog/index.js@@ -249,7 +249,6 @@ export class VaultDialog extends Component {}_permanantUnlock() {- console.log('permanant unlock');db.vault.remove(this.state.note.id, this.password).then((r) => {@@ -301,7 +300,6 @@ export class VaultDialog extends Component {cancel: null,},});- console.log(credentials.password);if (credentials?.password) {this.password = credentials.password;this.onPress();diff --git a/apps/mobile/src/navigation/NavigatorStack.js b/apps/mobile/src/navigation/NavigatorStack.jsindex 025b0a983..dc3f38d50 100644--- a/apps/mobile/src/navigation/NavigatorStack.js+++ b/apps/mobile/src/navigation/NavigatorStack.js@@ -67,10 +67,7 @@ export const NavigatorStack = React.memo(const [state] = useTracked();const {settings} = state;- React.useEffect(() => {- console.log("rerendering navigator stack");- })-+return (<Container root={true}><NavigationContainer independent={true} ref={rootNavigatorRef}>diff --git a/apps/mobile/src/services/DeviceDetection.js b/apps/mobile/src/services/DeviceDetection.jsindex df7712997..bfffbd2d5 100644--- a/apps/mobile/src/services/DeviceDetection.js+++ b/apps/mobile/src/services/DeviceDetection.js@@ -46,12 +46,10 @@ export class DeviceDetectionService {this.width = Dimensions.get('screen').width;this.height = Dimensions.get('screen').height;let deviceSize = this.getDeviceSize();- console.log(orientation, 'orientation');if ((!DeviceInfo.isTablet() && orientation === 'LANDSCAPE') ||(DeviceInfo.isTablet() && (orientation === 'PORTRAIT' || deviceSize < 9))) {- console.log('small tab');this.isTab = true;this.isPhone = false;this.isSmallTab = true;diff --git a/apps/mobile/src/services/IntentService.js b/apps/mobile/src/services/IntentService.jsindex 831cbc4d7..526c4f2fa 100644--- a/apps/mobile/src/services/IntentService.js+++ b/apps/mobile/src/services/IntentService.js@@ -13,7 +13,6 @@ let previousIntent = {function check() {ReceiveSharingIntent.getReceivedFiles((d) => {- console.log('INTENT SERVICE', d);let data = d[0];if (data.text || data.weblink) {let text = data.text;diff --git a/apps/mobile/src/utils/SizeUtils.js b/apps/mobile/src/utils/SizeUtils.jsindex fae1cfd5b..e8c790943 100644--- a/apps/mobile/src/utils/SizeUtils.js+++ b/apps/mobile/src/utils/SizeUtils.js@@ -19,7 +19,7 @@ export const getDeviceSize = () => {};const getDpi = (pd) => {- console.log(pd);+return 160 * pd;};const correction = (size, multiplier) => {@@ -38,10 +38,9 @@ const correction = (size, multiplier) => {} else if (dSize > 7.2 && dSize <= 8.5 && DDS.isTab) {return size * 0.9;} else if (dSize > 8.5 && dSize <= 9.8 && DDS.isTab) {- console.log(dSize)+return size * 0.8;} else if (dSize > 9.8) {- console.log("HERE CALC",dSize)return size * 0.85;} else {return size;diff --git a/apps/mobile/src/utils/functions.js b/apps/mobile/src/utils/functions.jsindex 370f6dac1..9ce69b726 100644--- a/apps/mobile/src/utils/functions.js+++ b/apps/mobile/src/utils/functions.js@@ -46,7 +46,7 @@ export async function deleteItems(item) {let it = itemsCopy[i];let trashItem = trash.all.find((item) => item.itemId === it.id);await db.trash.restore(trashItem.id);- console.log(it.type, 'type');+ supdateEvent({type: it.type});}updateEvent({type: Actions.TRASH});diff --git a/apps/mobile/src/utils/index.js b/apps/mobile/src/utils/index.jsindex aa8cc0900..ee8293e34 100755--- a/apps/mobile/src/utils/index.js+++ b/apps/mobile/src/utils/index.js@@ -64,7 +64,7 @@ export const history = {};export async function showContext(event, title) {- console.log(event.nativeEvent);+event._targetInst.ref.current?.measureInWindow((x, y, w, h) => {dummyRef.current.setNativeProps({style: {diff --git a/apps/mobile/src/views/Editor/EditorHeader.js b/apps/mobile/src/views/Editor/EditorHeader.jsindex 5c2a5da08..154962b03 100644--- a/apps/mobile/src/views/Editor/EditorHeader.js+++ b/apps/mobile/src/views/Editor/EditorHeader.js@@ -78,7 +78,7 @@ const EditorHeader = () => {}, [fullscreen]);const load = async (item) => {- console.log(item);+await loadNote(item);Keyboard.addListener('keyboardDidShow', () => {post('keyboard');diff --git a/apps/mobile/src/views/Editor/Functions.js b/apps/mobile/src/views/Editor/Functions.jsindex 16529ca9c..e204ed12f 100644--- a/apps/mobile/src/views/Editor/Functions.js+++ b/apps/mobile/src/views/Editor/Functions.js@@ -138,7 +138,6 @@ async function setNote(item) {}function clearNote() {- console.log('note cleared');note = null;title = '';noteEdited = false;@@ -152,7 +151,7 @@ function clearNote() {let currentEditingTimer = null;export async function loadNote(item) {- console.log(item);+editing.currentlyEditing = true;post('blur');if (item && item.type === 'new') {diff --git a/apps/mobile/src/views/Home/index.js b/apps/mobile/src/views/Home/index.jsindex e0dba7730..222d0fae4 100755--- a/apps/mobile/src/views/Home/index.js+++ b/apps/mobile/src/views/Home/index.js@@ -77,7 +77,6 @@ export const Home = ({navigation}) => {if (!DDS.isLargeTablet()) {tabBarRef.current?.goToPage(1);} else {- console.log('called');eSendEvent(eOnLoadNote, {type: 'new'});}};diff --git a/apps/mobile/src/views/Notes/index.js b/apps/mobile/src/views/Notes/index.jsindex 076ca7e5c..1467f598e 100644--- a/apps/mobile/src/views/Notes/index.js+++ b/apps/mobile/src/views/Notes/index.js@@ -33,7 +33,6 @@ export const Notes = ({route, navigation}) => {}, []);const init = (data) => {- console.log('rerendering');params = route.params;if (data) {params = data;diff --git a/apps/mobile/src/views/Settings/index.js b/apps/mobile/src/views/Settings/index.jsindex 380ff21b5..95e1b2565 100644--- a/apps/mobile/src/views/Settings/index.js+++ b/apps/mobile/src/views/Settings/index.js@@ -119,11 +119,10 @@ export const Settings = ({navigation}) => {const checkVaultStatus = useCallback(() => {db.vault.add('check_no_vault').catch(async (e) => {- console.log(e);+let biometry = await Keychain.getSupportedBiometryType();let fingerprint = await Keychain.hasInternetCredentials('nn_vault');- console.log(biometry, fingerprint, 'val');let available = false;if (biometry === Keychain.BIOMETRY_TYPE.FINGERPRINT ||