mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-10-08 16:46:37 +08:00
fix: 修复节点页面IP显示为'null',移除TLS证书页面标题
This commit is contained in:
@@ -252,7 +252,7 @@ export function NodesPage() {
|
|||||||
{node.name}
|
{node.name}
|
||||||
</p>
|
</p>
|
||||||
<p className="text-xs text-[var(--foreground-secondary)]">
|
<p className="text-xs text-[var(--foreground-secondary)]">
|
||||||
IP:{node.ip || '暂无'}
|
IP:{node.ip || 'null'}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
@@ -275,13 +275,6 @@ export function NodesPage() {
|
|||||||
label={getApplyLabel(node.latest_apply_result)}
|
label={getApplyLabel(node.latest_apply_result)}
|
||||||
variant={getApplyVariant(node.latest_apply_result)}
|
variant={getApplyVariant(node.latest_apply_result)}
|
||||||
/>
|
/>
|
||||||
<p className="text-xs text-[var(--foreground-secondary)]">
|
|
||||||
{isMeaningfulTime(node.latest_apply_at)
|
|
||||||
? `${formatRelativeTime(
|
|
||||||
node.latest_apply_at,
|
|
||||||
)} · ${formatDateTime(node.latest_apply_at)}`
|
|
||||||
: '暂无'}
|
|
||||||
</p>
|
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td className="px-3 py-4 text-[var(--foreground-secondary)]">
|
<td className="px-3 py-4 text-[var(--foreground-secondary)]">
|
||||||
|
|||||||
@@ -369,7 +369,6 @@ export function TlsCertificatesPage() {
|
|||||||
|
|
||||||
{importMode === 'manual' ? (
|
{importMode === 'manual' ? (
|
||||||
<AppCard
|
<AppCard
|
||||||
title="手动导入"
|
|
||||||
description="直接粘贴 PEM 证书和私钥内容,适合快速录入已有证书。"
|
description="直接粘贴 PEM 证书和私钥内容,适合快速录入已有证书。"
|
||||||
>
|
>
|
||||||
<form className="space-y-5" onSubmit={handleManualSubmit}>
|
<form className="space-y-5" onSubmit={handleManualSubmit}>
|
||||||
@@ -427,7 +426,6 @@ export function TlsCertificatesPage() {
|
|||||||
</AppCard>
|
</AppCard>
|
||||||
) : (
|
) : (
|
||||||
<AppCard
|
<AppCard
|
||||||
title="文档导入"
|
|
||||||
description="上传证书文件和私钥文件,适合直接复用现有 PEM 文件。"
|
description="上传证书文件和私钥文件,适合直接复用现有 PEM 文件。"
|
||||||
>
|
>
|
||||||
<form className="space-y-5" onSubmit={handleFileSubmit}>
|
<form className="space-y-5" onSubmit={handleFileSubmit}>
|
||||||
@@ -446,7 +444,6 @@ export function TlsCertificatesPage() {
|
|||||||
</ResourceField>
|
</ResourceField>
|
||||||
<ResourceField
|
<ResourceField
|
||||||
label="备注"
|
label="备注"
|
||||||
hint="可选,用于记录部署环境或域名范围。"
|
|
||||||
>
|
>
|
||||||
<ResourceInput
|
<ResourceInput
|
||||||
value={fileForm.remark}
|
value={fileForm.remark}
|
||||||
|
|||||||
Reference in New Issue
Block a user