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 = "brunel"; 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 = "www.brunel.ac.uk"; 31 32context.SERVERS = Object({ 33 alias: "brunel", 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: "01eHhXozXhd1D4D6I8jLVJqytHX2dxJN8KfEnl3WQOLmAixI", 46 projectId: "website", 47 livePublishingRootUrl: url().previewWeb, 48}); 49 50context.PROJECTS = Object([{"id":"website","publicUri":"www.brunel.ac.uk"}]); 51 52context.ALIAS = "brunel"; 53context.PROJECT = "website"; 54context.ACCESS_TOKEN = "01eHhXozXhd1D4D6I8jLVJqytHX2dxJN8KfEnl3WQOLmAixI"; 55context.PUBLIC_URL = "www.brunel.ac.uk"; 56 57 58if (typeof window == "undefined") { 59 // in a server context we need to set default 60 // scripts and bundles, then start the server 61 var utils = require("./startup.utils.js"); 62 utils.setDefaults(__filename, context.STATIC_PATH); 63 if (process.argv.includes("-tests")) { 64 require("../test.js"); 65 } else { 66 require("../server.js"); 67 } 68}
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.