Reformat code
This commit is contained in:
@@ -28,8 +28,8 @@
|
||||
}
|
||||
|
||||
DevicePicker(
|
||||
.applicationService(name: "sing-box:profile"))
|
||||
{ endpoint in
|
||||
.applicationService(name: "sing-box:profile")
|
||||
) { endpoint in
|
||||
viewModel.selected = true
|
||||
Task {
|
||||
await viewModel.handleEndpoint(endpoint, environments: environments)
|
||||
|
||||
@@ -11,13 +11,19 @@ public struct NewProfileView: View {
|
||||
private var onSuccess: ((Profile) async -> Void)?
|
||||
|
||||
public struct ImportRequest: Codable, Hashable, Identifiable {
|
||||
public var id: String { url }
|
||||
public var id: String {
|
||||
url
|
||||
}
|
||||
|
||||
public let name: String
|
||||
public let url: String
|
||||
}
|
||||
|
||||
public struct LocalImportRequest: Hashable, Identifiable {
|
||||
public var id: String { fileURL.absoluteString }
|
||||
public var id: String {
|
||||
fileURL.absoluteString
|
||||
}
|
||||
|
||||
public let name: String
|
||||
public let fileURL: URL
|
||||
|
||||
|
||||
Reference in New Issue
Block a user