@geode/opengeodeweb-front 10.0.2-rc.4 → 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 (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 +0 -1
@@ -71,78 +71,78 @@ describe("Viewer Store", () => {
71
71
  describe("getters", () => {
72
72
  describe("protocol", () => {
73
73
  test("test app_mode CLOUD", () => {
74
- const infra_store = useInfraStore()
74
+ const infraStore = useInfraStore()
75
75
  const viewerStore = useViewerStore()
76
- infra_store.app_mode = appMode.CLOUD
76
+ infraStore.app_mode = appMode.CLOUD
77
77
  expect(viewerStore.protocol).toBe("wss")
78
78
  })
79
79
  test("test app_mode BROWSER", () => {
80
- const infra_store = useInfraStore()
80
+ const infraStore = useInfraStore()
81
81
  const viewerStore = useViewerStore()
82
- infra_store.app_mode = appMode.BROWSER
82
+ infraStore.app_mode = appMode.BROWSER
83
83
  expect(viewerStore.protocol).toBe("ws")
84
84
  })
85
85
  test("test app_mode DESKTOP", () => {
86
- const infra_store = useInfraStore()
86
+ const infraStore = useInfraStore()
87
87
  const viewerStore = useViewerStore()
88
- infra_store.app_mode = appMode.DESKTOP
88
+ infraStore.app_mode = appMode.DESKTOP
89
89
  expect(viewerStore.protocol).toBe("ws")
90
90
  })
91
91
  })
92
92
 
93
93
  describe("port", () => {
94
94
  test("test app_mode CLOUD", () => {
95
- const infra_store = useInfraStore()
95
+ const infraStore = useInfraStore()
96
96
  const viewerStore = useViewerStore()
97
- infra_store.app_mode = appMode.CLOUD
97
+ infraStore.app_mode = appMode.CLOUD
98
98
  expect(viewerStore.port).toBe("443")
99
99
  })
100
100
  test("test app_mode BROWSER", () => {
101
- const infra_store = useInfraStore()
101
+ const infraStore = useInfraStore()
102
102
  const viewerStore = useViewerStore()
103
- infra_store.app_mode = appMode.BROWSER
103
+ infraStore.app_mode = appMode.BROWSER
104
104
  expect(viewerStore.port).toBe(viewerStore.default_local_port)
105
105
  })
106
106
  test("test app_mode DESKTOP", () => {
107
- const infra_store = useInfraStore()
107
+ const infraStore = useInfraStore()
108
108
  const viewerStore = useViewerStore()
109
- infra_store.app_mode = appMode.DESKTOP
109
+ infraStore.app_mode = appMode.DESKTOP
110
110
  expect(viewerStore.port).toBe(viewerStore.default_local_port)
111
111
  })
112
112
 
113
113
  test("test override default_local_port", () => {
114
- const infra_store = useInfraStore()
114
+ const infraStore = useInfraStore()
115
115
  const viewerStore = useViewerStore()
116
- infra_store.app_mode = appMode.DESKTOP
116
+ infraStore.app_mode = appMode.DESKTOP
117
117
  viewerStore.default_local_port = "8080"
118
118
  expect(viewerStore.port).toBe("8080")
119
119
  })
120
120
  })
121
121
  describe("base_url", () => {
122
122
  test("test app_mode DESKTOP", () => {
123
- const infra_store = useInfraStore()
124
- infra_store.app_mode = appMode.DESKTOP
125
- infra_store.domain_name = "localhost"
123
+ const infraStore = useInfraStore()
124
+ infraStore.app_mode = appMode.DESKTOP
125
+ infraStore.domain_name = "localhost"
126
126
  // expect(viewerStore.base_url).toBe("ws://localhost:1234/ws")
127
127
  })
128
128
 
129
129
  test("test app_mode CLOUD", () => {
130
- const infra_store = useInfraStore()
130
+ const infraStore = useInfraStore()
131
131
  const viewerStore = useViewerStore()
132
- infra_store.app_mode = appMode.CLOUD
133
- infra_store.ID = "123456"
134
- infra_store.domain_name = "example.com"
132
+ infraStore.app_mode = appMode.CLOUD
133
+ infraStore.ID = "123456"
134
+ infraStore.domain_name = "example.com"
135
135
  expect(viewerStore.base_url).toBe(
136
136
  "wss://example.com:443/123456/viewer/ws",
137
137
  )
138
138
  })
139
139
 
140
140
  test("test app_mode CLOUD, ID empty", () => {
141
- const infra_store = useInfraStore()
141
+ const infraStore = useInfraStore()
142
142
  const viewerStore = useViewerStore()
143
- infra_store.app_mode = appMode.CLOUD
144
- infra_store.ID = ""
145
- infra_store.domain_name = "example.com"
143
+ infraStore.app_mode = appMode.CLOUD
144
+ infraStore.ID = ""
145
+ infraStore.domain_name = "example.com"
146
146
  expect(() => viewerStore.base_url).toThrowError(
147
147
  "ID must not be empty in cloud mode",
148
148
  )
@@ -163,9 +163,9 @@ describe("Viewer Store", () => {
163
163
  })
164
164
  describe("actions", () => {
165
165
  // test("ws_connect", async () => {
166
- // const infra_store = useInfraStore()
166
+ // const infraStore = useInfraStore()
167
167
  // const viewerStore = useViewerStore()
168
- // infra_store.app_mode = appMode.BROWSER
168
+ // infraStore.app_mode = appMode.BROWSER
169
169
  // const viewer_path = path.join(
170
170
  // executable_path(
171
171
  // path.join("tests", "integration", "microservices", "viewer"),
@@ -2,9 +2,9 @@
2
2
  import { describe, expect, test } from "vitest"
3
3
 
4
4
  // Local imports
5
- import { check_recaptcha_params } from "@ogw_front/utils/recaptcha.js"
5
+ import { check_recaptcha_params } from "@ogw_front/utils/recaptcha"
6
6
 
7
- describe("recaptcha.js", () => {
7
+ describe("recaptcha", () => {
8
8
  const name = ""
9
9
  const email = ""
10
10
  const launch = false
@@ -1,8 +1,8 @@
1
1
  import { describe, expect, test } from "vitest"
2
2
 
3
- import validate_schema from "@ogw_front/utils/validate_schema.js"
3
+ import validate_schema from "@ogw_front/utils/validate_schema"
4
4
 
5
- describe("validate_schema.js", () => {
5
+ describe("validate_schema", () => {
6
6
  const schema = {
7
7
  $id: "/test",
8
8
  type: "object",
@@ -22,7 +22,6 @@ export default defineConfig({
22
22
  include: ["tests/integration/**/*.test.js"],
23
23
  environment: "nuxt",
24
24
  fileParallelism: false,
25
- setupFiles: ["tests/integration/setup.js"],
26
25
  server: {
27
26
  deps: {
28
27
  inline: ["vuetify"],