- Add ServerConfigView stub (referenced in SilverAppleApp.swift) - Add HardeningListView stub (referenced in DashboardView.swift) - Fix .accentColor → Color.accentColor (ShapeStyle removed member) - Fix withCheckedThrowingContinuation explicit type annotation - Make AppEnvironment.serverUrl internal for ServerConfigView access Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
30 lines
831 B
Swift
30 lines
831 B
Swift
import SwiftUI
|
|
|
|
struct ServerConfigView: View {
|
|
@EnvironmentObject var env: AppEnvironment
|
|
|
|
var body: some View {
|
|
NavigationStack {
|
|
List {
|
|
Section("Server") {
|
|
HStack {
|
|
Text("URL")
|
|
Spacer()
|
|
Text(env.serverUrl.isEmpty ? "Not configured" : env.serverUrl)
|
|
.foregroundStyle(.secondary)
|
|
.lineLimit(1)
|
|
.truncationMode(.middle)
|
|
}
|
|
}
|
|
|
|
Section {
|
|
Button("Sign Out", role: .destructive) {
|
|
env.authService.signOut()
|
|
}
|
|
}
|
|
}
|
|
.navigationTitle("Settings")
|
|
}
|
|
}
|
|
}
|