Merge remote-tracking branch 'upstream/dev' into dev-sync

This commit is contained in:
kunw 2017-04-03 18:01:33 +08:00
commit 39e64f28c9
22 changed files with 121 additions and 72 deletions

View File

@ -65,10 +65,13 @@ export class PasswordSettingComponent implements AfterViewChecked {
let cont = this.pwdForm.controls[key]; let cont = this.pwdForm.controls[key];
if (cont) { if (cont) {
this.validationStateMap[key] = cont.valid; this.validationStateMap[key] = cont.valid;
if (key === "reNewPassword" && cont.valid) { if (cont.valid) {
let compareCont = this.pwdForm.controls["newPassword"]; if (key === "reNewPassword" || key === "newPassword") {
if (compareCont) { let cpKey = key === "reNewPassword" ? "newPassword" : "reNewPassword";
this.validationStateMap[key] = cont.value === compareCont.value; let compareCont = this.pwdForm.controls[cpKey];
if (compareCont && compareCont.valid) {
this.validationStateMap["reNewPassword"] = cont.value === compareCont.value;
}
} }
} }
} }

View File

@ -74,7 +74,7 @@ export class ResetPasswordComponent implements OnInit {
} }
public close(): void { public close(): void {
//If already reset password ok, navigator to sign-in //If already reset password ok, navigator to sign-in
if (this.resetOk) { if (this.resetOk) {
this.router.navigateByUrl(CommonRoutes.EMBEDDED_SIGN_IN); this.router.navigateByUrl(CommonRoutes.EMBEDDED_SIGN_IN);
} }
@ -114,7 +114,10 @@ export class ResetPasswordComponent implements OnInit {
this.validationState[key] = true; this.validationState[key] = true;
} }
} else { } else {
this.validationState[key] = this.getControlValidationState(key) this.validationState[key] = this.getControlValidationState(key);
if (this.validationState[key]) {
this.validationState["reNewPassword"] = this.samePassword();
}
} }
} }

View File

@ -38,6 +38,6 @@
.more-info-link { .more-info-link {
position: relative; position: relative;
top: 100px; top: 90px;
left: 330px; left: 330px;
} }

View File

@ -9,6 +9,7 @@
.start-content-padding { .start-content-padding {
padding: 0px !important; padding: 0px !important;
background-color: white; background-color: white;
overflow-y: hidden !important;
} }
.content-area-override { .content-area-override {

View File

@ -27,7 +27,7 @@ export class NavigatorComponent implements OnInit {
private selectedLang: string = enLang; private selectedLang: string = enLang;
private appTitle: string = 'APP_TITLE.HARBOR'; private appTitle: string = 'APP_TITLE.HARBOR';
constructor( constructor(
private session: SessionService, private session: SessionService,
private router: Router, private router: Router,
@ -36,8 +36,8 @@ export class NavigatorComponent implements OnInit {
private appConfigService: AppConfigService, private appConfigService: AppConfigService,
private msgHandler: MessageHandlerService, private msgHandler: MessageHandlerService,
private searchTrigger: SearchTriggerService) { private searchTrigger: SearchTriggerService) {
} }
ngOnInit(): void { ngOnInit(): void {
this.selectedLang = this.translate.currentLang; this.selectedLang = this.translate.currentLang;
@ -80,8 +80,8 @@ export class NavigatorComponent implements OnInit {
public get canChangePassword(): boolean { public get canChangePassword(): boolean {
return this.session.getCurrentUser() && return this.session.getCurrentUser() &&
this.appConfigService.getConfig() && this.appConfigService.getConfig() &&
this.appConfigService.getConfig().auth_mode != 'ldap_auth'; this.appConfigService.getConfig().auth_mode != 'ldap_auth';
} }
matchLang(lang: string): boolean { matchLang(lang: string): boolean {
@ -114,16 +114,14 @@ export class NavigatorComponent implements OnInit {
//Log out system //Log out system
logOut(): void { logOut(): void {
this.session.signOff() //Naviagte to the sign in route
.then(() => { //Appending 'signout' means destroy session cache
//Naviagte to the sign in route let navigatorExtra: NavigationExtras = {
this.router.navigate([CommonRoutes.EMBEDDED_SIGN_IN]); queryParams: { "signout": true }
}) };
.catch(error => { this.router.navigate([CommonRoutes.EMBEDDED_SIGN_IN], navigatorExtra);
this.msgHandler.handleError(error);
});
//Confirm search result panel is close //Confirm search result panel is close
this.searchTrigger.closeSearch(true); this.searchTrigger.closeSearch(true);
} }
//Switch languages //Switch languages
@ -135,7 +133,7 @@ export class NavigatorComponent implements OnInit {
//TODO: //TODO:
console.error('Language ' + lang.trim() + ' is not suppoted'); console.error('Language ' + lang.trim() + ' is not suppoted');
} }
setTimeout(()=>{ setTimeout(() => {
window.location.reload(); window.location.reload();
}, 500); }, 500);
} }

View File

@ -1,8 +1,10 @@
<div class="row"> <div class="row">
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12"> <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
<h2 class="header-title">{{'PROJECT.PROJECTS' | translate}}</h2> <div class="row flex-items-xs-between flex-items-xs-top">
<div> <h2 class="header-title">{{'PROJECT.PROJECTS' | translate}}</h2>
<statistics-panel></statistics-panel> <div>
<statistics-panel></statistics-panel>
</div>
</div> </div>
<div class="row flex-items-xs-between"> <div class="row flex-items-xs-between">
<div class="option-left"> <div class="option-left">

View File

@ -25,6 +25,7 @@ import { State } from 'clarity-angular';
import { AppConfigService } from '../app-config.service'; import { AppConfigService } from '../app-config.service';
import { SessionService } from '../shared/session.service'; import { SessionService } from '../shared/session.service';
import { ProjectTypes } from '../shared/shared.const'; import { ProjectTypes } from '../shared/shared.const';
import { StatisticHandler } from '../shared/statictics/statistic-handler.service';
@Component({ @Component({
selector: 'project', selector: 'project',
@ -61,7 +62,8 @@ export class ProjectComponent implements OnInit, OnDestroy {
private messageHandlerService: MessageHandlerService, private messageHandlerService: MessageHandlerService,
private appConfigService: AppConfigService, private appConfigService: AppConfigService,
private sessionService: SessionService, private sessionService: SessionService,
private deletionDialogService: ConfirmationDialogService) { private deletionDialogService: ConfirmationDialogService,
private statisticHandler: StatisticHandler) {
this.subscription = deletionDialogService.confirmationConfirm$.subscribe(message => { this.subscription = deletionDialogService.confirmationConfirm$.subscribe(message => {
if (message && if (message &&
message.state === ConfirmationState.CONFIRMED && message.state === ConfirmationState.CONFIRMED &&
@ -72,8 +74,8 @@ export class ProjectComponent implements OnInit, OnDestroy {
.subscribe( .subscribe(
response => { response => {
this.messageHandlerService.showSuccess('PROJECT.DELETED_SUCCESS'); this.messageHandlerService.showSuccess('PROJECT.DELETED_SUCCESS');
console.log('Successful delete project with ID:' + projectId);
this.retrieve(); this.retrieve();
this.statisticHandler.refresh();
}, },
error =>{ error =>{
if(error && error.status === 412) { if(error && error.status === 412) {
@ -123,7 +125,6 @@ export class ProjectComponent implements OnInit, OnDestroy {
response => { response => {
this.totalRecordCount = response.headers.get('x-total-count'); this.totalRecordCount = response.headers.get('x-total-count');
this.totalPage = Math.ceil(this.totalRecordCount / this.pageSize); this.totalPage = Math.ceil(this.totalRecordCount / this.pageSize);
console.log('TotalRecordCount:' + this.totalRecordCount + ', totalPage:' + this.totalPage);
this.changedProjects = response.json(); this.changedProjects = response.json();
}, },
error => this.messageHandlerService.handleError(error) error => this.messageHandlerService.handleError(error)
@ -138,17 +139,16 @@ export class ProjectComponent implements OnInit, OnDestroy {
if (created) { if (created) {
this.projectName = ''; this.projectName = '';
this.retrieve(); this.retrieve();
this.statisticHandler.refresh();
} }
} }
doSearchProjects(projectName: string): void { doSearchProjects(projectName: string): void {
console.log('Search for project name:' + projectName);
this.projectName = projectName; this.projectName = projectName;
this.retrieve(); this.retrieve();
} }
doFilterProjects(filteredType: number): void { doFilterProjects(filteredType: number): void {
console.log('Filter projects with type:' + this.projectTypes[filteredType]);
this.isPublic = filteredType; this.isPublic = filteredType;
this.currentFilteredType = filteredType; this.currentFilteredType = filteredType;
this.retrieve(); this.retrieve();
@ -162,7 +162,7 @@ export class ProjectComponent implements OnInit, OnDestroy {
.subscribe( .subscribe(
response => { response => {
this.messageHandlerService.showSuccess('PROJECT.TOGGLED_SUCCESS'); this.messageHandlerService.showSuccess('PROJECT.TOGGLED_SUCCESS');
console.log('Successful toggled project_id:' + p.project_id); this.statisticHandler.refresh();
}, },
error => this.messageHandlerService.handleError(error) error => this.messageHandlerService.handleError(error)
); );
@ -182,6 +182,7 @@ export class ProjectComponent implements OnInit, OnDestroy {
refresh(): void { refresh(): void {
this.retrieve(); this.retrieve();
this.statisticHandler.refresh();
} }
} }

View File

@ -42,7 +42,6 @@ export class DestinationComponent implements OnInit {
.subscribe( .subscribe(
response => { response => {
this.messageHandlerService.showSuccess('DESTINATION.DELETED_SUCCESS'); this.messageHandlerService.showSuccess('DESTINATION.DELETED_SUCCESS');
console.log('Successful deleted target with ID:' + targetId);
this.reload(); this.reload();
}, },
error => { error => {
@ -51,7 +50,6 @@ export class DestinationComponent implements OnInit {
} else { } else {
this.messageHandlerService.handleError(error); this.messageHandlerService.handleError(error);
} }
console.log('Failed to delete target with ID:' + targetId + ', error:' + error);
}); });
} }
}); });

View File

@ -90,7 +90,6 @@ export class ReplicationComponent implements OnInit {
ngOnInit(): void { ngOnInit(): void {
this.projectId = +this.route.snapshot.parent.params['id']; this.projectId = +this.route.snapshot.parent.params['id'];
console.log('Get projectId from route params snapshot:' + this.projectId);
this.search = new SearchOption(); this.search = new SearchOption();
this.currentRuleStatus = this.ruleStatus[0]; this.currentRuleStatus = this.ruleStatus[0];
this.currentJobStatus = this.jobStatus[0]; this.currentJobStatus = this.jobStatus[0];
@ -125,13 +124,11 @@ export class ReplicationComponent implements OnInit {
} }
openModal(): void { openModal(): void {
console.log('Open modal to create policy.');
this.createEditPolicyComponent.openCreateEditPolicy(true); this.createEditPolicyComponent.openCreateEditPolicy(true);
} }
openEditPolicy(policy: Policy) { openEditPolicy(policy: Policy) {
if(policy) { if(policy) {
console.log('Open modal to edit policy ID:' + policy.id);
let editable = true; let editable = true;
if(policy.enabled === 1) { if(policy.enabled === 1) {
editable = false; editable = false;

View File

@ -19,7 +19,6 @@ export class ReplicationService {
if(!projectId) { if(!projectId) {
projectId = ''; projectId = '';
} }
console.log('Get policies with project ID:' + projectId + ', policy name:' + policyName);
return this.http return this.http
.get(`/api/policies/replication?project_id=${projectId}&name=${policyName}`) .get(`/api/policies/replication?project_id=${projectId}&name=${policyName}`)
.map(response=>response.json() as Policy[]) .map(response=>response.json() as Policy[])
@ -27,7 +26,6 @@ export class ReplicationService {
} }
getPolicy(policyId: number): Observable<Policy> { getPolicy(policyId: number): Observable<Policy> {
console.log('Get policy with ID:' + policyId);
return this.http return this.http
.get(`/api/policies/replication/${policyId}`) .get(`/api/policies/replication/${policyId}`)
.map(response=>response.json() as Policy) .map(response=>response.json() as Policy)
@ -35,7 +33,6 @@ export class ReplicationService {
} }
createPolicy(policy: Policy): Observable<any> { createPolicy(policy: Policy): Observable<any> {
console.log('Create policy with project ID:' + policy.project_id + ', policy:' + JSON.stringify(policy));
return this.http return this.http
.post(`/api/policies/replication`, JSON.stringify(policy)) .post(`/api/policies/replication`, JSON.stringify(policy))
.map(response=>response.status) .map(response=>response.status)
@ -107,7 +104,6 @@ export class ReplicationService {
// /api/jobs/replication/?page=1&page_size=20&end_time=&policy_id=1&start_time=&status=&repository= // /api/jobs/replication/?page=1&page_size=20&end_time=&policy_id=1&start_time=&status=&repository=
listJobs(policyId: number, status: string = '', repoName: string = '', startTime: string = '', endTime: string = '', page: number, pageSize: number): Observable<any> { listJobs(policyId: number, status: string = '', repoName: string = '', startTime: string = '', endTime: string = '', page: number, pageSize: number): Observable<any> {
console.log('Get jobs under policy ID:' + policyId);
return this.http return this.http
.get(`/api/jobs/replication?policy_id=${policyId}&status=${status}&repository=${repoName}&start_time=${startTime}&end_time=${endTime}&page=${page}&page_size=${pageSize}`) .get(`/api/jobs/replication?policy_id=${policyId}&status=${status}&repository=${repoName}&start_time=${startTime}&end_time=${endTime}&page=${page}&page_size=${pageSize}`)
.map(response=>response) .map(response=>response)
@ -115,7 +111,6 @@ export class ReplicationService {
} }
listTargets(targetName: string): Observable<Target[]> { listTargets(targetName: string): Observable<Target[]> {
console.log('Get targets.');
return this.http return this.http
.get(`/api/targets?name=${targetName}`) .get(`/api/targets?name=${targetName}`)
.map(response=>response.json() as Target[]) .map(response=>response.json() as Target[])
@ -123,7 +118,6 @@ export class ReplicationService {
} }
listTargetPolicies(targetId: number): Observable<Policy[]> { listTargetPolicies(targetId: number): Observable<Policy[]> {
console.log('List target with policy.');
return this.http return this.http
.get(`/api/targets/${targetId}/policies`) .get(`/api/targets/${targetId}/policies`)
.map(response=>response.json() as Policy[]) .map(response=>response.json() as Policy[])
@ -131,7 +125,6 @@ export class ReplicationService {
} }
getTarget(targetId: number): Observable<Target> { getTarget(targetId: number): Observable<Target> {
console.log('Get target by ID:' + targetId);
return this.http return this.http
.get(`/api/targets/${targetId}`) .get(`/api/targets/${targetId}`)
.map(response=>response.json() as Target) .map(response=>response.json() as Target)
@ -139,7 +132,6 @@ export class ReplicationService {
} }
createTarget(target: Target): Observable<any> { createTarget(target: Target): Observable<any> {
console.log('Create target:' + JSON.stringify(target));
return this.http return this.http
.post(`/api/targets`, JSON.stringify(target)) .post(`/api/targets`, JSON.stringify(target))
.map(response=>response.status) .map(response=>response.status)
@ -147,7 +139,6 @@ export class ReplicationService {
} }
pingTarget(target: Target): Observable<any> { pingTarget(target: Target): Observable<any> {
console.log('Ping target.');
let body = new URLSearchParams(); let body = new URLSearchParams();
body.set('endpoint', target.endpoint); body.set('endpoint', target.endpoint);
body.set('username', target.username); body.set('username', target.username);
@ -159,7 +150,6 @@ export class ReplicationService {
} }
updateTarget(target: Target): Observable<any> { updateTarget(target: Target): Observable<any> {
console.log('Update target with target ID' + target.id);
return this.http return this.http
.put(`/api/targets/${target.id}`, JSON.stringify(target)) .put(`/api/targets/${target.id}`, JSON.stringify(target))
.map(response=>response.status) .map(response=>response.status)
@ -167,7 +157,6 @@ export class ReplicationService {
} }
deleteTarget(targetId: number): Observable<any> { deleteTarget(targetId: number): Observable<any> {
console.log('Deleting target with ID:' + targetId);
return this.http return this.http
.delete(`/api/targets/${targetId}`) .delete(`/api/targets/${targetId}`)
.map(response=>response.status) .map(response=>response.status)

View File

@ -50,7 +50,6 @@ export class TotalReplicationComponent implements OnInit {
openEditPolicy(policy: Policy) { openEditPolicy(policy: Policy) {
if(policy) { if(policy) {
console.log('Open modal to edit policy ID:' + policy.id);
let editable = true; let editable = true;
if(policy.enabled === 1) { if(policy.enabled === 1) {
editable = false; editable = false;

View File

@ -154,7 +154,6 @@ export class GaugeComponent implements AfterViewInit {
@ViewChild('barTwo') private barTwo: ElementRef; @ViewChild('barTwo') private barTwo: ElementRef;
private determineColors() { private determineColors() {
console.info(this._used, this._threasHold);
let percent: number = 0; let percent: number = 0;
if (this._threasHold !== 0) { if (this._threasHold !== 0) {
percent = (this._used / this._threasHold) * 100; percent = (this._used / this._threasHold) * 100;

View File

@ -142,10 +142,11 @@ export class NewUserFormComponent implements AfterViewChecked, OnInit {
} }
//Check password confirmation //Check password confirmation
if (key === "confirmPassword") { if (key === "confirmPassword" || key === "newPassword") {
let peerCont = this.newUserForm.controls["newPassword"]; let cpKey = key === "confirmPassword" ? "newPassword" : "confirmPassword";
if (peerCont) { let peerCont = this.newUserForm.controls[cpKey];
this.validationStateMap[key] = cont.value === peerCont.value; if (peerCont && peerCont.valid) {
this.validationStateMap["confirmPassword"] = cont.value === peerCont.value;
} }
} }
} }

View File

@ -36,7 +36,6 @@ export class AuthCheckGuard implements CanActivate, CanActivateChild {
//When routing change, clear //When routing change, clear
this.msgHandler.clear(); this.msgHandler.clear();
this.searchTrigger.closeSearch(true); this.searchTrigger.closeSearch(true);
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
//Before activating, we firstly need to confirm whether the route is coming from peer part - admiral //Before activating, we firstly need to confirm whether the route is coming from peer part - admiral
let queryParams = route.queryParams; let queryParams = route.queryParams;

View File

@ -15,19 +15,33 @@ export class SignInGuard implements CanActivate, CanActivateChild {
canActivate(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Promise<boolean> | boolean { canActivate(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Promise<boolean> | boolean {
//If user has logged in, should not login again //If user has logged in, should not login again
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
let user = this.authService.getCurrentUser(); //If signout appended
if (user === null) { let queryParams = route.queryParams;
this.authService.retrieveUser() if (queryParams && queryParams['signout']) {
this.authService.signOff()
.then(() => { .then(() => {
this.router.navigate([CommonRoutes.HARBOR_DEFAULT]); this.authService.clear();//Destroy session cache
return resolve(false); return resolve(true);
}) })
.catch(error => { .catch(error => {
return resolve(true); console.error(error);
return resolve(false);
}); });
} else { } else {
this.router.navigate([CommonRoutes.HARBOR_DEFAULT]); let user = this.authService.getCurrentUser();
return resolve(false); if (user === null) {
this.authService.retrieveUser()
.then(() => {
this.router.navigate([CommonRoutes.HARBOR_DEFAULT]);
return resolve(false);
})
.catch(error => {
return resolve(true);
});
} else {
this.router.navigate([CommonRoutes.HARBOR_DEFAULT]);
return resolve(false);
}
} }
}); });
} }

View File

@ -93,7 +93,7 @@ export class SessionService {
return this.http.get(signOffEndpoint, { headers: this.headers }).toPromise() return this.http.get(signOffEndpoint, { headers: this.headers }).toPromise()
.then(() => { .then(() => {
//Destroy current session cache //Destroy current session cache
this.currentUser = null; //this.currentUser = null;
}) //Nothing returned }) //Nothing returned
.catch(error => this.handleError(error)) .catch(error => this.handleError(error))
} }

View File

@ -40,6 +40,7 @@ import { ListRepositoryROComponent } from './list-repository-ro/list-repository-
import { MessageHandlerService } from './message-handler/message-handler.service'; import { MessageHandlerService } from './message-handler/message-handler.service';
import { EmailValidatorDirective } from './email.directive'; import { EmailValidatorDirective } from './email.directive';
import { GaugeComponent } from './gauge/gauge.component'; import { GaugeComponent } from './gauge/gauge.component';
import { StatisticHandler } from './statictics/statistic-handler.service';
@NgModule({ @NgModule({
imports: [ imports: [
@ -97,7 +98,8 @@ import { GaugeComponent } from './gauge/gauge.component';
SignInGuard, SignInGuard,
LeavingConfigRouteDeactivate, LeavingConfigRouteDeactivate,
MemberGuard, MemberGuard,
MessageHandlerService MessageHandlerService,
StatisticHandler
] ]
}) })
export class SharedModule { export class SharedModule {

View File

@ -0,0 +1,14 @@
import { Injectable } from '@angular/core';
import { Subject } from 'rxjs/Subject';
@Injectable()
export class StatisticHandler {
private refreshSource = new Subject<boolean>();
refreshChan$ = this.refreshSource.asObservable();
refresh() {
this.refreshSource.next(true);
}
}

View File

@ -1,4 +1,5 @@
import { Component, Input, OnInit } from '@angular/core'; import { Component, Input, OnInit, OnDestroy } from '@angular/core';
import { Subscription } from 'rxjs/Subscription';
import { StatisticsService } from './statistics.service'; import { StatisticsService } from './statistics.service';
import { Statistics } from './statistics'; import { Statistics } from './statistics';
@ -7,6 +8,7 @@ import { SessionService } from '../session.service';
import { Volumes } from './volumes'; import { Volumes } from './volumes';
import { MessageHandlerService } from '../message-handler/message-handler.service'; import { MessageHandlerService } from '../message-handler/message-handler.service';
import { StatisticHandler } from './statistic-handler.service';
@Component({ @Component({
selector: 'statistics-panel', selector: 'statistics-panel',
@ -15,26 +17,40 @@ import { MessageHandlerService } from '../message-handler/message-handler.servic
providers: [StatisticsService] providers: [StatisticsService]
}) })
export class StatisticsPanelComponent implements OnInit { export class StatisticsPanelComponent implements OnInit, OnDestroy {
private originalCopy: Statistics = new Statistics(); private originalCopy: Statistics = new Statistics();
private volumesInfo: Volumes = new Volumes(); private volumesInfo: Volumes = new Volumes();
refreshSub: Subscription;
constructor( constructor(
private statistics: StatisticsService, private statistics: StatisticsService,
private msgHandler: MessageHandlerService, private msgHandler: MessageHandlerService,
private session: SessionService) { } private session: SessionService,
private statisticHandler: StatisticHandler) {
}
ngOnInit(): void { ngOnInit(): void {
//Refresh
this.refreshSub = this.statisticHandler.refreshChan$.subscribe(clear => {
this.getStatistics();
});
if (this.session.getCurrentUser()) { if (this.session.getCurrentUser()) {
this.getStatistics(); this.getStatistics();
} }
if (this.isValidSession) { if (this.isValidSession) {
this.getVolumes(); this.getVolumes();
} }
} }
ngOnDestroy() {
if (this.refreshSub) {
this.refreshSub.unsubscribe();
}
}
public get totalStorage(): number { public get totalStorage(): number {
return this.getGBFromBytes(this.volumesInfo.storage.total); return this.getGBFromBytes(this.volumesInfo.storage.total);
} }

View File

@ -10,7 +10,7 @@
.statistic-data { .statistic-data {
font-size: 16px; font-size: 16px;
font-weight: 900; font-weight: 900;
font-family: "Metropolis Semibold"; font-family: 'Metropolis,"Avenir Next","Helvetica Neue",Arial,sans-serif';
line-height: 16px; line-height: 16px;
} }
@ -18,7 +18,7 @@
font-size: 10px; font-size: 10px;
line-height: 10px; line-height: 10px;
text-transform: uppercase; text-transform: uppercase;
font-family: "Metropolis Regular"; font-family: 'Metropolis,"Avenir Next","Helvetica Neue",Arial,sans-serif';
} }
.statistic-column-block { .statistic-column-block {
@ -30,7 +30,7 @@
position: relative; position: relative;
text-transform: uppercase; text-transform: uppercase;
font-size: 14px; font-size: 14px;
font-family: "Metropolis Regular"; font-family: 'Metropolis,"Avenir Next","Helvetica Neue",Arial,sans-serif';
} }
.statistic-column-title-pro { .statistic-column-title-pro {

View File

@ -10,7 +10,11 @@
</head> </head>
<body> <body>
<harbor-app>Loading...</harbor-app> <harbor-app>
<div class="spinner spinner-lg app-loading">
Loading...
</div>
</harbor-app>
</body> </body>
</html> </html>

View File

@ -0,0 +1,9 @@
.app-loading {
position: absolute;
top: 50%;
left: 50%;
margin-top: -54px;
margin-left: -54px;
width: 108px !important;
height: 108px !important;
}