mirror of https://gitee.com/answerdev/answer.git
Merge branch 'fix-version-url' into feat/ui-v0.4
This commit is contained in:
commit
a76e6cee17
|
@ -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>
|
||||||
)}
|
)}
|
||||||
|
|
|
@ -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 && (
|
||||||
|
|
Loading…
Reference in New Issue