Commit 93a0b05b authored by Jon Moore's avatar Jon Moore
parents 131cdec4 c0085493
No preview for this file type
{
"recommendations": [
"dbaeumer.vscode-eslint",
"jpoissonnier.vscode-styled-components",
"eamodio.gitlens",
"esbenp.prettier-vscode"
]
}
<!doctype html><html itemscope itemtype="http://schema.org/" lang="en" dir="ltr"><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no"/><meta http-equiv="X-UA-Compatible" content="ie=edge"><!--[if IE 11 ]>
<meta name="msapplication-config" content="static/browserconfig.xml" />
<![endif]--><link rel="icon" type="image/x-icon" href="/static/img/icons/favicon.ico"/><link rel="icon" type="image/png" href="/static/img/icons/favicon.png"/><link rel="manifest" href="/static/manifest.webmanifest"/>{{TITLE}} {{SEO_CRITICAL_METADATA}} {{CRITICAL_CSS}}<meta property="og:type" content="website"/><script type="text/javascript">Object.entries||document.write('<script crossorigin="anonymous" src="https://polyfill.io/v3/polyfill.min.js?features=default,es2015,es2016,es2017"><\/script>')</script><script src="/static/startup.js"></script></head><body><div id="root">{{APP}}</div>{{REDUX_DATA}} {{LOADABLE_CHUNKS}}<script type="module" src="/static/modern/js/app.1dc30e50851f2b5d849c.mjs"></script><script type="module" src="/static/modern/js/vendor.e1417b1f3a35017e8605.mjs"></script><script type="module" src="/static/modern/js/runtime.73cc1fb539e5ea10bf77.mjs"></script><script>!function(){var e=document,t=e.createElement("script");if(!("noModule"in t)&&"onbeforeload"in t){var n=!1;e.addEventListener("beforeload",function(e){if(e.target===t)n=!0;else if(!e.target.hasAttribute("nomodule")||!n)return;e.preventDefault()},!0),t.type="module",t.src=".",e.head.appendChild(t),t.remove()}}()</script><script type="text/javascript" src="/static/legacy/js/app.d0b5feb91b0282f5353c.js" nomodule></script><script type="text/javascript" src="/static/legacy/js/vendor.73e3ce03ef69597c16a3.js" nomodule></script><script type="text/javascript" src="/static/legacy/js/runtime.9354346e9ef885ecf552.js" nomodule></script></body></html>
\ No newline at end of file
<![endif]--><link rel="icon" type="image/x-icon" href="/static/img/icons/favicon.ico"/><link rel="icon" type="image/png" href="/static/img/icons/favicon.png"/><link rel="manifest" href="/static/manifest.webmanifest"/>{{TITLE}} {{SEO_CRITICAL_METADATA}} {{CRITICAL_CSS}}<meta property="og:type" content="website"/><script type="text/javascript">Object.entries||document.write('<script crossorigin="anonymous" src="https://polyfill.io/v3/polyfill.min.js?features=default,es2015,es2016,es2017"><\/script>')</script><script src="/static/startup.js"></script></head><body><div id="root">{{APP}}</div>{{REDUX_DATA}} {{LOADABLE_CHUNKS}}<script type="module" src="/static/modern/js/app.9460153ec0717971c9a9.mjs"></script><script type="module" src="/static/modern/js/vendor.33b841e3bffc37a70f63.mjs"></script><script type="module" src="/static/modern/js/runtime.4b89e12ee4345ef895fc.mjs"></script><script>!function(){var e=document,t=e.createElement("script");if(!("noModule"in t)&&"onbeforeload"in t){var n=!1;e.addEventListener("beforeload",function(e){if(e.target===t)n=!0;else if(!e.target.hasAttribute("nomodule")||!n)return;e.preventDefault()},!0),t.type="module",t.src=".",e.head.appendChild(t),t.remove()}}()</script><script type="text/javascript" src="/static/legacy/js/app.d1a264beacdb67025dcb.js" nomodule></script><script type="text/javascript" src="/static/legacy/js/vendor.17f25347306efab29f34.js" nomodule></script><script type="text/javascript" src="/static/legacy/js/runtime.7af76f5911541967f3a1.js" nomodule></script></body></html>
\ No newline at end of file
{{CRITICAL_CSS}}<div id="root">{{APP}}</div><script type="text/javascript">Object.entries||document.write('<script crossorigin="anonymous" src="https://polyfill.io/v3/polyfill.min.js?features=default,es2015,es2016,es2017"><\/script>')</script><script src="/static/startup.js"></script>{{REDUX_DATA}} {{LOADABLE_CHUNKS}}<script type="module" src="/static/modern/js/app.1dc30e50851f2b5d849c.mjs"></script><script type="module" src="/static/modern/js/vendor.e1417b1f3a35017e8605.mjs"></script><script type="module" src="/static/modern/js/runtime.73cc1fb539e5ea10bf77.mjs"></script><script>!function(){var e=document,t=e.createElement("script");if(!("noModule"in t)&&"onbeforeload"in t){var n=!1;e.addEventListener("beforeload",function(e){if(e.target===t)n=!0;else if(!e.target.hasAttribute("nomodule")||!n)return;e.preventDefault()},!0),t.type="module",t.src=".",e.head.appendChild(t),t.remove()}}()</script><script type="text/javascript" src="/static/legacy/js/app.d0b5feb91b0282f5353c.js" nomodule></script><script type="text/javascript" src="/static/legacy/js/vendor.73e3ce03ef69597c16a3.js" nomodule></script><script type="text/javascript" src="/static/legacy/js/runtime.9354346e9ef885ecf552.js" nomodule></script>
\ No newline at end of file
{{CRITICAL_CSS}}<div id="root">{{APP}}</div><script type="text/javascript">Object.entries||document.write('<script crossorigin="anonymous" src="https://polyfill.io/v3/polyfill.min.js?features=default,es2015,es2016,es2017"><\/script>')</script><script src="/static/startup.js"></script>{{REDUX_DATA}} {{LOADABLE_CHUNKS}}<script type="module" src="/static/modern/js/app.9460153ec0717971c9a9.mjs"></script><script type="module" src="/static/modern/js/vendor.33b841e3bffc37a70f63.mjs"></script><script type="module" src="/static/modern/js/runtime.4b89e12ee4345ef895fc.mjs"></script><script>!function(){var e=document,t=e.createElement("script");if(!("noModule"in t)&&"onbeforeload"in t){var n=!1;e.addEventListener("beforeload",function(e){if(e.target===t)n=!0;else if(!e.target.hasAttribute("nomodule")||!n)return;e.preventDefault()},!0),t.type="module",t.src=".",e.head.appendChild(t),t.remove()}}()</script><script type="text/javascript" src="/static/legacy/js/app.d1a264beacdb67025dcb.js" nomodule></script><script type="text/javascript" src="/static/legacy/js/vendor.17f25347306efab29f34.js" nomodule></script><script type="text/javascript" src="/static/legacy/js/runtime.7af76f5911541967f3a1.js" nomodule></script>
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
......@@ -3,8 +3,8 @@
var context = typeof window != 'undefined' ? window : global;
function url() {
var alias = "zenhub";
var project = "zengenti";
var alias = "workshops-cte-master";
var project = "website";
var projectAndAlias =
project && project != 'website' ? project + '-' + alias : alias;
return Object({
......@@ -15,11 +15,11 @@ function url() {
});
}
context.PUBLIC_URI = "https://live-zengenti-zenhub.cloud.contensis.com/";
context.PUBLIC_URI = "https://live-workshops-cte-master.cloud.contensis.com";
context.SERVERS = Object({
alias: "zenhub",
internalVip: "10.128.46.132",
alias: "workshops-cte-master",
internalVip: "10.128.21.82",
cms: url().cms,
web: url().liveWeb,
iis: url().iisWeb,
......@@ -27,18 +27,18 @@ context.SERVERS = Object({
context.DELIVERY_API_CONFIG = Object({
rootUrl: url().cms,
accessToken: "sNF3SnNWu6RMAtpzybcOqkHKUlMnEUwrNre0OlD9G8UERroN",
projectId: "zengenti",
accessToken: "AfTWtGox8aKdgO85rXXSJrWUXa97BA1aXP4fwaIrliDSvWNz",
projectId: "website",
livePublishingRootUrl: url().previewWeb,
});
context.PROJECTS = Object([{"id":"zengenti","publicUri":"https://live-zengenti-zenhub.cloud.contensis.com/"}]);
context.PROJECTS = Object([{"id":"website","publicUri":"https://live-workshops-cte-master.cloud.contensis.com"}]);
context.ALIAS = "zenhub";
context.INTERNAL_VIP = "10.128.46.132";
context.ACCESS_TOKEN = "sNF3SnNWu6RMAtpzybcOqkHKUlMnEUwrNre0OlD9G8UERroN";
context.PUBLIC_URL = "https://live-zengenti-zenhub.cloud.contensis.com/";
context.PROJECT = "zengenti";
context.ALIAS = "workshops-cte-master";
context.INTERNAL_VIP = "10.128.21.82";
context.ACCESS_TOKEN = "AfTWtGox8aKdgO85rXXSJrWUXa97BA1aXP4fwaIrliDSvWNz";
context.PUBLIC_URL = "https://live-workshops-cte-master.cloud.contensis.com";
context.PROJECT = "website";
context.CONTENSIS_VERSION = "14";
if (typeof window == 'undefined') {
......
/* eslint-disable no-undef */
var context = typeof window != 'undefined' ? window : global;
function url() {
var alias = "-workshops-cte-master";
var project = "website";
var projectAndAlias =
project && project != 'website' ? project + '-' + alias : alias;
return Object({
cms: 'https://cms-' + alias + '.cloud.contensis.com',
previewWeb: 'https://preview-' + projectAndAlias + '.cloud.contensis.com',
liveWeb: 'https://live-' + projectAndAlias + '.cloud.contensis.com',
iisWeb: 'https://iis-live-' + projectAndAlias + '.cloud.contensis.com',
});
}
context.PUBLIC_URI = "https://live-workshops-cte-master.cloud.contensis.com";
context.SERVERS = Object({
alias: "-workshops-cte-master",
internalVip: "10.128.21.82",
cms: url().cms,
web: url().liveWeb,
iis: url().iisWeb,
});
context.DELIVERY_API_CONFIG = Object({
rootUrl: url().cms,
accessToken: "AfTWtGox8aKdgO85rXXSJrWUXa97BA1aXP4fwaIrliDSvWNz",
projectId: "website",
livePublishingRootUrl: url().previewWeb,
});
context.PROJECTS = Object([{"id":"website","publicUri":"https://live-workshops-cte-master.cloud.contensis.com"}]);
context.ALIAS = "-workshops-cte-master";
context.INTERNAL_VIP = "10.128.21.82";
context.ACCESS_TOKEN = "AfTWtGox8aKdgO85rXXSJrWUXa97BA1aXP4fwaIrliDSvWNz";
context.PUBLIC_URL = "https://live-workshops-cte-master.cloud.contensis.com";
context.PROJECT = "website";
context.CONTENSIS_VERSION = "14";
if (typeof window == 'undefined') {
// in a server context we need to set default
// scripts and bundles, then start the server
var utils = require('./startup.utils.js');
utils.setDefaults(__filename);
if (process.argv.includes('-tests')) {
utils.runTests();
} else {
utils.startServer();
}
}
/* eslint-disable no-undef */
var context = typeof window != 'undefined' ? window : global;
function url() {
var alias = "zenhub";
var project = "zengenti";
var projectAndAlias =
project && project != 'website' ? project + '-' + alias : alias;
return Object({
cms: 'https://cms-' + alias + '.cloud.contensis.com',
previewWeb: 'https://preview-' + projectAndAlias + '.cloud.contensis.com',
liveWeb: 'https://live-' + projectAndAlias + '.cloud.contensis.com',
iisWeb: 'https://iis-live-' + projectAndAlias + '.cloud.contensis.com',
});
}
context.PUBLIC_URI = "https://live-zengenti-zenhub.cloud.contensis.com/";
context.SERVERS = Object({
alias: "zenhub",
internalVip: "10.128.46.132",
cms: url().cms,
web: url().liveWeb,
iis: url().iisWeb,
});
context.DELIVERY_API_CONFIG = Object({
rootUrl: url().cms,
accessToken: "sNF3SnNWu6RMAtpzybcOqkHKUlMnEUwrNre0OlD9G8UERroN",
projectId: "zengenti",
livePublishingRootUrl: url().previewWeb,
});
context.PROJECTS = Object([{"id":"zengenti","publicUri":"https://live-zengenti-zenhub.cloud.contensis.com/"}]);
context.ALIAS = "zenhub";
context.INTERNAL_VIP = "10.128.46.132";
context.ACCESS_TOKEN = "sNF3SnNWu6RMAtpzybcOqkHKUlMnEUwrNre0OlD9G8UERroN";
context.PUBLIC_URL = "https://live-zengenti-zenhub.cloud.contensis.com/";
context.PROJECT = "zengenti";
context.CONTENSIS_VERSION = "14";
if (typeof window == 'undefined') {
// in a server context we need to set default
// scripts and bundles, then start the server
var utils = require('./startup.utils.js');
utils.setDefaults(__filename);
if (process.argv.includes('-tests')) {
utils.runTests();
} else {
utils.startServer();
}
}
This diff is collapsed.
(window.webpackJsonp=window.webpackJsonp||[]).push([[5],{272:function(e,t,a){"use strict";var n=a(5);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var l=n(a(0)),d=n(a(12)),r=n(a(175)),i=n(a(673)),u=a(90),c=function(e){var t=e.entry;return t?l.default.createElement(r.default,null,l.default.createElement(i.default,{entry:t})):l.default.createElement(u.Loading,null)};c.propTypes={entry:d.default.object};var o=c;t.default=o},673:function(e,t,a){"use strict";var n=a(5);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var l=n(a(0)),d=n(a(12)),r=n(a(674)),i=n(a(675)),u=function(e){var t=e.className,a=e.entry;return a?l.default.createElement(r.default,{className:t},l.default.createElement("div",{className:"container"},a.image&&l.default.createElement("img",{src:a.image.asset.sys.uri,alt:a.image.altText}),l.default.createElement("div",{className:"eventContent"},l.default.createElement("h1",{className:"pageTitle"},a.entryTitle),a.content&&l.default.createElement(i.default,{composer:a.content})))):null};u.propTypes={className:d.default.string,entry:d.default.object};var c=u;t.default=c},674:function(e,t,a){"use strict";var n=a(111);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var l=n(a(45)),d=l.default.div.withConfig({displayName:"ExampleRecordstyled__ExampleRecordStyled",componentId:"sc-92uaky-0"})(["",";"],(function(){return(0,l.css)(["display:flex;flex-wrap:wrap;flex-direction:column;justify-content:space-between;max-width:1100px;width:100%;margin:auto;@media only screen and (min-width:768px){flex-direction:row;}article{max-width:750px;width:100%;padding:20px;@media only screen and (min-width:1100px){padding:0;}img{width:100%;height:auto;}}aside{width:100%;@media only screen and (min-width:1100px){max-width:250px;}}"])}));t.default=d},675:function(e,t,a){"use strict";var n=a(5);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var l=n(a(0)),d=n(a(12)),r=n(a(676)),i=function(e){var t=e.className,a=e.composer;return a?l.default.createElement(r.default,{className:t},a.map((function(e,t){switch(e.type){case"contentImage":return l.default.createElement("figure",{className:"compField contentImage",key:t},l.default.createElement("img",{src:e.value.asset.sys.uri,alt:e.value.altText}),e.value.caption&&l.default.createElement("figcaption",null,e.value.caption));case"textBlock":return l.default.createElement("div",{key:t,className:"compField",dangerouslySetInnerHTML:{__html:e.value}})}}))):null};i.propTypes={className:d.default.string,composer:d.default.array};var u=i;t.default=u},676:function(e,t,a){"use strict";var n=a(111);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var l=n(a(45)),d=l.default.div.withConfig({displayName:"Composerstyled__ContentComposerStyled",componentId:"sc-1shvuor-0"})(["",""],(function(){return(0,l.css)([".compField{margin-bottom:40px;}.contentImage{margin:0;padding:0;width:100%;}"])}));t.default=d}}]);
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[6],{273:function(e,t,a){"use strict";var n=a(5);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(a(0)),i=n(a(12)),l=n(a(175)),u=n(a(677)),s=function(){return r.default.createElement(l.default,null,r.default.createElement("h1",{className:"pageTitle"},"Example listing page"),r.default.createElement(u.default,null))};s.propTypes={entry:i.default.object};var c=s;t.default=c},677:function(e,t,a){"use strict";var n=a(111),r=a(5);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(a(113)),l=r(a(56)),u=r(a(68)),s=n(a(0)),c=r(a(12)),d=a(37),o=a(87),f=a(69),p=a(271),m=r(a(678)),h=r(a(679)),g=function(){var e=(0,u.default)(l.default.mark((function e(t){var a,n;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=function(){var e=(0,u.default)(l.default.mark((function e(t){var a;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,(a=new f.Query(f.Op.equalTo("sys.contentTypeId","exampleCT"),f.Op.equalTo("sys.versionStatus",t))).pageSize=3,a.fields=["title","summary","image","sys"],e.next=6,p.cachedSearch.search(a,1);case 6:return e.abrupt("return",e.sent);case 9:throw e.prev=9,e.t0=e.catch(0),new Error(e.t0);case 12:case"end":return e.stop()}}),e,null,[[0,9]])})));return function(t){return e.apply(this,arguments)}}(),e.next=3,a(t);case 3:return n=e.sent,e.abrupt("return",n);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),v=function(e){var t=e.className,a=(0,s.useState)(),n=(0,i.default)(a,2),r=n[0],l=n[1],u=(0,d.useSelector)(o.selectVersionStatus);(0,s.useEffect)((function(){g(u).then((function(e){l(e.items)}))}),[u]);var c=null;if(r&&r.totalCount>1){var f=r.pageIndex*r.pageSize+1,p=r.pageSize;p>r.totalCount&&(p=r.totalCount),c="Displaying ".concat(f,"-").concat(p," of ").concat(r.totalCount," results")}return s.default.createElement(m.default,{className:t},c&&s.default.createElement("div",{className:"resultsInfo",dangerouslySetInnerHTML:{__html:c}}),r&&r.map((function(e,t){return s.default.createElement(h.default,{title:e.title,description:e.summary,image:e.image,uri:e.sys&&e.sys.uri,key:t})})),!r||r.length<1&&s.default.createElement("p",null,"No results found."))};v.propTypes={className:c.default.string};var y=v;t.default=y},678:function(e,t,a){"use strict";var n=a(111);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(a(45)),i=r.default.div.withConfig({displayName:"ExampleListingstyled__ExampleListingStyled",componentId:"sc-1m8amyx-0"})(["",";"],(function(){return(0,r.css)(["display:flex;flex-wrap:wrap;width:100%;max-width:1200px;margin:30px auto;a{text-decoration:none;width:100%;margin:20px;@media only screen and (min-width:550px){margin:0;margin-right:28px;width:calc(50% - 15px);&:nth-child(2n){margin-right:0;}}@media only screen and (min-width:1100px){margin:0;margin-right:28px;width:calc(33% - 15px);&:nth-child(2n){margin-right:28px;}&:nth-child(3n){margin-right:0;}}p{text-decoration:none;}}"])}));t.default=i},679:function(e,t,a){"use strict";var n=a(5);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(a(0)),i=n(a(12)),l=a(47),u=n(a(680)),s=function(e){var t=e.title,a=e.description,n=e.image,i=e.uri,s=e.className;return r.default.createElement(l.Link,{to:i},r.default.createElement(u.default,{className:s},n&&r.default.createElement("img",{src:"".concat(n.asset.sys.uri,"?width=500&height=300&fit=crop"),alt:n.asset.altText}),r.default.createElement("h3",null,t),a&&r.default.createElement("p",null,a)))};s.propTypes={className:i.default.string,title:i.default.string,description:i.default.string,image:i.default.object,uri:i.default.string};var c=s;t.default=c},680:function(e,t,a){"use strict";var n=a(111);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(a(45)),i=r.default.article.withConfig({displayName:"ExampleCardstyled__ExampleCardStyled",componentId:"sc-2wwydd-0"})(["",";"],(function(){return(0,r.css)(["display:block;width:100%;max-width:550px;margin-bottom:80px;&:hover{cursor:pointer;}h3{margin:10px 0;font-size:24px;font-weight:700;line-height:1.3;}p{margin:0;margin-bottom:30px;font-size:16px;line-height:1.7;}img{width:100%;height:auto;}"])}));t.default=i}}]);
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
!function(e){function r(r){for(var n,u,i=r[0],c=r[1],f=r[2],s=0,p=[];s<i.length;s++)u=i[s],o[u]&&p.push(o[u][0]),o[u]=0;for(n in c)Object.prototype.hasOwnProperty.call(c,n)&&(e[n]=c[n]);for(l&&l(r);p.length;)p.shift()();return a.push.apply(a,f||[]),t()}function t(){for(var e,r=0;r<a.length;r++){for(var t=a[r],n=!0,i=1;i<t.length;i++){var c=t[i];0!==o[c]&&(n=!1)}n&&(a.splice(r--,1),e=u(u.s=t[0]))}return e}var n={},o={1:0},a=[];function u(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,u),t.l=!0,t.exports}u.e=function(e){var r=[],t=o[e];if(0!==t)if(t)r.push(t[2]);else{var n=new Promise((function(r,n){t=o[e]=[r,n]}));r.push(t[2]=n);var a,i=document.createElement("script");i.charset="utf-8",i.timeout=120,u.nc&&i.setAttribute("nonce",u.nc),i.src=function(e){return u.p+"static/legacy/js/"+({3:"zeninfo"}[e]||e)+"."+{3:"f5cfb57df051e4fe271c",4:"a8436be4a898bfb8a9e4",5:"b8a808c6d60723e892fb",6:"c0de641097d439d2c224",7:"a3d25aadd80a24a51b07"}[e]+".js"}(e);var c=new Error;a=function(r){i.onerror=i.onload=null,clearTimeout(f);var t=o[e];if(0!==t){if(t){var n=r&&("load"===r.type?"missing":r.type),a=r&&r.target&&r.target.src;c.message="Loading chunk "+e+" failed.\n("+n+": "+a+")",c.type=n,c.request=a,t[1](c)}o[e]=void 0}};var f=setTimeout((function(){a({type:"timeout",target:i})}),12e4);i.onerror=i.onload=a,document.head.appendChild(i)}return Promise.all(r)},u.m=e,u.c=n,u.d=function(e,r,t){u.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},u.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},u.t=function(e,r){if(1&r&&(e=u(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(u.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)u.d(t,n,function(r){return e[r]}.bind(null,n));return t},u.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return u.d(r,"a",r),r},u.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},u.p="/",u.oe=function(e){throw console.error(e),e};var i=window.webpackJsonp=window.webpackJsonp||[],c=i.push.bind(i);i.push=r,i=i.slice();for(var f=0;f<i.length;f++)r(i[f]);var l=c;t()}([]);
\ No newline at end of file
This diff is collapsed.
(window.webpackJsonp=window.webpackJsonp||[]).push([[3],{274:function(e,t,r){"use strict";var l=r(5);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=l(r(681)).default;t.default=n},681:function(e,t,r){"use strict";(function(e){var l=r(5);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=l(r(36)),a=l(r(113)),o=l(r(0)),s=l(r(12)),u=r(57),i=r(37),d=l(r(682)),c=r(688),p=l(r(270)),f=function(e){var t=e.deliveryApi,r=e.disabeSsrRedux,l=e.nodeEnv,s=e.servers,u=e.packagejson,i=e.project,d=e.projects,f=e.proxyDeliveryApi,m=e.publicUri,b=e.reverseProxyPaths,g=e.version;return o.default.createElement(o.default.Fragment,null,o.default.createElement(c.VersionInfoStyledTable,null,o.default.createElement("thead",null,o.default.createElement("tr",null,o.default.createElement("td",{colSpan:2},o.default.createElement("h1",null,o.default.createElement(p.default,{path:"/"},"Version Information"))))),o.default.createElement("tbody",null,o.default.createElement("tr",null,o.default.createElement("th",{colSpan:2},"Package detail")),o.default.createElement("tr",null,o.default.createElement("td",{className:"left"},"Name"),o.default.createElement("td",null,u.name)),o.default.createElement("tr",null,o.default.createElement("td",{className:"left"},"Version"),o.default.createElement("td",null,u.version)),o.default.createElement("tr",null,o.default.createElement("th",{colSpan:2},"Version info (state)")),o.default.createElement("tr",null,o.default.createElement("td",null,"Git repo url: "),o.default.createElement("td",null,o.default.createElement("a",{href:u.repository,target:"_blank",rel:"noopener noreferrer"},u.repository))),o.default.createElement("tr",null,o.default.createElement("td",null,"Pipeline: "),o.default.createElement("td",null,o.default.createElement("a",{href:"".concat(u.repository,"/pipelines/").concat(g.buildNumber?g.buildNumber:""),target:"_blank",rel:"noopener noreferrer"},g.buildNumber))),o.default.createElement("tr",null,o.default.createElement("td",null,"Commit: "),o.default.createElement("td",null,o.default.createElement("a",{href:"".concat(u.repository,"/commit/").concat(g.commitRef?g.commitRef:""),target:"_blank",rel:"noopener noreferrer"},g.commitRef))),o.default.createElement("tr",null,o.default.createElement("td",null,"Project"),o.default.createElement("td",{className:"unknown"==i?"red":""},i)),o.default.createElement("tr",null,o.default.createElement("td",null,"Contensis version status: "),o.default.createElement("td",{className:"published"==g.contensisVersionStatus?"green":"red"},g.contensisVersionStatus)),o.default.createElement("tr",null,o.default.createElement("th",{colSpan:2},"Build configuration")),o.default.createElement("tr",null,o.default.createElement("td",null,"Environment"),o.default.createElement("td",null,s.alias)),o.default.createElement("tr",null,o.default.createElement("td",null,"Public uri"),o.default.createElement("td",null,m)),o.default.createElement("tr",null,o.default.createElement("td",null,"Servers"),o.default.createElement("td",{className:"small"},o.default.createElement("div",null,"web: ",s.web),o.default.createElement("div",null,"cms: ",s.cms),o.default.createElement("div",null,"iis: ",s.iis),o.default.createElement("div",null,"internal vip: ",s.internalVip))),o.default.createElement("tr",null,o.default.createElement("td",null,"Reverse proxy paths"),o.default.createElement("td",null,Object.entries(b).map((function(e,t){var r=(0,a.default)(e,2)[1];return o.default.createElement("span",{key:t},"[ ",r," ] ")})))),o.default.createElement("tr",null,o.default.createElement("td",null,"Projects"),o.default.createElement("td",null,Object.entries(d).map((function(e,t){var r=(0,a.default)(e,2)[1];return o.default.createElement("div",{key:t},"[ ",r.id,": ",r.publicUri," ]")})))),o.default.createElement("tr",null,o.default.createElement("td",null,"Delivery API"),o.default.createElement("td",{className:"small"},o.default.createElement("ul",{style:{margin:0,padding:0}},Object.entries(t).map((function(e,t){var r=(0,a.default)(e,2),l=r[0],s=r[1];return"object"===(0,n.default)(s)?null:o.default.createElement("li",{key:t,style:{listStyleType:"none"}},l,": ",o.default.createElement("span",null,s))}))))),o.default.createElement("tr",null,o.default.createElement("td",null,"Proxy Delivery API requests"),o.default.createElement("td",{className:f?"green":"red"},f.toString())),o.default.createElement("tr",null,o.default.createElement("td",null,"Disable SSR inline-redux"),o.default.createElement("td",null,r.toString())),o.default.createElement("tr",null,o.default.createElement("td",null,"NODE_ENV"),o.default.createElement("td",{className:"production"===l?"green":"red"},l.toString())))))};f.propTypes={deliveryApi:s.default.object,disabeSsrRedux:s.default.bool,nodeEnv:s.default.string,packagejson:s.default.object,project:s.default.string,projects:s.default.oneOfType([s.default.object,s.default.array]),proxyDeliveryApi:s.default.bool,publicUri:s.default.string,reverseProxyPaths:s.default.object,servers:s.default.object,version:s.default.object};var m=(0,u.hot)(e)((0,i.connect)(d.default)(f));t.default=m}).call(this,r(86)(e))},682:function(e,t,r){"use strict";var l=r(5);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=l(r(683)),a=l(r(687)),o=r(87),s={deliveryApi:function(){return JSON.parse(JSON.stringify(DELIVERY_API_CONFIG))},disabeSsrRedux:function(){return!1},nodeEnv:function(){return"production"},packagejson:function(){return a.default},projects:function(){return PROJECTS},proxyDeliveryApi:function(){return!0},publicUri:function(){return PUBLIC_URI},project:function(e){return(0,o.selectCurrentProject)(e)},reverseProxyPaths:function(){return Object({0:"/image-library/*",1:"/video-library/*",2:"/asset-library/*"})},servers:function(){return SERVERS},version:{buildNumber:function(e){return(0,o.selectBuildNumber)(e)},commitRef:function(e){return(0,o.selectCommitRef)(e)},contensisVersionStatus:function(e){return(0,o.selectVersionStatus)(e)}}},u=function(e){var t=(0,n.default)(e,s);return console.log(t),t};t.default=u},683:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"mapComposer",{enumerable:!0,get:function(){return l.mapComposer}}),Object.defineProperty(t,"mapEntries",{enumerable:!0,get:function(){return l.mapEntries}}),Object.defineProperty(t,"useMapper",{enumerable:!0,get:function(){return l.useMapper}}),Object.defineProperty(t,"useComposerMapper",{enumerable:!0,get:function(){return l.useComposerMapper}}),Object.defineProperty(t,"useEntriesMapper",{enumerable:!0,get:function(){return l.useEntriesMapper}}),t.default=void 0;var l=r(684),n=l.mapJson;t.default=n},687:function(e){e.exports={name:"zen-base",version:"0.0.1",repository:"https://gitlab.zengenti.com/ps-projects/zengenti-base/zen-base",license:"None",description:"",main:"index.js",config:{startup:""},scripts:{start:"cross-env NODE_ENV=development webpack-dev-server --config webpack/webpack.config.dev.js",build:"rimraf ./dist && cross-env NODE_ENV=production parallel-webpack --config webpack/webpack.config.prod.js && npm run build:startup","build:startup":"node node_modules/zengenti-buildstartup-package",server:"node --max-http-header-size=800000 dist/start.js","dev:server":"cross-env NODE_ENV=test NODE_OPTIONS=--max-http-header-size=80000 babel-node --inspect=9229 src/server/debug.js","debug:server":"nodemon --exec cross-env NODE_ENV=test NODE_OPTIONS=--max-http-header-size=80000 babel-node --inspect=9229 src/server/debug.js","build:server":"npm run build && npm run server","build:dev:server":"npm run build && npm run dev:server",postinstall:"patch-package",lint:"eslint .","lint:fix":"eslint --fix .","test:generate-output":"jest --json --outputFile=.jest-test-results.json || true",test:"jest -c ./config/jest.config.js --detectOpenHandles --forceExit","test:watch":"jest --config=./config/jest.config.js --watch","test:coverage":"jest --config=./config/jest.config.js --coverage","prebuild:storybook":"npm run test:generate-output",storybook:"start-storybook -s ./public -p 6006","storybook-ci":"start-storybook --ci -p 6006","storybook-static":"build-storybook -c .storybook -o .out","build-storybook":"build-storybook"},keywords:[],author:"http://Zengenti.com",devDependencies:{"@babel/cli":"7.4.4","@babel/core":"7.4.5","@babel/node":"^7.4.5","@babel/plugin-proposal-class-properties":"7.4.4","@babel/plugin-proposal-export-default-from":"^7.2.0","@babel/plugin-syntax-dynamic-import":"7.2.0","@babel/plugin-transform-classes":"^7.5.5","@babel/plugin-transform-regenerator":"^7.4.5","@babel/plugin-transform-runtime":"^7.6.2","@babel/preset-env":"7.4.5","@babel/preset-react":"7.0.0","@dump247/storybook-state":"^1.6.1","@storybook/addon-a11y":"^5.2.3","@storybook/addon-actions":"^5.2.3","@storybook/addon-jest":"^5.2.3","@storybook/addon-knobs":"^5.2.3","@storybook/addon-options":"^5.2.3","@storybook/addon-viewport":"^5.2.3","@storybook/addons":"^5.2.3","@storybook/react":"^5.2.3","@testing-library/jest-dom":"^4.1.0","@testing-library/react":"^9.1.4","babel-eslint":"^10.0.3","babel-loader":"8.0.6","babel-plugin-dynamic-import-node":"2.2.0","babel-plugin-module-resolver":"^3.2.0","babel-plugin-prismjs":"^1.0.2","babel-plugin-styled-components":"1.10.0","babel-plugin-transform-define":"^1.3.1","browser-sync":"^2.26.7","browser-sync-webpack-plugin":"2.2.2",chai:"^4.2.0","chai-http":"^4.2.1","copy-webpack-plugin":"5.0.3","core-js":"^3.1.3","cross-env":"5.2.0","css-loader":"^3.0.0",eslint:"^6.5.1","eslint-config-prettier":"^6.4.0","eslint-import-resolver-webpack":"^0.11.1","eslint-loader":"^3.0.2","eslint-plugin-flowtype":"3.10.1","eslint-plugin-import":"^2.18.2","eslint-plugin-jsx-a11y":"^6.2.3","eslint-plugin-prettier":"^3.1.1","eslint-plugin-react":"^7.16.0","eslint-plugin-react-hooks":"^2.5.0","friendly-errors-webpack-plugin":"1.7.0","html-webpack-plugin":"3.2.0","image-webpack-loader":"^5.0.0","imagemin-webpack-plugin":"^2.4.2",jest:"^24.9.0",mocha:"^8.0.1",nodemon:"^1.19.1","parallel-webpack":"^2.4.0",prettier:"1.18.2","storybook-addon-styled-component-theme":"^1.2.4","storybook-react-router":"^1.0.7",stylelint:"^11.0.0","stylelint-config-recommended":"^3.0.0","stylelint-config-styled-components":"^0.1.1","stylelint-custom-processor-loader":"0.6.0","stylelint-processor-styled-components":"1.8.0",webpack:"4.33.0","webpack-cli":"3.3.4","webpack-dev-server":"^3.7.1","webpack-merge":"4.2.1","webpack-module-nomodule-plugin":"^0.3.1","webpack-modules":"^1.0.0","webpack-node-externals":"1.7.2","webpack-visualizer-plugin":"^0.1.11","zengenti-buildstartup-package":"0.0.9"},dependencies:{"@zengenti/contensis-react-base":"^1.0.0-beta.8","custom-env":"^1.0.2",dateformat:"^3.0.3","file-loader":"^4.0.0",leaflet:"^1.5.1",loglevel:"^1.6.3","minify-css-string":"1.0.0","patch-package":"^6.2.0",react:"16.11.0","react-dom":"16.11.0","react-leaflet":"^2.4.0",sitemap:"^6.1.0","url-loader":"^2.0.0"}}},688:function(e,t,r){"use strict";var l=r(5);Object.defineProperty(t,"__esModule",{value:!0}),t.VersionInfoStyledTable=void 0;var n=l(r(45)).default.table.withConfig({displayName:"VersionInfostyled__VersionInfoStyledTable",componentId:"e1ch6z-0"})(["font-family:'Fira Sans','Source Sans Pro',Helvetica,Arial,sans-serif;font-size:1rem;line-height:1.5rem;border-bottom:4px solid #8892bf;border-collapse:separate;margin:0 auto;width:80%;th{text-align:left;background-color:#c4c9df;border-bottom:#8892bf 2px solid;border-bottom-color:#8892bf;border-top:20px solid #fff;}td{border-bottom:1px solid #eee;}td,th{padding:0.5rem 0.75rem;vertical-align:top;}.left{width:25%;}tr th{border-right:hidden;border-spacing:0 15px;}.green{background-color:#9c9;border-bottom:1px solid #696;}.red{background-color:#c99;border-bottom:1px solid #966;}.small{font-size:80%;}"]);t.VersionInfoStyledTable=n}}]);
\ No newline at end of file
This diff is collapsed.
(window.webpackJsonp=window.webpackJsonp||[]).push([[5],{295:function(e,a,t){"use strict";t.r(a);var n=t(0),c=t.n(n),l=t(5),i=t.n(l),s=t(97),r=t(25);var m=r.c.div.withConfig({displayName:"ExampleRecordstyled__ExampleRecordStyled",componentId:"sc-92uaky-0"})(["",";"],()=>Object(r.b)(["display:flex;flex-wrap:wrap;flex-direction:column;justify-content:space-between;max-width:1100px;width:100%;margin:auto;@media only screen and (min-width:768px){flex-direction:row;}article{max-width:750px;width:100%;padding:20px;@media only screen and (min-width:1100px){padding:0;}img{width:100%;height:auto;}}aside{width:100%;@media only screen and (min-width:1100px){max-width:250px;}}"]));var o=r.c.div.withConfig({displayName:"Composerstyled__ContentComposerStyled",componentId:"sc-1shvuor-0"})(["",""],()=>Object(r.b)([".compField{margin-bottom:40px;}.contentImage{margin:0;padding:0;width:100%;}"]));const d=({className:e,composer:a})=>a?c.a.createElement(o,{className:e},a.map((e,a)=>{switch(e.type){case"contentImage":return c.a.createElement("figure",{className:"compField contentImage",key:a},c.a.createElement("img",{src:e.value.asset.sys.uri,alt:e.value.altText}),e.value.caption&&c.a.createElement("figcaption",null,e.value.caption));case"textBlock":return c.a.createElement("div",{key:a,className:"compField",dangerouslySetInnerHTML:{__html:e.value}})}})):null;d.propTypes={className:i.a.string,composer:i.a.array};var p=d;const y=({className:e,entry:a})=>a?c.a.createElement(m,{className:e},c.a.createElement("div",{className:"container"},a.image&&c.a.createElement("img",{src:a.image.asset.sys.uri,alt:a.image.altText}),c.a.createElement("div",{className:"eventContent"},c.a.createElement("h1",{className:"pageTitle"},a.entryTitle),a.content&&c.a.createElement(p,{composer:a.content})))):null;y.propTypes={className:i.a.string,entry:i.a.object};var u=y,g=t(35);const w=({entry:e})=>e?c.a.createElement(s.a,null,c.a.createElement(u,{entry:e})):c.a.createElement(g.a,null);w.propTypes={entry:i.a.object};a.default=w}}]);
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[6],{296:function(e,t,a){"use strict";a.r(t);var n=a(0),i=a.n(n),r=a(5),s=a.n(r),l=a(97),c=a(41),m=a(34),o=a(8),p=a(91),g=a(25);var d=g.c.div.withConfig({displayName:"ExampleListingstyled__ExampleListingStyled",componentId:"sc-1m8amyx-0"})(["",";"],()=>Object(g.b)(["display:flex;flex-wrap:wrap;width:100%;max-width:1200px;margin:30px auto;a{text-decoration:none;width:100%;margin:20px;@media only screen and (min-width:550px){margin:0;margin-right:28px;width:calc(50% - 15px);&:nth-child(2n){margin-right:0;}}@media only screen and (min-width:1100px){margin:0;margin-right:28px;width:calc(33% - 15px);&:nth-child(2n){margin-right:28px;}&:nth-child(3n){margin-right:0;}}p{text-decoration:none;}}"])),h=a(47);var u=g.c.article.withConfig({displayName:"ExampleCardstyled__ExampleCardStyled",componentId:"sc-2wwydd-0"})(["",";"],()=>Object(g.b)(["display:block;width:100%;max-width:550px;margin-bottom:80px;&:hover{cursor:pointer;}h3{margin:10px 0;font-size:24px;font-weight:700;line-height:1.3;}p{margin:0;margin-bottom:30px;font-size:16px;line-height:1.7;}img{width:100%;height:auto;}"]));const y=({title:e,description:t,image:a,uri:n,className:r})=>i.a.createElement(h.Link,{to:n},i.a.createElement(u,{className:r},a&&i.a.createElement("img",{src:`${a.asset.sys.uri}?width=500&height=300&fit=crop`,alt:a.asset.altText}),i.a.createElement("h3",null,e),t&&i.a.createElement("p",null,t)));y.propTypes={className:s.a.string,title:s.a.string,description:s.a.string,image:s.a.object,uri:s.a.string};var x=y;const w=({className:e})=>{const[t,a]=Object(n.useState)(),r=Object(c.useSelector)(m.f);Object(n.useEffect)(()=>{(async e=>{return await(async e=>{try{let t=new o.Query(o.Op.equalTo("sys.contentTypeId","exampleCT"),o.Op.equalTo("sys.versionStatus",e));return t.pageSize=3,t.fields=["title","summary","image","sys"],await p.cachedSearch.search(t,1)}catch(e){throw new Error(e)}})(e)})(r).then(e=>{a(e.items)})},[r]);let s=null;if(t&&t.totalCount>1){const e=t.pageIndex*t.pageSize+1;let a=t.pageSize;a>t.totalCount&&(a=t.totalCount),s=`Displaying ${e}-${a} of ${t.totalCount} results`}return i.a.createElement(d,{className:e},s&&i.a.createElement("div",{className:"resultsInfo",dangerouslySetInnerHTML:{__html:s}}),t&&t.map((e,t)=>i.a.createElement(x,{title:e.title,description:e.summary,image:e.image,uri:e.sys&&e.sys.uri,key:t})),!t||t.length<1&&i.a.createElement("p",null,"No results found."))};w.propTypes={className:s.a.string};var E=w;const f=()=>i.a.createElement(l.a,null,i.a.createElement("h1",{className:"pageTitle"},"Example listing page"),i.a.createElement(E,null));f.propTypes={entry:s.a.object};t.default=f}}]);
\ No newline at end of file
This diff is collapsed.
!function(e){function r(r){for(var n,i,a=r[0],c=r[1],f=r[2],s=0,p=[];s<a.length;s++)i=a[s],o[i]&&p.push(o[i][0]),o[i]=0;for(n in c)Object.prototype.hasOwnProperty.call(c,n)&&(e[n]=c[n]);for(l&&l(r);p.length;)p.shift()();return u.push.apply(u,f||[]),t()}function t(){for(var e,r=0;r<u.length;r++){for(var t=u[r],n=!0,a=1;a<t.length;a++){var c=t[a];0!==o[c]&&(n=!1)}n&&(u.splice(r--,1),e=i(i.s=t[0]))}return e}var n={},o={1:0},u=[];function i(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,i),t.l=!0,t.exports}i.e=function(e){var r=[],t=o[e];if(0!==t)if(t)r.push(t[2]);else{var n=new Promise((function(r,n){t=o[e]=[r,n]}));r.push(t[2]=n);var u,a=document.createElement("script");a.charset="utf-8",a.timeout=120,i.nc&&a.setAttribute("nonce",i.nc),a.src=function(e){return i.p+"static/modern/js/"+({3:"zeninfo"}[e]||e)+"."+{3:"8830b4c7f613a55530f8",4:"050e7a335dce9855eb79",5:"2e35a59b73b2670b9e58",6:"f8885645f2fac9742522"}[e]+".mjs"}(e);var c=new Error;u=function(r){a.onerror=a.onload=null,clearTimeout(f);var t=o[e];if(0!==t){if(t){var n=r&&("load"===r.type?"missing":r.type),u=r&&r.target&&r.target.src;c.message="Loading chunk "+e+" failed.\n("+n+": "+u+")",c.type=n,c.request=u,t[1](c)}o[e]=void 0}};var f=setTimeout((function(){u({type:"timeout",target:a})}),12e4);a.onerror=a.onload=u,document.head.appendChild(a)}return Promise.all(r)},i.m=e,i.c=n,i.d=function(e,r,t){i.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,r){if(1&r&&(e=i(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(i.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)i.d(t,n,function(r){return e[r]}.bind(null,n));return t},i.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(r,"a",r),r},i.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},i.p="/",i.oe=function(e){throw console.error(e),e};var a=window.webpackJsonp=window.webpackJsonp||[],c=a.push.bind(a);a.push=r,a=a.slice();for(var f=0;f<a.length;f++)r(a[f]);var l=c;t()}([]);
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
......@@ -3,8 +3,8 @@
var context = typeof window != 'undefined' ? window : global;
function url() {
var alias = "zenhub";
var project = "zengenti";
var alias = "workshops-cte-master";
var project = "website";
var projectAndAlias =
project && project != 'website' ? project + '-' + alias : alias;
return Object({
......@@ -15,11 +15,11 @@ function url() {
});
}
context.PUBLIC_URI = "https://live-zengenti-zenhub.cloud.contensis.com/";
context.PUBLIC_URI = "https://live-workshops-cte-master.cloud.contensis.com";
context.SERVERS = Object({
alias: "zenhub",
internalVip: "10.128.46.132",
alias: "workshops-cte-master",
internalVip: "10.128.21.82",
cms: url().cms,
web: url().liveWeb,
iis: url().iisWeb,
......@@ -27,18 +27,18 @@ context.SERVERS = Object({
context.DELIVERY_API_CONFIG = Object({
rootUrl: url().cms,
accessToken: "sNF3SnNWu6RMAtpzybcOqkHKUlMnEUwrNre0OlD9G8UERroN",
projectId: "zengenti",
accessToken: "AfTWtGox8aKdgO85rXXSJrWUXa97BA1aXP4fwaIrliDSvWNz",
projectId: "website",
livePublishingRootUrl: url().previewWeb,
});
context.PROJECTS = Object([{"id":"zengenti","publicUri":"https://live-zengenti-zenhub.cloud.contensis.com/"}]);
context.PROJECTS = Object([{"id":"website","publicUri":"https://live-workshops-cte-master.cloud.contensis.com"}]);
context.ALIAS = "zenhub";
context.INTERNAL_VIP = "10.128.46.132";
context.ACCESS_TOKEN = "sNF3SnNWu6RMAtpzybcOqkHKUlMnEUwrNre0OlD9G8UERroN";
context.PUBLIC_URL = "https://live-zengenti-zenhub.cloud.contensis.com/";
context.PROJECT = "zengenti";
context.ALIAS = "workshops-cte-master";
context.INTERNAL_VIP = "10.128.21.82";
context.ACCESS_TOKEN = "AfTWtGox8aKdgO85rXXSJrWUXa97BA1aXP4fwaIrliDSvWNz";
context.PUBLIC_URL = "https://live-workshops-cte-master.cloud.contensis.com";
context.PROJECT = "website";
context.CONTENSIS_VERSION = "14";
if (typeof window == 'undefined') {
......
This diff is collapsed.
This diff is collapsed.
......@@ -21,4 +21,24 @@ export default [
loading: Loading,
}),
},
{
contentTypeID: 'thEvent',
component: Loadable({
loader: () => {
return import('~/pages/Events/EventPage');
//return import('~/features/contactDetails/ContactDetails');
},
loading: Loading,
}),
},
{
contentTypeID: 'genericPage',
component: Loadable({
loader: () => {
return import('~/pages/Generic/Generic');
//return import('~/features/contactDetails/ContactDetails');
},
loading: Loading,
}),
},
];
......@@ -17,6 +17,14 @@ export default [
loading: Loading,
}),
},
{
path: '/events-listing',
exact: true,
component: Loadable({
loader: () => import('~/pages/Listings/EventsListing.page'),
loading: Loading,
}),
},
// ********************************
// ˅˅ Do not delete these routes ˅˅
{
......
......@@ -28,6 +28,7 @@ const fetchEntries = async versionStatus => {
throw new Error(error);
}
};
const entries = await triggerSearch(versionStatus);
return entries;
};
......
......@@ -2,6 +2,7 @@ import React from 'react';
import PropTypes from 'prop-types';
import ContentComposerStyled from '../components.styled/Composer.styled';
import ContactDetails from '~/features/contactDetails/ContactDetails';
const ContentComposer = ({ className, composer }) => {
if (!composer) return null;
......@@ -21,6 +22,18 @@ const ContentComposer = ({ className, composer }) => {
)}
</figure>
);
case 'imageBlock':
return (
<figure className="compField contentImage" key={idx}>
<img
src={field.value.asset.sys.uri}
alt={field.value.altText}
/>
{field.value.caption && (
<figcaption>{field.value.caption}</figcaption>
)}
</figure>
);
case 'contentBlock':
return (
<div
......@@ -29,6 +42,8 @@ const ContentComposer = ({ className, composer }) => {
dangerouslySetInnerHTML={{ __html: field.value }}
/>
);
case 'contactDetailsComposer':
return <ContactDetails name={field.value.name} />;
default:
break;
}
......
import React from 'react';
import PropTypes from 'prop-types';
import ContactDetailsStyled from './ContactDetails.styled';
const ContactDetails = ({ name, phone, email, website, entry }) => {
return (
<ContactDetailsStyled>
{/* render name */}
{name && (
<p>
<span className="label">Name: </span>
{name}
</p>
)}
{/* render phone */}
{phone && (
<p>
<span className="label">Phone: </span>
{phone}
</p>
)}
{email && (
<p>
<span className="label">Email: </span>
{email}
</p>
)}
{website && (
<p>
<span className="label">Website address: </span>
{website}
</p>
)}
{entry && (
<p>
<span className="label">Entry: </span>
{entry.entryTitle}
</p>
)}
</ContactDetailsStyled>
);
};
ContactDetails.propTypes = {
name: PropTypes.string,
phone: PropTypes.string,
email: PropTypes.string,
website: PropTypes.string,
entry: PropTypes.object,
};
export default ContactDetails;
import styled, { css } from 'styled-components';
const ContactDetailsStyled = styled.div`
${() => {
return css`
.label {
font-weight: bold;
color: #ff0000;
}
`;
}};