Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

report-base.js 362B

12345678910111213141516
  1. 'use strict';
  2. // TODO: switch to class private field when targetting node.js 12
  3. const _summarizer = Symbol('ReportBase.#summarizer');
  4. class ReportBase {
  5. constructor(opts = {}) {
  6. this[_summarizer] = opts.summarizer;
  7. }
  8. execute(context) {
  9. context.getTree(this[_summarizer]).visit(this, context);
  10. }
  11. }
  12. module.exports = ReportBase;