1 |
- "use strict";var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports["default"]=void 0;var _classCallCheck2=_interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));var _createClass2=_interopRequireDefault(require("@babel/runtime/helpers/createClass"));var _possibleConstructorReturn2=_interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));var _getPrototypeOf2=_interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));var _inherits2=_interopRequireDefault(require("@babel/runtime/helpers/inherits"));var _react=_interopRequireDefault(require("react"));var _Module2=_interopRequireDefault(require("../../lib/Module"));var _reactNative=require("react-native");var _Types=_interopRequireDefault(require("../../lib/Types"));var _index=_interopRequireDefault(require("../BaseContainer/index"));var _index2=_interopRequireDefault(require("../Image/index"));var _index3=_interopRequireDefault(require("../Text/index"));var _ViewSystem=require("../../lib/systems/ViewSystem");var _jsxFileName="C:\\Users\\Karteri\\Desktop\\Development\\TrapiLib\\modules\\BlogFeed\\index.js";var base1=new _ViewSystem.Node("SS"+Math.random(),{},new _ViewSystem.ViewNode("S"+Math.random(),"BaseContainer",{width:320,height:209}));var base2=new _ViewSystem.Node("SS"+Math.random(),{},new _ViewSystem.ViewNode("S"+Math.random(),"BaseContainer",{width:320,height:209}));var Image1=new _ViewSystem.Node("SS"+Math.random(),{},new _ViewSystem.ViewNode("S"+Math.random(),"Image",{width:320,height:209}));var Text1=new _ViewSystem.Node("SS"+Math.random(),{},new _ViewSystem.ViewNode("S"+Math.random(),"Text",{text:"hi there"}));var BlogFeed=function(_Module){(0,_inherits2["default"])(BlogFeed,_Module);function BlogFeed(props){var _this;(0,_classCallCheck2["default"])(this,BlogFeed);_this=(0,_possibleConstructorReturn2["default"])(this,(0,_getPrototypeOf2["default"])(BlogFeed).call(this,props));_this.isTemplate=true;_this.configure();return _this;}(0,_createClass2["default"])(BlogFeed,[{key:"configure",value:function configure(){if(this.props.CoreSystem){var CurrentView=this.props.CoreSystem.getCurrentView();var node=CurrentView.getNode(this.props.NodeID);var children=CurrentView.getChildren(node);if(!CurrentView.has(base1))CurrentView.addViewNode(base1,node);if(!CurrentView.has(base2.id))CurrentView.addViewNode(base2,node);if(!CurrentView.has(Image1.id))CurrentView.addViewNode(Image1,base1);if(!CurrentView.has(Text1.id)){CurrentView.addViewNode(Text1,base2);this.props.CoreSystem.forceUpdate();}}}},{key:"display",value:function display(){return _react["default"].createElement(_reactNative.View,{__source:{fileName:_jsxFileName,lineNumber:48}});}}]);return BlogFeed;}(_Module2["default"]);exports["default"]=BlogFeed;BlogFeed.Inputs={};
|