Add setting.json about skinnable #3241

This commit is contained in:
Fuhui Peng (c) 2017-11-16 14:55:44 +08:00
parent f03a1b0f3e
commit 2ff41664b2
3 changed files with 24 additions and 3 deletions

View File

@ -1,6 +1,6 @@
<div class="login-wrapper login-wrapper-override" [ngStyle]="{'background-image': 'url(' + customLoginBgImg + ')'}">
<form #signInForm="ngForm" class="login">
<label class="title">{{appTitle | translate}}<span class="trademark tm-font">&#8482;</span>
<label class="title"> {{customAppTitle? customAppTitle:(appTitle | translate)}}<span class="trademark tm-font">&#8482;</span>
</label>
<div class="login-group">
<label for="username" aria-haspopup="true" role="tooltip" class="tooltip tooltip-validation tooltip-md tooltip-top-left">

View File

@ -51,6 +51,7 @@ export class SignInComponent implements AfterViewChecked, OnInit {
rememberedName: string = "";
customLoginBgImg: string;
customAppTitle: string;
//Form reference
signInForm: NgForm;
@ViewChild('signInForm') currentForm: NgForm;
@ -77,8 +78,13 @@ export class SignInComponent implements AfterViewChecked, OnInit {
ngOnInit(): void {
// custom skin
let customSkinObj = this.skinableConfig.getSkinConfig();
if (customSkinObj && customSkinObj.loginBgImg) {
this.customLoginBgImg = customSkinObj.loginBgImg;
if (customSkinObj) {
if (customSkinObj.loginBgImg) {
this.customLoginBgImg = customSkinObj.loginBgImg;
}
if (customSkinObj.appTitle) {
this.customAppTitle = customSkinObj.appTitle;
}
}
//Make sure the updated configuration can be loaded

View File

@ -0,0 +1,15 @@
{
"headerBgColor": "#004a70",
"headerLogo": "",
"loginBgImg": "",
"appTitle": "VMware Harbor",
"projects": {
"companyName": "vmware",
"projectName": "Harbor",
"introduction": {
"zh-cn": "",
"es-es": "",
"en-us": ""
}
}
}