| 12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- import SwiftUI
- extension Settings {
- struct RootView: BaseView {
- @EnvironmentObject var viewModel: ViewModel<Provider>
- var body: some View {
- Form {
- Section(header: Text("Config files")) {
- Group {
- Text("Preferences").chevronCell()
- .modal(for: .configEditor(file: OpenAPS.Settings.preferences), from: self)
- Text("Pump Settings").chevronCell().modal(for: .configEditor(file: OpenAPS.Settings.settings), from: self)
- Text("Autosense").chevronCell().modal(for: .configEditor(file: OpenAPS.Settings.autosense), from: self)
- Text("Pump History").chevronCell()
- .modal(for: .configEditor(file: OpenAPS.Monitor.pumpHistory), from: self)
- Text("Basal profile").chevronCell()
- .modal(for: .configEditor(file: OpenAPS.Settings.basalProfile), from: self)
- Text("BG targets").chevronCell().modal(for: .configEditor(file: OpenAPS.Settings.bgTargets), from: self)
- Text("Carb ratios").chevronCell().modal(for: .configEditor(file: OpenAPS.Settings.carbRatios), from: self)
- Text("Insulin sensitivities").chevronCell()
- .modal(for: .configEditor(file: OpenAPS.Settings.carbRatios), from: self)
- }
- Text("Temp targets").chevronCell().modal(for: .configEditor(file: OpenAPS.Settings.tempTargets), from: self)
- Text("Pump profile").chevronCell().modal(for: .configEditor(file: OpenAPS.Settings.pumpProfile), from: self)
- Text("Profile").chevronCell().modal(for: .configEditor(file: OpenAPS.Settings.profile), from: self)
- }
- Section(header: Text("Services")) {
- Text("Nightscout").chevronCell().modal(for: .nighscoutConfig, from: self)
- }
- Section(header: Text("Devices")) {
- Text("Pump").chevronCell().modal(for: .pumpConfig, from: self)
- }
- }
- .navigationTitle("Settings")
- .navigationBarTitleDisplayMode(.automatic)
- }
- }
- }
|