remove fonts

This commit is contained in:
ammarahm-ed
2021-01-02 15:23:38 +05:00
parent ce07ccb5cd
commit 011deee7af
37 changed files with 185 additions and 425 deletions

View File

@@ -393,7 +393,7 @@ let simpleToolbar = [
[{direction: 'rtl'}], // text direction
];
let fonts = ['Poppins', 'sans-serif'];
let fonts = ["-apple-system","BlinkMacSystemFont","Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue","sans-serif"];
let fontNames = fonts.map((font) => getFontName(font));
function getFontName(font) {
return font.toLowerCase().replace(/\s/g, '-');

View File

@@ -1,109 +0,0 @@
/* devanagari */
@font-face {
font-family: 'Poppins';
font-style: italic;
font-weight: 400;
font-display: swap;
src: local('Poppins Italic'), local('Poppins-Italic'), url(./fonts/Poppins-Italic.ttf) format('truetype');
unicode-range: U+0900-097F, U+1CD0-1CF6, U+1CF8-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FB;
}
/* latin-ext */
@font-face {
font-family: 'Poppins';
font-style: italic;
font-weight: 400;
font-display: swap;
src: local('Poppins Italic'), local('Poppins-Italic'), url(./fonts/Poppins-Italic.ttf) format('truetype');
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
font-family: 'Poppins';
font-style: italic;
font-weight: 400;
font-display: swap;
src: local('Poppins Italic'), local('Poppins-Italic'), url(./fonts/Poppins-Italic.ttf) format('truetype');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* devanagari */
@font-face {
font-family: 'Poppins';
font-style: italic;
font-weight: 600;
font-display: swap;
src: local('Poppins SemiBold Italic'), local('Poppins-SemiBoldItalic'), url(./fonts/Poppins-SemiBoldItalic.ttf) format('truetype');
unicode-range: U+0900-097F, U+1CD0-1CF6, U+1CF8-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FB;
}
/* latin-ext */
@font-face {
font-family: 'Poppins';
font-style: italic;
font-weight: 600;
font-display: swap;
src: local('Poppins SemiBold Italic'), local('Poppins-SemiBoldItalic'), url(./fonts/Poppins-SemiBoldItalic.ttf) format('truetype');
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
font-family: 'Poppins';
font-style: italic;
font-weight: 600;
font-display: swap;
src: local('Poppins SemiBold Italic'), local('Poppins-SemiBoldItalic'), url(./fonts/Poppins-SemiBoldItalic.ttf) format('truetype');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* devanagari */
@font-face {
font-family: 'Poppins';
font-style: normal;
font-weight: 400;
font-display: swap;
src: local('Poppins Regular'), local('Poppins-Regular'), url(./fonts/Poppins-Regular.ttf) format('truetype');
unicode-range: U+0900-097F, U+1CD0-1CF6, U+1CF8-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FB;
}
/* latin-ext */
@font-face {
font-family: 'Poppins';
font-style: normal;
font-weight: 400;
font-display: swap;
src: local('Poppins Regular'), local('Poppins-Regular'), url(./fonts/Poppins-Regular.ttf) format('truetype');
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
font-family: 'Poppins';
font-style: normal;
font-weight: 400;
font-display: swap;
src: local('Poppins Regular'), local('Poppins-Regular'), url(./fonts/Poppins-Regular.ttf) format('truetype');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* devanagari */
@font-face {
font-family: 'Poppins';
font-style: normal;
font-weight: 600;
font-display: swap;
src: local('Poppins SemiBold'), local('Poppins-SemiBold'), url(./fonts/Poppins-SemiBold.ttf) format('truetype');
unicode-range: U+0900-097F, U+1CD0-1CF6, U+1CF8-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FB;
}
/* latin-ext */
@font-face {
font-family: 'Poppins';
font-style: normal;
font-weight: 600;
font-display: swap;
src: local('Poppins SemiBold'), local('Poppins-SemiBold'), url(./fonts/Poppins-SemiBold.ttf) format('truetype');
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
font-family: 'Poppins';
font-style: normal;
font-weight: 600;
font-display: swap;
src: local('Poppins SemiBold'), local('Poppins-SemiBold'), url(./fonts/Poppins-SemiBold.ttf) format('truetype');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

View File

@@ -2,7 +2,7 @@
<head>
<meta content="width=device-width, initial-scale=1, user-scalable=no" name="viewport" />
<link href="fonts.css" rel="stylesheet">
<link href="styles.css" rel="stylesheet">
<style>

View File

@@ -610,37 +610,37 @@
.ql-snow .ql-editor h1 {
font-size: 2em;
font-family: 'Poppins', sans-serif;
font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;
font-weight: 600 !important;
}
.ql-snow .ql-editor h2 {
font-size: 1.5em;
font-family: 'Poppins', sans-serif;
font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;
font-weight: 600 !important;
}
.ql-snow .ql-editor h3 {
font-size: 1.17em;
font-family: 'Poppins', sans-serif;
font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;
font-weight: 600 !important;
}
.ql-snow .ql-editor h4 {
font-size: 1em;
font-family: 'Poppins', sans-serif;
font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;
font-weight: 600 !important;
}
.ql-snow .ql-editor h5 {
font-size: 0.83em;
font-family: 'Poppins', sans-serif;
font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;
font-weight: 600 !important;
}
.ql-snow .ql-editor h6 {
font-size: 0.67em;
font-family: 'Poppins', sans-serif;
font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;
font-weight: 600 !important;
}
@@ -912,7 +912,7 @@
.ql-toolbar.ql-snow {
box-sizing: border-box;
font-family: 'Poppins', sans-serif;
font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;
padding-left: 12px;
padding-right:12px;
padding-top: 5px;
@@ -1078,7 +1078,7 @@
}
#formBox textarea {
font-family: 'Poppins', sans-serif;
font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;
font-weight: 600 !important;
background-color: transparent;
border: none;
@@ -1115,7 +1115,7 @@
}
#textCopy {
font-family: 'Poppins', sans-serif;
font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;
font-weight: 600 !important;
}
@@ -1129,7 +1129,7 @@
color: gray;
font-size: 11px;
height: 20px;
font-family: 'Poppins';
font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;
margin-top: -8px;
margin-bottom: 6px ;
padding-left: 0px !important;

View File

@@ -2,7 +2,6 @@
<head>
<meta content="width=device-width, initial-scale=1, user-scalable=no" name="viewport" />
<link href="fonts.css" rel="stylesheet">
<link href="styles.css" rel="stylesheet">
<style>
.ql-toolbar {

View File

@@ -10,22 +10,16 @@ public class MyTextView extends AppCompatTextView {
public MyTextView(Context context, AttributeSet attrs, int defStyle) {
super(context, attrs, defStyle);
init();
}
public MyTextView(Context context, AttributeSet attrs) {
super(context, attrs);
init();
}
public MyTextView(Context context) {
super(context);
init();
}
public void init() {
Typeface tf = Typeface.createFromAsset(getContext().getAssets(), "fonts/Poppins-SemiBold.ttf");
setTypeface(tf);
}
}

View File

@@ -1,109 +0,0 @@
/* devanagari */
@font-face {
font-family: 'Poppins';
font-style: italic;
font-weight: 400;
font-display: swap;
src: local('Poppins Italic'), local('Poppins-Italic'), url(./fonts/Poppins-Italic.ttf) format('truetype');
unicode-range: U+0900-097F, U+1CD0-1CF6, U+1CF8-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FB;
}
/* latin-ext */
@font-face {
font-family: 'Poppins';
font-style: italic;
font-weight: 400;
font-display: swap;
src: local('Poppins Italic'), local('Poppins-Italic'), url(./fonts/Poppins-Italic.ttf) format('truetype');
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
font-family: 'Poppins';
font-style: italic;
font-weight: 400;
font-display: swap;
src: local('Poppins Italic'), local('Poppins-Italic'), url(./fonts/Poppins-Italic.ttf) format('truetype');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* devanagari */
@font-face {
font-family: 'Poppins';
font-style: italic;
font-weight: 600;
font-display: swap;
src: local('Poppins SemiBold Italic'), local('Poppins-SemiBoldItalic'), url(./fonts/Poppins-SemiBoldItalic.ttf) format('truetype');
unicode-range: U+0900-097F, U+1CD0-1CF6, U+1CF8-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FB;
}
/* latin-ext */
@font-face {
font-family: 'Poppins';
font-style: italic;
font-weight: 600;
font-display: swap;
src: local('Poppins SemiBold Italic'), local('Poppins-SemiBoldItalic'), u url(./fonts/Poppins-SemiBoldItalic.ttf) format('truetype');
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
font-family: 'Poppins';
font-style: italic;
font-weight: 600;
font-display: swap;
src: local('Poppins SemiBold Italic'), local('Poppins-SemiBoldItalic'), url(./fonts/Poppins-SemiBoldItalic.ttf) format('truetype');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* devanagari */
@font-face {
font-family: 'Poppins';
font-style: normal;
font-weight: 400;
font-display: swap;
src: local('Poppins Regular'), local('Poppins-Regular'), url(./fonts/Poppins-Regular.ttf) format('truetype');
unicode-range: U+0900-097F, U+1CD0-1CF6, U+1CF8-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FB;
}
/* latin-ext */
@font-face {
font-family: 'Poppins';
font-style: normal;
font-weight: 400;
font-display: swap;
src: local('Poppins Regular'), local('Poppins-Regular'), url(./fonts/Poppins-Regular.ttf) format('truetype');
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
font-family: 'Poppins';
font-style: normal;
font-weight: 400;
font-display: swap;
src: local('Poppins Regular'), local('Poppins-Regular'), url(./fonts/Poppins-Regular.ttf) format('truetype');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* devanagari */
@font-face {
font-family: 'Poppins';
font-style: normal;
font-weight: 600;
font-display: swap;
src: local('Poppins SemiBold'), local('Poppins-SemiBold'), url(./fonts/Poppins-SemiBold.ttf) format('truetype');
unicode-range: U+0900-097F, U+1CD0-1CF6, U+1CF8-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FB;
}
/* latin-ext */
@font-face {
font-family: 'Poppins';
font-style: normal;
font-weight: 600;
font-display: swap;
src: local('Poppins SemiBold'), local('Poppins-SemiBold'), url(./fonts/Poppins-SemiBold.ttf) format('truetype');
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
font-family: 'Poppins';
font-style: normal;
font-weight: 600;
font-display: swap;
src: local('Poppins SemiBold'), local('Poppins-SemiBold'), url(./fonts/Poppins-SemiBold.ttf) format('truetype');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

View File

@@ -2,7 +2,6 @@
<head>
<meta content="width=device-width, initial-scale=1, user-scalable=no" name="viewport" />
<link href="fonts.css" rel="stylesheet" />
<link href="styles.css" rel="stylesheet" />
<style>

View File

@@ -2,7 +2,6 @@
<head>
<meta content="width=device-width, initial-scale=1, user-scalable=no" name="viewport" />
<link href="fonts.css" rel="stylesheet">
<link href="styles.css" rel="stylesheet">
<style>
.ql-toolbar {

View File

@@ -609,37 +609,37 @@
}
.ql-snow .ql-editor h1 {
font-size: 2em;
font-family: 'Poppins', sans-serif;
font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;
font-weight: 600 !important;
}
.ql-snow .ql-editor h2 {
font-size: 1.5em;
font-family: 'Poppins', sans-serif;
font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;
font-weight: 600 !important;
}
.ql-snow .ql-editor h3 {
font-size: 1.17em;
font-family: 'Poppins', sans-serif;
font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;
font-weight: 600 !important;
}
.ql-snow .ql-editor h4 {
font-size: 1em;
font-family: 'Poppins', sans-serif;
font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;
font-weight: 600 !important;
}
.ql-snow .ql-editor h5 {
font-size: 0.83em;
font-family: 'Poppins', sans-serif;
font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;
font-weight: 600 !important;
}
.ql-snow .ql-editor h6 {
font-size: 0.67em;
font-family: 'Poppins', sans-serif;
font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;
font-weight: 600 !important;
}
@@ -910,7 +910,7 @@
.ql-toolbar.ql-snow {
box-sizing: border-box;
font-family: 'Poppins', sans-serif;
font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;
padding-left: 12px;
padding-right:12px;
padding-top: 5px;
@@ -1087,7 +1087,7 @@
}
#formBox textarea {
font-family: 'Poppins', sans-serif;
font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;
font-weight: 600 !important;
background-color: transparent;
border: none;
@@ -1126,7 +1126,7 @@
}
#textCopy {
font-family: 'Poppins', sans-serif;
font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif
font-weight: 600 !important;
}
@@ -1144,7 +1144,7 @@
color: gray;
font-size: 11px;
height: 20px;
font-family: 'Poppins';
font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;
margin-top: -8px;
margin-bottom: 6px;
}

View File

@@ -1,19 +1,18 @@
import React, {createRef, useCallback, useEffect, useState} from 'react';
import {TextInput, TouchableOpacity, View} from 'react-native';
import {ScrollView} from 'react-native-gesture-handler';
import {notesnook} from '../../../e2e/test.ids';
import {useTracked} from '../../provider';
import {Actions} from '../../provider/Actions';
import React, { createRef, useCallback, useEffect, useState } from 'react';
import { TextInput, TouchableOpacity, View } from 'react-native';
import { ScrollView } from 'react-native-gesture-handler';
import { notesnook } from '../../../e2e/test.ids';
import { useTracked } from '../../provider';
import { Actions } from '../../provider/Actions';
import {
eSendEvent,
sendNoteEditedEvent,
ToastEvent,
ToastEvent
} from '../../services/EventManager';
import Navigation from '../../services/Navigation';
import {db} from '../../utils/DB';
import {refreshNotesPage} from '../../utils/Events';
import {SIZE, WEIGHT} from '../../utils/SizeUtils';
import {Button} from '../Button';
import { db } from '../../utils/DB';
import { refreshNotesPage } from '../../utils/Events';
import { SIZE } from '../../utils/SizeUtils';
import { Button } from '../Button';
import Heading from '../Typography/Heading';
import Paragraph from '../Typography/Paragraph';
@@ -236,7 +235,7 @@ export const ActionSheetTagsSection = ({item, close}) => {
style={{
minWidth: 100,
zIndex: 10,
fontFamily: WEIGHT.regular,
fontFamily: "sans-serif",
color: colors.pri,
paddingHorizontal: 5,
paddingVertical: 0,

View File

@@ -1,4 +1,4 @@
import React, {createRef} from 'react';
import React, { createRef } from 'react';
import {
Keyboard,
KeyboardAvoidingView,
@@ -7,24 +7,21 @@ import {
SafeAreaView,
StyleSheet,
TouchableOpacity,
View,
View
} from 'react-native';
import {FlatList, TextInput} from 'react-native-gesture-handler';
import Icon from 'react-native-vector-icons/MaterialCommunityIcons';
import {notesnook} from '../../../e2e/test.ids';
import {Actions} from '../../provider/Actions';
import {DDS} from '../../services/DeviceDetection';
import {eSendEvent, ToastEvent} from '../../services/EventManager';
import {db} from '../../utils/DB';
import {eShowGetPremium} from '../../utils/Events';
import {ph, pv, SIZE, WEIGHT} from '../../utils/SizeUtils';
import {ActionIcon} from '../ActionIcon';
import {GetPremium} from '../ActionSheetComponent/GetPremium';
import { FlatList, TextInput } from 'react-native-gesture-handler';
import { notesnook } from '../../../e2e/test.ids';
import { Actions } from '../../provider/Actions';
import { DDS } from '../../services/DeviceDetection';
import { ToastEvent } from '../../services/EventManager';
import { db } from '../../utils/DB';
import { ph, pv, SIZE } from '../../utils/SizeUtils';
import { ActionIcon } from '../ActionIcon';
import DialogButtons from '../Dialog/dialog-buttons';
import DialogHeader from '../Dialog/dialog-header';
import {updateEvent} from '../DialogManager/recievers';
import { updateEvent } from '../DialogManager/recievers';
import Input from '../Input';
import {Toast} from '../Toast';
import { Toast } from '../Toast';
import Paragraph from '../Typography/Paragraph';
let refs = [];
@@ -489,7 +486,6 @@ const styles = StyleSheet.create({
alignItems: 'center',
},
headingText: {
fontFamily: WEIGHT.bold,
marginLeft: 5,
fontSize: SIZE.xl,
},
@@ -499,7 +495,6 @@ const styles = StyleSheet.create({
borderRadius: 0,
minHeight: 45,
fontSize: SIZE.md,
fontFamily: WEIGHT.regular,
padding: pv - 2,
borderBottomWidth: 1,
marginTop: 10,
@@ -530,7 +525,7 @@ const styles = StyleSheet.create({
topicInput: {
padding: pv - 5,
fontSize: SIZE.sm,
fontFamily: WEIGHT.regular,
fontFamily: "sans-serif",
paddingHorizontal: ph,
paddingRight: 40,
paddingVertical: 10,

View File

@@ -1,9 +1,8 @@
import React, {useEffect, useState} from 'react';
import {Text, View} from 'react-native';
import {useTracked} from '../../provider';
import {eSubscribeEvent, eUnSubscribeEvent} from '../../services/EventManager';
import {getElevation} from '../../utils';
import {SIZE, WEIGHT} from '../../utils/SizeUtils';
import React, { useEffect, useState } from 'react';
import { View } from 'react-native';
import { useTracked } from '../../provider';
import { eSubscribeEvent, eUnSubscribeEvent } from '../../services/EventManager';
import { getElevation } from '../../utils';
import Paragraph from '../Typography/Paragraph';
let contextTimeout = null;

View File

@@ -1,6 +1,6 @@
import React, { createRef } from 'react';
import {Text} from 'react-native';
import {SIZE, WEIGHT} from '../../utils/SizeUtils';
import { Text } from 'react-native';
import { SIZE } from '../../utils/SizeUtils';
export const dummyRef = createRef();
@@ -10,7 +10,7 @@ export const DummyText = () => {
ref={dummyRef}
style={[
{
fontFamily: WEIGHT.regular,
fontFamily: "sans-serif",
fontSize: SIZE.sm,
position:"absolute",
right:-1000,

View File

@@ -1,16 +1,16 @@
import React, {Fragment, useEffect, useState} from 'react';
import {Platform, StyleSheet, TouchableOpacity, View} from 'react-native';
import React, { Fragment, useEffect, useState } from 'react';
import { Platform, StyleSheet, TouchableOpacity, View } from 'react-native';
import FileViewer from 'react-native-file-viewer';
import Icon from 'react-native-vector-icons/MaterialCommunityIcons';
import {notesnook} from '../../../e2e/test.ids';
import {useTracked} from '../../provider';
import {DDS} from '../../services/DeviceDetection';
import {ToastEvent} from '../../services/EventManager';
import { notesnook } from '../../../e2e/test.ids';
import { useTracked } from '../../provider';
import { DDS } from '../../services/DeviceDetection';
import { ToastEvent } from '../../services/EventManager';
import Exporter from '../../services/Exporter';
import {getElevation} from '../../utils';
import {ph, pv, SIZE, WEIGHT} from '../../utils/SizeUtils';
import {sleep} from '../../utils/TimeUtils';
import {GetPremium} from '../ActionSheetComponent/GetPremium';
import { getElevation } from '../../utils';
import { ph, pv, SIZE } from '../../utils/SizeUtils';
import { sleep } from '../../utils/TimeUtils';
import { GetPremium } from '../ActionSheetComponent/GetPremium';
import BaseDialog from '../Dialog/base-dialog';
import DialogButtons from '../Dialog/dialog-buttons';
import DialogHeader from '../Dialog/dialog-header';
@@ -247,7 +247,7 @@ const styles = StyleSheet.create({
flexDirection: 'row',
},
buttonText: {
fontFamily: WEIGHT.medium,
fontFamily: "sans-serif",
color: 'white',
fontSize: SIZE.sm,
marginLeft: 5,

View File

@@ -1,18 +1,17 @@
import React, {useEffect, useState} from 'react';
import {View} from 'react-native';
import {TextInput} from 'react-native-gesture-handler';
import React, { useState } from 'react';
import { View } from 'react-native';
import { TextInput } from 'react-native-gesture-handler';
import Icon from 'react-native-vector-icons/MaterialCommunityIcons';
import {useTracked} from '../../provider/index';
import { useTracked } from '../../provider/index';
import {
ERRORS_LIST,
validateEmail,
validatePass,
validateUsername,
validateUsername
} from '../../services/Validation';
import {getElevation} from '../../utils';
import {hexToRGBA, RGB_Linear_Shade} from '../../utils/ColorUtils';
import {SIZE, WEIGHT} from '../../utils/SizeUtils';
import {ActionIcon} from '../ActionIcon';
import { getElevation } from '../../utils';
import { SIZE } from '../../utils/SizeUtils';
import { ActionIcon } from '../ActionIcon';
import Paragraph from '../Typography/Paragraph';
const Input = ({
@@ -132,7 +131,7 @@ const Input = ({
const textStyle = {
paddingHorizontal: 0,
fontSize: SIZE.md,
fontFamily: WEIGHT.regular,
fontFamily: "sans-serif",
color: colors.pri,
paddingVertical: 0,
paddingBottom: 2.5,

View File

@@ -1,8 +1,8 @@
import React from 'react';
import {ActivityIndicator, StyleSheet, Text, View} from 'react-native';
import {useTracked} from '../../provider';
import {Button} from '../Button';
import {ph, pv, SIZE, WEIGHT} from '../../utils/SizeUtils';
import { ActivityIndicator, StyleSheet, View } from 'react-native';
import { useTracked } from '../../provider';
import { ph, pv, SIZE } from '../../utils/SizeUtils';
import { Button } from '../Button';
import Paragraph from '../Typography/Paragraph';
export const Loading = ({
@@ -64,7 +64,7 @@ const styles = StyleSheet.create({
flexDirection: 'row',
},
buttonText: {
fontFamily: WEIGHT.medium,
fontFamily: "sans-serif",
color: 'white',
fontSize: SIZE.sm,
},

View File

@@ -1,12 +1,11 @@
import React, {useEffect, useState} from 'react';
import {InteractionManager, View} from 'react-native';
import {View} from 'react-native';
import Icon from 'react-native-vector-icons/MaterialCommunityIcons';
import {useTracked} from '../../provider';
import {eSubscribeEvent, eUnSubscribeEvent} from '../../services/EventManager';
import Navigation from '../../services/Navigation';
import {getElevation} from '../../utils';
import {normalize, SIZE} from '../../utils/SizeUtils';
import {ActionIcon} from '../ActionIcon';
import {Button} from '../Button';
import {PressableButton} from '../PressableButton';
import Heading from '../Typography/Heading';

View File

@@ -1,28 +1,28 @@
import React, {createRef, useEffect, useState} from 'react';
import {Keyboard, TextInput, TouchableOpacity, View} from 'react-native';
import {FlatList} from 'react-native-gesture-handler';
import React, { createRef, useEffect, useState } from 'react';
import { Keyboard, TextInput, TouchableOpacity, View } from 'react-native';
import { FlatList } from 'react-native-gesture-handler';
import Icon from 'react-native-vector-icons/MaterialCommunityIcons';
import {notesnook} from '../../../e2e/test.ids';
import {useTracked} from '../../provider';
import {Actions} from '../../provider/Actions';
import { notesnook } from '../../../e2e/test.ids';
import { useTracked } from '../../provider';
import { Actions } from '../../provider/Actions';
import {
eSendEvent,
eSubscribeEvent,
eUnSubscribeEvent,
sendNoteEditedEvent,
ToastEvent,
ToastEvent
} from '../../services/EventManager';
import {db} from '../../utils/DB';
import { db } from '../../utils/DB';
import {
eOnNewTopicAdded,
eOpenMoveNoteDialog,
refreshNotesPage,
refreshNotesPage
} from '../../utils/Events';
import {pv, SIZE, WEIGHT} from '../../utils/SizeUtils';
import { pv, SIZE } from '../../utils/SizeUtils';
import ActionSheetWrapper from '../ActionSheetComponent/ActionSheetWrapper';
import DialogHeader from '../Dialog/dialog-header';
import {PressableButton} from '../PressableButton';
import {Toast} from '../Toast';
import { PressableButton } from '../PressableButton';
import { Toast } from '../Toast';
import Heading from '../Typography/Heading';
import Paragraph from '../Typography/Paragraph';
@@ -238,7 +238,7 @@ const MoveNoteComponent = ({close, note, setNote}) => {
borderRadius: 5,
minHeight: 45,
fontSize: SIZE.md,
fontFamily: WEIGHT.regular,
fontFamily: "sans-serif",
padding: pv - 2,
},
]}
@@ -377,7 +377,7 @@ const MoveNoteComponent = ({close, note, setNote}) => {
borderRadius: 5,
height: 40,
fontSize: SIZE.sm,
fontFamily: WEIGHT.regular,
fontFamily: "sans-serif",
padding: pv - 2,
},
]}

View File

@@ -1,14 +1,14 @@
import React from 'react';
import {TouchableOpacity, View} from 'react-native';
import {notesnook} from '../../../e2e/test.ids';
import {useTracked} from '../../provider';
import { TouchableOpacity, View } from 'react-native';
import Icon from 'react-native-vector-icons/MaterialCommunityIcons';
import { notesnook } from '../../../e2e/test.ids';
import { useTracked } from '../../provider';
import Navigation from '../../services/Navigation';
import {ph, pv, SIZE, WEIGHT} from '../../utils/SizeUtils';
import {ActionIcon} from '../ActionIcon';
import {ActionSheetEvent} from '../DialogManager/recievers';
import { pv, SIZE } from '../../utils/SizeUtils';
import { ActionIcon } from '../ActionIcon';
import { ActionSheetEvent } from '../DialogManager/recievers';
import Heading from '../Typography/Heading';
import Paragraph from '../Typography/Paragraph';
import Icon from 'react-native-vector-icons/MaterialCommunityIcons';
export const NotebookItem = ({
item,
@@ -190,7 +190,7 @@ export const NotebookItem = ({
size={SIZE.xs}
style={{
marginRight: 10,
fontFamily: WEIGHT.regular,
fontFamily: "sans-serif",
}}>
{item && item.totalNotes && item.totalNotes > 1
? item.totalNotes + ' Notes'

View File

@@ -2,7 +2,7 @@ import React, { useEffect, useState } from 'react';
import { StyleSheet, View } from 'react-native';
import { useTracked } from '../../provider';
import { getElevation } from '../../utils';
import { ph, pv, SIZE, WEIGHT } from '../../utils/SizeUtils';
import { ph, pv, SIZE } from '../../utils/SizeUtils';
import BaseDialog from '../Dialog/base-dialog';
import DialogContainer from '../Dialog/dialog-container';
import Seperator from '../Seperator';
@@ -100,7 +100,7 @@ const styles = StyleSheet.create({
alignItems: 'center',
},
heading: {
fontFamily: WEIGHT.bold,
fontFamily: "sans-serif",
marginLeft: 5,
fontSize: SIZE.xxxl,
},
@@ -116,7 +116,7 @@ const styles = StyleSheet.create({
flexDirection: 'row',
},
buttonText: {
fontFamily: WEIGHT.medium,
fontFamily: "sans-serif",
color: 'white',
fontSize: SIZE.sm,
marginLeft: 5,

View File

@@ -1,9 +1,9 @@
import React, {useEffect, useState} from 'react';
import {Platform, TextInput, View} from 'react-native';
import {useTracked} from '../../provider';
import React, { useEffect, useState } from 'react';
import { Platform, TextInput, View } from 'react-native';
import { useTracked } from '../../provider';
import SearchService from '../../services/SearchService';
import {inputRef} from '../../utils/Refs';
import {SIZE, WEIGHT} from '../../utils/SizeUtils';
import { inputRef } from '../../utils/Refs';
import { SIZE } from '../../utils/SizeUtils';
export const SearchInput = (props) => {
const [state] = useTracked();
@@ -42,7 +42,7 @@ export const SearchInput = (props) => {
<TextInput
ref={inputRef}
style={{
fontFamily: WEIGHT.bold,
fontFamily: "sans-serif",
color: colors.pri,
fontSize: SIZE.xl,
flexGrow: 1,

View File

@@ -1,7 +1,7 @@
import React from 'react';
import {Text} from 'react-native';
import {useTracked} from '../../provider';
import {SIZE, WEIGHT} from '../../utils/SizeUtils';
import {SIZE} from '../../utils/SizeUtils';
/**
*
@@ -17,6 +17,7 @@ import {SIZE, WEIGHT} from '../../utils/SizeUtils';
const Heading = ({color, size = SIZE.xl, style, ...restProps}) => {
const [state] = useTracked();
const {colors} = state;
let fontSize = size || SIZE.xl;
return (
<Text
@@ -25,10 +26,10 @@ const Heading = ({color, size = SIZE.xl, style, ...restProps}) => {
{...restProps}
style={[
{
fontFamily: WEIGHT.bold,
fontFamily: 'sans-serif',
fontSize: size || SIZE.xl,
color: color || colors.heading,
paddingBottom: Platform.OS === 'ios' ? size * 0.25 : null,
fontWeight: 'bold',
},
style,
]}></Text>

View File

@@ -1,7 +1,7 @@
import React from 'react';
import {Platform, Text} from 'react-native';
import {useTracked} from '../../provider';
import {SIZE, WEIGHT} from '../../utils/SizeUtils';
import { Text } from 'react-native';
import { useTracked } from '../../provider';
import { SIZE } from '../../utils/SizeUtils';
/**
*
@@ -25,11 +25,9 @@ const Paragraph = ({color, size = SIZE.sm, style, ...restProps}) => {
{...restProps}
style={[
{
fontFamily: WEIGHT.regular,
fontSize: size || SIZE.sm,
color: color || colors.pri,
fontWeight: '400',
paddingBottom: Platform.OS === 'ios' ? size * 0.25 : null,
},
style,
]}></Text>

View File

@@ -1,36 +1,36 @@
import React, {Component, createRef} from 'react';
import {InteractionManager, TouchableOpacity, View} from 'react-native';
import React, { Component, createRef } from 'react';
import { InteractionManager, TouchableOpacity, View } from 'react-native';
import * as Keychain from 'react-native-keychain';
import Share from 'react-native-share';
import Icon from 'react-native-vector-icons/MaterialCommunityIcons';
import {notesnook} from '../../../e2e/test.ids';
import {Actions} from '../../provider/Actions';
import {DDS} from '../../services/DeviceDetection';
import { notesnook } from '../../../e2e/test.ids';
import { Actions } from '../../provider/Actions';
import { DDS } from '../../services/DeviceDetection';
import {
eSendEvent,
eSubscribeEvent,
eUnSubscribeEvent,
sendNoteEditedEvent,
ToastEvent,
ToastEvent
} from '../../services/EventManager';
import {getElevation, toTXT} from '../../utils';
import {db} from '../../utils/DB';
import { getElevation, toTXT } from '../../utils';
import { db } from '../../utils/DB';
import {
eCloseVaultDialog,
eOnLoadNote,
eOpenVaultDialog,
refreshNotesPage,
refreshNotesPage
} from '../../utils/Events';
import {tabBarRef} from '../../utils/Refs';
import {ph, pv, SIZE, WEIGHT} from '../../utils/SizeUtils';
import {sleep} from '../../utils/TimeUtils';
import {Button} from '../Button';
import { tabBarRef } from '../../utils/Refs';
import { ph, SIZE } from '../../utils/SizeUtils';
import { sleep } from '../../utils/TimeUtils';
import { Button } from '../Button';
import BaseDialog from '../Dialog/base-dialog';
import DialogButtons from '../Dialog/dialog-buttons';
import DialogHeader from '../Dialog/dialog-header';
import {updateEvent} from '../DialogManager/recievers';
import { updateEvent } from '../DialogManager/recievers';
import Input from '../Input';
import {Toast} from '../Toast';
import { Toast } from '../Toast';
import Paragraph from '../Typography/Paragraph';
const passInputRef = createRef();
@@ -643,7 +643,7 @@ export class VaultDialog extends Component {
<Paragraph
style={{
fontSize: SIZE.sm,
fontFamily: WEIGHT.regular,
fontFamily: "sans-serif",
color: colors.pri,
maxWidth: '90%',
marginLeft: 10,

View File

@@ -1,14 +1,13 @@
import {createDrawerNavigator} from '@react-navigation/drawer';
import {NavigationContainer} from '@react-navigation/native';
import { createDrawerNavigator } from '@react-navigation/drawer';
import { NavigationContainer } from '@react-navigation/native';
import * as React from 'react';
import {State} from 'react-native-gesture-handler';
import {Menu} from '../components/Menu';
import {useTracked} from '../provider';
import {eSubscribeEvent, eUnSubscribeEvent} from '../services/EventManager';
import {eCloseSideMenu, eOpenSideMenu} from '../utils/Events';
import {sideMenuRef, tabBarRef} from '../utils/Refs';
import {sleep} from '../utils/TimeUtils';
import {NavigatorStack} from './NavigatorStack';
import { State } from 'react-native-gesture-handler';
import { Menu } from '../components/Menu';
import { useTracked } from '../provider';
import { eSubscribeEvent, eUnSubscribeEvent } from '../services/EventManager';
import { eCloseSideMenu, eOpenSideMenu } from '../utils/Events';
import { sideMenuRef, tabBarRef } from '../utils/Refs';
import { NavigatorStack } from './NavigatorStack';
const Drawer = createDrawerNavigator();
@@ -33,8 +32,12 @@ export const NavigationStack = ({component = NavigatorStack}) => {
};
const setGestureEnabled = () => {
if (locked) {
setLocked(false);
}
if (initRender) {
setInitRender(false);
}
};
React.useEffect(() => {
@@ -44,7 +47,7 @@ export const NavigationStack = ({component = NavigatorStack}) => {
eUnSubscribeEvent(eOpenSideMenu, setGestureEnabled);
eUnSubscribeEvent(eCloseSideMenu, setGestureDisabled);
};
}, []);
}, [locked,initRender]);
return (
<NavigationContainer ref={sideMenuRef}>

View File

@@ -88,10 +88,4 @@ export const br = 5; // border radius
export var ph = normalize(10); // padding horizontal
export var pv = normalize(10); // padding vertical
export const opacity = 0.5; // active opacity
export const WEIGHT = {
light: 'Poppins-Regular',
regular: 'Poppins-Regular',
medium: 'Poppins-Regular',
semibold: 'Poppins-SemiBold',
bold: 'Poppins-SemiBold',
};

View File

@@ -1,12 +1,12 @@
import React, {useEffect, useState} from 'react';
import {TextInput} from 'react-native';
import Animated, {Easing} from 'react-native-reanimated';
import {useTracked} from '../../provider';
import {DDS} from '../../services/DeviceDetection';
import {eSubscribeEvent, eUnSubscribeEvent} from '../../services/EventManager';
import {SIZE, WEIGHT} from '../../utils/SizeUtils';
import {sleep} from '../../utils/TimeUtils';
import {post, _onMessage} from './Functions';
import React, { useEffect, useState } from 'react';
import { TextInput } from 'react-native';
import Animated, { Easing } from 'react-native-reanimated';
import { useTracked } from '../../provider';
import { DDS } from '../../services/DeviceDetection';
import { eSubscribeEvent, eUnSubscribeEvent } from '../../services/EventManager';
import { SIZE } from '../../utils/SizeUtils';
import { sleep } from '../../utils/TimeUtils';
import { post, _onMessage } from './Functions';
const opacityVal = new Animated.Value(0);
const translateY = new Animated.Value(-700);
@@ -60,7 +60,7 @@ export const EditorTitle = () => {
<TextInput
defaultValue={title}
style={{
fontFamily: WEIGHT.bold,
fontFamily: "sans-serif",
fontSize: SIZE.xl,
color: colors.heading,
maxWidth: '100%',

View File

@@ -1,4 +1,4 @@
import React, {createRef, useCallback, useEffect, useState} from 'react';
import React, { createRef, useCallback, useEffect, useState } from 'react';
import {
Appearance,
InteractionManager,
@@ -6,54 +6,54 @@ import {
Platform,
ScrollView,
TouchableOpacity,
View,
View
} from 'react-native';
import * as Keychain from 'react-native-keychain';
import {enabled} from 'react-native-privacy-snapshot';
import Menu, {MenuItem} from 'react-native-reanimated-material-menu';
import { enabled } from 'react-native-privacy-snapshot';
import Menu, { MenuItem } from 'react-native-reanimated-material-menu';
import Icon from 'react-native-vector-icons/MaterialCommunityIcons';
import {Button} from '../../components/Button';
import { Button } from '../../components/Button';
import BaseDialog from '../../components/Dialog/base-dialog';
import DialogButtons from '../../components/Dialog/dialog-buttons';
import DialogContainer from '../../components/Dialog/dialog-container';
import DialogHeader from '../../components/Dialog/dialog-header';
import {PressableButton} from '../../components/PressableButton';
import { PressableButton } from '../../components/PressableButton';
import Seperator from '../../components/Seperator';
import {ListHeaderComponent} from '../../components/SimpleList/ListHeaderComponent';
import { ListHeaderComponent } from '../../components/SimpleList/ListHeaderComponent';
import Heading from '../../components/Typography/Heading';
import Paragraph from '../../components/Typography/Paragraph';
import {useTracked} from '../../provider';
import {Actions} from '../../provider/Actions';
import { useTracked } from '../../provider';
import { Actions } from '../../provider/Actions';
import Backup from '../../services/Backup';
import {DDS} from '../../services/DeviceDetection';
import { DDS } from '../../services/DeviceDetection';
import {
eSendEvent,
eSubscribeEvent,
eUnSubscribeEvent,
openVault,
ToastEvent,
ToastEvent
} from '../../services/EventManager';
import {setLoginMessage} from '../../services/Message';
import { setLoginMessage } from '../../services/Message';
import Navigation from '../../services/Navigation';
import PremiumService from '../../services/PremiumService';
import SettingsService from '../../services/SettingsService';
import {
AndroidModule,
dWidth,
getElevation,
MenuItemsList,
setSetting,
SUBSCRIPTION_STATUS_STRINGS,
SUBSCRIPTION_STATUS_STRINGS
} from '../../utils';
import {
ACCENT,
COLOR_SCHEME,
COLOR_SCHEME_DARK,
COLOR_SCHEME_LIGHT,
setColorScheme,
setColorScheme
} from '../../utils/Colors';
import {hexToRGBA, RGB_Linear_Shade} from '../../utils/ColorUtils';
import {db} from '../../utils/DB';
import { hexToRGBA, RGB_Linear_Shade } from '../../utils/ColorUtils';
import { db } from '../../utils/DB';
import {
eCloseProgressDialog,
eOpenLoginDialog,
@@ -62,12 +62,12 @@ import {
eOpenRecoveryKeyDialog,
eOpenRestoreDialog,
eScrollEvent,
eUpdateSearchState,
eUpdateSearchState
} from '../../utils/Events';
import {MMKV} from '../../utils/mmkv';
import {pv, SIZE, WEIGHT} from '../../utils/SizeUtils';
import { MMKV } from '../../utils/mmkv';
import { pv, SIZE } from '../../utils/SizeUtils';
import Storage from '../../utils/storage';
import {timeConverter} from '../../utils/TimeUtils';
import { timeConverter } from '../../utils/TimeUtils';
const otherItems = [
{
@@ -747,7 +747,7 @@ const SettingsAppearanceSection = () => {
: 'transparent',
}}
textStyle={{
fontFamily: WEIGHT.regular,
fontFamily: "sans-serif",
fontSize: SIZE.sm,
color:
settings.homepage === item.name