-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathconfig.js
52 lines (49 loc) · 1.31 KB
/
config.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
const _ = require('lodash');
const constants = require('./lib/constants');
const defaultConfig = {
query: {
dropdown: {
enable: true
}
},
price: {
badge: {
enable: true,
source: undefined
},
changeColor: undefined,
preferCurrency: undefined
}
};
module.exports = {
autoUpdateEndpoint: 'http://s.btc.com/chrome-ext/LATEST',
blockAPIEndpoint: 'https://api.chain.btc.com/v1',
marketsAPIEndpoint: 'https://price.api.btc.com/v1',
websocketEndpoint: 'https://price.api.btc.com',
websocketPath: '/v1/socket.io',
colors: {
RED: [241, 79, 90, 255],
GREEN: [25, 197, 95, 255],
GRAY: [77, 77, 77, 255]
},
defaultConfig: {
'zh_cn': _.merge({}, defaultConfig, {
price: {
badge: {
source: 'huobibtccny'
},
changeColor: constants.RED_UP_GREEN_DOWN,
preferCurrency: constants.CNY
}
}),
'en': _.merge({}, defaultConfig, {
price: {
badge: {
source: 'coinbasebtcusd'
},
changeColor: constants.RED_DOWN_GREEN_UP,
preferCurrency: constants.USD
}
})
}
};