Add alvinn mini settings

Signed-off-by: Justin Georgi <justin.georgi@gmail.com>
This commit is contained in:
2024-03-11 21:10:06 -07:00
parent 76a0cba2af
commit 6e35fcb141
9 changed files with 87 additions and 7 deletions

View File

@@ -142,6 +142,7 @@
detectorLevel: 50,
detectorLabels: [],
serverSettings: {},
otherSettings: {},
isCordova: !!window.cordova,
uploadUid: null,
uploadDirty: false,
@@ -156,16 +157,18 @@
return store()
},
created () {
var loadOtherSettings = localStorage.getItem('otherSettings')
if (loadOtherSettings) this.otherSettings = JSON.parse(loadOtherSettings)
switch (this.f7route.params.region) {
case 'thorax':
this.activeRegion = 0
this.detectorName = 'thorax'
//this.classesList = thoraxClasses
/* VITE setting */
this.modelLocation = '../models/thorax/model.json'
this.modelLocation = `../models/thorax${this.otherSettings.mini ? '-mini' : ''}/model.json`
/* PWA Build setting */
//this.modelLocation = './models/thorax/model.json'
this.modelLocationCordova = 'https://localhost/models/thorax/model.json'
//this.modelLocation = `./models/thorax${this.otherSettings.mini ? '-mini' : ''}/model.json`
this.modelLocationCordova = `https://localhost/models/thorax${this.otherSettings.mini ? '-mini' : ''}/model.json`
break;
case 'abdomen':
this.activeRegion = 1