Skip to content

Commit 1ba8a6b

Browse files
wip imports
1 parent e63de95 commit 1ba8a6b

39 files changed

+186
-107
lines changed

app/components/FeedBack/ErrorBanner.vue

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<v-banner
3-
v-if="feedback_store.server_error"
3+
v-if="feedbackStore.server_error"
44
elevation="2"
55
style="background-color: grey; z-index: 9999"
66
position="fixed"
@@ -33,7 +33,7 @@
3333
size="20"
3434
color="grey"
3535
class=".align-center"
36-
@click="feedback_store.delete_server_error()"
36+
@click="feedbackStore.delete_server_error()"
3737
>
3838
<v-icon icon="mdi-close" size="20" color="white" />
3939
</v-btn>
@@ -43,7 +43,8 @@
4343
</template>
4444

4545
<script setup>
46-
const feedback_store = useFeedbackStore()
46+
import { useFeedbackStore } from "@ogw_front/stores/feedback.js"
47+
const feedbackStore = useFeedbackStore()
4748
4849
function reload() {
4950
window.location.reload()

app/components/FeedBack/Snackers.vue

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<v-snackbar
3-
v-for="(feedback, index) in feedback_store.feedbacks"
3+
v-for="(feedback, index) in feedbackStore.feedbacks"
44
:key="feedback"
55
v-model="show"
66
:style="{ 'margin-bottom': calc_margin(index) }"
@@ -51,7 +51,7 @@
5151
variant="flat"
5252
size="20"
5353
:color="feedback.type"
54-
@click="feedback_store.delete_feedback(feedback.id)"
54+
@click="feedbackStore.delete_feedback(feedback.id)"
5555
>
5656
<v-icon icon="mdi-close" size="20" color="white" />
5757
</v-btn>
@@ -61,7 +61,9 @@
6161
</template>
6262

6363
<script setup>
64-
const feedback_store = useFeedbackStore()
64+
import { useFeedbackStore } from "@ogw_front/stores/feedback.js"
65+
66+
const feedbackStore = useFeedbackStore()
6567
const show = true
6668
6769
function calc_margin(index) {

app/components/HybridRenderingView.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
<script setup>
1818
import VeaseViewToolbar from "@ogw_front/components/VeaseViewToolbar.vue"
1919
20+
import { useHybridViewerStore } from "@ogw_front/stores/hybrid_viewer"
21+
import { useViewerStore } from "@ogw_front/stores/viewer"
22+
2023
const emit = defineEmits(["click"])
2124
2225
const container = useTemplateRef("viewer")

app/components/Viewer/BreadCrumb.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
</template>
3838

3939
<script setup>
40+
import { useTreeviewStore } from "@ogw_front/stores/treeview"
4041
const treeviewStore = useTreeviewStore()
4142
4243
const selectedTree = computed(() => treeviewStore.selectedTree)

app/components/Viewer/ContextMenu.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@
3030
</template>
3131

3232
<script setup>
33+
import { useMenuStore } from "@ogw_front/stores/menu"
34+
import { useDataBaseStore } from "@ogw_front/stores/data_base"
3335
const menuStore = useMenuStore()
3436
const dataBaseStore = useDataBaseStore()
3537

app/components/Viewer/Generic/Mesh/CellsOptions.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@
2525
import ViewerOptionsVisibilitySwitch from "@ogw_front/components/Viewer/Options/VisibilitySwitch.vue"
2626
import ViewerOptionsColoringTypeSelector from "@ogw_front/components/Viewer/Options/ColoringTypeSelector.vue"
2727
28+
import { useDataStyleStore } from "@ogw_front/stores/data_style"
29+
import { useHybridViewerStore } from "@ogw_front/stores/hybrid_viewer"
30+
2831
const dataStyleStore = useDataStyleStore()
2932
const hybridViewerStore = useHybridViewerStore()
3033

app/components/Viewer/Generic/Mesh/EdgesOptions.vue

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,19 @@
2222
import ViewerOptionsVisibilitySwitch from "@ogw_front/components/Viewer/Options/VisibilitySwitch.vue"
2323
import ViewerOptionsColoringTypeSelector from "@ogw_front/components/Viewer/Options/ColoringTypeSelector.vue"
2424
25+
import { useDataStyleStore } from "@ogw_front/stores/data_style"
26+
import { useHybridViewerStore } from "@ogw_front/stores/hybrid_viewer"
27+
28+
const dataStyleStore = useDataStyleStore()
29+
const hybridViewerStore = useHybridViewerStore()
30+
2531
const props = defineProps({
2632
itemProps: { type: Object, required: true },
2733
btn_image: { type: String, required: true },
2834
})
2935
3036
const id = toRef(() => props.itemProps.id)
3137
32-
const dataStyleStore = useDataStyleStore()
33-
const hybridViewerStore = useHybridViewerStore()
34-
3538
const visibility = computed({
3639
get: () => dataStyleStore.meshEdgesVisibility(id.value),
3740
set: (newValue) => {

app/components/Viewer/Generic/Mesh/PointsOptions.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@
4343
import ViewerOptionsVisibilitySwitch from "@ogw_front/components/Viewer/Options/VisibilitySwitch.vue"
4444
import ViewerOptionsColoringTypeSelector from "@ogw_front/components/Viewer/Options/ColoringTypeSelector.vue"
4545
46+
import { useDataStyleStore } from "@ogw_front/stores/data_style"
47+
import { useHybridViewerStore } from "@ogw_front/stores/hybrid_viewer"
48+
4649
const dataStyleStore = useDataStyleStore()
4750
const hybridViewerStore = useHybridViewerStore()
4851

app/components/Viewer/Generic/Mesh/PolygonsOptions.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@
2525
import ViewerOptionsVisibilitySwitch from "@ogw_front/components/Viewer/Options/VisibilitySwitch.vue"
2626
import ViewerOptionsColoringTypeSelector from "@ogw_front/components/Viewer/Options/ColoringTypeSelector.vue"
2727
28+
import { useDataStyleStore } from "@ogw_front/stores/data_style"
29+
import { useHybridViewerStore } from "@ogw_front/stores/hybrid_viewer"
30+
2831
const dataStyleStore = useDataStyleStore()
2932
const hybridViewerStore = useHybridViewerStore()
3033

app/components/Viewer/Generic/Mesh/PolyhedraOptions.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@
2525
import ViewerOptionsVisibilitySwitch from "@ogw_front/components/Viewer/Options/VisibilitySwitch.vue"
2626
import ViewerOptionsColoringTypeSelector from "@ogw_front/components/Viewer/Options/ColoringTypeSelector.vue"
2727
28+
import { useDataStyleStore } from "@ogw_front/stores/data_style"
29+
import { useHybridViewerStore } from "@ogw_front/stores/hybrid_viewer"
30+
2831
const dataStyleStore = useDataStyleStore()
2932
const hybridViewerStore = useHybridViewerStore()
3033

0 commit comments

Comments
 (0)