2d46fb6b86 fix: support per-server max/from/to in cycle transfer stats (#64)
* Initial plan

* fix: support per-server max/from/to values in cycle transfer stats

When the Nezha backend has multiple transfer rules within one alert rule,
the API may return per-server max values (as a map) instead of a single
max value. Update the TypeScript interface and CycleTransferStats component
to handle both formats:
- Single value (number/string): used for all servers (current behavior)
- Per-server map ({[serverId]: value}): uses the correct value per server

Fixes #63

Agent-Logs-Url: https://github.com/hamster1963/nezha-dash-v2/sessions/88f98dad-c2eb-4728-ac98-e02a95d5144d

Co-authored-by: hamster1963 <71394853+hamster1963@users.noreply.github.com>

* fix: update schema version in biome.json and improve null checks in components

* chore: auto-fix linting and formatting issues

* fix: guard null/zero in CycleTransferStats per-server map lookups

Agent-Logs-Url: https://github.com/hamster1963/nezha-dash-v2/sessions/2fb2306b-8011-487d-b284-9768778db8c3

Co-authored-by: hamster1963 <71394853+hamster1963@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: hamster1963 <71394853+hamster1963@users.noreply.github.com>
Co-authored-by: hamster1963 <1410514192@qq.com>
2026-05-26 01:34:02 +08:00
2025-12-28 18:05:02 +08:00
2025-12-28 18:05:02 +08:00
2024-12-15 16:56:44 +08:00
2025-12-28 18:05:02 +08:00
2025-12-28 18:05:02 +08:00
2024-12-04 11:11:21 +08:00
2025-12-28 18:05:02 +08:00
2026-02-15 12:34:56 +08:00
2025-12-28 18:05:02 +08:00
2025-12-28 18:05:02 +08:00

Caution

有关项目问题与意见请移步https://github.com/hamster1963/nezha-dash 交流

Note

此项目为 nezha-dash 的官方实现,作为哪吒监控的默认前端,功能上可能与 nezha-dash 有所不同。 https://github.com/hamster1963/nezha-dash

S
Description
No description provided
Readme Apache-2.0
2.7 MiB
Languages
TypeScript 98.5%
JavaScript 0.7%
CSS 0.6%
HTML 0.2%