Add a tooltip for the page title of security hub (#19231)

1. This tooltip explains the artifacts total count

Signed-off-by: AllForNothing <sshijun@vmware.com>
This commit is contained in:
Shijun Sun 2023-08-24 18:21:39 +08:00 committed by GitHub
parent 23fd87a316
commit dd90313c72
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
10 changed files with 33 additions and 9 deletions

View File

@ -5,6 +5,12 @@
{{ 'SECURITY_HUB.SCANNED' | translate }},
{{ securitySummary?.total_artifact - securitySummary?.scanned_cnt }}
{{ 'SECURITY_HUB.NOT_SCANNED' | translate }}
<clr-tooltip class="page-title-tooltip">
<clr-icon clrTooltipTrigger shape="info-circle" size="24"></clr-icon>
<clr-tooltip-content clrPosition="top-right" clrSize="lg" *clrIfOpen>
<span>{{ 'SECURITY_HUB.PAGE_TITLE_TOOLTIP' | translate }}</span>
</clr-tooltip-content>
</clr-tooltip>
</h2>
<div class="container">
<div class="card">

View File

@ -98,3 +98,13 @@ $row-height: 48px;
.clr-col {
min-width: 0;
}
.page-title-tooltip {
margin-left: 5px;
margin-top: -2px;
}
.h2 {
display: flex;
align-items: center;
}

View File

@ -1892,6 +1892,7 @@
"REPO_NAME": "Repository Name",
"TOOLTIP": "All filters except CVSS3 only support exact matches",
"NO_VUL": "We could not find any vulnerability",
"INVALID_VALUE": "Invalid range"
"INVALID_VALUE": "The CVSS3 score should range between 0 and 10",
"PAGE_TITLE_TOOLTIP": "The comprehensive artifact count comprises the cumulative total of individual artifacts, including artifact accessories, as well as child artifacts associated with the image index and CNAB artifacts"
}
}

View File

@ -1893,6 +1893,7 @@
"REPO_NAME": "Repository Name",
"TOOLTIP": "All filters except CVSS3 only support exact matches",
"NO_VUL": "We could not find any vulnerability",
"INVALID_VALUE": "Invalid range"
"INVALID_VALUE": "The CVSS3 score should range between 0 and 10",
"PAGE_TITLE_TOOLTIP": "The comprehensive artifact count comprises the cumulative total of individual artifacts, including artifact accessories, as well as child artifacts associated with the image index and CNAB artifacts"
}
}

View File

@ -1232,7 +1232,7 @@
"EXPLAIN_TIME_WINDOW": "Artifacts uploaded in the past 2 hours(the default window) are excluded from garbage collection",
"DRY_RUN_SUCCESS": "Triggered dry run successfully",
"DELETE_DETAIL": "{{blob}} blob(s) and {{manifest}} manifest(s) deleted, {{size}} space freed up",
"DELETE_DETAIL_DRY_RUN": "{{blob}} blob(s) and {{manifest}} manifest(s) could be deleted, {{size}} space could be freed up",,
"DELETE_DETAIL_DRY_RUN": "{{blob}} blob(s) and {{manifest}} manifest(s) could be deleted, {{size}} space could be freed up",
"WORKERS_TOOLTIP": "Set the number of workers that can execute GC tasks in parallel, the default value is 1."
},
"RETAG": {
@ -1889,6 +1889,7 @@
"REPO_NAME": "Repository Name",
"TOOLTIP": "All filters except CVSS3 only support exact matches",
"NO_VUL": "We could not find any vulnerability",
"INVALID_VALUE": "Invalid range"
"INVALID_VALUE": "The CVSS3 score should range between 0 and 10",
"PAGE_TITLE_TOOLTIP": "The comprehensive artifact count comprises the cumulative total of individual artifacts, including artifact accessories, as well as child artifacts associated with the image index and CNAB artifacts"
}
}

View File

@ -1859,6 +1859,7 @@
"REPO_NAME": "Repository Name",
"TOOLTIP": "All filters except CVSS3 only support exact matches",
"NO_VUL": "We could not find any vulnerability",
"INVALID_VALUE": "Invalid range"
"INVALID_VALUE": "The CVSS3 score should range between 0 and 10",
"PAGE_TITLE_TOOLTIP": "The comprehensive artifact count comprises the cumulative total of individual artifacts, including artifact accessories, as well as child artifacts associated with the image index and CNAB artifacts"
}
}

View File

@ -1889,6 +1889,7 @@
"REPO_NAME": "Repository Name",
"TOOLTIP": "All filters except CVSS3 only support exact matches",
"NO_VUL": "We could not find any vulnerability",
"INVALID_VALUE": "Invalid range"
"INVALID_VALUE": "The CVSS3 score should range between 0 and 10",
"PAGE_TITLE_TOOLTIP": "The comprehensive artifact count comprises the cumulative total of individual artifacts, including artifact accessories, as well as child artifacts associated with the image index and CNAB artifacts"
}
}

View File

@ -1892,6 +1892,7 @@
"REPO_NAME": "Repository Name",
"TOOLTIP": "All filters except CVSS3 only support exact matches",
"NO_VUL": "We could not find any vulnerability",
"INVALID_VALUE": "Invalid range"
"INVALID_VALUE": "The CVSS3 score should range between 0 and 10",
"PAGE_TITLE_TOOLTIP": "The comprehensive artifact count comprises the cumulative total of individual artifacts, including artifact accessories, as well as child artifacts associated with the image index and CNAB artifacts"
}
}

View File

@ -1889,6 +1889,7 @@
"REPO_NAME": "仓库名称",
"TOOLTIP": "CVSS3 除外的所有过滤项只支持精确匹配",
"NO_VUL": "未找到任何漏洞",
"INVALID_VALUE": "无效范围"
"INVALID_VALUE": "CVSS3 分数的范围为0到10",
"PAGE_TITLE_TOOLTIP": "Artifact 总数是指所有单个 Artifact 的总数, 它包含了 Artifact 的附件数量、镜像索引中的子 Artifact 数量和 CNAB 中的子 Artifact 数量"
}
}

View File

@ -1887,6 +1887,7 @@
"REPO_NAME": "儲存庫名稱",
"TOOLTIP": "除了 CVSS3 之外,所有的篩選條件都只支援完全符合",
"NO_VUL": "我們找不到任何弱點",
"INVALID_VALUE": "無效的範圍"
"INVALID_VALUE": "The CVSS3 score should range between 0 and 10",
"PAGE_TITLE_TOOLTIP": "The comprehensive artifact count comprises the cumulative total of individual artifacts, including artifact accessories, as well as child artifacts associated with the image index and CNAB artifacts"
}
}