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.

constants.js 468B

123456789101112131415
  1. import definitions from "../../lib/definitions/index.js";
  2. export default function generateConstants() {
  3. let output = `/*
  4. * This file is auto-generated! Do not modify it directly.
  5. * To re-generate run 'make build'
  6. */
  7. import { FLIPPED_ALIAS_KEYS } from "../../definitions";\n\n`;
  8. Object.keys(definitions.FLIPPED_ALIAS_KEYS).forEach(type => {
  9. output += `export const ${type.toUpperCase()}_TYPES = FLIPPED_ALIAS_KEYS["${type}"];\n`;
  10. });
  11. return output;
  12. }