From 99d02a14f59d1f80e83049e6f0b6faa997fe21ce Mon Sep 17 00:00:00 2001 From: Yogi_Wang Date: Wed, 19 Feb 2020 15:42:18 +0800 Subject: [PATCH] Fix issue from louis and improve artifact list Signed-off-by: Yogi_Wang --- .../src/app/log/audit-log.component.html | 2 +- .../src/app/log/audit-log.component.scss | 14 ++++++++ .../app/project/member/member.component.scss | 4 +++ .../project-detail.component.ts | 12 +++---- .../src/app/project/project.component.scss | 4 ++- .../project/scanner/scanner.component.html | 3 +- .../add-webhook-form.component.html | 2 +- .../add-webhook-form.component.scss | 4 +++ .../confirmation-dialog.component.html | 2 +- .../new-user-form.component.scss | 3 +- .../app/user/new-user-madal.component.scss | 10 ++++++ .../src/app/user/new-user-modal.component.ts | 2 +- src/portal/src/css/common.scss | 1 + 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 | 1 + src/portal/src/i18n/lang/tr-tr-lang.json | 1 + src/portal/src/images/cnab.svg | 35 +++++++++++++++++++ .../artifact/artifact-list-tab.component.html | 4 +-- .../artifact/artifact-list-tab.component.scss | 2 +- .../artifact/artifact-list-tab.component.ts | 5 +++ .../artifact/artifact-summary.component.ts | 4 +++ .../artifact-tag/artifact-tag.component.html | 11 ++++++ .../project-quotas.component.scss | 5 +-- .../system/system-settings.component.html | 4 +-- .../system/system-settings.component.scss | 12 ++++++- .../create-edit-endpoint.component.html | 6 ++-- .../create-edit-endpoint.component.scss | 9 +++-- .../create-edit-rule.component.scss | 12 ++++++- .../label-piece/label-piece.component.ts | 2 +- .../operation/operation.component.css | 2 +- .../project-policy-config.component.html | 8 ++--- .../project-policy-config.component.scss | 4 --- .../replication/replication.component.html | 16 ++++----- .../repository-gridview.component.scss | 1 + .../result-bar-chart-component.html | 2 +- .../vulnerability-scanning/scanning.scss | 10 +++++- .../Harbor-Pages/Project_Elements.robot | 2 +- 39 files changed, 176 insertions(+), 54 deletions(-) create mode 100644 src/portal/src/app/user/new-user-madal.component.scss create mode 100644 src/portal/src/images/cnab.svg diff --git a/src/portal/src/app/log/audit-log.component.html b/src/portal/src/app/log/audit-log.component.html index fdcb7e7f5..c3c176153 100644 --- a/src/portal/src/app/log/audit-log.component.html +++ b/src/portal/src/app/log/audit-log.component.html @@ -1,5 +1,5 @@
-
+
diff --git a/src/portal/src/app/log/audit-log.component.scss b/src/portal/src/app/log/audit-log.component.scss index 77c6801bf..b47c60659 100644 --- a/src/portal/src/app/log/audit-log.component.scss +++ b/src/portal/src/app/log/audit-log.component.scss @@ -25,4 +25,18 @@ .display-f{ display: flex; +} +.reverse-row { + display: flex; + flex-direction: row-reverse; + align-items: baseline; +} +.flex-items-xs-right { + display: flex; + align-items: baseline; + ::ng-deep { + clr-date-container{ + margin-top: 0; + } + } } \ No newline at end of file diff --git a/src/portal/src/app/project/member/member.component.scss b/src/portal/src/app/project/member/member.component.scss index c2b416100..30da42d5f 100644 --- a/src/portal/src/app/project/member/member.component.scss +++ b/src/portal/src/app/project/member/member.component.scss @@ -43,4 +43,8 @@ clr-datagrid { padding-top: 0; } +.dropdown-header { + text-transform: none; + font-size: 13px; +} diff --git a/src/portal/src/app/project/project-detail/project-detail.component.ts b/src/portal/src/app/project/project-detail/project-detail.component.ts index e6ea1cd1c..eb5b019fa 100644 --- a/src/portal/src/app/project/project-detail/project-detail.component.ts +++ b/src/portal/src/app/project/project-detail/project-detail.component.ts @@ -84,12 +84,6 @@ export class ProjectDetailComponent implements OnInit, AfterViewInit, OnDestroy showTabName: "SCANNER.SCANNER", permissions: () => this.hasScannerReadPermission }, - { - linkName: "configs", - tabLinkInOverflow: false, - showTabName: "PROJECT_DETAIL.CONFIG", - permissions: () => this.isSessionValid && this.hasConfigurationListPermission - }, { linkName: "tag-strategy", tabLinkInOverflow: false, @@ -113,6 +107,12 @@ export class ProjectDetailComponent implements OnInit, AfterViewInit, OnDestroy tabLinkInOverflow: false, showTabName: "PROJECT_DETAIL.LOGS", permissions: () => this.hasLogListPermission + }, + { + linkName: "configs", + tabLinkInOverflow: false, + showTabName: "PROJECT_DETAIL.CONFIG", + permissions: () => this.isSessionValid && this.hasConfigurationListPermission } ]; previousWindowWidth: number; diff --git a/src/portal/src/app/project/project.component.scss b/src/portal/src/app/project/project.component.scss index 076ff00c7..7d6ab397f 100644 --- a/src/portal/src/app/project/project.component.scss +++ b/src/portal/src/app/project/project.component.scss @@ -1,6 +1,7 @@ @import "../../lib/mixin"; .header-title { - margin-top: 0; + margin-top: 34px; + margin-bottom: -34px; } .option-left { @@ -21,6 +22,7 @@ } .rightPos { @include grid-right-top-pos; + margin-top: 28px; } .projectPos { diff --git a/src/portal/src/app/project/scanner/scanner.component.html b/src/portal/src/app/project/scanner/scanner.component.html index 100850c77..d25396c5b 100644 --- a/src/portal/src/app/project/scanner/scanner.component.html +++ b/src/portal/src/app/project/scanner/scanner.component.html @@ -17,7 +17,6 @@
{{scanner?.name}} - {{'SCANNER.DISABLED' | translate}} {{'SCANNER.UNHEALTHY' | translate}} {{'SCANNER.HEALTHY' | translate}} @@ -62,7 +61,9 @@
+
+ -
+
diff --git a/src/portal/src/app/project/webhook/add-webhook-form/add-webhook-form.component.scss b/src/portal/src/app/project/webhook/add-webhook-form/add-webhook-form.component.scss index c436fa950..407273a5d 100644 --- a/src/portal/src/app/project/webhook/add-webhook-form/add-webhook-form.component.scss +++ b/src/portal/src/app/project/webhook/add-webhook-form/add-webhook-form.component.scss @@ -3,4 +3,8 @@ } .padding-top-3 { padding-top: 3px; +} +.bottom-btn { + text-align: right; + margin-right: 3.4rem; } \ No newline at end of file diff --git a/src/portal/src/app/shared/confirmation-dialog/confirmation-dialog.component.html b/src/portal/src/app/shared/confirmation-dialog/confirmation-dialog.component.html index cb8eb9e7e..c6e880edd 100644 --- a/src/portal/src/app/shared/confirmation-dialog/confirmation-dialog.component.html +++ b/src/portal/src/app/shared/confirmation-dialog/confirmation-dialog.component.html @@ -1,7 +1,7 @@