mirror of
https://github.com/jhd3197/ServerKit.git
synced 2026-12-04 22:21:21 +09:00
Agent: factor run logic into agentMainLoop and detect SCM launch; add Windows service dispatcher (service_windows.go) and POSIX stub (service_other.go) to properly handle SCM lifecycle and avoid Windows SCM error 1053. Frontend: add a set of presentational components (DangerZone, InfoList/InfoItem, JournalControls, LogViewer, MetricRow/MetricItem, ProcessTable, ProgressBar, ServiceCard, StatCard) and wire them into multiple pages and security tabs, replacing many ad-hoc info-list blocks. Also add a route for style-guide/:tab and update AgentFleet to use the new StatCard/StatsGrid layout. These changes improve service reliability on Windows and DRY up UI layouts with reusable components.
17 lines
504 B
React
17 lines
504 B
React
import React from 'react';
|
|
|
|
export function MetricRow({ children, className = '' }) {
|
|
return <div className={`metric-row ${className}`.trim()}>{children}</div>;
|
|
}
|
|
|
|
export function MetricItem({ label, value, children, className = '' }) {
|
|
return (
|
|
<div className={`metric-item ${className}`.trim()}>
|
|
<span className="text-tertiary text-sm">{label}</span>
|
|
{children ?? <span className="metric-value">{value}</span>}
|
|
</div>
|
|
);
|
|
}
|
|
|
|
export default MetricRow;
|