mirror of
https://github.com/romancm/gamebrary
synced 2024-12-18 15:23:14 +00:00
206 lines
3.6 KiB
JavaScript
206 lines
3.6 KiB
JavaScript
export const POPULAR_PLATFORMS = [169, 167, 130, 48, 49, 41];
|
|
|
|
export const DEFAULT_LIST_VIEW = 'single';
|
|
|
|
export const PLATFORM_CATEGORIES = {
|
|
1: 'console',
|
|
2: 'arcade',
|
|
3: 'platform',
|
|
4: 'operating_system',
|
|
5: 'portable_console',
|
|
6: 'computer',
|
|
};
|
|
|
|
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 = {
|
|
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 },
|
|
};
|
|
|
|
export const KEYBOARD_SHORTCUTS = {
|
|
'MODAL_keyboard-shortcuts': ['shift', '?'],
|
|
'MODAL_create-board': ['shift', 'c'],
|
|
ROUTE_boards: ['shift', 'b'],
|
|
ROUTE_tags: ['shift', 't'],
|
|
ROUTE_notes: ['shift', 'n'],
|
|
ROUTE_wallpapers: ['shift', 'w'],
|
|
ROUTE_settings: ['shift', 's'],
|
|
};
|
|
|
|
export const PLATFORM_FILTER_FIELDS = [
|
|
null,
|
|
'all',
|
|
'console',
|
|
// 'arcade',
|
|
// 'platform',
|
|
'operating_system',
|
|
'portable_console',
|
|
'computer',
|
|
];
|
|
|
|
export const PLATFORM_SORT_FILEDS = [
|
|
'generation',
|
|
'name',
|
|
];
|
|
|
|
export const PLATFORM_BG_HEX = {
|
|
167: '#222',
|
|
166: '#000',
|
|
48: '#2e6db4',
|
|
49: '#177d3e',
|
|
130: '#ce181e',
|
|
};
|
|
|
|
export const LIST_VIEWS = {
|
|
single: 'Single',
|
|
grid: 'Grid',
|
|
compact: 'Compact',
|
|
text: 'Text',
|
|
};
|
|
|
|
export const PLATFORM_LOGO_FORMAT = {
|
|
164: 'png',
|
|
51: 'png',
|
|
47: 'png',
|
|
36: 'png',
|
|
45: 'png',
|
|
124: 'png',
|
|
123: 'png',
|
|
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',
|
|
};
|
|
|
|
export const EXCLUDED_PLATFORMS = [
|
|
100,
|
|
101,
|
|
102,
|
|
103,
|
|
104,
|
|
105,
|
|
106,
|
|
107,
|
|
108,
|
|
109,
|
|
110,
|
|
111,
|
|
112,
|
|
113,
|
|
115,
|
|
116,
|
|
118,
|
|
121,
|
|
122,
|
|
125,
|
|
126,
|
|
127,
|
|
129,
|
|
131,
|
|
133,
|
|
134,
|
|
135,
|
|
138,
|
|
139,
|
|
140,
|
|
141,
|
|
142,
|
|
142,
|
|
143,
|
|
144,
|
|
145,
|
|
146,
|
|
147,
|
|
148,
|
|
149,
|
|
151,
|
|
152,
|
|
153,
|
|
154,
|
|
155,
|
|
156,
|
|
157,
|
|
158,
|
|
203,
|
|
236,
|
|
237,
|
|
238,
|
|
239,
|
|
240,
|
|
274,
|
|
308,
|
|
339,
|
|
372,
|
|
372,
|
|
373,
|
|
374,
|
|
375,
|
|
376,
|
|
44,
|
|
52, // Arcade
|
|
55,
|
|
69,
|
|
73,
|
|
74,
|
|
79, // Neogeo
|
|
82,
|
|
85,
|
|
89,
|
|
91,
|
|
95,
|
|
96,
|
|
97,
|
|
97,
|
|
98,
|
|
];
|
|
|
|
export const SUPPORTED_LANGUAGES = [
|
|
{ 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' },
|
|
];
|