-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.js
135 lines (132 loc) · 2.38 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
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
var _hourConfig =
{
"20":
{
gravity: 1, // 权重
color: "#ffee2e",
overnight : false, // 是否过夜
},
"21":
{
gravity: 2,
color: "#ffac36",
overnight : false,
},
"22":
{
gravity: 3,
color: "#ffac36",
overnight : false,
},
"23":
{
gravity: 4,
color: "#ff5400",
overnight : false,
},
"0":
{
gravity: 5,
color: "#ff1515",
overnight : true,
},
"1":
{
gravity: 6,
color: "#ff156d",
overnight : true,
},
"2":
{
gravity: 7,
color: "#c40098",
overnight : true,
},
"3":
{
gravity: 8,
color: "#410032",
overnight : true,
},
"4":
{
gravity: 9,
color: "#410032",
overnight : true,
},
"5":
{
gravity: 10,
color: "#410032",
overnight : true,
},
"6":
{
gravity: 11,
color: "#000000",
overnight : true,
},
"7":
{
gravity: 12,
color: "#000000",
overnight : true,
},
"8":
{
gravity: 13,
color: "#000000",
overnight : true,
},
// customFunc : function (hour)
// {
// // 这里hour为浮点数
// return {
// gravity: 12,
// color: "#000000",
// overnight : false,
// }
// }
}
var _holidayConfig =
{
extraHoliday: // 除周末外的额外假期
{
"2018":
{
"12" : [30,31],
},
"2019":
{
"1": [1],
"2": [4, 5, 6, 7, 8, 9, 10],
"4": [5, 6, 7],
"5": [1, 2, 3, 4],
"6": [7, 8, 9],
"9": [13, 14, 15],
"10": [1,2,3,4,5,6,7],
}
},
extraWorkingDay: // 需要工作的周末
{
"2018":
{
"12": [29],
},
"2019":
{
"2": [2, 3],
"4": [28],
"5": [5],
"9": [29],
"10": [12],
}
},
weekend: [0, 6],
color : "#00ff0c"
}
// 需要排除的作者名字
var _excludeAuthors =
[
// "admin",
]