Expand description
日志页的日志流:历史加载、SSE 实时追加、向上翻页与滚动跟随。
Structs§
- LogRow 🔒
- 日志行:entry(历史 id>0 / 实时 id=0)或 gap 分隔提示。
- Logs
Stream 🔒Pane Props - Props for the
LogsStreamPanecomponent. - Stream
Filter 🔒 - 挂载时刻的筛选快照:面板按筛选 remount,历史查询、翻页与 SSE 都用同一份。
Enums§
Constants§
- INITIAL_
LIMIT 🔒 - 首屏历史加载条数。
- OLDER_
PAGE_ 🔒LIMIT - 「加载更早」单次翻页条数。
Functions§
- Logs
Stream 🔒Pane - 实时日志流面板:历史加载 + SSE 追加 + 向上翻页 + 滚动跟随。
- next_
row_ 🔒key - 分配客户端单调行 key(SSE 实时行 id 恒 0,不能用作渲染 key)。
- render_
row 🔒 - 渲染一行日志或 gap 分隔提示。