refactor(project): 清理闲置展示链路与重复采样状态

This commit is contained in:
2026-11-09 00:41:09 +08:00
parent 7b3abe37c5
commit b73d51c953
57 changed files with 210 additions and 2822 deletions
-17
View File
@@ -3,7 +3,6 @@ import SwiftUI
/// Shared roles for the compact monitoring panel. Micro charts keep their own 8pt role.
enum PanelStyle {
static let title = Font.system(size: 13, weight: .semibold)
static let section = Font.system(size: 11, weight: .semibold)
static let label = Font.system(size: 10)
static let value = Font.system(size: 10, weight: .medium)
static let legend = Font.system(size: 9)
@@ -88,19 +87,3 @@ struct CapacityField: View {
.lineLimit(1)
}
}
struct CardSectionHeader: View {
let title: LocalizedStringKey
let valueLabel: LocalizedStringKey
let value: String
let color: Color
var body: some View {
HStack {
Text(title).font(PanelStyle.section)
Spacer(minLength: 4)
Text(valueLabel).font(PanelStyle.label).foregroundStyle(.secondary)
MetricText(value: value).font(PanelStyle.value).foregroundStyle(color)
}.frame(height: 16)
}
}