🚦 feat(uptime-kuma): support custom category names & monitor subgroup rendering
Backend • controller/uptime_kuma.go - Added Group field to Monitor struct to carry publicGroupList.name. - Extended status page parsing to capture group Name and inject it into each monitor. - Re-worked fetchGroupData loop: aggregate all sub-groups, drop unnecessary pre-allocation/breaks. Frontend • web/src/pages/Detail/index.js - renderMonitorList now buckets monitors by the new group field and renders a lightweight header per subgroup. - Fallback gracefully when group is empty to preserve previous single-list behaviour. Other • Expanded anonymous struct definition for statusData.PublicGroupList to include ID/Name, enabling JSON unmarshalling of group names. Result Custom CategoryName continues to work while each uptime group’s internal sub-groups are now clearly displayed in the UI, providing finer-grained visibility without impacting performance or existing validation logic.
This commit is contained in:
@@ -1628,16 +1628,15 @@
|
||||
"常见问答管理,为用户提供常见问题的答案(最多50个,前端显示最新20条)": "FAQ management, providing answers to common questions for users (maximum 50, display latest 20 on the front end)",
|
||||
"暂无常见问答": "No FAQ",
|
||||
"显示最新20条": "Display latest 20",
|
||||
"Uptime Kuma 服务地址": "Uptime Kuma service address",
|
||||
"状态页面 Slug": "Status page slug",
|
||||
"请输入 Uptime Kuma 服务的完整地址,例如:https://uptime.example.com": "Please enter the complete address of Uptime Kuma, for example: https://uptime.example.com",
|
||||
"请输入状态页面的 slug 标识符,例如:my-status": "Please enter the slug identifier for the status page, for example: my-status",
|
||||
"Uptime Kuma 服务地址不能为空": "Uptime Kuma service address cannot be empty",
|
||||
"请输入有效的 URL 地址": "Please enter a valid URL address",
|
||||
"状态页面 Slug 不能为空": "Status page slug cannot be empty",
|
||||
"Slug 只能包含字母、数字、下划线和连字符": "Slug can only contain letters, numbers, underscores, and hyphens",
|
||||
"请输入 Uptime Kuma 服务地址": "Please enter the Uptime Kuma service address",
|
||||
"请输入状态页面 Slug": "Please enter the status page slug",
|
||||
"Uptime Kuma监控分类管理,可以配置多个监控分类用于服务状态展示(最多20个)": "Uptime Kuma monitoring category management, you can configure multiple monitoring categories for service status display (maximum 20)",
|
||||
"添加分类": "Add Category",
|
||||
"分类名称": "Category Name",
|
||||
"Uptime Kuma地址": "Uptime Kuma Address",
|
||||
"状态页面Slug": "Status Page Slug",
|
||||
"请输入分类名称,如:OpenAI、Claude等": "Please enter the category name, such as: OpenAI, Claude, etc.",
|
||||
"请输入Uptime Kuma服务地址,如:https://status.example.com": "Please enter the Uptime Kuma service address, such as: https://status.example.com",
|
||||
"请输入状态页面的Slug,如:my-status": "Please enter the slug for the status page, such as: my-status",
|
||||
"确定要删除此分类吗?": "Are you sure you want to delete this category?",
|
||||
"配置": "Configure",
|
||||
"服务监控地址,用于展示服务状态信息": "service monitoring address for displaying status information",
|
||||
"服务可用性": "Service Status",
|
||||
|
||||
Reference in New Issue
Block a user