|
@@ -12,86 +12,86 @@ extension Settings {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
Section(header: Text("Devices")) {
|
|
Section(header: Text("Devices")) {
|
|
|
- Text("Pump").chevronCell().navigationLink(to: .pumpConfig, from: self)
|
|
|
|
|
|
|
+ Text("Pump").navigationLink(to: .pumpConfig, from: self)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
Section(header: Text("Services")) {
|
|
Section(header: Text("Services")) {
|
|
|
- Text("Nightscout").chevronCell().navigationLink(to: .nighscoutConfig, from: self)
|
|
|
|
|
|
|
+ Text("Nightscout").navigationLink(to: .nighscoutConfig, from: self)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
Section(header: Text("Configuration")) {
|
|
Section(header: Text("Configuration")) {
|
|
|
- Text("Preferences").chevronCell().navigationLink(to: .preferencesEditor, from: self)
|
|
|
|
|
- Text("Pump Settings").chevronCell().navigationLink(to: .pumpSettingsEditor, from: self)
|
|
|
|
|
- Text("Basal Profile").chevronCell().navigationLink(to: .basalProfileEditor, from: self)
|
|
|
|
|
- Text("Insulin Sensitivities").chevronCell().navigationLink(to: .isfEditor, from: self)
|
|
|
|
|
- Text("Carb Ratios").chevronCell().navigationLink(to: .crEditor, from: self)
|
|
|
|
|
- Text("Target Ranges").chevronCell().navigationLink(to: .targetsEditor, from: self)
|
|
|
|
|
- Text("Autotune").chevronCell().navigationLink(to: .autotuneConfig, from: self)
|
|
|
|
|
|
|
+ Text("Preferences").navigationLink(to: .preferencesEditor, from: self)
|
|
|
|
|
+ Text("Pump Settings").navigationLink(to: .pumpSettingsEditor, from: self)
|
|
|
|
|
+ Text("Basal Profile").navigationLink(to: .basalProfileEditor, from: self)
|
|
|
|
|
+ Text("Insulin Sensitivities").navigationLink(to: .isfEditor, from: self)
|
|
|
|
|
+ Text("Carb Ratios").navigationLink(to: .crEditor, from: self)
|
|
|
|
|
+ Text("Target Ranges").navigationLink(to: .targetsEditor, from: self)
|
|
|
|
|
+ Text("Autotune").navigationLink(to: .autotuneConfig, from: self)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
if viewModel.debugOptions {
|
|
if viewModel.debugOptions {
|
|
|
Section(header: Text("Config files")) {
|
|
Section(header: Text("Config files")) {
|
|
|
Group {
|
|
Group {
|
|
|
- Text("Preferences").chevronCell()
|
|
|
|
|
|
|
+ Text("Preferences")
|
|
|
.navigationLink(to: .configEditor(file: OpenAPS.Settings.preferences), from: self)
|
|
.navigationLink(to: .configEditor(file: OpenAPS.Settings.preferences), from: self)
|
|
|
- Text("Pump Settings").chevronCell()
|
|
|
|
|
|
|
+ Text("Pump Settings")
|
|
|
.navigationLink(to: .configEditor(file: OpenAPS.Settings.settings), from: self)
|
|
.navigationLink(to: .configEditor(file: OpenAPS.Settings.settings), from: self)
|
|
|
- Text("Autosense").chevronCell()
|
|
|
|
|
|
|
+ Text("Autosense")
|
|
|
.navigationLink(to: .configEditor(file: OpenAPS.Settings.autosense), from: self)
|
|
.navigationLink(to: .configEditor(file: OpenAPS.Settings.autosense), from: self)
|
|
|
- Text("Pump History").chevronCell()
|
|
|
|
|
|
|
+ Text("Pump History")
|
|
|
.navigationLink(to: .configEditor(file: OpenAPS.Monitor.pumpHistory), from: self)
|
|
.navigationLink(to: .configEditor(file: OpenAPS.Monitor.pumpHistory), from: self)
|
|
|
- Text("Basal profile").chevronCell()
|
|
|
|
|
|
|
+ Text("Basal profile")
|
|
|
.navigationLink(to: .configEditor(file: OpenAPS.Settings.basalProfile), from: self)
|
|
.navigationLink(to: .configEditor(file: OpenAPS.Settings.basalProfile), from: self)
|
|
|
- Text("Targets ranges").chevronCell()
|
|
|
|
|
|
|
+ Text("Targets ranges")
|
|
|
.navigationLink(to: .configEditor(file: OpenAPS.Settings.bgTargets), from: self)
|
|
.navigationLink(to: .configEditor(file: OpenAPS.Settings.bgTargets), from: self)
|
|
|
- Text("Carb ratios").chevronCell()
|
|
|
|
|
|
|
+ Text("Carb ratios")
|
|
|
.navigationLink(to: .configEditor(file: OpenAPS.Settings.carbRatios), from: self)
|
|
.navigationLink(to: .configEditor(file: OpenAPS.Settings.carbRatios), from: self)
|
|
|
- Text("Insulin sensitivities").chevronCell()
|
|
|
|
|
|
|
+ Text("Insulin sensitivities")
|
|
|
.navigationLink(to: .configEditor(file: OpenAPS.Settings.insulinSensitivities), from: self)
|
|
.navigationLink(to: .configEditor(file: OpenAPS.Settings.insulinSensitivities), from: self)
|
|
|
- Text("Temp targets").chevronCell()
|
|
|
|
|
|
|
+ Text("Temp targets")
|
|
|
.navigationLink(to: .configEditor(file: OpenAPS.Settings.tempTargets), from: self)
|
|
.navigationLink(to: .configEditor(file: OpenAPS.Settings.tempTargets), from: self)
|
|
|
- Text("Meal").chevronCell()
|
|
|
|
|
|
|
+ Text("Meal")
|
|
|
.navigationLink(to: .configEditor(file: OpenAPS.Monitor.meal), from: self)
|
|
.navigationLink(to: .configEditor(file: OpenAPS.Monitor.meal), from: self)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
Group {
|
|
Group {
|
|
|
- Text("IOB").chevronCell()
|
|
|
|
|
|
|
+ Text("IOB")
|
|
|
.navigationLink(to: .configEditor(file: OpenAPS.Monitor.iob), from: self)
|
|
.navigationLink(to: .configEditor(file: OpenAPS.Monitor.iob), from: self)
|
|
|
- Text("Pump profile").chevronCell()
|
|
|
|
|
|
|
+ Text("Pump profile")
|
|
|
.navigationLink(to: .configEditor(file: OpenAPS.Settings.pumpProfile), from: self)
|
|
.navigationLink(to: .configEditor(file: OpenAPS.Settings.pumpProfile), from: self)
|
|
|
- Text("Profile").chevronCell()
|
|
|
|
|
|
|
+ Text("Profile")
|
|
|
.navigationLink(to: .configEditor(file: OpenAPS.Settings.profile), from: self)
|
|
.navigationLink(to: .configEditor(file: OpenAPS.Settings.profile), from: self)
|
|
|
- Text("Glucose").chevronCell()
|
|
|
|
|
|
|
+ Text("Glucose")
|
|
|
.navigationLink(to: .configEditor(file: OpenAPS.Monitor.glucose), from: self)
|
|
.navigationLink(to: .configEditor(file: OpenAPS.Monitor.glucose), from: self)
|
|
|
- Text("Carbs").chevronCell()
|
|
|
|
|
|
|
+ Text("Carbs")
|
|
|
.navigationLink(to: .configEditor(file: OpenAPS.Monitor.carbHistory), from: self)
|
|
.navigationLink(to: .configEditor(file: OpenAPS.Monitor.carbHistory), from: self)
|
|
|
- Text("Suggested").chevronCell()
|
|
|
|
|
|
|
+ Text("Suggested")
|
|
|
.navigationLink(to: .configEditor(file: OpenAPS.Enact.suggested), from: self)
|
|
.navigationLink(to: .configEditor(file: OpenAPS.Enact.suggested), from: self)
|
|
|
- Text("Enacted").chevronCell()
|
|
|
|
|
|
|
+ Text("Enacted")
|
|
|
.navigationLink(to: .configEditor(file: OpenAPS.Enact.enacted), from: self)
|
|
.navigationLink(to: .configEditor(file: OpenAPS.Enact.enacted), from: self)
|
|
|
- Text("Announcements").chevronCell()
|
|
|
|
|
|
|
+ Text("Announcements")
|
|
|
.navigationLink(to: .configEditor(file: OpenAPS.FreeAPS.announcements), from: self)
|
|
.navigationLink(to: .configEditor(file: OpenAPS.FreeAPS.announcements), from: self)
|
|
|
- Text("Enacted announcements").chevronCell()
|
|
|
|
|
|
|
+ Text("Enacted announcements")
|
|
|
.navigationLink(to: .configEditor(file: OpenAPS.FreeAPS.announcementsEnacted), from: self)
|
|
.navigationLink(to: .configEditor(file: OpenAPS.FreeAPS.announcementsEnacted), from: self)
|
|
|
- Text("Autotune").chevronCell()
|
|
|
|
|
|
|
+ Text("Autotune")
|
|
|
.navigationLink(to: .configEditor(file: OpenAPS.Settings.autotune), from: self)
|
|
.navigationLink(to: .configEditor(file: OpenAPS.Settings.autotune), from: self)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
Group {
|
|
Group {
|
|
|
- Text("Target presets").chevronCell()
|
|
|
|
|
|
|
+ Text("Target presets")
|
|
|
.navigationLink(to: .configEditor(file: OpenAPS.FreeAPS.tempTargetsPresets), from: self)
|
|
.navigationLink(to: .configEditor(file: OpenAPS.FreeAPS.tempTargetsPresets), from: self)
|
|
|
- Text("Middleware").chevronCell()
|
|
|
|
|
|
|
+ Text("Middleware")
|
|
|
.navigationLink(to: .configEditor(file: OpenAPS.Middleware.determineBasal), from: self)
|
|
.navigationLink(to: .configEditor(file: OpenAPS.Middleware.determineBasal), from: self)
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
Section {
|
|
Section {
|
|
|
- Text("Share logs").chevronCell()
|
|
|
|
|
|
|
+ Text("Share logs")
|
|
|
.onTapGesture {
|
|
.onTapGesture {
|
|
|
showShareSheet = true
|
|
showShareSheet = true
|
|
|
}
|
|
}
|
|
|
-// Text("Read disclaimer").chevronCell()
|
|
|
|
|
|
|
+// Text("Read disclaimer")
|
|
|
// .onTapGesture {
|
|
// .onTapGesture {
|
|
|
// viewModel.logout()
|
|
// viewModel.logout()
|
|
|
// }
|
|
// }
|