makeIssues() { let issues = []; issues.push(this.config.get('issueColumns')); this.report.issues.forEach(issue => issues.push(this.prepare(issue, this.config.get('issueColumns')))); this.xlsxIssues = XLSX.utils.aoa_to_sheet(issues); }
makeStats() { let stats = [[], []]; _.each(this.stats, (time, name) => { stats[0].push(name); stats[1].push(time); }); if (this.projects.length > 1) { _.each(this.projects, (time, name) => { stats[0].push(name); stats[1].push(time); }); } _.each(this.users, (time, name) => { stats[0].push(name); stats[1].push(time); }); this.xlsxStats = XLSX.utils.aoa_to_sheet(stats); }
makeRecords() { let times = []; times.push(this.config.get('recordColumns')); this.times.forEach(time => times.push(this.prepare(time, this.config.get('recordColumns')))); this.xlsxRecords = XLSX.utils.aoa_to_sheet(times); }
makeMergeRequests() { let mergeRequests = []; mergeRequests.push(this.config.get('mergeRequestColumns')); this.report.mergeRequests.forEach(mergeRequest => mergeRequests.push(this.prepare(mergeRequest, this.config.get('mergeRequestColumns')))); this.xlsxMergeRequests = XLSX.utils.aoa_to_sheet(mergeRequests); }