ARTEMIS-3485 Improve branding context init
This commit is contained in:
parent
824eaf7a69
commit
902cb105cf
|
@ -82,6 +82,13 @@ svg text {
|
|||
border-top: 3px solid #B21054;
|
||||
}
|
||||
|
||||
/* Change the background image for Login page and About modal as well as text color etc*/
|
||||
.pf-c-login, .pf-c-about-modal-box__hero {
|
||||
background-image: url("../img/login-screen-background.png");
|
||||
background-size: cover;
|
||||
--pf-c-form__label--Color: white;
|
||||
}
|
||||
|
||||
.pf-c-login__main {
|
||||
grid-area: main;
|
||||
background-color: transparent;
|
||||
|
|
|
@ -19,7 +19,6 @@
|
|||
*/
|
||||
var Branding = (function (Branding) {
|
||||
|
||||
|
||||
/**
|
||||
* The name of this plugin
|
||||
*/
|
||||
|
@ -34,11 +33,9 @@ var Branding = (function (Branding) {
|
|||
* The top level path of this plugin on the server
|
||||
*/
|
||||
Branding.contextPath = '/activemq-branding';
|
||||
$.get("plugin", (data) => {
|
||||
if (data.hasOwnProperty('activemq-branding')) {
|
||||
Branding.contextPath = data['activemq-branding'].Context;
|
||||
}
|
||||
});
|
||||
if (hawtioPluginLoader.getPlugins().hasOwnProperty(Branding.pluginName)) {
|
||||
Branding.contextPath = hawtioPluginLoader.getPlugins()[Branding.pluginName]['Context'];
|
||||
}
|
||||
|
||||
/**
|
||||
* This plugin's AngularJS module instance.
|
||||
|
@ -86,18 +83,6 @@ var Branding = (function (Branding) {
|
|||
// favicon settings
|
||||
Core.applyBranding(configManager);
|
||||
|
||||
brandingStyle = `
|
||||
<style type='text/css'>
|
||||
/* Change the background image for Login page and About modal as well as text color etc */
|
||||
.pf-c-login, .pf-c-about-modal-box__hero {
|
||||
background-image: url("${Branding.contextPath}/plugin/img/login-screen-background.png");
|
||||
background-size: cover;
|
||||
--pf-c-form__label--Color: white;
|
||||
}
|
||||
</style>
|
||||
`;
|
||||
$(brandingStyle).appendTo("head");
|
||||
|
||||
Branding.log.info(Branding.pluginName, "loaded");
|
||||
}
|
||||
initPlugin.$inject = ['configManager', 'aboutService'];
|
||||
|
|
|
@ -35,7 +35,7 @@
|
|||
|
||||
<activemq.basedir>${project.basedir}/..</activemq.basedir>
|
||||
|
||||
<hawtio.version>2.13.5</hawtio.version>
|
||||
<hawtio.version>2.14.0</hawtio.version>
|
||||
<jline.version>3.2.0</jline.version>
|
||||
<junit-version>4.11</junit-version>
|
||||
<log4j-version>1.2.17</log4j-version>
|
||||
|
|
Loading…
Reference in New Issue