fix: 流量超额、离线时段、手机标题等显示问题;清理过时注释与未用代码 - #21
Merged
Merged
Conversation
- 流量超过额度时显示真实百分比(如 212%),进度条仍止于满格 - 资源图在节点离线的时段断开,不再画成一条直线;间隔超过常规间隔(取中位数)两倍才断开,上报间隔较长的 agent 不受影响 - 详情页节点名过长时,状态与 agent 徽章换到下一行,手机上名字不再被挤成两个字 - 列表页点站名不再重复写入历史记录,返回键一次就能离开 - 时间范围、图表页签与探测图例按钮标明按下状态 - 删掉未使用的 tw-animate-css、--popover 与 --input,以及 Badge、Button 里用不到的变体,CSS 从 30.5 kB 降到 23.7 kB - 五个提示框共用一份设置;去掉多余的 clock 包装与 axisTop 的死分支,axisBytes 复用 unitOf - 注释与 README 对齐现状:配色变量的用途、包体积、轮询间隔、刻度格式、规格区说明、历史窗口上限
stqfdyr
force-pushed
the
chore/code-review
branch
from
October 2, 2026 05:29
1ca27ac to
46d88d3
Compare
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
全量读了一遍默认主题,修几处显示问题,清理与代码不符的注释和用不到的代码。
修复
aria-pressed清理
tw-animate-css、--popover、--input,以及 Badge、Button 里用不到的变体(做法与已精简的 Card 相同),CSS 从 30.5 kB 降到 23.7 kBclock包装和axisTop不会走到的分支,axisBytes复用unitOf--ok/--warn的用途、入口包体积、断线后的轮询间隔、时间格式化的说明、规格区说明、削峰窗口的取样间隔/api/me补上保留天数,npm test的覆盖范围测试
npm run lint、npm test(UTC 与纽约时区)、npm run build通过;新增百分比不封顶与断线的用例,改回封顶、阈值改为一倍、中位数改为最小值或较大的中位数时各自变红