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.

BaseWatchPlugin.js 1012B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. 'use strict';
  2. Object.defineProperty(exports, '__esModule', {
  3. value: true
  4. });
  5. exports.default = void 0;
  6. function _defineProperty(obj, key, value) {
  7. if (key in obj) {
  8. Object.defineProperty(obj, key, {
  9. value: value,
  10. enumerable: true,
  11. configurable: true,
  12. writable: true
  13. });
  14. } else {
  15. obj[key] = value;
  16. }
  17. return obj;
  18. }
  19. /**
  20. * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
  21. *
  22. * This source code is licensed under the MIT license found in the
  23. * LICENSE file in the root directory of this source tree.
  24. */
  25. class BaseWatchPlugin {
  26. constructor({stdin, stdout}) {
  27. _defineProperty(this, '_stdin', void 0);
  28. _defineProperty(this, '_stdout', void 0);
  29. this._stdin = stdin;
  30. this._stdout = stdout;
  31. }
  32. apply(_hooks) {}
  33. getUsageInfo(_globalConfig) {
  34. return null;
  35. }
  36. onKey(_key) {}
  37. run(_globalConfig, _updateConfigAndRun) {
  38. return Promise.resolve();
  39. }
  40. }
  41. var _default = BaseWatchPlugin;
  42. exports.default = _default;