| Server IP : 172.67.216.113 / Your IP : 172.71.28.145 [ Web Server : Apache System : Linux cpanel01wh.bkk1.cloud.z.com 2.6.32-954.3.5.lve1.4.59.el6.x86_64 #1 SMP Thu Dec 6 05:11:00 EST 2018 x86_64 User : cp648411 ( 1354) PHP Version : 7.2.34 Disable Function : NONE Domains : 0 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /proc/2388322/task/2388322/cwd/frontend/jupiter/sharedjs/libraries/cjt2/ |
Upload File : |
/*
* cjt/bootstrap.js Copyright(c) 2020 cPanel, L.L.C.
* All rights reserved.
* [email protected] http://cpanel.net
* This code is subject to the cPanel license. Unauthorized copying is prohibited
*/
/**
* DEVELOPERS NOTES:
* This is the common bootstrap routine used by all applications.
*/
/* global define: false */
define([
"angular",
"cjt/core"
], function(
angular,
CJT
) {
"use strict";
return function(bootElement, applicationName) {
var bootEl = bootElement || "#content";
applicationName = applicationName || "App";
if (CJT.applicationName === "cpanel" && bootEl !== "#content") {
console.debug("Apps in cPanel that utilize the breadcrumbs need to bootstrap to #content to include that."); // eslint-disable-line no-console
}
if (angular.isString(bootEl)) {
var els = angular.element(bootEl);
if (els && els.length) {
bootEl = els[0];
} else {
throw "Can not start up angular application since we can not find the element: " + bootElement;
}
}
if (bootEl) {
angular.bootstrap(bootEl, [applicationName]);
} else {
throw "Can not start up angular application since the element was not passed or is undefined";
}
};
}
);