|
|
|
|
@ -11,12 +11,21 @@ import LeStorage |
|
|
|
|
struct DebugSettingsView: View { |
|
|
|
|
var body: some View { |
|
|
|
|
List { |
|
|
|
|
LabeledContent("UUID", value: self._userId) |
|
|
|
|
LabeledContent("User Name", value: self._userName) |
|
|
|
|
LabeledContent("Token", value: self._token) |
|
|
|
|
LabeledContent("Server", value: self._apiURL) |
|
|
|
|
LabeledContent("Synchronized", value: self._synchronized) |
|
|
|
|
LabeledContent("CollectionsCanSynchronize", value: self._canSynchronize) |
|
|
|
|
|
|
|
|
|
Section("Status") { |
|
|
|
|
LabeledContent("Has Websocket Manager", value: self._hasWebSocketManager) |
|
|
|
|
LabeledContent("Websocket ping", value: self._wsPingStatus) |
|
|
|
|
LabeledContent("Websocket failure", value: self._wsFailure) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
Section("Settings") { |
|
|
|
|
LabeledContent("UUID", value: self._userId) |
|
|
|
|
LabeledContent("User Name", value: self._userName) |
|
|
|
|
LabeledContent("Token", value: self._token) |
|
|
|
|
LabeledContent("Server", value: self._apiURL) |
|
|
|
|
LabeledContent("Synchronized", value: self._synchronized) |
|
|
|
|
LabeledContent("CollectionsCanSynchronize", value: self._canSynchronize) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@ -47,6 +56,16 @@ struct DebugSettingsView: View { |
|
|
|
|
fileprivate var _canSynchronize: String { |
|
|
|
|
return "\(StoreCenter.main.collectionsCanSynchronize)" |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
fileprivate var _wsPingStatus: String { |
|
|
|
|
return "\(StoreCenter.main.websocketPingStatus)" |
|
|
|
|
} |
|
|
|
|
fileprivate var _wsFailure: String { |
|
|
|
|
return "\(StoreCenter.main.websocketFailure)" |
|
|
|
|
} |
|
|
|
|
fileprivate var _hasWebSocketManager: String { |
|
|
|
|
return "\(StoreCenter.main.hasWebSocketManager)" |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//#Preview { |
|
|
|
|
|