diff --git a/src/ui_ng/lib/src/repository/repository.component.css.ts b/src/ui_ng/lib/src/repository/repository.component.css.ts index 87edf988f..d86789591 100644 --- a/src/ui_ng/lib/src/repository/repository.component.css.ts +++ b/src/ui_ng/lib/src/repository/repository.component.css.ts @@ -3,13 +3,21 @@ export const REPOSITORY_STYLE = `.option-right { margin-bottom: 12px; } -.arrow-block a{ - text-decoration: none; - cursor: pointer; - color: #007cbb; - font-size: 12px; +.arrow-back { + cursor: pointer; } +.arrow-block { + border-right: 2px solid #cccccc; + margin-right: 6px; + display: inline-flex; + padding: 6px 6px 6px 12px; +} + +.title-block { + display: inline-block; +} + .tag-name { font-weight: 300; font-size: 32px; diff --git a/src/ui_ng/lib/src/repository/repository.component.html.ts b/src/ui_ng/lib/src/repository/repository.component.html.ts index a9d24918a..32d87bdc4 100644 --- a/src/ui_ng/lib/src/repository/repository.component.html.ts +++ b/src/ui_ng/lib/src/repository/repository.component.html.ts @@ -1,14 +1,18 @@ export const REPOSITORY_TEMPLATE = `
-
-
- < {{'SIDE_NAV.PROJECTS'| translate}} - < {{'REPOSITORY.REPOSITORIES'| translate}} +
+
+
-
+

{{repoName}}

+
+
+

{{repoName}}

+
+
diff --git a/src/ui_ng/lib/src/repository/repository.component.ts b/src/ui_ng/lib/src/repository/repository.component.ts index 5b8d715e1..ef61f8640 100644 --- a/src/ui_ng/lib/src/repository/repository.component.ts +++ b/src/ui_ng/lib/src/repository/repository.component.ts @@ -52,8 +52,7 @@ export class RepositoryComponent implements OnInit { @Input() hasProjectAdminRole: boolean; @Input() isGuest: boolean; @Output() tagClickEvent = new EventEmitter(); - @Output() backRepEvt: EventEmitter = new EventEmitter(); - @Output() backProEvt: EventEmitter = new EventEmitter(); + @Output() backEvt: EventEmitter = new EventEmitter(); onGoing = false; editing = false; @@ -156,11 +155,8 @@ export class RepositoryComponent implements OnInit { .catch(error => this.errorHandler.error(error)); } - goRepBack(): void { - this.backRepEvt.emit(this.projectId); - } - goProBack(): void { - this.backProEvt.emit(); + goBack(): void { + this.backEvt.emit(this.projectId); } hasChanges() { diff --git a/src/ui_ng/lib/src/tag/tag-detail.component.css.ts b/src/ui_ng/lib/src/tag/tag-detail.component.css.ts index a0a27b36a..a64cc44f2 100644 --- a/src/ui_ng/lib/src/tag/tag-detail.component.css.ts +++ b/src/ui_ng/lib/src/tag/tag-detail.component.css.ts @@ -10,10 +10,15 @@ export const TAG_DETAIL_STYLES: string = ` padding-right: 24px; } +.title-block { + display: inline-block; +} + .tag-name { font-weight: 300; font-size: 32px; } +.tag-name h2{margin-top:0;} .tag-timestamp { font-weight: 400; @@ -33,11 +38,19 @@ export const TAG_DETAIL_STYLES: string = ` transform: rotate(-90deg); } -.arrow-block a{ - text-decoration: none; +.arrow-back { cursor: pointer; - color: #007cbb; - font-size: 12px; +} + +.arrow-block { + border-right: 2px solid #cccccc; + margin-right: 6px; + display: inline-flex; + padding: 6px 6px 6px 12px; +} + +.title-block { + display: inline-block; } diff --git a/src/ui_ng/lib/src/tag/tag-detail.component.html.ts b/src/ui_ng/lib/src/tag/tag-detail.component.html.ts index b5ecad2d1..4a14756af 100644 --- a/src/ui_ng/lib/src/tag/tag-detail.component.html.ts +++ b/src/ui_ng/lib/src/tag/tag-detail.component.html.ts @@ -1,14 +1,17 @@ export const TAG_DETAIL_HTML: string = `
-
-
- < {{'SIDE_NAV.PROJECTS'| translate}} - < {{'REPOSITORY.REPOSITORIES'| translate}} - < {{repositoryId}} +
+
+
-
-

{{repositoryId}}:{{tagDetails.name}}

+
+

{{repositoryId}}:{{tagDetails.name}}

+
+
+
+
+

{{repositoryId}}:{{tagDetails.name}}

diff --git a/src/ui_ng/lib/src/tag/tag-detail.component.ts b/src/ui_ng/lib/src/tag/tag-detail.component.ts index 8b52fe1d8..5de443831 100644 --- a/src/ui_ng/lib/src/tag/tag-detail.component.ts +++ b/src/ui_ng/lib/src/tag/tag-detail.component.ts @@ -38,9 +38,7 @@ export class TagDetailComponent implements OnInit { labels: [], }; - @Output() backTagEvt: EventEmitter = new EventEmitter(); - @Output() backRepEvt: EventEmitter = new EventEmitter(); - @Output() backProEvt: EventEmitter = new EventEmitter(); + @Output() backEvt: EventEmitter = new EventEmitter(); constructor( private tagService: TagService, @@ -79,14 +77,8 @@ export class TagDetailComponent implements OnInit { } } - onBackTag(): void { - this.backTagEvt.emit(this.repositoryId); - } - onBackRep(): void { - this.backRepEvt.emit(); - } - onBackPro(): void { - this.backProEvt.emit(); + onBack(): void { + this.backEvt.emit(this.repositoryId); } getPackageText(count: number): string { diff --git a/src/ui_ng/package.json b/src/ui_ng/package.json index 90acc0295..c22a50693 100644 --- a/src/ui_ng/package.json +++ b/src/ui_ng/package.json @@ -30,7 +30,7 @@ "clarity-icons": "0.10.24", "clarity-ui": "0.10.24", "core-js": "^2.4.1", - "harbor-ui": "0.7.1", + "harbor-ui": "0.6.81", "intl": "^1.2.5", "mutationobserver-shim": "^0.3.2", "ngx-cookie": "^1.0.0", diff --git a/src/ui_ng/src/app/repository/tag-detail/tag-detail-page.component.html b/src/ui_ng/src/app/repository/tag-detail/tag-detail-page.component.html index 8702de646..0a7a030b8 100644 --- a/src/ui_ng/src/app/repository/tag-detail/tag-detail-page.component.html +++ b/src/ui_ng/src/app/repository/tag-detail/tag-detail-page.component.html @@ -1,3 +1,8 @@ \ No newline at end of file diff --git a/src/ui_ng/src/app/repository/tag-detail/tag-detail-page.component.ts b/src/ui_ng/src/app/repository/tag-detail/tag-detail-page.component.ts index 58cb17b3e..3f90c2123 100644 --- a/src/ui_ng/src/app/repository/tag-detail/tag-detail-page.component.ts +++ b/src/ui_ng/src/app/repository/tag-detail/tag-detail-page.component.ts @@ -17,7 +17,8 @@ import {AppConfigService} from "../../app-config.service"; @Component({ selector: 'repository', - templateUrl: 'tag-detail-page.component.html' + templateUrl: 'tag-detail-page.component.html', + styles: ['.arrow-block a{text-decoration: none; cursor: pointer; cursor: pointer; color: #007cbb; font-size: 12px;}'] }) export class TagDetailPageComponent implements OnInit { tagId: string; @@ -45,7 +46,7 @@ export class TagDetailPageComponent implements OnInit { return this.appConfigService.getConfig().with_clair; } - goBackTag(tag: string): void { + goBack(tag: string): void { this.router.navigate(["harbor", "projects", this.projectId, "repositories", tag]); } goBackRep(): void { diff --git a/src/ui_ng/src/app/repository/tag-repository/tag-repository.component.css b/src/ui_ng/src/app/repository/tag-repository/tag-repository.component.css index 23ed1fd3e..88e0424ba 100644 --- a/src/ui_ng/src/app/repository/tag-repository/tag-repository.component.css +++ b/src/ui_ng/src/app/repository/tag-repository/tag-repository.component.css @@ -1,3 +1,4 @@ .sub-header-title { margin-top: 12px; -} \ No newline at end of file +} +.arrow-block a{text-decoration: none; cursor: pointer; cursor: pointer; color: #007cbb; font-size: 12px;} \ No newline at end of file diff --git a/src/ui_ng/src/app/repository/tag-repository/tag-repository.component.html b/src/ui_ng/src/app/repository/tag-repository/tag-repository.component.html index a890efc50..a84b1ca09 100644 --- a/src/ui_ng/src/app/repository/tag-repository/tag-repository.component.html +++ b/src/ui_ng/src/app/repository/tag-repository/tag-repository.component.html @@ -1,4 +1,8 @@
+ + (tagClickEvent)="watchTagClickEvt($event)" (backEvt)="watchGoBackEvt($event)">
\ No newline at end of file diff --git a/src/ui_ng/src/app/repository/tag-repository/tag-repository.component.ts b/src/ui_ng/src/app/repository/tag-repository/tag-repository.component.ts index 1e75ddfab..656119022 100644 --- a/src/ui_ng/src/app/repository/tag-repository/tag-repository.component.ts +++ b/src/ui_ng/src/app/repository/tag-repository/tag-repository.component.ts @@ -85,7 +85,7 @@ export class TagRepositoryComponent implements OnInit { this.router.navigate(linkUrl); } - goRepBack(projectId: string): void { + watchGoBackEvt(projectId: string| number): void { this.router.navigate(["harbor", "projects", projectId, "repositories"]); } goProBack(): void {