You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
consul/ui-v2/lib/startup/index.js

22 lines
571 B

/* eslint-env node */
'use strict';
module.exports = {
name: 'startup',
contentFor: function(type, config) {
const vars = {
appName: config.modulePrefix,
environment: config.environment,
rootURL: config.environment === 'production' ? '{{.ContentPath}}' : config.rootURL,
config: config,
};
switch (type) {
case 'head':
return require('./templates/head.html.js')(vars);
case 'body':
return require('./templates/body.html.js')(vars);
case 'root-class':
return 'ember-loading';
}
},
};