This repository was archived by the owner on Sep 30, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Dominik Frantisek Bucik
committed
Feb 1, 2022
1 parent
cbe2535
commit 136e899
Showing
10 changed files
with
550 additions
and
364 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,57 @@ | ||
import {ProvidedServiceOverview} from "./ProvidedServiceOverview"; | ||
|
||
export class ProvidedServicesOverview { | ||
samlServicesCount: Map<string, number>; | ||
oidcServicesCount: Map<string, number>; | ||
|
||
productionServices: ProvidedServiceOverview[] = []; | ||
stagingServices: ProvidedServiceOverview[] = []; | ||
testingServices: ProvidedServiceOverview[] = []; | ||
|
||
displayableProductionServices = false; | ||
displayableStagingServices = false; | ||
displayableTestingServices = false; | ||
|
||
constructor(item: any) { | ||
this.samlServicesCount = new Map<string, number>(); | ||
this.oidcServicesCount = new Map<string, number>(); | ||
this.productionServices = []; | ||
this.stagingServices = []; | ||
this.testingServices = []; | ||
this.displayableProductionServices = false; | ||
this.displayableStagingServices = false; | ||
this.displayableTestingServices = false; | ||
|
||
if (!item) { | ||
return; | ||
} | ||
|
||
this.samlServicesCount = item.samlServicesCount; | ||
this.oidcServicesCount = item.oidcServicesCount; | ||
if (item['samlServicesCount']) { | ||
for (const k of Object.keys(item.samlServicesCount)) { | ||
this.samlServicesCount.set(k, item.samlServicesCount[k]); | ||
} | ||
} | ||
|
||
if (item['oidcServicesCount']) { | ||
for (const k of Object.keys(item.oidcServicesCount)) { | ||
this.oidcServicesCount.set(k, item.oidcServicesCount[k]); | ||
} | ||
} | ||
|
||
this.productionServices = item.services['PRODUCTION'].map(s => new ProvidedServiceOverview(s)); | ||
if (item['services'] && item.services['PRODUCTION']) { | ||
this.displayableProductionServices = true; | ||
item.services['PRODUCTION'].map(s => this.productionServices.push(new ProvidedServiceOverview(s))); | ||
} | ||
|
||
if (item.services['STAGING']) { | ||
if (item['services'] && item.services['STAGING']) { | ||
this.displayableStagingServices = true; | ||
this.stagingServices = item.services['STAGING'].map(s => new ProvidedServiceOverview(s)); | ||
item.services['STAGING'].map(s => this.stagingServices.push(new ProvidedServiceOverview(s))); | ||
} | ||
if (item.services['TESTING']) { | ||
|
||
if (item['services'] && item.services['TESTING']) { | ||
this.displayableTestingServices = true; | ||
this.testingServices = item.services['TESTING'].map(s => new ProvidedServiceOverview(s)); | ||
item.services['TESTING'].map(s => this.testingServices.push(new ProvidedServiceOverview(s))); | ||
} | ||
} | ||
|
||
samlServicesCount: Map<string, bigint>; | ||
oidcServicesCount: Map<string, bigint>; | ||
|
||
testingServices: ProvidedServiceOverview[] = []; | ||
productionServices: ProvidedServiceOverview[] = []; | ||
stagingServices: ProvidedServiceOverview[] = []; | ||
|
||
displayableStagingServices = false; | ||
displayableTestingServices = false; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
306 changes: 145 additions & 161 deletions
306
gui/src/app/statistics/facilities-services-list/facilities-services-list.component.html
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.