Skip to content

Commit 9a08d00

Browse files
committed
refactor: load extensions dynamically according to the configuration file
1 parent 63ca4a3 commit 9a08d00

File tree

96 files changed

+240
-114
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

96 files changed

+240
-114
lines changed

src/components/load3d/Load3DControls.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ import type {
8888
LightConfig,
8989
ModelConfig,
9090
SceneConfig
91-
} from '@/extensions/core/load3d/interfaces'
91+
} from '@/extensions/core/extensions/load3d/interfaces'
9292
9393
const sceneConfig = defineModel<SceneConfig>('sceneConfig')
9494
const modelConfig = defineModel<ModelConfig>('modelConfig')

src/components/load3d/controls/CameraControls.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import Button from 'primevue/button'
2222
import { computed } from 'vue'
2323
2424
import PopupSlider from '@/components/load3d/controls/PopupSlider.vue'
25-
import type { CameraType } from '@/extensions/core/load3d/interfaces'
25+
import type { CameraType } from '@/extensions/core/extensions/load3d/interfaces'
2626
2727
const cameraType = defineModel<CameraType>('cameraType')
2828
const fov = defineModel<number>('fov')

src/components/load3d/controls/LightControls.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ import Button from 'primevue/button'
3535
import Slider from 'primevue/slider'
3636
import { computed, onMounted, onUnmounted, ref } from 'vue'
3737
38-
import type { MaterialMode } from '@/extensions/core/load3d/interfaces'
38+
import type { MaterialMode } from '@/extensions/core/extensions/load3d/interfaces'
3939
import { useSettingStore } from '@/platform/settings/settingStore'
4040
4141
const lightIntensity = defineModel<number>('lightIntensity')

src/components/load3d/controls/ModelControls.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ import { computed, onMounted, onUnmounted, ref } from 'vue'
6868
import type {
6969
MaterialMode,
7070
UpDirection
71-
} from '@/extensions/core/load3d/interfaces'
71+
} from '@/extensions/core/extensions/load3d/interfaces'
7272
import { t } from '@/i18n'
7373
7474
const materialMode = defineModel<MaterialMode>('materialMode')

src/components/load3d/controls/SceneControls.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ import Button from 'primevue/button'
9595
import { computed, ref } from 'vue'
9696
9797
import PopupSlider from '@/components/load3d/controls/PopupSlider.vue'
98-
import type { BackgroundRenderModeType } from '@/extensions/core/load3d/interfaces'
98+
import type { BackgroundRenderModeType } from '@/extensions/core/extensions/load3d/interfaces'
9999
100100
const emit = defineEmits<{
101101
(e: 'updateBackgroundImage', file: File | null): void

src/components/load3d/controls/viewer/ViewerCameraControls.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ import Select from 'primevue/select'
3131
import Slider from 'primevue/slider'
3232
import { computed } from 'vue'
3333
34-
import type { CameraType } from '@/extensions/core/load3d/interfaces'
34+
import type { CameraType } from '@/extensions/core/extensions/load3d/interfaces'
3535
import { t } from '@/i18n'
3636
3737
const cameras = [

src/components/load3d/controls/viewer/ViewerModelControls.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import { computed } from 'vue'
2929
import type {
3030
MaterialMode,
3131
UpDirection
32-
} from '@/extensions/core/load3d/interfaces'
32+
} from '@/extensions/core/extensions/load3d/interfaces'
3333
import { t } from '@/i18n'
3434
3535
const upDirection = defineModel<UpDirection>('upDirection')

src/composables/useLoad3d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import { toRef } from '@vueuse/core'
22
import type { MaybeRef } from '@vueuse/core'
33
import { nextTick, ref, toRaw, watch } from 'vue'
44

5-
import Load3d from '@/extensions/core/load3d/Load3d'
6-
import Load3dUtils from '@/extensions/core/load3d/Load3dUtils'
5+
import Load3d from '@/extensions/core/extensions/load3d/Load3d'
6+
import Load3dUtils from '@/extensions/core/extensions/load3d/Load3dUtils'
77
import type {
88
AnimationItem,
99
CameraConfig,
@@ -13,7 +13,7 @@ import type {
1313
ModelConfig,
1414
SceneConfig,
1515
UpDirection
16-
} from '@/extensions/core/load3d/interfaces'
16+
} from '@/extensions/core/extensions/load3d/interfaces'
1717
import { t } from '@/i18n'
1818
import type { LGraphNode } from '@/lib/litegraph/src/LGraphNode'
1919
import { useToastStore } from '@/platform/updates/common/toastStore'

src/composables/useLoad3dDrag.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { computed, ref, toValue } from 'vue'
22
import type { MaybeRefOrGetter } from 'vue'
33

4-
import { SUPPORTED_EXTENSIONS } from '@/extensions/core/load3d/interfaces'
4+
import { SUPPORTED_EXTENSIONS } from '@/extensions/core/extensions/load3d/interfaces'
55
import { t } from '@/i18n'
66
import { useToastStore } from '@/platform/updates/common/toastStore'
77

src/composables/useLoad3dViewer.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import { ref, toRaw, watch } from 'vue'
22

3-
import Load3d from '@/extensions/core/load3d/Load3d'
4-
import Load3dUtils from '@/extensions/core/load3d/Load3dUtils'
3+
import Load3d from '@/extensions/core/extensions/load3d/Load3d'
4+
import Load3dUtils from '@/extensions/core/extensions/load3d/Load3dUtils'
55
import type {
66
BackgroundRenderModeType,
77
CameraType,
88
MaterialMode,
99
UpDirection
10-
} from '@/extensions/core/load3d/interfaces'
10+
} from '@/extensions/core/extensions/load3d/interfaces'
1111
import { t } from '@/i18n'
1212
import type { LGraphNode } from '@/lib/litegraph/src/LGraphNode'
1313
import { useToastStore } from '@/platform/updates/common/toastStore'

0 commit comments

Comments
 (0)