apps/rebreak-binder-mac/ — neue macOS-App die User durch den kompletten Self-Bind-Prozess führt: Welcome → Preflight → Supervise → Enroll → Configure (MDM-Push + Pre/Post-Check) → Sideload Lock-Profile (AirDrop). 3-Layer Smart-Resume: supervised? + Enrollment-Profil installed (cfgutil Ground-Truth)? + MDM-Ack fresh (NanoMDM-DB via ssh+psql)? Services: DeviceDetector (ideviceinfo + cfgutil), SuperviseRunner (spawnt supervise-magic CLI), MDMClient (PUT /v1/enqueue?push=1, Apple XML-Plist, identisch zum server-watcher-Format), MDMStatus (DB-Real- Check + ManagedApplicationList-Result-Read). Plus: - fix(supervise-magic): EOF nach ProcessMessage Response (ErrorCode=0) ist Success, nicht Error — vermeidet false-fail bei iPhone-Restore- Reboot - feat(mdm-profiles): rebreak-content-filter-mdm.mobileconfig als MDM-Push-Variante (ohne ConsentText, ohne globales allowAppRemoval= false — per-app via managed-state) End-to-End validiert: App-Push via Ad-Hoc-Manifest (silent), Managed- State via ManagedApplicationList-Query, NEFilter-Mode nach App-Force- Quit, Lock-Profile non-removable nach Sideload. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
46 lines
1.4 KiB
Swift
46 lines
1.4 KiB
Swift
import SwiftUI
|
|
|
|
struct ContentView: View {
|
|
@Environment(WizardModel.self) private var model
|
|
|
|
var body: some View {
|
|
VStack(spacing: 0) {
|
|
// Header mit Step-Indicator
|
|
VStack(spacing: 8) {
|
|
HStack {
|
|
Image(systemName: "shield.lefthalf.filled")
|
|
.foregroundStyle(.tint)
|
|
Text("ReBreak Binder")
|
|
.font(.headline)
|
|
Spacer()
|
|
if model.step != .done {
|
|
Text("Schritt \(model.step.stepNumber) von \(WizardStep.total)")
|
|
.font(.caption)
|
|
.foregroundStyle(.secondary)
|
|
}
|
|
}
|
|
.padding(.horizontal, 20)
|
|
.padding(.top, 16)
|
|
|
|
StepIndicator(current: model.step)
|
|
}
|
|
.background(Color(NSColor.windowBackgroundColor))
|
|
|
|
Divider()
|
|
|
|
// Main content
|
|
Group {
|
|
switch model.step {
|
|
case .welcome: WelcomeView()
|
|
case .preflight: PreflightView()
|
|
case .supervise: SuperviseView()
|
|
case .enroll: EnrollView()
|
|
case .configure: ConfigureView()
|
|
case .done: DoneView()
|
|
}
|
|
}
|
|
.frame(maxWidth: .infinity, maxHeight: .infinity)
|
|
}
|
|
}
|
|
}
|