Show the days.
This commit is contained in:
parent
f7067007b8
commit
3afe76d276
12
lib/index.js
12
lib/index.js
|
@ -17,6 +17,15 @@ const STORE_PATH = Ul.USER_DIR + "/.git-stats"
|
||||||
, Fri: 5
|
, Fri: 5
|
||||||
, Sat: 6
|
, Sat: 6
|
||||||
}
|
}
|
||||||
|
, DAYS_ARR = [
|
||||||
|
"Sun"
|
||||||
|
, "Mon"
|
||||||
|
, "Tue"
|
||||||
|
, "Wed"
|
||||||
|
, "Thu"
|
||||||
|
, "Fri"
|
||||||
|
, "Sat"
|
||||||
|
]
|
||||||
;
|
;
|
||||||
|
|
||||||
// Constructor
|
// Constructor
|
||||||
|
@ -215,6 +224,9 @@ GitStats.ansiCalendar = function (data, callback) {
|
||||||
strYear += "\n";
|
strYear += "\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
strYear = strYear.trimRight().split("\n").map(function (c, i) {
|
||||||
|
return DAYS_ARR[i] + c;
|
||||||
|
}).join("\n");
|
||||||
|
|
||||||
|
|
||||||
callback(null, strYear);
|
callback(null, strYear);
|
||||||
|
|
Loading…
Reference in New Issue