1/* eslint-disable no-undef */ 2 3var context = typeof window != "undefined" ? window : global; 4 5function noModules() { 6 var s = document.createElement("script"); 7 return ( 8 !("noModule" in s) || 9 navigator.appVersion.indexOf("Edge") !== -1 || 10 navigator.appVersion.indexOf("AppleWebKit/604") !== -1 11 ); 12} 13 14function url() { 15 var alias = "kcl"; 16 var project = "website"; 17 var projectAndAlias = 18 project && project != "website" ? project + "-" + alias : alias; 19 return Object({ 20 api: "https://api-" + alias + ".cloud.contensis.com", 21 cms: "https://cms-" + alias + ".cloud.contensis.com", 22 previewWeb: "https://preview-" + projectAndAlias + ".cloud.contensis.com", 23 liveWeb: "https://live-" + projectAndAlias + ".cloud.contensis.com", 24 iisWeb: "https://iis-live-" + projectAndAlias + ".cloud.contensis.com", 25 previewIis: 26 "https://iis-preview-" + projectAndAlias + ".cloud.contensis.com", 27 }); 28} 29 30context.PUBLIC_URI = "live-kcl.cloud.contensis.com"; 31 32context.SERVERS = Object({ 33 alias: "kcl", 34 internalVip: undefined, 35 api: url().api, 36 cms: url().cms, 37 web: url().liveWeb, 38 previewWeb: url().previewWeb, 39 iis: url().iisWeb, 40 previewIis: url().previewIis, 41}); 42 43context.DELIVERY_API_CONFIG = Object({ 44 rootUrl: url().api, 45 accessToken: "JjV9NgvYm8BQgTNx2AtThsRBeK5qZxArDnRc2SKrzYWzvsS6", 46 projectId: "website", 47 livePublishingRootUrl: url().previewWeb, 48}); 49 50context.PROJECTS = Object([{"id":"website","publicUri":"live-kcl.cloud.contensis.com"}]); 51 52context.ALIAS = "kcl"; 53context.ACCESS_TOKEN = "JjV9NgvYm8BQgTNx2AtThsRBeK5qZxArDnRc2SKrzYWzvsS6"; 54context.PUBLIC_URL = "live-kcl.cloud.contensis.com"; 55context.PROJECT = "website"; 56context.COMPONENT_MAKER_OUTPUT_DIR = "src/app/features"; 57 58 59if (typeof window == "undefined") { 60 // in a server context we need to set default 61 // scripts and bundles, then start the server 62 var utils = require("./startup.utils.js"); 63 utils.setDefaults(__filename, context.STATIC_PATH); 64 if (process.argv.includes("-tests")) { 65 require("../test.js"); 66 } else { 67 require("../server.js"); 68 } 69}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.