mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-09-29 14:06:36 +08:00
497289b462
- Added risk summary metrics including critical alerts, high CPU/memory nodes, and lagging nodes to the dashboard overview. - Introduced peak node metrics for busiest and riskiest nodes with detailed display. - Updated types for dashboard overview to include risk and peak summaries. - Implemented new components for displaying risk signals and peak cards. - Enhanced unit tests to cover new risk and peak metrics in the dashboard overview. fix(update): improve error messages for server upgrade processes - Translated and clarified error messages related to server upgrades and binary uploads. - Ensured consistent error handling and messaging throughout the upgrade process. test(update): refactor test utilities for server upgrade - Renamed roundTripFunc to serverUpdateRoundTripFunc for clarity in test code. - Updated test cases to utilize the new naming convention. feat(node-detail): add traffic structure distribution and health event timeline - Implemented traffic breakdown visualization for status codes and top domains in node detail page. - Added health event timeline to display active and resolved events for better observability. feat(rank-chart): create reusable rank chart component - Developed a new RankChart component for visualizing ranked data distributions. - Integrated RankChart into node detail page for displaying status code and domain distributions.
ATSFlare Web
ATSFlare 管理端新版前端已切换为 Next.js App Router + TypeScript + Tailwind CSS 工程。
常用命令
corepack enable
pnpm install
# 本地开发
pnpm dev
# 类型检查
pnpm typecheck
# 代码检查
pnpm lint
# 单元测试
pnpm test
# 生成静态构建产物到 build/
pnpm build
构建说明
- 构建采用 Next.js 静态导出模式。
pnpm build会先生成out/,随后自动复制为 Go Server 兼容的build/目录。- 默认 API Base URL 为
/api,如需覆盖可在构建时设置NEXT_PUBLIC_API_BASE_URL。 - 构建版本号可通过
NEXT_PUBLIC_APP_VERSION注入,例如NEXT_PUBLIC_APP_VERSION=v0.4.0 pnpm build。
目录约定
app/:路由与布局features/:业务模块components/:复用组件lib/:请求、环境变量、工具与常量tests/:测试代码