-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconstants.js
More file actions
58 lines (52 loc) · 1023 Bytes
/
constants.js
File metadata and controls
58 lines (52 loc) · 1023 Bytes
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
/**
* Database folder variable defined on '.env' file
*/
export const DB_FOLDER = process.env.DB_FOLDER;
/**
* API version variable defined on '.env' file
*/
export const VERSION = process.env.VERSION;
/**
* API url variable defined on '.env' file
*/
export const URL = process.env.API_URL;
/**
* API access token variable defined on '.env' file
*/
export const TOKEN = process.env.TOKEN;
/**
* List of tables that require translations.
*
* All translations will be saved on 'data/translations/\<target\>_translations.json'
*/
export const TRANSLATION_TABLES = [
"episodes",
"games",
"locations",
"seasons",
"overview",
];
/**
* List of fields that has translation on {@link TRANSLATION_TABLES}.
*/
export const TRANSLATION_FIELDS = [
"language",
"title",
"name",
"description",
"trailer",
"genres",
"trailers",
];
/**
* List of tables from HawAPI.
*/
export const TABLES = [
"actors",
"characters",
"episodes",
"games",
"locations",
"seasons",
"soundtracks",
];