mirror of
https://github.com/goharbor/harbor.git
synced 2025-01-27 18:11:26 +01:00
Merge pull request #6258 from ninjadq/add_helm_chart_count_number_on_project_list
Enhance: Add helm chart count number in the project list
This commit is contained in:
commit
b7c56edfb7
@ -10,6 +10,7 @@
|
|||||||
<clr-dg-column [clrDgSortBy]="accessLevelComparator">{{'PROJECT.ACCESS_LEVEL' | translate}}</clr-dg-column>
|
<clr-dg-column [clrDgSortBy]="accessLevelComparator">{{'PROJECT.ACCESS_LEVEL' | translate}}</clr-dg-column>
|
||||||
<clr-dg-column *ngIf="showRoleInfo" [clrDgSortBy]="roleComparator">{{'PROJECT.ROLE' | translate}}</clr-dg-column>
|
<clr-dg-column *ngIf="showRoleInfo" [clrDgSortBy]="roleComparator">{{'PROJECT.ROLE' | translate}}</clr-dg-column>
|
||||||
<clr-dg-column [clrDgSortBy]="repoCountComparator">{{'PROJECT.REPO_COUNT'| translate}}</clr-dg-column>
|
<clr-dg-column [clrDgSortBy]="repoCountComparator">{{'PROJECT.REPO_COUNT'| translate}}</clr-dg-column>
|
||||||
|
<clr-dg-column [clrDgSortBy]="chartCountComparator">{{'PROJECT.CHART_COUNT'| translate}}</clr-dg-column>
|
||||||
<clr-dg-column [clrDgSortBy]="timeComparator">{{'PROJECT.CREATION_TIME' | translate}}</clr-dg-column>
|
<clr-dg-column [clrDgSortBy]="timeComparator">{{'PROJECT.CREATION_TIME' | translate}}</clr-dg-column>
|
||||||
<clr-dg-row *ngFor="let p of projects" [clrDgItem]="p">
|
<clr-dg-row *ngFor="let p of projects" [clrDgItem]="p">
|
||||||
<clr-dg-cell>
|
<clr-dg-cell>
|
||||||
@ -18,6 +19,7 @@
|
|||||||
<clr-dg-cell>{{ (p.metadata.public === 'true' ? 'PROJECT.PUBLIC' : 'PROJECT.PRIVATE') | translate}}</clr-dg-cell>
|
<clr-dg-cell>{{ (p.metadata.public === 'true' ? 'PROJECT.PUBLIC' : 'PROJECT.PRIVATE') | translate}}</clr-dg-cell>
|
||||||
<clr-dg-cell *ngIf="showRoleInfo">{{roleInfo[p.current_user_role_id] | translate}}</clr-dg-cell>
|
<clr-dg-cell *ngIf="showRoleInfo">{{roleInfo[p.current_user_role_id] | translate}}</clr-dg-cell>
|
||||||
<clr-dg-cell>{{p.repo_count}}</clr-dg-cell>
|
<clr-dg-cell>{{p.repo_count}}</clr-dg-cell>
|
||||||
|
<clr-dg-cell>{{p.chart_count}}</clr-dg-cell>
|
||||||
<clr-dg-cell>{{p.creation_time | date: 'short'}}</clr-dg-cell>
|
<clr-dg-cell>{{p.creation_time | date: 'short'}}</clr-dg-cell>
|
||||||
</clr-dg-row>
|
</clr-dg-row>
|
||||||
<clr-dg-footer>
|
<clr-dg-footer>
|
||||||
|
@ -56,6 +56,7 @@ export class ListProjectComponent implements OnDestroy {
|
|||||||
|
|
||||||
roleInfo = RoleInfo;
|
roleInfo = RoleInfo;
|
||||||
repoCountComparator: Comparator<Project> = new CustomComparator<Project>("repo_count", "number");
|
repoCountComparator: Comparator<Project> = new CustomComparator<Project>("repo_count", "number");
|
||||||
|
chartCountComparator: Comparator<Project> = new CustomComparator<Project>("chart_count", "number");
|
||||||
timeComparator: Comparator<Project> = new CustomComparator<Project>("creation_time", "date");
|
timeComparator: Comparator<Project> = new CustomComparator<Project>("creation_time", "date");
|
||||||
accessLevelComparator: Comparator<Project> = new CustomComparator<Project>("public", "string");
|
accessLevelComparator: Comparator<Project> = new CustomComparator<Project>("public", "string");
|
||||||
roleComparator: Comparator<Project> = new CustomComparator<Project>("current_user_role_id", "number");
|
roleComparator: Comparator<Project> = new CustomComparator<Project>("current_user_role_id", "number");
|
||||||
|
@ -41,6 +41,7 @@ export class Project {
|
|||||||
update_time: Date;
|
update_time: Date;
|
||||||
current_user_role_id: number;
|
current_user_role_id: number;
|
||||||
repo_count: number;
|
repo_count: number;
|
||||||
|
chart_count: number;
|
||||||
has_project_admin_role: boolean;
|
has_project_admin_role: boolean;
|
||||||
is_member: boolean;
|
is_member: boolean;
|
||||||
role_name: string;
|
role_name: string;
|
||||||
|
@ -153,6 +153,7 @@
|
|||||||
"ROLE": "Role",
|
"ROLE": "Role",
|
||||||
"PUBLIC_OR_PRIVATE": "Access Level",
|
"PUBLIC_OR_PRIVATE": "Access Level",
|
||||||
"REPO_COUNT": "Repositories Count",
|
"REPO_COUNT": "Repositories Count",
|
||||||
|
"CHART_COUNT": "Chart Count",
|
||||||
"CREATION_TIME": "Creation Time",
|
"CREATION_TIME": "Creation Time",
|
||||||
"ACCESS_LEVEL": "Access Level",
|
"ACCESS_LEVEL": "Access Level",
|
||||||
"PUBLIC": "Public",
|
"PUBLIC": "Public",
|
||||||
|
@ -154,6 +154,7 @@
|
|||||||
"PUBLIC_OR_PRIVATE": "Público",
|
"PUBLIC_OR_PRIVATE": "Público",
|
||||||
"ACCESS_LEVEL": "Nivel de acceso",
|
"ACCESS_LEVEL": "Nivel de acceso",
|
||||||
"REPO_COUNT": "Contador de repositorios",
|
"REPO_COUNT": "Contador de repositorios",
|
||||||
|
"CHART_COUNT": "Chart Count",
|
||||||
"CREATION_TIME": "Fecha de creación",
|
"CREATION_TIME": "Fecha de creación",
|
||||||
"PUBLIC": "Público",
|
"PUBLIC": "Público",
|
||||||
"PRIVATE": "Privado",
|
"PRIVATE": "Privado",
|
||||||
|
@ -139,6 +139,7 @@
|
|||||||
"ROLE": "Rôle",
|
"ROLE": "Rôle",
|
||||||
"PUBLIC_OR_PRIVATE": "Niveau d'Accès",
|
"PUBLIC_OR_PRIVATE": "Niveau d'Accès",
|
||||||
"REPO_COUNT": "Nombre de dépôts",
|
"REPO_COUNT": "Nombre de dépôts",
|
||||||
|
"CHART_COUNT": "Chart Count",
|
||||||
"CREATION_TIME": "Heure de création",
|
"CREATION_TIME": "Heure de création",
|
||||||
"ACCESS_LEVEL": "Niveau d'Accès",
|
"ACCESS_LEVEL": "Niveau d'Accès",
|
||||||
"PUBLIC": "Public",
|
"PUBLIC": "Public",
|
||||||
|
@ -151,6 +151,7 @@
|
|||||||
"ROLE": "Função",
|
"ROLE": "Função",
|
||||||
"PUBLIC_OR_PRIVATE": "Nível de acesso",
|
"PUBLIC_OR_PRIVATE": "Nível de acesso",
|
||||||
"REPO_COUNT": "Quantidade de repositórios",
|
"REPO_COUNT": "Quantidade de repositórios",
|
||||||
|
"CHART_COUNT": "Chart Count",
|
||||||
"CREATION_TIME": "Data de criação",
|
"CREATION_TIME": "Data de criação",
|
||||||
"ACCESS_LEVEL": "Nível de acesso",
|
"ACCESS_LEVEL": "Nível de acesso",
|
||||||
"PUBLIC": "Público",
|
"PUBLIC": "Público",
|
||||||
|
@ -152,6 +152,7 @@
|
|||||||
"ROLE": "角色",
|
"ROLE": "角色",
|
||||||
"PUBLIC_OR_PRIVATE": "访问级别",
|
"PUBLIC_OR_PRIVATE": "访问级别",
|
||||||
"REPO_COUNT": "镜像仓库数",
|
"REPO_COUNT": "镜像仓库数",
|
||||||
|
"CHART_COUNT": "Helm Chart 数目",
|
||||||
"CREATION_TIME": "创建时间",
|
"CREATION_TIME": "创建时间",
|
||||||
"ACCESS_LEVEL": "访问级别",
|
"ACCESS_LEVEL": "访问级别",
|
||||||
"PUBLIC": "公开",
|
"PUBLIC": "公开",
|
||||||
|
Loading…
Reference in New Issue
Block a user