This repository has been archived by the owner on Sep 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.ts
97 lines (84 loc) · 2.87 KB
/
config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
/**
* Copyright (C) 2021 AzureRain
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 3.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
import React from 'react';
import { NavigationContainerRef } from '@react-navigation/native';
const marked = require('marked');
const constants = {
embeddedImages: false,
charaDetailHeaderHeight: 300,
sqliteTables: ['basic_info', 'character', 'ext_links'],
maxQueryLengthEmbedded: 20,
longContentThreshold: 450,
bookmarkListKey: '@userdata_bookmark_names',
maxDiscoveryCardNumber: 6,
};
const about = {
fandom: `
Textural materials in this application are gathered from the [Virtual YouTuber Wiki](https://virtualyoutuber.fandom.com) at Fandom and is licensed under the [Creative Commons Attribution-Share Alike License](https://creativecommons.org/licenses/by-sa/3.0/).
`,
license: `
VTuber Handbook 0.1.1 - A mobile directory of VTubers
Copyright (C) 2021 AzureRain
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; version 3.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
`,
};
const redditConstants = {
hotSortUrl: 'https://www.reddit.com/r/VirtualYoutubers/hot.json',
headerImgUrl:
'https://styles.redditmedia.com/t5_9y7rz/styles/bannerBackgroundImage_qglbg2o5qjg41.jpg',
};
const markedOptions = {
renderer: new marked.Renderer(),
gfm: true,
breaks: true,
smartLists: true,
smartypants: true,
xhtml: true,
};
const snackBarText = {
addBookmark: 'Bookmark Added',
removeBookmark: 'Bookmark removed',
};
const extLinksOrder: { [key: string]: number } = {
official_channel: 1,
twitch: 2,
twitter: 3,
official_site: 4,
patreon: 5,
facebook: 6,
instagram: 7,
pixiv: 8,
booth: 9,
marshmallow: 10,
};
const TopNavigationContainer = React.createRef<NavigationContainerRef>();
export default constants;
export {
redditConstants,
extLinksOrder,
TopNavigationContainer,
markedOptions,
about,
snackBarText,
};