@geode/opengeodeweb-front 10.6.2 → 10.7.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/.eslintrc.cjs +1 -1
- package/.oxlintrc.json +3 -22
- package/app/assets/geode_objects.js +26 -26
- package/app/components/Carousel.vue +62 -66
- package/app/components/CrsSelector.vue +48 -52
- package/app/components/DeleteDialog.vue +21 -37
- package/app/components/DragAndDrop.vue +35 -41
- package/app/components/ExtensionSelector.vue +50 -63
- package/app/components/FeedBack/ErrorBanner.vue +7 -10
- package/app/components/FeedBack/Snackers.vue +12 -14
- package/app/components/FetchingData.vue +1 -6
- package/app/components/FileSelector.vue +41 -47
- package/app/components/FileUploader.vue +62 -79
- package/app/components/GlassCard.vue +19 -19
- package/app/components/HybridRenderingView.vue +37 -38
- package/app/components/InfraConnected.vue +3 -3
- package/app/components/Inspector/InspectionButton.vue +27 -31
- package/app/components/Inspector/ResultPanel.vue +13 -24
- package/app/components/Launcher.vue +13 -13
- package/app/components/Loading.vue +63 -69
- package/app/components/MissingFilesSelector.vue +53 -73
- package/app/components/ObjectSelector.vue +81 -99
- package/app/components/PackagesVersions.vue +27 -30
- package/app/components/Recaptcha.vue +60 -71
- package/app/components/RemoteRenderingView.vue +102 -108
- package/app/components/Screenshot.vue +36 -42
- package/app/components/SearchBar.vue +5 -5
- package/app/components/Step.vue +37 -44
- package/app/components/Stepper.vue +29 -35
- package/app/components/VeaseViewToolbar.vue +69 -78
- package/app/components/ViewToolbar.vue +41 -45
- package/app/components/Viewer/BreadCrumb.vue +18 -30
- package/app/components/Viewer/ContextMenu.vue +176 -179
- package/app/components/Viewer/ContextMenuItem.vue +105 -117
- package/app/components/Viewer/EdgedCurve/PointsOptions.vue +6 -9
- package/app/components/Viewer/EdgedCurve/SpecificEdgesOptions.vue +82 -93
- package/app/components/Viewer/Generic/Mesh/CellsOptions.vue +84 -99
- package/app/components/Viewer/Generic/Mesh/EdgesOptions.vue +83 -98
- package/app/components/Viewer/Generic/Mesh/PointsOptions.vue +62 -73
- package/app/components/Viewer/Generic/Mesh/PolygonsOptions.vue +84 -108
- package/app/components/Viewer/Generic/Mesh/PolyhedraOptions.vue +82 -105
- package/app/components/Viewer/Generic/Model/EdgesOptions.vue +19 -23
- package/app/components/Viewer/Generic/Model/PointsOptions.vue +26 -30
- package/app/components/Viewer/Grid/2D/CellsOptions.vue +5 -5
- package/app/components/Viewer/Grid/2D/EdgesOptions.vue +6 -9
- package/app/components/Viewer/Grid/2D/PointsOptions.vue +6 -9
- package/app/components/Viewer/Grid/3D/CellsOptions.vue +5 -5
- package/app/components/Viewer/Grid/3D/EdgesOptions.vue +6 -9
- package/app/components/Viewer/Grid/3D/FacetsOptions.vue +5 -5
- package/app/components/Viewer/Grid/3D/PointsOptions.vue +6 -9
- package/app/components/Viewer/HybridSolid/EdgesOptions.vue +6 -9
- package/app/components/Viewer/HybridSolid/PointsOptions.vue +6 -9
- package/app/components/Viewer/HybridSolid/PolygonsOptions.vue +6 -9
- package/app/components/Viewer/HybridSolid/PolyhedraOptions.vue +6 -9
- package/app/components/Viewer/Options/AttributeColorBar.vue +8 -8
- package/app/components/Viewer/Options/AttributeSelector.vue +73 -78
- package/app/components/Viewer/Options/ColorMapList.vue +115 -140
- package/app/components/Viewer/Options/ColorMapPicker.vue +128 -142
- package/app/components/Viewer/Options/ColorPicker.vue +9 -9
- package/app/components/Viewer/Options/ColoringTypeSelector.vue +77 -91
- package/app/components/Viewer/Options/TextureItem.vue +54 -58
- package/app/components/Viewer/Options/TexturesSelector.vue +22 -26
- package/app/components/Viewer/Options/VisibilitySwitch.vue +1 -1
- package/app/components/Viewer/PointSet/SpecificPointsOptions.vue +61 -68
- package/app/components/Viewer/PolygonalSurface/EdgesOptions.vue +6 -9
- package/app/components/Viewer/PolygonalSurface/PointsOptions.vue +6 -9
- package/app/components/Viewer/PolygonalSurface/SpecificPolygonsOptions.vue +83 -103
- package/app/components/Viewer/Solid/EdgesOptions.vue +6 -9
- package/app/components/Viewer/Solid/PointsOptions.vue +6 -9
- package/app/components/Viewer/Solid/PolygonsOptions.vue +6 -9
- package/app/components/Viewer/Solid/SpecificPolyhedraOptions.vue +82 -105
- package/app/components/Viewer/TetrahedralSolid/TetrahedraOptions.vue +5 -5
- package/app/components/Viewer/TetrahedralSolid/TrianglesOptions.vue +5 -5
- package/app/components/Viewer/Tree/ObjectTree.vue +80 -89
- package/app/components/Viewer/TreeComponent.vue +43 -49
- package/app/components/Viewer/TreeObject.vue +48 -50
- package/app/components/Viewer/TriangulatedSurface/EdgesOptions.vue +6 -9
- package/app/components/Viewer/TriangulatedSurface/PointsOptions.vue +5 -5
- package/app/components/Viewer/TriangulatedSurface/TrianglesOptions.vue +5 -5
- package/app/components/Wrapper.vue +8 -8
- package/app/components/ZScaling.vue +18 -27
- package/app/composables/project_manager.js +57 -67
- package/app/composables/run_function_when_microservices_connected.js +8 -8
- package/app/plugins/auto_store_register.js +11 -13
- package/app/stores/app.js +118 -138
- package/app/stores/data.js +52 -68
- package/app/stores/data_style.js +36 -36
- package/app/stores/feedback.js +17 -20
- package/app/stores/geode.js +54 -55
- package/app/stores/hybrid_viewer.js +164 -177
- package/app/stores/infra.js +45 -55
- package/app/stores/lambda.js +26 -26
- package/app/stores/menu.js +78 -85
- package/app/stores/treeview.js +57 -65
- package/app/stores/viewer.js +92 -104
- package/app/utils/colormap.js +3 -3
- package/app/utils/config.js +16 -22
- package/app/utils/default_styles.js +50 -62
- package/app/utils/extension.js +44 -44
- package/app/utils/file_import_workflow.js +50 -64
- package/app/utils/local/app_mode.js +2 -2
- package/app/utils/local/cleanup.js +66 -72
- package/app/utils/local/microservices.js +61 -71
- package/app/utils/local/path.js +16 -19
- package/app/utils/local/scripts.js +22 -22
- package/app/utils/recaptcha.js +6 -6
- package/app/utils/server.js +21 -24
- package/app/utils/status.js +2 -2
- package/app/utils/treeview.js +4 -4
- package/app/utils/validate_schema.js +7 -7
- package/commitlint.config.js +2 -2
- package/eslint.config.js +4 -4
- package/internal/database/database.js +38 -46
- package/internal/database/extended_database.js +9 -10
- package/internal/database/tables/data.js +2 -3
- package/internal/database/tables/model_components.js +1 -1
- package/internal/database/tables/model_components_relation.js +1 -1
- package/internal/stores/data_style/mesh/cells/cell.js +47 -63
- package/internal/stores/data_style/mesh/cells/color.js +11 -16
- package/internal/stores/data_style/mesh/cells/common.js +6 -6
- package/internal/stores/data_style/mesh/cells/index.js +37 -47
- package/internal/stores/data_style/mesh/cells/textures.js +11 -12
- package/internal/stores/data_style/mesh/cells/vertex.js +47 -58
- package/internal/stores/data_style/mesh/cells/visibility.js +11 -16
- package/internal/stores/data_style/mesh/edges/color.js +11 -16
- package/internal/stores/data_style/mesh/edges/common.js +6 -6
- package/internal/stores/data_style/mesh/edges/edge.js +47 -63
- package/internal/stores/data_style/mesh/edges/index.js +38 -52
- package/internal/stores/data_style/mesh/edges/vertex.js +47 -58
- package/internal/stores/data_style/mesh/edges/visibility.js +11 -16
- package/internal/stores/data_style/mesh/edges/width.js +11 -16
- package/internal/stores/data_style/mesh/index.js +34 -34
- package/internal/stores/data_style/mesh/points/color.js +11 -16
- package/internal/stores/data_style/mesh/points/common.js +6 -6
- package/internal/stores/data_style/mesh/points/index.js +35 -49
- package/internal/stores/data_style/mesh/points/size.js +11 -16
- package/internal/stores/data_style/mesh/points/vertex.js +47 -58
- package/internal/stores/data_style/mesh/points/visibility.js +11 -16
- package/internal/stores/data_style/mesh/polygons/color.js +11 -16
- package/internal/stores/data_style/mesh/polygons/common.js +6 -6
- package/internal/stores/data_style/mesh/polygons/index.js +36 -45
- package/internal/stores/data_style/mesh/polygons/polygon.js +45 -56
- package/internal/stores/data_style/mesh/polygons/textures.js +11 -16
- package/internal/stores/data_style/mesh/polygons/vertex.js +47 -58
- package/internal/stores/data_style/mesh/polygons/visibility.js +11 -16
- package/internal/stores/data_style/mesh/polyhedra/color.js +11 -16
- package/internal/stores/data_style/mesh/polyhedra/common.js +6 -6
- package/internal/stores/data_style/mesh/polyhedra/index.js +29 -42
- package/internal/stores/data_style/mesh/polyhedra/polyhedron.js +43 -47
- package/internal/stores/data_style/mesh/polyhedra/vertex.js +47 -58
- package/internal/stores/data_style/mesh/polyhedra/visibility.js +11 -17
- package/internal/stores/data_style/model/blocks/color.js +21 -24
- package/internal/stores/data_style/model/blocks/common.js +6 -6
- package/internal/stores/data_style/model/blocks/index.js +13 -17
- package/internal/stores/data_style/model/blocks/visibility.js +21 -24
- package/internal/stores/data_style/model/corners/color.js +21 -24
- package/internal/stores/data_style/model/corners/common.js +6 -6
- package/internal/stores/data_style/model/corners/index.js +14 -18
- package/internal/stores/data_style/model/corners/visibility.js +21 -25
- package/internal/stores/data_style/model/edges/common.js +4 -4
- package/internal/stores/data_style/model/edges/index.js +7 -7
- package/internal/stores/data_style/model/edges/visibility.js +11 -15
- package/internal/stores/data_style/model/index.js +84 -100
- package/internal/stores/data_style/model/lines/color.js +21 -24
- package/internal/stores/data_style/model/lines/common.js +6 -6
- package/internal/stores/data_style/model/lines/index.js +13 -17
- package/internal/stores/data_style/model/lines/visibility.js +21 -24
- package/internal/stores/data_style/model/points/common.js +4 -4
- package/internal/stores/data_style/model/points/index.js +9 -9
- package/internal/stores/data_style/model/points/size.js +11 -11
- package/internal/stores/data_style/model/points/visibility.js +11 -15
- package/internal/stores/data_style/model/surfaces/color.js +21 -24
- package/internal/stores/data_style/model/surfaces/common.js +6 -6
- package/internal/stores/data_style/model/surfaces/index.js +14 -22
- package/internal/stores/data_style/model/surfaces/visibility.js +18 -22
- package/internal/stores/data_style/state.js +11 -11
- package/internal/utils/api_fetch.js +24 -34
- package/internal/utils/upload_file.js +19 -24
- package/internal/utils/viewer_call.js +23 -36
- package/nuxt.config.js +7 -11
- package/package.json +3 -3
- package/scripts/generate_geode_objects.js +14 -16
- package/server/api/app/kill.post.js +4 -4
- package/server/api/app/project_folder_path.post.js +11 -11
- package/server/api/app/run_back.post.js +12 -12
- package/server/api/app/run_viewer.post.js +12 -12
- package/server/api/extensions/run.post.js +34 -41
- package/server/api/extensions/upload.put.js +48 -62
- package/tests/integration/setup.js +43 -53
- package/tests/integration/stores/data_style/mesh/cells.nuxt.test.js +90 -116
- package/tests/integration/stores/data_style/mesh/edges.nuxt.test.js +81 -107
- package/tests/integration/stores/data_style/mesh/index.nuxt.test.js +38 -41
- package/tests/integration/stores/data_style/mesh/points.nuxt.test.js +85 -101
- package/tests/integration/stores/data_style/mesh/polygons.nuxt.test.js +89 -113
- package/tests/integration/stores/data_style/mesh/polyhedra.nuxt.test.js +81 -105
- package/tests/integration/stores/data_style/model/blocks.nuxt.test.js +56 -73
- package/tests/integration/stores/data_style/model/corners.nuxt.test.js +59 -76
- package/tests/integration/stores/data_style/model/edges.nuxt.test.js +39 -42
- package/tests/integration/stores/data_style/model/index.nuxt.test.js +31 -34
- package/tests/integration/stores/data_style/model/lines.nuxt.test.js +60 -73
- package/tests/integration/stores/data_style/model/points.nuxt.test.js +52 -55
- package/tests/integration/stores/data_style/model/surfaces.nuxt.test.js +59 -80
- package/tests/integration/stores/viewer.nuxt.test.js +35 -38
- package/tests/setup_indexeddb.js +2 -2
- package/tests/unit/components/CrsSelector.nuxt.test.js +28 -28
- package/tests/unit/components/ExtensionSelector.nuxt.test.js +33 -35
- package/tests/unit/components/FeedBack/ErrorsBanner.nuxt.test.js +23 -23
- package/tests/unit/components/FeedBack/Snackers.nuxt.test.js +18 -18
- package/tests/unit/components/FileSelector.nuxt.test.js +57 -59
- package/tests/unit/components/FileUploader.nuxt.test.js +35 -39
- package/tests/unit/components/Inspector/InspectionButton.nuxt.test.js +28 -28
- package/tests/unit/components/Inspector/ResultPanel.nuxt.test.js +22 -27
- package/tests/unit/components/Launcher.nuxt.test.js +20 -22
- package/tests/unit/components/MissingFilesSelector.nuxt.test.js +37 -37
- package/tests/unit/components/ObjectSelector.nuxt.test.js +62 -62
- package/tests/unit/components/PackagesVersions.nuxt.test.js +16 -16
- package/tests/unit/components/Step.nuxt.test.js +18 -19
- package/tests/unit/components/Stepper.nuxt.test.js +18 -18
- package/tests/unit/composables/api_fetch.nuxt.test.js +34 -36
- package/tests/unit/composables/project_manager.nuxt.test.js +93 -112
- package/tests/unit/composables/run_function_when_microservices_connected.nuxt.test.js +36 -36
- package/tests/unit/composables/upload_file.nuxt.test.js +27 -29
- package/tests/unit/plugins/project_load.nuxt.test.js +31 -33
- package/tests/unit/stores/app.nuxt.test.js +90 -92
- package/tests/unit/stores/feedback.nuxt.test.js +47 -57
- package/tests/unit/stores/geode.nuxt.test.js +111 -115
- package/tests/unit/stores/infra.nuxt.test.js +148 -148
- package/tests/unit/stores/lambda.nuxt.test.js +72 -74
- package/tests/unit/stores/treeview.nuxt.test.js +19 -21
- package/tests/unit/stores/viewer.nuxt.test.js +109 -122
- package/tests/unit/utils/recaptcha.nuxt.test.js +25 -29
- package/tests/unit/utils/validate_schema.nuxt.test.js +17 -17
- package/tests/utils.js +11 -11
- package/tests/vitest.config.js +9 -9
- package/vuetify_config.js +2 -2
- package/.prettierrc +0 -4
package/.eslintrc.cjs
CHANGED
package/.oxlintrc.json
CHANGED
|
@@ -25,22 +25,7 @@
|
|
|
25
25
|
"eslint/id-length": [
|
|
26
26
|
"error",
|
|
27
27
|
{
|
|
28
|
-
"exceptions": [
|
|
29
|
-
"x",
|
|
30
|
-
"y",
|
|
31
|
-
"z",
|
|
32
|
-
"i",
|
|
33
|
-
"j",
|
|
34
|
-
"k",
|
|
35
|
-
"r",
|
|
36
|
-
"g",
|
|
37
|
-
"b",
|
|
38
|
-
"id",
|
|
39
|
-
"ID",
|
|
40
|
-
"fs",
|
|
41
|
-
"os",
|
|
42
|
-
"_"
|
|
43
|
-
],
|
|
28
|
+
"exceptions": ["x", "y", "z", "i", "j", "k", "r", "g", "b", "id", "ID", "fs", "os", "_"],
|
|
44
29
|
"min": 3
|
|
45
30
|
}
|
|
46
31
|
],
|
|
@@ -78,6 +63,7 @@
|
|
|
78
63
|
"max-lines": [
|
|
79
64
|
"error",
|
|
80
65
|
{
|
|
66
|
+
"max": 310,
|
|
81
67
|
"skipBlankLines": true,
|
|
82
68
|
"skipComments": true
|
|
83
69
|
}
|
|
@@ -121,12 +107,7 @@
|
|
|
121
107
|
}
|
|
122
108
|
},
|
|
123
109
|
{
|
|
124
|
-
"files": [
|
|
125
|
-
"app/plugins/**",
|
|
126
|
-
"node_scripts/**",
|
|
127
|
-
"server/**",
|
|
128
|
-
"*.config.js"
|
|
129
|
-
],
|
|
110
|
+
"files": ["app/plugins/**", "node_scripts/**", "server/**", "*.config.js"],
|
|
130
111
|
"rules": {
|
|
131
112
|
"import/no-default-export": "off"
|
|
132
113
|
}
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import BRep from "@ogw_front/assets/img/geode_objects/BRep.svg"
|
|
2
|
-
import CrossSection from "@ogw_front/assets/img/geode_objects/CrossSection.svg"
|
|
3
|
-
import EdgedCurve2D from "@ogw_front/assets/img/geode_objects/EdgedCurve2D.svg"
|
|
4
|
-
import EdgedCurve3D from "@ogw_front/assets/img/geode_objects/EdgedCurve3D.svg"
|
|
5
|
-
import Graph from "@ogw_front/assets/img/geode_objects/Graph.svg"
|
|
6
|
-
import HybridSolid3D from "@ogw_front/assets/img/geode_objects/HybridSolid3D.svg"
|
|
7
|
-
import ImplicitCrossSection from "@ogw_front/assets/img/geode_objects/ImplicitCrossSection.svg"
|
|
8
|
-
import ImplicitStructuralModel from "@ogw_front/assets/img/geode_objects/ImplicitStructuralModel.svg"
|
|
9
|
-
import LightRegularGrid2D from "@ogw_front/assets/img/geode_objects/LightRegularGrid2D.svg"
|
|
10
|
-
import LightRegularGrid3D from "@ogw_front/assets/img/geode_objects/LightRegularGrid3D.svg"
|
|
11
|
-
import PointSet2D from "@ogw_front/assets/img/geode_objects/PointSet2D.svg"
|
|
12
|
-
import PointSet3D from "@ogw_front/assets/img/geode_objects/PointSet3D.svg"
|
|
13
|
-
import PolygonalSurface2D from "@ogw_front/assets/img/geode_objects/PolygonalSurface2D.svg"
|
|
14
|
-
import PolygonalSurface3D from "@ogw_front/assets/img/geode_objects/PolygonalSurface3D.svg"
|
|
15
|
-
import PolyhedralSolid3D from "@ogw_front/assets/img/geode_objects/PolyhedralSolid3D.svg"
|
|
16
|
-
import RasterImage2D from "@ogw_front/assets/img/geode_objects/RasterImage2D.svg"
|
|
17
|
-
import RasterImage3D from "@ogw_front/assets/img/geode_objects/RasterImage3D.svg"
|
|
18
|
-
import RegularGrid2D from "@ogw_front/assets/img/geode_objects/RegularGrid2D.svg"
|
|
19
|
-
import RegularGrid3D from "@ogw_front/assets/img/geode_objects/RegularGrid3D.svg"
|
|
20
|
-
import Section from "@ogw_front/assets/img/geode_objects/Section.svg"
|
|
21
|
-
import StructuralModel from "@ogw_front/assets/img/geode_objects/StructuralModel.svg"
|
|
22
|
-
import TetrahedralSolid3D from "@ogw_front/assets/img/geode_objects/TetrahedralSolid3D.svg"
|
|
23
|
-
import TriangulatedSurface2D from "@ogw_front/assets/img/geode_objects/TriangulatedSurface2D.svg"
|
|
24
|
-
import TriangulatedSurface3D from "@ogw_front/assets/img/geode_objects/TriangulatedSurface3D.svg"
|
|
25
|
-
import VertexSet from "@ogw_front/assets/img/geode_objects/VertexSet.svg"
|
|
1
|
+
import BRep from "@ogw_front/assets/img/geode_objects/BRep.svg";
|
|
2
|
+
import CrossSection from "@ogw_front/assets/img/geode_objects/CrossSection.svg";
|
|
3
|
+
import EdgedCurve2D from "@ogw_front/assets/img/geode_objects/EdgedCurve2D.svg";
|
|
4
|
+
import EdgedCurve3D from "@ogw_front/assets/img/geode_objects/EdgedCurve3D.svg";
|
|
5
|
+
import Graph from "@ogw_front/assets/img/geode_objects/Graph.svg";
|
|
6
|
+
import HybridSolid3D from "@ogw_front/assets/img/geode_objects/HybridSolid3D.svg";
|
|
7
|
+
import ImplicitCrossSection from "@ogw_front/assets/img/geode_objects/ImplicitCrossSection.svg";
|
|
8
|
+
import ImplicitStructuralModel from "@ogw_front/assets/img/geode_objects/ImplicitStructuralModel.svg";
|
|
9
|
+
import LightRegularGrid2D from "@ogw_front/assets/img/geode_objects/LightRegularGrid2D.svg";
|
|
10
|
+
import LightRegularGrid3D from "@ogw_front/assets/img/geode_objects/LightRegularGrid3D.svg";
|
|
11
|
+
import PointSet2D from "@ogw_front/assets/img/geode_objects/PointSet2D.svg";
|
|
12
|
+
import PointSet3D from "@ogw_front/assets/img/geode_objects/PointSet3D.svg";
|
|
13
|
+
import PolygonalSurface2D from "@ogw_front/assets/img/geode_objects/PolygonalSurface2D.svg";
|
|
14
|
+
import PolygonalSurface3D from "@ogw_front/assets/img/geode_objects/PolygonalSurface3D.svg";
|
|
15
|
+
import PolyhedralSolid3D from "@ogw_front/assets/img/geode_objects/PolyhedralSolid3D.svg";
|
|
16
|
+
import RasterImage2D from "@ogw_front/assets/img/geode_objects/RasterImage2D.svg";
|
|
17
|
+
import RasterImage3D from "@ogw_front/assets/img/geode_objects/RasterImage3D.svg";
|
|
18
|
+
import RegularGrid2D from "@ogw_front/assets/img/geode_objects/RegularGrid2D.svg";
|
|
19
|
+
import RegularGrid3D from "@ogw_front/assets/img/geode_objects/RegularGrid3D.svg";
|
|
20
|
+
import Section from "@ogw_front/assets/img/geode_objects/Section.svg";
|
|
21
|
+
import StructuralModel from "@ogw_front/assets/img/geode_objects/StructuralModel.svg";
|
|
22
|
+
import TetrahedralSolid3D from "@ogw_front/assets/img/geode_objects/TetrahedralSolid3D.svg";
|
|
23
|
+
import TriangulatedSurface2D from "@ogw_front/assets/img/geode_objects/TriangulatedSurface2D.svg";
|
|
24
|
+
import TriangulatedSurface3D from "@ogw_front/assets/img/geode_objects/TriangulatedSurface3D.svg";
|
|
25
|
+
import VertexSet from "@ogw_front/assets/img/geode_objects/VertexSet.svg";
|
|
26
26
|
|
|
27
27
|
export const geode_objects = {
|
|
28
28
|
BRep: {
|
|
@@ -125,4 +125,4 @@ export const geode_objects = {
|
|
|
125
125
|
tooltip: "VertexSet",
|
|
126
126
|
image: VertexSet,
|
|
127
127
|
},
|
|
128
|
-
}
|
|
128
|
+
};
|
|
@@ -1,58 +1,54 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
// oxlint-disable-next-line import/no-unassigned-import
|
|
3
|
+
import "vue3-carousel/dist/carousel.css";
|
|
4
|
+
import { Carousel, Navigation, Pagination, Slide } from "vue3-carousel";
|
|
5
|
+
import { useDisplay } from "vuetify";
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
const NB_ITEMS_TO_DISPLAY = 3;
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
const { items } = defineProps({
|
|
10
|
+
items: { type: Array, required: true },
|
|
11
|
+
});
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}
|
|
23
|
-
case "sm": {
|
|
24
|
-
nb_items_to_display.value = 2
|
|
25
|
-
break
|
|
26
|
-
}
|
|
27
|
-
default: {
|
|
28
|
-
nb_items_to_display.value = 3
|
|
29
|
-
break
|
|
30
|
-
}
|
|
13
|
+
const { name } = useDisplay();
|
|
14
|
+
const nb_items_to_display = ref(NB_ITEMS_TO_DISPLAY);
|
|
15
|
+
watch(
|
|
16
|
+
name,
|
|
17
|
+
(value) => {
|
|
18
|
+
switch (value) {
|
|
19
|
+
case "xs": {
|
|
20
|
+
nb_items_to_display.value = 1;
|
|
21
|
+
break;
|
|
31
22
|
}
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
23
|
+
case "sm": {
|
|
24
|
+
nb_items_to_display.value = 2;
|
|
25
|
+
break;
|
|
26
|
+
}
|
|
27
|
+
default: {
|
|
28
|
+
nb_items_to_display.value = 3;
|
|
29
|
+
break;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
immediate: true,
|
|
35
|
+
},
|
|
36
|
+
);
|
|
37
37
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
38
|
+
const carrousel_settings = reactive({
|
|
39
|
+
autoplay: 2000,
|
|
40
|
+
itemsToShow: nb_items_to_display.value,
|
|
41
|
+
itemsToScroll: 1,
|
|
42
|
+
pauseAutoplayOnHover: true,
|
|
43
|
+
transition: 1000,
|
|
44
|
+
wrapAround: true,
|
|
45
|
+
});
|
|
46
46
|
</script>
|
|
47
47
|
|
|
48
48
|
<template>
|
|
49
49
|
<ClientOnly>
|
|
50
50
|
<Carousel :settings="carrousel_settings">
|
|
51
|
-
<Slide
|
|
52
|
-
v-for="(item, index) in items"
|
|
53
|
-
:key="index"
|
|
54
|
-
class="carousel__slide"
|
|
55
|
-
>
|
|
51
|
+
<Slide v-for="(item, index) in items" :key="index" class="carousel__slide">
|
|
56
52
|
<a :href="item.url" target="_blank">
|
|
57
53
|
<img :src="item.logo" class="carousel__item" />
|
|
58
54
|
</a>
|
|
@@ -66,28 +62,28 @@
|
|
|
66
62
|
</template>
|
|
67
63
|
|
|
68
64
|
<style scoped>
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
65
|
+
.carousel__item {
|
|
66
|
+
min-height: 200px;
|
|
67
|
+
width: 100%;
|
|
68
|
+
background-color: var(--vc-clr-white);
|
|
69
|
+
color: var(--vc-clr-white);
|
|
70
|
+
font-size: 20px;
|
|
71
|
+
border-radius: 10px;
|
|
72
|
+
display: flex;
|
|
73
|
+
justify-content: center;
|
|
74
|
+
align-items: center;
|
|
75
|
+
}
|
|
80
76
|
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
77
|
+
.carousel__slide {
|
|
78
|
+
display: flex;
|
|
79
|
+
padding: 15px;
|
|
80
|
+
align-items: center;
|
|
81
|
+
justify-content: center;
|
|
82
|
+
}
|
|
87
83
|
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
84
|
+
.carousel__prev,
|
|
85
|
+
.carousel__next {
|
|
86
|
+
box-sizing: content-box;
|
|
87
|
+
border: 5px solid red;
|
|
88
|
+
}
|
|
93
89
|
</style>
|
|
@@ -1,67 +1,63 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
import schemas from "@geode/opengeodeweb-back/opengeodeweb_back_schemas.json";
|
|
3
|
+
import { useGeodeStore } from "@ogw_front/stores/geode";
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
const schema = schemas.opengeodeweb_back.geographic_coordinate_systems;
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
"update_values",
|
|
9
|
-
"increment_step",
|
|
10
|
-
"decrement_step",
|
|
11
|
-
])
|
|
7
|
+
const emit = defineEmits(["update_values", "increment_step", "decrement_step"]);
|
|
12
8
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
9
|
+
const { geode_object_type, key_to_update } = defineProps({
|
|
10
|
+
geode_object_type: { type: String, required: true },
|
|
11
|
+
key_to_update: { type: String, required: true },
|
|
12
|
+
});
|
|
17
13
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
14
|
+
const search = ref("");
|
|
15
|
+
const data_table_loading = ref(false);
|
|
16
|
+
const crs_list = ref([]);
|
|
17
|
+
const selected_crs = ref([]);
|
|
18
|
+
const toggle_loading = useToggle(data_table_loading);
|
|
19
|
+
const geodeStore = useGeodeStore();
|
|
24
20
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
21
|
+
watch(selected_crs, (new_value) => {
|
|
22
|
+
const crs = get_selected_crs(new_value[0]);
|
|
23
|
+
const keys_values_object = {
|
|
24
|
+
[key_to_update]: crs,
|
|
25
|
+
};
|
|
26
|
+
emit("update_values", keys_values_object);
|
|
27
|
+
emit("increment_step");
|
|
28
|
+
});
|
|
33
29
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
}
|
|
30
|
+
function get_selected_crs(crs_code) {
|
|
31
|
+
for (let i = 0; i <= crs_list.value.length; i += 1) {
|
|
32
|
+
if (crs_list.value[i]["code"] === crs_code) {
|
|
33
|
+
return crs_list.value[i];
|
|
39
34
|
}
|
|
40
35
|
}
|
|
36
|
+
}
|
|
41
37
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
},
|
|
49
|
-
})
|
|
50
|
-
toggle_loading()
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
const headers = [
|
|
54
|
-
{
|
|
55
|
-
title: "Authority",
|
|
56
|
-
align: "start",
|
|
57
|
-
sortable: true,
|
|
58
|
-
key: "authority",
|
|
38
|
+
async function get_crs_table() {
|
|
39
|
+
const params = { geode_object_type };
|
|
40
|
+
toggle_loading();
|
|
41
|
+
await geodeStore.request(schema, params, {
|
|
42
|
+
response_function: (response) => {
|
|
43
|
+
crs_list.value = response.crs_list;
|
|
59
44
|
},
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
45
|
+
});
|
|
46
|
+
toggle_loading();
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
const headers = [
|
|
50
|
+
{
|
|
51
|
+
title: "Authority",
|
|
52
|
+
align: "start",
|
|
53
|
+
sortable: true,
|
|
54
|
+
key: "authority",
|
|
55
|
+
},
|
|
56
|
+
{ title: "Code", align: "end", key: "code" },
|
|
57
|
+
{ title: "Name", align: "end", key: "name" },
|
|
58
|
+
];
|
|
63
59
|
|
|
64
|
-
|
|
60
|
+
await get_crs_table();
|
|
65
61
|
</script>
|
|
66
62
|
|
|
67
63
|
<template>
|
|
@@ -1,39 +1,29 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
-
|
|
2
|
+
import GlassCard from "./GlassCard.vue";
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
4
|
+
const { show, item, selectedCount } = defineProps({
|
|
5
|
+
show: {
|
|
6
|
+
type: Boolean,
|
|
7
|
+
default: false,
|
|
8
|
+
},
|
|
9
|
+
item: {
|
|
10
|
+
type: Object,
|
|
11
|
+
default: undefined,
|
|
12
|
+
},
|
|
13
|
+
selectedCount: {
|
|
14
|
+
type: Number,
|
|
15
|
+
default: 0,
|
|
16
|
+
},
|
|
17
|
+
});
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
const emit = defineEmits(["update:show", "confirm"]);
|
|
20
20
|
</script>
|
|
21
21
|
|
|
22
22
|
<template>
|
|
23
|
-
<v-dialog
|
|
24
|
-
:model-value="show"
|
|
25
|
-
@update:model-value="emit('update:show', $event)"
|
|
26
|
-
max-width="400"
|
|
27
|
-
>
|
|
23
|
+
<v-dialog :model-value="show" @update:model-value="emit('update:show', $event)" max-width="400">
|
|
28
24
|
<GlassCard v-if="item" variant="panel" padding="pa-8">
|
|
29
|
-
<v-card-title
|
|
30
|
-
|
|
31
|
-
>
|
|
32
|
-
<v-icon
|
|
33
|
-
icon="mdi-trash-can-outline"
|
|
34
|
-
class="mr-3 text-h4"
|
|
35
|
-
color="error"
|
|
36
|
-
></v-icon>
|
|
25
|
+
<v-card-title class="pb-2 text-h5 font-weight-bold d-flex align-center text-white">
|
|
26
|
+
<v-icon icon="mdi-trash-can-outline" class="mr-3 text-h4" color="error"></v-icon>
|
|
37
27
|
Delete Item
|
|
38
28
|
</v-card-title>
|
|
39
29
|
|
|
@@ -75,14 +65,8 @@
|
|
|
75
65
|
</GlassCard>
|
|
76
66
|
|
|
77
67
|
<GlassCard v-else variant="panel" padding="pa-8">
|
|
78
|
-
<v-card-title
|
|
79
|
-
|
|
80
|
-
>
|
|
81
|
-
<v-icon
|
|
82
|
-
icon="mdi-alert-circle-outline"
|
|
83
|
-
class="mr-3 text-h4"
|
|
84
|
-
color="error"
|
|
85
|
-
></v-icon>
|
|
68
|
+
<v-card-title class="pb-2 text-h5 font-weight-bold d-flex align-center text-white">
|
|
69
|
+
<v-icon icon="mdi-alert-circle-outline" class="mr-3 text-h4" color="error"></v-icon>
|
|
86
70
|
Delete Items
|
|
87
71
|
</v-card-title>
|
|
88
72
|
|
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
-
|
|
2
|
+
import GlassCard from "@ogw_front/components/GlassCard";
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
4
|
+
const { multiple, accept, loading, showExtensions } = defineProps({
|
|
5
|
+
multiple: { type: Boolean, default: false },
|
|
6
|
+
accept: { type: String, default: "" },
|
|
7
|
+
loading: { type: Boolean, default: false },
|
|
8
|
+
showExtensions: { type: Boolean, default: true },
|
|
9
|
+
});
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
const emit = defineEmits(["files-selected"]);
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
const isDragging = ref(false);
|
|
14
|
+
const fileInput = ref(undefined);
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
function triggerFileDialog() {
|
|
17
|
+
fileInput.value?.click();
|
|
18
|
+
}
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
20
|
+
function handleDrop(event) {
|
|
21
|
+
isDragging.value = false;
|
|
22
|
+
const files = [...event.dataTransfer.files];
|
|
23
|
+
emit("files-selected", files);
|
|
24
|
+
}
|
|
25
25
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
26
|
+
function handleFileSelect(event) {
|
|
27
|
+
const files = [...event.target.files];
|
|
28
|
+
emit("files-selected", files);
|
|
29
|
+
event.target.value = "";
|
|
30
|
+
}
|
|
31
31
|
</script>
|
|
32
32
|
|
|
33
33
|
<template>
|
|
@@ -60,9 +60,7 @@
|
|
|
60
60
|
<v-card-text class="pa-8">
|
|
61
61
|
<v-sheet
|
|
62
62
|
class="mx-auto mb-6 d-flex align-center justify-center"
|
|
63
|
-
:color="
|
|
64
|
-
isHovering || isDragging ? 'white' : 'rgba(255, 255, 255, 0.1)'
|
|
65
|
-
"
|
|
63
|
+
:color="isHovering || isDragging ? 'white' : 'rgba(255, 255, 255, 0.1)'"
|
|
66
64
|
rounded="circle"
|
|
67
65
|
width="80"
|
|
68
66
|
height="80"
|
|
@@ -81,11 +79,7 @@
|
|
|
81
79
|
style="transition: color 0.3s ease"
|
|
82
80
|
>
|
|
83
81
|
{{
|
|
84
|
-
loading
|
|
85
|
-
? "Uploading..."
|
|
86
|
-
: isDragging
|
|
87
|
-
? "Drop to upload"
|
|
88
|
-
: "Click or Drag & Drop files"
|
|
82
|
+
loading ? "Uploading..." : isDragging ? "Drop to upload" : "Click or Drag & Drop files"
|
|
89
83
|
}}
|
|
90
84
|
</v-card-title>
|
|
91
85
|
|
|
@@ -107,16 +101,16 @@
|
|
|
107
101
|
</template>
|
|
108
102
|
|
|
109
103
|
<style scoped>
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
104
|
+
.rotating {
|
|
105
|
+
animation: rotate 1s linear infinite;
|
|
106
|
+
}
|
|
113
107
|
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
}
|
|
108
|
+
@keyframes rotate {
|
|
109
|
+
from {
|
|
110
|
+
transform: rotate(0deg);
|
|
111
|
+
}
|
|
112
|
+
to {
|
|
113
|
+
transform: rotate(360deg);
|
|
121
114
|
}
|
|
115
|
+
}
|
|
122
116
|
</style>
|