|
@@ -9,10 +9,10 @@ import TextComp from '../Text/index';
|
|
|
|
|
|
import { ViewNode, Node } from '../../lib/systems/ViewSystem';
|
|
import { ViewNode, Node } from '../../lib/systems/ViewSystem';
|
|
|
|
|
|
-let base1 = new Node("SS"+ Math.random(), {},new ViewNode("S"+Math.random(), "BaseContainer", {width:320,height:209}))
|
|
|
|
|
|
+/*let base1 = new Node("SS"+ Math.random(), {},new ViewNode("S"+Math.random(), "BaseContainer", {width:320,height:209}))
|
|
let base2 = new Node("SS"+ Math.random(), {},new ViewNode("S"+Math.random(), "BaseContainer", {width:320,height:209}))
|
|
let base2 = new Node("SS"+ Math.random(), {},new ViewNode("S"+Math.random(), "BaseContainer", {width:320,height:209}))
|
|
let Image1 = new Node("SS"+ Math.random(), {},new ViewNode("S"+Math.random(), "Image", {width:320,height:209}))
|
|
let Image1 = new Node("SS"+ Math.random(), {},new ViewNode("S"+Math.random(), "Image", {width:320,height:209}))
|
|
-let Text1 = new Node("SS"+ Math.random(), {},new ViewNode("S"+Math.random(), "Text", {text:"hi there"}))
|
|
|
|
|
|
+let Text1 = new Node("SS"+ Math.random(), {},new ViewNode("S"+Math.random(), "Text", {text:"hi there"}))*/
|
|
|
|
|
|
|
|
|
|
export default class BlogFeed extends Module {
|
|
export default class BlogFeed extends Module {
|
|
@@ -31,12 +31,20 @@ export default class BlogFeed extends Module {
|
|
let CurrentView = this.props.CoreSystem.getCurrentView();
|
|
let CurrentView = this.props.CoreSystem.getCurrentView();
|
|
let node = CurrentView.getNode(this.props.NodeID)
|
|
let node = CurrentView.getNode(this.props.NodeID)
|
|
let children = CurrentView.getChildren(node);
|
|
let children = CurrentView.getChildren(node);
|
|
-
|
|
|
|
|
|
+ let base1 = new Node("SS"+ Math.random(), {},new ViewNode("S"+Math.random(), "BaseContainer", {width:370,height:209}))
|
|
|
|
+ let base2 = new Node("SS"+ Math.random(), {},new ViewNode("S"+Math.random(), "BaseContainer", {width:370,height:209}))
|
|
|
|
+ let Image1 = new Node("SS"+ Math.random(), {},new ViewNode("S"+Math.random(), "Image", {width:370,height:209}))
|
|
|
|
+ let Text1 = new Node("SS"+ Math.random(), {},new ViewNode("S"+Math.random(), "Text", {text:"This is the post Title",color:"rgba(112, 112, 112, 1)",fontSize:17}))
|
|
|
|
+ let subtitle = new Node("SS"+ Math.random(), {},new ViewNode("S"+Math.random(), "Text", {text:"This is the subtitle",color:"rgba(112, 112, 112, 1)",fontSize:14}))
|
|
if(!CurrentView.has(base1)) CurrentView.addViewNode(base1 , node );
|
|
if(!CurrentView.has(base1)) CurrentView.addViewNode(base1 , node );
|
|
if(!CurrentView.has(base2.id)) CurrentView.addViewNode( base2 ,node);
|
|
if(!CurrentView.has(base2.id)) CurrentView.addViewNode( base2 ,node);
|
|
if(!CurrentView.has(Image1.id)) CurrentView.addViewNode(Image1,base1)
|
|
if(!CurrentView.has(Image1.id)) CurrentView.addViewNode(Image1,base1)
|
|
if(!CurrentView.has(Text1.id)) {
|
|
if(!CurrentView.has(Text1.id)) {
|
|
CurrentView.addViewNode(Text1 , base2);
|
|
CurrentView.addViewNode(Text1 , base2);
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ if(!CurrentView.has(subtitle.id)) {
|
|
|
|
+ CurrentView.addViewNode(subtitle , base2);
|
|
this.props.CoreSystem.forceUpdate();
|
|
this.props.CoreSystem.forceUpdate();
|
|
}
|
|
}
|
|
|
|
|