mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-12 07:20:45 +00:00
style(swift): run swiftformat + swiftlint autocorrect
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
import AppKit
|
||||
import Combine
|
||||
import Observation
|
||||
import OpenClawChatUI
|
||||
import OpenClawDiscovery
|
||||
import OpenClawIPC
|
||||
import Combine
|
||||
import Observation
|
||||
import SwiftUI
|
||||
|
||||
enum UIStrings {
|
||||
@@ -142,18 +142,30 @@ struct OnboardingView: View {
|
||||
Self.pageOrder(for: self.state.connectionMode, showOnboardingChat: self.showOnboardingChat)
|
||||
}
|
||||
|
||||
var pageCount: Int { self.pageOrder.count }
|
||||
var pageCount: Int {
|
||||
self.pageOrder.count
|
||||
}
|
||||
|
||||
var activePageIndex: Int {
|
||||
self.activePageIndex(for: self.currentPage)
|
||||
}
|
||||
|
||||
var buttonTitle: String { self.currentPage == self.pageCount - 1 ? "Finish" : "Next" }
|
||||
var wizardPageOrderIndex: Int? { self.pageOrder.firstIndex(of: self.wizardPageIndex) }
|
||||
var buttonTitle: String {
|
||||
self.currentPage == self.pageCount - 1 ? "Finish" : "Next"
|
||||
}
|
||||
|
||||
var wizardPageOrderIndex: Int? {
|
||||
self.pageOrder.firstIndex(of: self.wizardPageIndex)
|
||||
}
|
||||
|
||||
var isWizardBlocking: Bool {
|
||||
self.activePageIndex == self.wizardPageIndex && !self.onboardingWizard.isComplete
|
||||
}
|
||||
|
||||
var canAdvance: Bool { !self.isWizardBlocking }
|
||||
var canAdvance: Bool {
|
||||
!self.isWizardBlocking
|
||||
}
|
||||
|
||||
var devLinkCommand: String {
|
||||
let version = GatewayEnvironment.expectedGatewayVersionString() ?? "latest"
|
||||
return "npm install -g openclaw@\(version)"
|
||||
|
||||
Reference in New Issue
Block a user