UNPKG

@dorgtech/daocomponents

Version:

Componentizing [DAOstack's client library](https://github.com/daostack/client), enabling easier React application integration. The hope is to be able to turn any app into a DAO enabled dApp by adding ~2 components.

98 lines 3.34 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var types_1 = require("./types"); var LoggingConfig_1 = require("./LoggingConfig"); // The goal of this class is to: // 1. preserve memory through lazy allocation // 2. ensure high data integrity by guarding // log data at the language level. var ComponentListLogs = /** @class */ (function () { function ComponentListLogs() { } Object.defineProperty(ComponentListLogs.prototype, "react", { get: function () { return this._react; }, enumerable: true, configurable: true }); Object.defineProperty(ComponentListLogs.prototype, "entity", { get: function () { return this._entity; }, enumerable: true, configurable: true }); Object.defineProperty(ComponentListLogs.prototype, "data", { get: function () { return this._data; }, enumerable: true, configurable: true }); Object.defineProperty(ComponentListLogs.prototype, "getReact", { get: function () { if (!this._react) this._react = new types_1.ReactLogs(); return this._react; }, enumerable: true, configurable: true }); Object.defineProperty(ComponentListLogs.prototype, "getEntity", { get: function () { if (!this._entity) this._entity = new types_1.EntityLogs(); return this._entity; }, enumerable: true, configurable: true }); Object.defineProperty(ComponentListLogs.prototype, "getData", { get: function () { if (!this._data) this._data = new types_1.DataLogs(); return this._data; }, enumerable: true, configurable: true }); ComponentListLogs.prototype.reactRendered = function () { if (!LoggingConfig_1.LoggingConfig.Current.enabled) return; this.getReact.rendered(); }; ComponentListLogs.prototype.entityCreated = function () { if (!LoggingConfig_1.LoggingConfig.Current.enabled) return; this.getEntity.created(); }; ComponentListLogs.prototype.entityCreationFailed = function (error) { if (!LoggingConfig_1.LoggingConfig.Current.enabled) return; this.getEntity.creationFailed(error); }; ComponentListLogs.prototype.dataQueryStarted = function () { if (!LoggingConfig_1.LoggingConfig.Current.enabled) return; this.getData.queryStarted(); }; ComponentListLogs.prototype.dataQueryReceivedData = function () { if (!LoggingConfig_1.LoggingConfig.Current.enabled) return; this.getData.queryReceivedData(); }; ComponentListLogs.prototype.dataQueryCompleted = function () { if (!LoggingConfig_1.LoggingConfig.Current.enabled) return; this.getData.queryCompleted(); }; ComponentListLogs.prototype.dataQueryFailed = function (error) { if (!LoggingConfig_1.LoggingConfig.Current.enabled) return; this.getData.queryFailed(error); }; return ComponentListLogs; }()); exports.ComponentListLogs = ComponentListLogs; //# sourceMappingURL=ComponentListLogs.js.map