Improve artifact

Signed-off-by: Yogi_Wang <yawang@vmware.com>
This commit is contained in:
Yogi_Wang 2020-02-26 15:23:57 +08:00
parent e9d09c705e
commit f1ed010d9c
9 changed files with 11 additions and 25 deletions

View File

@ -132,7 +132,6 @@
<clr-dg-column class="w-rem-4">{{'REPOSITORY.TAGS_COUNT' | translate}}</clr-dg-column>
<clr-dg-column >{{'REPOSITORY.SIZE' | translate}}</clr-dg-column>
<clr-dg-column>{{'REPOSITORY.VULNERABILITY' | translate}}</clr-dg-column>
<clr-dg-column *ngIf="withNotary">{{'REPOSITORY.SIGNED' | translate}}</clr-dg-column>
<clr-dg-column>{{'ARTIFACT.ANNOTATION' | translate}}</clr-dg-column>
<clr-dg-column *ngIf="!withAdmiral">{{'REPOSITORY.LABELS' | translate}}</clr-dg-column>
<clr-dg-column [clrDgSortBy]="pushComparator">{{'REPOSITORY.PUSH_TIME' | translate}}</clr-dg-column>
@ -230,17 +229,6 @@
</hbr-vulnerability-bar>
</div>
</clr-dg-cell>
<clr-dg-cell *ngIf="withNotary" [ngSwitch]="artifact.signature !== null">
<div class="cell">
<clr-icon shape="check-circle" *ngSwitchCase="true" size="20" class="color-green"></clr-icon>
<clr-icon shape="times-circle" *ngSwitchCase="false" size="16" class="color-red"></clr-icon>
<a href="javascript:void(0)" *ngSwitchDefault role="tooltip" aria-haspopup="true"
class="tooltip tooltip-top-right">
<clr-icon shape="help" class="color-gray" size="16"></clr-icon>
<span class="tooltip-content">{{'REPOSITORY.NOTARY_IS_UNDETERMINED' | translate}}</span>
</a>
</div>
</clr-dg-cell>
<clr-dg-cell>
<div class="cell" *ngIf="artifact.annotationsArray?.length">
<div class="bar-state">

View File

@ -2,7 +2,7 @@
<h4 class="margin-bottom-075">{{'ARTIFACT.EXTRA_PROPERTIES' | translate}}</h4>
<clr-stack-view>
<clr-stack-block [clrSbExpanded] = "true">
<clr-stack-label>{{'ARTIFACT.COMMON_ALL' | translate}}</clr-stack-label>
<clr-stack-label>{{'ARTIFACT.EXTRA_PROPERTIES' | translate}}</clr-stack-label>
<clr-stack-block *ngFor="let item of commonProperties | keyvalue">
<clr-stack-label>{{item?.key}}</clr-stack-label>
<clr-stack-content>{{item?.value}}</clr-stack-content>

View File

@ -92,6 +92,10 @@ export class ArtifactSummaryComponent implements OnInit {
repositoryName: this.repositoryName,
reference: this.artifactDigest,
projectName: this.projectName,
withLabel: true,
withScanOverview: true,
withSignature: true,
withImmutableStatus: true
}).pipe(finalize(() => this.loading = false))
.subscribe(response => {
this.artifact = response;

View File

@ -997,8 +997,7 @@
"FILTER_FOR_ARTIFACTS": "Filter Artifacts",
"ADDITIONS": "Additions",
"ANNOTATION": "Annotation",
"EXTRA_PROPERTIES": "Extra Attributes",
"COMMON_ALL": "Extra Attributes across all digest"
"EXTRA_PROPERTIES": "Extra Attributes"
},
"TAG": {
"CREATION_TIME_PREFIX": "Create on",

View File

@ -996,8 +996,7 @@
"FILTER_FOR_ARTIFACTS": "Filter Artifacts",
"ADDITIONS": "Additions",
"ANNOTATION": "Annotation",
"EXTRA_PROPERTIES": "Extra Attributes",
"COMMON_ALL": "Extra Attributes across all digest"
"EXTRA_PROPERTIES": "Extra Attributes"
},
"TAG": {
"CREATION_TIME_PREFIX": "Create on",

View File

@ -969,8 +969,7 @@
"FILTER_FOR_ARTIFACTS": "Filter Artifacts",
"ADDITIONS": "Additions",
"ANNOTATION": "Annotation",
"EXTRA_PROPERTIES": "Extra Attributes",
"COMMON_ALL": "Extra Attributes across all digest"
"EXTRA_PROPERTIES": "Extra Attributes"
},
"TAG": {
"CREATION_TIME_PREFIX": "Créer le",

View File

@ -992,8 +992,7 @@
"FILTER_FOR_ARTIFACTS": "Filter Artifacts",
"ADDITIONS": "Additions",
"ANNOTATION": "Annotation",
"EXTRA_PROPERTIES": "Extra Attributes",
"COMMON_ALL": "Extra Attributes across all digest"
"EXTRA_PROPERTIES": "Extra Attributes"
},
"TAG": {
"CREATION_TIME_PREFIX": "Criado em",

View File

@ -996,8 +996,7 @@
"FILTER_FOR_ARTIFACTS": "Filter Artifacts",
"ADDITIONS": "Additions",
"ANNOTATION": "Annotation",
"EXTRA_PROPERTIES": "Extra Attributes",
"COMMON_ALL": "Extra Attributes across all digest"
"EXTRA_PROPERTIES": "Extra Attributes"
},
"TAG": {
"CREATION_TIME_PREFIX": "Oluştur",

View File

@ -996,8 +996,7 @@
"FILTER_FOR_ARTIFACTS": "Filter Artifacts",
"ADDITIONS": "其他",
"ANNOTATION": "注解",
"EXTRA_PROPERTIES": "额外属性",
"COMMON_ALL": "额外属性"
"EXTRA_PROPERTIES": "额外属性"
},
"TAG": {
"CREATION_TIME_PREFIX": "创建时间:",