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-ede40625913f0f
diff --git a/apps/mobile/src/components/AddNotebookDialog/index.js b/apps/mobile/src/components/AddNotebookDialog/index.jsindex c16a440fb..67ddbb1d3 100644--- a/apps/mobile/src/components/AddNotebookDialog/index.js+++ b/apps/mobile/src/components/AddNotebookDialog/index.js@@ -1,4 +1,4 @@-import React, {useState} from 'react';+import React from 'react';import {KeyboardAvoidingView,Modal,@@ -11,7 +11,7 @@ import {FlatList, TextInput} from 'react-native-gesture-handler';import Icon from 'react-native-vector-icons/MaterialCommunityIcons';import {opacity, ph, pv, SIZE, WEIGHT} from '../../common/common';import {ACTIONS} from '../../provider/actions';-import {getElevation, ToastEvent, db, DDS} from '../../utils/utils';+import {db, DDS, getElevation, ToastEvent} from '../../utils/utils';import {updateEvent} from '../DialogManager/recievers';import {Toast} from '../Toast';diff --git a/apps/mobile/src/components/Dialog/index.js b/apps/mobile/src/components/Dialog/index.jsindex fd7a4e7ef..79f3d36b2 100644--- a/apps/mobile/src/components/Dialog/index.js+++ b/apps/mobile/src/components/Dialog/index.js@@ -5,23 +5,14 @@ import {opacity, ph, pv, SIZE, WEIGHT} from '../../common/common';import {ACTIONS} from '../../provider/actions';import {eSendEvent} from '../../services/eventManager';import {+ eClearEditor,eCloseFullscreenEditor,- eOnLoadNote,eOnNewTopicAdded,- eClearEditor,} from '../../services/events';import NavigationService from '../../services/NavigationService';-import {exitEditorAnimation} from '../../utils/animations';-import {- editing,- getElevation,- history,- ToastEvent,- db,- DDS,-} from '../../utils/utils';-import {updateEvent} from '../DialogManager/recievers';+import {db, DDS, getElevation, history, ToastEvent} from '../../utils/utils';import {dialogActions} from '../DialogManager/dialogActions';+import {updateEvent} from '../DialogManager/recievers';export class Dialog extends Component {constructor(props) {diff --git a/apps/mobile/src/components/ListPlaceholders/index.js b/apps/mobile/src/components/ListPlaceholders/index.jsindex 94ff12f40..1c76a9de0 100644--- a/apps/mobile/src/components/ListPlaceholders/index.js+++ b/apps/mobile/src/components/ListPlaceholders/index.js@@ -1,16 +1,10 @@import React from 'react';-import {Text, View, Platform} from 'react-native';+import {Platform, Text, View} from 'react-native';import * as Animatable from 'react-native-animatable';import Icon from 'react-native-vector-icons/MaterialCommunityIcons';-import {SIZE, WEIGHT, normalize} from '../../common/common';-import {- deleteItems,- opacity,- rotate,- slideLeft,- slideRight,-} from '../../utils/animations';-import {w, hexToRGBA, getElevation} from '../../utils/utils';+import {normalize, SIZE, WEIGHT} from '../../common/common';+import {deleteItems, opacity, rotate} from '../../utils/animations';+import {getElevation, hexToRGBA, w} from '../../utils/utils';export const NotebookPlaceHolder = ({colors, animation}) => {const slideRight = {diff --git a/apps/mobile/src/components/NoteItem/index.js b/apps/mobile/src/components/NoteItem/index.jsindex 725e8cc2b..6a880c298 100644--- a/apps/mobile/src/components/NoteItem/index.js+++ b/apps/mobile/src/components/NoteItem/index.js@@ -5,7 +5,7 @@ import {ph, pv, SIZE, WEIGHT} from '../../common/common';import {eSendEvent, openVault} from '../../services/eventManager';import {eOnLoadNote} from '../../services/events';import {openEditorAnimation} from '../../utils/animations';-import {getElevation, timeSince, DDS} from '../../utils/utils';+import {DDS, timeSince} from '../../utils/utils';import {ActionSheetEvent, simpleDialogEvent} from '../DialogManager/recievers';import {TEMPLATE_TRASH} from '../DialogManager/templates';diff --git a/apps/mobile/src/components/NotebookItem/index.js b/apps/mobile/src/components/NotebookItem/index.jsindex c942e26d9..7938fd8ae 100644--- a/apps/mobile/src/components/NotebookItem/index.js+++ b/apps/mobile/src/components/NotebookItem/index.js@@ -3,11 +3,10 @@ import {Text, TouchableOpacity, View} from 'react-native';import Icon from 'react-native-vector-icons/MaterialCommunityIcons';import {opacity, ph, pv, SIZE, WEIGHT} from '../../common/common';import {useTracked} from '../../provider';-import NavigationService from '../../services/NavigationService';-import {ToastEvent, w, getElevation, db, DDS} from '../../utils/utils';-import {ACTIONS} from '../../provider/actions';-import {moveNoteHideEvent, ActionSheetEvent} from '../DialogManager/recievers';+import NavigationService from '../../services/NavigationService';+import {db, ToastEvent} from '../../utils/utils';+import {ActionSheetEvent, moveNoteHideEvent} from '../DialogManager/recievers';export const NotebookItem = ({item,diff --git a/apps/mobile/src/components/SearchInput/index.js b/apps/mobile/src/components/SearchInput/index.jsindex ba00cda72..1d3362992 100644--- a/apps/mobile/src/components/SearchInput/index.js+++ b/apps/mobile/src/components/SearchInput/index.js@@ -1,12 +1,11 @@-import React, {createRef, useEffect, useState} from 'react';+import React, {useEffect, useState} from 'react';import {TextInput} from 'react-native';import Animated, {Easing} from 'react-native-reanimated';import Icon from 'react-native-vector-icons/MaterialCommunityIcons';-import {br, SIZE, WEIGHT} from '../../common/common';import {useTracked} from '../../provider';-import {DDS} from '../../utils/utils';import {inputRef} from '../../utils/refs';+import {DDS} from '../../utils/utils';const {Value, timing, block} = Animated;diff --git a/apps/mobile/src/components/SelectionHeader/index.js b/apps/mobile/src/components/SelectionHeader/index.jsindex d234365a3..588037e29 100644--- a/apps/mobile/src/components/SelectionHeader/index.js+++ b/apps/mobile/src/components/SelectionHeader/index.js@@ -1,20 +1,13 @@import React, {useEffect, useState} from 'react';-import {- Platform,- SafeAreaView,- StatusBar,- Text,- TouchableOpacity,- View,-} from 'react-native';+import {Platform, StatusBar, Text, TouchableOpacity, View} from 'react-native';import * as Animatable from 'react-native-animatable';import Icon from 'react-native-vector-icons/MaterialCommunityIcons';import {SIZE, WEIGHT} from '../../common/common';import {useTracked} from '../../provider';import {ACTIONS} from '../../provider/actions';-import {w, ToastEvent, db, selection} from '../../utils/utils';import {eSendEvent} from '../../services/eventManager';import {eOpenMoveNoteDialog, eOpenSimpleDialog} from '../../services/events';+import {db, selection, ToastEvent} from '../../utils/utils';import {TEMPLATE_DELETE} from '../DialogManager/templates';export const SelectionHeader = () => {diff --git a/apps/mobile/src/components/SelectionWrapper/index.js b/apps/mobile/src/components/SelectionWrapper/index.jsindex 6249f2a4f..b6bd4868b 100644--- a/apps/mobile/src/components/SelectionWrapper/index.js+++ b/apps/mobile/src/components/SelectionWrapper/index.js@@ -4,7 +4,6 @@ import Icon from 'react-native-vector-icons/MaterialCommunityIcons';import {SIZE} from '../../common/common';import {useTracked} from '../../provider';import {ACTIONS} from '../../provider/actions';-import Animated from 'react-native-reanimated';import {getElevation} from '../../utils/utils';const SelectionWrapper = ({diff --git a/apps/mobile/src/components/SimpleList/index.js b/apps/mobile/src/components/SimpleList/index.jsindex 444ebf496..224f5ad08 100644--- a/apps/mobile/src/components/SimpleList/index.js+++ b/apps/mobile/src/components/SimpleList/index.js@@ -1,12 +1,12 @@-import React, {useState} from 'react';+import React from 'react';import {FlatList, Platform, RefreshControl, Text, View} from 'react-native';import {SIZE, WEIGHT} from '../../common/common';import {useTracked} from '../../provider';import {ACTIONS} from '../../provider/actions';import {eSendEvent} from '../../services/eventManager';-import {eScrollEvent, eClearSearch} from '../../services/events';+import {eClearSearch, eScrollEvent} from '../../services/events';+import {hexToRGBA} from '../../utils/utils';import {NotebookItem} from '../NotebookItem';-import {hexToRGBA, getElevation} from '../../utils/utils';import SelectionWrapper from '../SelectionWrapper';const SimpleList = ({diff --git a/apps/mobile/src/components/VaultDialog/index.js b/apps/mobile/src/components/VaultDialog/index.jsindex 26f03c5cd..8db358ae1 100644--- a/apps/mobile/src/components/VaultDialog/index.js+++ b/apps/mobile/src/components/VaultDialog/index.js@@ -1,26 +1,25 @@import React, {Component, createRef} from 'react';-import {View, Text, TouchableOpacity, Modal, ToastAndroid} from 'react-native';-import {SIZE, ph, pv, opacity, WEIGHT} from '../../common/common';-import Icon from 'react-native-vector-icons/MaterialCommunityIcons';+import {Modal, Text, TouchableOpacity, View} from 'react-native';import {TextInput} from 'react-native-gesture-handler';--import {getElevation, ToastEvent, db, DDS} from '../../utils/utils';import Share from 'react-native-share';+import Icon from 'react-native-vector-icons/MaterialCommunityIcons';+import {opacity, ph, pv, SIZE, WEIGHT} from '../../common/common';+import {ACTIONS} from '../../provider/actions';import {eSendEvent,eSubscribeEvent,eUnSubscribeEvent,} from '../../services/eventManager';import {+ eCloseVaultDialog,eOnLoadNote,eOpenVaultDialog,- eCloseVaultDialog,refreshNotesPage,} from '../../services/events';import {openEditorAnimation} from '../../utils/animations';-import {ACTIONS} from '../../provider/actions';-import {Toast} from '../Toast';+import {db, DDS, getElevation, ToastEvent} from '../../utils/utils';import {updateEvent} from '../DialogManager/recievers';+import {Toast} from '../Toast';const passInputRef = createRef();const confirmPassRef = createRef();diff --git a/apps/mobile/src/components/header/index.js b/apps/mobile/src/components/header/index.jsindex 90b148c27..fe9903b4d 100644--- a/apps/mobile/src/components/header/index.js+++ b/apps/mobile/src/components/header/index.js@@ -1,7 +1,6 @@import React, {createRef} from 'react';import {Platform, StatusBar, Text, TouchableOpacity, View} from 'react-native';import * as Animatable from 'react-native-animatable';-import {SIZE, WEIGHT} from '../../common/common';import {useTracked} from '../../provider';import {eSendEvent} from '../../services/eventManager';@@ -13,6 +12,7 @@ import Menu, {MenuItem, MenuDivider} from 'react-native-material-menu';import {ACTIONS} from '../../provider/actions';import {sideMenuRef} from '../../utils/refs';import {moveNoteHideEvent} from '../DialogManager/recievers';+export const Header = ({heading,canGoBack = true,