Show the days.

This commit is contained in:
Ionică Bizău 2015-01-27 13:16:22 +02:00
parent f7067007b8
commit 3afe76d276

View file

@ -17,6 +17,15 @@ const STORE_PATH = Ul.USER_DIR + "/.git-stats"
, Fri: 5
, Sat: 6
}
, DAYS_ARR = [
"Sun"
, "Mon"
, "Tue"
, "Wed"
, "Thu"
, "Fri"
, "Sat"
]
;
// Constructor
@ -215,6 +224,9 @@ GitStats.ansiCalendar = function (data, callback) {
strYear += "\n";
}
strYear = strYear.trimRight().split("\n").map(function (c, i) {
return DAYS_ARR[i] + c;
}).join("\n");
callback(null, strYear);