diff --git a/src/portal/lib/ng-package.json b/src/portal/lib/ng-package.json
index 053ada8db..89852ea86 100644
--- a/src/portal/lib/ng-package.json
+++ b/src/portal/lib/ng-package.json
@@ -8,6 +8,13 @@
"@ngx-translate/core": "ngx-translate-core",
"@ngx-translate/core/index": "ngx-translate-core",
"ngx-markdown": "ngx-markdown"
- }
+ },
+ "umdModuleIds": {
+ "@clr/angular" : "angular",
+ "ngx-markdown" : "ngxMarkdown",
+ "@ngx-translate/http-loader" : "httpLoader",
+ "ngx-cookie" : "ngxCookie",
+ "@ngx-translate/core" : "core$1"
+ }
}
}
\ No newline at end of file
diff --git a/src/portal/lib/ng-package.prod.json b/src/portal/lib/ng-package.prod.json
index 464fcabd4..85a87a50d 100644
--- a/src/portal/lib/ng-package.prod.json
+++ b/src/portal/lib/ng-package.prod.json
@@ -7,6 +7,13 @@
"@ngx-translate/core": "ngx-translate-core",
"@ngx-translate/core/index": "ngx-translate-core",
"ngx-markdown": "ngx-markdown"
- }
+ },
+ "umdModuleIds": {
+ "@clr/angular" : "angular",
+ "ngx-markdown" : "ngxMarkdown",
+ "@ngx-translate/http-loader" : "httpLoader",
+ "ngx-cookie" : "ngxCookie",
+ "@ngx-translate/core" : "core$1"
+ }
}
}
\ No newline at end of file
diff --git a/src/portal/src/app/project/summary/summary.component.html b/src/portal/src/app/project/summary/summary.component.html
index 8f7123cf8..d53588b42 100644
--- a/src/portal/src/app/project/summary/summary.component.html
+++ b/src/portal/src/app/project/summary/summary.component.html
@@ -3,22 +3,22 @@
{{'SUMMARY.PROJECT_REPOSITORY' | translate}}
- - {{summaryInformation.repo_count}}
+ - {{summaryInformation?.repo_count}}
{{'SUMMARY.PROJECT_HELM_CHART' | translate}}
- - {{summaryInformation.chart_count}}
+ - {{summaryInformation?.chart_count}}
{{'SUMMARY.PROJECT_MEMBER' | translate}}
- - {{ summaryInformation.project_admin_count }} {{'SUMMARY.ADMIN' | translate}}
- - {{ summaryInformation.master_count }} {{'SUMMARY.MASTER' | translate}}
- - {{ summaryInformation.developer_count }} {{'SUMMARY.DEVELOPER' | translate}}
- - {{ summaryInformation.guest_count }} {{'SUMMARY.GUEST' | translate}}
+ - {{ summaryInformation?.project_admin_count }} {{'SUMMARY.ADMIN' | translate}}
+ - {{ summaryInformation?.master_count }} {{'SUMMARY.MASTER' | translate}}
+ - {{ summaryInformation?.developer_count }} {{'SUMMARY.DEVELOPER' | translate}}
+ - {{ summaryInformation?.guest_count }} {{'SUMMARY.GUEST' | translate}}
@@ -28,40 +28,40 @@
-
-
0.9:false">
+
0.9:false">
+ value="{{summaryInformation?.quota?.hard?.count===-1? 0 : summaryInformation?.quota?.used?.count}}"
+ max="{{summaryInformation?.quota?.hard?.count}}" data-displayval="100%">
{{'SUMMARY.STORAGE_CONSUMPTION' | translate}}
- {{ summaryInformation.quota.hard.storage !== -1 ?(getIntegerAndUnit(summaryInformation.quota.hard.storage, summaryInformation.quota.used.storage).partNumberUsed
- + getIntegerAndUnit(summaryInformation.quota.hard.storage, summaryInformation.quota.used.storage).partCharacterUsed) : getSuitableUnit(summaryInformation.quota.used.storage)}}
+ {{ summaryInformation?.quota?.hard?.storage !== -1 ?(getIntegerAndUnit(summaryInformation?.quota?.hard?.storage, summaryInformation?.quota?.used?.storage).partNumberUsed
+ + getIntegerAndUnit(summaryInformation?.quota?.hard?.storage, summaryInformation?.quota?.used?.storage).partCharacterUsed) : getSuitableUnit(summaryInformation?.quota?.used?.storage)}}
-
+
{{ 'QUOTA.OF' | translate }}
- {{ summaryInformation.quota.hard.storage ===-1? ('QUOTA.UNLIMITED' | translate) : getIntegerAndUnit(summaryInformation.quota.hard.storage, summaryInformation.quota.used.storage).partNumberHard }}
- {{ summaryInformation.quota.hard.storage ===-1? '': getIntegerAndUnit(summaryInformation.quota.hard.storage, summaryInformation.quota.used.storage).partCharacterHard }}
+ {{ summaryInformation?.quota?.hard?.storage ===-1? ('QUOTA.UNLIMITED' | translate) : getIntegerAndUnit(summaryInformation?.quota?.hard?.storage, summaryInformation?.quota?.used?.storage).partNumberHard }}
+ {{ summaryInformation?.quota?.hard?.storage ===-1? '': getIntegerAndUnit(summaryInformation?.quota?.hard?.storage, summaryInformation?.quota?.used?.storage).partCharacterHard }}
0.9:false">
+ [class.danger]="summaryInformation?.quota?.hard?.storage!==-1?summaryInformation?.quota?.used?.storage/summaryInformation?.quota?.hard?.storage>0.9:false">
+ value="{{summaryInformation?.quota?.hard?.storage===-1? 0 : summaryInformation?.quota?.used?.storage}}"
+ max="{{summaryInformation?.quota?.hard?.storage}}" data-displayval="100%">