Add connections dashboard
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
import Foundation
|
||||
|
||||
public extension Profile {
|
||||
var lastUpdatedString: String {
|
||||
public extension Date {
|
||||
var myFormat: String {
|
||||
let dateFormatter = DateFormatter()
|
||||
dateFormatter.dateFormat = "yyyy-MM-dd HH:mm:ss"
|
||||
return dateFormatter.string(from: lastUpdated!)
|
||||
return dateFormatter.string(from: self)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -68,6 +68,11 @@ public enum SharedPreferences {
|
||||
await excludeAPNsRoute.set(nil)
|
||||
}
|
||||
|
||||
// Connections Filter
|
||||
|
||||
public static let connectionStateFilter = Preference<Int>("connection_state_filter", defaultValue: 0)
|
||||
public static let connectionSort = Preference<Int>("connection_sort", defaultValue: 0)
|
||||
|
||||
// On Demand Rules
|
||||
|
||||
public static let alwaysOn = Preference<Bool>("always_on", defaultValue: false)
|
||||
|
||||
Reference in New Issue
Block a user