@geode/opengeodeweb-front 10.0.2-rc.3 → 10.0.2-rc.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (144) hide show
  1. package/.github/workflows/deploy.yml +4 -0
  2. package/app/components/CrsSelector.vue +1 -0
  3. package/app/components/ExtensionSelector.vue +2 -1
  4. package/app/components/FeedBack/ErrorBanner.vue +4 -3
  5. package/app/components/FeedBack/Snackers.vue +5 -3
  6. package/app/components/FileSelector.vue +3 -2
  7. package/app/components/FileUploader.vue +1 -1
  8. package/app/components/HybridRenderingView.vue +4 -1
  9. package/app/components/InfraConnected.vue +2 -0
  10. package/app/components/Inspector/InspectionButton.vue +1 -0
  11. package/app/components/Inspector/ResultPanel.vue +1 -1
  12. package/app/components/Launcher.vue +9 -8
  13. package/app/components/Loading.vue +1 -1
  14. package/app/components/MissingFilesSelector.vue +3 -2
  15. package/app/components/ObjectSelector.vue +8 -5
  16. package/app/components/PackagesVersions.vue +2 -1
  17. package/app/components/Recaptcha.vue +6 -5
  18. package/app/components/RemoteRenderingView.vue +3 -3
  19. package/app/components/Screenshot.vue +2 -0
  20. package/app/components/Stepper.vue +1 -1
  21. package/app/components/VeaseViewToolbar.vue +6 -3
  22. package/app/components/ViewToolbar.vue +3 -2
  23. package/app/components/Viewer/BreadCrumb.vue +1 -0
  24. package/app/components/Viewer/ContextMenu.vue +2 -0
  25. package/app/components/Viewer/EdgedCurve/EdgesOptions.vue +1 -1
  26. package/app/components/Viewer/EdgedCurve/PointsOptions.vue +1 -1
  27. package/app/components/Viewer/Generic/Mesh/CellsOptions.vue +6 -3
  28. package/app/components/Viewer/Generic/Mesh/EdgesOptions.vue +9 -6
  29. package/app/components/Viewer/Generic/Mesh/PointsOptions.vue +6 -3
  30. package/app/components/Viewer/Generic/Mesh/PolygonsOptions.vue +6 -3
  31. package/app/components/Viewer/Generic/Mesh/PolyhedraOptions.vue +6 -3
  32. package/app/components/Viewer/Generic/Model/EdgesOptions.vue +8 -4
  33. package/app/components/Viewer/Generic/Model/PointsOptions.vue +5 -2
  34. package/app/components/Viewer/Grid/2D/CellsOptions.vue +1 -1
  35. package/app/components/Viewer/Grid/2D/EdgesOptions.vue +1 -1
  36. package/app/components/Viewer/Grid/2D/PointsOptions.vue +1 -1
  37. package/app/components/Viewer/Grid/3D/CellsOptions.vue +1 -1
  38. package/app/components/Viewer/Grid/3D/EdgesOptions.vue +1 -1
  39. package/app/components/Viewer/Grid/3D/FacetsOptions.vue +1 -1
  40. package/app/components/Viewer/Grid/3D/PointsOptions.vue +1 -1
  41. package/app/components/Viewer/HybridSolid/EdgesOptions.vue +1 -1
  42. package/app/components/Viewer/HybridSolid/PointsOptions.vue +1 -1
  43. package/app/components/Viewer/HybridSolid/PolygonsOptions.vue +1 -1
  44. package/app/components/Viewer/HybridSolid/PolyhedraOptions.vue +1 -1
  45. package/app/components/Viewer/Options/CellAttributeSelector.vue +1 -0
  46. package/app/components/Viewer/Options/ColoringTypeSelector.vue +7 -7
  47. package/app/components/Viewer/Options/PolygonAttributeSelector.vue +1 -0
  48. package/app/components/Viewer/Options/PolyhedronAttributeSelector.vue +1 -0
  49. package/app/components/Viewer/Options/TextureItem.vue +2 -1
  50. package/app/components/Viewer/Options/TexturesSelector.vue +1 -1
  51. package/app/components/Viewer/PointSet/PointsOptions.vue +1 -1
  52. package/app/components/Viewer/PointSet/SpecificPointsOptions.vue +7 -3
  53. package/app/components/Viewer/PolygonalSurface/EdgesOptions.vue +1 -1
  54. package/app/components/Viewer/PolygonalSurface/PointsOptions.vue +1 -1
  55. package/app/components/Viewer/PolygonalSurface/PolygonsOptions.vue +1 -1
  56. package/app/components/Viewer/Solid/EdgesOptions.vue +1 -1
  57. package/app/components/Viewer/Solid/PointsOptions.vue +1 -1
  58. package/app/components/Viewer/Solid/PolygonsOptions.vue +1 -1
  59. package/app/components/Viewer/Solid/PolyhedraOptions.vue +1 -1
  60. package/app/components/Viewer/TetrahedralSolid/TetrahedraOptions.vue +1 -1
  61. package/app/components/Viewer/TetrahedralSolid/TrianglesOptions.vue +1 -1
  62. package/app/components/Viewer/Tree/ObjectTree.vue +5 -3
  63. package/app/components/Viewer/TreeComponent.vue +4 -0
  64. package/app/components/Viewer/TreeObject.vue +6 -0
  65. package/app/components/Viewer/TriangulatedSurface/EdgesOptions.vue +1 -1
  66. package/app/components/Viewer/TriangulatedSurface/PointsOptions.vue +1 -1
  67. package/app/components/Viewer/TriangulatedSurface/TrianglesOptions.vue +1 -1
  68. package/app/components/Wrapper.vue +7 -5
  69. package/app/composables/project_manager.js +9 -3
  70. package/app/composables/run_function_when_microservices_connected.js +5 -2
  71. package/app/plugins/auto_store_register.js +9 -1
  72. package/app/stores/data_base.js +4 -1
  73. package/app/stores/data_style.js +5 -5
  74. package/app/stores/geode.js +14 -12
  75. package/app/stores/hybrid_viewer.js +3 -2
  76. package/app/stores/infra.js +4 -2
  77. package/app/stores/lambda.js +2 -1
  78. package/app/stores/menu.js +24 -24
  79. package/app/stores/viewer.js +9 -8
  80. package/app/utils/file_import_workflow.js +5 -1
  81. package/app/utils/upload_file.js +6 -3
  82. package/internal/stores/mesh/cells.js +4 -5
  83. package/internal/stores/mesh/edges.js +5 -3
  84. package/internal/stores/mesh/index.js +9 -6
  85. package/internal/stores/mesh/points.js +5 -4
  86. package/internal/stores/mesh/polygons.js +5 -5
  87. package/internal/stores/mesh/polyhedra.js +5 -2
  88. package/internal/stores/model/blocks.js +6 -2
  89. package/internal/stores/model/corners.js +6 -2
  90. package/internal/stores/model/edges.js +5 -1
  91. package/internal/stores/model/index.js +11 -8
  92. package/internal/stores/model/lines.js +6 -2
  93. package/internal/stores/model/points.js +5 -2
  94. package/internal/stores/model/surfaces.js +6 -2
  95. package/internal/utils/api_fetch.js +2 -1
  96. package/internal/utils/viewer_call.js +5 -4
  97. package/nuxt.config.js +1 -3
  98. package/package.json +6 -7
  99. package/scripts/generate_geode_objects.js +1 -1
  100. package/tests/integration/microservices/back/requirements.txt +1 -1
  101. package/tests/integration/microservices/viewer/requirements.txt +1 -1
  102. package/tests/integration/setup.js +1 -1
  103. package/tests/integration/stores/data_style/mesh/cells.nuxt.test.js +3 -1
  104. package/tests/integration/stores/data_style/mesh/edges.nuxt.test.js +3 -1
  105. package/tests/integration/stores/data_style/mesh/index.nuxt.test.js +3 -1
  106. package/tests/integration/stores/data_style/mesh/points.nuxt.test.js +3 -1
  107. package/tests/integration/stores/data_style/mesh/polygons.nuxt.test.js +3 -1
  108. package/tests/integration/stores/data_style/mesh/polyhedra.nuxt.test.js +3 -1
  109. package/tests/integration/stores/data_style/model/blocks.nuxt.test.js +4 -1
  110. package/tests/integration/stores/data_style/model/corners.nuxt.test.js +4 -1
  111. package/tests/integration/stores/data_style/model/edges.nuxt.test.js +3 -1
  112. package/tests/integration/stores/data_style/model/index.nuxt.test.js +3 -1
  113. package/tests/integration/stores/data_style/model/lines.nuxt.test.js +4 -1
  114. package/tests/integration/stores/data_style/model/points.nuxt.test.js +2 -1
  115. package/tests/integration/stores/data_style/model/surfaces.nuxt.test.js +4 -1
  116. package/tests/unit/components/CrsSelector.nuxt.test.js +4 -2
  117. package/tests/unit/components/ExtensionSelector.nuxt.test.js +4 -2
  118. package/tests/unit/components/FeedBack/ErrorsBanner.nuxt.test.js +9 -8
  119. package/tests/unit/components/FeedBack/Snackers.nuxt.test.js +6 -5
  120. package/tests/unit/components/FileSelector.nuxt.test.js +6 -7
  121. package/tests/unit/components/FileUploader.nuxt.test.js +4 -3
  122. package/tests/unit/components/Inspector/InspectionButton.nuxt.test.js +3 -2
  123. package/tests/unit/components/Inspector/ResultPanel.nuxt.test.js +5 -4
  124. package/tests/unit/components/Launcher.nuxt.test.js +7 -5
  125. package/tests/unit/components/MissingFilesSelector.nuxt.test.js +5 -4
  126. package/tests/unit/components/ObjectSelector.nuxt.test.js +16 -7
  127. package/tests/unit/components/PackagesVersions.nuxt.test.js +3 -2
  128. package/tests/unit/components/Step.nuxt.test.js +3 -3
  129. package/tests/unit/components/Stepper.nuxt.test.js +3 -3
  130. package/tests/unit/components/Wrapper.nuxt.test.js +3 -3
  131. package/tests/unit/composables/ProjectManager.nuxt.test.js +15 -17
  132. package/tests/unit/composables/api_fetch.nuxt.test.js +5 -2
  133. package/tests/unit/composables/run_function_when_microservices_connected.nuxt.test.js +11 -1
  134. package/tests/unit/composables/upload_file.nuxt.test.js +6 -3
  135. package/tests/unit/plugins/project_load.nuxt.test.js +8 -2
  136. package/tests/unit/stores/App.nuxt.test.js +34 -32
  137. package/tests/unit/stores/Feedback.nuxt.test.js +25 -25
  138. package/tests/unit/stores/Geode.nuxt.test.js +27 -25
  139. package/tests/unit/stores/Infra.nuxt.test.js +73 -70
  140. package/tests/unit/stores/Lambda.nuxt.test.js +5 -3
  141. package/tests/unit/stores/Viewer.nuxt.test.js +27 -27
  142. package/tests/unit/utils/recaptcha.nuxt.test.js +2 -2
  143. package/tests/unit/utils/validate_schema.nuxt.test.js +2 -2
  144. package/tests/vitest.config.js +0 -1
@@ -3,6 +3,10 @@ name: Deploy
3
3
  on:
4
4
  workflow_dispatch:
5
5
 
6
+ permissions:
7
+ contents: write
8
+ id-token: write
9
+
6
10
  jobs:
7
11
  deploy:
8
12
  uses: Geode-solutions/actions/.github/workflows/js-deploy.yml@master
@@ -26,6 +26,7 @@
26
26
  <script setup>
27
27
  import schemas from "@geode/opengeodeweb-back/opengeodeweb_back_schemas.json"
28
28
  const schema = schemas.opengeodeweb_back.geographic_coordinate_systems
29
+ import { useGeodeStore } from "@ogw_front/stores/geode"
29
30
 
30
31
  const emit = defineEmits([
31
32
  "update_values",
@@ -57,7 +57,8 @@
57
57
  <script setup>
58
58
  import schemas from "@geode/opengeodeweb-back/opengeodeweb_back_schemas.json"
59
59
 
60
- import FetchingData from "@ogw_front/components/FetchingData.vue"
60
+ import FetchingData from "@ogw_front/components/FetchingData"
61
+ import { useGeodeStore } from "@ogw_front/stores/geode"
61
62
 
62
63
  const schema = schemas.opengeodeweb_back.geode_objects_and_output_extensions
63
64
  const emit = defineEmits([
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <v-banner
3
- v-if="feedback_store.server_error"
3
+ v-if="feedbackStore.server_error"
4
4
  elevation="2"
5
5
  style="background-color: grey; z-index: 9999"
6
6
  position="fixed"
@@ -33,7 +33,7 @@
33
33
  size="20"
34
34
  color="grey"
35
35
  class=".align-center"
36
- @click="feedback_store.delete_server_error()"
36
+ @click="feedbackStore.delete_server_error()"
37
37
  >
38
38
  <v-icon icon="mdi-close" size="20" color="white" />
39
39
  </v-btn>
@@ -43,7 +43,8 @@
43
43
  </template>
44
44
 
45
45
  <script setup>
46
- const feedback_store = useFeedbackStore()
46
+ import { useFeedbackStore } from "@ogw_front/stores/feedback"
47
+ const feedbackStore = useFeedbackStore()
47
48
 
48
49
  function reload() {
49
50
  window.location.reload()
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <v-snackbar
3
- v-for="(feedback, index) in feedback_store.feedbacks"
3
+ v-for="(feedback, index) in feedbackStore.feedbacks"
4
4
  :key="feedback"
5
5
  v-model="show"
6
6
  :style="{ 'margin-bottom': calc_margin(index) }"
@@ -51,7 +51,7 @@
51
51
  variant="flat"
52
52
  size="20"
53
53
  :color="feedback.type"
54
- @click="feedback_store.delete_feedback(feedback.id)"
54
+ @click="feedbackStore.delete_feedback(feedback.id)"
55
55
  >
56
56
  <v-icon icon="mdi-close" size="20" color="white" />
57
57
  </v-btn>
@@ -61,7 +61,9 @@
61
61
  </template>
62
62
 
63
63
  <script setup>
64
- const feedback_store = useFeedbackStore()
64
+ import { useFeedbackStore } from "@ogw_front/stores/feedback"
65
+
66
+ const feedbackStore = useFeedbackStore()
65
67
  const show = true
66
68
 
67
69
  function calc_margin(index) {
@@ -10,8 +10,9 @@
10
10
  <script setup>
11
11
  import schemas from "@geode/opengeodeweb-back/opengeodeweb_back_schemas.json"
12
12
 
13
- import FetchingData from "@ogw_front/components/FetchingData.vue"
14
- import FileUploader from "@ogw_front/components/FileUploader.vue"
13
+ import FetchingData from "@ogw_front/components/FetchingData"
14
+ import FileUploader from "@ogw_front/components/FileUploader"
15
+ import { useGeodeStore } from "@ogw_front/stores/geode"
15
16
 
16
17
  const schema = schemas.opengeodeweb_back.allowed_files
17
18
  const emit = defineEmits([
@@ -34,7 +34,7 @@
34
34
 
35
35
  <script setup>
36
36
  import schemas from "@geode/opengeodeweb-back/opengeodeweb_back_schemas.json"
37
- import { upload_file } from "@ogw_front/utils/upload_file.js"
37
+ import { upload_file } from "@ogw_front/utils/upload_file"
38
38
  const schema = schemas.opengeodeweb_back.upload_file
39
39
 
40
40
  const emit = defineEmits(["files_uploaded", "decrement_step"])
@@ -15,7 +15,10 @@
15
15
  </template>
16
16
 
17
17
  <script setup>
18
- import VeaseViewToolbar from "@ogw_front/components/VeaseViewToolbar.vue"
18
+ import VeaseViewToolbar from "@ogw_front/components/VeaseViewToolbar"
19
+
20
+ import { useHybridViewerStore } from "@ogw_front/stores/hybrid_viewer"
21
+ import { useViewerStore } from "@ogw_front/stores/viewer"
19
22
 
20
23
  const emit = defineEmits(["click"])
21
24
 
@@ -3,5 +3,7 @@
3
3
  </template>
4
4
 
5
5
  <script setup>
6
+ import { useInfraStore } from "@ogw_front/stores/infra"
6
7
  const infraStore = useInfraStore()
8
+ console.log("TEST", { infraStore })
7
9
  </script>
@@ -16,6 +16,7 @@
16
16
 
17
17
  <script setup>
18
18
  import schemas from "@geode/opengeodeweb-back/opengeodeweb_back_schemas.json"
19
+ import { useGeodeStore } from "@ogw_front/stores/geode"
19
20
  const schema = schemas.opengeodeweb_back.inspect_file
20
21
 
21
22
  const emit = defineEmits([
@@ -42,7 +42,7 @@
42
42
  </template>
43
43
 
44
44
  <script setup>
45
- import InspectorResultPanel from "@ogw_front/components/Inspector/ResultPanel.vue"
45
+ import InspectorResultPanel from "@ogw_front/components/Inspector/ResultPanel"
46
46
 
47
47
  const props = defineProps({
48
48
  inspection_result: { type: Array, required: true },
@@ -2,7 +2,7 @@
2
2
  <v-container class="justify">
3
3
  <v-row align-content="center" align="center">
4
4
  <v-col
5
- v-if="!infra_store.is_captcha_validated"
5
+ v-if="!infraStore.is_captcha_validated"
6
6
  class="align"
7
7
  cols="12"
8
8
  align-self="center"
@@ -10,7 +10,7 @@
10
10
  >
11
11
  <Recaptcha :color="'secondary'" />
12
12
  </v-col>
13
- <v-col v-else-if="infra_store.status == Status.CREATING">
13
+ <v-col v-else-if="infraStore.status == Status.CREATING">
14
14
  <Loading />
15
15
  </v-col>
16
16
  </v-row>
@@ -18,17 +18,18 @@
18
18
  </template>
19
19
 
20
20
  <script setup>
21
- import Status from "@ogw_front/utils/status.js"
22
- import Loading from "@ogw_front/components/Loading.vue"
23
- import Recaptcha from "@ogw_front/components/Recaptcha.vue"
21
+ import Status from "@ogw_front/utils/status"
22
+ import Loading from "@ogw_front/components/Loading"
23
+ import Recaptcha from "@ogw_front/components/Recaptcha"
24
+ import { useInfraStore } from "@ogw_front/stores/infra"
24
25
 
25
- const infra_store = useInfraStore()
26
+ const infraStore = useInfraStore()
26
27
 
27
28
  watch(
28
- () => infra_store.is_captcha_validated,
29
+ () => infraStore.is_captcha_validated,
29
30
  (value, oldValue) => {
30
31
  if (value && !oldValue && import.meta.client) {
31
- infra_store.create_backend()
32
+ infraStore.create_backend()
32
33
  }
33
34
  },
34
35
  )
@@ -37,7 +37,7 @@
37
37
  import derniere from "@ogw_front/assets/img/energy_sobriety/derniere.png"
38
38
  import salon from "@ogw_front/assets/img/energy_sobriety/salon.png"
39
39
 
40
- import Carousel from "@ogw_front/components/Carousel.vue"
40
+ import Carousel from "@ogw_front/components/Carousel"
41
41
 
42
42
  const users_list = [
43
43
  {
@@ -45,8 +45,9 @@
45
45
  <script setup>
46
46
  import schemas from "@geode/opengeodeweb-back/opengeodeweb_back_schemas.json"
47
47
 
48
- import FetchingData from "@ogw_front/components/FetchingData.vue"
49
- import FileUploader from "@ogw_front/components/FileUploader.vue"
48
+ import FetchingData from "@ogw_front/components/FetchingData"
49
+ import FileUploader from "@ogw_front/components/FileUploader"
50
+ import { useGeodeStore } from "@ogw_front/stores/geode"
50
51
 
51
52
  const schema = schemas.opengeodeweb_back.missing_files
52
53
 
@@ -49,20 +49,22 @@
49
49
  </template>
50
50
 
51
51
  <script setup>
52
- import geode_objects from "@ogw_front/assets/geode_objects"
53
52
  import schemas from "@geode/opengeodeweb-back/opengeodeweb_back_schemas.json"
54
53
 
54
+ import geode_objects from "@ogw_front/assets/geode_objects"
55
55
  import FetchingData from "@ogw_front/components/FetchingData.vue"
56
+ import { useGeodeStore } from "@ogw_front/stores/geode"
56
57
 
57
58
  const schema = schemas.opengeodeweb_back.allowed_objects
58
59
 
59
60
  const emit = defineEmits(["update_values", "increment_step"])
60
-
61
+ console.log("ObjectSelector")
61
62
  const props = defineProps({
62
63
  filenames: { type: Array, required: true },
63
- supported_feature: { type: String, required: false, default: null },
64
64
  })
65
- const { filenames, supported_feature } = props
65
+
66
+ const geodeStore = useGeodeStore()
67
+ const { filenames } = props
66
68
 
67
69
  const loading = ref(false)
68
70
  const allowed_objects = ref({})
@@ -108,7 +110,7 @@
108
110
  async function get_allowed_objects() {
109
111
  toggle_loading()
110
112
  allowed_objects.value = {}
111
- const geodeStore = useGeodeStore()
113
+
112
114
  const promise_array = filenames.map((filename) => {
113
115
  return geodeStore.request(schema, { filename })
114
116
  })
@@ -142,6 +144,7 @@
142
144
  }
143
145
 
144
146
  function set_geode_object(geode_object_type) {
147
+ console.log("set_geode_object", { geode_object_type })
145
148
  if (geode_object_type) {
146
149
  emit("update_values", { geode_object_type })
147
150
  emit("increment_step")
@@ -19,7 +19,8 @@
19
19
  </template>
20
20
 
21
21
  <script setup>
22
- import Status from "@ogw_front/utils/status.js"
22
+ import Status from "@ogw_front/utils/status"
23
+ import { useGeodeStore } from "@ogw_front/stores/geode"
23
24
 
24
25
  const props = defineProps({
25
26
  schema: { type: Object, required: true },
@@ -39,7 +39,8 @@
39
39
  </template>
40
40
 
41
41
  <script setup>
42
- import { appMode } from "@ogw_front/utils/app_mode.js"
42
+ import { appMode } from "@ogw_front/utils/app_mode"
43
+ import { useInfraStore } from "@ogw_front/stores/infra"
43
44
 
44
45
  const props = defineProps({
45
46
  button_label: {
@@ -53,7 +54,7 @@
53
54
  default: "white",
54
55
  },
55
56
  })
56
- const infra_store = useInfraStore()
57
+ const infraStore = useInfraStore()
57
58
  const name = ref("")
58
59
  const email = ref("")
59
60
  const launch = ref(false)
@@ -76,9 +77,9 @@
76
77
  if (import.meta.client) {
77
78
  if (
78
79
  process.env.NODE_ENV !== "production" ||
79
- infra_store.app_mode !== appMode.CLOUD
80
+ infraStore.app_mode !== appMode.CLOUD
80
81
  ) {
81
- infra_store.$patch({ is_captcha_validated: true })
82
+ infraStore.$patch({ is_captcha_validated: true })
82
83
  }
83
84
  }
84
85
  })
@@ -91,7 +92,7 @@
91
92
  launch: launch.value,
92
93
  },
93
94
  })
94
- infra_store.$patch({
95
+ infraStore.$patch({
95
96
  is_captcha_validated: response.status === 200,
96
97
  })
97
98
  }
@@ -24,9 +24,9 @@
24
24
  import vtkRemoteView from "@kitware/vtk.js/Rendering/Misc/RemoteView"
25
25
  import { useElementSize, useWindowSize } from "@vueuse/core"
26
26
  import viewer_schemas from "@geode/opengeodeweb-viewer/opengeodeweb_viewer_schemas.json"
27
- import Status from "@ogw_front/utils/status.js"
28
-
29
- import ViewToolbar from "@ogw_front/components/ViewToolbar.vue"
27
+ import Status from "@ogw_front/utils/status"
28
+ import ViewToolbar from "@ogw_front/components/ViewToolbar"
29
+ import { useViewerStore } from "@ogw_front/stores/viewer"
30
30
 
31
31
  const props = defineProps({
32
32
  viewId: { type: String, default: "-1" },
@@ -64,6 +64,8 @@
64
64
  import fileDownload from "js-file-download"
65
65
  import viewer_schemas from "@geode/opengeodeweb-viewer/opengeodeweb_viewer_schemas.json"
66
66
 
67
+ import { useViewerStore } from "@ogw_front/stores/viewer"
68
+
67
69
  const emit = defineEmits(["close"])
68
70
 
69
71
  const props = defineProps({
@@ -19,7 +19,7 @@
19
19
  </template>
20
20
 
21
21
  <script setup>
22
- import Step from "@ogw_front/components/Step.vue"
22
+ import Step from "@ogw_front/components/Step"
23
23
 
24
24
  const emit = defineEmits(["reset_values"])
25
25
  const stepper_tree = inject("stepper_tree")
@@ -29,10 +29,14 @@
29
29
  <script setup>
30
30
  import schemas from "@geode/opengeodeweb-viewer/opengeodeweb_viewer_schemas.json"
31
31
 
32
- import Screenshot from "@ogw_front/components/Screenshot.vue"
33
- import ZScaling from "@ogw_front/components/ZScaling.vue"
32
+ import Screenshot from "@ogw_front/components/Screenshot"
33
+ import ZScaling from "@ogw_front/components/ZScaling"
34
+
35
+ import { useViewerStore } from "@ogw_front/stores/viewer"
36
+ import { useHybridViewerStore } from "@ogw_front/stores/hybrid_viewer"
34
37
 
35
38
  const hybridViewerStore = useHybridViewerStore()
39
+ const viewerStore = useViewerStore()
36
40
  const take_screenshot = ref(false)
37
41
  const showZScaling = ref(false)
38
42
  const grid_scale = ref(false)
@@ -74,7 +78,6 @@
74
78
  tooltip: "Toggle grid scale",
75
79
  icon: "mdi-ruler-square",
76
80
  action: () => {
77
- const viewerStore = useViewerStore()
78
81
  viewerStore.request(
79
82
  schemas.opengeodeweb_viewer.viewer.grid_scale,
80
83
  { visibility: !grid_scale.value },
@@ -23,8 +23,10 @@
23
23
  <script setup>
24
24
  import schemas from "@geode/opengeodeweb-viewer/opengeodeweb_viewer_schemas.json"
25
25
 
26
- import Screenshot from "@ogw_front/components/Screenshot.vue"
26
+ import Screenshot from "@ogw_front/components/Screenshot"
27
+ import { useViewerStore } from "@ogw_front/stores/viewer"
27
28
 
29
+ const viewerStore = useViewerStore()
28
30
  const take_screenshot = ref(false)
29
31
  const grid_scale = ref(false)
30
32
 
@@ -33,7 +35,6 @@
33
35
  tooltip: "Reset camera",
34
36
  icon: "mdi-cube-scan",
35
37
  action: () => {
36
- const viewerStore = useViewerStore()
37
38
  viewerStore.request(schemas.opengeodeweb_viewer.viewer.reset_camera)
38
39
  },
39
40
  },
@@ -37,6 +37,7 @@
37
37
  </template>
38
38
 
39
39
  <script setup>
40
+ import { useTreeviewStore } from "@ogw_front/stores/treeview"
40
41
  const treeviewStore = useTreeviewStore()
41
42
 
42
43
  const selectedTree = computed(() => treeviewStore.selectedTree)
@@ -30,6 +30,8 @@
30
30
  </template>
31
31
 
32
32
  <script setup>
33
+ import { useMenuStore } from "@ogw_front/stores/menu"
34
+ import { useDataBaseStore } from "@ogw_front/stores/data_base"
33
35
  const menuStore = useMenuStore()
34
36
  const dataBaseStore = useDataBaseStore()
35
37
 
@@ -6,7 +6,7 @@
6
6
  </template>
7
7
 
8
8
  <script setup>
9
- import ViewerGenericMeshEdgesOptions from "@ogw_front/components/Viewer/Generic/Mesh/EdgesOptions.vue"
9
+ import ViewerGenericMeshEdgesOptions from "@ogw_front/components/Viewer/Generic/Mesh/EdgesOptions"
10
10
  import EdgedCurveEdges from "@ogw_front/assets/viewer_svgs/edged_curve_edges.svg"
11
11
 
12
12
  const props = defineProps({
@@ -6,7 +6,7 @@
6
6
  </template>
7
7
 
8
8
  <script setup>
9
- import ViewerGenericMeshPointsOptions from "@ogw_front/components/Viewer/Generic/Mesh/PointsOptions.vue"
9
+ import ViewerGenericMeshPointsOptions from "@ogw_front/components/Viewer/Generic/Mesh/PointsOptions"
10
10
  import EdgedCurvePoints from "@ogw_front/assets/viewer_svgs/edged_curve_points.svg"
11
11
 
12
12
  const props = defineProps({
@@ -21,9 +21,12 @@
21
21
  </template>
22
22
 
23
23
  <script setup>
24
- import ViewerContextMenuItem from "@ogw_front/components/Viewer/ContextMenuItem.vue"
25
- import ViewerOptionsVisibilitySwitch from "@ogw_front/components/Viewer/Options/VisibilitySwitch.vue"
26
- import ViewerOptionsColoringTypeSelector from "@ogw_front/components/Viewer/Options/ColoringTypeSelector.vue"
24
+ import ViewerContextMenuItem from "@ogw_front/components/Viewer/ContextMenuItem"
25
+ import ViewerOptionsVisibilitySwitch from "@ogw_front/components/Viewer/Options/VisibilitySwitch"
26
+ import ViewerOptionsColoringTypeSelector from "@ogw_front/components/Viewer/Options/ColoringTypeSelector"
27
+
28
+ import { useDataStyleStore } from "@ogw_front/stores/data_style"
29
+ import { useHybridViewerStore } from "@ogw_front/stores/hybrid_viewer"
27
30
 
28
31
  const dataStyleStore = useDataStyleStore()
29
32
  const hybridViewerStore = useHybridViewerStore()
@@ -18,9 +18,15 @@
18
18
  </template>
19
19
 
20
20
  <script setup>
21
- import ViewerContextMenuItem from "@ogw_front/components/Viewer/ContextMenuItem.vue"
22
- import ViewerOptionsVisibilitySwitch from "@ogw_front/components/Viewer/Options/VisibilitySwitch.vue"
23
- import ViewerOptionsColoringTypeSelector from "@ogw_front/components/Viewer/Options/ColoringTypeSelector.vue"
21
+ import ViewerContextMenuItem from "@ogw_front/components/Viewer/ContextMenuItem"
22
+ import ViewerOptionsVisibilitySwitch from "@ogw_front/components/Viewer/Options/VisibilitySwitch"
23
+ import ViewerOptionsColoringTypeSelector from "@ogw_front/components/Viewer/Options/ColoringTypeSelector"
24
+
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()
24
30
 
25
31
  const props = defineProps({
26
32
  itemProps: { type: Object, required: true },
@@ -29,9 +35,6 @@
29
35
 
30
36
  const id = toRef(() => props.itemProps.id)
31
37
 
32
- const dataStyleStore = useDataStyleStore()
33
- const hybridViewerStore = useHybridViewerStore()
34
-
35
38
  const visibility = computed({
36
39
  get: () => dataStyleStore.meshEdgesVisibility(id.value),
37
40
  set: (newValue) => {
@@ -39,9 +39,12 @@
39
39
  </template>
40
40
 
41
41
  <script setup>
42
- import ViewerContextMenuItem from "@ogw_front/components/Viewer/ContextMenuItem.vue"
43
- import ViewerOptionsVisibilitySwitch from "@ogw_front/components/Viewer/Options/VisibilitySwitch.vue"
44
- import ViewerOptionsColoringTypeSelector from "@ogw_front/components/Viewer/Options/ColoringTypeSelector.vue"
42
+ import ViewerContextMenuItem from "@ogw_front/components/Viewer/ContextMenuItem"
43
+ import ViewerOptionsVisibilitySwitch from "@ogw_front/components/Viewer/Options/VisibilitySwitch"
44
+ import ViewerOptionsColoringTypeSelector from "@ogw_front/components/Viewer/Options/ColoringTypeSelector"
45
+
46
+ import { useDataStyleStore } from "@ogw_front/stores/data_style"
47
+ import { useHybridViewerStore } from "@ogw_front/stores/hybrid_viewer"
45
48
 
46
49
  const dataStyleStore = useDataStyleStore()
47
50
  const hybridViewerStore = useHybridViewerStore()
@@ -21,9 +21,12 @@
21
21
  </template>
22
22
 
23
23
  <script setup>
24
- import ViewerContextMenuItem from "@ogw_front/components/Viewer/ContextMenuItem.vue"
25
- import ViewerOptionsVisibilitySwitch from "@ogw_front/components/Viewer/Options/VisibilitySwitch.vue"
26
- import ViewerOptionsColoringTypeSelector from "@ogw_front/components/Viewer/Options/ColoringTypeSelector.vue"
24
+ import ViewerContextMenuItem from "@ogw_front/components/Viewer/ContextMenuItem"
25
+ import ViewerOptionsVisibilitySwitch from "@ogw_front/components/Viewer/Options/VisibilitySwitch"
26
+ import ViewerOptionsColoringTypeSelector from "@ogw_front/components/Viewer/Options/ColoringTypeSelector"
27
+
28
+ import { useDataStyleStore } from "@ogw_front/stores/data_style"
29
+ import { useHybridViewerStore } from "@ogw_front/stores/hybrid_viewer"
27
30
 
28
31
  const dataStyleStore = useDataStyleStore()
29
32
  const hybridViewerStore = useHybridViewerStore()
@@ -21,9 +21,12 @@
21
21
  </template>
22
22
 
23
23
  <script setup>
24
- import ViewerContextMenuItem from "@ogw_front/components/Viewer/ContextMenuItem.vue"
25
- import ViewerOptionsVisibilitySwitch from "@ogw_front/components/Viewer/Options/VisibilitySwitch.vue"
26
- import ViewerOptionsColoringTypeSelector from "@ogw_front/components/Viewer/Options/ColoringTypeSelector.vue"
24
+ import ViewerContextMenuItem from "@ogw_front/components/Viewer/ContextMenuItem"
25
+ import ViewerOptionsVisibilitySwitch from "@ogw_front/components/Viewer/Options/VisibilitySwitch"
26
+ import ViewerOptionsColoringTypeSelector from "@ogw_front/components/Viewer/Options/ColoringTypeSelector"
27
+
28
+ import { useDataStyleStore } from "@ogw_front/stores/data_style"
29
+ import { useHybridViewerStore } from "@ogw_front/stores/hybrid_viewer"
27
30
 
28
31
  const dataStyleStore = useDataStyleStore()
29
32
  const hybridViewerStore = useHybridViewerStore()
@@ -11,18 +11,22 @@
11
11
  </template>
12
12
 
13
13
  <script setup>
14
- import ViewerContextMenuItem from "@ogw_front/components/Viewer/ContextMenuItem.vue"
15
- import ViewerOptionsVisibilitySwitch from "@ogw_front/components/Viewer/Options/VisibilitySwitch.vue"
14
+ import ViewerContextMenuItem from "@ogw_front/components/Viewer/ContextMenuItem"
15
+ import ViewerOptionsVisibilitySwitch from "@ogw_front/components/Viewer/Options/VisibilitySwitch"
16
16
  import SurfaceEdges from "@ogw_front/assets/viewer_svgs/surface_edges.svg"
17
17
 
18
+ import { useDataStyleStore } from "@ogw_front/stores/data_style"
19
+ import { useHybridViewerStore } from "@ogw_front/stores/hybrid_viewer"
20
+
21
+ const dataStyleStore = useDataStyleStore()
22
+ const hybridViewerStore = useHybridViewerStore()
23
+
18
24
  const props = defineProps({
19
25
  itemProps: { type: Object, required: true },
20
26
  btn_image: { type: String, required: true },
21
27
  })
22
28
 
23
29
  const id = toRef(() => props.itemProps.id)
24
- const dataStyleStore = useDataStyleStore()
25
- const hybridViewerStore = useHybridViewerStore()
26
30
 
27
31
  const visibility = computed({
28
32
  get: () => dataStyleStore.modelEdgesVisibility(id.value),
@@ -30,10 +30,13 @@
30
30
  </template>
31
31
 
32
32
  <script setup>
33
- import ViewerContextMenuItem from "@ogw_front/components/Viewer/ContextMenuItem.vue"
34
- import ViewerOptionsVisibilitySwitch from "@ogw_front/components/Viewer/Options/VisibilitySwitch.vue"
33
+ import ViewerContextMenuItem from "@ogw_front/components/Viewer/ContextMenuItem"
34
+ import ViewerOptionsVisibilitySwitch from "@ogw_front/components/Viewer/Options/VisibilitySwitch"
35
35
  import SurfacePoints from "@ogw_front/assets/viewer_svgs/surface_points.svg"
36
36
 
37
+ import { useDataStyleStore } from "@ogw_front/stores/data_style"
38
+ import { useHybridViewerStore } from "@ogw_front/stores/hybrid_viewer"
39
+
37
40
  const dataStyleStore = useDataStyleStore()
38
41
  const hybridViewerStore = useHybridViewerStore()
39
42
 
@@ -7,7 +7,7 @@
7
7
  </template>
8
8
 
9
9
  <script setup>
10
- import ViewerGenericMeshCellsOptions from "@ogw_front/components/Viewer/Generic/Mesh/CellsOptions.vue"
10
+ import ViewerGenericMeshCellsOptions from "@ogw_front/components/Viewer/Generic/Mesh/CellsOptions"
11
11
  import Grid2D_Cells from "@ogw_front/assets/viewer_svgs/grid_2d_cells.svg"
12
12
 
13
13
  const props = defineProps({
@@ -6,7 +6,7 @@
6
6
  </template>
7
7
 
8
8
  <script setup>
9
- import ViewerGenericMeshEdgesOptions from "@ogw_front/components/Viewer/Generic/Mesh/EdgesOptions.vue"
9
+ import ViewerGenericMeshEdgesOptions from "@ogw_front/components/Viewer/Generic/Mesh/EdgesOptions"
10
10
  import Grid2D_Edges from "@ogw_front/assets/viewer_svgs/grid_2d_edges.svg"
11
11
 
12
12
  const props = defineProps({
@@ -6,7 +6,7 @@
6
6
  </template>
7
7
 
8
8
  <script setup>
9
- import ViewerGenericMeshPointsOptions from "@ogw_front/components/Viewer/Generic/Mesh/PointsOptions.vue"
9
+ import ViewerGenericMeshPointsOptions from "@ogw_front/components/Viewer/Generic/Mesh/PointsOptions"
10
10
  import Grid2D_Points from "@ogw_front/assets/viewer_svgs/grid_2d_points.svg"
11
11
 
12
12
  const props = defineProps({
@@ -7,7 +7,7 @@
7
7
  </template>
8
8
 
9
9
  <script setup>
10
- import ViewerGenericMeshCellsOptions from "@ogw_front/components/Viewer/Generic/Mesh/CellsOptions.vue"
10
+ import ViewerGenericMeshCellsOptions from "@ogw_front/components/Viewer/Generic/Mesh/CellsOptions"
11
11
  import Grid3DCells from "@ogw_front/assets/viewer_svgs/grid_3d_cells.svg"
12
12
 
13
13
  const props = defineProps({
@@ -6,7 +6,7 @@
6
6
  </template>
7
7
 
8
8
  <script setup>
9
- import ViewerGenericMeshEdgesOptions from "@ogw_front/components/Viewer/Generic/Mesh/EdgesOptions.vue"
9
+ import ViewerGenericMeshEdgesOptions from "@ogw_front/components/Viewer/Generic/Mesh/EdgesOptions"
10
10
  import Grid3D_Edges from "@ogw_front/assets/viewer_svgs/grid_3d_edges.svg"
11
11
 
12
12
  const props = defineProps({
@@ -7,7 +7,7 @@
7
7
  </template>
8
8
 
9
9
  <script setup>
10
- import ViewerGenericMeshPolygonsOptions from "@ogw_front/components/Viewer/Generic/Mesh/PolygonsOptions.vue"
10
+ import ViewerGenericMeshPolygonsOptions from "@ogw_front/components/Viewer/Generic/Mesh/PolygonsOptions"
11
11
  import Grid3D_Facets from "@ogw_front/assets/viewer_svgs/grid_3d_facets.svg"
12
12
 
13
13
  const props = defineProps({