3
0
sxoinas12 5 vuotta sitten
vanhempi
säilyke
a5d3faa730

Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 0 - 0
dist/lib/Module.js


Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 0 - 0
dist/lib/systems/ViewSystem.js


Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 0 - 1
dist/modules/BaseContainer/index.js


Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 0 - 0
dist/modules/BaseHolder/index.js


Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 0 - 0
dist/modules/BlogFeed/index.js


Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 0 - 0
dist/modules/BlogPost/index.js


Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 0 - 0
dist/modules/Button/index.js


Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 0 - 0
dist/modules/Col.js


Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 0 - 0
dist/modules/DatePicker.js


Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 0 - 0
dist/modules/Form/index.js


Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 0 - 0
dist/modules/Icon/index.js


Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 0 - 0
dist/modules/Image/index.js


+ 1 - 1
dist/modules/RootComp/index.js

@@ -1 +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 _Types=_interopRequireDefault(require("../../lib/Types"));var _Module2=_interopRequireDefault(require("../../lib/Module"));var _reactNative=require("react-native");var _jsxFileName="C:\\Users\\Karteri\\Desktop\\Development\\TrapiLib\\modules\\RootComp\\index.js";var RootComp=function(_Module){(0,_inherits2["default"])(RootComp,_Module);function RootComp(props){(0,_classCallCheck2["default"])(this,RootComp);return(0,_possibleConstructorReturn2["default"])(this,(0,_getPrototypeOf2["default"])(RootComp).call(this,props));}(0,_createClass2["default"])(RootComp,[{key:"display",value:function display(){return;_react["default"].createElement(_reactNative.Text,{__source:{fileName:_jsxFileName,lineNumber:14}},this.props.text||""," - ",this.props.second);}}]);return RootComp;}(_Module2["default"]);exports["default"]=RootComp;RootComp.Inputs={text:new _Types["default"].Text().require()["default"]("Sample Text"),second:new _Types["default"].Integer().require()["default"](5)};
+"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 _Types=_interopRequireDefault(require("../../lib/Types"));var _Module2=_interopRequireDefault(require("../../lib/Module"));var _reactNative=require("react-native");var _jsxFileName="C:\\Users\\Konstanitnos\\Development\\TrapiLib\\modules\\RootComp\\index.js";var RootComp=function(_Module){(0,_inherits2["default"])(RootComp,_Module);function RootComp(props){(0,_classCallCheck2["default"])(this,RootComp);return(0,_possibleConstructorReturn2["default"])(this,(0,_getPrototypeOf2["default"])(RootComp).call(this,props));}(0,_createClass2["default"])(RootComp,[{key:"display",value:function display(){return;_react["default"].createElement(_reactNative.Text,{__source:{fileName:_jsxFileName,lineNumber:14}},this.props.text||""," - ",this.props.second);}}]);return RootComp;}(_Module2["default"]);exports["default"]=RootComp;RootComp.Inputs={text:new _Types["default"].Text().require()["default"]("Sample Text"),second:new _Types["default"].Integer().require()["default"](5)};

Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 0 - 0
dist/modules/Row.js


Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 0 - 0
dist/modules/Text/index.js


+ 1 - 1
dist/modules/View.js

@@ -1 +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 _jsxFileName="C:\\Users\\Karteri\\Desktop\\Development\\TrapiLib\\modules\\View.js";var ViewComp=function(_Module){(0,_inherits2["default"])(ViewComp,_Module);function ViewComp(props){(0,_classCallCheck2["default"])(this,ViewComp);return(0,_possibleConstructorReturn2["default"])(this,(0,_getPrototypeOf2["default"])(ViewComp).call(this,props));}(0,_createClass2["default"])(ViewComp,[{key:"display",value:function display(){return _react["default"].createElement(_reactNative.View,{__source:{fileName:_jsxFileName,lineNumber:16}},this.props.children);}}]);return ViewComp;}(_Module2["default"]);exports["default"]=ViewComp;
+"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 _jsxFileName="C:\\Users\\Konstanitnos\\Development\\TrapiLib\\modules\\View.js";var ViewComp=function(_Module){(0,_inherits2["default"])(ViewComp,_Module);function ViewComp(props){(0,_classCallCheck2["default"])(this,ViewComp);return(0,_possibleConstructorReturn2["default"])(this,(0,_getPrototypeOf2["default"])(ViewComp).call(this,props));}(0,_createClass2["default"])(ViewComp,[{key:"display",value:function display(){return _react["default"].createElement(_reactNative.View,{__source:{fileName:_jsxFileName,lineNumber:16}},this.props.children);}}]);return ViewComp;}(_Module2["default"]);exports["default"]=ViewComp;

+ 1 - 1
dist/modules/ViewComp.js

@@ -1 +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 _jsxFileName="C:\\Users\\Karteri\\Desktop\\Development\\TrapiLib\\modules\\ViewComp.js";var ViewComp=function(_Module){(0,_inherits2["default"])(ViewComp,_Module);function ViewComp(props){(0,_classCallCheck2["default"])(this,ViewComp);return(0,_possibleConstructorReturn2["default"])(this,(0,_getPrototypeOf2["default"])(ViewComp).call(this,props));}(0,_createClass2["default"])(ViewComp,[{key:"display",value:function display(){return _react["default"].createElement(_reactNative.View,{key:Math.random(),__source:{fileName:_jsxFileName,lineNumber:16}});}}]);return ViewComp;}(_Module2["default"]);exports["default"]=ViewComp;
+"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 _jsxFileName="C:\\Users\\Konstanitnos\\Development\\TrapiLib\\modules\\ViewComp.js";var ViewComp=function(_Module){(0,_inherits2["default"])(ViewComp,_Module);function ViewComp(props){(0,_classCallCheck2["default"])(this,ViewComp);return(0,_possibleConstructorReturn2["default"])(this,(0,_getPrototypeOf2["default"])(ViewComp).call(this,props));}(0,_createClass2["default"])(ViewComp,[{key:"display",value:function display(){return _react["default"].createElement(_reactNative.View,{key:Math.random(),__source:{fileName:_jsxFileName,lineNumber:16}});}}]);return ViewComp;}(_Module2["default"]);exports["default"]=ViewComp;

+ 1 - 1
dist/modules/index.js

@@ -1 +1 @@
-"use strict";var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports["default"]=void 0;var _BaseContainer=_interopRequireDefault(require("./BaseContainer"));var _BaseHolder=_interopRequireDefault(require("./BaseHolder"));var _Button=_interopRequireDefault(require("./Button"));var _Form=_interopRequireDefault(require("./Form"));var _Image=_interopRequireDefault(require("./Image"));var _RootComp=_interopRequireDefault(require("./RootComp"));var _Text=_interopRequireDefault(require("./Text"));var _BlogFeed=_interopRequireDefault(require("./BlogFeed"));var _Icon=_interopRequireDefault(require("./Icon"));var _default={BaseContainer:_BaseContainer["default"],BaseHolder:_BaseHolder["default"],Button:_Button["default"],Form:_Form["default"],Image:_Image["default"],RootComp:_RootComp["default"],Text:_Text["default"],BlogFeed:_BlogFeed["default"],Icon:_Icon["default"]};exports["default"]=_default;
+"use strict";var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports["default"]=void 0;var _BaseContainer=_interopRequireDefault(require("./BaseContainer"));var _BaseHolder=_interopRequireDefault(require("./BaseHolder"));var _Button=_interopRequireDefault(require("./Button"));var _Form=_interopRequireDefault(require("./Form"));var _Image=_interopRequireDefault(require("./Image"));var _RootComp=_interopRequireDefault(require("./RootComp"));var _Text=_interopRequireDefault(require("./Text"));var _BlogPost=_interopRequireDefault(require("./BlogPost"));var _BlogFeed=_interopRequireDefault(require("./BlogFeed"));var _Icon=_interopRequireDefault(require("./Icon"));var _default={BaseContainer:_BaseContainer["default"],BaseHolder:_BaseHolder["default"],Button:_Button["default"],Form:_Form["default"],Image:_Image["default"],RootComp:_RootComp["default"],Text:_Text["default"],BlogPost:_BlogPost["default"],BlogFeed:_BlogFeed["default"],Icon:_Icon["default"]};exports["default"]=_default;

+ 17 - 2
modules/BaseContainer/index.js

@@ -9,12 +9,22 @@ export default function BaseContainer(props) {
 		width,
 		height,
 		overflow,
+		marginBottom,
+		shadowColor,
+		shadowWidth,
+		shadowHeight,
+		backgroundColor,
 		...restProps
 	} = props;
 	if(!width) width = BaseContainer.Inputs.width.default;
 	if(!height) height = BaseContainer.Inputs.height.default;
+	if(!backgroundColor) backgroundColor = '';
+	if(!marginBottom) marginBottom = 0;
+	if(!shadowColor) shadowColor = '';
+	if(!shadowWidth) shadowWidth = 0;
+	if(!shadowHeight) shadowHeight = 0;
 	return (
-	    <View {...restProps} style={{width, height, overflow}}>
+	    <View {...restProps} style={{width, height, overflow , backgroundColor , marginBottom , shadowColor,shadowOffset:{width:shadowWidth,height:shadowHeight}}}>
 	    </View>
 	);
 }
@@ -23,5 +33,10 @@ export default function BaseContainer(props) {
 BaseContainer.Inputs = {
 	width: new Types.Integer().require().default(50),
 	height: new Types.Integer().require().default(50),
-	overflow: new Types.Integer().require().default('hidden')
+	overflow: new Types.Integer().require().default('hidden'),
+	backgroundColor: new Types.Text().require().color(),
+	marginBottom:new Types.Integer().require().default(0),
+	shadowColor: new Types.Text().require().color().default(""),
+	shadowWidth: new Types.Integer().require(),
+	shadowHeight: new Types.Integer().require()
 }

+ 68 - 67
modules/BlogFeed/index.js

@@ -9,107 +9,108 @@ import TextComp from '../Text/index';
 
 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 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 Text1 = new Node("SS"+ Math.random(), {},new ViewNode("S"+Math.random(), "Text", {text:"hi there"}))*/
-const defaultText = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla eget sapien justo. Nunc justo nunc, tristique sollicitudin sodales et, rhoncus vel augue. Mauris vel elit turpis. Vivamus hendrerit faucibus tortor, eget molestie turpis mattis vel. Cras maximus nibh vitae euismod lobortis. Sed iaculis quis lectus non rhoncus. Quisque non purus vel risus venenatis convallis eu at turpis. Cras accumsan quam eu dolor dignissim accumsan. Vestibulum sed orci facilisis, lacinia nibh vitae, egestas massa. Integer sit amet dui velit. Suspendisse ut nibh massa. Fusce condimentum semper odio, et hendrerit nisi venenatis consequat. Nam sed nibh eros. Nulla facilisi."
-
-export default class BlogFeed extends Module {
 
+export default class BlogFeed extends Module{
 	constructor(props){
 		super(props)
-		this.isTemplate = true;
-		
-		this.configure();	
-		
+		this.configure();
 	}
 
-
 	configure(){
 		if(this.props.CoreSystem){
 			let CurrentView = this.props.CoreSystem.getCurrentView();
 		 	let node = CurrentView.getNode(this.props.NodeID)
-		 	let children = CurrentView.getChildren(node);
-			let base1 = new Node("SS"+ Math.random(), {},new ViewNode("S"+Math.random(), "BaseContainer",  {width:375,height:209}))
-			let base2 = new Node("SS"+ Math.random(), {},new ViewNode("S"+Math.random(), "BaseContainer",  {width:375,height:209}))
-			let Image1 = new Node("SS"+ Math.random(), {},new ViewNode("S"+Math.random(), "Image"))
-			
-			let wrapper = new Node("SS"+ Math.random(), {flexDirection:"row",justifyContent:"space-between",alignItems:"flex-end",height:40},new ViewNode("S"+Math.random(), "BaseContainer", {}))
-			let Title = 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,fontFamily:"bold"}))
-		 	let BookMark = new Node("SS"+ Math.random(), {},new ViewNode("S"+Math.random(), "Icon", {}))
-
-		 	let subtitle = new Node("SS"+ Math.random(), {height:25},new ViewNode("S"+Math.random(), "Text", {text:"This is the subtitle",color:"rgba(112, 112, 112, 1)",fontSize:14,fontFamily:"thin"}))
-		 	let MainText = new Node("SS"+ Math.random(), {},new ViewNode("S"+Math.random(), "Text", {text:defaultText,color:"rgba(112, 112, 112, 1)",fontSize:14}))
 		 	
 
+		 	let NavContainer = NodeFactory({flexDirection:"row",justifyContent:"space-between",alignItems:'center'},'BaseContainer',{height:64,width:375,backgroundColor:'rgba(0, 84, 230, 1)'});
+		 	let TitleWrapper = NodeFactory({flexDirection:"row",justifyContent:'center',alignItems:'center'},'BaseContainer',{height:41,width:327});
+		 	let Title = NodeFactory({width:327},"Text",{fontSize:34,fontFamily:'bold',width:327,text:"Blog Feed"})
+		 	let PostCont1 = NodeFactory({flexDirection:'column',justifyContent:'center',alignItems:'center'},'BaseContainer',{height:236,width:327});
+		 	let PostCont2 = NodeFactory({flexDirection:'column',justifyContent:'center',alignItems:'center'},'BaseContainer',{height:236,width:327});
 
-		 	let wrapperProfile = new Node("SS"+ Math.random(), {flexDirection:"row",height:40},new ViewNode("S"+Math.random(), "BaseContainer", {}))
-			
-		 	let ImageProfile = new Node("SS"+ Math.random(), {width:34,height:34},new ViewNode("S"+Math.random(), "Image",{source:require('../Image/assets/profile.png'),width:32,height:32}))
-		 	let ImageWrapper = new Node("SS"+ Math.random(), {flexDirection:"row",justifyContent:"center",alignItems:'center',height:40},new ViewNode("S"+Math.random(), "BaseContainer", {}))
-			
-		 	let UserWrapper = new Node("SS"+ Math.random(), {flexDirection:"column",height:40,flexGrow:1},new ViewNode("S"+Math.random(), "BaseContainer", {}))
-			
-		 	let user = new Node("SS"+ Math.random(), {height:20},new ViewNode("S"+Math.random(), "Text", {text:"Alexandra papadopoulou ",color:"rgba(112, 112, 112, 1)",fontSize:14,fontFamily:"thin"}))
-		 	let userjob = new Node("SS"+ Math.random(), {height:20},new ViewNode("S"+Math.random(), "Text", {text:"Market Analyst ",color:"rgba(112, 112, 112, 1)",fontSize:14,fontFamily:"thin"}))
-		 	
+		 	//NavContainer Inputs
+		 	let navIcon = NodeFactory({},'Icon',{name:"reorder",color:'rgba(255, 255, 255, 1)'})
+		 	let navTitle = NodeFactory({},'Text',{text:"XDi",color:'rgba(255, 255, 255, 1)',fontSize:25})
+		 	let navProfile =  NodeFactory({},'Icon',{name:"perm-identity",color:'rgba(255, 255, 255, 1)'})
+		 	//let Image1 = new Node("SS"+ Math.random(), {},new ViewNode("S"+Math.random(), "Image"))
 
-		 	if(!CurrentView.has(base1)) CurrentView.addViewNode(base1 , node );
+		 	//PostCont 1 Inputs
+		 	let image1 =  NodeFactory({},'Image',{height:142,width:327});
 		 	
-		 	if(!CurrentView.has(base2.id)) CurrentView.addViewNode( base2 ,node);
-		 	if(!CurrentView.has(Image1.id)) CurrentView.addViewNode(Image1,base1)
-			
 
-			if(!CurrentView.has(wrapper.id)) CurrentView.addViewNode(wrapper , base2);
-		 		
-		 	if(!CurrentView.has(Title.id)) CurrentView.addViewNode(Title , wrapper);
-		 	if(!CurrentView.has(BookMark.id)) CurrentView.addViewNode(BookMark , wrapper);
+		 	let wrapper1 = NodeFactory({},'BaseContainer',{height:91,width:327});
 
+		 	let title1 =  NodeFactory({},'Text',{text:"This is a titile ",fontFamily:"roboto-black",fontSize:18,color:"rgba(112, 112, 112, 1)"})
+		 	let subtitle1 = NodeFactory({},'Text',{text:"This is a subtitle",fontFamily:"roboto-black",fontSize:14,color:"rgba(193, 193, 193, 1)"})
+		 	//Text for now will be converted to date Picker
+		 	let date1 =  NodeFactory({alignSelf:'flex-end'},'Text',{text:"OCTOBER 9, 2019",fontFamily:"roboto-black",fontSize:10,color:"rgba(112, 112, 112, 1)"})
 
 
-		 	if(!CurrentView.has(subtitle.id)) {
-				CurrentView.addViewNode(subtitle , base2);
-		 		
-		 	}
-
-		 	// #######################
 
-		 	if(!CurrentView.has(wrapperProfile.id)){
-		 		CurrentView.addViewNode(wrapperProfile,base2);
+		 	//Post Cont 2 Inputs
+		 	let image2 =  NodeFactory({},'Image',{height:142,width:327});
+		 	
+		 	let wrapper2 = NodeFactory({},'BaseContainer',{height:91,width:327});
+
+		 	let title2 = NodeFactory({},'Text',{text:"Thi is a title ",fontFamily:"roboto-black",fontSize:18,color:"rgba(112, 112, 112, 1)"}) 
+		 	let subtitle2 = NodeFactory({},'Text',{text:"This is a subtitle ",fontFamily:"roboto-black",fontSize:14,color:"rgba(193, 193, 193, 1)"})
+		 	//Text for now will be converted to date Picker
+		 	let date2 =  NodeFactory({alignSelf:'flex-end'},'Text',{text:"OCTOBER 9, 2019",fontFamily:"roboto-black",fontSize:10,color:"rgba(112, 112, 112, 1)"})
+
+		 	//adding Containers
+		 	if(!CurrentView.has(NavContainer)) CurrentView.addViewNode(NavContainer,node)
+		 	if(!CurrentView.has(TitleWrapper)) CurrentView.addViewNode(TitleWrapper,node)
+		 	if(!CurrentView.has(Title)) CurrentView.addViewNode(Title,TitleWrapper)
+		 	if(!CurrentView.has(PostCont1)) CurrentView.addViewNode(PostCont1,node)
+		 	if(!CurrentView.has(PostCont2)) {
+		 		CurrentView.addViewNode(PostCont2,node)
 		 		
 		 	}
 
-		 	if(!CurrentView.has(ImageWrapper)) CurrentView.addViewNode(ImageWrapper,wrapperProfile);
-			if(!CurrentView.has(ImageProfile)) CurrentView.addViewNode(ImageProfile,ImageWrapper);
-			if(!CurrentView.has(UserWrapper)) CurrentView.addViewNode(UserWrapper,wrapperProfile);
+			//adding Children To NavContainer
+		
+		 	if(!CurrentView.has(navIcon))  CurrentView.addViewNode(navIcon,NavContainer)
+		 	if(!CurrentView.has(navTitle))  CurrentView.addViewNode(navTitle,NavContainer)
+		 	if(!CurrentView.has(navProfile))  CurrentView.addViewNode(navProfile,NavContainer)
+		 		
 
+		 	// --------------------- This is the end of Top Nav -------------
+
+		 	// Start of Blog posts PostCont1
+		 	if(!CurrentView.has(image1)) CurrentView.addViewNode(image1,PostCont1)
+		 	if(!CurrentView.has(wrapper1)) CurrentView.addViewNode(wrapper1,PostCont1)
+		 	if(!CurrentView.has(title1)) CurrentView.addViewNode(title1,wrapper1)
+		 	if(!CurrentView.has(subtitle1)) CurrentView.addViewNode(subtitle1,wrapper1)
+		 	if(!CurrentView.has(date1)) CurrentView.addViewNode(date1,wrapper1)
+
+		 	//post Cont 2
+		 	if(!CurrentView.has(image2)) CurrentView.addViewNode(image2,PostCont2)
+		 	if(!CurrentView.has(wrapper2)) CurrentView.addViewNode(wrapper2,PostCont2)
+		 	if(!CurrentView.has(title2)) CurrentView.addViewNode(title2,wrapper2)
+		 	if(!CurrentView.has(subtitle2)) CurrentView.addViewNode(subtitle2,wrapper2)
+		 	if(!CurrentView.has(date2)){ 
+		 		CurrentView.addViewNode(date2,PostCont2)
+		 		this.props.CoreSystem.forceUpdate();
+		 	}
 
-		 	if(!CurrentView.has(user)) CurrentView.addViewNode(user,UserWrapper)
-		 	if(!CurrentView.has(userjob)) {
-		 		CurrentView.addViewNode(userjob,UserWrapper)
-				this.props.CoreSystem.forceUpdate();
-		 	};
-		 	
 
-		 	if(!CurrentView.has(MainText.id)){
-		 		CurrentView.addViewNode(MainText , base2);
-		 		this.props.CoreSystem.forceUpdate();
-		 	}	
-	 	}
+		}
 	}
 
-	display(){
+	render(){
 		return(
-			<View>
 
+			<View>
 				
 			</View>
 			)
-	}
+	}	
 }
 
-
 BlogFeed.Inputs = {
+	
+}
 
+var NodeFactory = function(containerStyle = {}, component, componentStyle = {}){
+	return new Node("SS"+ Math.random(), containerStyle,new ViewNode("S"+Math.random(), component, componentStyle));
 }

+ 115 - 0
modules/BlogPost/index.js

@@ -0,0 +1,115 @@
+import React from 'react';
+import Module from '../../lib/Module';
+import { View , StyleSheet , Text} from 'react-native';
+import Types from '../../lib/Types';
+
+import BaseContainer from '../BaseContainer/index';
+import ImageComp from '../Image/index';
+import TextComp from '../Text/index';
+
+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 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 Text1 = new Node("SS"+ Math.random(), {},new ViewNode("S"+Math.random(), "Text", {text:"hi there"}))*/
+const defaultText = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla eget sapien justo. Nunc justo nunc, tristique sollicitudin sodales et, rhoncus vel augue. Mauris vel elit turpis. Vivamus hendrerit faucibus tortor, eget molestie turpis mattis vel. Cras maximus nibh vitae euismod lobortis. Sed iaculis quis lectus non rhoncus. Quisque non purus vel risus venenatis convallis eu at turpis. Cras accumsan quam eu dolor dignissim accumsan. Vestibulum sed orci facilisis, lacinia nibh vitae, egestas massa. Integer sit amet dui velit. Suspendisse ut nibh massa. Fusce condimentum semper odio, et hendrerit nisi venenatis consequat. Nam sed nibh eros. Nulla facilisi."
+
+export default class BlogPost extends Module {
+
+	constructor(props){
+		super(props)
+		this.isTemplate = true;
+		
+		this.configure();	
+		
+	}
+
+
+	configure(){
+		if(this.props.CoreSystem){
+			let CurrentView = this.props.CoreSystem.getCurrentView();
+		 	let node = CurrentView.getNode(this.props.NodeID)
+		 	let children = CurrentView.getChildren(node);
+			let base1 = new Node("SS"+ Math.random(), {},new ViewNode("S"+Math.random(), "BaseContainer",  {width:375,height:209}))
+			let base2 = new Node("SS"+ Math.random(), {},new ViewNode("S"+Math.random(), "BaseContainer",  {width:375,height:209}))
+			let Image1 = new Node("SS"+ Math.random(), {},new ViewNode("S"+Math.random(), "Image"))
+			
+			let wrapper = new Node("SS"+ Math.random(), {flexDirection:"row",justifyContent:"space-between",alignItems:"flex-end",height:40},new ViewNode("S"+Math.random(), "BaseContainer", {}))
+			let Title = 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,fontFamily:"bold"}))
+		 	let BookMark = new Node("SS"+ Math.random(), {},new ViewNode("S"+Math.random(), "Icon", {}))
+
+		 	let subtitle = new Node("SS"+ Math.random(), {height:25},new ViewNode("S"+Math.random(), "Text", {text:"This is the subtitle",color:"rgba(112, 112, 112, 1)",fontSize:14,fontFamily:"thin"}))
+		 	let MainText = new Node("SS"+ Math.random(), {},new ViewNode("S"+Math.random(), "Text", {text:defaultText,color:"rgba(112, 112, 112, 1)",fontSize:14}))
+		 	
+
+
+		 	let wrapperProfile = new Node("SS"+ Math.random(), {flexDirection:"row",height:40},new ViewNode("S"+Math.random(), "BaseContainer", {}))
+			
+		 	let ImageProfile = new Node("SS"+ Math.random(), {width:34,height:34},new ViewNode("S"+Math.random(), "Image",{source:require('../Image/assets/profile.png'),width:32,height:32}))
+		 	let ImageWrapper = new Node("SS"+ Math.random(), {flexDirection:"row",justifyContent:"center",alignItems:'center',height:40},new ViewNode("S"+Math.random(), "BaseContainer", {}))
+			
+		 	let UserWrapper = new Node("SS"+ Math.random(), {flexDirection:"column",height:40,flexGrow:1},new ViewNode("S"+Math.random(), "BaseContainer", {}))
+			
+		 	let user = new Node("SS"+ Math.random(), {height:20},new ViewNode("S"+Math.random(), "Text", {text:"Alexandra papadopoulou ",color:"rgba(112, 112, 112, 1)",fontSize:14,fontFamily:"thin"}))
+		 	let userjob = new Node("SS"+ Math.random(), {height:20},new ViewNode("S"+Math.random(), "Text", {text:"Market Analyst ",color:"rgba(112, 112, 112, 1)",fontSize:14,fontFamily:"thin"}))
+		 	
+
+		 	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(wrapper.id)) CurrentView.addViewNode(wrapper , base2);
+		 		
+		 	if(!CurrentView.has(Title.id)) CurrentView.addViewNode(Title , wrapper);
+		 	if(!CurrentView.has(BookMark.id)) CurrentView.addViewNode(BookMark , wrapper);
+
+
+
+		 	if(!CurrentView.has(subtitle.id)) {
+				CurrentView.addViewNode(subtitle , base2);
+		 		
+		 	}
+
+		 	// #######################
+
+		 	if(!CurrentView.has(wrapperProfile.id)){
+		 		CurrentView.addViewNode(wrapperProfile,base2);
+		 		
+		 	}
+
+		 	if(!CurrentView.has(ImageWrapper)) CurrentView.addViewNode(ImageWrapper,wrapperProfile);
+			if(!CurrentView.has(ImageProfile)) CurrentView.addViewNode(ImageProfile,ImageWrapper);
+			if(!CurrentView.has(UserWrapper)) CurrentView.addViewNode(UserWrapper,wrapperProfile);
+
+
+		 	if(!CurrentView.has(user)) CurrentView.addViewNode(user,UserWrapper)
+		 	if(!CurrentView.has(userjob)) {
+		 		CurrentView.addViewNode(userjob,UserWrapper)
+				this.props.CoreSystem.forceUpdate();
+		 	};
+		 	
+
+		 	if(!CurrentView.has(MainText.id)){
+		 		CurrentView.addViewNode(MainText , base2);
+		 		this.props.CoreSystem.forceUpdate();
+		 	}	
+	 	}
+	}
+
+	display(){
+		return(
+			<View>
+
+				
+			</View>
+			)
+	}
+}
+
+
+BlogPost.Inputs = {
+
+}

+ 3 - 0
modules/index.js

@@ -5,7 +5,9 @@ import Form from './Form';
 import Image from './Image';
 import RootComp from './RootComp';
 import Text from './Text';
+import BlogPost from './BlogPost';
 import BlogFeed from './BlogFeed';
+
 import Icon from './Icon'
 export default {
 BaseContainer,
@@ -15,6 +17,7 @@ Form,
 Image,
 RootComp,
 Text,
+BlogPost,
 BlogFeed,
 Icon
 }

Kaikkia tiedostoja ei voida näyttää, sillä liian monta tiedostoa muuttui tässä diffissä