mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-23 18:55:18 +01:00
Merge pull request #6609 from pureshine/devcenter-btn
Modify the location to open the Developer Center
This commit is contained in:
commit
5967537daa
@ -10,6 +10,7 @@
|
||||
<router-outlet></router-outlet>
|
||||
</div>
|
||||
<clr-vertical-nav [clrVerticalNavCollapsible]="true" *ngIf="isUserExisting">
|
||||
<div>
|
||||
<a clrVerticalNavLink routerLinkActive="active" routerLink="/harbor/projects">
|
||||
<clr-icon shape="organization" clrVerticalNavIcon></clr-icon>
|
||||
{{'SIDE_NAV.PROJECTS' | translate}}
|
||||
@ -18,10 +19,6 @@
|
||||
<clr-icon shape="list" clrVerticalNavIcon></clr-icon>
|
||||
{{'SIDE_NAV.LOGS' | translate}}
|
||||
</a>
|
||||
<a clrVerticalNavLink target="_blank" routerLink="/devcenter" routerLinkActive="active">
|
||||
<clr-icon shape="terminal" clrVerticalNavIcon></clr-icon>
|
||||
{{'SIDE_NAV.SYSTEM_MGMT.DEVCENTER' | translate}}
|
||||
</a>
|
||||
<clr-vertical-nav-group *ngIf="isSystemAdmin" routerLinkActive="active">
|
||||
<clr-icon shape="administrator" clrVerticalNavIcon></clr-icon>
|
||||
{{'SIDE_NAV.SYSTEM_MGMT.NAME' | translate}}
|
||||
@ -49,6 +46,14 @@
|
||||
</a>
|
||||
</clr-vertical-nav-group-children>
|
||||
</clr-vertical-nav-group>
|
||||
</div>
|
||||
<div class="vertical-nav-footer">
|
||||
<a clrVerticalNavLink target="_blank" routerLink="/devcenter">
|
||||
<button type="button" class="btn btn-sm api-button">
|
||||
<span>{{'SIDE_NAV.API_EXPLORER' | translate }}</span>
|
||||
</button>
|
||||
</a>
|
||||
</div>
|
||||
</clr-vertical-nav>
|
||||
<hbr-operation-model *ngIf="isUserExisting"></hbr-operation-model>
|
||||
</div>
|
||||
|
@ -24,6 +24,29 @@
|
||||
.nav-link-override {
|
||||
width: 126px !important;
|
||||
}
|
||||
:host >>> .clr-vertical-nav .nav-trigger+.nav-content{
|
||||
padding-top: 0;
|
||||
|
||||
clr-vertical-nav {
|
||||
::ng-deep {
|
||||
.nav-content {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
}
|
||||
}
|
||||
.vertical-nav-footer {
|
||||
margin: 15px 20px;
|
||||
a {
|
||||
display: inline-block;
|
||||
line-height: 0;
|
||||
padding: 0;
|
||||
height: 24px;
|
||||
&:hover {
|
||||
background: transparent;
|
||||
cursor: default;
|
||||
}
|
||||
.api-button {
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -122,10 +122,10 @@
|
||||
"GROUP": "Groups",
|
||||
"REGISTRY": "Registries",
|
||||
"REPLICATION": "Replications",
|
||||
"CONFIG": "Configuration",
|
||||
"DEVCENTER": "Developer Center"
|
||||
"CONFIG": "Configuration"
|
||||
},
|
||||
"LOGS": "Logs"
|
||||
"LOGS": "Logs",
|
||||
"API_EXPLORER": "API EXPLORER"
|
||||
},
|
||||
"USER": {
|
||||
"ADD_ACTION": "New User",
|
||||
|
@ -122,10 +122,10 @@
|
||||
"REGISTRY": "Registries",
|
||||
"GROUP": "Groups",
|
||||
"REPLICATION": "Replicacións",
|
||||
"CONFIG": "Configuración",
|
||||
"DEVCENTER": "Developer Center"
|
||||
"CONFIG": "Configuración"
|
||||
},
|
||||
"LOGS": "Logs"
|
||||
"LOGS": "Logs",
|
||||
"API_EXPLORER": "API EXPLORER"
|
||||
},
|
||||
"USER": {
|
||||
"ADD_ACTION": "New User",
|
||||
|
@ -108,10 +108,10 @@
|
||||
"USER": "Utilisateurs",
|
||||
"GROUP": "Groups",
|
||||
"REPLICATION": "Réplication",
|
||||
"CONFIG": "Configuration",
|
||||
"DEVCENTER": "Developer Center"
|
||||
"CONFIG": "Configuration"
|
||||
},
|
||||
"LOGS": "Logs"
|
||||
"LOGS": "Logs",
|
||||
"API_EXPLORER": "API EXPLORER"
|
||||
},
|
||||
"USER": {
|
||||
"ADD_ACTION": "UTILISATEUR",
|
||||
|
@ -120,10 +120,10 @@
|
||||
"GROUP": "Grupos",
|
||||
"REGISTRY": "Registros",
|
||||
"REPLICATION": "Replicações",
|
||||
"CONFIG": "Configuração",
|
||||
"DEVCENTER": "Developer Center"
|
||||
"CONFIG": "Configuração"
|
||||
},
|
||||
"LOGS": "Logs"
|
||||
"LOGS": "Logs",
|
||||
"API_EXPLORER": "API EXPLORER"
|
||||
},
|
||||
"USER": {
|
||||
"ADD_ACTION": "Novo Usuário",
|
||||
|
@ -121,10 +121,10 @@
|
||||
"GROUP": "组管理",
|
||||
"REGISTRY": "仓库管理",
|
||||
"REPLICATION": "复制管理",
|
||||
"CONFIG": "配置管理",
|
||||
"DEVCENTER": "开发者中心"
|
||||
"CONFIG": "配置管理"
|
||||
},
|
||||
"LOGS": "日志"
|
||||
"LOGS": "日志",
|
||||
"API_EXPLORER": "API控制中心"
|
||||
},
|
||||
"USER": {
|
||||
"ADD_ACTION": "创建用户",
|
||||
|
Loading…
Reference in New Issue
Block a user