mirror of
https://github.com/bckelley/cgm-remote-monitor.git
synced 2026-08-24 03:14:12 -05:00
* Experimental branch that replaces momentjs with dayjs in the client * Revert unintentional change * feat * Turns out dayjs is a no-go, but this has some good restructuring so submitting that
25 lines
486 B
JavaScript
25 lines
486 B
JavaScript
|
|
const fs = require('fs');
|
|
const moment = require('moment-timezone');
|
|
const language = require('../lib/language')(fs);
|
|
const settings = require('../lib/settings')();
|
|
const levels = require('../lib/levels');
|
|
|
|
function helper() {
|
|
|
|
helper.ctx = {
|
|
language: language
|
|
, settings: settings
|
|
, levels: levels
|
|
, moment: moment
|
|
};
|
|
|
|
helper.getctx = function getctx () {
|
|
return helper.ctx;
|
|
}
|
|
|
|
return helper;
|
|
}
|
|
|
|
module.exports = helper;
|