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
fix some animations
ammarahm-ed9d63b0d04f90
diff --git a/apps/mobile/src/components/Container/index.js b/apps/mobile/src/components/Container/index.jsindex 502d4124e..699d246f0 100644--- a/apps/mobile/src/components/Container/index.js+++ b/apps/mobile/src/components/Container/index.js@@ -9,7 +9,7 @@ import {View,} from 'react-native';import * as Animatable from 'react-native-animatable';-import Icon from 'react-native-vector-icons/Feather';+import Icon from 'react-native-vector-icons/MaterialCommunityIcons';import {br, opacity, pv, SIZE, WEIGHT} from '../../common/common';import {useTracked} from '../../provider';import {eSubscribeEvent, eUnSubscribeEvent} from '../../services/eventManager';diff --git a/apps/mobile/src/components/ListPlaceholders/index.js b/apps/mobile/src/components/ListPlaceholders/index.jsindex 92ea75157..133647456 100644--- a/apps/mobile/src/components/ListPlaceholders/index.js+++ b/apps/mobile/src/components/ListPlaceholders/index.js@@ -415,8 +415,7 @@ export const TrashPlaceHolder = ({colors, animation}) => {animation={deleteItems(-50, -100)}iterationCount="infinite"duration={3000}- iterationDelay={4500}- direction="alternate"+ iterationDelay={7000}easing="ease-in"useNativeDriver={true}style={{@@ -438,8 +437,7 @@ export const TrashPlaceHolder = ({colors, animation}) => {animation={deleteItems(-80, -70)}iterationCount="infinite"duration={3000}- iterationDelay={4500}- direction="alternate"+ iterationDelay={7000}easing="ease-in"useNativeDriver={true}style={{@@ -461,8 +459,7 @@ export const TrashPlaceHolder = ({colors, animation}) => {animation={deleteItems(-120, -50)}iterationCount="infinite"duration={3000}- iterationDelay={4500}- direction="alternate"+ iterationDelay={7000}easing="ease-in"useNativeDriver={true}style={{@@ -485,8 +482,7 @@ export const TrashPlaceHolder = ({colors, animation}) => {animation={deleteItems(-120, -140)}iterationCount="infinite"duration={3000}- iterationDelay={4500}- direction="alternate"+ iterationDelay={7000}easing="ease-in"useNativeDriver={true}style={{@@ -551,7 +547,7 @@ export const TrashPlaceHolder = ({colors, animation}) => {animation={opacity}iterationCount="infinite"duration={3000}- iterationDelay={4500}+ iterationDelay={3500}direction="alternate"easing="ease-in"useNativeDriver={true}@@ -745,6 +741,55 @@ export const FavoritesPlaceHolder = ({colors, animation}) => {};export const TagsPlaceHolder = ({colors, animation}) => {+ const slideRight = {+ 0: {+ transform: [+ {scaleX: 0.8},+ {+ scaleY: 0.8,+ },+ {+ translateX: 2,+ },+ {+ translateY: 2,+ },+ ],+ opacity: 0,+ },+ 0.6: {+ transform: [+ {scaleX: 0.9},+ {+ scaleY: 0.9,+ },+ {+ translateX: 0,+ },+ {+ translateY: 0,+ },+ ],++ opacity: 1,+ },+ 1: {+ transform: [+ {scaleX: 1},+ {+ scaleY: 1,+ },+ {+ translateX: -2,+ },+ {+ translateY: -2,+ },+ ],+ opacity: 0,+ },+ };+return (<Viewstyle={{@@ -756,22 +801,19 @@ export const TagsPlaceHolder = ({colors, animation}) => {<Animatable.Viewanimation={slideRight}iterationCount="infinite"- duration={3000}- iterationDelay={0}- direction="alternate"+ duration={11000}+ iterationDelay={500}easing="ease-in"useNativeDriver={true}style={{flexDirection: 'row',alignItems: 'center',position: 'absolute',- left: 50,+ left: 10,top: 60,}}><Viewstyle={{- backgroundColor: colors.shade,-borderRadius: 5,flexDirection: 'row',alignItems: 'center',@@ -782,37 +824,26 @@ export const TagsPlaceHolder = ({colors, animation}) => {color: colors.accent,fontSize: SIZE.sm,}}>- #+ #presentations</Text>- <View- style={{- width: 40,- backgroundColor: colors.accent,- height: 12,- borderRadius: 100,- }}- /></View></Animatable.View><Animatable.View- animation={slideLeft}+ animation={slideRight}iterationCount="infinite"- duration={3000}- iterationDelay={0}- direction="alternate"+ duration={10000}+ iterationDelay={1000}easing="ease-in"useNativeDriver={true}style={{flexDirection: 'row',alignItems: 'center',position: 'absolute',- left: 70,+ left: 0,top: 100,}}><Viewstyle={{- backgroundColor: colors.shade,-borderRadius: 5,flexDirection: 'row',alignItems: 'center',@@ -823,24 +854,15 @@ export const TagsPlaceHolder = ({colors, animation}) => {color: colors.accent,fontSize: SIZE.sm,}}>- #+ #morningcoffee</Text>- <View- style={{- width: 40,- backgroundColor: colors.accent,- height: 12,- borderRadius: 100,- }}- /></View></Animatable.View><Animatable.Viewanimation={slideRight}iterationCount="infinite"- duration={3000}- iterationDelay={0}- direction="alternate"+ duration={15000}+ iterationDelay={1500}easing="ease-in"useNativeDriver={true}style={{@@ -852,8 +874,6 @@ export const TagsPlaceHolder = ({colors, animation}) => {}}><Viewstyle={{- backgroundColor: colors.shade,-borderRadius: 5,flexDirection: 'row',alignItems: 'center',@@ -864,24 +884,15 @@ export const TagsPlaceHolder = ({colors, animation}) => {color: colors.accent,fontSize: SIZE.sm,}}>- #+ #quotesonlife</Text>- <View- style={{- width: 40,- backgroundColor: colors.accent,- height: 12,- borderRadius: 100,- }}- /></View></Animatable.View><Animatable.View- animation={slideLeft}+ animation={slideRight}iterationCount="infinite"- duration={3000}- iterationDelay={0}- direction="alternate"+ duration={8000}+ iterationDelay={1500}easing="ease-in"useNativeDriver={true}style={{@@ -893,8 +904,6 @@ export const TagsPlaceHolder = ({colors, animation}) => {}}><Viewstyle={{- backgroundColor: colors.shade,-borderRadius: 5,flexDirection: 'row',alignItems: 'center',@@ -905,37 +914,26 @@ export const TagsPlaceHolder = ({colors, animation}) => {color: colors.accent,fontSize: SIZE.sm,}}>- #+ #workinprogress</Text>- <View- style={{- width: 40,- backgroundColor: colors.accent,- height: 12,- borderRadius: 100,- }}- /></View></Animatable.View><Animatable.Viewanimation={slideRight}iterationCount="infinite"- duration={3000}- iterationDelay={0}- direction="alternate"+ duration={12000}+ iterationDelay={2000}easing="ease-in"useNativeDriver={true}style={{flexDirection: 'row',alignItems: 'center',position: 'absolute',- left: 50,+ left: 20,top: 140,}}><Viewstyle={{- backgroundColor: colors.shade,-borderRadius: 5,flexDirection: 'row',alignItems: 'center',@@ -946,24 +944,15 @@ export const TagsPlaceHolder = ({colors, animation}) => {color: colors.accent,fontSize: SIZE.sm,}}>- #+ #todolists</Text>- <View- style={{- width: 40,- backgroundColor: colors.accent,- height: 12,- borderRadius: 100,- }}- /></View></Animatable.View><Animatable.View- animation={slideLeft}+ animation={slideRight}iterationCount="infinite"- duration={3000}+ duration={10000}iterationDelay={0}- direction="alternate"easing="ease-in"useNativeDriver={true}style={{@@ -975,8 +964,6 @@ export const TagsPlaceHolder = ({colors, animation}) => {}}><Viewstyle={{- backgroundColor: colors.shade,-borderRadius: 5,flexDirection: 'row',alignItems: 'center',@@ -987,16 +974,8 @@ export const TagsPlaceHolder = ({colors, animation}) => {color: colors.accent,fontSize: SIZE.sm,}}>- #+ #myschoolwork</Text>- <View- style={{- width: 40,- backgroundColor: colors.accent,- height: 12,- borderRadius: 100,- }}- /></View></Animatable.View></View>diff --git a/apps/mobile/src/components/Menu/index.js b/apps/mobile/src/components/Menu/index.jsindex ad8a96054..d64d5769a 100644--- a/apps/mobile/src/components/Menu/index.js+++ b/apps/mobile/src/components/Menu/index.js@@ -9,7 +9,7 @@ import {View,} from 'react-native';import FastStorage from 'react-native-fast-storage';-import Icon from 'react-native-vector-icons/Feather';+import Icon from 'react-native-vector-icons/MaterialCommunityIcons';import {DDS} from '../../../App';import {ACCENT,@@ -56,14 +56,14 @@ export const Menu = ({const listItems = [{name: 'Home',- icon: 'home',+ icon: 'home-variant-outline',func: () => NavigationService.navigate('Home'),close: true,},{name: 'Notebooks',- icon: 'book',+ icon: 'book-outline',func: () =>NavigationService.navigate('Folders', {title: 'Notebooks',@@ -74,14 +74,14 @@ export const Menu = ({{name: 'Favorites',- icon: 'star',+ icon: 'star-outline',func: () => NavigationService.navigate('Favorites'),close: true,},{name: 'Trash',- icon: 'trash',+ icon: 'delete-outline',func: () => NavigationService.navigate('Trash'),close: true,},@@ -90,7 +90,7 @@ export const Menu = ({const listItems2 = [{name: 'Night mode',- icon: 'moon',+ icon: 'theme-light-dark',func: () => {if (!colors.night) {FastStorage.setItem('theme', JSON.stringify({night: true}));@@ -107,7 +107,7 @@ export const Menu = ({},{name: 'Settings',- icon: 'settings',+ icon: 'settings-outline',func: () => NavigationService.navigate('Settings'),close: true,},@@ -231,10 +231,13 @@ export const Menu = ({<Iconstyle={{minWidth: noTextMode ? 5 : 40,++ textAlignVertical: 'center',+ textAlign: 'left',}}name={item.icon}color={colors.accent}- size={SIZE.md}+ size={SIZE.md + 1}/>{noTextMode ? null : (<Text@@ -285,9 +288,9 @@ export const Menu = ({style={{minWidth: noTextMode ? 5 : 40,}}- name="tag"+ name="tag-outline"color={colors.accent}- size={SIZE.md}+ size={SIZE.md + 1}/>{noTextMode ? null : (<Text@@ -532,8 +535,8 @@ export const Menu = ({justifyContent: noTextMode ? 'center' : 'space-between',alignItems: 'center',paddingBottom: noTextMode ? pv + 2 : normalize(15),- paddingTop:- index === 0 ? pv : noTextMode ? pv + 2 : normalize(15),++ paddingTop: noTextMode ? pv + 2 : normalize(15),}}><Viewstyle={{@@ -546,7 +549,7 @@ export const Menu = ({}}name={item.icon}color={colors.accent}- size={SIZE.md}+ size={SIZE.md + 1}/>{noTextMode ? null : (<Text@@ -562,9 +565,9 @@ export const Menu = ({{item.switch && !noTextMode ? (<Icon- size={SIZE.lg}+ size={SIZE.xl}color={item.on ? colors.accent : colors.icon}- name={item.on ? 'toggle-right' : 'toggle-left'}+ name={item.on ? 'toggle-switch' : 'toggle-switch-off'}/>) : (undefined@@ -596,7 +599,7 @@ export const Menu = ({color: 'white',fontSize: SIZE.xs,}}>- <Icon name="user" /> ammarahmed6506+ <Icon name="account-outline" /> ammarahmed6506</Text><Textstyle={{@@ -623,23 +626,14 @@ export const Menu = ({color: colors.pri,fontSize: SIZE.xxs,}}>- <Icon color={colors.accent} name="refresh-ccw" /> Synced 3 mins- ago.+ <Icon color={colors.accent} name="sync" /> Synced 3 mins ago.</Text>- <TouchableOpacity- style={{- borderWidth: 1,- borderColor: colors.accent,- width: 16,- height: 16,- justifyContent: 'center',- alignItems: 'center',- borderRadius: 100,- paddingTop: 1.5,- }}>- <Icon size={SIZE.xxs} color={colors.accent} name="check" />- </TouchableOpacity>+ <Icon+ size={SIZE.sm}+ color={colors.accent}+ name="check-circle-outline"+ /></View></View></View>diff --git a/apps/mobile/src/components/header/index.js b/apps/mobile/src/components/header/index.jsindex 86b1cf73b..9a7c56445 100644--- a/apps/mobile/src/components/header/index.js+++ b/apps/mobile/src/components/header/index.js@@ -1,7 +1,6 @@import React from 'react';import {Platform, StatusBar, Text, TouchableOpacity, View} from 'react-native';import * as Animatable from 'react-native-animatable';-import Icon from 'react-native-vector-icons/Feather';import {DDS} from '../../../App';import {SIZE, WEIGHT} from '../../common/common';import {useTracked} from '../../provider';@@ -10,6 +9,7 @@ import {eCloseLoginDialog} from '../../services/events';import NavigationService from '../../services/NavigationService';import {SideMenuEvent} from '../../utils/utils';import {moveNoteHideEvent} from '../DialogManager';+import Icon from 'react-native-vector-icons/MaterialCommunityIcons';export const Header = ({heading,@@ -75,7 +75,6 @@ export const Header = ({alignItems: 'flex-start',height: 40,width: 50,- marginTop: 2.5,}}><Iconstyle={{@@ -99,10 +98,9 @@ export const Header = ({justifyContent: 'center',alignItems: 'flex-start',height: 40,- marginTop: 2.5,width: 60,}}>- <Icon color={colors.pri} name={'menu'} size={SIZE.xxxl - 3} />+ <Icon color={colors.pri} name={'menu'} size={SIZE.xxxl} /></TouchableOpacity>) : (undefined@@ -145,7 +143,7 @@ export const Header = ({width: 60,paddingRight: 0,}}>- <Icon name={'search'} size={SIZE.xl} color={colors.icon} />+ <Icon name={'magnify'} size={SIZE.xl} color={colors.icon} /></TouchableOpacity></Animatable.View>{verticalMenu ? (@@ -156,38 +154,7 @@ export const Header = ({height: 40,width: 60,}}>- <Icon- style={{- position: 'absolute',- transform: [- {- translateX: 0,- },- {- translateY: 5,- },- ],- }}- name="arrow-down"- size={SIZE.lg}- color={colors.icon}- />- <Icon- style={{- position: 'absolute',- transform: [- {- translateX: -15,- },- {- translateY: -5,- },- ],- }}- name="arrow-up"- size={SIZE.lg}- color={colors.icon}- />+ <Icon name="sort" size={SIZE.xl} color={colors.icon} /></TouchableOpacity>) : null}</View>diff --git a/apps/mobile/src/utils/animations.js b/apps/mobile/src/utils/animations.jsindex 85329b143..0b2159f40 100644--- a/apps/mobile/src/utils/animations.js+++ b/apps/mobile/src/utils/animations.js@@ -36,16 +36,35 @@ export const rotate = {export const deleteItems = (tX, tY) => {return {0: {- transform: [{translateX: tX}, {translateY: tY}],+ transform: [+ {translateX: tX},+ {translateY: tY},+ {scaleX: 0.6},+ {scaleY: 0.6},+ ],+ opacity: 0,},0.3: {- transform: [{translateX: 0}, {translateY: 0}],+ transform: [+ {translateX: 0},+ {translateY: 0},+ {scaleX: 0.8},+ {scaleY: 0.8},+ ],+ opacity: 0.7,},0.5: {- transform: [{translateX: 0}, {translateY: 50}],+ transform: [{translateX: 0}, {translateY: 50}, {scaleX: 1}, {scaleY: 1}],+ opacity: 0.9,},1: {- transform: [{translateX: 0}, {translateY: 110}],+ transform: [+ {translateX: 0},+ {translateY: 110},+ {scaleX: 0.6},+ {scaleY: 0.6},+ ],+ opacity: 0,},};};diff --git a/apps/mobile/src/views/Favorites/index.js b/apps/mobile/src/views/Favorites/index.jsindex c87f372ff..d0a4f184a 100644--- a/apps/mobile/src/views/Favorites/index.js+++ b/apps/mobile/src/views/Favorites/index.js@@ -83,21 +83,13 @@ export const Favorites = ({navigation}) => {<FavoritesPlaceHolder /><Textstyle={{- color: colors.pri,- fontSize: SIZE.md,+ color: colors.icon,+ fontSize: SIZE.sm,fontFamily: WEIGHT.regular,- marginTop: 20,+ marginTop: 30,}}>Favorite notes & notebooks appear here.</Text>- <Text- style={{- fontSize: SIZE.sm,- color: colors.icon,- marginTop: 20,- }}>- Favorites are empty.- </Text></View>}data={favorites}diff --git a/apps/mobile/src/views/Folders/index.js b/apps/mobile/src/views/Folders/index.jsindex cd0e90f27..576c2ff7e 100644--- a/apps/mobile/src/views/Folders/index.js+++ b/apps/mobile/src/views/Folders/index.js@@ -173,20 +173,12 @@ export const Folders = ({navigation}) => {<Textstyle={{color: colors.icon,- fontSize: SIZE.md,+ fontSize: SIZE.sm,fontFamily: WEIGHT.regular,- marginTop: 20,+ marginTop: 30,}}>Notebooks you add will appear here</Text>- <Text- style={{- fontSize: SIZE.sm,- color: colors.icon,- marginTop: 20,- }}>- No Notebooks found- </Text></View>)}diff --git a/apps/mobile/src/views/Tags/index.js b/apps/mobile/src/views/Tags/index.jsindex 22be9f97d..fef4ee157 100644--- a/apps/mobile/src/views/Tags/index.js+++ b/apps/mobile/src/views/Tags/index.js@@ -87,20 +87,12 @@ export const Tags = ({navigation}) => {opacity: 0.8,}}><TagsPlaceHolder colors={colors} />- <Text- style={{- fontSize: SIZE.md,- color: colors.icon,- }}>- Tags added to notes appear here- </Text><Textstyle={{fontSize: SIZE.sm,color: colors.icon,- marginTop: 20,}}>- No tags found+ Tags added to notes appear here</Text></View>}diff --git a/apps/mobile/src/views/Trash/index.js b/apps/mobile/src/views/Trash/index.jsindex 14e36d6be..30e0ae28f 100644--- a/apps/mobile/src/views/Trash/index.js+++ b/apps/mobile/src/views/Trash/index.js@@ -86,20 +86,12 @@ export const Trash = ({navigation}) => {<Textstyle={{color: colors.icon,- fontSize: SIZE.md,+ fontSize: SIZE.sm,fontFamily: WEIGHT.regular,- marginTop: 20,+ marginTop: 30,}}>Deleted notes & notebooks appear here.</Text>- <Text- style={{- fontSize: SIZE.sm,- color: colors.icon,- marginTop: 20,- }}>- Trash is empty- </Text></View>);