Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
<div>
</div>
{/* */}
<div>
</div>
{/**/}
<div>
<h6>Demo Isomorphic UI Config</h6>
<div>config.ui.demo: "{config.ui.demo}"</div>
</div>
<div>
</div>
<div>
</div>
<div>
</div>
);
}
new Promise((resolve, reject) => {
const webapp = p => (p.startsWith(".") ? path.resolve(p) : p);
uiConfig.ui = {
demo: config.ui.demo
};
const registerRoutes = xrequire(webapp(config.webapp.module));
router.config = config;
registerRoutes(router, config.webapp.options, err => {
if (err) {
logger.error(err);
reject(err);
} else {
resolve();
}
});
});
new Promise((resolve, reject) => {
const webapp = p => (p.startsWith(".") ? path.resolve(p) : p);
uiConfig.ui = {
demo: config.ui.demo
};
const registerRoutes = xrequire(webapp(config.webapp.module));
app.config = config;
return registerRoutes(app, config.webapp.options, err => {
if (err) {
logger.error(err);
reject(err);
} else {
resolve();
}
});
});
window.hapiSampleWebappStart = () => {
uiConfig.reload(window.hapiSample_config || {});
return start(() => renderRoutes(routes));
};