mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-29 00:20:04 +01:00
192 lines
3.9 KiB
JavaScript
192 lines
3.9 KiB
JavaScript
import { Platform } from 'react-native';
|
|
import { Monographs } from '../screens/notes/monographs';
|
|
import { eSendEvent } from '../services/event-manager';
|
|
import Navigation from '../services/navigation';
|
|
import { refreshNotesPage } from './events';
|
|
|
|
export const STORE_LINK =
|
|
Platform.OS === 'ios'
|
|
? 'https://apps.apple.com/us/app/notesnook/id1544027013'
|
|
: 'https://play.google.com/store/apps/details?id=com.streetwriters.notesnook';
|
|
|
|
export const GROUP = {
|
|
default: 'default',
|
|
None: 'none',
|
|
abc: 'abc',
|
|
year: 'year',
|
|
week: 'week',
|
|
month: 'month'
|
|
};
|
|
|
|
export const SORT = {
|
|
dateEdited: 'Date edited',
|
|
dateCreated: 'Date created',
|
|
title: 'Title'
|
|
};
|
|
|
|
export const itemSkus = [
|
|
'com.streetwriters.notesnook.sub.mo',
|
|
'com.streetwriters.notesnook.sub.yr',
|
|
'com.streetwriters.notesnook.sub.yr.15',
|
|
'com.streetwriters.notesnook.sub.mo.15',
|
|
'com.streetwriters.notesnook.sub.mo.ofr',
|
|
'com.streetwriters.notesnook.sub.yr.trialoffer',
|
|
'com.streetwriters.notesnook.sub.mo.trialoffer',
|
|
'com.streetwriters.notesnook.sub.mo.tier1',
|
|
'com.streetwriters.notesnook.sub.yr.tier1',
|
|
'com.streetwriters.notesnook.sub.mo.tier2',
|
|
'com.streetwriters.notesnook.sub.yr.tier2',
|
|
'com.streetwriters.notesnook.sub.mo.tier3',
|
|
'com.streetwriters.notesnook.sub.yr.tier3'
|
|
];
|
|
|
|
export const SUBSCRIPTION_STATUS = {
|
|
BASIC: 0,
|
|
TRIAL: 1,
|
|
BETA: 2,
|
|
PREMIUM: 5,
|
|
PREMIUM_EXPIRED: 6,
|
|
PREMIUM_CANCELLED: 7
|
|
};
|
|
|
|
export const SUBSCRIPTION_STATUS_STRINGS = {
|
|
0: 'Basic',
|
|
1: 'Trial',
|
|
2: Platform.OS === 'ios' ? 'Pro' : 'Beta',
|
|
5: 'Pro',
|
|
6: 'Expired',
|
|
7: 'Pro'
|
|
};
|
|
|
|
export const SUBSCRIPTION_PROVIDER = {
|
|
0: null,
|
|
1: {
|
|
type: 'iOS',
|
|
title: 'Subscribed on iOS',
|
|
desc: 'You subscribed to Notesnook Pro on iOS using Apple In App Purchase. You can cancel anytime with your iTunes Account settings.',
|
|
icon: 'ios'
|
|
},
|
|
2: {
|
|
type: 'Android',
|
|
title: 'Subscribed on Android',
|
|
desc: 'You subscribed to Notesnook Pro on Android Phone/Tablet using Google In App Purchase.',
|
|
icon: 'android'
|
|
},
|
|
3: {
|
|
type: 'Web',
|
|
title: 'Subscribed on Web',
|
|
desc: 'You subscribed to Notesnook Pro on the Web/Desktop App.',
|
|
icon: 'web'
|
|
}
|
|
};
|
|
|
|
export const MenuItemsList = [
|
|
{
|
|
name: 'Notes',
|
|
icon: 'home-variant-outline',
|
|
close: true
|
|
},
|
|
{
|
|
name: 'Notebooks',
|
|
icon: 'book-outline',
|
|
close: true
|
|
},
|
|
{
|
|
name: 'Favorites',
|
|
icon: 'star-outline',
|
|
close: true
|
|
},
|
|
{
|
|
name: 'Tags',
|
|
icon: 'pound',
|
|
close: true
|
|
},
|
|
{
|
|
name: 'Monographs',
|
|
icon: 'text-box-multiple-outline',
|
|
close: true,
|
|
func: () => {
|
|
Monographs.navigate();
|
|
}
|
|
},
|
|
{
|
|
name: 'Trash',
|
|
icon: 'delete-outline',
|
|
close: true
|
|
}
|
|
];
|
|
|
|
export const BUTTON_TYPES = {
|
|
transparent: {
|
|
primary: 'transparent',
|
|
text: 'accent',
|
|
selected: 'nav'
|
|
},
|
|
gray: {
|
|
primary: 'transparent',
|
|
text: 'icon',
|
|
selected: 'transGray'
|
|
},
|
|
grayBg: {
|
|
primary: 'nav',
|
|
text: 'icon',
|
|
selected: 'nav'
|
|
},
|
|
grayAccent: {
|
|
primary: 'nav',
|
|
text: 'accent',
|
|
selected: 'nav'
|
|
},
|
|
accent: (themeColor, text) => ({
|
|
primary: themeColor,
|
|
text: text,
|
|
selected: themeColor
|
|
}),
|
|
inverted: {
|
|
primary: 'bg',
|
|
text: 'accent',
|
|
selected: 'bg'
|
|
},
|
|
white: {
|
|
primary: 'transparent',
|
|
text: 'light',
|
|
selected: 'transGray'
|
|
},
|
|
shade: {
|
|
primary: 'shade',
|
|
text: 'accent',
|
|
selected: 'accent',
|
|
opacity: 0.12
|
|
},
|
|
error: {
|
|
primary: 'red',
|
|
text: 'red',
|
|
selected: 'red',
|
|
opacity: 0.12
|
|
},
|
|
errorShade: {
|
|
primary: 'transparent',
|
|
text: 'red',
|
|
selected: 'red',
|
|
opacity: 0.12
|
|
},
|
|
warn: {
|
|
primary: 'warningBg',
|
|
text: 'warningText',
|
|
selected: 'warningBg',
|
|
opacity: 0.12
|
|
}
|
|
};
|
|
|
|
export const bgTaskOptions = {
|
|
taskName: 'notesnookSync',
|
|
taskTitle: 'Notesnook Sync',
|
|
taskDesc: 'Syncing your notes.',
|
|
taskIcon: {
|
|
name: 'ic_stat_name',
|
|
type: 'drawable'
|
|
},
|
|
color: '#ffffff',
|
|
linkingURI: 'com.streetwriters.notesnook://launch'
|
|
};
|