@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.
- 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
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import validate_schema from "
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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.
|
|
13
|
+
"@nuxt/test-utils": "3.21.0",
|
|
14
14
|
"@pinia/testing": "1.0.3",
|
|
15
|
-
"@vitejs/plugin-vue": "5.2.
|
|
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": "
|
|
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": "
|
|
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.
|
|
41
|
+
"version": "10.0.2-rc.5",
|
|
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": "
|
|
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
|
|
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)
|
|
@@ -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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
30
|
-
await
|
|
31
|
-
expect(
|
|
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
|
|
55
|
+
const feedbackStore = useFeedbackStore()
|
|
55
56
|
const v_btn = wrapper.findAll(".v-btn")
|
|
56
57
|
await v_btn[1].trigger("click")
|
|
57
|
-
expect(
|
|
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
|
|
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
|
|
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
|
|
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(
|
|
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(
|
|
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
|
|
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,
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
-
|
|
60
|
+
|
|
61
|
+
console.log({ wrapper })
|
|
62
|
+
|
|
62
63
|
expect(wrapper.componentVM.props.inspection_result).toStrictEqual(
|
|
63
64
|
inspection_result,
|
|
64
65
|
)
|