From 496330020edbb5018a1d8ccf84a76ab3c9637195 Mon Sep 17 00:00:00 2001 From: siva Date: Fri, 29 Mar 2019 13:32:11 +0530 Subject: [PATCH] Updates --- asset-manifest.json | 6 +++--- index.html | 2 +- ... precache-manifest.d285ab72f7a66cdcb6a3aed9b862a690.js | 8 ++++---- service-worker.js | 2 +- static/js/main.a8a86370.chunk.js | 2 -- static/js/main.a8a86370.chunk.js.map | 1 - static/js/main.c772c339.chunk.js | 2 ++ static/js/main.c772c339.chunk.js.map | 1 + 8 files changed, 12 insertions(+), 12 deletions(-) rename precache-manifest.a483d959f729bdebd9f37affb3cd1513.js => precache-manifest.d285ab72f7a66cdcb6a3aed9b862a690.js (92%) delete mode 100644 static/js/main.a8a86370.chunk.js delete mode 100644 static/js/main.a8a86370.chunk.js.map create mode 100644 static/js/main.c772c339.chunk.js create mode 100644 static/js/main.c772c339.chunk.js.map diff --git a/asset-manifest.json b/asset-manifest.json index 5b99142..e1a0896 100644 --- a/asset-manifest.json +++ b/asset-manifest.json @@ -1,14 +1,14 @@ { "main.css": "/e-commenceland/static/css/main.daea0434.chunk.css", - "main.js": "/e-commenceland/static/js/main.a8a86370.chunk.js", - "main.js.map": "/e-commenceland/static/js/main.a8a86370.chunk.js.map", + "main.js": "/e-commenceland/static/js/main.c772c339.chunk.js", + "main.js.map": "/e-commenceland/static/js/main.c772c339.chunk.js.map", "runtime~main.js": "/e-commenceland/static/js/runtime~main.2633d986.js", "runtime~main.js.map": "/e-commenceland/static/js/runtime~main.2633d986.js.map", "static/css/2.25bf3e29.chunk.css": "/e-commenceland/static/css/2.25bf3e29.chunk.css", "static/js/2.029ce796.chunk.js": "/e-commenceland/static/js/2.029ce796.chunk.js", "static/js/2.029ce796.chunk.js.map": "/e-commenceland/static/js/2.029ce796.chunk.js.map", "index.html": "/e-commenceland/index.html", - "precache-manifest.a483d959f729bdebd9f37affb3cd1513.js": "/e-commenceland/precache-manifest.a483d959f729bdebd9f37affb3cd1513.js", + "precache-manifest.d285ab72f7a66cdcb6a3aed9b862a690.js": "/e-commenceland/precache-manifest.d285ab72f7a66cdcb6a3aed9b862a690.js", "service-worker.js": "/e-commenceland/service-worker.js", "static/css/2.25bf3e29.chunk.css.map": "/e-commenceland/static/css/2.25bf3e29.chunk.css.map", "static/css/main.daea0434.chunk.css.map": "/e-commenceland/static/css/main.daea0434.chunk.css.map", diff --git a/index.html b/index.html index 06f9b77..2553b03 100644 --- a/index.html +++ b/index.html @@ -1 +1 @@ -e-Commerce Land
\ No newline at end of file +e-Commerce Land
\ No newline at end of file diff --git a/precache-manifest.a483d959f729bdebd9f37affb3cd1513.js b/precache-manifest.d285ab72f7a66cdcb6a3aed9b862a690.js similarity index 92% rename from precache-manifest.a483d959f729bdebd9f37affb3cd1513.js rename to precache-manifest.d285ab72f7a66cdcb6a3aed9b862a690.js index 35ac245..6cfac94 100644 --- a/precache-manifest.a483d959f729bdebd9f37affb3cd1513.js +++ b/precache-manifest.d285ab72f7a66cdcb6a3aed9b862a690.js @@ -1,11 +1,11 @@ self.__precacheManifest = [ { - "revision": "48dd917a60b33496c7e7", + "revision": "2d460115c7734eb39e92", "url": "/e-commenceland/static/css/main.daea0434.chunk.css" }, { - "revision": "48dd917a60b33496c7e7", - "url": "/e-commenceland/static/js/main.a8a86370.chunk.js" + "revision": "2d460115c7734eb39e92", + "url": "/e-commenceland/static/js/main.c772c339.chunk.js" }, { "revision": "9b4d8977858ec34aaf49", @@ -84,7 +84,7 @@ self.__precacheManifest = [ "url": "/e-commenceland/static/media/brand-icons.a1a749e8.svg" }, { - "revision": "3ec05943304426f99871e19d37ec7e64", + "revision": "9858e0204bd99e41bfeeb314772ba931", "url": "/e-commenceland/index.html" } ]; \ No newline at end of file diff --git a/service-worker.js b/service-worker.js index f3c7026..8e8a183 100644 --- a/service-worker.js +++ b/service-worker.js @@ -14,7 +14,7 @@ importScripts("https://storage.googleapis.com/workbox-cdn/releases/3.6.3/workbox-sw.js"); importScripts( - "/e-commenceland/precache-manifest.a483d959f729bdebd9f37affb3cd1513.js" + "/e-commenceland/precache-manifest.d285ab72f7a66cdcb6a3aed9b862a690.js" ); workbox.clientsClaim(); diff --git a/static/js/main.a8a86370.chunk.js b/static/js/main.a8a86370.chunk.js deleted file mode 100644 index e2d946d..0000000 --- a/static/js/main.a8a86370.chunk.js +++ /dev/null @@ -1,2 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[0],{139:function(e,t){},162:function(e,t,a){e.exports=a(327)},167:function(e,t,a){},169:function(e,t,a){},181:function(e,t){},187:function(e,t){},327:function(e,t,a){"use strict";a.r(t);var n=a(0),r=a.n(n),l=a(44),c=a.n(l),o=(a(167),a(168),a(31)),i=a(32),m=a(36),u=a(33),d=a(37),s=(a(169),a(35)),E=a(330),p=a(332),f=a(39),h=a(45),b=a(77),O=function(){return function(e){fetch(" https://api.myjson.com/bins/1f2eri").then(function(e){return e.json()}).then(function(t){e({type:"FETCH_ORDERS",payload:t,orders:t.orders})})}},y=a(34),v=a(334),g=a(153),j="/e-commenceland/",C=function(e){function t(){return Object(o.a)(this,t),Object(m.a)(this,Object(u.a)(t).apply(this,arguments))}return Object(d.a)(t,e),Object(i.a)(t,[{key:"componentWillMount",value:function(){this.props.fetchOrders()}},{key:"render",value:function(){var e=this.props.orders.map(function(e){return r.a.createElement(v.a.Row,{key:e.id},r.a.createElement(v.a.Cell,null,r.a.createElement(g.a,{size:"mini",src:e.product.picture,style:{marginRight:"1.5em"}})),r.a.createElement(v.a.Cell,null,r.a.createElement(f.b,{to:"".concat(j,"/orders/").concat(e.id)},e.product.name)),r.a.createElement(v.a.Cell,null," ",e.price),r.a.createElement(v.a.Cell,null,e.product.orderStatus),r.a.createElement(v.a.Cell,null,r.a.createElement(y.a,{value:e.product.orderDate,day:"numeric",month:"long",year:"numeric"})))});return r.a.createElement("div",null,r.a.createElement(b.a,{as:"a",color:"red",ribbon:!0},"Your Orders"),r.a.createElement("span",null,r.a.createElement("b",null," All Orders")),r.a.createElement(E.a,{fitted:!0}),r.a.createElement(v.a,{celled:!0,collapsing:!0,color:"green",striped:!0,size:"large",key:"green"},r.a.createElement(v.a.Header,{color:"brown"},r.a.createElement(v.a.Row,null,r.a.createElement(v.a.HeaderCell,null,"Product Image"),r.a.createElement(v.a.HeaderCell,null,"Name"),r.a.createElement(v.a.HeaderCell,null,"Price"),r.a.createElement(v.a.HeaderCell,null,"Status"),r.a.createElement(v.a.HeaderCell,null,"Ordered Date"))),r.a.createElement(v.a.Body,null,e)))}}]),t}(n.Component),k=Object(s.b)(function(e){return{orders:e.orders.orders}},{fetchOrders:O})(C),D=a(336),w=a(40),H=function(e){return r.a.createElement(D.a,{color:"teal",raised:!0},r.a.createElement(D.a.Content,null,r.a.createElement(g.a,{floated:"right",size:"mini",src:e.cardData.picture}),r.a.createElement(D.a.Header,null,e.fullName),r.a.createElement(D.a.Meta,null,e.cardData.company),r.a.createElement(D.a.Description,null,e.cardData.about)),r.a.createElement(D.a.Content,{extra:!0},r.a.createElement(D.a.Header,null,"Info:"),r.a.createElement(D.a.Meta,null,r.a.createElement("strong",null,r.a.createElement(w.a,{link:!0,name:"mail"})," :"," "),e.cardData.email),r.a.createElement(D.a.Meta,null,r.a.createElement("strong",null,r.a.createElement(w.a,{link:!0,name:"phone"})," :"," "),e.cardData.phone),r.a.createElement(D.a.Meta,null,r.a.createElement("strong",null,r.a.createElement(w.a,{link:!0,name:"address book"})," :"," "),e.cardData.address)),r.a.createElement(D.a.Content,{extra:!0},r.a.createElement(D.a.Header,null,"GPS coordinates:"),r.a.createElement(D.a.Meta,null,r.a.createElement("strong",null,"Lat:"),e.cardData.latitude),r.a.createElement(D.a.Meta,null,r.a.createElement("strong",null,"Long:"),e.cardData.longitude)),r.a.createElement(D.a.Content,{extra:!0},r.a.createElement(D.a.Description,null," ",r.a.createElement("strong",null,"Registered On: "),r.a.createElement(y.a,{value:e.cardData.registered,day:"numeric",month:"long",year:"numeric"}))))},I=a(331),P=function(e){function t(){return Object(o.a)(this,t),Object(m.a)(this,Object(u.a)(t).apply(this,arguments))}return Object(d.a)(t,e),Object(i.a)(t,[{key:"componentWillMount",value:function(){this.props.fetchProfile()}},{key:"render",value:function(){var e=this.props.profile.name,t=e?Object.values(e).join(" "):"";return this.props.profile.registered?r.a.createElement(H,{cardData:this.props.profile,fullName:t}):r.a.createElement(I.a,{active:!0,inline:!0})}}]),t}(n.Component),x=Object(s.b)(function(e){return{profile:e.orders.profile}},{fetchProfile:function(){return function(e){fetch(" https://api.myjson.com/bins/1f2eri").then(function(e){return e.json()}).then(function(t){delete t.orders,e({type:"FETCH_PROFILE",payload:t})})}}})(P),R=a(333),M=a(337),L=a(20),N=Object(L.a)(),S=function(e){function t(){return Object(o.a)(this,t),Object(m.a)(this,Object(u.a)(t).apply(this,arguments))}return Object(d.a)(t,e),Object(i.a)(t,[{key:"componentWillMount",value:function(){this.props.fetchOrders()}},{key:"render",value:function(){var e=this.props.idProduct,t=this.props.orders.filter(function(t){return t.id===e}).map(function(e){return r.a.createElement(R.a,{key:"pdt_{orderId}"},r.a.createElement(R.a.Image,{src:e.product.picture}),r.a.createElement(R.a.Content,null,r.a.createElement(R.a.Header,{as:"a"},e.product.name),r.a.createElement(R.a.Meta,null,r.a.createElement("span",{className:"cinema"},e.price)),r.a.createElement(R.a.Description,null,e.product.description),r.a.createElement(R.a.Extra,null,r.a.createElement(b.a,{color:"blue"},e.product.orderStatus),r.a.createElement(b.a,{color:"yellow"},r.a.createElement(w.a,{name:"calendar"}),r.a.createElement(y.a,{value:e.product.orderDate,day:"numeric",month:"long",year:"numeric"})," "))))});return r.a.createElement("div",null,r.a.createElement(R.a.Group,{divided:!0},t),r.a.createElement(E.a,null),r.a.createElement(M.a,{color:"brown",onClick:N.goBack},"Go Back"))}}]),t}(n.Component),T=Object(s.b)(function(e){return{orders:e.orders.orders}},{fetchOrders:O})(S),_=a(338),B=function(){return r.a.createElement(_.a,{fixed:"top",inverted:!0,color:"violet"},r.a.createElement(p.a,null,r.a.createElement(_.a.Item,{header:!0},r.a.createElement(w.a,{name:"bullhorn"}),r.a.createElement(f.b,{to:"".concat(j)},"e-Commerce Land")),r.a.createElement(_.a.Item,null," ",r.a.createElement(f.b,{to:"".concat(j,"/profile")},"Profile")),r.a.createElement(_.a.Item,null,r.a.createElement(f.b,{to:"".concat(j,"/orders")},"Orders"))))};function F(e){return r.a.createElement("div",null,r.a.createElement(b.a,{as:"a",color:"red",ribbon:!0},"Order Details"),r.a.createElement("span",null," Your Order Summary"),r.a.createElement(E.a,{fitted:!0}),r.a.createElement(T,{idProduct:e.match.params.id}))}var z=function(){return r.a.createElement(f.a,null,r.a.createElement(p.a,null,r.a.createElement(B,null),r.a.createElement(p.a,{text:!0,style:{marginTop:"7em"}},r.a.createElement(h.a,{exact:!0,path:"".concat(j),component:x}),r.a.createElement(h.a,{exact:!0,path:"".concat(j,"/profile"),component:x}),r.a.createElement(h.a,{exact:!0,path:"".concat(j,"/orders"),component:k}),r.a.createElement(h.a,{path:"".concat(j,"/orders/:id"),component:F}))))},W=a(38),A=a(152),G=a(101),U={profile:{},orders:[]},J=Object(W.c)({orders:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:U,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"FETCH_ORDERS":return Object(G.a)({},e,{profile:"",orders:t.payload.orders});case"FETCH_PROFILE":return console.log("action",t),console.log(Object({NODE_ENV:"production",PUBLIC_URL:"/e-commenceland"})),Object(G.a)({},e,{profile:t.payload});default:return e}}}),Y=[A.a],V=Object(W.e)(J,{},Object(W.d)(W.a.apply(void 0,Y))),Z=a(340),$=a(335),q=function(){return r.a.createElement(Z.a,{color:"violet",inverted:!0,vertical:!0,style:{margin:"5em 0em 0em",padding:"1em 0em"}},r.a.createElement(p.a,{textAlign:"center"},r.a.createElement($.a,{horizontal:!0,inverted:!0,divided:!0,link:!0,size:"small"},r.a.createElement($.a.Item,{as:"a",href:"#"},"Contact Us"),r.a.createElement($.a.Item,{as:"a",href:"#"},"Terms and Conditions"),r.a.createElement($.a.Item,{as:"a",href:"#"},"Privacy Policy"))))},K=function(e){function t(){return Object(o.a)(this,t),Object(m.a)(this,Object(u.a)(t).apply(this,arguments))}return Object(d.a)(t,e),Object(i.a)(t,[{key:"render",value:function(){return r.a.createElement(s.a,{store:V},r.a.createElement("div",{className:"App"},r.a.createElement(z,null)),r.a.createElement(q,null))}}]),t}(n.Component);Boolean("localhost"===window.location.hostname||"[::1]"===window.location.hostname||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/));c.a.render(r.a.createElement(y.b,{locale:"en",timeZone:"Asia/Tokyo"},r.a.createElement(K,null)),document.getElementById("root")),"serviceWorker"in navigator&&navigator.serviceWorker.ready.then(function(e){e.unregister()})}},[[162,1,2]]]); -//# sourceMappingURL=main.a8a86370.chunk.js.map \ No newline at end of file diff --git a/static/js/main.a8a86370.chunk.js.map b/static/js/main.a8a86370.chunk.js.map deleted file mode 100644 index f3dde4b..0000000 --- a/static/js/main.a8a86370.chunk.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["actions/orderActions.js","actions/types.js","constants/base/index.js","components/Orders/index.js","components/Profile/index.js","components/Profile/Profile.js","components/OrderDetails/index.js","containers/Header/index.js","containers/Nav/index.js","reducers/orderReducer.js","reducers/index.js","store/store.js","containers/Footer/index.js","App.js","serviceWorker.js","index.js"],"names":["fetchOrders","dispatch","fetch","then","res","json","orders","type","payload","GB_BASE_URL","Orders","this","props","ordersList","map","order","react_default","a","createElement","Table","Row","key","id","Cell","Image","size","src","product","picture","style","marginRight","react_router_dom","to","concat","name","price","orderStatus","index_es","value","orderDate","day","month","year","Label","as","color","ribbon","Divider","fitted","celled","collapsing","striped","Header","HeaderCell","Body","Component","connect","state","CardExampleExtraContent","Card","raised","Content","floated","cardData","fullName","Meta","company","Description","about","extra","Icon","link","email","phone","address","latitude","longitude","registered","OrderDetails","fetchProfile","nameObj","profile","Object","values","join","Profile","Loader","active","inline","customHistory","createBrowserHistory","orderId","idProduct","itemGroupMarkUp","filter","o","pdata","Item","className","description","Extra","Group","divided","Button","onClick","goBack","HeaderMenu","Menu","fixed","inverted","Container","header","PreProcessProductDetails","match","components_OrderDetails","params","FixedMenuLayout","text","marginTop","react_router","exact","path","component","initialState","combineReducers","arguments","length","undefined","action","objectSpread","console","log","process","middleware","thunk","store","createStore","rootReducer","compose","applyMiddleware","apply","Footer","Segment","vertical","margin","padding","textAlign","List","horizontal","href","App","es","Nav","containers_Footer","Boolean","window","location","hostname","ReactDOM","render","locale","timeZone","src_App_0","document","getElementById","navigator","serviceWorker","ready","registration","unregister"],"mappings":"uYAEaA,EAAc,kBAAM,SAAAC,GAC/BC,MAAM,uCACHC,KAAK,SAAAC,GAAG,OAAIA,EAAIC,SAChBF,KAAK,SAAAG,GACJL,EAAS,CACPM,KCPmB,eDQnBC,QAASF,EACTA,OAAQA,EAAOA,uCENRG,EAFK,mBCQdC,+LAEFC,KAAKC,MAAMZ,+CAIX,IAAMa,EAAaF,KAAKC,MAAMN,OAAOQ,IAAI,SAAAC,GAAK,OAC5CC,EAAAC,EAAAC,cAACC,EAAA,EAAMC,IAAP,CAAWC,IAAKN,EAAMO,IACpBN,EAAAC,EAAAC,cAACC,EAAA,EAAMI,KAAP,KACEP,EAAAC,EAAAC,cAACM,EAAA,EAAD,CACEC,KAAK,OACLC,IAAKX,EAAMY,QAAQC,QACnBC,MAAO,CAAEC,YAAa,YAG1Bd,EAAAC,EAAAC,cAACC,EAAA,EAAMI,KAAP,KACEP,EAAAC,EAAAC,cAACa,EAAA,EAAD,CAAMC,GAAE,GAAAC,OAAKxB,EAAL,YAAAwB,OAA2BlB,EAAMO,KAAOP,EAAMY,QAAQO,OAEhElB,EAAAC,EAAAC,cAACC,EAAA,EAAMI,KAAP,SAAcR,EAAMoB,OACpBnB,EAAAC,EAAAC,cAACC,EAAA,EAAMI,KAAP,KAAaR,EAAMY,QAAQS,aAC3BpB,EAAAC,EAAAC,cAACC,EA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GACfvH,EAAAC,EAAAC,cAAA,OAAKgF,UAAU,OACblF,EAAAC,EAAAC,cAACsI,EAAD,OAEDxI,EAAAC,EAAAC,cAACuI,EAAD,cAPSlG,aCKEmG,QACW,cAA7BC,OAAOC,SAASC,UAEe,UAA7BF,OAAOC,SAASC,UAEhBF,OAAOC,SAASC,SAAS5C,MACvB,2DCTN6C,IAASC,OACP/I,EAAAC,EAAAC,cAACmB,EAAA,EAAD,CAAc2H,OAAO,KAAKC,SAAS,cACjCjJ,EAAAC,EAAAC,cAACgJ,EAAD,OAEFC,SAASC,eAAe,SDoHpB,kBAAmBC,WACrBA,UAAUC,cAAcC,MAAMpK,KAAK,SAAAqK,GACjCA,EAAaC","file":"static/js/main.a8a86370.chunk.js","sourcesContent":["import { FETCH_ORDERS, FETCH_PROFILE } from \"./types\";\n\nexport const fetchOrders = () => dispatch => {\n fetch(\" https://api.myjson.com/bins/1f2eri\")\n .then(res => res.json())\n .then(orders => {\n dispatch({\n type: FETCH_ORDERS,\n payload: orders,\n orders: orders.orders\n });\n });\n};\n\nexport const fetchProfile = () => dispatch => {\n fetch(\" https://api.myjson.com/bins/1f2eri\")\n .then(res => res.json())\n .then(orders => {\n delete orders[\"orders\"];\n dispatch({\n type: FETCH_PROFILE,\n payload: orders\n });\n });\n};\n","export const FETCH_ORDERS ='FETCH_ORDERS';\nexport const FETCH_PROFILE ='FETCH_PROFILE';\n","// const GB_BASE_URL = process.env.NODE_ENV === 'production' ? '/e-commenceland/' : '';\nconst GB_BASE_URL = '/e-commenceland/';\n\nexport default GB_BASE_URL;","import React, { Component } from \"react\";\nimport PropTypes from \"prop-types\";\nimport { connect } from \"react-redux\";\nimport { fetchOrders } from \"../../actions/orderActions\";\nimport { FormattedDate } from \"react-intl\";\nimport { Link } from \"react-router-dom\";\nimport { Image, Table, Label, Divider } from \"semantic-ui-react\";\nimport GB_BASE_URL from '../../constants/base/';\n\nclass Orders extends Component {\n componentWillMount() {\n this.props.fetchOrders();\n }\n\n render() {\n const ordersList = this.props.orders.map(order => (\n \n \n \n \n \n {order.product.name}\n \n {order.price}\n {order.product.orderStatus}\n \n \n \n \n ));\n return (\n
\n \n \n All Orders\n \n \n\n \n \n \n Product Image\n Name\n Price\n Status\n Ordered Date\n \n \n {ordersList}\n \n
\n );\n }\n}\n\nOrders.propTypes = {\n fetchOrders: PropTypes.func.isRequired,\n // posts: PropTypes.array.isRequired,\n // posts: PropTypes.object,\n orders: PropTypes.array.isRequired\n};\n\nconst mapStateToProps = state => ({\n orders: state.orders.orders\n});\n\nexport default connect(\n mapStateToProps,\n { fetchOrders }\n)(Orders);\n","import React from \"react\";\nimport { Image, Card, Icon } from \"semantic-ui-react\";\nimport { FormattedDate } from \"react-intl\";\n\nconst CardExampleExtraContent = props => (\n \n \n \n {props.fullName}\n {props.cardData.company}\n {props.cardData.about}\n \n \n Info:\n \n \n :{\" \"}\n \n {props.cardData.email}\n \n \n \n :{\" \"}\n \n {props.cardData.phone}\n \n \n \n :{\" \"}\n \n {props.cardData.address}\n \n \n \n GPS coordinates:\n \n Lat:\n {props.cardData.latitude}\n \n \n Long:\n {props.cardData.longitude}\n \n \n \n \n {\" \"}\n Registered On: \n \n \n \n \n);\n\nexport default CardExampleExtraContent;\n","import React, { Component } from \"react\";\nimport PropTypes from \"prop-types\";\nimport { connect } from \"react-redux\";\nimport ProfileData from \"./index\";\nimport { fetchProfile } from \"../../actions/orderActions\";\nimport { Loader } from \"semantic-ui-react\";\n\nclass OrderDetails extends Component {\n componentWillMount() {\n this.props.fetchProfile();\n }\n\n render() {\n const nameObj = this.props.profile.name;\n const fullName = nameObj ? Object.values(nameObj).join(\" \") : \"\";\n if (this.props.profile.registered) {\n return ;\n } else {\n return ;\n }\n }\n}\n\nOrderDetails.propTypes = {\n fetchProfile: PropTypes.func.isRequired\n};\n\nconst mapStateToProps = state => ({\n profile: state.orders.profile\n});\n\nexport default connect(\n mapStateToProps,\n { fetchProfile }\n)(OrderDetails);\n","import React, { Component } from \"react\";\nimport PropTypes from \"prop-types\";\nimport { connect } from \"react-redux\";\nimport { fetchOrders } from \"../../actions/orderActions\";\nimport { Item, Label, Icon, Button, Divider } from \"semantic-ui-react\";\nimport { FormattedDate } from \"react-intl\";\nimport { createBrowserHistory } from \"history\";\n\nconst customHistory = createBrowserHistory();\n\nclass OrderDetails extends Component {\n componentWillMount() {\n this.props.fetchOrders();\n }\n\n render() {\n const orderId = this.props.idProduct;\n const productDetails = this.props.orders.filter(o => o.id === orderId);\n const itemGroupMarkUp = productDetails.map(pdata => (\n \n \n \n {pdata.product.name}\n \n {pdata.price}\n \n {pdata.product.description}\n \n \n \n \n \n \n ));\n\n return (\n
\n {itemGroupMarkUp}\n \n \n
\n );\n }\n}\n\nOrderDetails.propTypes = {\n fetchOrders: PropTypes.func.isRequired\n};\n\nconst mapStateToProps = state => ({\n orders: state.orders.orders\n});\n\nexport default connect(\n mapStateToProps,\n { fetchOrders }\n)(OrderDetails);\n","import React from \"react\";\nimport { Container, Menu, Icon } from \"semantic-ui-react\";\nimport { Link as RLink } from \"react-router-dom\";\nimport GB_BASE_URL from '../../constants/base/';\n\n\nconst HeaderMenu = () => (\n \n \n \n {/* */}\n \n e-Commerce Land\n \n \n {\" \"}\n Profile\n \n \n Orders\n \n \n \n);\n\nexport default HeaderMenu;\n","import React from \"react\";\nimport { Container, Divider } from \"semantic-ui-react\";\nimport { BrowserRouter as Router, Route } from \"react-router-dom\";\nimport { Label } from \"semantic-ui-react\";\nimport Orders from \"../../components/Orders/\";\nimport Profile from \"../../components/Profile/Profile\";\nimport OrderDetails from \"../../components/OrderDetails/\";\nimport HeaderMenu from \"../Header\";\nimport GB_BASE_URL from '../../constants/base/';\n\nfunction PreProcessProductDetails(match) {\n return (\n
\n \n Your Order Summary\n \n \n
\n );\n}\n\nconst FixedMenuLayout = () => (\n \n \n \n \n \n \n \n \n \n \n \n);\n\nexport default FixedMenuLayout;\n","import { FETCH_ORDERS, FETCH_PROFILE } from \"../actions/types\";\n\nconst initialState = {\n profile:{}, \n orders: [] \n};\n\nexport default function(state = initialState, action) {\n switch (action.type) {\n case FETCH_ORDERS:\n return {\n ...state,\n profile: \"\",\n orders: action.payload.orders\n };\n case FETCH_PROFILE:\n console.log(\"action\",action);\n console.log(process.env);\n return {\n ...state,\n profile: action.payload\n }; \n default:\n return state;\n }\n}\n","import { combineReducers } from 'redux';\nimport postReducer from './orderReducer';\n\nexport default combineReducers({\n orders: postReducer\n})","import { createStore, applyMiddleware, compose } from \"redux\";\n\nimport thunk from \"redux-thunk\";\nimport rootReducer from \"../reducers\";\n\nconst initialState = {};\n\nconst middleware = [thunk];\n\nconst store = createStore(\n rootReducer,\n initialState,\n compose(applyMiddleware(...middleware))\n);\n\nexport default store;\n","import React from \"react\";\nimport { Container, List, Segment } from \"semantic-ui-react\";\n\nconst Footer = () => (\n \n \n \n \n Contact Us\n \n \n Terms and Conditions\n \n \n Privacy Policy\n \n \n \n \n);\n\nexport default Footer;\n","import React, { Component } from \"react\";\nimport \"./App.css\";\nimport { Provider } from \"react-redux\";\nimport Nav from \"./containers/Nav/\";\nimport store from \"./store/store\";\nimport Footer from \"./containers/Footer\";\n\nclass App extends Component {\n render() {\n return (\n \n
\n
\n