mirror of
https://github.com/Sagit-chu/flvx.git
synced 2026-09-28 07:36:38 +08:00
8ebde9dca9
* chore: update AGENTS.md with next release info * feat: node OS logo, UI rate fix, and monitor trend updates
1.1 KiB
1.1 KiB
Plan 061: Node Logo By OS Type (Linux Distro)
Objective
Display different logos for nodes in the 'Monitor - Node - Card/List View' based on their Linux distribution (Ubuntu, Debian, CentOS, Alpine, etc.).
Tasks
- Agent: Use
gopsutil/v3/host.Info().Platformto detect the Linux distro and include it in the version string (distro.go). - Agent: Update
main.goto callsocket.DetectDistro()instead ofruntime.GOOS. - Agent: Ensure version parameter is URL-escaped since it now includes distro info with special chars.
- Backend: Select
versioncolumn inListMonitorNodes. - Backend: Include
versioninmonitorNodeListItemJSON response. - Frontend: Add
versionto TypeScript interfaces (MonitorNodeApiItem,MonitorNode,MonitorViewProps). - Frontend: Create
distro-icon.tsxcomponent with SVG logos for Ubuntu, Debian, CentOS/Rocky/Alma, Alpine, Fedora, Arch/Manjaro, and a default Linux (Tux) fallback. - Frontend: Use
DistroIconinServerCard(card view) and list view name column with branded colors per distro. - All three projects compile cleanly (
go build,tsc --noEmit).