Added app settings page (#15)

Closes: #11

Only setting available at the moment are for pytorch server .  But this is this easily expandable.

Signed-off-by: Justin Georgi <justin.georgi@gmail.com>

Reviewed-on: Georgi_Lab/ALVINN_f7#15
This commit is contained in:
2023-11-16 19:49:57 -07:00
parent 5912ea153c
commit 10d4047a6a
4 changed files with 86 additions and 1 deletions

View File

@@ -102,6 +102,14 @@
return 'yellow';
},
setData () {
var loadServerSettings = localStorage.getItem('serverSettings')
if (loadServerSettings) var serverSettings = JSON.parse(loadServerSettings)
if (serverSettings && serverSettings.use) {
f7.dialog.alert(`Using server at ${serverSettings.address}`)
} else {
f7.dialog.alert('Using built-in model')
}
//Placeholder data
this.resultData = fakeData.testData
},
selectImage () {