-
-
Notifications
You must be signed in to change notification settings - Fork 54
/
Copy pathindex.js
89 lines (83 loc) · 1.46 KB
/
index.js
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
// todo: use import assertions once they're supported by Node.js & ESLint
// https://github.com/tc39/proposal-import-assertions
import {createRequire} from 'module';
const require = createRequire(import.meta.url);
const baseProfile = require('./base.json');
const products = [{
id: 'tgv',
mode: 'train',
bitmasks: [1],
name: 'TGV',
short: 'TGV',
default: true,
}, {
id: 'intercites',
mode: 'train',
bitmasks: [2],
name: 'Intercités',
short: 'Intercités',
default: true,
}, {
id: 'ir',
mode: 'train',
bitmasks: [4],
name: 'IR',
short: 'IR',
default: true,
}, {
id: 'train-direct',
mode: 'train',
bitmasks: [8],
name: 'Train direct',
short: 'Train direct',
default: true,
}, {
id: 'bateau',
mode: 'watercraft',
bitmasks: [16],
name: 'Bateau',
short: 'Bateau',
default: true,
}, {
id: 'regio-express',
mode: 'train',
bitmasks: [32],
name: 'Regio Express',
short: 'Regio Express',
default: true,
}, {
id: 'bus',
mode: 'bus',
bitmasks: [64],
name: 'Bus',
short: 'Bus',
default: true,
}, {
id: 'transport-a-cables',
mode: 'gondola',
bitmasks: [128],
name: 'Transport à câbles',
short: 'Transport à câbles',
default: true,
}, {
id: 'tram',
mode: 'train',
bitmasks: [512],
name: 'Tram',
short: 'Tram',
default: true,
}];
const profile = {
...baseProfile,
locale: 'de-DE',
timezone: 'Europe/Berlin',
ver: '1.40',
products,
trip: true,
radar: true,
refreshJourneyUseOutReconL: true,
reachableFrom: true,
};
export {
profile,
};