+ {twoFactorStatus?.enabled ?
:
{!twoFactorSetup ?
{twoFactorStatus?.has_secret ? "已有未启用的密钥;重新生成后,旧密钥会失效。" : "尚未生成两步验证密钥。"}
: null}
{twoFactorSetup ?
: null}
@@ -1251,10 +1250,7 @@ export function AdminPanel({
选择服务器已选 {remoteSelectedIds.length} / 共 {servers.length}
setRemoteQuery(event.target.value)} />
- {remoteVisibleServers.map((server) => {
- const online = isOnline(server, config.offline_threshold_seconds);
- return
;
- })}
+ {remoteVisibleServers.map((server) =>
)}
{!remoteVisibleServers.length ?
{servers.length ? "没有匹配的服务器" : "暂无服务器"}
: null}
diff --git a/frontend/src/components/LatencyManager.tsx b/frontend/src/components/LatencyManager.tsx
index e160c06..1c07c27 100644
--- a/frontend/src/components/LatencyManager.tsx
+++ b/frontend/src/components/LatencyManager.tsx
@@ -159,7 +159,7 @@ export function LatencyManager({
服务器已选 {form.server_ids.length} / 共 {servers.length}
setQuery(event.target.value)} />
- {visibleServers.map((server) =>
)}
+ {visibleServers.map((server) =>
)}
{!visibleServers.length ?
没有匹配的服务器
: null}
diff --git a/frontend/src/components/TelegramSettings.tsx b/frontend/src/components/TelegramSettings.tsx
index 8b193f6..f5ccdcd 100644
--- a/frontend/src/components/TelegramSettings.tsx
+++ b/frontend/src/components/TelegramSettings.tsx
@@ -88,7 +88,7 @@ export function TelegramSettings({ onError, onNotice }: {