From f1ed010d9cc77e7f45a1209287277ee6084e713e Mon Sep 17 00:00:00 2001 From: Yogi_Wang Date: Wed, 26 Feb 2020 15:23:57 +0800 Subject: [PATCH] Improve artifact Signed-off-by: Yogi_Wang --- .../artifact-list-tab.component.html | 12 ------------ .../artifact-common-properties.component.html | 2 +- .../artifact/artifact-summary.component.ts | 4 ++++ src/portal/src/i18n/lang/en-us-lang.json | 3 +-- src/portal/src/i18n/lang/es-es-lang.json | 3 +-- src/portal/src/i18n/lang/fr-fr-lang.json | 3 +-- src/portal/src/i18n/lang/pt-br-lang.json | 3 +-- src/portal/src/i18n/lang/tr-tr-lang.json | 3 +-- src/portal/src/i18n/lang/zh-cn-lang.json | 3 +-- 9 files changed, 11 insertions(+), 25 deletions(-) diff --git a/src/portal/src/app/project/repository/artifact-list-page/artifact-list/artifact-list-tab/artifact-list-tab.component.html b/src/portal/src/app/project/repository/artifact-list-page/artifact-list/artifact-list-tab/artifact-list-tab.component.html index b80dfa78b..f74398fa3 100644 --- a/src/portal/src/app/project/repository/artifact-list-page/artifact-list/artifact-list-tab/artifact-list-tab.component.html +++ b/src/portal/src/app/project/repository/artifact-list-page/artifact-list/artifact-list-tab/artifact-list-tab.component.html @@ -132,7 +132,6 @@ {{'REPOSITORY.TAGS_COUNT' | translate}} {{'REPOSITORY.SIZE' | translate}} {{'REPOSITORY.VULNERABILITY' | translate}} - {{'REPOSITORY.SIGNED' | translate}} {{'ARTIFACT.ANNOTATION' | translate}} {{'REPOSITORY.LABELS' | translate}} {{'REPOSITORY.PUSH_TIME' | translate}} @@ -230,17 +229,6 @@ - - -
diff --git a/src/portal/src/app/project/repository/artifact/artifact-common-properties/artifact-common-properties.component.html b/src/portal/src/app/project/repository/artifact/artifact-common-properties/artifact-common-properties.component.html index 535be9fdc..b5d6c84ea 100644 --- a/src/portal/src/app/project/repository/artifact/artifact-common-properties/artifact-common-properties.component.html +++ b/src/portal/src/app/project/repository/artifact/artifact-common-properties/artifact-common-properties.component.html @@ -2,7 +2,7 @@

{{'ARTIFACT.EXTRA_PROPERTIES' | translate}}

- {{'ARTIFACT.COMMON_ALL' | translate}} + {{'ARTIFACT.EXTRA_PROPERTIES' | translate}} {{item?.key}} {{item?.value}} diff --git a/src/portal/src/app/project/repository/artifact/artifact-summary.component.ts b/src/portal/src/app/project/repository/artifact/artifact-summary.component.ts index eae26820e..6de6f9383 100644 --- a/src/portal/src/app/project/repository/artifact/artifact-summary.component.ts +++ b/src/portal/src/app/project/repository/artifact/artifact-summary.component.ts @@ -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; diff --git a/src/portal/src/i18n/lang/en-us-lang.json b/src/portal/src/i18n/lang/en-us-lang.json index 0a38c6e99..4d8d6b07c 100644 --- a/src/portal/src/i18n/lang/en-us-lang.json +++ b/src/portal/src/i18n/lang/en-us-lang.json @@ -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", diff --git a/src/portal/src/i18n/lang/es-es-lang.json b/src/portal/src/i18n/lang/es-es-lang.json index b75ff0927..0e81b68a9 100644 --- a/src/portal/src/i18n/lang/es-es-lang.json +++ b/src/portal/src/i18n/lang/es-es-lang.json @@ -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", diff --git a/src/portal/src/i18n/lang/fr-fr-lang.json b/src/portal/src/i18n/lang/fr-fr-lang.json index ee6145334..9c85e248d 100644 --- a/src/portal/src/i18n/lang/fr-fr-lang.json +++ b/src/portal/src/i18n/lang/fr-fr-lang.json @@ -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", diff --git a/src/portal/src/i18n/lang/pt-br-lang.json b/src/portal/src/i18n/lang/pt-br-lang.json index cf79a6ca3..32701f097 100644 --- a/src/portal/src/i18n/lang/pt-br-lang.json +++ b/src/portal/src/i18n/lang/pt-br-lang.json @@ -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", diff --git a/src/portal/src/i18n/lang/tr-tr-lang.json b/src/portal/src/i18n/lang/tr-tr-lang.json index c334daee0..667434adf 100644 --- a/src/portal/src/i18n/lang/tr-tr-lang.json +++ b/src/portal/src/i18n/lang/tr-tr-lang.json @@ -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", diff --git a/src/portal/src/i18n/lang/zh-cn-lang.json b/src/portal/src/i18n/lang/zh-cn-lang.json index 189f49927..f40ab1678 100644 --- a/src/portal/src/i18n/lang/zh-cn-lang.json +++ b/src/portal/src/i18n/lang/zh-cn-lang.json @@ -996,8 +996,7 @@ "FILTER_FOR_ARTIFACTS": "Filter Artifacts", "ADDITIONS": "其他", "ANNOTATION": "注解", - "EXTRA_PROPERTIES": "额外属性", - "COMMON_ALL": "额外属性" + "EXTRA_PROPERTIES": "额外属性" }, "TAG": { "CREATION_TIME_PREFIX": "创建时间:",