}
-
- {/* 内部 gap 用 gap-4 md:gap-6 —— 与外层页面容器同一个节奏。
- 原来只写 gap-4,于是「页头 → 第一块」是 24px、
- 「块与块之间」却是 16px,同一页两种间距 */}
- {info && (
-
- {/* ── 四个顶层指标 ── */}
-
-
-
-
- 0 ? 'warning' : 'info'}
- hint={t('阻塞 {{b}} · 拒绝 {{r}}', { b: info.blocked_clients, r: info.rejected_connections })}
+
+
+ 0 ? 'warning' : 'info'}
+ hint={t('阻塞 {{b}} · 拒绝 {{r}}', { b: info.blocked_clients, r: info.rejected_connections })}
+ />
+
+
+ {/* ── QPS 趋势 ── */}
+
}
+ action={
{t('{{n}} 个采样点', { n: qpsHistory.length })}}
+ >
+
+
+
+
+ }}
+ />
+
+
+
+ {/* ── 三张详情卡 ── */}
+
+
}
+ action={
{t('已连接')}}
+ >
+
+
+
+
+
+
+
+
}
+ >
+
+
+
+
+
{fragMeta.text}
+
+
+
}
+ >
+
+
0 ? 'warning' : undefined}
+ />
+ 0 ? 'danger' : undefined}
+ />
+
+
+
+
+
+ {/* ── 命令统计 ── */}
+
}
+ action={
+
+ patch({ cmd: v || undefined })}
/>
+ {commands.length > TOP_N && (
+
+ )}
-
- {/* ── QPS 趋势 ── */}
-
}
- action={
{t('{{n}} 个采样点', { n: qpsHistory.length })}}
- >
-
-
-
-
- }}
- />
-
-
-
- {/* ── 三张详情卡 ── */}
-
-
}
- action={
{t('已连接')}}
- >
-
-
-
-
-
-
-
-
}
- >
-
-
-
-
-
{fragMeta.text}
-
-
-
}
- >
-
-
0 ? 'warning' : undefined}
- />
- 0 ? 'danger' : undefined}
- />
-
-
-
-
-
- {/* ── 命令统计 ── */}
-
}
- action={
-
- patch({ cmd: v || undefined })}
- />
- {commands.length > TOP_N && (
-
- )}
-
- }
- >
-
-
-
- {t('{{n}} 种命令', { n: commands.length })}
-
- {t('累计调用 {{n}} 次', { n: formatNumber(totalCalls) })}
-
-
- {visible.length === 0 ? (
-
- {search.cmd ? t('没有匹配的命令') : t('Redis 未开启 commandstats 或尚无调用')}
-
- ) : (
-
- )}
-
-
- , b: }}
- />
+ }
+ >
+
+
+
+ {t('{{n}} 种命令', { n: commands.length })}
+
+ {t('累计调用 {{n}} 次', { n: formatNumber(totalCalls) })}
+
+
+ {visible.length === 0 ? (
+
+ {search.cmd ? t('没有匹配的命令') : t('Redis 未开启 commandstats 或尚无调用')}
-
+ ) : (
+
+ )}
- )}
+
+ , b: }}
+ />
+
+