fix(web): app release page version
This commit is contained in:
@@ -508,7 +508,7 @@ export const zh = {
|
|||||||
VersionInformation: '版本信息',
|
VersionInformation: '版本信息',
|
||||||
publishedOn: '发布于',
|
publishedOn: '发布于',
|
||||||
publisher: '发布者',
|
publisher: '发布者',
|
||||||
DetailsOfVersion: 'v{{version}}版本详情',
|
DetailsOfVersion: '{{version}}版本详情',
|
||||||
exportDSLFile: '导出DSL文件',
|
exportDSLFile: '导出DSL文件',
|
||||||
willRollToThisVersion: '将回滚到此版本',
|
willRollToThisVersion: '将回滚到此版本',
|
||||||
share: '分享',
|
share: '分享',
|
||||||
|
|||||||
@@ -47,11 +47,11 @@ const ReleasePage: FC<{data: Application; refresh: () => void}> = ({data, refres
|
|||||||
}
|
}
|
||||||
return (
|
return (
|
||||||
<div className="rb:flex rb:h-[calc(100vh-64px)]">
|
<div className="rb:flex rb:h-[calc(100vh-64px)]">
|
||||||
<div className="rb:h-full rb:overflow-y-auto rb:w-[432px] rb:flex-[0_0_auto] rb:border-r-[1px] rb:border-[#DFE4ED] rb:p-[16px]">
|
<div className="rb:h-full rb:overflow-y-auto rb:w-108 rb:flex-[0_0_auto] rb:border-r rb:border-[#DFE4ED] rb:p-4">
|
||||||
<Space size={16} direction="vertical" style={{ width: '100%' }}>
|
<Space size={16} direction="vertical" style={{ width: '100%' }}>
|
||||||
<div className="rb:leading-[22px] rb:px-[4px]">
|
<div className="rb:leading-5.5 rb:px-1">
|
||||||
{t('application.versionList')}
|
{t('application.versionList')}
|
||||||
<div className="rb:text-[12px] rb:text-[#5B6167] rb:mt-[4px] rb:leading-[16px]">{t('application.versionListDesc')}</div>
|
<div className="rb:text-[12px] rb:text-[#5B6167] rb:mt-1 rb:leading-4">{t('application.versionListDesc')}</div>
|
||||||
</div>
|
</div>
|
||||||
{releaseList.length === 0
|
{releaseList.length === 0
|
||||||
? <Empty />
|
? <Empty />
|
||||||
@@ -64,8 +64,8 @@ const ReleasePage: FC<{data: Application; refresh: () => void}> = ({data, refres
|
|||||||
<RbCard
|
<RbCard
|
||||||
key={version.version}
|
key={version.version}
|
||||||
title={<>
|
title={<>
|
||||||
{version.version_name || `v${version.version}`}
|
{version.version_name && version.version_name[0].toLocaleLowerCase() === 'v' ? version.version_name : version.version_name ? `v${version.version_name}` : `v${version.version}`}
|
||||||
{tagKey && <Tag color={tagColors[tagKey]} className="rb:ml-[8px]">
|
{tagKey && <Tag color={tagColors[tagKey]} className="rb:ml-2">
|
||||||
{tagKey}
|
{tagKey}
|
||||||
</Tag>}
|
</Tag>}
|
||||||
</>}
|
</>}
|
||||||
@@ -76,13 +76,13 @@ const ReleasePage: FC<{data: Application; refresh: () => void}> = ({data, refres
|
|||||||
headerType="borderless"
|
headerType="borderless"
|
||||||
onClick={() => setSelectedVersion(version)}
|
onClick={() => setSelectedVersion(version)}
|
||||||
>
|
>
|
||||||
<div className="rb:leading-[20px] rb:line-clamp-2 rb:overflow-hidden rb:text-ellipsis rb:whitespace-nowrap">
|
<div className="rb:leading-5 rb:line-clamp-2 rb:overflow-hidden rb:text-ellipsis rb:whitespace-nowrap">
|
||||||
<Markdown content={version.release_notes} />
|
<Markdown content={version.release_notes} />
|
||||||
</div>
|
</div>
|
||||||
<div className="rb:mt-[16px] rb:text-[12px] rb:text-[#5B6167] rb:leading-[16px]">
|
<div className="rb:mt-4 rb:text-[12px] rb:text-[#5B6167] rb:leading-4">
|
||||||
{t('application.publishedOn')} {formatDateTime(version.published_at, 'YYYY-MM-DD HH:mm:ss')}
|
{t('application.publishedOn')} {formatDateTime(version.published_at, 'YYYY-MM-DD HH:mm:ss')}
|
||||||
</div>
|
</div>
|
||||||
<div className="rb:text-[12px] rb:text-[#5B6167] rb:mt-[4px] rb:leading-[16px]">
|
<div className="rb:text-[12px] rb:text-[#5B6167] rb:mt-1 rb:leading-4">
|
||||||
{t('application.publisher')}: {version.publisher_name}
|
{t('application.publisher')}: {version.publisher_name}
|
||||||
</div>
|
</div>
|
||||||
</RbCard>
|
</RbCard>
|
||||||
@@ -91,13 +91,13 @@ const ReleasePage: FC<{data: Application; refresh: () => void}> = ({data, refres
|
|||||||
}
|
}
|
||||||
</Space>
|
</Space>
|
||||||
</div>
|
</div>
|
||||||
<div className="rb:h-full rb:overflow-y-auto rb:flex-[1_1_auto] rb:p-[16px]">
|
<div className="rb:h-full rb:overflow-y-auto rb:flex-[1_1_auto] rb:p-4">
|
||||||
<Form layout="vertical">
|
<Form layout="vertical">
|
||||||
<div className={clsx("rb:leading-[22px] rb:px-[4px] rb:flex rb:items-center rb:text-[16px] rb:font-medium rb:mb-[21px]", {
|
<div className={clsx("rb:leading-5.5 rb:px-1 rb:flex rb:items-center rb:text-[16px] rb:font-medium rb:mb-5.25", {
|
||||||
'rb:justify-between': selectedVersion,
|
'rb:justify-between': selectedVersion,
|
||||||
'rb:justify-end': !selectedVersion
|
'rb:justify-end': !selectedVersion
|
||||||
})}>
|
})}>
|
||||||
{selectedVersion && t('application.DetailsOfVersion', { version: selectedVersion.version_name || `v${selectedVersion.version}` || '-' })}
|
{selectedVersion && t('application.DetailsOfVersion', { version: selectedVersion.version_name && selectedVersion.version_name[0].toLocaleLowerCase() === 'v' ? selectedVersion.version_name : selectedVersion.version_name ? `v${selectedVersion.version_name}` : `v${selectedVersion.version}` || '-' })}
|
||||||
|
|
||||||
<Space size={10}>
|
<Space size={10}>
|
||||||
{selectedVersion && <>
|
{selectedVersion && <>
|
||||||
@@ -111,14 +111,14 @@ const ReleasePage: FC<{data: Application; refresh: () => void}> = ({data, refres
|
|||||||
{selectedVersion &&
|
{selectedVersion &&
|
||||||
<Space size={16} direction="vertical" style={{ width: '100%' }}>
|
<Space size={16} direction="vertical" style={{ width: '100%' }}>
|
||||||
<RbCard title={t('application.VersionInformation')} headerType="borderless">
|
<RbCard title={t('application.VersionInformation')} headerType="borderless">
|
||||||
<div className="rb:grid rb:grid-cols-3 rb:gap-[16px]">
|
<div className="rb:grid rb:grid-cols-3 rb:gap-4">
|
||||||
<Form.Item label={t('application.releaseTime')} className="rb:mb-[0]!">
|
<Form.Item label={t('application.releaseTime')} className="rb:mb-0!">
|
||||||
<Input value={formatDateTime(selectedVersion.published_at, 'YYYY-MM-DD HH:mm:ss')} disabled />
|
<Input value={formatDateTime(selectedVersion.published_at, 'YYYY-MM-DD HH:mm:ss')} disabled />
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
<Form.Item label={t('application.lastUpdateTime')} className="rb:mb-[0]!">
|
<Form.Item label={t('application.lastUpdateTime')} className="rb:mb-0!">
|
||||||
<Input value={formatDateTime(selectedVersion.updated_at, 'YYYY-MM-DD HH:mm:ss')} disabled />
|
<Input value={formatDateTime(selectedVersion.updated_at, 'YYYY-MM-DD HH:mm:ss')} disabled />
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
<Form.Item label={t('application.editor')} className="rb:mb-[0]!">
|
<Form.Item label={t('application.editor')} className="rb:mb-0!">
|
||||||
<Input value={selectedVersion.publisher_name} disabled />
|
<Input value={selectedVersion.publisher_name} disabled />
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
</div>
|
</div>
|
||||||
@@ -131,9 +131,9 @@ const ReleasePage: FC<{data: Application; refresh: () => void}> = ({data, refres
|
|||||||
<RbCard
|
<RbCard
|
||||||
headerType="borderBL"
|
headerType="borderBL"
|
||||||
title={<div className="rb:text-[14px]">{formatDateTime(selectedVersion.published_at, 'YYYY-MM-DD HH:mm:ss')}</div>}
|
title={<div className="rb:text-[14px]">{formatDateTime(selectedVersion.published_at, 'YYYY-MM-DD HH:mm:ss')}</div>}
|
||||||
extra={<span className="rb:text-[12px] rb:text-[#5B6167] rb:leading-[16px]">{selectedVersion.publisher_name}</span>}
|
extra={<span className="rb:text-[12px] rb:text-[#5B6167] rb:leading-4">{selectedVersion.publisher_name}</span>}
|
||||||
>
|
>
|
||||||
<div className="rb:leading-[20px] rb:font-medium rb:font-regular rb:text-[12px] rb:text-[#5B6167] rb:leading-[16px]">
|
<div className="rb:font-medium rb:font-regular rb:text-[12px] rb:text-[#5B6167] rb:leading-4">
|
||||||
<Markdown content={selectedVersion.release_notes} />
|
<Markdown content={selectedVersion.release_notes} />
|
||||||
</div>
|
</div>
|
||||||
</RbCard>
|
</RbCard>
|
||||||
|
|||||||
Reference in New Issue
Block a user