@@ -116,43 +116,6 @@ function buildTelemetryJson(record: CloudHistoryItem): unknown {
116116 } ;
117117}
118118
119- function formatTelemetrySummary ( item : CloudHistoryItem ) : string {
120- const telemetry = item . telemetry ;
121- if ( ! telemetry ) {
122- return item . message || "暂无遥测数据。" ;
123- }
124-
125- const parts : string [ ] = [ ] ;
126- if ( telemetry . latestStatus && telemetry . latestDurationMs !== null ) {
127- parts . push (
128- `最新 Cron 为 ${ telemetry . latestStatus } ,耗时 ${ telemetry . latestDurationMs } ms` ,
129- ) ;
130- }
131- if (
132- telemetry . doctorDurationMs !== null &&
133- telemetry . projectsDurationMs !== null &&
134- telemetry . friendsDurationMs !== null
135- ) {
136- parts . push (
137- `分项耗时:doctor ${ telemetry . doctorDurationMs } ms、projects ${ telemetry . projectsDurationMs } ms、friends ${ telemetry . friendsDurationMs } ms` ,
138- ) ;
139- }
140- if ( telemetry . healthStatus ) {
141- parts . push ( `健康状态 ${ telemetry . healthStatus } ` ) ;
142- }
143- if ( telemetry . verifyMs !== null ) {
144- parts . push ( `验签耗时 ${ telemetry . verifyMs } ms` ) ;
145- }
146- if ( telemetry . appVersion ) {
147- parts . push ( `版本 ${ telemetry . appVersion } ` ) ;
148- }
149-
150- if ( parts . length === 0 ) {
151- return item . message || "已接收,暂无可读摘要。" ;
152- }
153- return `${ parts . join ( ";" ) } 。` ;
154- }
155-
156119function parseBooleanFilter ( value : string ) : boolean | undefined {
157120 const normalized = value . trim ( ) . toLowerCase ( ) ;
158121 if ( normalized === "true" || normalized === "1" || normalized === "yes" ) {
@@ -666,15 +629,6 @@ export default function CloudHistoryTable() {
666629 </ div >
667630 </ div >
668631
669- < div className = "space-y-4" >
670- < h3 className = "text-lg font-medium text-foreground border-b border-foreground/10 pb-2" >
671- 摘要
672- </ h3 >
673- < p className = "text-sm leading-7" >
674- { formatTelemetrySummary ( selectedRecord ) }
675- </ p >
676- </ div >
677-
678632 < div className = "space-y-4" >
679633 < h3 className = "text-lg font-medium text-foreground border-b border-foreground/10 pb-2" >
680634 遥测 JSON
0 commit comments