mirror of
https://github.com/IonicaBizau/git-stats.git
synced 2024-12-22 13:22:11 +01:00
Show the days.
This commit is contained in:
parent
f7067007b8
commit
3afe76d276
1 changed files with 12 additions and 0 deletions
12
lib/index.js
12
lib/index.js
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue