From b1e089801da6332591ccfe99ba0a6c157eb64760 Mon Sep 17 00:00:00 2001 From: Justin Georgi Date: Sun, 28 Jan 2024 19:53:42 -0700 Subject: [PATCH 1/2] Add region specific default images Signed-off-by: Justin Georgi --- src/components/svg-icon.vue | 10 +++++++++- src/pages/detect.vue | 26 +++++++++++++------------- 2 files changed, 22 insertions(+), 14 deletions(-) diff --git a/src/components/svg-icon.vue b/src/components/svg-icon.vue index 5cba434..51475b5 100644 --- a/src/components/svg-icon.vue +++ b/src/components/svg-icon.vue @@ -10,6 +10,10 @@ + + + + @@ -30,7 +34,11 @@ 'cloud_upload', 'cloud_done', 'check_list', - 'refresh_search' + 'refresh_search', + 'thorax', + 'abdomen', + 'limbs', + 'head' ] return iconList.includes(value) } diff --git a/src/pages/detect.vue b/src/pages/detect.vue index 2defbd6..406932d 100644 --- a/src/pages/detect.vue +++ b/src/pages/detect.vue @@ -7,7 +7,7 @@
- +
- + @@ -80,15 +80,15 @@ - - - + + + @@ -319,19 +319,19 @@ created () { switch (this.f7route.params.region) { case 'thorax': - this.activeRegion = 0 - this.detectorName = 'thorax' + this.activeRegion = 0 + this.detectorName = 'thorax' break; case 'abdomen': - this.activeRegion = 1 - this.detectorName = 'combined' - break; + this.activeRegion = 1 + this.detectorName = 'combined' + break; case 'limbs': - this.activeRegion = 2 - this.detectorName = 'defaultNew' + this.activeRegion = 2 + this.detectorName = 'defaultNew' break; case 'head': - this.activeRegion = 3 + this.activeRegion = 3 break; } var loadServerSettings = localStorage.getItem('serverSettings') -- 2.49.1 From c578cf5d7164e5600047634369adceeca7be5613 Mon Sep 17 00:00:00 2001 From: Justin Georgi Date: Sun, 28 Jan 2024 20:39:58 -0700 Subject: [PATCH 2/2] Modify add image icon Signed-off-by: Justin Georgi --- src/components/svg-icon.vue | 2 ++ src/pages/detect.vue | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/svg-icon.vue b/src/components/svg-icon.vue index 51475b5..9a077ee 100644 --- a/src/components/svg-icon.vue +++ b/src/components/svg-icon.vue @@ -6,6 +6,7 @@ + @@ -31,6 +32,7 @@ 'photo_library', 'no_photography', 'photo_camera', + 'camera_add', 'cloud_upload', 'cloud_done', 'check_list', diff --git a/src/pages/detect.vue b/src/pages/detect.vue index 406932d..4bf95b4 100644 --- a/src/pages/detect.vue +++ b/src/pages/detect.vue @@ -38,7 +38,7 @@ - + -- 2.49.1