From d33884654c972efc9a8b012b77f5f84a12e45736 Mon Sep 17 00:00:00 2001 From: Dan Date: Fri, 1 May 2020 12:23:51 +1200 Subject: [PATCH] update and rename --- build/static/js/community-main.min.js | 4 ++-- .../js/{runtime-main.min.js => community-runtime.min.js} | 0 build/static/js/{vendor.min.js => community-vendor.min.js} | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename build/static/js/{runtime-main.min.js => community-runtime.min.js} (100%) rename build/static/js/{vendor.min.js => community-vendor.min.js} (100%) diff --git a/build/static/js/community-main.min.js b/build/static/js/community-main.min.js index faf0fdd..f572d41 100644 --- a/build/static/js/community-main.min.js +++ b/build/static/js/community-main.min.js @@ -1,2 +1,2 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[0],{107:function(e,a,t){e.exports=t(309)},112:function(e,a,t){},309:function(e,a,t){"use strict";t.r(a);var n=t(0),r=t.n(n),c=t(100),i=t.n(c),o=(t(112),t(9)),l=t(10),s=t(13),m=t(11),u=t(14),p=t(101),d=t.n(p),b={apiPeople:"https://enspiral-airtable-api-proxy.firebaseio.com/persons/.json",shopifyProxy:"/tools/database/persons/.json"},v=t(39),E=t(59),f=t(102),h=t.n(f),g=t(40),y=t.n(g);var N=function(e){return r.a.createElement("div",null,r.a.createElement("img",{id:"ambassador-image-id",src:"".concat(e.image,"?s=400"),alt:"ambassadors",width:"100%"}))};var w=function(e){return r.a.createElement("div",{className:"ambassador-name"},e.name)},O=t(12);var j=function(e){var a=e.twitter;return r.a.createElement("div",{className:"social-icons"},r.a.createElement("a",{href:a,target:"_blank"},r.a.createElement(O.a,{icon:["fab","twitter"],size:"1x",color:"darkgrey"})))};t(122);var k=function(e){var a=e.linkedin;return r.a.createElement("div",{className:"social-icons"},r.a.createElement("a",{href:a,target:"_blank"},r.a.createElement(O.a,{icon:["fab","linkedin"],size:"1x",color:"darkgrey"})))},x=t(103),C=t.n(x);var D=function(e){var a=e.website;return r.a.createElement("div",{className:"social-icons"},r.a.createElement("a",{href:a,target:"_blank"},r.a.createElement(O.a,{icon:C.a,size:"1x",color:"darkgrey"})))},A=t(104),L=t.n(A);var I=function(e){var a=e.email;return r.a.createElement("div",{className:"social-icons"},r.a.createElement("a",{href:"mailto:"+a},r.a.createElement(O.a,{icon:L.a,size:"1x",color:"darkgrey"})))};var M=function(e){var a=e.person;return r.a.createElement("div",{className:"social-icon-container"},a.publicLinkedIn?r.a.createElement(k,{linkedin:a.publicLinkedIn}):r.a.createElement("span",null),a.publicTwitter?r.a.createElement(j,{twitter:a.publicTwitter}):r.a.createElement("span",null),a.publicWebsite?r.a.createElement(D,{website:a.publicWebsite}):r.a.createElement("span",null),a.publicEmail?r.a.createElement(I,{email:a.publicEmail}):r.a.createElement("span",null))};var z=function(e){var a=e.ambassador;return r.a.createElement("div",{className:"ambassador-info-header"},r.a.createElement(w,{name:a.publicName}),r.a.createElement(M,{person:a}))};var T=function(e){return r.a.createElement("div",{className:"ambassador-profile"},e.description)},U=function(e){function a(){return Object(o.a)(this,a),Object(s.a)(this,Object(m.a)(a).apply(this,arguments))}return Object(u.a)(a,e),Object(l.a)(a,[{key:"render",value:function(){var e,a=this,t=(e={width:"400px",height:"auto",marginLeft:"-200px",marginTop:"-250px",left:"0%",top:"50%"},Object(E.a)(e,"left","50%"),Object(E.a)(e,"padding",0),e),n=this.props.ambassador;return r.a.createElement("div",null,r.a.createElement(y.a,{className:"ambassador-lists",style:{borderRadius:"50%"},onClick:function(){return a.simpleDialog.show()},elevation:8},r.a.createElement("div",{className:"ambassador-image"},n&&r.a.createElement(N,{image:n.gravatarUrl}))),r.a.createElement(h.a,{hideOnOverlayClicked:!0,ref:function(e){return a.simpleDialog=e},dialogStyles:t},r.a.createElement("div",{className:"ambassador-wrapper"},r.a.createElement("div",{className:"ambassador-image-skylight"},n&&r.a.createElement(N,{image:n.gravatarUrl})),r.a.createElement("div",{className:"ambassador-banner"}),r.a.createElement(z,{ambassador:n}),r.a.createElement(T,{description:n.publicDescription}))))}}]),a}(n.Component),W=function(e){function a(){return Object(o.a)(this,a),Object(s.a)(this,Object(m.a)(a).apply(this,arguments))}return Object(u.a)(a,e),Object(l.a)(a,[{key:"render",value:function(){var e=this.props.people;return r.a.createElement("div",null,r.a.createElement("div",{className:"community-titles"},"Ambassadors"),r.a.createElement("div",{className:"ambassadors"},Object(v.map)(e,function(e,a){return e.isAmbassador&&r.a.createElement(U,{key:a,ambassador:e})})))}}]),a}(n.Component),B=t(106),P=t.n(B);var S=function(e){return console.log(e.image),r.a.createElement("div",{className:"profile-image"},r.a.createElement("img",{src:"".concat(e.image,"?s=400"),alt:"name",width:"100%"}))};var _=function(e){return r.a.createElement("div",{className:"profile-description"},e.description)};var q=function(e){return r.a.createElement("div",{className:function(){var e=Math.floor(4*Math.random());return"info-wrapper-".concat(e+1)}()},r.a.createElement("div",{className:"info-container"},e.children))};var J=function(e){return r.a.createElement("div",{className:"profile-name"},e.name)};var R=function(e){var a=e.person;return r.a.createElement("div",{className:"info-header"},r.a.createElement(J,{name:a.publicName}),r.a.createElement(M,{person:a}))};var $=function(e){var a=e.person;return r.a.createElement(y.a,{className:"profile-cards-member"},r.a.createElement(S,{image:a.gravatarUrl}),r.a.createElement(q,null,r.a.createElement(R,{person:a}),r.a.createElement(_,{description:a.publicDescription})))};var F=function(e){var a=e.person;return r.a.createElement("div",{className:"profile-cards-contributor"},r.a.createElement(S,{image:a.gravatarUrl}),r.a.createElement(q,null,r.a.createElement(R,{person:a}),r.a.createElement(_,{description:a.publicDescription})))},G=function(e){function a(){return Object(o.a)(this,a),Object(s.a)(this,Object(m.a)(a).apply(this,arguments))}return Object(u.a)(a,e),Object(l.a)(a,[{key:"render",value:function(){var e=this.props.person;return r.a.createElement("div",{className:"card-wrapper"},"Member"===e.contributorStatus?r.a.createElement($,{person:e}):r.a.createElement(F,{person:e}))}}]),a}(n.Component),H={transitionDuration:0},K={background:".my-bg-image-el"},Q={padding:"0px"};var V=function(e){var a=e.people;return r.a.createElement("div",null,r.a.createElement("div",{className:"community-titles"},"Members & Contributors"),r.a.createElement(P.a,{className:"my-gallery-class",style:Q,elementType:"ul",options:H,disableImagesLoaded:!1,updateOnEachImageLoad:!1,imagesLoadedOptions:K},Object(v.map)(a,function(e,a){return!e.isAmbassador&&r.a.createElement(G,{key:a,person:e})})))},X=function(e){function a(){var e;return Object(o.a)(this,a),(e=Object(s.a)(this,Object(m.a)(a).call(this))).state={people:null},e}return Object(u.a)(a,e),Object(l.a)(a,[{key:"componentDidMount",value:function(){var e=this;(function(){var e=b.shopifyProxy;return window.fetch(e,{method:"get"}).then(function(e){return console.info("Api request success: ",e),e.json()}).catch(function(e){console.error("Api request error: ",e)})})().then(function(a){console.log("getpeople data: ",a),e.setState({people:a})}).catch(function(e){console.log("Big ooooooops! ",e)})}},{key:"render",value:function(){var e=this.state.people;return r.a.createElement("div",{className:"App"},e&&r.a.createElement(W,{people:e}),e&&r.a.createElement(V,{people:e}))}}]),a}(n.Component);var Y=d()(X);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}$/));i.a.render(r.a.createElement(Y,null),document.getElementById("root-community")),"serviceWorker"in navigator&&navigator.serviceWorker.ready.then(function(e){e.unregister()})}},[[107,1,2]]]); -//# sourceMappingURL=main.594fe472.chunk.js.map \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[0],{107:function(e,a,t){e.exports=t(309)},112:function(e,a,t){},309:function(e,a,t){"use strict";t.r(a);var n=t(0),r=t.n(n),c=t(100),i=t.n(c),o=(t(112),t(9)),l=t(10),s=t(13),m=t(11),u=t(14),p=t(101),d=t.n(p),b={apiPeople:"https://enspiral-airtable-api-proxy.firebaseio.com/persons/.json",shopifyProxy:"/tools/database/persons/.json"},v=t(39),E=t(59),f=t(102),h=t.n(f),g=t(40),y=t.n(g);var N=function(e){return r.a.createElement("div",null,r.a.createElement("img",{id:"ambassador-image-id",src:"".concat(e.image,"?s=400"),alt:"ambassadors",width:"100%"}))};var w=function(e){return r.a.createElement("div",{className:"ambassador-name"},e.name)},O=t(12);var j=function(e){var a=e.twitter;return r.a.createElement("div",{className:"social-icons"},r.a.createElement("a",{href:a,target:"_blank"},r.a.createElement(O.a,{icon:["fab","twitter"],size:"1x",color:"darkgrey"})))};t(122);var k=function(e){var a=e.linkedin;return r.a.createElement("div",{className:"social-icons"},r.a.createElement("a",{href:a,target:"_blank"},r.a.createElement(O.a,{icon:["fab","linkedin"],size:"1x",color:"darkgrey"})))},x=t(103),C=t.n(x);var D=function(e){var a=e.website;return r.a.createElement("div",{className:"social-icons"},r.a.createElement("a",{href:a,target:"_blank"},r.a.createElement(O.a,{icon:C.a,size:"1x",color:"darkgrey"})))},A=t(104),L=t.n(A);var I=function(e){var a=e.email;return r.a.createElement("div",{className:"social-icons"},r.a.createElement("a",{href:"mailto:"+a},r.a.createElement(O.a,{icon:L.a,size:"1x",color:"darkgrey"})))};var M=function(e){var a=e.person;return r.a.createElement("div",{className:"social-icon-container"},a.publicLinkedIn?r.a.createElement(k,{linkedin:a.publicLinkedIn}):r.a.createElement("span",null),a.publicTwitter?r.a.createElement(j,{twitter:a.publicTwitter}):r.a.createElement("span",null),a.publicWebsite?r.a.createElement(D,{website:a.publicWebsite}):r.a.createElement("span",null),a.publicEmail?r.a.createElement(I,{email:a.publicEmail}):r.a.createElement("span",null))};var z=function(e){var a=e.ambassador;return r.a.createElement("div",{className:"ambassador-info-header"},r.a.createElement(w,{name:a.publicName}),r.a.createElement(M,{person:a}))};var T=function(e){return r.a.createElement("div",{className:"ambassador-profile"},e.description)},U=function(e){function a(){return Object(o.a)(this,a),Object(s.a)(this,Object(m.a)(a).apply(this,arguments))}return Object(u.a)(a,e),Object(l.a)(a,[{key:"render",value:function(){var e,a=this,t=(e={width:"400px",height:"auto",marginLeft:"-200px",marginTop:"-250px",left:"0%",top:"50%"},Object(E.a)(e,"left","50%"),Object(E.a)(e,"padding",0),e),n=this.props.ambassador;return r.a.createElement("div",null,r.a.createElement(y.a,{className:"ambassador-lists",style:{borderRadius:"50%"},onClick:function(){return a.simpleDialog.show()},elevation:8},r.a.createElement("div",{className:"ambassador-image"},n&&r.a.createElement(N,{image:n.gravatarUrl}))),r.a.createElement(h.a,{hideOnOverlayClicked:!0,ref:function(e){return a.simpleDialog=e},dialogStyles:t},r.a.createElement("div",{className:"ambassador-wrapper"},r.a.createElement("div",{className:"ambassador-image-skylight"},n&&r.a.createElement(N,{image:n.gravatarUrl})),r.a.createElement("div",{className:"ambassador-banner"}),r.a.createElement(z,{ambassador:n}),r.a.createElement(T,{description:n.publicDescription}))))}}]),a}(n.Component),W=function(e){function a(){return Object(o.a)(this,a),Object(s.a)(this,Object(m.a)(a).apply(this,arguments))}return Object(u.a)(a,e),Object(l.a)(a,[{key:"render",value:function(){var e=this.props.people;return r.a.createElement("div",null,r.a.createElement("div",{className:"community-titles"},"Ambassadors"),r.a.createElement("div",{className:"ambassadors"},Object(v.map)(e,function(e,a){return e.isAmbassador&&r.a.createElement(U,{key:a,ambassador:e})})))}}]),a}(n.Component),B=t(106),P=t.n(B);var S=function(e){return console.log(e.image),r.a.createElement("div",{className:"profile-image"},r.a.createElement("img",{src:"".concat(e.image,"?s=400"),alt:"name",width:"100%"}))};var _=function(e){return r.a.createElement("div",{className:"profile-description"},e.description)};var q=function(e){return r.a.createElement("div",{className:function(){var e=Math.floor(4*Math.random());return"info-wrapper-".concat(e+1)}()},r.a.createElement("div",{className:"info-container"},e.children))};var J=function(e){return r.a.createElement("div",{className:"profile-name"},e.name)};var R=function(e){var a=e.person;return r.a.createElement("div",{className:"info-header"},r.a.createElement(J,{name:a.publicName}),r.a.createElement(M,{person:a}))};var $=function(e){var a=e.person;return r.a.createElement(y.a,{className:"profile-cards-member"},r.a.createElement(S,{image:a.gravatarUrl}),r.a.createElement(q,null,r.a.createElement(R,{person:a}),r.a.createElement(_,{description:a.publicDescription})))};var F=function(e){var a=e.person;return r.a.createElement("div",{className:"profile-cards-contributor"},r.a.createElement(S,{image:a.gravatarUrl}),r.a.createElement(q,null,r.a.createElement(R,{person:a}),r.a.createElement(_,{description:a.publicDescription})))},G=function(e){function a(){return Object(o.a)(this,a),Object(s.a)(this,Object(m.a)(a).apply(this,arguments))}return Object(u.a)(a,e),Object(l.a)(a,[{key:"render",value:function(){var e=this.props.person;return r.a.createElement("div",{className:"card-wrapper"},"Member"===e.contributorStatus?r.a.createElement($,{person:e}):r.a.createElement(F,{person:e}))}}]),a}(n.Component),H={transitionDuration:0},K={background:".my-bg-image-el"},Q={padding:"0px"};var V=function(e){var a=e.people;return r.a.createElement("div",null,r.a.createElement("div",{className:"community-titles"},"Members & Contributors"),r.a.createElement(P.a,{className:"my-gallery-class",style:Q,elementType:"ul",options:H,disableImagesLoaded:!1,updateOnEachImageLoad:!1,imagesLoadedOptions:K},Object(v.map)(a,function(e,a){return!e.isAmbassador&&r.a.createElement(G,{key:a,person:e})})))},X=function(e){function a(){var e;return Object(o.a)(this,a),(e=Object(s.a)(this,Object(m.a)(a).call(this))).state={people:null},e}return Object(u.a)(a,e),Object(l.a)(a,[{key:"componentDidMount",value:function(){var e=this;(function(){var e=b.apiPeople;return window.fetch(e,{method:"get"}).then(function(e){return console.info("Api request success: ",e),e.json()}).catch(function(e){console.error("Api request error: ",e)})})().then(function(a){console.log("getpeople data: ",a),e.setState({people:a})}).catch(function(e){console.log("Big ooooooops! ",e)})}},{key:"render",value:function(){var e=this.state.people;return r.a.createElement("div",{className:"App"},e&&r.a.createElement(W,{people:e}),e&&r.a.createElement(V,{people:e}))}}]),a}(n.Component);var Y=d()(X);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}$/));i.a.render(r.a.createElement(Y,null),document.getElementById("root-community")),"serviceWorker"in navigator&&navigator.serviceWorker.ready.then(function(e){e.unregister()})}},[[107,1,2]]]); +//# sourceMappingURL=main.46726673.chunk.js.map \ No newline at end of file diff --git a/build/static/js/runtime-main.min.js b/build/static/js/community-runtime.min.js similarity index 100% rename from build/static/js/runtime-main.min.js rename to build/static/js/community-runtime.min.js diff --git a/build/static/js/vendor.min.js b/build/static/js/community-vendor.min.js similarity index 100% rename from build/static/js/vendor.min.js rename to build/static/js/community-vendor.min.js