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