chore: add build number to license (#57)

Co-authored-by: yaojiping <yaojiping@infini.ltd>
This commit is contained in:
yaojp123 2024-12-24 18:08:28 +08:00 committed by GitHub
parent edaa276ac3
commit 53178fa869
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 8 additions and 1 deletions

View File

@ -8,7 +8,7 @@ import { getWebsitePathByLang } from "@/utils/utils";
const { Paragraph, Text } = Typography;
export default ({ application, licence }) => {
const { number, build_date, build_hash } = application?.version || {};
const { number, build_number, build_date, build_hash } = application?.version || {};
return (
<div className={styles.version}>
@ -24,6 +24,11 @@ export default ({ application, licence }) => {
>
{moment(build_date).format(DATE_FORMAT)}
</Descriptions.Item>
<Descriptions.Item
label={formatMessage({ id: "license.label.build_number" })}
>
{build_number}
</Descriptions.Item>
<Descriptions.Item label="Hash">{build_hash}</Descriptions.Item>
</Descriptions>
</div>

View File

@ -5,6 +5,7 @@ export default {
"license.tab.license.title": "License",
"license.label.version": "Version",
"license.label.build_time": "Build Time",
"license.label.build_number": "Build Number",
"license.label.license_type": "License Type",
"license.label.max_nodes": "Maximum Nodes",
"license.label.issue_to": "Issue To",

View File

@ -5,6 +5,7 @@ export default {
"license.tab.license.title": "授权信息",
"license.label.version": "版本",
"license.label.build_time": "编译时间",
"license.label.build_number": "编译版本号",
"license.label.license_type": "授权类型",
"license.label.max_nodes": "最大节点数",
"license.label.issue_to": "授权对象",