From 259465a00b51cc781855062241783662a9e90d99 Mon Sep 17 00:00:00 2001 From: Justin Georgi Date: Fri, 11 Oct 2024 16:44:36 -0700 Subject: [PATCH] Reduce import statements Signed-off-by: Justin Georgi --- src/js/structures.js | 2 +- src/pages/detect.vue | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/js/structures.js b/src/js/structures.js index 5ba2b8c..52f9668 100644 --- a/src/js/structures.js +++ b/src/js/structures.js @@ -104,7 +104,7 @@ export class StructureBox { } } -export default class Structure { +export class Structure { constructor(structResult) { this.label = structResult.label this.confidence = structResult.confidence diff --git a/src/pages/detect.vue b/src/pages/detect.vue index e5ab0e4..0ef2e7a 100644 --- a/src/pages/detect.vue +++ b/src/pages/detect.vue @@ -144,8 +144,7 @@ import touchMixin from './touch-mixin' import detectionWorker from '@/assets/detect-worker.js?worker&inline' - import Structure from '../js/structures' - import { StructureBox } from '../js/structures' + import { Structure, StructureBox } from '../js/structures' const regions = ['Thorax','Abdomen/Pelvis','Limbs','Head and Neck'] let activeRegion = 4