forked from goharbor/harbor
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request goharbor#9663 from AllForNothing/nav-modify
Modify harbor-shell UI
- Loading branch information
Showing
34 changed files
with
380 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -164,3 +164,6 @@ hr{ | |
.margin-top-m15{ | ||
margin-top: -15px; | ||
} | ||
.no-border { | ||
border: none; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,4 +29,7 @@ clr-icon:hover { | |
} | ||
.clr-form-control-disabled { | ||
opacity: 1; | ||
} | ||
} | ||
.v-mid { | ||
vertical-align: middle; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
.gc-title { | ||
display: inline-block; | ||
} | ||
} | ||
.v-mid { | ||
vertical-align: middle; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
src/portal/src/app/interrogation-services/interrogation-services.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<h2 class="custom-h2" sub-header-title>{{'SIDE_NAV.SYSTEM_MGMT.INTERROGATION_SERVICES' | translate}}</h2> | ||
<nav class="subnav sub-nav-bg-color mt-1"> | ||
<ul class="nav"> | ||
<li class="nav-item"> | ||
<a class="nav-link" routerLink="scanners" routerLinkActive="active">{{'SCANNER.SCANNERS' | translate }}</a> | ||
</li> | ||
<li class="nav-item"> | ||
<a class="nav-link" routerLink="vulnerability" routerLinkActive="active">{{'CONFIG.VULNERABILITY' | translate }}</a> | ||
</li> | ||
</ul> | ||
</nav> | ||
<router-outlet></router-outlet> | ||
|
||
|
26 changes: 26 additions & 0 deletions
26
src/portal/src/app/interrogation-services/interrogation-services.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
.sub-header-title { | ||
margin-top: 12px; | ||
margin-bottom: 12px; | ||
} | ||
|
||
.sub-nav-bg-color { | ||
background-color: #fafafa; | ||
} | ||
|
||
.subnav { | ||
.nav { | ||
padding-left: 0; | ||
} | ||
} | ||
|
||
.role-label { | ||
color: #CCCCCC; | ||
font-size: 14px; | ||
font-style: italic; | ||
letter-spacing: 0.01em; | ||
} | ||
.backStyle{ | ||
color: #007cbb; | ||
font-size: 12px; | ||
cursor: pointer; | ||
} |
37 changes: 37 additions & 0 deletions
37
src/portal/src/app/interrogation-services/interrogation-services.component.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; | ||
import { InterrogationServicesComponent } from './interrogation-services.component'; | ||
import { SharedModule } from "../shared/shared.module"; | ||
import { BrowserAnimationsModule } from "@angular/platform-browser/animations"; | ||
import { ClarityModule } from "@clr/angular"; | ||
import { TranslateService } from "@ngx-translate/core"; | ||
import { CUSTOM_ELEMENTS_SCHEMA } from "@angular/core"; | ||
|
||
describe('InterrogationServicesComponent', () => { | ||
let component: InterrogationServicesComponent; | ||
let fixture: ComponentFixture<InterrogationServicesComponent>; | ||
beforeEach(async(() => { | ||
TestBed.configureTestingModule({ | ||
imports: [ | ||
SharedModule, | ||
BrowserAnimationsModule, | ||
ClarityModule, | ||
], | ||
declarations: [ InterrogationServicesComponent ], | ||
providers: [TranslateService], | ||
schemas: [ | ||
CUSTOM_ELEMENTS_SCHEMA | ||
], | ||
}) | ||
.compileComponents(); | ||
})); | ||
|
||
beforeEach(() => { | ||
fixture = TestBed.createComponent(InterrogationServicesComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
15 changes: 15 additions & 0 deletions
15
src/portal/src/app/interrogation-services/interrogation-services.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { Component, OnInit } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'app-interrogation-services', | ||
templateUrl: './interrogation-services.component.html', | ||
styleUrls: ['./interrogation-services.component.scss'] | ||
}) | ||
export class InterrogationServicesComponent implements OnInit { | ||
|
||
constructor( | ||
) {} | ||
|
||
ngOnInit() { | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<h2 class="custom-h2" sub-header-title>{{'CONFIG.LABEL' | translate }}</h2> | ||
<hbr-label [scope]="'g'" | ||
[hasCreateLabelPermission]="true" | ||
[hasUpdateLabelPermission]="true" | ||
[hasDeleteLabelPermission]="true"></hbr-label> |
Oops, something went wrong.