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
add new placeholder for notes
ammarahm-edda2432053389
diff --git a/apps/mobile/src/components/ListPlaceholders/index.js b/apps/mobile/src/components/ListPlaceholders/index.jsindex e1118294c..c9a0e7b26 100644--- a/apps/mobile/src/components/ListPlaceholders/index.js+++ b/apps/mobile/src/components/ListPlaceholders/index.js@@ -2,7 +2,7 @@ import React from 'react';import {Text, View} from 'react-native';import * as Animatable from 'react-native-animatable';import Icon from 'react-native-vector-icons/Feather';-import {SIZE} from '../../common/common';+import {SIZE, WEIGHT} from '../../common/common';import {deleteItems,opacity,@@ -100,64 +100,281 @@ export const NotebookPlaceHolder = ({colors, animation}) => {);};-export const NotesPlaceHolder = ({colors, animation}) => {+export const NotesPlaceHolder = ({colors, animation, right, top}) => {+ const slideRight = {+ 0: {+ transform: [+ {translateX: -2},+ {+ translateY: -2,+ },+ ],+ },+ 0.5: {+ transform: [+ {translateX: 0},+ {+ translateY: 0,+ },+ ],+ },+ 1: {+ transform: [+ {translateX: 2},+ {+ translateY: -2,+ },+ ],+ },+ };+return (- <Animatable.View- animation={animation}- iterationCount="infinite"- duration={3000}- iterationDelay={0}- direction="alternate"- easing="ease-in"- useNativeDriver={true}+ <Viewstyle={{- backgroundColor: colors.shade,width: '50%',- padding: 5,- borderRadius: 5,- marginBottom: 10,+ alignItems: 'center',+ justifyContent: 'center',}}>- <View- style={{- width: '90%',- height: 10,- borderRadius: 5,- backgroundColor: colors.accent,- marginBottom: 8,- }}- />- <View+ <Animatable.View+ animation={slideRight}+ iterationCount="infinite"+ duration={3000}+ iterationDelay={0}+ direction="alternate"+ easing="ease-in"+ useNativeDriver={true}style={{- width: '70%',- height: 10,+ backgroundColor: colors.bg,+ width: '100%',borderRadius: 5,- backgroundColor: colors.accent,- marginBottom: 8,- }}- />- <View- style={{- flexDirection: 'row',+ opacity: 0.5,+ elevation: 5,+ position: 'absolute',+ left: -50,+ top: -50,}}><Viewstyle={{- width: '15%',- height: 8,+ width: 10,+ height: '100%',+ opacity: 1,+ elevation: 1,borderRadius: 5,- backgroundColor: colors.icon,- marginRight: '5%',+ backgroundColor: colors.accent,+ position: 'absolute',+ left: 0,}}/><Viewstyle={{- width: '15%',- height: 8,+ backgroundColor: colors.nav,borderRadius: 5,- backgroundColor: colors.icon,+ padding: 5,+ paddingBottom: 10,+ paddingLeft: 15,+ }}>+ <Text+ style={{+ color: colors.accent,+ fontFamily: WEIGHT.bold,+ fontSize: SIZE.md,+ }}>+ Title+ </Text>++ <View+ style={{+ width: '100%',+ height: 8,+ opacity: 0.5,+ borderRadius: 5,+ backgroundColor: colors.accent,+ marginBottom: 8,+ }}+ />+ <View+ style={{+ width: '100%',+ height: 8,+ opacity: 0.5,+ borderRadius: 5,+ backgroundColor: colors.accent,+ marginBottom: 8,+ }}+ />+ <View+ style={{+ width: '100%',+ height: 8,+ opacity: 0.5,+ borderRadius: 5,+ backgroundColor: colors.accent,+ marginBottom: 8,+ }}+ />+ <View+ style={{+ width: '100%',+ height: 8,+ opacity: 0.5,+ borderRadius: 5,+ backgroundColor: colors.accent,+ marginBottom: 8,+ }}+ />+ <View+ style={{+ width: '70%',+ height: 8,+ opacity: 0.5,+ borderRadius: 5,+ backgroundColor: colors.accent,+ marginBottom: 8,+ }}+ />+ <View+ style={{+ flexDirection: 'row',+ }}>+ <View+ style={{+ width: '15%',+ height: 8,+ borderRadius: 5,+ backgroundColor: colors.icon,+ marginRight: '5%',+ }}+ />+ <View+ style={{+ width: '15%',+ height: 8,+ borderRadius: 5,+ backgroundColor: colors.icon,+ }}+ />+ </View>+ </View>+ </Animatable.View>++ <Animatable.View+ animation={slideRight}+ iterationCount="infinite"+ duration={3000}+ iterationDelay={0}+ direction="alternate"+ easing="ease-in"+ useNativeDriver={true}+ style={{+ backgroundColor: colors.bg,+ width: '100%',+ borderRadius: 5,+ elevation: 10,+ }}>+ <View+ style={{+ width: 10,+ height: '100%',+ opacity: 1,+ elevation: 1,+ borderRadius: 5,+ backgroundColor: colors.accent,+ position: 'absolute',+ left: 0,}}/>- </View>- </Animatable.View>+ <View+ style={{+ backgroundColor: colors.nav,+ borderRadius: 5,+ padding: 5,+ paddingBottom: 10,+ paddingLeft: 15,+ }}>+ <Text+ style={{+ color: colors.accent,+ fontFamily: WEIGHT.bold,+ fontSize: SIZE.md,+ }}>+ Title+ </Text>++ <View+ style={{+ width: '100%',+ height: 8,+ opacity: 0.5,+ borderRadius: 5,+ backgroundColor: colors.accent,+ marginBottom: 8,+ }}+ />+ <View+ style={{+ width: '100%',+ height: 8,+ opacity: 0.5,+ borderRadius: 5,+ backgroundColor: colors.accent,+ marginBottom: 8,+ }}+ />+ <View+ style={{+ width: '100%',+ height: 8,+ opacity: 0.5,+ borderRadius: 5,+ backgroundColor: colors.accent,+ marginBottom: 8,+ }}+ />+ <View+ style={{+ width: '100%',+ height: 8,+ opacity: 0.5,+ borderRadius: 5,+ backgroundColor: colors.accent,+ marginBottom: 8,+ }}+ />+ <View+ style={{+ width: '70%',+ height: 8,+ opacity: 0.5,+ borderRadius: 5,+ backgroundColor: colors.accent,+ marginBottom: 8,+ }}+ />+ <View+ style={{+ flexDirection: 'row',+ }}>+ <View+ style={{+ width: '15%',+ height: 8,+ borderRadius: 5,+ backgroundColor: colors.icon,+ marginRight: '5%',+ }}+ />+ <View+ style={{+ width: '15%',+ height: 8,+ borderRadius: 5,+ backgroundColor: colors.icon,+ }}+ />+ </View>+ </View>+ </Animatable.View>+ </View>);};diff --git a/apps/mobile/src/components/NotesList/index.js b/apps/mobile/src/components/NotesList/index.jsindex 159d3dd30..ab0f6e385 100644--- a/apps/mobile/src/components/NotesList/index.js+++ b/apps/mobile/src/components/NotesList/index.js@@ -113,9 +113,7 @@ export const NotesList = ({isGrouped = false}) => {<ActivityIndicator size={SIZE.xl} color={colors.accent} />) : (<>- <NotesPlaceHolder animation={slideRight} colors={colors} />- <NotesPlaceHolder animation={slideLeft} colors={colors} />- <NotesPlaceHolder animation={slideRight} colors={colors} />+ <NotesPlaceHolder colors={colors} /><Textstyle={{color: colors.icon,diff --git a/apps/mobile/src/views/EditorSettings/index.js b/apps/mobile/src/views/EditorSettings/index.jsindex 1907d42a7..9a1e033df 100644--- a/apps/mobile/src/views/EditorSettings/index.js+++ b/apps/mobile/src/views/EditorSettings/index.js@@ -54,6 +54,34 @@ const EditorSettings = ({navigation}) => {name={colors.night ? 'toggle-right' : 'toggle-left'}/></TouchableOpacity>+ <TouchableOpacity+ activeOpacity={opacity}+ style={{+ width: '100%',+ marginHorizontal: 0,+ paddingVertical: pv,+ flexDirection: 'row',+ alignItems: 'center',+ justifyContent: 'space-between',+ borderBottomWidth: 1,+ paddingBottom: pv + 5,+ borderBottomColor: colors.nav,+ }}>+ <Text+ style={{+ fontSize: SIZE.md,+ fontFamily: WEIGHT.regular,+ textAlignVertical: 'center',+ color: colors.pri,+ }}>+ Show keyboard on open+ </Text>+ <Icon+ size={SIZE.xl}+ color={colors.night ? colors.accent : colors.icon}+ name={colors.night ? 'toggle-right' : 'toggle-left'}+ />+ </TouchableOpacity></View></Container>);diff --git a/apps/mobile/src/views/Settings/index.js b/apps/mobile/src/views/Settings/index.jsindex 035d15b97..2a047fc5f 100644--- a/apps/mobile/src/views/Settings/index.js+++ b/apps/mobile/src/views/Settings/index.js@@ -88,9 +88,7 @@ export const Settings = ({navigation}) => {borderBottomColor: colors.nav,width: item.step ? '85%' : w - 24,marginHorizontal: 12,-paddingVertical: pv + 5,-marginLeft: item.step ? '10%' : 12,}}><Text