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>
|
<router-outlet></router-outlet>
|
||||||
</div>
|
</div>
|
||||||
<clr-vertical-nav [clrVerticalNavCollapsible]="true" *ngIf="isUserExisting">
|
<clr-vertical-nav [clrVerticalNavCollapsible]="true" *ngIf="isUserExisting">
|
||||||
|
<div>
|
||||||
<a clrVerticalNavLink routerLinkActive="active" routerLink="/harbor/projects">
|
<a clrVerticalNavLink routerLinkActive="active" routerLink="/harbor/projects">
|
||||||
<clr-icon shape="organization" clrVerticalNavIcon></clr-icon>
|
<clr-icon shape="organization" clrVerticalNavIcon></clr-icon>
|
||||||
{{'SIDE_NAV.PROJECTS' | translate}}
|
{{'SIDE_NAV.PROJECTS' | translate}}
|
||||||
@ -18,10 +19,6 @@
|
|||||||
<clr-icon shape="list" clrVerticalNavIcon></clr-icon>
|
<clr-icon shape="list" clrVerticalNavIcon></clr-icon>
|
||||||
{{'SIDE_NAV.LOGS' | translate}}
|
{{'SIDE_NAV.LOGS' | translate}}
|
||||||
</a>
|
</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-vertical-nav-group *ngIf="isSystemAdmin" routerLinkActive="active">
|
||||||
<clr-icon shape="administrator" clrVerticalNavIcon></clr-icon>
|
<clr-icon shape="administrator" clrVerticalNavIcon></clr-icon>
|
||||||
{{'SIDE_NAV.SYSTEM_MGMT.NAME' | translate}}
|
{{'SIDE_NAV.SYSTEM_MGMT.NAME' | translate}}
|
||||||
@ -49,6 +46,14 @@
|
|||||||
</a>
|
</a>
|
||||||
</clr-vertical-nav-group-children>
|
</clr-vertical-nav-group-children>
|
||||||
</clr-vertical-nav-group>
|
</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>
|
</clr-vertical-nav>
|
||||||
<hbr-operation-model *ngIf="isUserExisting"></hbr-operation-model>
|
<hbr-operation-model *ngIf="isUserExisting"></hbr-operation-model>
|
||||||
</div>
|
</div>
|
||||||
|
@ -24,6 +24,29 @@
|
|||||||
.nav-link-override {
|
.nav-link-override {
|
||||||
width: 126px !important;
|
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",
|
"GROUP": "Groups",
|
||||||
"REGISTRY": "Registries",
|
"REGISTRY": "Registries",
|
||||||
"REPLICATION": "Replications",
|
"REPLICATION": "Replications",
|
||||||
"CONFIG": "Configuration",
|
"CONFIG": "Configuration"
|
||||||
"DEVCENTER": "Developer Center"
|
|
||||||
},
|
},
|
||||||
"LOGS": "Logs"
|
"LOGS": "Logs",
|
||||||
|
"API_EXPLORER": "API EXPLORER"
|
||||||
},
|
},
|
||||||
"USER": {
|
"USER": {
|
||||||
"ADD_ACTION": "New User",
|
"ADD_ACTION": "New User",
|
||||||
|
@ -122,10 +122,10 @@
|
|||||||
"REGISTRY": "Registries",
|
"REGISTRY": "Registries",
|
||||||
"GROUP": "Groups",
|
"GROUP": "Groups",
|
||||||
"REPLICATION": "Replicacións",
|
"REPLICATION": "Replicacións",
|
||||||
"CONFIG": "Configuración",
|
"CONFIG": "Configuración"
|
||||||
"DEVCENTER": "Developer Center"
|
|
||||||
},
|
},
|
||||||
"LOGS": "Logs"
|
"LOGS": "Logs",
|
||||||
|
"API_EXPLORER": "API EXPLORER"
|
||||||
},
|
},
|
||||||
"USER": {
|
"USER": {
|
||||||
"ADD_ACTION": "New User",
|
"ADD_ACTION": "New User",
|
||||||
|
@ -108,10 +108,10 @@
|
|||||||
"USER": "Utilisateurs",
|
"USER": "Utilisateurs",
|
||||||
"GROUP": "Groups",
|
"GROUP": "Groups",
|
||||||
"REPLICATION": "Réplication",
|
"REPLICATION": "Réplication",
|
||||||
"CONFIG": "Configuration",
|
"CONFIG": "Configuration"
|
||||||
"DEVCENTER": "Developer Center"
|
|
||||||
},
|
},
|
||||||
"LOGS": "Logs"
|
"LOGS": "Logs",
|
||||||
|
"API_EXPLORER": "API EXPLORER"
|
||||||
},
|
},
|
||||||
"USER": {
|
"USER": {
|
||||||
"ADD_ACTION": "UTILISATEUR",
|
"ADD_ACTION": "UTILISATEUR",
|
||||||
|
@ -120,10 +120,10 @@
|
|||||||
"GROUP": "Grupos",
|
"GROUP": "Grupos",
|
||||||
"REGISTRY": "Registros",
|
"REGISTRY": "Registros",
|
||||||
"REPLICATION": "Replicações",
|
"REPLICATION": "Replicações",
|
||||||
"CONFIG": "Configuração",
|
"CONFIG": "Configuração"
|
||||||
"DEVCENTER": "Developer Center"
|
|
||||||
},
|
},
|
||||||
"LOGS": "Logs"
|
"LOGS": "Logs",
|
||||||
|
"API_EXPLORER": "API EXPLORER"
|
||||||
},
|
},
|
||||||
"USER": {
|
"USER": {
|
||||||
"ADD_ACTION": "Novo Usuário",
|
"ADD_ACTION": "Novo Usuário",
|
||||||
|
@ -121,10 +121,10 @@
|
|||||||
"GROUP": "组管理",
|
"GROUP": "组管理",
|
||||||
"REGISTRY": "仓库管理",
|
"REGISTRY": "仓库管理",
|
||||||
"REPLICATION": "复制管理",
|
"REPLICATION": "复制管理",
|
||||||
"CONFIG": "配置管理",
|
"CONFIG": "配置管理"
|
||||||
"DEVCENTER": "开发者中心"
|
|
||||||
},
|
},
|
||||||
"LOGS": "日志"
|
"LOGS": "日志",
|
||||||
|
"API_EXPLORER": "API控制中心"
|
||||||
},
|
},
|
||||||
"USER": {
|
"USER": {
|
||||||
"ADD_ACTION": "创建用户",
|
"ADD_ACTION": "创建用户",
|
||||||
|
Loading…
Reference in New Issue
Block a user