-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathconfig.js
32 lines (30 loc) · 831 Bytes
/
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
const config_ = {}
config_.icons = {
on: "../icons/icon__on.png",
off: "../icons/icon__off.png"
},
config_.yellow = "yellow",
config_.green = "var(--badge-green-background-color)",
config_.greenLight = "var(--badge-green-color)",
config_.red = "var(--badge-red-background-color)",
config_.redLight = "var(--badge-red-color)",
config_.gray = 'gray',
config_.white = 'white',
config_.grayLight = "#6c757e",
config_.so = {
enum: {
ALL: 'all',
UP: 'up',
DOWN: 'down'
}
},
config_.direction = config_.so.enum.ALL
config_.loadAllDataTimeout = 6000
config_.interface = {
enum: {
btns: { on: "btn-success", off: "btn-danger" }
}
}
config_.timeout = {}
export const config = JSON.parse(JSON.stringify(config_))
export const deepCopyConfig = () => JSON.parse(JSON.stringify(config_))