UNPKG

web-analyst

Version:

Web Analyst is a simple back-end tracking system to measure your web app performance.

43 lines (35 loc) 753 B
const get24HoursLabels = function () { // Build labels const labels = []; for (let i = 0; i < 24; ++i) { labels.push(i + "h"); } return labels; }; const getWeekLabels = function () { return ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"]; }; const getYearLabels = function () { return [ "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" ]; }; // Static labels module.exports.get24HoursLabels = get24HoursLabels; module.exports.getWeekLabels = getWeekLabels; module.exports.getYearLabels = getYearLabels;