gamebrary/src/constants.js

222 lines
4 KiB
JavaScript
Raw Normal View History

2020-08-25 04:23:22 +00:00
export const POPULAR_PLATFORMS = [169, 167, 130, 48, 49, 41];
2020-09-17 00:26:39 +00:00
export const DEFAULT_LIST_VIEW = 'single';
2021-04-24 06:58:07 +00:00
export const MIN_PROFILE_LENGTH = 6;
export const MAX_PROFILE_LENGTH = 32;
2020-09-17 00:26:39 +00:00
2020-08-22 18:57:33 +00:00
export const PLATFORM_CATEGORIES = {
1: 'console',
2: 'arcade',
3: 'platform',
4: 'operating_system',
5: 'portable_console',
6: 'computer',
};
2021-04-08 23:21:21 +00:00
export const AUTH_PROVIDERS = {
'google.com': { name: 'Google', id: 'google' },
'twitter.com': { name: 'Twitter', id: 'twitter' },
password: { name: 'Gamebrary (Email)', id: 'gamebrary' },
};
2021-02-18 19:40:53 +00:00
export const FIREBASE_CONFIG = {
apiKey: 'AIzaSyA6MsmnLtqT4b11r-j15wwreRypO3AodcA',
authDomain: 'gamebrary.com',
databaseURL: 'https://gamebrary-8c736.firebaseio.com',
projectId: 'gamebrary-8c736',
storageBucket: 'gamebrary-8c736.appspot.com',
messagingSenderId: '324529217902',
};
export const LINKS_CATEGORIES = {
2021-02-24 23:07:31 +00:00
1: { id: 'official', icon: 'fas fa-link' },
2: { id: 'fandom', svg: true },
3: { id: 'wikipedia', svg: true },
4: { id: 'facebook', svg: true },
5: { id: 'twitter', svg: true },
6: { id: 'twitch', svg: true },
8: { id: 'instagram', svg: true },
9: { id: 'youtube', svg: true },
10: { id: 'iphone', svg: true },
11: { id: 'ipad', svg: true },
12: { id: 'android', svg: true },
13: { id: 'steam', svg: true },
14: { id: 'reddit', svg: true },
15: { id: 'itch', svg: true },
16: { id: 'epicgames', svg: true },
17: { id: 'gog', svg: true },
18: { id: 'discord', svg: true },
};
2021-02-09 18:54:52 +00:00
export const KEYBOARD_SHORTCUTS = {
'MODAL_keyboard-shortcuts': ['shift', '?'],
'MODAL_create-board': ['shift', 'c'],
MODAL_devTools: ['shift', 'd'],
2021-02-09 18:54:52 +00:00
ROUTE_boards: ['shift', 'b'],
ROUTE_tags: ['shift', 't'],
ROUTE_notes: ['shift', 'n'],
ROUTE_wallpapers: ['shift', 'w'],
ROUTE_settings: ['shift', 's'],
};
2020-08-25 04:23:22 +00:00
export const PLATFORM_FILTER_FIELDS = [
null,
2020-08-26 07:16:49 +00:00
'all',
2020-08-25 04:23:22 +00:00
'console',
// 'arcade',
// 'platform',
'operating_system',
'portable_console',
'computer',
];
export const PLATFORM_SORT_FILEDS = [
'generation',
'name',
];
2020-08-22 18:57:33 +00:00
export const PLATFORM_BG_HEX = {
2020-08-23 07:34:16 +00:00
167: '#222',
166: '#000',
2020-08-22 18:57:33 +00:00
48: '#2e6db4',
49: '#177d3e',
130: '#ce181e',
};
export const LIST_VIEWS = {
single: 'Single',
grid: 'Grid',
compact: 'Compact',
text: 'Text',
};
export const PLATFORM_LOGO_FORMAT = {
2020-08-23 07:34:16 +00:00
164: 'png',
51: 'png',
47: 'png',
36: 'png',
2020-09-01 23:28:23 +00:00
45: 'png',
2020-08-23 07:34:16 +00:00
124: 'png',
2020-09-06 22:05:30 +00:00
123: 'png',
2020-08-23 07:34:16 +00:00
132: 'png',
160: 'png',
163: 'png',
161: 'png',
165: 'png',
150: 'png',
};
export const PLATFORM_NAME_OVERRIDES = {
6: 'Windows',
18: 'NES',
19: 'SNES',
21: 'GameCube',
150: 'PC Engine CD',
38: 'PSP',
163: 'Steam VR',
50: '3D0',
99: 'FAMICOM',
51: 'FAMICOM Disk System',
2020-08-22 18:57:33 +00:00
};
export const EXCLUDED_PLATFORMS = [
100,
101,
102,
103,
104,
105,
106,
107,
108,
109,
2021-02-21 18:24:39 +00:00
110,
111,
112,
113,
115,
116,
118,
121,
122,
125,
126,
2020-08-22 18:57:33 +00:00
127,
2021-02-21 18:24:39 +00:00
129,
131,
133,
134,
135,
2020-08-22 18:57:33 +00:00
138,
139,
2021-02-21 18:24:39 +00:00
140,
141,
2020-08-22 18:57:33 +00:00
142,
142,
2021-02-21 18:24:39 +00:00
143,
144,
145,
146,
147,
148,
149,
151,
152,
153,
154,
155,
156,
157,
158,
203,
2020-08-22 18:57:33 +00:00
236,
237,
238,
239,
240,
274,
308,
339,
2021-02-21 18:24:39 +00:00
372,
372,
373,
374,
375,
376,
2020-08-22 18:57:33 +00:00
44,
2021-02-21 18:24:39 +00:00
52, // Arcade
2020-08-22 18:57:33 +00:00
55,
69,
73,
74,
2021-02-21 18:24:39 +00:00
79, // Neogeo
2020-08-22 18:57:33 +00:00
82,
85,
89,
2021-02-21 18:24:39 +00:00
91,
95,
96,
97,
97,
98,
2020-08-22 18:57:33 +00:00
];
2020-10-05 18:42:04 +00:00
export const SUPPORTED_LANGUAGES = [
2021-02-19 19:44:13 +00:00
{ name: 'Arabic', nativeName: 'عربي', value: 'ar' },
{ name: 'Chinese (Simplified)', nativeName: '中文简体', value: 'zh-CN' },
{ name: 'English', nativeName: 'English', value: 'en' },
{ name: 'French', nativeName: 'Français', value: 'fr' },
{ name: 'German', nativeName: 'Deutsch', value: 'de' },
{ name: 'Italian', nativeName: 'Italiano', value: 'it' },
{ name: 'Japanese', nativeName: '日本語', value: 'ja' },
{ name: 'Portuguese', nativeName: 'Português', value: 'pt' },
{ name: 'Russian', nativeName: 'Русский', value: 'ru' },
{ name: 'Spanish', nativeName: 'Español', value: 'es' },
2020-10-05 18:42:04 +00:00
];
2021-05-10 17:12:12 +00:00
export const GAME_DETAIL_VIEWS = [
{ name: 'Modal', value: null },
{ name: 'Side panel', value: 'side' },
{ name: 'New page', value: 'new' },
];