@geode/opengeodeweb-front 9.15.0-rc.1 → 10.0.0-rc.1
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/{assets → app/assets}/geode_objects.js +25 -25
- package/{components → app/components}/ExtensionSelector.vue +3 -0
- package/{components → app/components}/FileSelector.vue +14 -1
- package/{components → app/components}/FileUploader.vue +9 -1
- package/{components → app/components}/HybridRenderingView.vue +2 -0
- package/{components → app/components}/Inspector/ResultPanel.vue +2 -0
- package/{components → app/components}/Launcher.vue +3 -2
- package/{components → app/components}/Loading.vue +13 -11
- package/{components → app/components}/MissingFilesSelector.vue +3 -0
- package/{components → app/components}/ObjectSelector.vue +3 -1
- package/{components → app/components}/PackagesVersions.vue +1 -1
- package/{components → app/components}/Recaptcha.vue +3 -1
- package/{components → app/components}/RemoteRenderingView.vue +4 -2
- package/{components → app/components}/Stepper.vue +2 -0
- package/{components → app/components}/VeaseViewToolbar.vue +3 -0
- package/{components → app/components}/ViewToolbar.vue +2 -0
- package/{components → app/components}/Viewer/EdgedCurve/EdgesOptions.vue +2 -1
- package/{components → app/components}/Viewer/EdgedCurve/PointsOptions.vue +2 -1
- package/{components → app/components}/Viewer/Generic/Mesh/EdgesOptions.vue +4 -0
- package/{components → app/components}/Viewer/Generic/Mesh/PointsOptions.vue +4 -0
- package/{components → app/components}/Viewer/Generic/Mesh/PolygonsOptions.vue +4 -0
- package/{components → app/components}/Viewer/Generic/Mesh/PolyhedraOptions.vue +4 -0
- package/{components → app/components}/Viewer/Generic/Model/EdgesOptions.vue +3 -1
- package/{components → app/components}/Viewer/Generic/Model/PointsOptions.vue +3 -1
- package/{components → app/components}/Viewer/Grid/2D/CellsOptions.vue +2 -1
- package/{components → app/components}/Viewer/Grid/2D/EdgesOptions.vue +2 -1
- package/{components → app/components}/Viewer/Grid/2D/PointsOptions.vue +2 -1
- package/{components → app/components}/Viewer/Grid/3D/CellsOptions.vue +2 -1
- package/{components → app/components}/Viewer/Grid/3D/EdgesOptions.vue +2 -1
- package/{components → app/components}/Viewer/Grid/3D/FacetsOptions.vue +2 -1
- package/{components → app/components}/Viewer/Grid/3D/PointsOptions.vue +2 -1
- package/{components → app/components}/Viewer/HybridSolid/EdgesOptions.vue +2 -1
- package/{components → app/components}/Viewer/HybridSolid/PointsOptions.vue +2 -1
- package/{components → app/components}/Viewer/HybridSolid/PolygonsOptions.vue +2 -1
- package/{components → app/components}/Viewer/HybridSolid/PolyhedraOptions.vue +2 -1
- package/{components → app/components}/Viewer/Options/ColoringTypeSelector.vue +7 -1
- package/{components → app/components}/Viewer/Options/TextureItem.vue +1 -0
- package/{components → app/components}/Viewer/Options/TexturesSelector.vue +4 -3
- package/{components → app/components}/Viewer/PointSet/PointsOptions.vue +2 -1
- package/{components → app/components}/Viewer/PointSet/SpecificPointsOptions.vue +3 -0
- package/{components → app/components}/Viewer/PolygonalSurface/EdgesOptions.vue +2 -1
- package/{components → app/components}/Viewer/PolygonalSurface/PointsOptions.vue +2 -1
- package/{components → app/components}/Viewer/PolygonalSurface/PolygonsOptions.vue +2 -1
- package/{components → app/components}/Viewer/Solid/EdgesOptions.vue +2 -1
- package/{components → app/components}/Viewer/Solid/PointsOptions.vue +2 -1
- package/{components → app/components}/Viewer/Solid/PolygonsOptions.vue +2 -1
- package/{components → app/components}/Viewer/Solid/PolyhedraOptions.vue +2 -1
- package/{components → app/components}/Viewer/TetrahedralSolid/TetrahedraOptions.vue +2 -1
- package/{components → app/components}/Viewer/TetrahedralSolid/TrianglesOptions.vue +2 -1
- package/{components → app/components}/Viewer/Tree/ObjectTree.vue +4 -0
- package/{components → app/components}/Viewer/TriangulatedSurface/EdgesOptions.vue +2 -1
- package/{components → app/components}/Viewer/TriangulatedSurface/PointsOptions.vue +2 -1
- package/{components → app/components}/Viewer/TriangulatedSurface/TrianglesOptions.vue +2 -1
- package/{components → app/components}/Wrapper.vue +7 -1
- package/{composables → app/composables}/api_fetch.js +1 -0
- package/{composables → app/composables}/project_manager.js +12 -27
- package/{composables → app/composables}/viewer_call.js +2 -0
- package/{stores → app/stores}/geode.js +5 -4
- package/{stores → app/stores}/hybrid_viewer.js +1 -1
- package/{stores → app/stores}/infra.js +5 -4
- package/{stores → app/stores}/menu.js +24 -24
- package/{stores → app/stores}/viewer.js +5 -4
- package/nuxt.config.js +2 -2
- package/package.json +1 -1
- package/scripts/generate_geode_objects.js +1 -1
- package/tests/integration/setup.js +7 -7
- package/tests/integration/stores/data_style/mesh/edges.nuxt.test.js +7 -5
- package/tests/integration/stores/data_style/mesh/index.nuxt.test.js +7 -5
- package/tests/integration/stores/data_style/mesh/points.nuxt.test.js +7 -5
- package/tests/integration/stores/data_style/mesh/polygons.nuxt.test.js +7 -5
- package/tests/integration/stores/data_style/mesh/polyhedra.nuxt.test.js +7 -5
- package/tests/integration/stores/data_style/model/blocks.nuxt.test.js +34 -32
- package/tests/integration/stores/data_style/model/corners.nuxt.test.js +7 -5
- package/tests/integration/stores/data_style/model/edges.nuxt.test.js +7 -5
- package/tests/integration/stores/data_style/model/index.nuxt.test.js +7 -5
- package/tests/integration/stores/data_style/model/lines.nuxt.test.js +7 -4
- package/tests/integration/stores/data_style/model/points.nuxt.test.js +9 -5
- package/tests/integration/stores/data_style/model/surfaces.nuxt.test.js +7 -5
- package/tests/unit/components/CrsSelector.nuxt.test.js +1 -1
- package/tests/unit/components/ExtensionSelector.nuxt.test.js +1 -1
- package/tests/unit/components/FeedBack/ErrorsBanner.nuxt.test.js +1 -1
- package/tests/unit/components/FeedBack/Snackers.nuxt.test.js +1 -1
- package/tests/unit/components/FileSelector.nuxt.test.js +2 -2
- package/tests/unit/components/FileUploader.nuxt.test.js +1 -1
- package/tests/unit/components/Inspector/InspectionButton.nuxt.test.js +1 -1
- package/tests/unit/components/Inspector/ResultPanel.nuxt.test.js +1 -1
- package/tests/unit/components/Launcher.nuxt.test.js +1 -1
- package/tests/unit/components/MissingFilesSelector.nuxt.test.js +2 -2
- package/tests/unit/components/ObjectSelector.nuxt.test.js +1 -1
- package/tests/unit/components/PackagesVersions.nuxt.test.js +1 -1
- package/tests/unit/components/Step.nuxt.test.js +2 -2
- package/tests/unit/components/Stepper.nuxt.test.js +2 -2
- package/tests/unit/components/Wrapper.nuxt.test.js +2 -2
- package/tests/unit/composables/ProjectManager.nuxt.test.js +51 -17
- package/tests/unit/composables/run_function_when_microservices_connected.nuxt.test.js +1 -1
- package/tests/unit/composables/upload_file.nuxt.test.js +1 -1
- package/tests/unit/plugins/project_load.nuxt.test.js +1 -1
- package/tests/unit/stores/Appstore.nuxt.test.js +0 -1
- package/tests/unit/stores/Feedback.nuxt.test.js +1 -1
- package/tests/unit/stores/Geode.nuxt.test.js +12 -11
- package/tests/unit/stores/Infra.nuxt.test.js +6 -5
- package/tests/unit/stores/Viewer.nuxt.test.js +4 -4
- package/tests/unit/utils/recaptcha.nuxt.test.js +1 -1
- package/tests/unit/utils/validate_schema.nuxt.test.js +1 -1
- /package/{assets → app/assets}/img/energy_sobriety/chemin.png +0 -0
- /package/{assets → app/assets}/img/energy_sobriety/collegue.png +0 -0
- /package/{assets → app/assets}/img/energy_sobriety/derniere.png +0 -0
- /package/{assets → app/assets}/img/energy_sobriety/etincelle.png +0 -0
- /package/{assets → app/assets}/img/energy_sobriety/geste.png +0 -0
- /package/{assets → app/assets}/img/energy_sobriety/lampadaire.png +0 -0
- /package/{assets → app/assets}/img/energy_sobriety/salon.png +0 -0
- /package/{assets → app/assets}/img/energy_sobriety/sobene.png +0 -0
- /package/{assets → app/assets}/img/energy_sobriety/socle.png +0 -0
- /package/{assets → app/assets}/img/energy_sobriety/vert.png +0 -0
- /package/{assets → app/assets}/img/energy_sobriety/ying_yang.png +0 -0
- /package/{assets → app/assets}/img/geode_objects/BRep.svg +0 -0
- /package/{assets → app/assets}/img/geode_objects/CrossSection.svg +0 -0
- /package/{assets → app/assets}/img/geode_objects/EdgedCurve2D.svg +0 -0
- /package/{assets → app/assets}/img/geode_objects/EdgedCurve3D.svg +0 -0
- /package/{assets → app/assets}/img/geode_objects/Graph.svg +0 -0
- /package/{assets → app/assets}/img/geode_objects/HybridSolid3D.svg +0 -0
- /package/{assets → app/assets}/img/geode_objects/ImplicitCrossSection.svg +0 -0
- /package/{assets → app/assets}/img/geode_objects/ImplicitStructuralModel.svg +0 -0
- /package/{assets → app/assets}/img/geode_objects/LightRegularGrid2D.svg +0 -0
- /package/{assets → app/assets}/img/geode_objects/LightRegularGrid3D.svg +0 -0
- /package/{assets → app/assets}/img/geode_objects/PointSet2D.svg +0 -0
- /package/{assets → app/assets}/img/geode_objects/PointSet3D.svg +0 -0
- /package/{assets → app/assets}/img/geode_objects/PolygonalSurface2D.svg +0 -0
- /package/{assets → app/assets}/img/geode_objects/PolygonalSurface3D.svg +0 -0
- /package/{assets → app/assets}/img/geode_objects/PolyhedralSolid3D.svg +0 -0
- /package/{assets → app/assets}/img/geode_objects/RasterImage2D.svg +0 -0
- /package/{assets → app/assets}/img/geode_objects/RasterImage3D.svg +0 -0
- /package/{assets → app/assets}/img/geode_objects/RegularGrid2D.svg +0 -0
- /package/{assets → app/assets}/img/geode_objects/RegularGrid3D.svg +0 -0
- /package/{assets → app/assets}/img/geode_objects/Section.svg +0 -0
- /package/{assets → app/assets}/img/geode_objects/StructuralModel.svg +0 -0
- /package/{assets → app/assets}/img/geode_objects/TetrahedralSolid3D.svg +0 -0
- /package/{assets → app/assets}/img/geode_objects/TriangulatedSurface2D.svg +0 -0
- /package/{assets → app/assets}/img/geode_objects/TriangulatedSurface3D.svg +0 -0
- /package/{assets → app/assets}/img/geode_objects/VertexSet.svg +0 -0
- /package/{assets → app/assets}/viewer_svgs/edged_curve_edges.svg +0 -0
- /package/{assets → app/assets}/viewer_svgs/edged_curve_points.svg +0 -0
- /package/{assets → app/assets}/viewer_svgs/grid_2d_cells.svg +0 -0
- /package/{assets → app/assets}/viewer_svgs/grid_2d_edges.svg +0 -0
- /package/{assets → app/assets}/viewer_svgs/grid_2d_points.svg +0 -0
- /package/{assets → app/assets}/viewer_svgs/grid_3d_cells.svg +0 -0
- /package/{assets → app/assets}/viewer_svgs/grid_3d_edges.svg +0 -0
- /package/{assets → app/assets}/viewer_svgs/grid_3d_facets.svg +0 -0
- /package/{assets → app/assets}/viewer_svgs/grid_3d_points.svg +0 -0
- /package/{assets → app/assets}/viewer_svgs/point_set_points.svg +0 -0
- /package/{assets → app/assets}/viewer_svgs/solid_edges.svg +0 -0
- /package/{assets → app/assets}/viewer_svgs/solid_facets.svg +0 -0
- /package/{assets → app/assets}/viewer_svgs/solid_points.svg +0 -0
- /package/{assets → app/assets}/viewer_svgs/solid_polyhedra.svg +0 -0
- /package/{assets → app/assets}/viewer_svgs/surface_edges.svg +0 -0
- /package/{assets → app/assets}/viewer_svgs/surface_points.svg +0 -0
- /package/{assets → app/assets}/viewer_svgs/surface_triangles.svg +0 -0
- /package/{components → app/components}/Carousel.vue +0 -0
- /package/{components → app/components}/CrsSelector.vue +0 -0
- /package/{components → app/components}/FeedBack/ErrorBanner.vue +0 -0
- /package/{components → app/components}/FeedBack/Snackers.vue +0 -0
- /package/{components → app/components}/FetchingData.vue +0 -0
- /package/{components → app/components}/InfraConnected.vue +0 -0
- /package/{components → app/components}/Inspector/InspectionButton.vue +0 -0
- /package/{components → app/components}/Screenshot.vue +0 -0
- /package/{components → app/components}/Step.vue +0 -0
- /package/{components → app/components}/Viewer/BreadCrumb.vue +0 -0
- /package/{components → app/components}/Viewer/ContextMenu.vue +0 -0
- /package/{components → app/components}/Viewer/ContextMenuItem.vue +0 -0
- /package/{components → app/components}/Viewer/Options/ColorPicker.vue +0 -0
- /package/{components → app/components}/Viewer/Options/PolygonAttributeSelector.vue +0 -0
- /package/{components → app/components}/Viewer/Options/PolyhedronAttributeSelector.vue +0 -0
- /package/{components → app/components}/Viewer/Options/VertexAttributeSelector.vue +0 -0
- /package/{components → app/components}/Viewer/Options/VisibilitySwitch.vue +0 -0
- /package/{components → app/components}/Viewer/TreeComponent.vue +0 -0
- /package/{components → app/components}/Viewer/TreeObject.vue +0 -0
- /package/{components → app/components}/ZScaling.vue +0 -0
- /package/{composables → app/composables}/run_function_when_microservices_connected.js +0 -0
- /package/{composables → app/composables}/upload_file.js +0 -0
- /package/{plugins → app/plugins}/auto_store_register.js +0 -0
- /package/{stores → app/stores}/app.js +0 -0
- /package/{stores → app/stores}/data_base.js +0 -0
- /package/{stores → app/stores}/data_style.js +0 -0
- /package/{stores → app/stores}/feedback.js +0 -0
- /package/{stores → app/stores}/treeview.js +0 -0
- /package/{utils → app/utils}/app_mode.js +0 -0
- /package/{utils → app/utils}/default_styles.js +0 -0
- /package/{utils → app/utils}/file_import_workflow.js +0 -0
- /package/{utils → app/utils}/local.js +0 -0
- /package/{utils → app/utils}/recaptcha.js +0 -0
- /package/{utils → app/utils}/status.js +0 -0
- /package/{utils → app/utils}/validate_schema.js +0 -0
|
@@ -6,7 +6,8 @@ import { setActivePinia } from "pinia"
|
|
|
6
6
|
import { createTestingPinia } from "@pinia/testing"
|
|
7
7
|
import { beforeEach, describe, expect, expectTypeOf, test, vi } from "vitest"
|
|
8
8
|
// Local imports
|
|
9
|
-
import Status from "@
|
|
9
|
+
import Status from "@ogw_front/utils/status.js"
|
|
10
|
+
import { appMode } from "@ogw_front/utils/app_mode"
|
|
10
11
|
|
|
11
12
|
// Mock navigator.locks API
|
|
12
13
|
const mockLockRequest = vi.fn().mockImplementation(async (name, callback) => {
|
|
@@ -48,17 +49,17 @@ describe("Infra Store", () => {
|
|
|
48
49
|
describe("domain_name", () => {
|
|
49
50
|
test("test app_mode BROWSER", () => {
|
|
50
51
|
const infra_store = useInfraStore()
|
|
51
|
-
infra_store.app_mode = appMode.
|
|
52
|
+
infra_store.app_mode = appMode.BROWSER
|
|
52
53
|
expect(infra_store.domain_name).toBe("localhost")
|
|
53
54
|
})
|
|
54
55
|
test("test app_mode DESKTOP", () => {
|
|
55
56
|
const infra_store = useInfraStore()
|
|
56
|
-
infra_store.app_mode = appMode.
|
|
57
|
+
infra_store.app_mode = appMode.DESKTOP
|
|
57
58
|
expect(infra_store.domain_name).toBe("localhost")
|
|
58
59
|
})
|
|
59
60
|
test("test app_mode CLOUD", () => {
|
|
60
61
|
const infra_store = useInfraStore()
|
|
61
|
-
infra_store.app_mode = appMode.
|
|
62
|
+
infra_store.app_mode = appMode.CLOUD
|
|
62
63
|
expect(infra_store.domain_name).toBe("api.geode-solutions.com")
|
|
63
64
|
})
|
|
64
65
|
})
|
|
@@ -68,7 +69,7 @@ describe("Infra Store", () => {
|
|
|
68
69
|
const infra_store = useInfraStore()
|
|
69
70
|
useRuntimeConfig().public.SITE_BRANCH = "/test"
|
|
70
71
|
useRuntimeConfig().public.PROJECT = "/project"
|
|
71
|
-
infra_store.app_mode = appMode.
|
|
72
|
+
infra_store.app_mode = appMode.CLOUD
|
|
72
73
|
expect(infra_store.lambda_url).toBe(
|
|
73
74
|
"https://api.geode-solutions.com:443/test/project/createbackend",
|
|
74
75
|
)
|
|
@@ -18,11 +18,11 @@ import {
|
|
|
18
18
|
import { WebSocket } from "ws"
|
|
19
19
|
|
|
20
20
|
// Local imports
|
|
21
|
-
import { useViewerStore } from "@
|
|
22
|
-
import { useInfraStore } from "@
|
|
21
|
+
import { useViewerStore } from "@ogw_front/stores/viewer"
|
|
22
|
+
import { useInfraStore } from "@ogw_front/stores/infra"
|
|
23
23
|
|
|
24
|
-
import { appMode } from "@
|
|
25
|
-
import Status from "@
|
|
24
|
+
import { appMode } from "@ogw_front/utils/app_mode"
|
|
25
|
+
import Status from "@ogw_front/utils/status"
|
|
26
26
|
|
|
27
27
|
// Mock navigator.locks API
|
|
28
28
|
const mockLockRequest = vi.fn().mockImplementation(async (name, callback) => {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|