Merge branch 'fix-version-url' into feat/ui-v0.4

This commit is contained in:
shuai 2022-11-17 09:47:57 +08:00
commit a76e6cee17
2 changed files with 23 additions and 4 deletions

View File

@ -22,17 +22,36 @@ const HealthStatus: FC<IProps> = ({ data }) => {
<span className="text-secondary me-1">{t('version')}</span> <span className="text-secondary me-1">{t('version')}</span>
<strong>{version}</strong> <strong>{version}</strong>
{isLatest && ( {isLatest && (
<Badge pill bg="success" className="ms-1"> <Badge
pill
bg="success"
className="ms-1"
as="a"
target="_blank"
href="https://github.com/answerdev/answer/releases">
{t('latest')} {t('latest')}
</Badge> </Badge>
)} )}
{!isLatest && remote_version && ( {!isLatest && remote_version && (
<Badge pill bg="warning" text="dark" className="ms-1"> <Badge
pill
bg="warning"
text="dark"
className="ms-1"
as="a"
target="_blank"
href="https://github.com/answerdev/answer/releases">
{t('update_to')} {remote_version} {t('update_to')} {remote_version}
</Badge> </Badge>
)} )}
{!isLatest && !remote_version && ( {!isLatest && !remote_version && (
<Badge pill bg="danger" className="ms-1"> <Badge
pill
bg="danger"
className="ms-1"
as="a"
target="_blank"
href="https://github.com/answerdev/answer/releases">
{t('check_failed')} {t('check_failed')}
</Badge> </Badge>
)} )}

View File

@ -36,7 +36,7 @@ const Index: FC<Props> = ({ data }) => {
<div className="mb-5"> <div className="mb-5">
<h3 className="mb-3">{t('title')}</h3> <h3 className="mb-3">{t('title')}</h3>
<p> <p>
<span className="me-1 text-secondary">{t('keywords')}</span> <span className="text-secondary">{t('keywords')}</span>
{q?.replace(reg, '')} {q?.replace(reg, '')}
<br /> <br />
{options?.length && ( {options?.length && (