@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.
- package/.github/workflows/deploy.yml +4 -0
- package/app/components/CrsSelector.vue +1 -0
- package/app/components/ExtensionSelector.vue +2 -1
- package/app/components/FeedBack/ErrorBanner.vue +4 -3
- package/app/components/FeedBack/Snackers.vue +5 -3
- package/app/components/FileSelector.vue +3 -2
- package/app/components/FileUploader.vue +1 -1
- package/app/components/HybridRenderingView.vue +4 -1
- package/app/components/InfraConnected.vue +2 -0
- package/app/components/Inspector/InspectionButton.vue +1 -0
- package/app/components/Inspector/ResultPanel.vue +1 -1
- package/app/components/Launcher.vue +9 -8
- package/app/components/Loading.vue +1 -1
- package/app/components/MissingFilesSelector.vue +3 -2
- package/app/components/ObjectSelector.vue +8 -5
- package/app/components/PackagesVersions.vue +2 -1
- package/app/components/Recaptcha.vue +6 -5
- package/app/components/RemoteRenderingView.vue +3 -3
- package/app/components/Screenshot.vue +2 -0
- package/app/components/Stepper.vue +1 -1
- package/app/components/VeaseViewToolbar.vue +6 -3
- package/app/components/ViewToolbar.vue +3 -2
- package/app/components/Viewer/BreadCrumb.vue +1 -0
- package/app/components/Viewer/ContextMenu.vue +2 -0
- package/app/components/Viewer/EdgedCurve/EdgesOptions.vue +1 -1
- package/app/components/Viewer/EdgedCurve/PointsOptions.vue +1 -1
- package/app/components/Viewer/Generic/Mesh/CellsOptions.vue +6 -3
- package/app/components/Viewer/Generic/Mesh/EdgesOptions.vue +9 -6
- package/app/components/Viewer/Generic/Mesh/PointsOptions.vue +6 -3
- package/app/components/Viewer/Generic/Mesh/PolygonsOptions.vue +6 -3
- package/app/components/Viewer/Generic/Mesh/PolyhedraOptions.vue +6 -3
- package/app/components/Viewer/Generic/Model/EdgesOptions.vue +8 -4
- package/app/components/Viewer/Generic/Model/PointsOptions.vue +5 -2
- package/app/components/Viewer/Grid/2D/CellsOptions.vue +1 -1
- package/app/components/Viewer/Grid/2D/EdgesOptions.vue +1 -1
- package/app/components/Viewer/Grid/2D/PointsOptions.vue +1 -1
- package/app/components/Viewer/Grid/3D/CellsOptions.vue +1 -1
- package/app/components/Viewer/Grid/3D/EdgesOptions.vue +1 -1
- package/app/components/Viewer/Grid/3D/FacetsOptions.vue +1 -1
- package/app/components/Viewer/Grid/3D/PointsOptions.vue +1 -1
- package/app/components/Viewer/HybridSolid/EdgesOptions.vue +1 -1
- package/app/components/Viewer/HybridSolid/PointsOptions.vue +1 -1
- package/app/components/Viewer/HybridSolid/PolygonsOptions.vue +1 -1
- package/app/components/Viewer/HybridSolid/PolyhedraOptions.vue +1 -1
- package/app/components/Viewer/Options/CellAttributeSelector.vue +1 -0
- package/app/components/Viewer/Options/ColoringTypeSelector.vue +7 -7
- package/app/components/Viewer/Options/PolygonAttributeSelector.vue +1 -0
- package/app/components/Viewer/Options/PolyhedronAttributeSelector.vue +1 -0
- package/app/components/Viewer/Options/TextureItem.vue +2 -1
- package/app/components/Viewer/Options/TexturesSelector.vue +1 -1
- package/app/components/Viewer/PointSet/PointsOptions.vue +1 -1
- package/app/components/Viewer/PointSet/SpecificPointsOptions.vue +7 -3
- package/app/components/Viewer/PolygonalSurface/EdgesOptions.vue +1 -1
- package/app/components/Viewer/PolygonalSurface/PointsOptions.vue +1 -1
- package/app/components/Viewer/PolygonalSurface/PolygonsOptions.vue +1 -1
- package/app/components/Viewer/Solid/EdgesOptions.vue +1 -1
- package/app/components/Viewer/Solid/PointsOptions.vue +1 -1
- package/app/components/Viewer/Solid/PolygonsOptions.vue +1 -1
- package/app/components/Viewer/Solid/PolyhedraOptions.vue +1 -1
- package/app/components/Viewer/TetrahedralSolid/TetrahedraOptions.vue +1 -1
- package/app/components/Viewer/TetrahedralSolid/TrianglesOptions.vue +1 -1
- package/app/components/Viewer/Tree/ObjectTree.vue +5 -3
- package/app/components/Viewer/TreeComponent.vue +4 -0
- package/app/components/Viewer/TreeObject.vue +6 -0
- package/app/components/Viewer/TriangulatedSurface/EdgesOptions.vue +1 -1
- package/app/components/Viewer/TriangulatedSurface/PointsOptions.vue +1 -1
- package/app/components/Viewer/TriangulatedSurface/TrianglesOptions.vue +1 -1
- package/app/components/Wrapper.vue +7 -5
- package/app/composables/project_manager.js +9 -3
- package/app/composables/run_function_when_microservices_connected.js +5 -2
- package/app/plugins/auto_store_register.js +9 -1
- package/app/stores/data_base.js +4 -1
- package/app/stores/data_style.js +5 -5
- package/app/stores/geode.js +14 -12
- package/app/stores/hybrid_viewer.js +3 -2
- package/app/stores/infra.js +4 -2
- package/app/stores/lambda.js +2 -1
- package/app/stores/menu.js +24 -24
- package/app/stores/viewer.js +9 -8
- package/app/utils/file_import_workflow.js +5 -1
- package/app/utils/upload_file.js +6 -3
- package/internal/stores/mesh/cells.js +4 -5
- package/internal/stores/mesh/edges.js +5 -3
- package/internal/stores/mesh/index.js +9 -6
- package/internal/stores/mesh/points.js +5 -4
- package/internal/stores/mesh/polygons.js +5 -5
- package/internal/stores/mesh/polyhedra.js +5 -2
- package/internal/stores/model/blocks.js +6 -2
- package/internal/stores/model/corners.js +6 -2
- package/internal/stores/model/edges.js +5 -1
- package/internal/stores/model/index.js +11 -8
- package/internal/stores/model/lines.js +6 -2
- package/internal/stores/model/points.js +5 -2
- package/internal/stores/model/surfaces.js +6 -2
- package/internal/utils/api_fetch.js +2 -1
- package/internal/utils/viewer_call.js +5 -4
- package/nuxt.config.js +1 -3
- package/package.json +6 -7
- package/scripts/generate_geode_objects.js +1 -1
- package/tests/integration/microservices/back/requirements.txt +1 -1
- package/tests/integration/microservices/viewer/requirements.txt +1 -1
- package/tests/integration/setup.js +1 -1
- package/tests/integration/stores/data_style/mesh/cells.nuxt.test.js +3 -1
- package/tests/integration/stores/data_style/mesh/edges.nuxt.test.js +3 -1
- package/tests/integration/stores/data_style/mesh/index.nuxt.test.js +3 -1
- package/tests/integration/stores/data_style/mesh/points.nuxt.test.js +3 -1
- package/tests/integration/stores/data_style/mesh/polygons.nuxt.test.js +3 -1
- package/tests/integration/stores/data_style/mesh/polyhedra.nuxt.test.js +3 -1
- package/tests/integration/stores/data_style/model/blocks.nuxt.test.js +4 -1
- package/tests/integration/stores/data_style/model/corners.nuxt.test.js +4 -1
- package/tests/integration/stores/data_style/model/edges.nuxt.test.js +3 -1
- package/tests/integration/stores/data_style/model/index.nuxt.test.js +3 -1
- package/tests/integration/stores/data_style/model/lines.nuxt.test.js +4 -1
- package/tests/integration/stores/data_style/model/points.nuxt.test.js +2 -1
- package/tests/integration/stores/data_style/model/surfaces.nuxt.test.js +4 -1
- package/tests/unit/components/CrsSelector.nuxt.test.js +4 -2
- package/tests/unit/components/ExtensionSelector.nuxt.test.js +4 -2
- package/tests/unit/components/FeedBack/ErrorsBanner.nuxt.test.js +9 -8
- package/tests/unit/components/FeedBack/Snackers.nuxt.test.js +6 -5
- package/tests/unit/components/FileSelector.nuxt.test.js +6 -7
- package/tests/unit/components/FileUploader.nuxt.test.js +4 -3
- package/tests/unit/components/Inspector/InspectionButton.nuxt.test.js +3 -2
- package/tests/unit/components/Inspector/ResultPanel.nuxt.test.js +5 -4
- package/tests/unit/components/Launcher.nuxt.test.js +7 -5
- package/tests/unit/components/MissingFilesSelector.nuxt.test.js +5 -4
- package/tests/unit/components/ObjectSelector.nuxt.test.js +16 -7
- package/tests/unit/components/PackagesVersions.nuxt.test.js +3 -2
- package/tests/unit/components/Step.nuxt.test.js +3 -3
- package/tests/unit/components/Stepper.nuxt.test.js +3 -3
- package/tests/unit/components/Wrapper.nuxt.test.js +3 -3
- package/tests/unit/composables/ProjectManager.nuxt.test.js +15 -17
- package/tests/unit/composables/api_fetch.nuxt.test.js +5 -2
- package/tests/unit/composables/run_function_when_microservices_connected.nuxt.test.js +11 -1
- package/tests/unit/composables/upload_file.nuxt.test.js +6 -3
- package/tests/unit/plugins/project_load.nuxt.test.js +8 -2
- package/tests/unit/stores/App.nuxt.test.js +34 -32
- package/tests/unit/stores/Feedback.nuxt.test.js +25 -25
- package/tests/unit/stores/Geode.nuxt.test.js +27 -25
- package/tests/unit/stores/Infra.nuxt.test.js +73 -70
- package/tests/unit/stores/Lambda.nuxt.test.js +5 -3
- package/tests/unit/stores/Viewer.nuxt.test.js +27 -27
- package/tests/unit/utils/recaptcha.nuxt.test.js +2 -2
- package/tests/unit/utils/validate_schema.nuxt.test.js +2 -2
- 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
|
|
74
|
+
const infraStore = useInfraStore()
|
|
75
75
|
const viewerStore = useViewerStore()
|
|
76
|
-
|
|
76
|
+
infraStore.app_mode = appMode.CLOUD
|
|
77
77
|
expect(viewerStore.protocol).toBe("wss")
|
|
78
78
|
})
|
|
79
79
|
test("test app_mode BROWSER", () => {
|
|
80
|
-
const
|
|
80
|
+
const infraStore = useInfraStore()
|
|
81
81
|
const viewerStore = useViewerStore()
|
|
82
|
-
|
|
82
|
+
infraStore.app_mode = appMode.BROWSER
|
|
83
83
|
expect(viewerStore.protocol).toBe("ws")
|
|
84
84
|
})
|
|
85
85
|
test("test app_mode DESKTOP", () => {
|
|
86
|
-
const
|
|
86
|
+
const infraStore = useInfraStore()
|
|
87
87
|
const viewerStore = useViewerStore()
|
|
88
|
-
|
|
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
|
|
95
|
+
const infraStore = useInfraStore()
|
|
96
96
|
const viewerStore = useViewerStore()
|
|
97
|
-
|
|
97
|
+
infraStore.app_mode = appMode.CLOUD
|
|
98
98
|
expect(viewerStore.port).toBe("443")
|
|
99
99
|
})
|
|
100
100
|
test("test app_mode BROWSER", () => {
|
|
101
|
-
const
|
|
101
|
+
const infraStore = useInfraStore()
|
|
102
102
|
const viewerStore = useViewerStore()
|
|
103
|
-
|
|
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
|
|
107
|
+
const infraStore = useInfraStore()
|
|
108
108
|
const viewerStore = useViewerStore()
|
|
109
|
-
|
|
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
|
|
114
|
+
const infraStore = useInfraStore()
|
|
115
115
|
const viewerStore = useViewerStore()
|
|
116
|
-
|
|
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
|
|
124
|
-
|
|
125
|
-
|
|
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
|
|
130
|
+
const infraStore = useInfraStore()
|
|
131
131
|
const viewerStore = useViewerStore()
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
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
|
|
141
|
+
const infraStore = useInfraStore()
|
|
142
142
|
const viewerStore = useViewerStore()
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
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
|
|
166
|
+
// const infraStore = useInfraStore()
|
|
167
167
|
// const viewerStore = useViewerStore()
|
|
168
|
-
//
|
|
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
|
|
5
|
+
import { check_recaptcha_params } from "@ogw_front/utils/recaptcha"
|
|
6
6
|
|
|
7
|
-
describe("recaptcha
|
|
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
|
|
3
|
+
import validate_schema from "@ogw_front/utils/validate_schema"
|
|
4
4
|
|
|
5
|
-
describe("validate_schema
|
|
5
|
+
describe("validate_schema", () => {
|
|
6
6
|
const schema = {
|
|
7
7
|
$id: "/test",
|
|
8
8
|
type: "object",
|
package/tests/vitest.config.js
CHANGED