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.

react$.js 801B

12345678910111213141516
  1. "use strict";
  2. var __importDefault = (this && this.__importDefault) || function (mod) {
  3. return (mod && mod.__esModule) ? mod : { "default": mod };
  4. };
  5. Object.defineProperty(exports, "__esModule", { value: true });
  6. const fs_1 = __importDefault(require("fs"));
  7. const getElementObject_1 = require("../../utils/getElementObject");
  8. const resq_1 = require("../../scripts/resq");
  9. const resqScript = fs_1.default.readFileSync(require.resolve('resq'));
  10. async function react$(selector, { props = {}, state = {} } = {}) {
  11. await this.executeScript(resqScript.toString(), []);
  12. await this.execute(resq_1.waitToLoadReact);
  13. const res = await this.execute(resq_1.react$, selector, props, state, this);
  14. return getElementObject_1.getElement.call(this, selector, res, true);
  15. }
  16. exports.default = react$;