@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
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
</template>
|
|
7
7
|
|
|
8
8
|
<script setup>
|
|
9
|
-
import ViewerGenericMeshPointsOptions from "@ogw_front/components/Viewer/Generic/Mesh/PointsOptions
|
|
9
|
+
import ViewerGenericMeshPointsOptions from "@ogw_front/components/Viewer/Generic/Mesh/PointsOptions"
|
|
10
10
|
import Grid3D_Points from "@ogw_front/assets/viewer_svgs/grid_3d_points.svg"
|
|
11
11
|
|
|
12
12
|
const props = defineProps({
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
</template>
|
|
7
7
|
|
|
8
8
|
<script setup>
|
|
9
|
-
import ViewerGenericMeshEdgesOptions from "@ogw_front/components/Viewer/Generic/Mesh/EdgesOptions
|
|
9
|
+
import ViewerGenericMeshEdgesOptions from "@ogw_front/components/Viewer/Generic/Mesh/EdgesOptions"
|
|
10
10
|
import HybridSolidEdges from "@ogw_front/assets/viewer_svgs/solid_edges.svg"
|
|
11
11
|
|
|
12
12
|
const props = defineProps({
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
</template>
|
|
7
7
|
|
|
8
8
|
<script setup>
|
|
9
|
-
import ViewerGenericMeshPointsOptions from "@ogw_front/components/Viewer/Generic/Mesh/PointsOptions
|
|
9
|
+
import ViewerGenericMeshPointsOptions from "@ogw_front/components/Viewer/Generic/Mesh/PointsOptions"
|
|
10
10
|
import HybridSolidPoints from "@ogw_front/assets/viewer_svgs/solid_points.svg"
|
|
11
11
|
|
|
12
12
|
const props = defineProps({
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
</template>
|
|
7
7
|
|
|
8
8
|
<script setup>
|
|
9
|
-
import ViewerGenericMeshPolygonsOptions from "@ogw_front/components/Viewer/Generic/Mesh/PolygonsOptions
|
|
9
|
+
import ViewerGenericMeshPolygonsOptions from "@ogw_front/components/Viewer/Generic/Mesh/PolygonsOptions"
|
|
10
10
|
import HybridSolidPolygons from "@ogw_front/assets/viewer_svgs/solid_facets.svg"
|
|
11
11
|
|
|
12
12
|
const props = defineProps({
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
</template>
|
|
7
7
|
|
|
8
8
|
<script setup>
|
|
9
|
-
import ViewerGenericMeshPolyhedraOptions from "@ogw_front/components/Viewer/Generic/Mesh/PolyhedraOptions
|
|
9
|
+
import ViewerGenericMeshPolyhedraOptions from "@ogw_front/components/Viewer/Generic/Mesh/PolyhedraOptions"
|
|
10
10
|
import HybridSolidPolyhedra from "@ogw_front/assets/viewer_svgs/solid_polyhedra.svg"
|
|
11
11
|
|
|
12
12
|
const props = defineProps({
|
|
@@ -62,13 +62,13 @@
|
|
|
62
62
|
</template>
|
|
63
63
|
|
|
64
64
|
<script setup>
|
|
65
|
-
import ViewerOptionsColorPicker from "@ogw_front/components/Viewer/Options/ColorPicker
|
|
66
|
-
import ViewerOptionsTexturesSelector from "@ogw_front/components/Viewer/Options/TexturesSelector
|
|
67
|
-
import ViewerOptionsVertexAttributeSelector from "@ogw_front/components/Viewer/Options/VertexAttributeSelector
|
|
68
|
-
// import ViewerOptionsEdgeAttributeSelector from "@ogw_front/components/Viewer/Options/EdgeAttributeSelector
|
|
69
|
-
import ViewerOptionsPolygonAttributeSelector from "@ogw_front/components/Viewer/Options/PolygonAttributeSelector
|
|
70
|
-
import ViewerOptionsCellAttributeSelector from "@ogw_front/components/Viewer/Options/CellAttributeSelector
|
|
71
|
-
import ViewerOptionsPolyhedronAttributeSelector from "@ogw_front/components/Viewer/Options/PolyhedronAttributeSelector
|
|
65
|
+
import ViewerOptionsColorPicker from "@ogw_front/components/Viewer/Options/ColorPicker"
|
|
66
|
+
import ViewerOptionsTexturesSelector from "@ogw_front/components/Viewer/Options/TexturesSelector"
|
|
67
|
+
import ViewerOptionsVertexAttributeSelector from "@ogw_front/components/Viewer/Options/VertexAttributeSelector"
|
|
68
|
+
// import ViewerOptionsEdgeAttributeSelector from "@ogw_front/components/Viewer/Options/EdgeAttributeSelector"
|
|
69
|
+
import ViewerOptionsPolygonAttributeSelector from "@ogw_front/components/Viewer/Options/PolygonAttributeSelector"
|
|
70
|
+
import ViewerOptionsCellAttributeSelector from "@ogw_front/components/Viewer/Options/CellAttributeSelector"
|
|
71
|
+
import ViewerOptionsPolyhedronAttributeSelector from "@ogw_front/components/Viewer/Options/PolyhedronAttributeSelector"
|
|
72
72
|
|
|
73
73
|
const coloring_style_key = defineModel("coloring_style_key")
|
|
74
74
|
|
|
@@ -37,7 +37,8 @@
|
|
|
37
37
|
|
|
38
38
|
<script setup>
|
|
39
39
|
import back_schemas from "@geode/opengeodeweb-back/opengeodeweb_back_schemas.json"
|
|
40
|
-
import FileUploader from "@ogw_front/components/FileUploader
|
|
40
|
+
import FileUploader from "@ogw_front/components/FileUploader"
|
|
41
|
+
import { useGeodeStore } from "@ogw_front/stores/geode"
|
|
41
42
|
|
|
42
43
|
const emit = defineEmits(["update_value"])
|
|
43
44
|
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
</template>
|
|
37
37
|
|
|
38
38
|
<script setup>
|
|
39
|
-
import ViewerOptionsTextureItem from "@ogw_front/components/Viewer/Options/TextureItem
|
|
39
|
+
import ViewerOptionsTextureItem from "@ogw_front/components/Viewer/Options/TextureItem"
|
|
40
40
|
|
|
41
41
|
const textures = defineModel()
|
|
42
42
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
</template>
|
|
7
7
|
|
|
8
8
|
<script setup>
|
|
9
|
-
import ViewerPointSetSpecificPointsOptions from "@ogw_front/components/Viewer/PointSet/SpecificPointsOptions
|
|
9
|
+
import ViewerPointSetSpecificPointsOptions from "@ogw_front/components/Viewer/PointSet/SpecificPointsOptions"
|
|
10
10
|
import PointSetPoints from "@ogw_front/assets/viewer_svgs/point_set_points.svg"
|
|
11
11
|
|
|
12
12
|
const props = defineProps({
|
|
@@ -40,9 +40,13 @@
|
|
|
40
40
|
</template>
|
|
41
41
|
|
|
42
42
|
<script setup>
|
|
43
|
-
import ViewerContextMenuItem from "@ogw_front/components/Viewer/ContextMenuItem
|
|
44
|
-
import ViewerOptionsVisibilitySwitch from "@ogw_front/components/Viewer/Options/VisibilitySwitch
|
|
45
|
-
import ViewerOptionsColoringTypeSelector from "@ogw_front/components/Viewer/Options/ColoringTypeSelector
|
|
43
|
+
import ViewerContextMenuItem from "@ogw_front/components/Viewer/ContextMenuItem"
|
|
44
|
+
import ViewerOptionsVisibilitySwitch from "@ogw_front/components/Viewer/Options/VisibilitySwitch"
|
|
45
|
+
import ViewerOptionsColoringTypeSelector from "@ogw_front/components/Viewer/Options/ColoringTypeSelector"
|
|
46
|
+
|
|
47
|
+
import { useDataStyleStore } from "@ogw_front/stores/data_style"
|
|
48
|
+
import { useHybridViewerStore } from "@ogw_front/stores/hybrid_viewer"
|
|
49
|
+
|
|
46
50
|
const dataStyleStore = useDataStyleStore()
|
|
47
51
|
const hybridViewerStore = useHybridViewerStore()
|
|
48
52
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
</template>
|
|
7
7
|
|
|
8
8
|
<script setup>
|
|
9
|
-
import ViewerGenericMeshEdgesOptions from "@ogw_front/components/Viewer/Generic/Mesh/EdgesOptions
|
|
9
|
+
import ViewerGenericMeshEdgesOptions from "@ogw_front/components/Viewer/Generic/Mesh/EdgesOptions"
|
|
10
10
|
import PolygonalSurfaceEdges from "@ogw_front/assets/viewer_svgs/surface_edges.svg"
|
|
11
11
|
|
|
12
12
|
const props = defineProps({
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
</template>
|
|
7
7
|
|
|
8
8
|
<script setup>
|
|
9
|
-
import ViewerGenericMeshPointsOptions from "@ogw_front/components/Viewer/Generic/Mesh/PointsOptions
|
|
9
|
+
import ViewerGenericMeshPointsOptions from "@ogw_front/components/Viewer/Generic/Mesh/PointsOptions"
|
|
10
10
|
import PolygonalSurfacePoints from "@ogw_front/assets/viewer_svgs/surface_points.svg"
|
|
11
11
|
|
|
12
12
|
const props = defineProps({
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
</template>
|
|
7
7
|
|
|
8
8
|
<script setup>
|
|
9
|
-
import ViewerGenericMeshPolygonsOptions from "@ogw_front/components/Viewer/Generic/Mesh/PolygonsOptions
|
|
9
|
+
import ViewerGenericMeshPolygonsOptions from "@ogw_front/components/Viewer/Generic/Mesh/PolygonsOptions"
|
|
10
10
|
import PolygonalSurfacePolygons from "@ogw_front/assets/viewer_svgs/surface_triangles.svg"
|
|
11
11
|
|
|
12
12
|
const props = defineProps({
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
</template>
|
|
7
7
|
|
|
8
8
|
<script setup>
|
|
9
|
-
import ViewerGenericMeshEdgesOptions from "@ogw_front/components/Viewer/Generic/Mesh/EdgesOptions
|
|
9
|
+
import ViewerGenericMeshEdgesOptions from "@ogw_front/components/Viewer/Generic/Mesh/EdgesOptions"
|
|
10
10
|
import SolidEdges from "@ogw_front/assets/viewer_svgs/solid_edges.svg"
|
|
11
11
|
|
|
12
12
|
const props = defineProps({
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
</template>
|
|
7
7
|
|
|
8
8
|
<script setup>
|
|
9
|
-
import ViewerGenericMeshPointsOptions from "@ogw_front/components/Viewer/Generic/Mesh/PointsOptions
|
|
9
|
+
import ViewerGenericMeshPointsOptions from "@ogw_front/components/Viewer/Generic/Mesh/PointsOptions"
|
|
10
10
|
import SolidPoints from "@ogw_front/assets/viewer_svgs/solid_points.svg"
|
|
11
11
|
|
|
12
12
|
const props = defineProps({
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
</template>
|
|
7
7
|
|
|
8
8
|
<script setup>
|
|
9
|
-
import ViewerGenericMeshPolygonsOptions from "@ogw_front/components/Viewer/Generic/Mesh/PolygonsOptions
|
|
9
|
+
import ViewerGenericMeshPolygonsOptions from "@ogw_front/components/Viewer/Generic/Mesh/PolygonsOptions"
|
|
10
10
|
import SolidFacets from "@ogw_front/assets/viewer_svgs/solid_facets.svg"
|
|
11
11
|
|
|
12
12
|
const props = defineProps({
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
</template>
|
|
7
7
|
|
|
8
8
|
<script setup>
|
|
9
|
-
import ViewerGenericMeshPolyhedraOptions from "@ogw_front/components/Viewer/Generic/Mesh/PolyhedraOptions
|
|
9
|
+
import ViewerGenericMeshPolyhedraOptions from "@ogw_front/components/Viewer/Generic/Mesh/PolyhedraOptions"
|
|
10
10
|
import SolidPolyhedra from "@ogw_front/assets/viewer_svgs/solid_polyhedra.svg"
|
|
11
11
|
|
|
12
12
|
const props = defineProps({
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
</template>
|
|
8
8
|
|
|
9
9
|
<script setup>
|
|
10
|
-
import ViewerGenericMeshPolyhedraOptions from "@ogw_front/components/Viewer/Generic/Mesh/PolyhedraOptions
|
|
10
|
+
import ViewerGenericMeshPolyhedraOptions from "@ogw_front/components/Viewer/Generic/Mesh/PolyhedraOptions"
|
|
11
11
|
import TetrahedralSolidTetrahedra from "@ogw_front/assets/viewer_svgs/solid_polyhedra.svg"
|
|
12
12
|
|
|
13
13
|
const props = defineProps({
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
</template>
|
|
8
8
|
|
|
9
9
|
<script setup>
|
|
10
|
-
import ViewerGenericMeshPolygonsOptions from "@ogw_front/components/Viewer/Generic/Mesh/PolygonsOptions
|
|
10
|
+
import ViewerGenericMeshPolygonsOptions from "@ogw_front/components/Viewer/Generic/Mesh/PolygonsOptions"
|
|
11
11
|
import TetrahedralSolidTriangles from "@ogw_front/assets/viewer_svgs/solid_facets.svg"
|
|
12
12
|
|
|
13
13
|
const props = defineProps({
|
|
@@ -42,9 +42,11 @@
|
|
|
42
42
|
</template>
|
|
43
43
|
|
|
44
44
|
<script setup>
|
|
45
|
-
import ViewerBreadCrumb from "@/
|
|
46
|
-
import ViewerTreeObject from "@/
|
|
47
|
-
import ViewerTreeComponent from "@/
|
|
45
|
+
import ViewerBreadCrumb from "@/components/Viewer/BreadCrumb"
|
|
46
|
+
import ViewerTreeObject from "@/components/Viewer/TreeObject"
|
|
47
|
+
import ViewerTreeComponent from "@/components/Viewer/TreeComponent"
|
|
48
|
+
import { useTreeviewStore } from "@ogw_front/stores/treeview"
|
|
49
|
+
import { useMenuStore } from "@ogw_front/stores/menu"
|
|
48
50
|
|
|
49
51
|
const treeviewStore = useTreeviewStore()
|
|
50
52
|
const menuStore = useMenuStore()
|
|
@@ -14,6 +14,10 @@
|
|
|
14
14
|
</template>
|
|
15
15
|
|
|
16
16
|
<script setup>
|
|
17
|
+
import { useDataStyleStore } from "@ogw_front/stores/data_style"
|
|
18
|
+
import { useDataBaseStore } from "@ogw_front/stores/data_base"
|
|
19
|
+
import { useHybridViewerStore } from "@ogw_front/stores/hybrid_viewer"
|
|
20
|
+
|
|
17
21
|
const dataStyleStore = useDataStyleStore()
|
|
18
22
|
const dataBaseStore = useDataBaseStore()
|
|
19
23
|
const hybridViewerStore = useHybridViewerStore()
|
|
@@ -36,10 +36,16 @@
|
|
|
36
36
|
</template>
|
|
37
37
|
|
|
38
38
|
<script setup>
|
|
39
|
+
import { useTreeviewStore } from "@ogw_front/stores/treeview"
|
|
40
|
+
import { useDataStyleStore } from "@ogw_front/stores/data_style"
|
|
41
|
+
import { useDataBaseStore } from "@ogw_front/stores/data_base"
|
|
42
|
+
import { useHybridViewerStore } from "@ogw_front/stores/hybrid_viewer"
|
|
43
|
+
|
|
39
44
|
const treeviewStore = useTreeviewStore()
|
|
40
45
|
const dataStyleStore = useDataStyleStore()
|
|
41
46
|
const dataBaseStore = useDataBaseStore()
|
|
42
47
|
const hybridViewerStore = useHybridViewerStore()
|
|
48
|
+
|
|
43
49
|
const emit = defineEmits(["show-menu"])
|
|
44
50
|
|
|
45
51
|
function isLeafNode(item) {
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
</template>
|
|
7
7
|
|
|
8
8
|
<script setup>
|
|
9
|
-
import ViewerGenericMeshEdgesOptions from "@ogw_front/components/Viewer/Generic/Mesh/EdgesOptions
|
|
9
|
+
import ViewerGenericMeshEdgesOptions from "@ogw_front/components/Viewer/Generic/Mesh/EdgesOptions"
|
|
10
10
|
import SurfaceEdges from "@ogw_front/assets/viewer_svgs/surface_edges.svg"
|
|
11
11
|
|
|
12
12
|
const props = defineProps({
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
</template>
|
|
7
7
|
|
|
8
8
|
<script setup>
|
|
9
|
-
import ViewerGenericMeshPointsOptions from "@ogw_front/components/Viewer/Generic/Mesh/PointsOptions
|
|
9
|
+
import ViewerGenericMeshPointsOptions from "@ogw_front/components/Viewer/Generic/Mesh/PointsOptions"
|
|
10
10
|
import TriangulatedSurfaceEdgesPoints from "@ogw_front/assets/viewer_svgs/surface_points.svg"
|
|
11
11
|
|
|
12
12
|
const props = defineProps({
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
</template>
|
|
8
8
|
|
|
9
9
|
<script setup>
|
|
10
|
-
import ViewerGenericMeshPolygonsOptions from "@ogw_front/components/Viewer/Generic/Mesh/PolygonsOptions
|
|
10
|
+
import ViewerGenericMeshPolygonsOptions from "@ogw_front/components/Viewer/Generic/Mesh/PolygonsOptions"
|
|
11
11
|
import TriangulatedSurfaceEdgesTriangles from "@ogw_front/assets/viewer_svgs/surface_triangles.svg"
|
|
12
12
|
|
|
13
13
|
const props = defineProps({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<v-container>
|
|
3
3
|
<v-row class="flex-column">
|
|
4
|
-
<template v-if="!
|
|
4
|
+
<template v-if="!infraStore.microservices_connected">
|
|
5
5
|
<v-col>
|
|
6
6
|
<Launcher />
|
|
7
7
|
</v-col>
|
|
@@ -19,11 +19,13 @@
|
|
|
19
19
|
</template>
|
|
20
20
|
|
|
21
21
|
<script setup>
|
|
22
|
-
import Launcher from "@ogw_front/components/Launcher
|
|
23
|
-
import PackagesVersions from "@ogw_front/components/PackagesVersions
|
|
24
|
-
import Stepper from "@ogw_front/components/Stepper
|
|
22
|
+
import Launcher from "@ogw_front/components/Launcher"
|
|
23
|
+
import PackagesVersions from "@ogw_front/components/PackagesVersions"
|
|
24
|
+
import Stepper from "@ogw_front/components/Stepper"
|
|
25
25
|
|
|
26
|
-
|
|
26
|
+
import { useInfraStore } from "@ogw_front/stores/infra"
|
|
27
|
+
|
|
28
|
+
const infraStore = useInfraStore()
|
|
27
29
|
|
|
28
30
|
const props = defineProps({
|
|
29
31
|
versions_schema: { type: Object, required: true },
|
|
@@ -4,6 +4,14 @@ import viewer_schemas from "@geode/opengeodeweb-viewer/opengeodeweb_viewer_schem
|
|
|
4
4
|
|
|
5
5
|
import { importWorkflowFromSnapshot } from "@ogw_front/utils/file_import_workflow"
|
|
6
6
|
|
|
7
|
+
import { useAppStore } from "@ogw_front/stores/app"
|
|
8
|
+
import { useDataStyleStore } from "@ogw_front/stores/data_style"
|
|
9
|
+
import { useDataBaseStore } from "@ogw_front/stores/data_base"
|
|
10
|
+
import { useGeodeStore } from "@ogw_front/stores/geode"
|
|
11
|
+
import { useHybridViewerStore } from "@ogw_front/stores/hybrid_viewer"
|
|
12
|
+
import { useTreeviewStore } from "@ogw_front/stores/treeview"
|
|
13
|
+
import { useViewerStore } from "@ogw_front/stores/viewer"
|
|
14
|
+
|
|
7
15
|
export function useProjectManager() {
|
|
8
16
|
const exportProject = async function () {
|
|
9
17
|
console.log("[export triggered]")
|
|
@@ -24,6 +32,7 @@ export function useProjectManager() {
|
|
|
24
32
|
|
|
25
33
|
const importProjectFile = async function (file) {
|
|
26
34
|
const geodeStore = useGeodeStore()
|
|
35
|
+
const dataStyleStore = useDataStyleStore()
|
|
27
36
|
const viewerStore = useViewerStore()
|
|
28
37
|
const dataBaseStore = useDataBaseStore()
|
|
29
38
|
const treeviewStore = useTreeviewStore()
|
|
@@ -96,13 +105,10 @@ export function useProjectManager() {
|
|
|
96
105
|
|
|
97
106
|
await importWorkflowFromSnapshot(items)
|
|
98
107
|
await hybridViewerStore.importStores(snapshot.hybridViewer || {})
|
|
99
|
-
|
|
100
108
|
{
|
|
101
|
-
const dataStyleStore = useDataStyleStore()
|
|
102
109
|
await dataStyleStore.importStores(snapshot.dataStyle || {})
|
|
103
110
|
}
|
|
104
111
|
{
|
|
105
|
-
const dataStyleStore = useDataStyleStore()
|
|
106
112
|
await dataStyleStore.applyAllStylesFromState()
|
|
107
113
|
}
|
|
108
114
|
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
+
import { useInfraStore } from "@ogw_front/stores/infra"
|
|
1
2
|
export function run_function_when_microservices_connected(function_to_run) {
|
|
2
|
-
const
|
|
3
|
-
const { microservices_connected } = storeToRefs(
|
|
3
|
+
const infraStore = useInfraStore()
|
|
4
|
+
const { microservices_connected } = storeToRefs(infraStore)
|
|
5
|
+
console.log("inside microservices_connected", microservices_connected.value)
|
|
4
6
|
if (microservices_connected.value) {
|
|
5
7
|
function_to_run()
|
|
6
8
|
} else {
|
|
7
9
|
watch(microservices_connected, (value) => {
|
|
8
10
|
if (value) {
|
|
11
|
+
console.log("watch microservices_connected", value)
|
|
9
12
|
function_to_run()
|
|
10
13
|
}
|
|
11
14
|
})
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { useAppStore } from "../stores/app"
|
|
2
|
+
|
|
1
3
|
const autoStoreRegister = ({ store }) => {
|
|
2
4
|
if (store.$id === "app") {
|
|
3
5
|
return
|
|
@@ -9,7 +11,13 @@ const autoStoreRegister = ({ store }) => {
|
|
|
9
11
|
}
|
|
10
12
|
|
|
11
13
|
export default defineNuxtPlugin((nuxtApp) => {
|
|
12
|
-
nuxtApp
|
|
14
|
+
const { $pinia } = nuxtApp
|
|
15
|
+
if (!$pinia) {
|
|
16
|
+
console.warn("Pinia instance not available.")
|
|
17
|
+
return
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
$pinia.use(autoStoreRegister)
|
|
13
21
|
console.log(
|
|
14
22
|
"[AUTOREGISTER PLUGIN] Loaded automatically from OpenGeodeWeb-Front",
|
|
15
23
|
)
|
package/app/stores/data_base.js
CHANGED
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
// Third party imports
|
|
2
2
|
import back_schemas from "@geode/opengeodeweb-back/opengeodeweb_back_schemas.json"
|
|
3
3
|
import viewer_schemas from "@geode/opengeodeweb-viewer/opengeodeweb_viewer_schemas.json"
|
|
4
|
+
import { useViewerStore } from "@ogw_front/stores/viewer"
|
|
5
|
+
import { useGeodeStore } from "@ogw_front/stores/geode"
|
|
4
6
|
|
|
5
7
|
// Local constants
|
|
6
8
|
const back_model_schemas = back_schemas.opengeodeweb_back.models
|
|
7
9
|
const viewer_generic_schemas = viewer_schemas.opengeodeweb_viewer.generic
|
|
8
10
|
|
|
9
11
|
export const useDataBaseStore = defineStore("dataBase", () => {
|
|
12
|
+
const viewerStore = useViewerStore()
|
|
13
|
+
|
|
10
14
|
const db = reactive({})
|
|
11
15
|
|
|
12
16
|
function itemMetaDatas(id) {
|
|
@@ -42,7 +46,6 @@ export const useDataBaseStore = defineStore("dataBase", () => {
|
|
|
42
46
|
}
|
|
43
47
|
|
|
44
48
|
async function registerObject(id) {
|
|
45
|
-
const viewerStore = useViewerStore()
|
|
46
49
|
return viewerStore.request(viewer_generic_schemas.register, { id })
|
|
47
50
|
}
|
|
48
51
|
|
package/app/stores/data_style.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { getDefaultStyle } from "../utils/default_styles
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
1
|
+
import { getDefaultStyle } from "../utils/default_styles"
|
|
2
|
+
import { useDataBaseStore } from "@ogw_front/stores/data_base"
|
|
3
|
+
import useDataStyleState from "../../internal/stores/data_style_state"
|
|
4
|
+
import useMeshStyle from "../../internal/stores/mesh/index"
|
|
5
|
+
import useModelStyle from "../../internal/stores/model/index"
|
|
5
6
|
|
|
6
7
|
export const useDataStyleStore = defineStore("dataStyle", () => {
|
|
7
8
|
const dataStyleState = useDataStyleState()
|
|
8
9
|
const meshStyleStore = useMeshStyle()
|
|
9
10
|
const modelStyleStore = useModelStyle()
|
|
10
11
|
const dataBaseStore = useDataBaseStore()
|
|
11
|
-
const hybridViewerStore = useHybridViewerStore()
|
|
12
12
|
|
|
13
13
|
function addDataStyle(id, geode_object) {
|
|
14
14
|
dataStyleState.styles[id] = getDefaultStyle(geode_object)
|
package/app/stores/geode.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import back_schemas from "@geode/opengeodeweb-back/opengeodeweb_back_schemas.json"
|
|
2
|
-
import Status from "@ogw_front/utils/status
|
|
3
|
-
import { appMode } from "@ogw_front/utils/app_mode
|
|
4
|
-
import { api_fetch } from "../../internal/utils/api_fetch
|
|
2
|
+
import Status from "@ogw_front/utils/status"
|
|
3
|
+
import { appMode } from "@ogw_front/utils/app_mode"
|
|
4
|
+
import { api_fetch } from "../../internal/utils/api_fetch"
|
|
5
|
+
import { useInfraStore } from "@ogw_front/stores/infra"
|
|
6
|
+
import { useFeedbackStore } from "@ogw_front/stores/feedback"
|
|
5
7
|
|
|
6
8
|
export const useGeodeStore = defineStore("geode", {
|
|
7
9
|
state: () => ({
|
|
@@ -27,13 +29,13 @@ export const useGeodeStore = defineStore("geode", {
|
|
|
27
29
|
return this.default_local_port
|
|
28
30
|
},
|
|
29
31
|
base_url() {
|
|
30
|
-
const
|
|
31
|
-
let geode_url = `${this.protocol}://${
|
|
32
|
-
if (
|
|
33
|
-
if (
|
|
32
|
+
const infraStore = useInfraStore()
|
|
33
|
+
let geode_url = `${this.protocol}://${infraStore.domain_name}:${this.port}`
|
|
34
|
+
if (infraStore.app_mode == appMode.CLOUD) {
|
|
35
|
+
if (infraStore.ID == "") {
|
|
34
36
|
throw new Error("ID must not be empty in cloud mode")
|
|
35
37
|
}
|
|
36
|
-
geode_url += `/${
|
|
38
|
+
geode_url += `/${infraStore.ID}/geode`
|
|
37
39
|
}
|
|
38
40
|
return geode_url
|
|
39
41
|
},
|
|
@@ -51,23 +53,23 @@ export const useGeodeStore = defineStore("geode", {
|
|
|
51
53
|
},
|
|
52
54
|
do_ping() {
|
|
53
55
|
const geodeStore = this
|
|
54
|
-
const
|
|
56
|
+
const feedbackStore = useFeedbackStore()
|
|
55
57
|
return useFetch(back_schemas.opengeodeweb_back.ping.$id, {
|
|
56
58
|
baseURL: this.base_url,
|
|
57
59
|
method: back_schemas.opengeodeweb_back.ping.methods[0],
|
|
58
60
|
body: {},
|
|
59
61
|
onRequestError({ error }) {
|
|
60
|
-
|
|
62
|
+
feedbackStore.$patch({ server_error: true })
|
|
61
63
|
geodeStore.status = Status.NOT_CONNECTED
|
|
62
64
|
},
|
|
63
65
|
onResponse({ response }) {
|
|
64
66
|
if (response.ok) {
|
|
65
|
-
|
|
67
|
+
feedbackStore.$patch({ server_error: false })
|
|
66
68
|
geodeStore.status = Status.CONNECTED
|
|
67
69
|
}
|
|
68
70
|
},
|
|
69
71
|
onResponseError({ response }) {
|
|
70
|
-
|
|
72
|
+
feedbackStore.$patch({ server_error: true })
|
|
71
73
|
geodeStore.status = Status.NOT_CONNECTED
|
|
72
74
|
},
|
|
73
75
|
})
|
|
@@ -5,8 +5,9 @@ import vtkMapper from "@kitware/vtk.js/Rendering/Core/Mapper"
|
|
|
5
5
|
import vtkActor from "@kitware/vtk.js/Rendering/Core/Actor"
|
|
6
6
|
|
|
7
7
|
import viewer_schemas from "@geode/opengeodeweb-viewer/opengeodeweb_viewer_schemas.json"
|
|
8
|
-
import Status from "@ogw_front/utils/status
|
|
9
|
-
import {
|
|
8
|
+
import Status from "@ogw_front/utils/status"
|
|
9
|
+
import { useViewerStore } from "@ogw_front/stores/viewer"
|
|
10
|
+
import { useDataBaseStore } from "@ogw_front/stores/data_base"
|
|
10
11
|
|
|
11
12
|
export const useHybridViewerStore = defineStore("hybridViewer", () => {
|
|
12
13
|
const viewerStore = useViewerStore()
|
package/app/stores/infra.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import Status from "@ogw_front/utils/status
|
|
2
|
-
import { appMode, getAppMode } from "@ogw_front/utils/app_mode
|
|
1
|
+
import Status from "@ogw_front/utils/status"
|
|
2
|
+
import { appMode, getAppMode } from "@ogw_front/utils/app_mode"
|
|
3
|
+
import { useLambdaStore } from "@ogw_front/stores/lambda"
|
|
3
4
|
|
|
4
5
|
export const useInfraStore = defineStore("infra", {
|
|
5
6
|
state: () => ({
|
|
@@ -17,6 +18,7 @@ export const useInfraStore = defineStore("infra", {
|
|
|
17
18
|
return "localhost"
|
|
18
19
|
},
|
|
19
20
|
microservices_connected() {
|
|
21
|
+
console.log("microservices", this.microservices)
|
|
20
22
|
return this.microservices.every(
|
|
21
23
|
(store) => store.status === Status.CONNECTED,
|
|
22
24
|
)
|
package/app/stores/lambda.js
CHANGED