@geode/opengeodeweb-front 10.0.2-rc.4 → 10.0.2-rc.6

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 (143) hide show
  1. package/app/components/CrsSelector.vue +1 -0
  2. package/app/components/ExtensionSelector.vue +2 -1
  3. package/app/components/FeedBack/ErrorBanner.vue +4 -3
  4. package/app/components/FeedBack/Snackers.vue +5 -3
  5. package/app/components/FileSelector.vue +3 -2
  6. package/app/components/FileUploader.vue +1 -1
  7. package/app/components/HybridRenderingView.vue +4 -1
  8. package/app/components/InfraConnected.vue +2 -0
  9. package/app/components/Inspector/InspectionButton.vue +1 -0
  10. package/app/components/Inspector/ResultPanel.vue +1 -1
  11. package/app/components/Launcher.vue +9 -8
  12. package/app/components/Loading.vue +1 -1
  13. package/app/components/MissingFilesSelector.vue +3 -2
  14. package/app/components/ObjectSelector.vue +8 -5
  15. package/app/components/PackagesVersions.vue +2 -1
  16. package/app/components/Recaptcha.vue +6 -5
  17. package/app/components/RemoteRenderingView.vue +3 -3
  18. package/app/components/Screenshot.vue +2 -0
  19. package/app/components/Stepper.vue +1 -1
  20. package/app/components/VeaseViewToolbar.vue +6 -3
  21. package/app/components/ViewToolbar.vue +3 -2
  22. package/app/components/Viewer/BreadCrumb.vue +1 -0
  23. package/app/components/Viewer/ContextMenu.vue +2 -0
  24. package/app/components/Viewer/EdgedCurve/EdgesOptions.vue +1 -1
  25. package/app/components/Viewer/EdgedCurve/PointsOptions.vue +1 -1
  26. package/app/components/Viewer/Generic/Mesh/CellsOptions.vue +6 -3
  27. package/app/components/Viewer/Generic/Mesh/EdgesOptions.vue +9 -6
  28. package/app/components/Viewer/Generic/Mesh/PointsOptions.vue +6 -3
  29. package/app/components/Viewer/Generic/Mesh/PolygonsOptions.vue +6 -3
  30. package/app/components/Viewer/Generic/Mesh/PolyhedraOptions.vue +6 -3
  31. package/app/components/Viewer/Generic/Model/EdgesOptions.vue +8 -4
  32. package/app/components/Viewer/Generic/Model/PointsOptions.vue +5 -2
  33. package/app/components/Viewer/Grid/2D/CellsOptions.vue +1 -1
  34. package/app/components/Viewer/Grid/2D/EdgesOptions.vue +1 -1
  35. package/app/components/Viewer/Grid/2D/PointsOptions.vue +1 -1
  36. package/app/components/Viewer/Grid/3D/CellsOptions.vue +1 -1
  37. package/app/components/Viewer/Grid/3D/EdgesOptions.vue +1 -1
  38. package/app/components/Viewer/Grid/3D/FacetsOptions.vue +1 -1
  39. package/app/components/Viewer/Grid/3D/PointsOptions.vue +1 -1
  40. package/app/components/Viewer/HybridSolid/EdgesOptions.vue +1 -1
  41. package/app/components/Viewer/HybridSolid/PointsOptions.vue +1 -1
  42. package/app/components/Viewer/HybridSolid/PolygonsOptions.vue +1 -1
  43. package/app/components/Viewer/HybridSolid/PolyhedraOptions.vue +1 -1
  44. package/app/components/Viewer/Options/CellAttributeSelector.vue +1 -0
  45. package/app/components/Viewer/Options/ColoringTypeSelector.vue +7 -7
  46. package/app/components/Viewer/Options/PolygonAttributeSelector.vue +1 -0
  47. package/app/components/Viewer/Options/PolyhedronAttributeSelector.vue +1 -0
  48. package/app/components/Viewer/Options/TextureItem.vue +2 -1
  49. package/app/components/Viewer/Options/TexturesSelector.vue +1 -1
  50. package/app/components/Viewer/PointSet/PointsOptions.vue +1 -1
  51. package/app/components/Viewer/PointSet/SpecificPointsOptions.vue +7 -3
  52. package/app/components/Viewer/PolygonalSurface/EdgesOptions.vue +1 -1
  53. package/app/components/Viewer/PolygonalSurface/PointsOptions.vue +1 -1
  54. package/app/components/Viewer/PolygonalSurface/PolygonsOptions.vue +1 -1
  55. package/app/components/Viewer/Solid/EdgesOptions.vue +1 -1
  56. package/app/components/Viewer/Solid/PointsOptions.vue +1 -1
  57. package/app/components/Viewer/Solid/PolygonsOptions.vue +1 -1
  58. package/app/components/Viewer/Solid/PolyhedraOptions.vue +1 -1
  59. package/app/components/Viewer/TetrahedralSolid/TetrahedraOptions.vue +1 -1
  60. package/app/components/Viewer/TetrahedralSolid/TrianglesOptions.vue +1 -1
  61. package/app/components/Viewer/Tree/ObjectTree.vue +5 -3
  62. package/app/components/Viewer/TreeComponent.vue +4 -0
  63. package/app/components/Viewer/TreeObject.vue +6 -0
  64. package/app/components/Viewer/TriangulatedSurface/EdgesOptions.vue +1 -1
  65. package/app/components/Viewer/TriangulatedSurface/PointsOptions.vue +1 -1
  66. package/app/components/Viewer/TriangulatedSurface/TrianglesOptions.vue +1 -1
  67. package/app/components/Wrapper.vue +7 -5
  68. package/app/composables/project_manager.js +9 -3
  69. package/app/composables/run_function_when_microservices_connected.js +5 -2
  70. package/app/plugins/auto_store_register.js +9 -1
  71. package/app/stores/data_base.js +4 -1
  72. package/app/stores/data_style.js +5 -5
  73. package/app/stores/geode.js +14 -12
  74. package/app/stores/hybrid_viewer.js +3 -2
  75. package/app/stores/infra.js +4 -2
  76. package/app/stores/lambda.js +2 -1
  77. package/app/stores/menu.js +24 -24
  78. package/app/stores/viewer.js +9 -8
  79. package/app/utils/file_import_workflow.js +5 -1
  80. package/app/utils/upload_file.js +6 -3
  81. package/internal/stores/mesh/cells.js +4 -5
  82. package/internal/stores/mesh/edges.js +5 -3
  83. package/internal/stores/mesh/index.js +9 -6
  84. package/internal/stores/mesh/points.js +5 -4
  85. package/internal/stores/mesh/polygons.js +5 -5
  86. package/internal/stores/mesh/polyhedra.js +5 -2
  87. package/internal/stores/model/blocks.js +6 -2
  88. package/internal/stores/model/corners.js +6 -2
  89. package/internal/stores/model/edges.js +5 -1
  90. package/internal/stores/model/index.js +11 -8
  91. package/internal/stores/model/lines.js +6 -2
  92. package/internal/stores/model/points.js +5 -2
  93. package/internal/stores/model/surfaces.js +6 -2
  94. package/internal/utils/api_fetch.js +2 -1
  95. package/internal/utils/viewer_call.js +5 -4
  96. package/nuxt.config.js +1 -3
  97. package/package.json +6 -7
  98. package/scripts/generate_geode_objects.js +1 -1
  99. package/tests/integration/microservices/back/requirements.txt +1 -1
  100. package/tests/integration/microservices/viewer/requirements.txt +1 -1
  101. package/tests/integration/setup.js +1 -1
  102. package/tests/integration/stores/data_style/mesh/cells.nuxt.test.js +3 -1
  103. package/tests/integration/stores/data_style/mesh/edges.nuxt.test.js +3 -1
  104. package/tests/integration/stores/data_style/mesh/index.nuxt.test.js +3 -1
  105. package/tests/integration/stores/data_style/mesh/points.nuxt.test.js +3 -1
  106. package/tests/integration/stores/data_style/mesh/polygons.nuxt.test.js +3 -1
  107. package/tests/integration/stores/data_style/mesh/polyhedra.nuxt.test.js +3 -1
  108. package/tests/integration/stores/data_style/model/blocks.nuxt.test.js +4 -1
  109. package/tests/integration/stores/data_style/model/corners.nuxt.test.js +4 -1
  110. package/tests/integration/stores/data_style/model/edges.nuxt.test.js +3 -1
  111. package/tests/integration/stores/data_style/model/index.nuxt.test.js +3 -1
  112. package/tests/integration/stores/data_style/model/lines.nuxt.test.js +4 -1
  113. package/tests/integration/stores/data_style/model/points.nuxt.test.js +2 -1
  114. package/tests/integration/stores/data_style/model/surfaces.nuxt.test.js +4 -1
  115. package/tests/unit/components/CrsSelector.nuxt.test.js +4 -2
  116. package/tests/unit/components/ExtensionSelector.nuxt.test.js +4 -2
  117. package/tests/unit/components/FeedBack/ErrorsBanner.nuxt.test.js +9 -8
  118. package/tests/unit/components/FeedBack/Snackers.nuxt.test.js +6 -5
  119. package/tests/unit/components/FileSelector.nuxt.test.js +6 -7
  120. package/tests/unit/components/FileUploader.nuxt.test.js +4 -3
  121. package/tests/unit/components/Inspector/InspectionButton.nuxt.test.js +3 -2
  122. package/tests/unit/components/Inspector/ResultPanel.nuxt.test.js +5 -4
  123. package/tests/unit/components/Launcher.nuxt.test.js +7 -5
  124. package/tests/unit/components/MissingFilesSelector.nuxt.test.js +5 -4
  125. package/tests/unit/components/ObjectSelector.nuxt.test.js +16 -7
  126. package/tests/unit/components/PackagesVersions.nuxt.test.js +3 -2
  127. package/tests/unit/components/Step.nuxt.test.js +3 -3
  128. package/tests/unit/components/Stepper.nuxt.test.js +3 -3
  129. package/tests/unit/components/Wrapper.nuxt.test.js +3 -3
  130. package/tests/unit/composables/ProjectManager.nuxt.test.js +15 -17
  131. package/tests/unit/composables/api_fetch.nuxt.test.js +5 -2
  132. package/tests/unit/composables/run_function_when_microservices_connected.nuxt.test.js +11 -1
  133. package/tests/unit/composables/upload_file.nuxt.test.js +6 -3
  134. package/tests/unit/plugins/project_load.nuxt.test.js +8 -2
  135. package/tests/unit/stores/App.nuxt.test.js +34 -32
  136. package/tests/unit/stores/Feedback.nuxt.test.js +25 -25
  137. package/tests/unit/stores/Geode.nuxt.test.js +27 -25
  138. package/tests/unit/stores/Infra.nuxt.test.js +73 -70
  139. package/tests/unit/stores/Lambda.nuxt.test.js +5 -3
  140. package/tests/unit/stores/Viewer.nuxt.test.js +27 -27
  141. package/tests/unit/utils/recaptcha.nuxt.test.js +2 -2
  142. package/tests/unit/utils/validate_schema.nuxt.test.js +2 -2
  143. package/tests/vitest.config.js +4 -1
@@ -1,5 +1,6 @@
1
1
  import _ from "lodash"
2
- import validate_schema from "@/app/utils/validate_schema.js"
2
+ import validate_schema from "@ogw_front/utils/validate_schema"
3
+ import { useFeedbackStore } from "@ogw_front/stores/feedback"
3
4
 
4
5
  export function api_fetch(
5
6
  microservice,
@@ -1,11 +1,12 @@
1
- import validate_schema from "~/app/utils/validate_schema.js"
1
+ import validate_schema from "@ogw_front/utils/validate_schema"
2
+ import { useFeedbackStore } from "@ogw_front/stores/feedback"
2
3
 
3
4
  export function viewer_call(
4
5
  microservice,
5
6
  { schema, params = {} },
6
7
  { request_error_function, response_function, response_error_function } = {},
7
8
  ) {
8
- const feedback_store = useFeedbackStore()
9
+ const feedbackStore = useFeedbackStore()
9
10
 
10
11
  const { valid, error } = validate_schema(schema, params)
11
12
 
@@ -13,7 +14,7 @@ export function viewer_call(
13
14
  if (process.env.NODE_ENV !== "production") {
14
15
  console.log("Bad request", error, schema, params)
15
16
  }
16
- feedback_store.add_error(400, schema.$id, "Bad request", error)
17
+ feedbackStore.add_error(400, schema.$id, "Bad request", error)
17
18
  throw new Error(schema.$id.concat(": ", error))
18
19
  }
19
20
 
@@ -44,7 +45,7 @@ export function viewer_call(
44
45
  },
45
46
  )
46
47
  .catch((error) => {
47
- feedback_store.add_error(
48
+ feedbackStore.add_error(
48
49
  error.code,
49
50
  schema.$id,
50
51
  error.message,
package/nuxt.config.js CHANGED
@@ -16,7 +16,7 @@ export default defineNuxtConfig({
16
16
  "@vueuse/nuxt",
17
17
  ],
18
18
  imports: {
19
- dirs: ["app/stores", "app/composables", "app/utils", "internal/utils"],
19
+ scan: false,
20
20
  },
21
21
 
22
22
  alias: {
@@ -37,8 +37,6 @@ export default defineNuxtConfig({
37
37
  },
38
38
  },
39
39
 
40
- testUtils: {},
41
-
42
40
  vite: {
43
41
  optimizeDeps: {
44
42
  include: [
package/package.json CHANGED
@@ -10,9 +10,9 @@
10
10
  "build": ""
11
11
  },
12
12
  "devDependencies": {
13
- "@nuxt/test-utils": "3.20.1",
13
+ "@nuxt/test-utils": "3.21.0",
14
14
  "@pinia/testing": "1.0.3",
15
- "@vitejs/plugin-vue": "5.2.3",
15
+ "@vitejs/plugin-vue": "5.2.4",
16
16
  "@vue/test-utils": "2.4.6",
17
17
  "electron": "36.4.0",
18
18
  "eslint": "9.26.0",
@@ -22,13 +22,12 @@
22
22
  "eslint-plugin-prettier-vue": "5.0.0",
23
23
  "eslint-plugin-vue": "10.1.0",
24
24
  "eslint-plugin-vuetify": "2.5.2",
25
- "happy-dom": "17.4.6",
26
- "jsdom": "26.1.0",
25
+ "happy-dom": "20.0.11",
27
26
  "msw": "2.11.1",
28
27
  "playwright-core": "1.52.0",
29
28
  "prettier": "3.3.3",
30
29
  "resize-observer-polyfill": "1.5.1",
31
- "unplugin-auto-import": "^20.0.0",
30
+ "unplugin-auto-import": "20.0.0",
32
31
  "vite": "6.3.5",
33
32
  "vite-plugin-vuetify": "2.1.1",
34
33
  "vitest": "3.2.4",
@@ -39,7 +38,7 @@
39
38
  },
40
39
  "description": "OpenSource Vue/Nuxt/Pinia/Vuetify framework for web applications",
41
40
  "type": "module",
42
- "version": "10.0.2-rc.4",
41
+ "version": "10.0.2-rc.6",
43
42
  "main": "./nuxt.config.js",
44
43
  "dependencies": {
45
44
  "@geode/opengeodeweb-back": "next",
@@ -54,7 +53,7 @@
54
53
  "get-port-please": "3.2.0",
55
54
  "is-electron": "2.2.2",
56
55
  "js-file-download": "0.4.12",
57
- "nuxt": "3.20.1",
56
+ "nuxt": "4.2.2",
58
57
  "pinia": "3.0.4",
59
58
  "sass": "1.87.0",
60
59
  "semver": "7.7.1",
@@ -2,7 +2,7 @@ import * as path from "path"
2
2
  import * as fs from "fs"
3
3
  import * as process from "process"
4
4
 
5
- const output_file = path.join(process.cwd(), "assets/geode_objects.js")
5
+ const output_file = path.join(process.cwd(), "assets/geode_objects")
6
6
 
7
7
  if (fs.existsSync(output_file)) {
8
8
  fs.unlinkSync(output_file)
@@ -5,4 +5,4 @@
5
5
  # pip-compile --output-file=tests/integration/microservices/back/requirements.txt tests/integration/microservices/back/requirements.in
6
6
  #
7
7
 
8
- opengeodeweb-back==5.*,>=5.14.1rc1
8
+ opengeodeweb-back==5.*,>=5.14.1
@@ -5,4 +5,4 @@
5
5
  # pip-compile --output-file=tests/integration/microservices/viewer/requirements.txt tests/integration/microservices/viewer/requirements.in
6
6
  #
7
7
 
8
- opengeodeweb-viewer==1.*,>=1.13.2rc21
8
+ opengeodeweb-viewer==1.*,>=1.13.2
@@ -32,7 +32,7 @@ async function setupIntegrationTests(file_name, geode_object) {
32
32
  })
33
33
  setActivePinia(pinia)
34
34
  const geodeStore = useGeodeStore()
35
- const hybridViewerStore = useHybridViewerStore()
35
+ // const hybridViewerStore = useHybridViewerStore()
36
36
  const infraStore = useInfraStore()
37
37
  const viewerStore = useViewerStore()
38
38
  infraStore.app_mode = appMode.BROWSER
@@ -4,12 +4,14 @@ import viewer_schemas from "@geode/opengeodeweb-viewer/opengeodeweb_viewer_schem
4
4
 
5
5
  // Local imports
6
6
  import Status from "@ogw_front/utils/status"
7
+ import { useDataStyleStore } from "@ogw_front/stores/data_style"
8
+ import { useViewerStore } from "@ogw_front/stores/viewer"
7
9
  import {
8
10
  delete_folder_recursive,
9
11
  kill_back,
10
12
  kill_viewer,
11
13
  } from "@ogw_front/utils/local"
12
- import { setupIntegrationTests } from "../../../setup.js"
14
+ import { setupIntegrationTests } from "../../../setup"
13
15
 
14
16
  // Local constants
15
17
  const mesh_cells_schemas = viewer_schemas.opengeodeweb_viewer.mesh.cells
@@ -4,12 +4,14 @@ import viewer_schemas from "@geode/opengeodeweb-viewer/opengeodeweb_viewer_schem
4
4
 
5
5
  // Local imports
6
6
  import Status from "@ogw_front/utils/status"
7
+ import { useDataStyleStore } from "@ogw_front/stores/data_style"
8
+ import { useViewerStore } from "@ogw_front/stores/viewer"
7
9
  import {
8
10
  delete_folder_recursive,
9
11
  kill_back,
10
12
  kill_viewer,
11
13
  } from "@ogw_front/utils/local"
12
- import { setupIntegrationTests } from "../../../setup.js"
14
+ import { setupIntegrationTests } from "../../../setup"
13
15
 
14
16
  // Local constants
15
17
  const mesh_edges_schemas = viewer_schemas.opengeodeweb_viewer.mesh.edges
@@ -4,12 +4,14 @@ import viewer_schemas from "@geode/opengeodeweb-viewer/opengeodeweb_viewer_schem
4
4
 
5
5
  // Local imports
6
6
  import Status from "@ogw_front/utils/status"
7
+ import { useDataStyleStore } from "@ogw_front/stores/data_style"
8
+ import { useViewerStore } from "@ogw_front/stores/viewer"
7
9
  import {
8
10
  delete_folder_recursive,
9
11
  kill_back,
10
12
  kill_viewer,
11
13
  } from "@ogw_front/utils/local"
12
- import { setupIntegrationTests } from "../../../setup.js"
14
+ import { setupIntegrationTests } from "../../../setup"
13
15
 
14
16
  // Local constants
15
17
  const mesh_schemas = viewer_schemas.opengeodeweb_viewer.mesh
@@ -4,12 +4,14 @@ import viewer_schemas from "@geode/opengeodeweb-viewer/opengeodeweb_viewer_schem
4
4
 
5
5
  // Local imports
6
6
  import Status from "@ogw_front/utils/status"
7
+ import { useDataStyleStore } from "@ogw_front/stores/data_style"
8
+ import { useViewerStore } from "@ogw_front/stores/viewer"
7
9
  import {
8
10
  delete_folder_recursive,
9
11
  kill_back,
10
12
  kill_viewer,
11
13
  } from "@ogw_front/utils/local"
12
- import { setupIntegrationTests } from "../../../setup.js"
14
+ import { setupIntegrationTests } from "../../../setup"
13
15
 
14
16
  // Local constants
15
17
  const mesh_points_schemas = viewer_schemas.opengeodeweb_viewer.mesh.points
@@ -4,12 +4,14 @@ import viewer_schemas from "@geode/opengeodeweb-viewer/opengeodeweb_viewer_schem
4
4
 
5
5
  // Local imports
6
6
  import Status from "@ogw_front/utils/status"
7
+ import { useDataStyleStore } from "@ogw_front/stores/data_style"
8
+ import { useViewerStore } from "@ogw_front/stores/viewer"
7
9
  import {
8
10
  delete_folder_recursive,
9
11
  kill_back,
10
12
  kill_viewer,
11
13
  } from "@ogw_front/utils/local"
12
- import { setupIntegrationTests } from "../../../setup.js"
14
+ import { setupIntegrationTests } from "../../../setup"
13
15
 
14
16
  // Local constants
15
17
  const mesh_polygons_schemas = viewer_schemas.opengeodeweb_viewer.mesh.polygons
@@ -4,12 +4,14 @@ import viewer_schemas from "@geode/opengeodeweb-viewer/opengeodeweb_viewer_schem
4
4
 
5
5
  // Local imports
6
6
  import Status from "@ogw_front/utils/status"
7
+ import { useDataStyleStore } from "@ogw_front/stores/data_style"
8
+ import { useViewerStore } from "@ogw_front/stores/viewer"
7
9
  import {
8
10
  delete_folder_recursive,
9
11
  kill_back,
10
12
  kill_viewer,
11
13
  } from "@ogw_front/utils/local"
12
- import { setupIntegrationTests } from "../../../setup.js"
14
+ import { setupIntegrationTests } from "../../../setup"
13
15
 
14
16
  // Local constants
15
17
  const mesh_polyhedra_schemas = viewer_schemas.opengeodeweb_viewer.mesh.polyhedra
@@ -4,12 +4,15 @@ import viewer_schemas from "@geode/opengeodeweb-viewer/opengeodeweb_viewer_schem
4
4
 
5
5
  // Local imports
6
6
  import Status from "@ogw_front/utils/status"
7
+ import { useDataStyleStore } from "@ogw_front/stores/data_style"
8
+ import { useViewerStore } from "@ogw_front/stores/viewer"
9
+ import { useDataBaseStore } from "@ogw_front/stores/data_base"
7
10
  import {
8
11
  delete_folder_recursive,
9
12
  kill_back,
10
13
  kill_viewer,
11
14
  } from "@ogw_front/utils/local"
12
- import { setupIntegrationTests } from "../../../setup.js"
15
+ import { setupIntegrationTests } from "../../../setup"
13
16
 
14
17
  // Local constants
15
18
  const model_blocks_schemas = viewer_schemas.opengeodeweb_viewer.model.blocks
@@ -4,12 +4,15 @@ import viewer_schemas from "@geode/opengeodeweb-viewer/opengeodeweb_viewer_schem
4
4
 
5
5
  // Local imports
6
6
  import Status from "@ogw_front/utils/status"
7
+ import { useDataStyleStore } from "@ogw_front/stores/data_style"
8
+ import { useViewerStore } from "@ogw_front/stores/viewer"
9
+ import { useDataBaseStore } from "@ogw_front/stores/data_base"
7
10
  import {
8
11
  delete_folder_recursive,
9
12
  kill_back,
10
13
  kill_viewer,
11
14
  } from "@ogw_front/utils/local"
12
- import { setupIntegrationTests } from "../../../setup.js"
15
+ import { setupIntegrationTests } from "../../../setup"
13
16
 
14
17
  // Local constants
15
18
  const model_corners_schemas = viewer_schemas.opengeodeweb_viewer.model.corners
@@ -4,12 +4,14 @@ import viewer_schemas from "@geode/opengeodeweb-viewer/opengeodeweb_viewer_schem
4
4
 
5
5
  // Local imports
6
6
  import Status from "@ogw_front/utils/status"
7
+ import { useDataStyleStore } from "@ogw_front/stores/data_style"
8
+ import { useViewerStore } from "@ogw_front/stores/viewer"
7
9
  import {
8
10
  delete_folder_recursive,
9
11
  kill_back,
10
12
  kill_viewer,
11
13
  } from "@ogw_front/utils/local"
12
- import { setupIntegrationTests } from "../../../setup.js"
14
+ import { setupIntegrationTests } from "../../../setup"
13
15
 
14
16
  // Local constants
15
17
  const model_edges_schemas = viewer_schemas.opengeodeweb_viewer.model.edges
@@ -4,12 +4,14 @@ import viewer_schemas from "@geode/opengeodeweb-viewer/opengeodeweb_viewer_schem
4
4
 
5
5
  // Local imports
6
6
  import Status from "@ogw_front/utils/status"
7
+ import { useDataStyleStore } from "@ogw_front/stores/data_style"
8
+ import { useViewerStore } from "@ogw_front/stores/viewer"
7
9
  import {
8
10
  delete_folder_recursive,
9
11
  kill_back,
10
12
  kill_viewer,
11
13
  } from "@ogw_front/utils/local"
12
- import { setupIntegrationTests } from "../../../setup.js"
14
+ import { setupIntegrationTests } from "../../../setup"
13
15
 
14
16
  // Local constants
15
17
  const model_schemas = viewer_schemas.opengeodeweb_viewer.model
@@ -4,12 +4,15 @@ import viewer_schemas from "@geode/opengeodeweb-viewer/opengeodeweb_viewer_schem
4
4
 
5
5
  // Local imports
6
6
  import Status from "@ogw_front/utils/status"
7
+ import { useDataStyleStore } from "@ogw_front/stores/data_style"
8
+ import { useViewerStore } from "@ogw_front/stores/viewer"
9
+ import { useDataBaseStore } from "@ogw_front/stores/data_base"
7
10
  import {
8
11
  delete_folder_recursive,
9
12
  kill_back,
10
13
  kill_viewer,
11
14
  } from "@ogw_front/utils/local"
12
- import { setupIntegrationTests } from "../../../setup.js"
15
+ import { setupIntegrationTests } from "../../../setup"
13
16
 
14
17
  // Local constants
15
18
  const model_lines_schemas = viewer_schemas.opengeodeweb_viewer.model.lines
@@ -4,13 +4,14 @@ import viewer_schemas from "@geode/opengeodeweb-viewer/opengeodeweb_viewer_schem
4
4
 
5
5
  // Local imports
6
6
  import Status from "@ogw_front/utils/status"
7
+ import { useDataStyleStore } from "@ogw_front/stores/data_style"
7
8
  import { useViewerStore } from "@ogw_front/stores/viewer"
8
9
  import {
9
10
  delete_folder_recursive,
10
11
  kill_back,
11
12
  kill_viewer,
12
13
  } from "@ogw_front/utils/local"
13
- import { setupIntegrationTests } from "../../../setup.js"
14
+ import { setupIntegrationTests } from "../../../setup"
14
15
 
15
16
  // Local constants
16
17
  const model_points_schemas = viewer_schemas.opengeodeweb_viewer.model.points
@@ -4,12 +4,15 @@ import viewer_schemas from "@geode/opengeodeweb-viewer/opengeodeweb_viewer_schem
4
4
 
5
5
  // Local imports
6
6
  import Status from "@ogw_front/utils/status"
7
+ import { useDataStyleStore } from "@ogw_front/stores/data_style"
8
+ import { useDataBaseStore } from "@ogw_front/stores/data_base"
9
+ import { useViewerStore } from "@ogw_front/stores/viewer"
7
10
  import {
8
11
  delete_folder_recursive,
9
12
  kill_back,
10
13
  kill_viewer,
11
14
  } from "@ogw_front/utils/local"
12
- import { setupIntegrationTests } from "../../../setup.js"
15
+ import { setupIntegrationTests } from "../../../setup"
13
16
 
14
17
  // Local constants
15
18
  const model_surfaces_schemas = viewer_schemas.opengeodeweb_viewer.model.surfaces
@@ -7,9 +7,11 @@ import { createVuetify } from "vuetify"
7
7
  import * as components from "vuetify/components"
8
8
  import * as directives from "vuetify/directives"
9
9
 
10
- import CrsSelector from "@ogw_front/components/CrsSelector.vue"
11
10
  import schemas from "@geode/opengeodeweb-back/opengeodeweb_back_schemas.json"
12
11
 
12
+ import CrsSelector from "@ogw_front/components/CrsSelector"
13
+ import { useGeodeStore } from "@ogw_front/stores/geode"
14
+
13
15
  const crs_selector_schema =
14
16
  schemas.opengeodeweb_back.geographic_coordinate_systems
15
17
 
@@ -18,7 +20,7 @@ const vuetify = createVuetify({
18
20
  directives,
19
21
  })
20
22
 
21
- describe("CrsSelector.vue", () => {
23
+ describe("CrsSelector", () => {
22
24
  const pinia = createTestingPinia({
23
25
  stubActions: false,
24
26
  createSpy: vi.fn,
@@ -7,7 +7,9 @@ import * as directives from "vuetify/directives"
7
7
  import { setActivePinia } from "pinia"
8
8
  import { createTestingPinia } from "@pinia/testing"
9
9
 
10
- import ExtensionSelector from "@ogw_front/components/ExtensionSelector.vue"
10
+ import ExtensionSelector from "@ogw_front/components/ExtensionSelector"
11
+
12
+ import { useGeodeStore } from "@ogw_front/stores/geode"
11
13
 
12
14
  import schemas from "@geode/opengeodeweb-back/opengeodeweb_back_schemas.json"
13
15
 
@@ -18,7 +20,7 @@ const vuetify = createVuetify({
18
20
  directives,
19
21
  })
20
22
 
21
- describe("ExtensionSelector.vue", async () => {
23
+ describe("ExtensionSelector", async () => {
22
24
  const pinia = createTestingPinia({
23
25
  stubActions: false,
24
26
  createSpy: vi.fn,
@@ -4,16 +4,17 @@ import { createVuetify } from "vuetify"
4
4
  import * as components from "vuetify/components"
5
5
  import * as directives from "vuetify/directives"
6
6
  import { createTestingPinia } from "@pinia/testing"
7
-
8
- import FeedBackErrorBanner from "@ogw_front/components/FeedBack/ErrorBanner.vue"
9
7
  import { setActivePinia } from "pinia"
10
8
 
9
+ import FeedBackErrorBanner from "@ogw_front/components/FeedBack/ErrorBanner"
10
+ import { useFeedbackStore } from "@ogw_front/stores/feedback"
11
+
11
12
  const vuetify = createVuetify({
12
13
  components,
13
14
  directives,
14
15
  })
15
16
 
16
- describe("FeedBackErrorBanner.vue", async () => {
17
+ describe("FeedBackErrorBanner", async () => {
17
18
  ;(test(`Test reload`, async () => {
18
19
  const pinia = createTestingPinia({
19
20
  stubActions: false,
@@ -26,9 +27,9 @@ describe("FeedBackErrorBanner.vue", async () => {
26
27
  },
27
28
  })
28
29
  const reload_spy = vi.spyOn(wrapper.vm, "reload")
29
- const feedback_store = useFeedbackStore()
30
- await feedback_store.$patch({ server_error: true })
31
- expect(feedback_store.server_error).toBe(true)
30
+ const feedbackStore = useFeedbackStore()
31
+ await feedbackStore.$patch({ server_error: true })
32
+ expect(feedbackStore.server_error).toBe(true)
32
33
  const v_btn = wrapper.findAll(".v-btn")
33
34
  await v_btn[0].trigger("click")
34
35
  expect(reload_spy).toHaveBeenCalledTimes(1)
@@ -51,9 +52,9 @@ describe("FeedBackErrorBanner.vue", async () => {
51
52
  },
52
53
  })
53
54
 
54
- const feedback_store = useFeedbackStore()
55
+ const feedbackStore = useFeedbackStore()
55
56
  const v_btn = wrapper.findAll(".v-btn")
56
57
  await v_btn[1].trigger("click")
57
- expect(feedback_store.server_error).toBe(false)
58
+ expect(feedbackStore.server_error).toBe(false)
58
59
  }))
59
60
  })
@@ -9,14 +9,15 @@ import * as directives from "vuetify/directives"
9
9
  import { setActivePinia } from "pinia"
10
10
  import { createTestingPinia } from "@pinia/testing"
11
11
 
12
- import FeedBackSnackers from "@ogw_front/components/FeedBack/Snackers.vue"
12
+ import FeedBackSnackers from "@ogw_front/components/FeedBack/Snackers"
13
+ import { useFeedbackStore } from "@ogw_front/stores/feedback"
13
14
 
14
15
  const vuetify = createVuetify({
15
16
  components,
16
17
  directives,
17
18
  })
18
19
 
19
- describe("FeedBackSnackers.vue", async () => {
20
+ describe("FeedBackSnackers", async () => {
20
21
  test(`Test delete error`, async () => {
21
22
  const pinia = createTestingPinia({
22
23
  initialState: {
@@ -36,7 +37,7 @@ describe("FeedBackSnackers.vue", async () => {
36
37
  createSpy: vi.fn,
37
38
  })
38
39
  setActivePinia(pinia)
39
- const feedback_store = useFeedbackStore()
40
+ const feedbackStore = useFeedbackStore()
40
41
  const wrapper = mount(
41
42
  {
42
43
  template: "<v-layout><FeedBackSnackers/></v-layout>",
@@ -52,9 +53,9 @@ describe("FeedBackSnackers.vue", async () => {
52
53
  },
53
54
  )
54
55
 
55
- expect(feedback_store.feedbacks.length).toBe(1)
56
+ expect(feedbackStore.feedbacks.length).toBe(1)
56
57
  const v_btn = await wrapper.findComponent(components.VBtn)
57
58
  await v_btn.trigger("click")
58
- expect(feedback_store.feedbacks.length).toBe(0)
59
+ expect(feedbackStore.feedbacks.length).toBe(0)
59
60
  })
60
61
  })
@@ -9,11 +9,12 @@ import * as directives from "vuetify/directives"
9
9
  import { setActivePinia } from "pinia"
10
10
  import { createTestingPinia } from "@pinia/testing"
11
11
 
12
- import FileSelector from "@ogw_front/components/FileSelector.vue"
13
- import FileUploader from "@ogw_front/components/FileUploader.vue"
14
-
15
12
  import schemas from "@geode/opengeodeweb-back/opengeodeweb_back_schemas.json"
16
13
 
14
+ import FileSelector from "@ogw_front/components/FileSelector"
15
+ import FileUploader from "@ogw_front/components/FileUploader"
16
+ import { useGeodeStore } from "@ogw_front/stores/geode"
17
+
17
18
  const allowed_files_schema = schemas.opengeodeweb_back.allowed_files
18
19
  const upload_file_schema = schemas.opengeodeweb_back.upload_file
19
20
 
@@ -22,7 +23,7 @@ const vuetify = createVuetify({
22
23
  directives,
23
24
  })
24
25
 
25
- describe("FileSelector.vue", async () => {
26
+ describe("FileSelector", async () => {
26
27
  const pinia = createTestingPinia({
27
28
  stubActions: false,
28
29
  createSpy: vi.fn,
@@ -42,7 +43,7 @@ describe("FileSelector.vue", async () => {
42
43
  global: {
43
44
  plugins: [vuetify, pinia],
44
45
  },
45
- props: { multiple: false, supported_feature: "test", auto_upload: false },
46
+ props: { multiple: false, auto_upload: false },
46
47
  })
47
48
 
48
49
  const file_uploader = wrapper.findComponent(FileUploader)
@@ -91,7 +92,6 @@ describe("FileSelector.vue", async () => {
91
92
  },
92
93
  props: {
93
94
  multiple: false,
94
- supported_feature: "test",
95
95
  files: files,
96
96
  auto_upload: true,
97
97
  },
@@ -114,7 +114,6 @@ describe("FileSelector.vue", async () => {
114
114
  },
115
115
  props: {
116
116
  multiple: false,
117
- supported_feature: "test",
118
117
  files: files,
119
118
  auto_upload: false,
120
119
  },
@@ -8,10 +8,11 @@ import * as directives from "vuetify/directives"
8
8
  import { setActivePinia } from "pinia"
9
9
  import { createTestingPinia } from "@pinia/testing"
10
10
 
11
- import FileUploader from "@ogw_front/components/FileUploader.vue"
12
-
13
11
  import schemas from "@geode/opengeodeweb-back/opengeodeweb_back_schemas.json"
14
12
 
13
+ import FileUploader from "@ogw_front/components/FileUploader"
14
+ import { useGeodeStore } from "@ogw_front/stores/geode"
15
+
15
16
  const upload_file_schema = schemas.opengeodeweb_back.upload_file
16
17
 
17
18
  const vuetify = createVuetify({
@@ -19,7 +20,7 @@ const vuetify = createVuetify({
19
20
  directives,
20
21
  })
21
22
 
22
- describe("FileUploader.vue", async () => {
23
+ describe("FileUploader", async () => {
23
24
  const pinia = createTestingPinia({
24
25
  stubActions: false,
25
26
  createSpy: vi.fn,
@@ -8,8 +8,9 @@ import * as directives from "vuetify/directives"
8
8
  import { setActivePinia } from "pinia"
9
9
  import { createTestingPinia } from "@pinia/testing"
10
10
 
11
- import InspectorInspectionButton from "@ogw_front/components/Inspector/InspectionButton.vue"
12
11
  import schemas from "@geode/opengeodeweb-back/opengeodeweb_back_schemas.json"
12
+ import InspectorInspectionButton from "@ogw_front/components/Inspector/InspectionButton"
13
+ import { useGeodeStore } from "@ogw_front/stores/geode"
13
14
  const schema = schemas.opengeodeweb_back.inspect_file
14
15
 
15
16
  const vuetify = createVuetify({
@@ -17,7 +18,7 @@ const vuetify = createVuetify({
17
18
  directives,
18
19
  })
19
20
 
20
- describe("Inspector/InspectionButton.vue", async () => {
21
+ describe("Inspector/InspectionButton", async () => {
21
22
  const pinia = createTestingPinia({
22
23
  stubActions: false,
23
24
  createSpy: vi.fn,
@@ -5,14 +5,14 @@ import { createVuetify } from "vuetify"
5
5
  import * as components from "vuetify/components"
6
6
  import * as directives from "vuetify/directives"
7
7
 
8
- import InspectorResultPanel from "@ogw_front/components/Inspector/ResultPanel.vue"
8
+ import InspectorResultPanel from "@ogw_front/components/Inspector/ResultPanel"
9
9
 
10
10
  const vuetify = createVuetify({
11
11
  components,
12
12
  directives,
13
13
  })
14
14
 
15
- describe("Inspector/ResultPanel.vue", async () => {
15
+ describe("Inspector/ResultPanel", async () => {
16
16
  test(`Test with issues`, async () => {
17
17
  const inspection_result = [
18
18
  {
@@ -30,7 +30,6 @@ describe("Inspector/ResultPanel.vue", async () => {
30
30
  })
31
31
 
32
32
  expect(wrapper.exists()).toBe(true)
33
- expect(wrapper.componentVM.opened_panels._value).toStrictEqual([0])
34
33
  expect(wrapper.componentVM.props.inspection_result).toStrictEqual(
35
34
  inspection_result,
36
35
  )
@@ -58,7 +57,9 @@ describe("Inspector/ResultPanel.vue", async () => {
58
57
  })
59
58
 
60
59
  expect(wrapper.exists()).toBe(true)
61
- expect(wrapper.componentVM.opened_panels._value).toStrictEqual([])
60
+
61
+ console.log({ wrapper })
62
+
62
63
  expect(wrapper.componentVM.props.inspection_result).toStrictEqual(
63
64
  inspection_result,
64
65
  )